.hero > .hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#formacao .training-grid > .video-card {
  display: flex;
  flex-direction: column;
  transition: transform .42s var(--motion-spring, ease), box-shadow .42s var(--ease, ease);
}
#formacao .training-grid > .video-card > .thumb {
  flex: 0 0 240px;
}
#formacao .training-grid > .video-card > div:last-child {
  flex: 1 0 auto;
  height: auto;
  min-height: 238px;
  transition: background-color .35s var(--ease, ease), color .35s var(--ease, ease);
}
#formacao .training-grid > .video-card .video-trigger.button {
  flex: 0 0 40px;
  width: 100%;
  height: 40px;
  margin-top: auto;
}
#formacao .training-grid > .video-card:hover,
#formacao .training-grid > .video-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px #00000024;
}
#formacao .training-grid > .video-card:hover > div:last-child,
#formacao .training-grid > .video-card:focus-within > div:last-child {
  background: #222;
  color: #fff;
}
#formacao .training-grid > .video-card:hover .video-trigger.button,
#formacao .training-grid > .video-card:focus-within .video-trigger.button {
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  #formacao .training-grid > .video-card,
  #formacao .training-grid > .video-card > div:last-child { transition: none; }
  #formacao .training-grid > .video-card:hover,
  #formacao .training-grid > .video-card:focus-within { transform: none; }
}
@media (min-width: 1101px) {
  #sobre .about-grid {
    grid-template-columns: minmax(220px, min(25%, 480px)) minmax(320px, 1.2fr) minmax(330px, 1fr);
    gap: clamp(24px, 3vw, 52px);
  }
  #sobre .about-grid > h2 {
    font-size: clamp(36px, 3.1vw, 48px);
    line-height: 1.28;
  }
}
video.hero-media {
  opacity: 0;
  transition: opacity .6s ease;
}
video.hero-media.is-ready { opacity: 1; }

.site-loader {
  transition-duration: 300ms, 300ms, 0s;
  transition-delay: 0s, 0s, 300ms;
}
.loader-mark { transition-duration: 300ms, 260ms, 300ms; }
.loader-mark-fill { animation-duration: 500ms; }

.hero-kicker {
  display: block;
  margin-bottom: 14px;
  color: #e3b464;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.press-pair > figure .press-video { display:block; width:100%; height:100%; object-fit:contain; background:#111; }
.press-video-detail { margin:0 0 32px; }
.doleira-classic-page #conteudo .content-grid { grid-template-columns:minmax(0,1fr) minmax(260px,300px); column-gap:clamp(24px,4vw,48px); row-gap:0; align-items:start; }
.doleira-classic-page #conteudo .prose { display:contents; }
.doleira-classic-page #conteudo .press-video-detail { grid-column:1; grid-row:1; }
.doleira-classic-page #conteudo .doleira-classic { grid-column:1; grid-row:1; }
.doleira-classic-page #conteudo .content-grid > .aside { display:block; grid-column:2; grid-row:1; width:auto; margin-top:56px; }
.doleira-classic-page .press-video-detail .press-video { height:auto !important; aspect-ratio:16/9; }
.doleira-classic { width:100%; max-width:720px; margin:56px 0 0; }
.doleira-classic .doleira-classic-eyebrow { font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:#91703b; }
.doleira-classic h2 { font-size:clamp(28px,3vw,42px); font-weight:500; line-height:1.25; margin:16px 0 28px; }
.doleira-classic h3 { font-size:23px; font-weight:600; line-height:1.4; margin:38px 0 16px; }
.doleira-classic p { max-width:none; font-size:16px; line-height:1.9; margin:0 0 22px; }
.doleira-classic p.doleira-classic-lead { font-size:18px; color:#555; line-height:1.8; }
@media(max-width:600px) { .doleira-classic { margin-top:32px; } .doleira-classic p { font-size:15px; } }
@media(max-width:1000px) {
  .doleira-classic-page #conteudo .content-grid { grid-template-columns:minmax(0,1fr); }
  .doleira-classic-page #conteudo .content-grid > .aside { grid-column:1; grid-row:3; width:min(100%,440px); margin-top:32px; }
}
.press-video-detail .press-video { display:block; width:100%; max-height:720px; background:#111; }

.hero-positioning {
  max-width: 620px;
  margin: -12px 0 28px;
  color: rgba(255,255,255,.82);
  font-size: clamp(14px,1.25vw,18px);
  line-height: 1.55;
}

/* Team cards retain the same diagonal arrow in every interaction state. */
.team-profile-button .icon-arrow-up-right,
.team-profile-button:hover .icon-arrow-up-right,
.team-profile-button:active .icon-arrow-up-right,
.team-profile-button.state-hover .icon-arrow-up-right,
.team-profile-button.state-pressed .icon-arrow-up-right,
.team-card:hover .team-profile-button .icon-arrow-up-right,
.team-card:active .team-profile-button .icon-arrow-up-right {
  opacity: 1 !important;
  transform: none !important;
}

.team-profile-button .icon-arrow-right {
  display: none !important;
}

/* The quick-contact card hugs its content, including the legal consent note. */
.hero-lead-card:not(.is-collapsed) {
  height: auto;
  min-height: 0;
  align-self: flex-end;
}

.hero-lead-content {
  gap: 12px;
}

.hero-lead-form {
  gap: 16px;
}

.hero-lead-form .consent {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
  --consent-border: #686868;
  --consent-focus-inner: #fff;
}

:is(.fields, .hero-lead-form) .consent input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 1px solid var(--consent-border, #fff);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), transform .12s ease;
}

:is(.fields, .hero-lead-form) .consent:hover input[type="checkbox"] {
  border-color: var(--gold);
  background-color: rgba(227, 180, 100, .12);
}
:is(.fields, .hero-lead-form) .consent input[type="checkbox"]:active {
  transform: scale(.88);
  background-color: rgba(227, 180, 100, .28);
}
:is(.fields, .hero-lead-form) .consent input[type="checkbox"]:focus-visible {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--consent-focus-inner, #333), 0 0 0 4px var(--gold);
}
:is(.fields, .hero-lead-form) .consent input[type="checkbox"]:checked {
  border-color: var(--gold);
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5L9.5 17L19 7.5' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
}
.hero-lead-form .consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.hero-lead-form .consent input[type="checkbox"]:checked { background-size: 12px; }

.consent-legal-link {
  display: inline;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.consent-legal-link:hover { color: var(--gold); }
.consent-legal-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hero-lead-row {
  gap: 16px;
}

.hero-lead-privacy {
  margin: 0;
  color: #5f5f5f;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: normal;
}

.hero-lead-legal-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.hero-lead-legal-link:hover,
.hero-lead-legal-link:focus-visible {
  color: #7a520c;
}

.menu-panel nav .menu-primary-action { display: none; }
@media (max-width: 600px) {
  .hero-positioning {
    margin-top: -8px;
    font-size: 14px;
  }
}
/* The office column determines the row height; the map follows it naturally.
   Its existing ResizeObserver keeps the selected location centred. */
@media (min-width: 901px) {
  .world-grid { align-items: stretch; }
  .world-grid > .map-wrap { height: auto; min-height: 0; align-self: stretch; }
}
.team-track { cursor:grab; touch-action:pan-y; }
.team-track.is-dragging { cursor:grabbing; user-select:none; scroll-behavior:auto; scroll-snap-type:none; }
.team-track:focus-visible { outline:2px solid #dfb55e; outline-offset:4px; }
.contact > .wrap, .footer > .wrap { width:min(1600px, calc(100% - clamp(48px, 12vw, 200px))); margin-inline:auto; }
#conteudo .contact .ds-button, .footer .ds-button { margin-top:0; }
.contact, .footer { font-family:Manrope, Arial, sans-serif; line-height:1.5; }
@media(max-width:600px) { .contact > .wrap, .footer > .wrap { width:calc(100% - 32px); } }
.team-directory { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.team-directory .team-card { min-width:0; width:100%; height:clamp(420px,34vw,576px); }
.team-directory .team-card h3 { font-size:30px; font-weight:400; line-height:1.2; margin:20px 0 12px; }
#conteudo .team-directory .team-profile-button { margin-top:24px; }
@media(max-width:600px) { .team-directory { grid-template-columns:1fr; } .team-directory .team-card { height:520px; } }
.training-page .content-grid { grid-template-columns:1fr; }
.training-page .content-grid > .aside { display:none; }
.training-info-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:auto; min-height:0; }
.training-info-grid > .area-card { grid-column:auto; grid-row:auto; min-height:360px; height:auto; }
.training-info-grid .area-card h3 { font-size:24px; line-height:1.25; font-weight:400; margin:0 0 16px; }
.training-info-grid .area-card p { font-size:14px; line-height:1.5; }
.training-youtube-links { display:flex; flex-wrap:wrap; gap:12px; }
.training-page .training-recordings .training-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:900px) { .training-info-grid, .training-page .training-recordings .training-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .training-info-grid, .training-page .training-recordings .training-grid { grid-template-columns:1fr; } .training-info-grid > .area-card { min-height:300px; } }
#conteudo .feature.press-feature-bounded { height:640px; min-height:0; max-height:640px; grid-template-rows:minmax(0,1fr); }
.press-feature-bounded > img, .press-feature-bounded > picture { display:block; width:100%; height:100%; min-height:0; overflow:hidden; }
.press-feature-bounded > picture img { width:100%; height:100%; object-fit:cover; }
.press-feature-bounded > .press-feature-video { margin:0; width:100%; height:100%; min-height:0; background:#111; overflow:hidden; }
.press-feature-bounded > .press-feature-video .press-video { display:block; width:100%; height:100%; max-height:none!important; object-fit:contain; background:#111; }
.press-feature-video { position:relative; }
.press-feature-video .press-video-cover { position:absolute; inset:0; width:100%; height:100%; border:0; padding:0; cursor:pointer; background:#111; overflow:hidden; }
.press-video-cover > img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease,filter .3s ease; }
.press-video-cover > span { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none; }
.press-video-cover:hover > img { transform:scale(1.025); filter:brightness(.78); }
.press-video-cover:active > img { transform:scale(1.01); filter:brightness(.62); }
.press-video-cover:focus-visible { outline:3px solid var(--gold); outline-offset:-4px; }
.press-video-cover:is(:hover,:focus-visible) > .ds-icon-button { background:var(--btn-hover-bg);color:var(--btn-hover-fg);border-color:var(--btn-hover-bg);transform:translate(-50%,-50%) translateY(-2px) scale(1.015);box-shadow:0 12px 26px #00000024; }
.press-video-cover:active > .ds-icon-button { background:var(--btn-pressed-bg);color:var(--btn-pressed-fg);border-color:var(--btn-pressed-bg);transform:translate(-50%,-50%) translateY(1px) scale(.965);box-shadow:0 3px 8px #0000001f; }
.press-video-tooltip { position:absolute;top:calc(50% + 42px);left:50%;transform:translateX(-50%);padding:8px 12px;border:1px solid #ffffff35;border-radius:6px;background:#171717;color:#fff;font:400 13px/1.4 Manrope,sans-serif;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .16s ease; }
.press-video-cover:is(:hover,:focus-visible) .press-video-tooltip { opacity:1; }
.press-feature-video [hidden] { display:none!important; }
.student-testimony-page .press-video-cover > img { object-fit:contain; }
.student-testimony-page .feature-content h2 { font-size:clamp(28px,3vw,42px);line-height:1.18; }
.student-press-card figure { background:#111; }
.student-press-card figure img { object-position:center; object-fit:cover; }
.event-press-card figure { background:#101c36; }
.event-press-card figure img { object-fit:cover; object-position:center; }
.press-event-page #conteudo .feature.press-feature-bounded { height:auto; max-height:none; grid-template-columns:minmax(0,min(44%,512px)) minmax(0,1fr); grid-template-rows:auto; align-items:stretch; }
.press-event-page .event-cover { margin:0; min-width:0; background:#101c36; }
.press-event-page .event-cover picture { display:block; width:100%; }
.press-event-page .event-cover img { display:block; width:100%; height:auto; object-fit:contain; }
.workshop-expanded-page #conteudo .feature.press-feature-bounded { grid-template-columns:minmax(0,3fr) minmax(0,2fr); }
.workshop-expanded-page .event-cover { align-self:center; }
@media(max-width:820px) { .press-event-page #conteudo .feature.press-feature-bounded { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto; } }
.press-event-page .feature-content h2 { font-size:clamp(28px,3vw,42px); line-height:1.18; }
.event-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:24px 0 40px; }
.event-gallery figure { margin:0; min-width:0; }
.event-gallery img { display:block; width:100%; height:auto; border-radius:6px; }
.event-gallery figcaption { font-size:14px; line-height:1.5; margin-top:12px; }
.event-video { display:block; width:100%; max-height:640px; background:#111; }
@media(max-width:600px) { .event-gallery { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .press-video-cover > img { transition:none; } }
.press-feature-bounded .feature-content { min-height:0; overflow:auto; }
/* Touch layouts must retain their real heights for section navigation. */
@media(max-width:1024px) {
  .shell:not(.hero) { content-visibility:visible; contain-intrinsic-size:none; }
}
/* Hash navigation must measure rendered sections, not estimated placeholders. */
html:has(:target) .shell:not(.hero) { content-visibility:visible; contain-intrinsic-size:none; }
@media(max-width:820px) {
  #conteudo .feature.press-feature-bounded { height:auto; max-height:none; }
  #conteudo .feature.press-feature-bounded > .press-feature-video { height:320px; }
  #conteudo .feature.press-feature-bounded > .feature-content { height:auto; overflow:visible; }
}
@media(max-width:820px) { #conteudo .feature.press-feature-bounded { grid-template-rows:auto auto; } .press-feature-bounded .feature-content { padding:24px; } }
.press-grid > .press-archive-card { grid-column:span 2; background:var(--gold); min-height:320px; padding:32px; display:flex; flex-direction:column; justify-content:space-between; gap:24px; }
.press-archive-card > small { font-size:11px; text-transform:uppercase; }
.press-grid > .press-archive-card { transition:background-color .35s ease,color .35s ease,transform .35s ease,box-shadow .35s ease; }
.press-grid > .press-archive-card:hover,
.press-grid > .press-archive-card:focus-within { background:#222; color:#fff; transform:translateY(-4px); box-shadow:0 18px 36px #00000026; }
.press-archive-card:hover .ds-button,
.press-archive-card:focus-within .ds-button { background:var(--gold); border-color:var(--gold); color:#111; }
@media(max-width:600px) { .press-grid > .press-archive-card { grid-column:1/-1; } }
.privacy-panel { max-height:85dvh; overflow-y:auto; }
.privacy-policy-copy { line-height:1.6; }
.privacy-policy-copy strong { font-weight:600; }
.cookie-notice { position:fixed; inset:auto 16px 16px; z-index:1100; display:flex; align-items:center; justify-content:space-between; gap:32px; padding:24px 32px; background:#222; color:#fff; border:1px solid #ffffff25; border-radius:12px; box-shadow:0 12px 48px #0005; }
.cookie-notice-copy { max-width:850px; }
.cookie-notice h2 { font-size:20px; font-weight:500; margin:0 0 8px; }
.cookie-notice p { font-size:14px; line-height:1.5; margin:0; }
.cookie-notice-details { background:none; border:0; color:#e3b464; padding:0; margin-top:12px; font:inherit; font-size:13px; text-decoration:underline; cursor:pointer; }
.cookie-notice-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.cookie-notice .ds-button { margin:0; white-space:nowrap; }
@media(max-width:900px) { .cookie-notice { align-items:flex-start; flex-direction:column; gap:20px; padding:24px; } .cookie-notice-close { position:absolute; top:16px; right:16px; } .cookie-notice h2 { padding-right:48px; } }
@media(max-width:600px) { .cookie-notice { inset:auto 8px 8px; padding:20px; max-height:80dvh; overflow:auto; } .cookie-notice-actions { flex-wrap:wrap; } }
.privacy-panel, .cookies-panel, .terms-panel { max-height:85dvh; overflow-y:auto; }
.legal-policy-copy { line-height:1.6; }
.legal-policy-copy h3 { font-size:20px; margin:28px 0 12px; }
.legal-policy-copy p { margin:0 0 16px; }
.legal-policy-copy a { text-decoration:underline; }

/* Mobile layout must size from the viewport, not from the intrinsic width of
   the logo, contact card, or long editorial headings. */
@media (max-width: 600px) {
  .menu-panel[open] {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, calc(100vw - 32px));
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0 0 0 auto;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    border-radius: 0;
    box-sizing: border-box;
    overscroll-behavior: contain;
    animation: menu-drawer-in 220ms ease-out both;
  }
  .menu-panel nav .menu-primary-action {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.2;
  }
  .hero > .nav .logo,
  .floating-nav .logo {
    width: min(188px, calc(100% - 64px));
    height: auto;
    flex: 0 1 auto;
    min-width: 0;
  }
  .hero > .nav .logo img,
  .floating-nav .logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .hero > .nav .nav-actions,
  .floating-nav .nav-actions { flex: 0 0 auto; }

  .hero .hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
  .hero .hero-bottom > div,
  .hero .hero-lead-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(30px, 9vw, 38px);
    overflow-wrap: break-word;
  }
  .hero h1 br { display: initial; }
  .lab-home-hero .hero h1 { font-size: clamp(26px, 8vw, 36px); }
  .hero-positioning,
  .hero-lead-card { overflow-wrap: break-word; }

  #conteudo .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #conteudo .content-grid > *,
  #conteudo .prose,
  #conteudo .list,
  #conteudo .list > *,
  #conteudo .area-grid,
  #conteudo .area-grid > *,
  #conteudo .feature,
  #conteudo .feature > * {
    min-width: 0;
    max-width: 100%;
  }
  #conteudo .prose,
  #conteudo .card,
  #conteudo .feature-content { overflow-wrap: anywhere; }
  #conteudo .content-grid .aside .button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .menu-panel {
    max-height: calc(100dvh - 32px);
    padding: 24px;
    overflow-y: auto;
  }
  .menu-panel .dialog-close {
    float: none;
    display: flex;
    width: max-content;
    margin: 0 0 24px auto;
  }
  .menu-panel nav { clear: both; gap: 12px; }
  .menu-panel nav a {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-panel[open] { animation: none; }
}
@keyframes menu-drawer-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
.office-directory-cards{margin:30px 0 40px}
.office-list article[data-office="praia"]{background-image:linear-gradient(90deg,rgba(0,0,0,.76),rgba(0,0,0,.15)),linear-gradient(0deg,rgba(0,0,0,.65),transparent 75%),image-set(url('/assets/optimized/office-praia-20261019-lg.avif') type('image/avif'),url('/assets/optimized/office-praia-20261019-lg.webp') type('image/webp'));background-position:center,center,center 38%;background-size:cover;background-repeat:no-repeat}
@media(max-width:600px){.office-list article[data-office="praia"]{background-image:linear-gradient(90deg,rgba(0,0,0,.76),rgba(0,0,0,.15)),linear-gradient(0deg,rgba(0,0,0,.65),transparent 75%),image-set(url('/assets/optimized/office-praia-20261019-sm.avif') type('image/avif'),url('/assets/optimized/office-praia-20261019-sm.webp') type('image/webp'))}}
.office-list article[data-office="sao-paulo"]{background-image:linear-gradient(90deg,rgba(0,0,0,.62),rgba(0,0,0,.12)),linear-gradient(0deg,rgba(0,0,0,.42),transparent 75%),image-set(url('/assets/optimized/office-sao-paulo-20261026-lg.avif') type('image/avif'),url('/assets/optimized/office-sao-paulo-20261026-lg.webp') type('image/webp'));background-position:center,center,center 52%;background-size:cover;background-repeat:no-repeat}
@media(max-width:600px){.office-list article[data-office="sao-paulo"]{background-image:linear-gradient(90deg,rgba(0,0,0,.62),rgba(0,0,0,.12)),linear-gradient(0deg,rgba(0,0,0,.42),transparent 75%),image-set(url('/assets/optimized/office-sao-paulo-20261026-sm.avif') type('image/avif'),url('/assets/optimized/office-sao-paulo-20261026-sm.webp') type('image/webp'))}}
.office-list article[data-office="coimbra"]{background-image:linear-gradient(90deg,rgba(0,0,0,.76),rgba(0,0,0,.2)),linear-gradient(0deg,rgba(0,0,0,.65),transparent 75%),url('/assets/office-gallery/rececao-geral.jpeg');background-position:center,center,center 56%;background-size:cover;background-repeat:no-repeat}
@media(max-width:600px){.office-list article[data-office="coimbra"]{background-image:linear-gradient(90deg,rgba(0,0,0,.76),rgba(0,0,0,.2)),linear-gradient(0deg,rgba(0,0,0,.65),transparent 75%),url('/assets/office-gallery/rececao-geral.jpeg')}}
#conteudo .office-directory-cards .office-summary{margin:0}
#conteudo .office-directory-cards .office-details>div{display:flex;flex-wrap:wrap;gap:12px}
#conteudo .office-directory-cards .office-details .button{margin-top:0}
#conteudo .office-directory-cards .office-primary{background-color:var(--btn-bg,#fff);color:var(--btn-fg,#111);border:1px solid #fff}
#conteudo .office-directory-cards .office-primary:is(:hover,.state-hover){background-color:var(--btn-hover-bg,transparent);color:var(--btn-hover-fg,#fff);border-color:#fff}
#conteudo .office-directory-cards .office-primary:is(:active,.state-pressed){background-color:var(--btn-pressed-bg,#d9d9d9);color:var(--btn-pressed-fg,#111);border-color:#fff}
.office-directory-cards .office-details[hidden]{display:none}
.custom-select.is-searchable .select-options{max-height:184px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#999 transparent}
.custom-select.is-searchable .select-option{height:40px;min-height:40px;flex-shrink:0;color:#eee}
.custom-select.is-searchable .select-option+.select-option{margin-top:8px}
.custom-select.is-searchable .select-option[hidden],.custom-select.is-searchable .select-empty[hidden],.custom-select.is-searchable .select-options[hidden]{display:none}
.custom-select.is-searchable .select-search{width:100%;height:40px;min-height:40px;margin:0;padding:0 12px;border:1px solid #686868;border-radius:6px;background:#292929;color:#fff;font:400 14px Manrope,sans-serif;outline:0;box-sizing:border-box}
.custom-select.is-searchable .select-search:focus{border-color:var(--gold);box-shadow:0 0 0 2px rgb(227 180 100 / 20%)}
.custom-select.is-searchable .select-empty{margin:0;padding:12px 10px;font-size:13px;color:#ddd}
.hero-lead-field .custom-select.is-searchable .select-search{background:#f6f6f6;color:#111;border-color:#d0d0d0}
.hero-lead-field .custom-select.is-searchable .select-option{color:#333}
.about-page #contactos .about-contact-photo {
  background-image:image-set(url('/assets/optimized/about-contact-academic-expanded-v2-lg.avif') type('image/avif'),url('/assets/optimized/about-contact-academic-expanded-v2-lg.webp') type('image/webp'));
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#e4e3de;
}
@media(max-width:600px) {
  .about-page #contactos .about-contact-photo {
    background-image:image-set(url('/assets/optimized/about-contact-academic-expanded-v2-sm.avif') type('image/avif'),url('/assets/optimized/about-contact-academic-expanded-v2-sm.webp') type('image/webp'));
  }
}
.footer .social-band {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-top:0;
  margin-top:64px;
  padding-top:0;
  padding-bottom:28px;
}
.footer .social-band small { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--gold,#e5b65f); }
.footer .social-band p { font-size:20px; line-height:1.4; margin:6px 0 0; }
.footer .social-links { display:flex; flex-direction:row; flex-wrap:wrap; justify-content:flex-end; gap:12px; }
.footer .social-link { --btn-border:rgba(255,255,255,.5); margin:0; }
.footer .social-link .social-brand-icon { width:18px; height:18px; flex-shrink:0; }
@media(max-width:700px) {
  .footer .social-band { flex-direction:column; align-items:flex-start; }
  .footer .social-links { justify-content:flex-start; width:100%; }
  .footer .social-link { flex:1 1 138px; }
}
.language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  white-space: nowrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  margin-right: auto;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  height: 48px;
  flex: 0 0 auto;
  width: max-content;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 480ms var(--motion-spring), box-shadow 480ms var(--motion-spring);
}
.nav-back svg { width: 20px; height: 20px; flex: 0 0 20px; }
.nav-back svg path { transition: opacity 200ms ease, transform 480ms var(--motion-spring); transform-box: fill-box; transform-origin: center; }
.nav-back-arrow-up-left { opacity: 0; transform: translate(5px, 5px); }
.nav-back:hover .nav-back-arrow-left,
.nav-back:focus-visible .nav-back-arrow-left { opacity: 0; transform: translateX(-5px); }
.nav-back:hover .nav-back-arrow-up-left,
.nav-back:focus-visible .nav-back-arrow-up-left { opacity: 1; transform: translate(0); }
.nav-back:has(.nav-back-label) { border-radius: 999px; }
.nav-back:hover { color: #111; background: var(--gold); border-color: var(--gold); transform: translateY(-2px) scale(1.015); box-shadow: 0 12px 26px #00000024; }
.nav-back:active { transform: translateY(1px) scale(.965); box-shadow: 0 3px 8px #0000001f; }
.nav-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .nav-back, .nav-back svg path { transition-duration: .01ms; }
}
@media (max-width: 700px) {
  .nav-brand { gap: 12px; }
  .nav-back { width: 48px; height: 48px; padding: 0; border-radius: 50%; }
  .nav-back .nav-back-label { display: none; }
  .nav-back svg { width: 20px; height: 20px; flex-basis: 20px; }
  .hero > .nav .nav-brand .logo,
  .floating-nav .nav-brand .logo { width:clamp(140px,42vw,188px); min-width:140px; flex:0 0 auto; }
  .hero > .nav .nav-brand .logo img,
  .floating-nav .nav-brand .logo img { width: 100%; height: auto; }
}
@media (max-width: 380px) {
  .hero > .nav {
    width: calc(100% - 24px);
    margin-inline: 12px;
  }
  .floating-nav {
    width: calc(100vw - 24px);
    padding-inline: 12px;
  }
  .hero > .nav .nav-actions .menu,
  .floating-nav .nav-actions .menu { width: 40px; height: 40px; }
  .nav-back { width: 40px; height: 40px; }
  .nav-back svg { width: 18px; height: 18px; flex-basis: 18px; }
}
.language-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  height: calc(100% - 6px);
  border-radius: inherit;
  background: var(--gold);
  transform: translateX(0);
  transition: transform 240ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.language-switch[data-active="en"]::before { transform: translateX(100%); }
.language-switch[data-active="es"]::before { transform: translateX(200%); }
.language-switch button {
  position: relative;
  z-index: 1;
  flex: 1 0 0;
  min-width: 32px;
  min-height: 30px;
  padding: 4px 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.language-switch button.is-active {
  color: #111;
}
.language-switch button:not(.is-active):hover { color: var(--gold); }
.language-switch button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (min-width: 1400px) and (max-width: 1600px) {
  .hero > .nav .nav-links,
  .floating-nav .nav-links { font-size: 14px; }
}
@media (max-width: 1399px) {
  .hero > .nav .nav-links,
  .floating-nav .nav-links { display: none; }
}
@media (max-width: 700px) {
  .nav-actions .language-switch-nav { display: none; }
}
.menu-panel nav .language-switch {
  display: none;
  width: max-content;
  margin-top: 16px;
}
@media (max-width: 700px) {
  .menu-panel nav .language-switch { display: inline-flex; }
}
.menu-panel nav .language-switch button {
  min-width: 42px;
  min-height: 40px;
  font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
  .language-switch::before { transition: none; }
}
.menu-panel .dialog-close {
  background: transparent;
  color: #fff;
}
.translation-note {
  width: min(1400px, calc(100% - 48px));
  margin: 20px auto 0;
  color: #bbb;
  font-size: 12px;
  line-height: 1.5;
}
.translation-note[hidden] { display: none; }

/* Keep the contact aside beside homepage-height editorial cards. */
.press-directory-page #conteudo .content-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.press-directory-page #conteudo .prose { min-width: 0; }
.press-directory-page #conteudo .press-directory-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(360px, auto);
  gap: 24px;
}
.press-directory-page #conteudo .press-directory-grid .press-pair {
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 360px;
}
.press-directory-page #conteudo .content-grid > .aside { width: auto; margin-top: 0; }
@media(min-width:1001px){
  .press-directory-page #conteudo .press-directory-grid{grid-auto-rows:480px}
  .press-directory-page #conteudo .press-directory-grid .press-pair{height:480px;max-height:480px;min-height:0;min-width:0;overflow:hidden}
  .press-directory-page #conteudo .press-directory-grid .press-pair>figure{height:100%;min-height:0;overflow:hidden}
  .press-directory-page #conteudo .press-directory-grid .press-pair>figure .nationality-cover-inner{min-height:0;height:100%;box-sizing:border-box}
  .press-directory-page #conteudo .press-directory-grid .press-pair>article>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;flex-shrink:0}
}
.press-directory-page #conteudo .press-directory-grid .press-pair > article { display:flex; flex-direction:column; align-self:stretch; height:100%; min-height:0; box-sizing:border-box; }
.press-directory-page #conteudo .press-directory-grid .press-pair > article > .button { margin-top:auto !important; flex-shrink:0; align-self:flex-start; }
@media (max-width: 1000px) {
  .press-directory-page #conteudo .content-grid { grid-template-columns: minmax(0, 1fr); }
  .press-directory-page #conteudo .content-grid > .aside { width: min(100%, 440px); }
}
@media (max-width: 600px) {
  .press-directory-page #conteudo .press-directory-grid { grid-auto-rows: auto; }
  .press-directory-page #conteudo .press-directory-grid .press-pair {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 240px auto;
    min-height: 0;
  }
  .press-directory-page #conteudo .press-directory-grid .press-pair > figure { min-height: 0; height: 240px; }
}
.press-pair { color: inherit; text-decoration: none; cursor: pointer; }
.press-pair > article .button { margin-top: auto; align-self: flex-start; pointer-events: none; transition:background-color .25s ease,border-color .25s ease,color .25s ease,transform .25s ease; }
.press-pair:hover > article .button,
.press-pair:focus-visible > article .button { background:var(--gold); border-color:var(--gold); color:#111; transform:translateY(-2px); }
.press-pair:active > article .button { background:#2c2c2c; border-color:#d2a552; color:#d2a552; transform:translateY(1px); }

/* Profile sidebar: black CTA by default, with distinct card and button states. */
#conteudo .profile-contact-aside { transition:background-color .3s ease,color .3s ease,transform .3s ease,box-shadow .3s ease; }
#conteudo .profile-contact-aside:hover,
#conteudo .profile-contact-aside:focus-within { background:#202224; color:#fff; transform:translateY(-4px); box-shadow:0 18px 36px #00000026; }
#conteudo .profile-contact-aside .button { background:#111; border:1px solid #111; color:#fff; transition:background-color .22s ease,border-color .22s ease,color .22s ease,transform .22s ease; }
#conteudo .profile-contact-aside:hover .button,
#conteudo .profile-contact-aside:focus-within .button { background:var(--gold); border-color:var(--gold); color:#111; }
#conteudo .profile-contact-aside .button:hover,
#conteudo .profile-contact-aside .button:focus-visible { background:#fff; border-color:#fff; color:#111; transform:translateY(-2px); }
#conteudo .profile-contact-aside .button:active { background:#111; border-color:var(--gold); color:var(--gold); transform:translateY(1px) scale(.98); }
#conteudo .profile-contact-aside .button:focus-visible { outline:2px solid #111; outline-offset:3px; }

/* Chosen treatment from the design lab: option 04, Graphite, shared by all answer boxes. */
#conteudo .answer-box { position:relative; isolation:isolate; overflow:hidden; padding:32px 36px; border:0; border-radius:5px; background:#202224; color:#f8f8f8; }
#conteudo .answer-box small { position:relative; z-index:1; color:var(--gold); font-size:10px; font-weight:600; letter-spacing:.1em; }
#conteudo .answer-box p { position:relative; z-index:1; max-width:700px; margin:20px 0 0; font-size:clamp(18px,1.7vw,23px); font-weight:400; line-height:1.43; letter-spacing:-.025em; color:#f8f8f8; }
#conteudo .answer-box::after { content:""; position:absolute; z-index:0; right:24px; bottom:-20px; width:200px; height:115px; background:#fff; -webkit-mask:url('/assets/mnf-loading-mark.svg') center / contain no-repeat; mask:url('/assets/mnf-loading-mark.svg') center / contain no-repeat; opacity:.07; pointer-events:none; }
@media(max-width:600px) { #conteudo .answer-box { padding:26px 24px; } #conteudo .answer-box::after { right:16px; bottom:-12px; width:130px; height:75px; } }

/* The firm's legal identity and the founder's individual registrations. */
.footer-identity { display:flex; flex-direction:column; align-items:flex-start; gap:5px; max-width:680px; line-height:1.55; }
.footer-identity span:first-child { color:#fff; font-weight:500; }
.footer-identity span:not(:first-child) { color:#ffffffb8; }
@media (max-width:700px) { .footer-base { align-items:flex-start; } .footer-identity { max-width:100%; } }

/* Homepage About: image-led composition with legible editorial caption. */
#sobre .about-grid { grid-template-columns:minmax(0,1.15fr) minmax(340px,1fr); align-items:stretch; }
#sobre .about-grid > figure { min-width:0; }
#sobre .about-grid > figure::after { content:""; position:absolute; inset:40% 0 0; background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.28) 36%,rgba(0,0,0,.78) 100%); pointer-events:none; }
#sobre .about-grid figcaption { z-index:1; left:clamp(24px,3vw,44px); right:clamp(24px,3vw,44px); bottom:clamp(24px,3vw,44px); }
#sobre .about-grid figcaption h2 { max-width:620px; margin:0; color:#fff; font-size:clamp(26px,2.35vw,32px); line-height:1.25; letter-spacing:-.025em; font-weight:500; text-wrap:balance; }
@media(max-width:1100px) { #sobre .about-grid { grid-template-columns:minmax(0,1fr) minmax(320px,1fr); } }
@media(max-width:760px) { #sobre .about-grid { grid-template-columns:1fr; } #sobre .about-grid > figure { height:clamp(420px,115vw,600px); } #sobre .about-grid figcaption h2 { font-size:clamp(25px,6vw,32px); } }

/* Homepage contact: photograph of the MNF reception, including a lighter mobile asset. */
#contactos .contact-image:not(.about-contact-photo):not(.training-contact-image) { background-image:url('/assets/office-gallery/rececao-geral.jpeg'); background-position:center; }
@media(max-width:600px) { #contactos .contact-image:not(.about-contact-photo):not(.training-contact-image) { background-image:url('/assets/office-gallery/rececao-geral.jpeg'); background-position:center 48%; } }

/* On touch screens, make the team carousel one card per step and keep its controls readable. */
@media(max-width:600px) {
  #equipa .section-head { margin-bottom:28px; }
  #equipa .section-head h2 { font-size:clamp(30px,7vw,38px); line-height:1.15; text-wrap:balance; }
  #equipa .section-head > .button { margin-top:24px; }
  #equipa .team-track { gap:16px; }
  #equipa .team-card { flex:0 0 100%; min-width:100%; height:clamp(420px,105vw,500px); background-position:center top; }
  #equipa .team-card > div { left:20px; right:20px; bottom:24px; }
  #equipa .team-card h3 { font-size:clamp(25px,6vw,30px); line-height:1.15; }
  #equipa .team-edge-gradient { display:none; }
  #equipa .team-footer { align-items:flex-start; gap:20px; margin-top:24px; }
  #equipa .team-footer > span:first-child { max-width:22ch; font-size:14px; line-height:1.45; }
  #equipa .team-controls { flex:0 0 auto; gap:8px; }
  #equipa .team-counter { min-width:46px; font-size:13px; }
  #equipa .team-controls .ds-icon-button { width:44px; height:44px; }
}
@media(max-width:440px) {
  #equipa .team-footer { flex-direction:column; }
  #equipa .team-footer > span:first-child { max-width:none; }
  #equipa .team-controls { width:100%; justify-content:flex-end; }
}

/* Reviews: keep the rating and the first testimonial in one readable mobile flow. */
@media(max-width:600px) {
  #avaliacoes { padding:48px 0; }
  #avaliacoes .reviews-grid { gap:32px; }
  #avaliacoes .reviews-summary h2 { margin-top:16px; font-size:clamp(32px,8vw,40px); line-height:1.12; }
  #avaliacoes .reviews-score { margin-top:32px; align-items:center; gap:18px; }
  #avaliacoes .reviews-score strong { font-size:72px; }
  #avaliacoes .reviews-score p { font-size:15px; line-height:1.4; }
  #avaliacoes .reviews-summary > .ds-button { max-width:100%; margin-top:24px; }
  #avaliacoes .reviews-list { gap:16px; }
  #avaliacoes .review-card { min-height:220px; padding:20px; }
  #avaliacoes .review-stars { margin-bottom:16px; }
}

/* Form confirmation becomes a bottom drawer on phones. */
@media(max-width:600px) {
  .feedback-panel {
    position:fixed;
    inset:auto 0 0;
    width:100%;
    max-width:none;
    max-height:min(86dvh,640px);
    margin:0;
    padding:40px 24px calc(24px + env(safe-area-inset-bottom,0px));
    overflow-y:auto;
    overscroll-behavior:contain;
    border-radius:22px 22px 0 0;
    box-shadow:0 -18px 52px #0008;
  }
  .feedback-panel::before { content:""; position:absolute; top:11px; left:50%; width:42px; height:4px; border-radius:999px; background:#ffffff75; transform:translateX(-50%); }
  .feedback-panel[open] { animation:feedback-drawer-in .38s cubic-bezier(.22,1,.36,1) both; }
  .feedback-panel > .dialog-close:first-child { float:none; position:absolute; top:28px; right:24px; width:44px; height:44px; padding:10px; justify-content:center; font-size:0; }
  .feedback-panel > .dialog-close:first-child .icon { width:20px; height:20px; }
  .feedback-panel > small { display:block; padding-right:56px; font-size:11px; }
  .feedback-panel h2 { clear:both; max-width:12ch; margin:20px 0 18px; font-size:clamp(28px,7vw,36px); line-height:1.15; }
  .feedback-panel > p { margin-bottom:28px; font-size:15px; line-height:1.55; }
  .feedback-panel > .dialog-close:last-child { float:none; width:100%; min-height:48px; justify-content:center; }
  .feedback-panel::backdrop { background:#000b; backdrop-filter:blur(5px); }
}
@keyframes feedback-drawer-in { from { transform:translateY(100%); opacity:.7; } to { transform:translateY(0); opacity:1; } }
@media(prefers-reduced-motion:reduce) { .feedback-panel[open] { animation:none; } }

/* Testimonial videos use the same bottom-drawer pattern on phones. */
@media(max-width:600px) {
  .video-panel {
    position:fixed;
    inset:auto 0 0;
    width:100%;
    max-width:none;
    max-height:min(88dvh,680px);
    margin:0;
    padding:40px 20px calc(24px + env(safe-area-inset-bottom,0px));
    overflow-y:auto;
    overscroll-behavior:contain;
    border-radius:22px 22px 0 0;
    box-shadow:0 -18px 52px #0008;
  }
  .video-panel::before { content:""; position:absolute; top:11px; left:50%; width:42px; height:4px; border-radius:999px; background:#ffffff75; transform:translateX(-50%); }
  .video-panel[open] { animation:feedback-drawer-in .38s cubic-bezier(.22,1,.36,1) both; }
  .video-panel > .dialog-close:first-child { float:none; position:absolute; top:28px; right:20px; width:44px; height:44px; padding:10px; justify-content:center; font-size:0; }
  .video-panel > .dialog-close:first-child .icon { width:20px; height:20px; }
  .video-panel h2 { clear:both; padding-right:50px; margin:16px 0 24px; font-size:clamp(26px,7vw,34px); line-height:1.15; }
  .video-panel .video-mount { aspect-ratio:16/9; margin-bottom:20px; }
  .video-panel .video-external { width:100%; justify-content:center; }
  .video-panel::backdrop { background:#000b; backdrop-filter:blur(5px); }
}
@media(prefers-reduced-motion:reduce) { .video-panel[open] { animation:none; } }

/* Keep the practice-area cards within the mobile content column. */
@media(max-width:600px) {
  #areas .area-grid {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:none;
    grid-auto-rows:auto;
    gap:12px;
  }
  #areas .area-card,
  #areas .area-card.featured {
    grid-column:auto;
    grid-row:auto;
    min-width:0;
    min-height:254px;
    padding:20px;
    justify-content:space-between;
    gap:28px;
  }
  #areas .area-card > div,
  #areas .area-card.featured > div { min-width:0; padding-right:0; }
  #areas .area-card h3 { overflow-wrap:anywhere; }
  #areas .area-card.featured h3 { font-size:clamp(28px,7.5vw,36px); line-height:1.14; }
  #areas .area-card p { padding-right:56px; }
  #areas .area-card.featured p { padding-right:68px; }
  #areas .area-card b { right:0; bottom:0; }
}

/* Panoramic office photograph: a central focal point and soft contrast gradients. */
.statement {
  background-image:
    linear-gradient(90deg,rgba(10,12,13,.78) 0%,rgba(10,12,13,.5) 32%,rgba(10,12,13,.08) 63%,rgba(10,12,13,.26) 100%),
    linear-gradient(0deg,rgba(10,12,13,.38) 0%,transparent 62%),
    url('/assets/office-gallery/sala-reunioes.jpeg');
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}
@media(min-width:1100px) {
  .statement {
    background-position:center,center,right center;
    background-size:cover,cover,cover;
    background-color:#55585a;
  }
}
/* Anchor the mobile call-to-action to the image's darkened lower edge. */
@media(max-width:600px) {
  .statement {
    height:clamp(380px,110vw,480px);
    padding:24px;
    background-image:
      linear-gradient(0deg,#111e 0%,#111a 42%,#1112 78%),
      url('/assets/office-gallery/sala-reunioes.jpeg');
    background-position:center,calc(84% + 36px) center;
    background-size:cover;
  }
  .statement > div {
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-end;
    gap:24px;
  }
  .statement h2 {
    max-width:100%;
    margin:0;
    font-size:clamp(32px,8vw,38px);
    line-height:1.08;
  }
  .statement .button { min-height:52px; }
}

/* Keep the consent checkbox aligned to the first line on narrow contact forms. */
@media(max-width:600px) {
  #contactos .fields .consent { align-items:flex-start; gap:12px; margin-top:6px; line-height:1.45; }
  #contactos .fields .consent input { margin-top:2px; }
}

.office-gallery-card {
  position: relative;
  display: block;
  width: 148px;
  height: 148px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 8px;
  background: rgb(17 17 17 / 76%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.office-gallery-card:hover,
.office-gallery-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgb(0 0 0 / 34%);
}
.office-gallery-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.office-gallery-card:active { transform: scale(.99); }
.office-gallery-hint {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: max-content;
  max-width: min(240px, 65vw);
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 6px;
  background: #171716;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  box-shadow: 0 6px 20px rgb(0 0 0 / 28%);
  opacity: 0;
  visibility: hidden;
  transform: translate(6px, -50%);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}
.office-gallery-hint::after { content: ''; position: absolute; left: 100%; top: 50%; border: 6px solid transparent; border-left-color: #171716; transform: translateY(-50%); }
.office-gallery-card:hover .office-gallery-hint,
.office-gallery-card:focus-visible .office-gallery-hint { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.office-gallery-thumbs { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: hidden; border-radius: 4px; }
.office-gallery-thumb { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; border-radius: 2px; }
.office-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .25s ease; }
.office-gallery-card:hover .office-gallery-thumb img { transform: scale(1.04); }
.office-gallery-more img { filter: brightness(.5); }
.office-gallery-more > span { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 22%); color: #fff; font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.office-gallery-panel {
  width: min(1080px, calc(100% - 32px));
  max-width: 1080px;
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 10px;
  background: #20201f;
  color: #fff;
}
.office-gallery-panel::backdrop { background: #000b; backdrop-filter: blur(8px); }
.office-gallery-panel h2 { margin: 8px 0 26px; font-size: clamp(26px, 4vw, 38px); font-weight: 500; }
.office-gallery-panel > .eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.office-gallery-grid { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.office-gallery-grid figure { min-width: 0; margin: 0; }
.office-gallery-open { display:block; width:100%; padding:0; border:0; border-radius:6px; background:transparent; cursor:zoom-in; }
.office-gallery-open:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.office-gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; object-fit: cover; background: #111; }
.office-gallery-grid figcaption { margin-top: 8px; color: rgb(255 255 255 / 78%); font-size: 13px; }
.office-lightbox[hidden] { display:none; }
.office-lightbox { position:fixed; z-index:5; inset:0; display:grid; grid-template-columns:minmax(0, 1fr); grid-template-rows:56px minmax(0, 1fr); align-items:center; justify-items:center; gap:8px; padding:18px; background:rgb(0 0 0 / 94%); }
.office-lightbox-stage { grid-column:1; grid-row:2; place-self:center; display:flex; flex-direction:column; align-items:stretch; width:max-content; max-width:calc(100vw - 56px); }
.office-lightbox-back { align-self:flex-start; margin-bottom:10px; }
.office-lightbox figure { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; min-height:0; max-width:100%; max-height:100%; margin:0; text-align:center; }
.office-lightbox-image { display:block; width:auto; max-width:min(100%, 1100px); max-height:calc(78vh - 30px); margin:auto; object-fit:contain; }
.office-lightbox-caption { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:12px; color:#fff; font-size:14px; }
.office-lightbox-prev,.office-lightbox-next { width:40px; height:40px; }
@media (max-width: 760px) { .office-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .office-gallery-grid { grid-template-columns: 1fr; gap: 18px; }
  .office-gallery-panel { width: calc(100% - 20px); max-height: 92vh; padding: 18px; }
  .office-gallery-card .office-gallery-hint { right:auto; left:50%; top:auto; bottom:calc(100% + 8px); transform:translate(-50%, 6px); }
  .office-gallery-card:hover .office-gallery-hint,.office-gallery-card:focus-visible .office-gallery-hint { transform:translate(-50%, 0); }
  .office-gallery-hint::after { display:none; }
  .office-lightbox { gap:4px; padding:8px; }
  .office-lightbox-prev,.office-lightbox-next { width:38px; height:38px; }
}

.office-directory-cards article[data-office="coimbra"] { position: relative; }
.office-directory-cards article[data-office="coimbra"] .office-gallery-card {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: clamp(210px, 26.5%, 270px);
  height: calc(100% - 36px);
  padding: 6px;
}
@media (max-width: 600px) {
  .office-directory-cards article[data-office="coimbra"] .office-gallery-card {
    position: static;
    width: 148px;
    height: 148px;
    margin-top: 24px;
  }
}
