/* ============================================================
   Heka Producciones — prototype styles
   Tokens map 1:1 to Elementor Global Colors / Global Fonts.
   ============================================================ */

/* ---------- Fonts (self-hosted from the design system) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque 72"; src: url("../fonts/BricolageGrotesque_72pt-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
/* Variable cut (opsz 12–96, wdth, wght): used where a specific optical size is asked for */
@font-face { font-family: "Bricolage Grotesque VF"; src: url("../fonts/BricolageGrotesque-Variable.ttf") format("truetype"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/Gabarito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/Gabarito-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Radio Canada Big"; src: url("../fonts/RadioCanadaBig-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Radio Canada Big"; src: url("../fonts/RadioCanadaBig-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --black: #000000;
  --dark: #1F1F1F;
  --ink-700: #2A2A2A;
  --ink-600: #3A3A3A;
  --ink-400: #8A8A8A;
  --ink-300: #B5B5B5;
  --white: #F8F6F7;
  --pure-white: #FFFFFF;
  --cyan: #41EAD4;
  --cyan-300: #8BF1E2;
  --cyan-700: #1FB7A4;
  --cyan-900: #0D6157;

  --border-hairline: rgba(248, 246, 247, 0.08);
  --border-soft: rgba(248, 246, 247, 0.16);
  --border-strong: rgba(248, 246, 247, 0.32);

  --font-display: "Bricolage Grotesque 72", "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-head: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-label: "Gabarito", "Helvetica Neue", sans-serif;
  --font-body: "Radio Canada Big", "Helvetica Neue", sans-serif;
  --lh-body: 1.3; /* one line height for every body text (Radio Canada Big) on the site */

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 120ms;
  --base: 200ms;
  --slow: 320ms;

  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1280px;
  --section: clamp(64px, 8vw, 112px);
  --header-h: 80px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--cyan); color: var(--black); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--ink-600) var(--black); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 999px; border: 2px solid var(--black); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--black); padding: 10px 16px; border-radius: 999px; font-weight: 500;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type roles ---------- */
.label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.subhead {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.body-l { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-300); max-width: 60ch; }
.muted { color: var(--ink-300); }

/* Cyan emphasis — one technique per section */
.paint em { font-style: normal; color: var(--cyan); }
.marker em {
  font-style: normal;
  color: var(--black);
  /* Slightly slimmer than the full line box */
  background: linear-gradient(var(--cyan), var(--cyan)) 0 60% / 100% 84% no-repeat;
  padding: 0 0.1em;
  margin: 0 -0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Section head: label sits in its own rail beside the heading */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px 32px;
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.sec-head .label { padding-top: 0.9em; }
.sec-head .label::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); margin-right: 10px; vertical-align: 1px;
}
.sec-head .body-l { margin-top: 24px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 16px; line-height: 1;
  white-space: nowrap;
  transition: background var(--base) var(--ease), color var(--base) var(--ease), border-color var(--base) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--cyan); color: var(--black); }
.btn-primary:hover { background: var(--cyan-300); }
.btn-primary:active { background: var(--cyan-700); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }

.text-link {
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 0.25em; text-decoration-thickness: 1px;
  transition: text-decoration-color var(--base) var(--ease), color var(--base) var(--ease);
}
.text-link:hover { text-decoration-color: var(--cyan); }

.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background var(--slow) var(--ease), border-color var(--slow) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(0, 0, 0, 0.92); border-bottom-color: var(--border-hairline); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 40px; }
.logo { display: block; flex: none; }
.logo img { height: 26px; width: auto; }
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a { white-space: nowrap; font-weight: 500; font-size: 15px; transition: color var(--base) var(--ease); }
.main-nav a[aria-current="true"] { color: var(--cyan); }
.lang { display: flex; align-items: center; gap: 4px; }
.lang button { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 4px; opacity: 0.55; transition: opacity var(--base) var(--ease); }
.lang button:hover, .lang button[aria-pressed="true"] { opacity: 1; }
.lang-flag { display: block; width: 22px; height: auto; aspect-ratio: 3 / 2; border-radius: 2px; }
.lang button[aria-pressed="true"] .lang-flag { outline: 1.5px solid var(--cyan); outline-offset: 2px; }
.header-cta { min-height: 44px; padding: 0 22px; font-size: 15px; }
.header-wa { display: inline-flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--border-soft); transition: border-color var(--base) var(--ease); }
.header-wa:hover { border-color: var(--border-strong); }
.header-cta + .header-wa { margin-left: -28px; } /* 12px from the CTA instead of the 40px header gap */
.header-wa img, .btn-wa img { width: 20px; height: 20px; }
.btn-wa { gap: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--border-soft); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--black);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 40px;
  visibility: hidden; opacity: 0;
  transition: opacity var(--slow) var(--ease), visibility 0s linear var(--slow);
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity var(--slow) var(--ease); }
.mobile-menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.mobile-menu nav a { font-family: var(--font-head); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1.15; }
.mobile-menu-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 40px; }
/* Language first, right under the logo bar */
.mobile-menu .lang { margin: 8px 0 0; justify-content: center; gap: 8px; }
.mobile-menu .lang button { min-width: 44px; min-height: 44px; }
.mobile-menu .lang-flag { width: 30px; }

/* Full menu on a narrow desktop/tablet: tighter spacing so the long ES/PT button still fits */
@media (min-width: 1081px) and (max-width: 1200px) {
  .site-header .wrap { gap: 26px; }
  .main-nav { gap: 22px; }
  .header-cta { padding: 0 18px; }
  .header-cta + .header-wa { margin-left: -16px; }
}
@media (max-width: 1080px) { /* hamburger menu up to 1080px: the full menu (Our Work · What We Do · Our Network) needs it in ES/PT */
  .main-nav, .site-header .lang { display: none; }
  .header-cta { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .header-wa, .header-cta + .header-wa { width: 40px; height: 40px; margin-left: 0; }
  .site-header .wrap { gap: 10px; }
  .site-header .logo img, .mobile-menu .logo img { height: 19px; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--black); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; filter: saturate(0.85); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 28%),
    linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 42%, rgba(0,0,0,0) 70%);
}
.pending-tag {
  position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--header-h) + 16px); z-index: 1;
  font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-300); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 6px 12px;
}
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hero-top .arrow { width: clamp(40px, 4vw, 64px); height: auto; flex: none; transform: rotate(180deg); }
.hero-body { margin-top: auto; padding-top: clamp(96px, 10vw, 180px); }
/* Three lines max on desktop */
.hero h1 { font-size: clamp(40px, 6.2vw, 92px); line-height: 0.96; max-width: 16.5ch; }
.hero-kicker { font-family: var(--font-label); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.3; font-size: clamp(13px, 1.1vw, 17px); color: var(--ink-300); margin-top: clamp(16px, 1.8vw, 24px); }
.hero-tagline { font-family: var(--font-label); font-weight: 400; letter-spacing: 0; line-height: 1.25; font-size: clamp(20px, 2vw, 30px); color: var(--white); margin-top: clamp(32px, 4vw, 56px); max-width: 56ch; }
.hero-tagline em { font-style: normal; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.hero-label { text-align: right; padding-top: 6px; }

/* One authored moment: the hero lands line by line */
.js .hero [data-rise] { animation: rise 900ms var(--ease-expo) both; }
.js .hero [data-rise="2"] { animation-delay: 120ms; }
.js .hero [data-rise="3"] { animation-delay: 240ms; }
.js .hero [data-rise="4"] { animation-delay: 360ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 900px) {
  .hero { min-height: 92svh; padding-top: calc(var(--header-h) + 24px); }
  .hero-label, .pending-tag { display: none; }
  .hero-body { padding-top: 72px; }
}

/* ---------- Services ---------- */
/* Expanding photo panels: one open at a time, the rest are slim strips with a vertical title */
.svc-panels { display: flex; gap: 8px; height: clamp(480px, 42vw, 620px); margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.svc-panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  border-radius: 8px; background: var(--dark); cursor: pointer; outline-offset: 3px;
  transition: flex-grow 800ms var(--ease-expo);
}
.svc-panel.is-active { flex-grow: 4.2; cursor: default; }
.svc-panel img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.3; filter: saturate(0.75); transform: scale(1.06);
  transition: opacity 800ms var(--ease), transform 1200ms var(--ease-expo), filter 800ms var(--ease);
}
.svc-panel.is-active img { opacity: 0.8; filter: saturate(0.9); transform: none; }
.svc-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.88) 100%); }
.svc-num {
  position: absolute; top: clamp(20px, 2vw, 28px); left: clamp(20px, 2vw, 28px);
  font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-300);
  transition: color 400ms var(--ease);
}
.svc-panel.is-active .svc-num { color: var(--cyan); }
.svc-vert {
  position: absolute; left: 50%; bottom: clamp(20px, 2vw, 28px);
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.01em; white-space: nowrap;
  transition: opacity 300ms var(--ease) 250ms;
}
.svc-open {
  position: absolute; left: clamp(24px, 2.6vw, 40px); right: clamp(24px, 2.6vw, 40px); bottom: clamp(24px, 2.6vw, 40px);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.svc-open .h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch; }
.svc-open p { margin-top: 14px; color: var(--white); max-width: 40ch; }
.svc-panel.is-active .svc-vert { opacity: 0; transition-delay: 0ms; }
.svc-panel.is-active .svc-open { opacity: 1; transform: none; transition: opacity 500ms var(--ease) 350ms, transform 700ms var(--ease-expo) 350ms; }
@media (hover: hover) { .svc-panel:not(.is-active):hover img { opacity: 0.45; } }

/* ---------- Clients ---------- */
.clients { border-block: 1px solid var(--border-hairline); padding-block: clamp(48px, 6vw, 80px); }
.clients-title { color: var(--pure-white); margin-bottom: 32px; text-align: center; text-wrap: balance; }
/* Logo marquee: two full-bleed rows drifting in opposite directions */
.logo-marquee {
  display: flex; flex-direction: column; gap: clamp(4px, 0.8vw, 12px); /* antes clamp(8px, 1.4vw, 20px) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  --logo-scale: 1.105; /* 1.3 × 0.85 (5/11/2026) */
}
.logo-row { overflow: hidden; }
.logo-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: logo-run 80s linear infinite; }
.logo-row.to-right .logo-track { animation-direction: reverse; animation-duration: 90s; }
.logo-track li { flex: none; display: flex; align-items: center; justify-content: center; height: clamp(84px, 8.4vw, 124px); padding: 0 clamp(28px, 3.4vw, 56px); /* alto antes clamp(100px, 10vw, 148px), 5/11/2026 */ }
.logo-track img {
  /* White versions of each logo (assets/clients-white); --w gives every mark the same optical area */
  width: calc(var(--w) * var(--logo-scale)); max-width: none; height: auto;
  opacity: 0.6;
  transition: opacity var(--base) var(--ease);
}
.logo-track li:hover img { opacity: 1; }
@keyframes logo-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .logo-track li[aria-hidden] { display: none; }
}

/* Work title: one line per sentence at every width */
#work-title .line { display: block; white-space: nowrap; }

/* Destinations: centred section head */
.destinations .sec-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.destinations .sec-head .label { padding-top: 0; }
.destinations .sec-head .label::before { content: none; }
.destinations .sec-head .h2 { max-width: 18ch; }
.destinations .sec-head .h2 .line { display: block; } /* each phrase starts its own line */
/* Wide screens: two lines, one per phrase (no break inside "Connected across markets.") */
@media (min-width: 769px) {
  .destinations .sec-head .h2 { max-width: none; }
  .destinations .sec-head .h2 .line { white-space: nowrap; }
}

/* ---------- Destinations: dot-matrix map (drawn by main.js with d3-geo) ---------- */
.destinations { overflow-x: clip; padding-bottom: clamp(32px, 4vw, 56px); }
#work { padding-top: clamp(40px, 5vw, 72px); }
/* Full bleed: the map runs edge to edge */
.map-scroll { position: relative; width: calc(100vw - var(--sbw, 0px)); margin-left: calc(50% - (100vw - var(--sbw, 0px)) / 2); }
.map { position: relative; aspect-ratio: 1000 / 460; --tag-h: clamp(24px, 2.1vw, 30px); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-svg .graticule { fill: none; stroke: rgba(248, 246, 247, 0.06); stroke-width: 0.6; }
.map-svg .land-dots { fill: rgba(248, 246, 247, 0.3); }
.map-svg .arc { fill: none; stroke-width: 1.2; stroke-linecap: round; opacity: 0; }
/* Journeys: a soft glowing line that opens out from the home market, with a glow on the whole layer */
.map-svg .pulses { filter: drop-shadow(0 0 4px rgba(65, 234, 212, 0.55)); }
.map-svg .bloom { fill: none; stroke-width: 1.8; stroke-linecap: round; opacity: 0; }
/* Our offices / Our network */
.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: clamp(12px, 1.6vw, 20px) 0 0; padding: 0; }
.map-legend li {
  list-style: none; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(248, 246, 247, 0.75);
}
.map-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.map-legend li.own { color: var(--cyan); }
.map-legend li.own::before { background: var(--cyan); box-shadow: 0 0 8px 1px rgba(65, 234, 212, 0.55); }
.map-points { position: absolute; inset: 0; margin: 0; padding: 0; }
.js .map:not(.is-drawn) .map-points { visibility: hidden; }
.map-points li { list-style: none; }
.map-point {
  position: absolute; z-index: 1;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.map-point .dot {
  position: relative; z-index: 2;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white);
  transition: transform var(--base) var(--ease), opacity var(--slow) var(--ease);
}
.map-point.own .dot {
  width: 15px; height: 15px; background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(65, 234, 212, 0.55), 0 0 28px 6px rgba(65, 234, 212, 0.2);
}
/* Intro (only once JS has drawn the map): offices pop in, then the network fades in point by point */
.map-point:not(.own) .dot { transition: transform var(--base) var(--ease), opacity 600ms var(--ease) calc(500ms + var(--i, 0) * 70ms); }
.map.is-waiting .map-point.own .dot { transform: scale(0); opacity: 0; }
.map.is-waiting .map-point:not(.own) .dot { opacity: 0; }
.map-point .tag {
  position: absolute; z-index: 1; top: 50%; left: 22px;
  height: var(--tag-h); margin-top: calc(var(--tag-h) * (var(--dy, 0) - 0.5));
  display: flex; align-items: center;
  padding: 0 14px 0 20px; border-radius: 999px;
  background: var(--white); color: var(--black);
  font-family: var(--font-label); font-weight: 700; font-size: clamp(10px, 0.84vw, 12px); letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0 round 999px);
  opacity: 0;
  transition: clip-path 200ms var(--ease), opacity 200ms var(--ease);
  pointer-events: none;
}
.map-point.own .tag { background: var(--cyan); }
.map-point.left .tag { left: auto; right: 22px; padding: 0 20px 0 14px; clip-path: inset(0 0 0 100% round 999px); }
/* Every label stays open: offices slide out with their dots, the network follows point by point */
.map-point .tag, .map-point.left .tag { clip-path: inset(0 0 0 0 round 999px); opacity: 1; }
.map-point.own .tag { transition-delay: 250ms; }
.map-point:not(.own) .tag { background: rgba(248, 246, 247, 0.92); transition-delay: calc(650ms + var(--i, 0) * 70ms); }
.map.is-waiting .map-point .tag { clip-path: inset(0 100% 0 0 round 999px); opacity: 0; transition-delay: 0ms; }
.map.is-waiting .map-point.left .tag { clip-path: inset(0 0 0 100% round 999px); }
.map-point.is-open, .map-point:focus-visible { z-index: 5; }
.map-point.is-open .tag, .map-point:focus-visible .tag { clip-path: inset(0 0 0 0 round 999px); opacity: 1; }
.map-point.is-open .dot, .map-point:focus-visible .dot { transform: scale(1.2); }
@media (hover: hover) {
  .map-point:hover { z-index: 5; }
  .map-point:hover .tag { clip-path: inset(0 0 0 0 round 999px); opacity: 1; }
  .map-point:hover .dot { transform: scale(1.2); }
}
.map-point:focus-visible { outline-offset: 0; }

/* Network pillars under the ticker: three editorial columns split by hairlines */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; list-style: none; }
.pillar { padding: 0 clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--border-hairline); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(28px, 3.4vw, 48px); }
.pillar-icon { display: inline-flex; color: var(--cyan); }
.pillar-icon .icon { width: 32px; height: 32px; }
.pillar .h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-300); max-width: 34ch; line-height: var(--lh-body); }

/* Country ticker under the map: full bleed, endless horizontal run */
.marquee {
  width: calc(100vw - var(--sbw, 0px)); margin-left: calc(50% - (100vw - var(--sbw, 0px)) / 2);
  margin-top: 8px;
  overflow: hidden;
  border-block: 1px solid var(--border-hairline);
  padding-block: clamp(14px, 1.6vw, 22px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: flex; align-items: center;
  font-family: var(--font-label); font-weight: 700; color: var(--white); text-transform: uppercase;
  font-size: clamp(20px, 2.1vw, 30px); line-height: 1; letter-spacing: 0.04em; white-space: nowrap;
}
.marquee li.own { color: var(--cyan); }
.marquee li::after {
  content: ""; width: 0.16em; height: 0.16em; border-radius: 50%;
  background: var(--border-strong); margin-inline: 0.5em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Work ---------- */
.case-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.case-card {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--dark);
  border: 1px solid var(--border-hairline); border-radius: 12px; overflow: hidden;
  transition: border-color var(--base) var(--ease);
}
/* Featured spans the row (below); the other four sit 2 × 2 */
.case-card:not(.featured) { grid-column: span 3; }
/* An odd card left over at the end takes the full row, image beside the text
   (with Pandora on its own row, that happens when the total is even; today there are 7, so none is left over) */
.case-card:not(.featured):last-child:nth-child(even) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* Case titles: brand + ":" keep their weight, the rest is regular */
.title-rest { font-weight: 400; }
/* Case page titles ("Brand: rest"): the display face only has ExtraBold, so the rest uses the regular cut */
.page-title .title-rest { font-family: var(--font-head); font-weight: 400; }
.case-card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-700); }
.case-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-expo); }
.case-card .body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.case-card .h3 { margin-top: 2px; text-wrap: balance; }
.case-card p { font-size: 15px; color: var(--ink-300); }
.case-card .go { margin-top: auto; padding-top: 12px; font-weight: 500; display: inline-flex; gap: 8px; transition: color var(--base) var(--ease); }
.case-card:hover { border-color: var(--cyan); }
.case-card:hover .media img { transform: scale(1.04); }
.case-card:hover .go { color: var(--cyan); }

.case-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case-card.featured .media { aspect-ratio: 3 / 2; }
.case-card.featured .body { padding: clamp(24px, 3vw, 40px); gap: 14px; }
.case-card.featured .h3 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.03em; }
.case-card.featured p { font-size: 17px; }
.case-card.featured .results {
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border-soft);
  font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.015em; color: var(--white);
}

.photo-pending {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: #0A0A0A;
  border: 1px dashed var(--border-strong);
  font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400);
}
.case-card .photo-pending { border: 0; border-bottom: 1px dashed var(--border-strong); }

/* ---------- Team + stats ---------- */
.team-head { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 980px; margin-inline: auto; }
.team-head .label { display: block; margin-bottom: 28px; }
.team-head .body-l { margin-top: 32px; max-width: 52ch; }

/* Title: white line + pixel smiley, then a cyan slab line */
.team-title { font-size: clamp(36px, 7vw, 108px); line-height: 1.04; letter-spacing: -0.035em; text-align: left; text-wrap: nowrap; }
.team-title em {
  font-style: normal; color: var(--dark);
  /* Slimmer slab than the full line box */
  background: linear-gradient(var(--cyan), var(--cyan)) 0 62% / 100% 80% no-repeat;
  padding: 0 0.14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.team-smiley {
  display: inline-block; vertical-align: top;
  width: 1.3em; height: auto; margin: -0.08em -0.5em -0.6em 0.12em;
  position: relative; z-index: 1;
  transform: rotate(7deg); pointer-events: none;
  /* Black fill inside the pixel outline (the PNG itself is hollow) */
  background: radial-gradient(closest-side, var(--black) 93%, transparent 94%);
}

/* Full-width figures strip, hairline dividers between columns */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-block: 1px solid var(--border-hairline);
}
.stat { display: flex; flex-direction: column; gap: 18px; padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 48px); }
.stat + .stat { border-left: 1px solid var(--border-hairline); }
.stat .num {
  display: inline-flex; align-items: flex-start;
  font-family: var(--font-display); font-weight: 800; color: var(--white);
  font-size: clamp(64px, 7.4vw, 120px); line-height: 0.86; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat [data-count] { display: inline-block; text-align: right; }
.stat .sym {
  color: var(--cyan); font-size: 0.42em; line-height: 1; vertical-align: 0;
  margin-left: 0.04em; margin-top: 0.02em;
}
.stat .cap {
  font-family: var(--font-label); font-weight: 700; font-size: 13px; line-height: 1.3;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
}

/* ---------- Closing: book a call ---------- */
.closing { border-top: 1px solid var(--border-hairline); }
.closing .wrap { text-align: center; }
.closing h2 { font-size: clamp(44px, 6.4vw, 96px); max-width: 15ch; margin-inline: auto; }
@media (max-width: 600px) { .closing h2 { font-size: clamp(30px, 8.6vw, 44px); max-width: none; } } /* phones: fewer lines */
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }

.booking {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  background: var(--dark); border: 1px solid var(--border-hairline); border-radius: 12px;
}
.booking-info { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--border-hairline); }
.booking-info img { width: 184px; height: auto; margin-bottom: 16px; }
/* Google's page is light and can't be restyled; it sits in a clean inset frame */
.booking-embed { padding: 12px; }
.booking-embed iframe { display: block; width: 100%; height: 600px; border-radius: 8px; background: var(--pure-white); }

/* ---------- Book a call pop-up ---------- */
.book-dialog {
  width: min(900px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 12px; overflow: auto;
  background: transparent; color: var(--white);
}
.book-dialog::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.book-dialog[open] { animation: dialog-in 320ms var(--ease-expo); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } }
.book-dialog .booking { margin-top: 0; }
.book-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--black); }
/* Step 1: intro + call language */
.book-choose { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 56px); padding-top: clamp(56px, 6vw, 72px); }
.book-choose .body-l { max-width: 46ch; margin-bottom: 12px; }
.book-chosen { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
.book-choose[hidden], .booking-embed[hidden], .book-chosen[hidden] { display: none; }
.book-chosen .label { color: var(--cyan); }

/* Call language buttons (pop-up and contact page) */
.call-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.call-lang {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px 18px; border: 1px solid var(--border-hairline); border-radius: 12px;
  background: var(--black); color: var(--white); text-align: left; cursor: pointer;
  transition: border-color var(--base) var(--ease), background var(--base) var(--ease);
}
.call-lang-name { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 2vw, 28px); line-height: 1; }
.call-lang-hint { font-size: 13px; color: rgba(248, 246, 247, 0.65); }
.call-lang:hover, .call-lang:focus-visible { border-color: var(--cyan); background: rgba(65, 234, 212, 0.08); }
.call-lang:hover .call-lang-name, .call-lang:focus-visible .call-lang-name { color: var(--cyan); }
.book-choice { display: flex; flex-direction: column; gap: 16px; margin-top: clamp(32px, 4vw, 48px); max-width: 760px; }
@media (max-width: 600px) {
  .call-langs { grid-template-columns: 1fr; }
  .call-lang { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 18px 20px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-hairline); padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; }
.footer-grid .logo img { height: 28px; }
.footer-grid p { margin-top: 20px; color: var(--ink-300); max-width: 36ch; }
.footer-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.footer-list a { display: inline-block; padding-block: 2px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border-hairline); font-size: 14px; color: var(--ink-400); }

/* ---------- Inner pages (case, contact) ---------- */
.page-top { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); }
.back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; color: var(--ink-300); transition: color var(--base) var(--ease); }
.back:hover { color: var(--cyan); }
.page-title { font-size: clamp(48px, 8.4vw, 128px); margin-top: 24px; max-width: 14ch; }
.page-top .meta { display: block; margin-top: 28px; }
.page-top .body-l { margin-top: 20px; }

.cover { margin-top: clamp(40px, 6vw, 80px); }
.cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.cover .photo-pending { aspect-ratio: 21 / 9; }

.case-file { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border-soft); }
.case-file div { padding: 28px 24px 32px 0; border-right: 1px solid var(--border-hairline); }
.case-file div + div { padding-left: 24px; }
.case-file div:last-child { border-right: 0; }
.case-file dt { margin-bottom: 10px; }
.case-file dd { font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -0.015em; }

.case-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 32px; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--border-hairline); }
.case-row .statement { font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.18; letter-spacing: -0.025em; max-width: 30ch; }
.did-list { display: grid; gap: 0; }
.did-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-top: 1px solid var(--border-hairline); font-size: clamp(17px, 1.4vw, 20px); max-width: 62ch; }
.did-list li:first-child { border-top: 0; padding-top: 4px; }
.did-list li::before { content: ""; width: 16px; height: 1px; background: var(--cyan); margin-top: 0.8em; }

/* Gallery carousel */
.gallery { padding-block: clamp(48px, 7vw, 96px); }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
/* Arrows sit on the photo strip, centred vertically: previous on the left edge, next on the right */
.gallery-stage { position: relative; }
.gallery-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(12px, 2vw, 24px); pointer-events: none; }
.gallery-nav .round-btn { pointer-events: auto; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gallery-nav .round-btn:hover { background: rgba(0, 0, 0, 0.8); }
.gallery-nav .round-btn:disabled { opacity: 0; } /* nothing more that way: no faded button over the photo */
.round-btn {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--base) var(--ease), color var(--base) var(--ease), opacity var(--base) var(--ease);
}
.round-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.round-btn:disabled { opacity: 0.3; pointer-events: none; }
.track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track button { flex: none; scroll-snap-align: start; height: clamp(340px, 46vw, 600px); overflow: hidden; cursor: zoom-in; }
.track img { height: 100%; width: auto; transition: opacity var(--base) var(--ease); }
.track button:hover img { opacity: 0.85; }
.counter { font-variant-numeric: tabular-nums; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.96); color: var(--white);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: 72px minmax(0, 1fr) 56px; align-items: center; justify-items: center; }
.lightbox figure { grid-column: 2; grid-row: 2; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .lb-close { grid-column: 3; grid-row: 1; }
.lightbox .lb-prev { grid-column: 1; grid-row: 2; }
.lightbox .lb-next { grid-column: 3; grid-row: 2; }
.lightbox .counter { grid-column: 2; grid-row: 3; color: var(--ink-300); font-size: 14px; }

/* ---------- Story cases (Farmasi and the ones built from it) ---------- */
.case-sub { margin-top: 20px; font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink-300); max-width: 40ch; }
/* Hero mosaic: one large tile and two stacked, each tagged with its destination */
/* Full bleed: the mosaic and the photo strip run edge to edge */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: clamp(440px, 50vw, 820px); margin-top: clamp(40px, 6vw, 80px); }
.mosaic-tile { position: relative; margin: 0; overflow: hidden; }
.mosaic-tile.big { grid-row: 1 / 3; }
.mosaic-tile.big figcaption { left: var(--gutter); bottom: 24px; } /* lines up with the text column */
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-tile figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); color: var(--white); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.case-file.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story { display: grid; gap: 20px; }
.story .body-l { color: var(--ink-300); max-width: 62ch; }
.story strong { font-weight: 500; color: var(--white); }
.case-row .story .statement { font-size: clamp(21px, 2.5vw, 34px); line-height: 1.12; }
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-block: clamp(40px, 6vw, 72px); }
.photo-strip button { display: block; overflow: hidden; cursor: zoom-in; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity var(--base) var(--ease), transform 900ms var(--ease-expo); }
.photo-strip button:hover img { opacity: 0.9; transform: scale(1.02); }
/* Destination tabs: each one swaps the carousel below */
.dest-gallery { border-top: 1px solid var(--border-hairline); }
.dest-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.dest-tabs button {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border-soft);
  font-weight: 500; font-size: 15px; color: var(--ink-300);
  transition: background-color var(--base) var(--ease), color var(--base) var(--ease), border-color var(--base) var(--ease);
}
.dest-tabs button:hover { border-color: var(--border-strong); color: var(--white); }
.dest-tabs button[aria-selected="true"] { background: var(--white); border-color: var(--white); color: var(--black); }
.track[hidden] { display: none; }
.dest-gallery .track button { height: clamp(280px, 36vw, 520px); }
/* Photo exhibition (Jeunesse): big photos in a row-by-row sequence, no carousel */
.expo { display: grid; gap: 6px; margin-top: clamp(48px, 7vw, 96px); }
.expo-row { display: grid; gap: 6px; }
.expo-row.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.expo-row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.expo button { display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.expo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity var(--base) var(--ease), transform 900ms var(--ease-expo); }
.expo-row.n1 img { aspect-ratio: 16 / 9; max-height: 92vh; }
.expo button:hover img { opacity: 0.9; transform: scale(1.02); }
@media (max-width: 768px) {
  .expo, .expo-row { gap: 4px; }
  .expo-row.n2, .expo-row.n3 { grid-template-columns: 1fr; }
  .expo-row.n1 img { aspect-ratio: 3 / 2; }
}

/* Pill on gallery photos (event, country, year), same look as the hero mosaic tags */
.track button, .expo button { position: relative; }
.shot-tag { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 8px 12px; border-radius: 16px; text-align: left; background: rgba(0, 0, 0, 0.62); color: var(--white); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
@media (max-width: 768px) { .shot-tag { left: 10px; bottom: 10px; max-width: min(calc(100% - 20px), calc(100vw - 52px)); padding: 6px 10px; font-size: 11px; } /* photos can be wider than the screen */ }

.next-case { border-top: 1px solid var(--border-soft); }
.next-link { display: block; margin-top: 20px; }
.next-link .h2 { max-width: 18ch; transition: color var(--base) var(--ease); }
.next-link:hover .h2 { color: var(--cyan); }
.next-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: clamp(48px, 7vw, 96px); }
.photo-pair img, .photo-pair .photo-pending { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); padding-block: clamp(48px, 7vw, 96px); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.form[hidden] { display: none; } /* after sending, only the thank-you message stays */
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-300); }
.field label .req { color: var(--cyan); margin-left: 2px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--dark); color: var(--white);
  border: 1px solid var(--border-soft); border-radius: 8px;
  font: inherit; font-size: 16px; caret-color: var(--cyan);
  transition: border-color var(--base) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; }
.field.has-error input, .field.has-error textarea { border-color: #FF8A7A; }
.field .error { font-size: 14px; color: #FF8A7A; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-success {
  margin-top: 24px;
  font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: var(--lh-body);
}

/* ---------- Responsive ---------- */
/* Below 960px the whole world fits the screen width (no sideways scroll). Every label open at once
   would bury Latin America, so labels take turns: the countries of the journey that is playing
   show their names (main.js adds .is-live), and a tap on any point shows its name. */
@media (max-width: 959px) {
  .map { --tag-h: 18px; }
  .map-point { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .map-point .dot { width: 7px; height: 7px; }
  .map-point.own .dot { width: 9px; height: 9px; box-shadow: 0 0 6px 1px rgba(65, 234, 212, 0.6), 0 0 16px 3px rgba(65, 234, 212, 0.2); }
  .map-point .tag { left: 13px; padding: 0 8px 0 10px; font-size: 9px; letter-spacing: 0.04em; }
  .map-point.left .tag { right: 13px; padding: 0 10px 0 8px; }
  .map:not(.is-waiting) .map-point:not(.is-live):not(.is-open) .tag { clip-path: inset(0 100% 0 0 round 999px); opacity: 0; transition-delay: 0ms; }
  .map:not(.is-waiting) .map-point.left:not(.is-live):not(.is-open) .tag { clip-path: inset(0 0 0 100% round 999px); }
  .map-point.is-live .tag, .map-point.is-open .tag { transition: clip-path 500ms var(--ease), opacity 400ms var(--ease); transition-delay: 0ms; }
  .map-point.is-live { z-index: 4; }
}

@media (max-width: 768px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--border-hairline); }
  .pillar:first-child { padding-top: 0; border-top: 0; }
  .pillar:last-child { padding-bottom: 0; }
  .pillar-top { margin-bottom: 20px; }
}

@media (max-width: 1024px) {
  /* Tablets and phones: every panel open, stacked */
  .svc-panels { flex-direction: column; height: auto; gap: 8px; }
  .svc-panel, .svc-panel.is-active { flex: none; min-height: clamp(260px, 52vw, 360px); cursor: default; }
  .svc-panel img, .svc-panel.is-active img { opacity: 0.6; transform: none; }
  .svc-panel .svc-num { color: var(--cyan); }
  .svc-vert { display: none; }
  .svc-open, .svc-panel.is-active .svc-open { opacity: 1; transform: none; transition: none; }
  .case-card.featured, .case-card:not(.featured):last-child:nth-child(even) { grid-template-columns: 1fr; }
  .case-card.featured .media { aspect-ratio: 16 / 10; }
  .booking { grid-template-columns: 1fr; }
  .booking-info { border-right: 0; border-bottom: 1px solid var(--border-hairline); }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .sec-head, .case-row { grid-template-columns: 1fr; }
  .sec-head .label { padding-top: 0; }
  .booking-embed { padding: 8px; }
  .booking-embed iframe { height: 720px; }

  .logo-marquee { --logo-scale: 0.8075; /* 0.95 × 0.85 */ }
  .logo-track li { height: 74px; padding: 0 22px; } /* antes 88px */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border-hairline); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .case-file { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-file div, .case-file div + div { padding: 20px 16px 24px 0; border-right: 0; border-bottom: 1px solid var(--border-hairline); }
  .case-file div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--border-hairline); }
  .cover img, .cover .photo-pending { aspect-ratio: 4 / 3; }
  .photo-pair { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; gap: 4px; }
  .mosaic-tile.big { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .mosaic-tile:not(.big) { aspect-ratio: 1; }
  .mosaic-tile figcaption { left: 10px; bottom: 10px; padding: 6px 10px; font-size: 11px; }
  .case-file.cols-3 { grid-template-columns: 1fr; }
  .case-file.cols-3 div, .case-file.cols-3 div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .photo-strip { grid-template-columns: 1fr; gap: 4px; }
  .dest-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .dest-tabs::-webkit-scrollbar { display: none; }
  .dest-tabs button { flex: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .lightbox[open] { grid-template-columns: 56px minmax(0, 1fr) 56px; }
}

/* ---------- Tighter leading on six home headlines (by ID only) ---------- */
#hero-title { line-height: 0.90; }
#services-title, #dest-title, #work-title { line-height: 0.92; }
#team-title { line-height: 0.96; }
#close-title { line-height: 0.88; }

/* ---------- Scroll reveals ---------- */
/* Animations (not transitions) so hover/focus transitions on the same elements keep working */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: 800ms var(--ease-expo) var(--d, 0ms) backwards; }
.js [data-reveal="rise"].is-in { animation-name: reveal-rise; }
.js [data-reveal="lift"].is-in { animation-name: reveal-lift; animation-duration: 900ms; }
.js [data-reveal="fade"].is-in { animation-name: reveal-fade; animation-duration: 1000ms; }
.js [data-reveal="clip"].is-in { animation-name: reveal-clip; animation-duration: 1100ms; }
@keyframes reveal-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes reveal-lift { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes reveal-fade { from { opacity: 0; } }
@keyframes reveal-clip { from { opacity: 0.4; clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 600px) {
  /* Hero: both buttons share one row */
  .hero .btn-row { flex-wrap: nowrap; gap: 8px; }
  .hero .btn-row .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
  /* Cases: one column */
  .case-grid { grid-template-columns: 1fr; }
  .case-card:not(.featured) { grid-column: auto; }
  /* Hero title: sized so each of its two lines fits a phone width */
  .hero h1 { font-size: clamp(28px, 9vw, 40px); max-width: none; }
  /* Network title: smaller and wider so it runs in fewer lines */
  .destinations .sec-head .h2 { font-size: clamp(24px, 7vw, 40px); max-width: none; }
  /* Work title: sized so each sentence fits a phone width */
  #work-title { font-size: clamp(24px, 8vw, 40px); max-width: none; }
  /* Closing: stacked, full width */
  .closing-actions { flex-direction: column; align-items: stretch; }
  /* Pop-up goes full screen */
  .book-dialog { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; margin: 0; }
  .book-dialog .booking { min-height: 100%; border-radius: 0; border: 0; align-content: start; }
  .book-dialog .book-choose { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}

/* Pop-up on wide screens: keep the close button clear of the calendar */
@media (min-width: 1025px) {
  .book-dialog .booking-embed { padding-top: 68px; }
}

/* Very narrow phones: ES/PT hero labels only fit one line at 14px */
@media (max-width: 374px) {
  .hero .btn-row .btn { font-size: 14px; }
}

/* Keep the cyan "cross-border" slab in one piece */
#hero-title em { white-space: nowrap; }

/* Phones: logo + "Book a call" (long in ES/PT) + WhatsApp + menu must share one row */
.header-cta .cta-short { display: none; }
@media (max-width: 480px) {
  .site-header .wrap { gap: 8px; }
  .site-header .logo img { height: 16px; }
  .header-cta { padding: 0 14px; font-size: 13px; min-height: 40px; }
  /* the full "Agenda una llamada" / "Agende uma ligação" does not fit: the short label does */
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
}
/* Very narrow phones (≤340px): a little less room around the round buttons */
@media (max-width: 340px) {
  .site-header .wrap { gap: 6px; }
  .site-header .logo img { height: 14px; }
  .header-cta { padding: 0 12px; }
  .header-wa, .header-cta + .header-wa, .menu-toggle { width: 36px; height: 36px; }
}

/* ---------- Sub-cases (Pandora): one card per event, its gallery opens in the pop-up ---------- */
.subcases { padding-top: clamp(48px, 7vw, 96px); }
.subcases > .label { display: block; margin-bottom: 8px; }
.subcase { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--border-hairline); }
.subcase.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.subcase.flip .subcase-media { order: 2; }
/* One horizontal photo; arrows (or a swipe) walk the event's gallery in place, a click opens the pop-up */
.subcase-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.sc-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sc-track::-webkit-scrollbar { display: none; }
.sc-track > button { flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sc-track img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.sc-track > button:hover img, .sc-track > button:focus-visible img { transform: scale(1.03); }
.subcase-media .gallery-nav { padding: 0 12px; }
.sc-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: var(--white); font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.subcase-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(15px, 1.2vw, 17px); color: var(--cyan); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.subcase-body .h3 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; margin-bottom: 24px; }
.subcase-points { display: grid; }
.subcase-points div { padding: 14px 0; border-top: 1px solid var(--border-hairline); }
.subcase-points dt { font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.subcase-points dd { color: var(--ink-300); line-height: var(--lh-body); max-width: 52ch; }
.subcase-stats { display: flex; flex-wrap: nowrap; gap: 16px clamp(24px, 3vw, 44px); list-style: none; margin: 20px 0 28px; padding: 18px 0 0; border-top: 1px solid var(--border-hairline); }
.subcase-stats li { display: grid; gap: 4px; align-content: start; min-width: 0; } /* figures stay on one row; long labels wrap instead */
.subcase-stats strong { font-family: "Bricolage Grotesque VF", var(--font-head); font-weight: 700; font-optical-sizing: none; font-variation-settings: "opsz" 96; font-size: clamp(44px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.03em; color: var(--white); }
.subcase-stats span { font-size: 13px; color: var(--ink-300); }
.subcase-stats strong .sym { font: inherit; color: var(--cyan); }
.subcase-open { gap: 6px; }
@media (max-width: 900px) {
  .subcase, .subcase.flip { grid-template-columns: 1fr; }
  .subcase.flip .subcase-media { order: 0; }
}
@media (max-width: 600px) {
  .subcase-open { width: 100%; justify-content: center; }
}

/* Desktop: the three events side by side, photos on top. Each card shares the row tracks of the
   section (subgrid), so titles, points, figures and buttons line up across the three columns. */
@media (min-width: 1025px) {
  .subcases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 2.6vw, 44px); padding-bottom: clamp(48px, 6vw, 88px); }
  .subcases > .label { grid-column: 1 / -1; margin-bottom: 24px; }
  .subcase, .subcase.flip { grid-row: span 6; grid-template-columns: 1fr; grid-template-rows: subgrid; row-gap: 0; align-items: start; padding-block: 32px 0; }
  .subcase-body { display: contents; }
  .subcase.flip .subcase-media { order: 0; }
  .subcase-media { margin-bottom: 28px; }
  .subcase-body .h3 { font-size: clamp(26px, 2.2vw, 34px); margin-bottom: 18px; }
  .subcase-points dd { font-size: 15px; }
  .subcase-stats { gap: 12px 28px; }
  .subcase-stats strong { font-size: clamp(40px, 3.6vw, 56px); }
  .subcase-open { justify-self: start; }
}

/* Gallery pop-up of a sub-case: event title on top, thumbnail rail at the bottom */
.lightbox .lb-title, .lightbox .lb-thumbs { display: none; }
.lightbox.rich[open] { grid-template-rows: 72px minmax(0, 1fr) 40px 96px; }
.lightbox.rich .lb-title { display: block; grid-column: 2; grid-row: 1; color: var(--white); justify-self: start; }
.lightbox.rich .lb-thumbs { display: flex; grid-column: 1 / -1; grid-row: 4; gap: 6px; max-width: 100%; overflow-x: auto; padding: 8px 16px 16px; scrollbar-width: none; justify-self: center; }
.lightbox.rich .lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: 0 0 auto; width: 92px; height: 64px; padding: 0; border: 0; background: none; opacity: 0.45; cursor: pointer; outline-offset: 2px; transition: opacity 200ms; }
.lb-thumbs button:hover { opacity: 0.8; }
.lb-thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--cyan); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
@media (max-width: 600px) {
  .lightbox.rich[open] { grid-template-rows: 56px minmax(0, 1fr) 32px 76px; }
  .lb-thumbs button { width: 64px; height: 48px; }
}

/* Contact form: spam trap, off screen (bots fill it, people never see it) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-error { grid-column: 1 / -1; color: #FF8A8A; margin: 0; }
