/* ==========================================================================
   Printideias: redesign 2026
   Dark, cinematic, B2B. Brand accents: amarelo #F5B324 / azul #2B5FD0
   Type: Archivo (display, expanded width for labels) · Inter (text)
   ========================================================================== */

:root {
  --accent: #f5b324;
  --accent-ink: #1a1203;
  --blue: #2b5fd0;

  --display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Theme: dark is the default palette */
  --bg: #07080a;
  --bg-2: #0c0e12;
  --bg-3: #12151b;
  --bg-rgb: 7 8 10;
  --ink: #f3efe6;
  --ink-rgb: 243 239 230;
  --ink-2: rgb(243 239 230 / .72);
  --ink-3: rgb(243 239 230 / .62);
  --line: rgb(243 239 230 / .10);
  --line-2: rgb(243 239 230 / .18);
  --hi-rgb: 255 255 255;
  --surface-rgb: 14 16 20;
  --card: rgb(255 255 255 / .035);
  --card-2: rgb(255 255 255 / .06);
  --spot: rgb(255 255 255 / .07);
  --tile-shadow: 0 30px 60px -28px rgb(0 0 0 / .7);
  --accent-fg: #f5b324;
  --logo-filter: none;
  --logo-dark: block;
  --credit-accent: #a3bbea;
  --logo-light: none;
  --icon-sun: block;
  --icon-moon: none;
  --grain-opacity: .08;
  --nav-alpha: .38;
  --shadow-lg: 0 24px 60px rgb(0 0 0 / .45);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f3efe6' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* Light theme: explicit choice, or system preference when no choice was saved */
:root[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-2: #ece9e2;
  --bg-3: #e2ded5;
  --bg-rgb: 245 243 238;
  --ink: #15161a;
  --ink-rgb: 21 22 26;
  --ink-2: rgb(21 22 26 / .74);
  --ink-3: rgb(21 22 26 / .64);
  --line: rgb(21 22 26 / .12);
  --line-2: rgb(21 22 26 / .2);
  --hi-rgb: 21 22 26;
  --surface-rgb: 255 255 255;
  --card: rgb(255 255 255 / .65);
  --card-2: rgb(21 22 26 / .05);
  --spot: rgb(255 255 255 / .95);
  --tile-shadow: 0 30px 50px -30px rgb(21 22 26 / .3);
  --accent-fg: #1f55c4;
  --logo-filter: invert(1);
  --logo-dark: none;
  --credit-accent: #2c4a7e;
  --logo-light: block;
  --icon-sun: none;
  --icon-moon: block;
  --grain-opacity: .04;
  --nav-alpha: .82;
  --shadow-lg: 0 24px 60px rgb(20 22 30 / .14);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2315161a' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  color-scheme: light;
}
/* Dark is the default; the light palette only applies when the visitor picks it (data-theme="light"). */

/* Zones that always sit on photography keep the dark palette in both themes */
.hero, .case, .tile--photo {
  --bg: #07080a;
  --bg-2: #0c0e12;
  --bg-3: #12151b;
  --bg-rgb: 7 8 10;
  --ink: #f3efe6;
  --ink-rgb: 243 239 230;
  --ink-2: rgb(243 239 230 / .72);
  --ink-3: rgb(243 239 230 / .62);
  --line: rgb(243 239 230 / .10);
  --line-2: rgb(243 239 230 / .18);
  --hi-rgb: 255 255 255;
  --surface-rgb: 14 16 20;
  --card: rgb(255 255 255 / .035);
  --card-2: rgb(255 255 255 / .06);
  --spot: rgb(255 255 255 / .07);
  --tile-shadow: 0 30px 60px -28px rgb(0 0 0 / .7);
  --accent-fg: #f5b324;
  --logo-filter: none;
  --logo-dark: block;
  --credit-accent: #a3bbea;
  --logo-light: none;
  --icon-sun: block;
  --icon-moon: none;
  --grain-opacity: .08;
  --nav-alpha: .38;
  --shadow-lg: 0 24px 60px rgb(0 0 0 / .45);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f3efe6' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  color-scheme: dark;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; }
em { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
/* Headline accent: second tone of the same face */
.hero__title em, h2 em, .intro__statement em, .leader__quote em, .phero__title em {
  font-style: normal; color: rgb(var(--ink-rgb) / .4);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 12px; font-weight: 500; font-stretch: 118%;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.eyebrow--center { justify-content: center; }

h2 {
  font-weight: 500;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 16ch;
  text-wrap: balance;
}

.section { position: relative; isolation: isolate; padding: clamp(88px, 11vw, 144px) 0; }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 80px); }
.section__head--split { grid-template-columns: 1fr; align-items: end; }
.section__head--split > .btn { justify-self: start; }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .section__head--split .section__lead { justify-self: end; }
  .section__head--split > .btn { justify-self: end; }
}
.section__head--split > div { display: grid; gap: 20px; }
.section__head--center { justify-items: center; text-align: center; }
.section__head--center h2 { max-width: 20ch; }
.section__lead { color: var(--ink-2); font-size: clamp(16px, 1.2vw, 18px); max-width: 44ch; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px; border-radius: 999px;
  font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:has(.btn__icon) { padding-right: 6px; }
.btn__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); color: var(--ink);
  transition: transform .4s var(--ease);
}
.btn__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn__icon--light { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent .btn__icon { background: var(--accent-ink); color: var(--accent); }
.btn--accent:hover { background: #ffc23d; box-shadow: 0 10px 30px rgb(245 179 36 / .28); }
.btn--ghost {
  background: rgb(var(--hi-rgb) / .06); border-color: var(--line-2); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgb(var(--hi-rgb) / .1); }
.btn--sm { height: 44px; font-size: 14px; padding-left: 18px; }
.btn--sm .btn__icon { width: 34px; height: 34px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 10px 0 22px;
  border-radius: 20px;
  background: rgb(var(--surface-rgb) / var(--nav-alpha));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background-color .4s, height .4s var(--ease);
}
.nav.is-scrolled .nav__bar { background: rgb(var(--surface-rgb) / .8); height: 58px; }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: none; gap: 30px; font-family: var(--display); font-size: 14px; color: var(--ink-2); }
.nav__links a { position: relative; transition: color .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links [data-current] { color: var(--ink); }
.nav__links a[data-current]::after { transform: translateX(-50%) scale(1); }
.nav__links { align-items: center; }
.nav__drop { position: relative; }
.nav__drop-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--ink-2); transition: color .25s;
}
.nav__drop-btn:hover, .nav__drop-btn[aria-expanded="true"] { color: var(--ink); }
.nav__drop-btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.nav__drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 22px); left: 50%; width: 300px; padding: 8px;
  display: grid; gap: 2px;
  border-radius: 18px; background: rgb(var(--surface-rgb) / .96); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; transition: background-color .2s; }
.nav__menu a::after { display: none; }
.nav__menu a:hover { background: var(--card-2); }
.nav__menu strong { font-weight: 500; color: var(--ink); font-size: 15px; }
.nav__menu span { font-family: var(--text); font-size: 13px; color: var(--ink-3); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__kit { display: none; font-family: var(--display); font-size: 14px; color: var(--ink-2); transition: color .25s; }
.nav__kit:hover { color: var(--ink); }
.nav__toggle {
  display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
}
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav__mobile {
  pointer-events: auto;
  max-width: var(--max); margin: 8px auto 0;
  display: grid; gap: 2px; padding: 10px;
  border-radius: 20px; background: rgb(var(--surface-rgb) / .94); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.nav__mobile.is-open { opacity: 1; transform: none; visibility: visible; }
.nav__mobile a { padding: 14px; border-radius: 12px; font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.nav__mobile a:hover { background: var(--card-2); }
.nav__mobile-label { padding: 12px 14px 2px; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nav__mobile a.nav__mobile-sub { padding: 9px 14px 9px 26px; font-size: 16px; color: var(--ink-2); }
.nav__mobile a.nav__mobile-cta { margin-top: 6px; background: var(--ink); color: var(--bg); text-align: center; }
.nav__mobile { max-height: calc(100svh - 110px); overflow-y: auto; }

@media (max-width: 560px) { .nav__cta .btn { display: none; } }
@media (min-width: 1000px) {
  .nav__links, .nav__kit { display: flex; }
  .nav__toggle, .nav__mobile { display: none; }
}

/* ---------- Theme assets & toggle ---------- */
.logo-dark { display: var(--logo-dark); }
.logo-light { display: var(--logo-light); }
.logos img, .marquee img { filter: var(--logo-filter); }
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.theme-toggle:hover { border-color: var(--line-2); background: var(--card-2); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: var(--icon-sun); }
.theme-toggle .i-moon { display: var(--icon-moon); }
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 130px;
}
.hero__slides { position: absolute; inset: 0; z-index: -3; background: var(--bg); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: scale(1.015); filter: brightness(.82) saturate(1.02) contrast(1.02);
}
@media (max-width: 760px) { .hero__slide img { object-position: var(--pos-m, var(--pos, 50% 50%)); } }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.015); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 60% at 0% 100%, rgba(245, 179, 36, .16), transparent 70%),
    linear-gradient(90deg, rgb(var(--bg-rgb) / .90) 0%, rgb(var(--bg-rgb) / .74) 45%, rgb(var(--bg-rgb) / .38) 100%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .6) 0%, rgb(var(--bg-rgb) / .1) 30%, rgb(var(--bg-rgb) / .35) 60%, var(--bg) 100%);
}
@media (max-width: 760px) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgb(var(--bg-rgb) / .70) 0%, rgb(var(--bg-rgb) / .78) 35%, rgb(var(--bg-rgb) / .90) 70%, var(--bg) 100%);
  }
}
.grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: 64px; align-items: end;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.hero__title {
  margin: 24px 0 26px;
  font-weight: 600;
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero__title em { color: rgb(var(--ink-rgb) / .74); }
.hero__title, .hero__lead { text-shadow: 0 2px 28px rgb(0 0 0 / .45); }
.hero__lead { max-width: 50ch; font-size: clamp(16px, 1.25vw, 18px); color: rgb(var(--ink-rgb) / .88); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Featured-project strip (drives the slideshow).
   Grid: label + counter on the top row, title/meta on the left, progress bars on the right. */
.feature {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 380px);
  grid-template-rows: auto auto auto;
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 6px;
  align-items: center;
}
.feature__text, .feature__nav { display: contents; }
.feature__label {
  grid-column: 1; grid-row: 1;
  font-family: var(--display); font-size: 11px; font-weight: 500; font-stretch: 118%;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-fg);
}
.feature__count {
  grid-column: 2; grid-row: 1; justify-self: end;
  font-family: var(--display); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.feature__count b { font-weight: 500; color: var(--ink); }
.feature__title {
  grid-column: 1; grid-row: 2;
  font-family: var(--display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15;
}
.feature__meta { grid-column: 1; grid-row: 3; font-size: 14px; color: var(--ink-2); }
.feature__title, .feature__meta { transition: opacity .35s, transform .35s var(--ease); }
.feature.is-swapping .feature__title, .feature.is-swapping .feature__meta { opacity: 0; transform: translateY(6px); }
.feature__bars { grid-column: 2; grid-row: 2 / span 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.feature__bars button { position: relative; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.feature__bars button::before, .feature__bars span {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
}
.feature__bars button::before { background: rgb(var(--ink-rgb) / .2); }
.feature__bars span { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.feature__bars button.is-done span { transform: scaleX(1); }
.feature__bars button.is-active span { animation: fill var(--slide, 7s) linear forwards; }
.feature:hover .feature__bars button.is-active span { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr auto; column-gap: 16px; }
  .feature__title { font-size: 20px; }
  .feature__bars { grid-column: 1 / -1; grid-row: 4; }
}


/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(64px, 8vw, 128px); width: max-content; animation: marquee 50s linear infinite; }
.marquee__track img { height: 42px; width: auto; max-width: 150px; opacity: .6; transition: opacity .3s; }
/* optical sizing: wordmarks are wide, so they run smaller; compact marks run bigger */
.marquee__track img.is-wide { height: 34px; }
.marquee__track img.is-square { height: 50px; }
.marquee__track img:hover { opacity: 1; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / stats ---------- */
.intro { padding-bottom: clamp(56px, 7vw, 96px); }
.intro__statement {
  margin-top: 26px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.25;
  letter-spacing: -.025em;
  max-width: 34ch;
  text-wrap: balance;
}
.intro__link { margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}
.stat { padding: 26px 16px 26px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.stat dt { font-size: 13px; color: var(--ink-3); max-width: 18ch; line-height: 1.45; }
.stat dd {
  display: flex; align-items: baseline; gap: .12em;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(44px, 5.2vw, 76px); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: lining-nums; white-space: nowrap;
}
.stat dd i { font-style: normal; font-weight: 400; font-size: .62em; align-self: flex-start; margin: .12em -.02em 0 0; color: var(--accent-fg); }
.stat dd small { margin-left: .14em; font-size: .36em; font-weight: 500; letter-spacing: -.02em; color: var(--ink-3); }
.stat:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(5, 1fr); }
  .stat { padding: 30px 22px 0; border-bottom: 0; border-left: 1px solid var(--line); }
  .stat:first-child { border-left: 0; padding-left: 0; }
  .stat:last-child { grid-column: auto; }
}

/* ---------- Glows ---------- */
.glow { position: absolute; pointer-events: none; z-index: -1; width: 900px; height: 900px; border-radius: 50%; filter: blur(40px); }
.glow--blue { background: radial-gradient(closest-side, rgba(43, 95, 208, .20), transparent 72%); top: 10%; right: -300px; }
.glow--warm { background: radial-gradient(closest-side, rgba(245, 179, 36, .12), transparent 72%); top: 0; left: -380px; }

/* ---------- Structure / bento ---------- */
.structure { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); overflow: hidden; }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile--hero { grid-column: 1 / -1; } }
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); }
  .tile--hero { grid-column: span 6; grid-row: span 2; }
  .tile:nth-child(2), .tile:nth-child(3), .tile--list, .tile--photo { grid-column: span 3; }
}
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: border-color .4s, background-color .4s, translate .5s var(--ease), box-shadow .5s var(--ease);
}
/* keep the scroll reveal and the hover motion on separate properties (transform vs translate) */
.js .bento .tile[data-reveal], .js .print-grid .tile[data-reveal] {
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s),
    border-color .4s, background-color .4s, translate .5s var(--ease), box-shadow .5s var(--ease);
}
/* pointer spotlight (fill + border ring); --mx/--my come from main.js */
.tile::before, .tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease);
}
.tile::before { z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%); }
.tile::after {
  z-index: 2; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(245 179 36 / .85), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tile__tag, .tile__mid span, .tile__big, .spec li > span, .spec li small, .tile__overlay { transition: color .4s, transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { translate: 0 -4px; border-color: var(--line-2); box-shadow: var(--tile-shadow); }
  .tile:hover::before, .tile:hover::after { opacity: 1; }
  .tile:hover .tile__tag { color: var(--accent-fg); }
  .tile:hover .tile__mid span { color: var(--accent-fg); }
  .tile--hero:hover .tile__big { transform: translateY(-8px); }
  .spec li:hover > span { transform: translateX(6px); }
  .spec li:hover small { color: var(--ink-2); }
  .tile--photo:hover .tile__overlay { transform: translateY(-6px); }
}
.tile__tag { font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tile__text { color: var(--ink-2); font-size: 15px; max-width: 42ch; }
.tile__mid {
  margin-top: auto;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(44px, 4vw, 58px); line-height: 1; letter-spacing: -.04em;
}
.tile__mid span, .tile__big span { font-size: .42em; margin-left: .1em; letter-spacing: -.02em; color: var(--ink-3); }
.tile--hero {
  justify-content: space-between; min-height: 440px;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(245, 179, 36, .22), transparent 55%),
    radial-gradient(80% 60% at 0% 0%, rgba(43, 95, 208, .18), transparent 60%),
    var(--card);
}
.tile__big {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(170px, 22vw, 300px); line-height: .78; letter-spacing: -.06em;
  background: linear-gradient(180deg, var(--ink) 35%, rgb(var(--ink-rgb) / .3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile__big span { -webkit-text-fill-color: var(--ink-3); }
.tile--hero .tile__text { font-size: 16px; }
.spec { display: grid; margin-top: auto; }
.spec li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: 15px; }
.spec li small { font-family: var(--text); font-weight: 400; font-size: 13px; color: var(--ink-3); text-align: right; }
.tile--photo { padding: 0; min-height: 300px; justify-content: flex-end; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.2s var(--ease); }
.tile--photo:hover img { transform: scale(1.06); }
.tile__overlay {
  position: relative; display: grid; gap: 10px; padding: 90px 22px 22px;
  background: linear-gradient(180deg, transparent, rgb(var(--bg-rgb) / .92) 45%);
}
.tile__overlay .tile__tag { color: var(--accent-fg); }

.materials {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-top: 28px; padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.materials__label { font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.materials ul { display: flex; flex-wrap: wrap; gap: 8px; }
.materials li, .chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 14px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2);
}

/* ---------- Solutions (accordion + stage) ---------- */
.sols { display: grid; gap: 40px; }
@media (min-width: 1000px) { .sols { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; } }
.sols__list { border-top: 1px solid var(--line); }
.sols__item { border-bottom: 1px solid var(--line); }
.sols__item h3 { font: inherit; }
.sols__trigger {
  display: grid; grid-template-columns: 44px 1fr 36px; align-items: center; gap: 12px;
  width: 100%; padding: 26px 0; border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--ink-3); transition: color .3s;
}
.sols__trigger:hover, .is-active .sols__trigger { color: var(--ink); }
.sols__n { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--accent-fg); font-variant-numeric: tabular-nums; }
.sols__title { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.032em; line-height: 1.1; }
.sols__icon {
  justify-self: end; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .45s var(--ease), background-color .3s, border-color .3s;
}
.is-active .sols__icon { transform: rotate(45deg); border-color: var(--accent-fg); }
.sols__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.is-active .sols__panel { grid-template-rows: 1fr; }
.sols__inner { overflow: hidden; min-height: 0; display: grid; gap: 18px; padding-left: 56px; }
.is-active .sols__inner { padding-bottom: 30px; }
.sols__inner p { color: var(--ink-2); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 6px 12px; }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic img { width: 100%; aspect-ratio: 17 / 10; object-fit: cover; object-position: var(--pos, 50% 50%); filter: brightness(var(--photo-light, 1.035)) saturate(var(--photo-color, 1.03)) contrast(1.01); border-radius: 14px; background: var(--bg-3); }
.mosaic--inline { gap: 8px; margin-top: 4px; }
.mosaic--inline img { border-radius: 10px; }
.sols__stage { display: none; }
@media (min-width: 1000px) {
  .sols__inner { padding-left: 56px; }
  .mosaic--inline { display: none; }
  .sols__stage { display: grid; position: sticky; top: 110px; }
  .sols__stage .mosaic { grid-area: 1 / 1; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
  .sols__stage .mosaic.is-active { opacity: 1; }
  .sols__stage .mosaic img { aspect-ratio: 4 / 3; transform: scale(.97); transition: transform .8s var(--ease); }
  .sols__stage .mosaic.is-active img { transform: none; }
  .sols__stage .mosaic.is-active img:nth-child(2) { transition-delay: .05s; }
  .sols__stage .mosaic.is-active img:nth-child(3) { transition-delay: .1s; }
  .sols__stage .mosaic.is-active img:nth-child(4) { transition-delay: .15s; }
}
@media (max-width: 560px) { .sols__inner { padding-left: 0; } .sols__trigger { grid-template-columns: 34px 1fr 36px; } }

/* ---------- Cases ---------- */
.cases { overflow: hidden; }
.cases__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.case {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); background: var(--bg-3);
  aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line);
}
.case--a { aspect-ratio: 1; }  /* phones: square like the others, so the text never covers the NFL logo */
.case img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  filter: brightness(var(--photo-light, 1.04)) saturate(var(--photo-color, 1.035)) contrast(1.015);
  transition: transform 1.4s var(--ease), filter .6s;
}
.case:hover img { transform: scale(1.04); filter: brightness(var(--photo-light, 1.04)) saturate(var(--photo-color, 1.035)) contrast(1.015); }
.case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0) 40%, rgb(var(--bg-rgb) / .9) 100%); }
.case__info { display: grid; gap: 6px; padding: clamp(20px, 2.4vw, 28px); }
.case__tag {
  justify-self: start; margin-bottom: 8px;
  font-family: var(--display); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgb(var(--bg-rgb) / .5); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.case h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.035em; line-height: 1; }
.case p { color: var(--ink-2); font-size: 15px; max-width: 40ch; }
/* cards with a case page: the title link covers the whole card */
.case h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.case h3 a:focus-visible { outline: none; }
.case:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.case__go {
  position: absolute; top: clamp(16px, 2vw, 22px); right: clamp(16px, 2vw, 22px);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgb(var(--bg-rgb) / .5); border: 1px solid var(--line-2); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color .35s, border-color .35s, color .35s;
}
.case__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.case:hover .case__go, .case:has(h3 a:focus-visible) .case__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.case:hover .case__go svg { transform: rotate(45deg); }
@media (min-width: 720px) {
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .case--a { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (min-width: 1080px) {
  .cases__grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 230px; }
  .case, .case--a { aspect-ratio: auto; min-height: 0; }
  /* two wide slots on top, three equal below */
  .case--a { grid-column: 1 / span 7; grid-row: span 2; }  /* NFL 16:9 */
  .case--b { grid-column: 8 / span 5; grid-row: span 2; }  /* Revelando */
  .case--c, .case--d, .case--e { grid-column: span 4; grid-row: span 2; }
}
.cases .section__foot { margin-top: 14px; }

/* ---------- Process ---------- */
.process { background: var(--bg-2); }
.steps { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; display: grid; gap: 12px; align-content: start; padding: 30px 28px 38px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .step { padding: 34px 28px 0; border-bottom: 0; border-left: 1px solid var(--line); }
  .step:first-child { border-left: 0; padding-left: 0; }
}
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 1.2s var(--ease) .2s;
}
.step.is-in::before { width: 64px; }
@media (min-width: 900px) { .step:not(:first-child)::before { left: 28px; } }
.step__n { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--accent-fg); }
.step h3 { font-size: 21px; letter-spacing: -.03em; line-height: 1.25; }
.step p { color: var(--ink-2); font-size: 15px; }

.audience {
  display: grid; gap: 18px; margin-top: clamp(52px, 7vw, 84px);
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
@media (min-width: 900px) { .audience { grid-template-columns: auto 1fr; align-items: center; gap: 36px; } }
.audience__label { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.03em; }
.audience ul { display: flex; flex-wrap: wrap; gap: 8px; }
.audience li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }

/* ---------- Clients ---------- */
.logos {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logos { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .logos { grid-template-columns: repeat(6, 1fr); } }
.logos li {
  display: grid; place-items: center; aspect-ratio: 3 / 2;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.logos li:hover { background: var(--card); }
.logos img { width: 72%; height: auto; opacity: .6; transition: opacity .3s, transform .4s var(--ease); }
.logos li:hover img { opacity: 1; transform: scale(1.04); }
.logos__more { display: grid; place-content: center; text-align: center; gap: 4px; background: rgba(245, 179, 36, .08); }
.logos__more strong { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -.032em; color: var(--accent-fg); }
.logos__more span { font-size: 13px; color: var(--ink-2); }

.leader {
  display: grid; gap: 40px; margin-top: clamp(72px, 9vw, 120px);
  padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .leader { grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: end; } }
.leader__quote p { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -.032em; text-wrap: balance; }
.leader__quote footer { margin-top: 20px; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.leader__bio { display: grid; gap: 10px; }
.leader__bio h3 { font-size: 30px; letter-spacing: -.032em; margin-top: 8px; }
.leader__role { color: var(--accent-fg); font-size: 15px; }
.leader__bio p:last-child { color: var(--ink-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq__wrap { display: grid; gap: 48px; }
@media (min-width: 960px) { .faq__wrap { grid-template-columns: 1fr 1.25fr; gap: 80px; } .faq__head { position: sticky; top: 120px; align-self: start; } }
.faq__head { display: grid; gap: 20px; justify-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .4s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--card-2); }
.faq details p { padding: 0 56px 26px 0; color: var(--ink-2); max-width: 62ch; }
.faq details p a { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blog ---------- */
.blog__head-side { display: grid; gap: 22px; justify-items: start; }
@media (min-width: 900px) { .blog__head-side { justify-self: end; } }
.posts { display: grid; gap: 18px; }
@media (min-width: 820px) { .posts { grid-template-columns: 1fr 1fr; } }
.post {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color .4s, background-color .4s;
}
.post:hover { border-color: var(--line-2); background: rgb(var(--hi-rgb) / .05); }
.post__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.post__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); filter: brightness(var(--photo-light, 1.035)) saturate(var(--photo-color, 1.03)) contrast(1.01); transition: transform 1.2s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { display: grid; gap: 14px; padding: clamp(22px, 2.6vw, 32px); flex: 1; align-content: start; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.post__meta span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.post h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.22; letter-spacing: -.03em; text-wrap: balance; }
.post p { color: var(--ink-2); font-size: 15px; }
.post__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--accent-fg); }
.post__more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.post:hover .post__more svg { transform: rotate(45deg); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 100%, rgba(245, 179, 36, .18), transparent 70%),
    radial-gradient(50% 60% at 0% 0%, rgba(43, 95, 208, .16), transparent 70%),
    var(--bg);
}
.contact__wrap { position: relative; z-index: 1; display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact__wrap { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.contact__intro { display: grid; gap: 22px; justify-items: start; }
.contact__info { display: grid; width: 100%; margin-top: 12px; border-top: 1px solid var(--line); }
.contact__info li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .contact__info li { grid-template-columns: 170px 1fr; gap: 16px; } }
.contact__info span { font-size: 13px; color: var(--ink-3); }
.contact__info a, .contact__info p { font-size: 15px; transition: color .25s; }
.contact__info a:hover { color: var(--accent-fg); }
.kit {
  display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
  transition: background-color .3s, border-color .3s;
}
.kit:hover { background: var(--card-2); border-color: var(--accent-fg); }
.kit__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.kit__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kit strong { display: block; font-family: var(--display); font-weight: 500; }
.kit small { color: var(--ink-3); font-size: 13px; }

.form {
  display: grid; gap: 16px;
  padding: clamp(22px, 3vw, 40px); border-radius: 28px;
  background: rgb(var(--surface-rgb) / .6); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgb(var(--hi-rgb) / .04); border: 1px solid var(--line-2);
  font-size: 16px; font-weight: 400; color: var(--ink);
  transition: border-color .25s, background-color .25s;
}
.form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.form select option { background: var(--bg-3); color: var(--ink); }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-fg); background: rgb(var(--hi-rgb) / .06); }
.form input[aria-invalid="true"] { border-color: #f87171; }
.form ::placeholder { color: var(--ink-3); }
.form .btn { justify-self: start; margin-top: 8px; }
.form__note { font-size: 13px; color: var(--ink-3); }
.form__note.is-ok { color: #4ade80; }
.form__note.is-error { color: #f87171; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 96px) 0 28px; overflow: hidden; }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer__brand { display: grid; gap: 20px; align-content: start; }
.footer__brand img { width: 158px; height: auto; }
.footer__brand p { color: var(--ink-3); font-size: 14px; max-width: 38ch; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.footer__social a:hover { border-color: var(--accent-fg); color: var(--accent-fg); }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.footer__col { display: grid; gap: 12px; align-content: start; font-size: 14px; }
.footer__col .footer__title { font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.footer__cookie { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__cookie:hover { color: var(--ink); }
.footer__col a { color: var(--ink-2); transition: color .25s; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--ink); }
.footer__word {
  margin: clamp(56px, 8vw, 96px) 0 0;
  font-family: var(--display); font-weight: 600; font-size: clamp(64px, 17.5vw, 268px); line-height: .8; letter-spacing: -.06em;
  text-align: center;
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / .14), rgb(var(--ink-rgb) / 0) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 72px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.footer__bottom a:hover { color: var(--ink); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
/* Andrade Lab credit: their wordmark (andrade + lab + °), as on andradelab.com */
.credit { display: inline-flex; align-items: baseline; gap: 7px; }
.credit__logo { font-family: "Geist", var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.05em; color: var(--ink); white-space: nowrap; }
.credit__logo span { font-weight: 400; color: var(--ink-3); }
.credit__logo i { position: relative; display: inline-block; font-style: normal; color: var(--credit-accent); transition: scale 1s cubic-bezier(.3, 1.7, .45, 1) .65s, text-shadow .5s var(--ease); }
.credit__logo span { transition: color .5s var(--ease); }
/* Same motion as the andradelab.com logo: letters come in one by one when the footer shows up,
   the degree sign springs in and sends a pulse ring now and then; on hover the letters wave. */
.credit__logo .lg { display: inline-block; font-weight: inherit; }
.js-credit .credit__logo .lg {
  opacity: 0; translate: 0 .55em; filter: blur(5px);
  transition: opacity .8s var(--ease), translate .8s var(--ease), filter .8s var(--ease);
  transition-delay: calc(var(--i) * 38ms);
}
.js-credit .credit__logo i { scale: 0; }
.credit.is-in .credit__logo .lg { opacity: 1; translate: 0 0; filter: none; }
.credit.is-in .credit__logo i { scale: 1; }
.credit__logo i::before {
  content: ''; position: absolute; left: 50%; top: 33%; width: 1.1em; height: 1.1em; margin: -.55em 0 0 -.55em;
  border: 1px solid var(--credit-accent); border-radius: 50%; pointer-events: none; opacity: 0; scale: .3;
}
.credit.is-in .credit__logo i::before { animation: credit-pulse 6s var(--ease) 1.8s infinite; }
@keyframes credit-pulse { 0% { opacity: .7; scale: .3; } 22%, 100% { opacity: 0; scale: 1.15; } }
.credit:hover .credit__logo span { color: var(--ink); }
.credit:hover .credit__logo i { text-shadow: 0 0 12px color-mix(in srgb, var(--credit-accent) 55%, transparent); }
.credit.is-in:hover .credit__logo .lg { animation: credit-wave .7s var(--ease) calc(var(--i) * 32ms); }
@keyframes credit-wave { 35% { translate: 0 -4px; } 100% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .credit__logo i::before { display: none; } .credit.is-in:hover .credit__logo .lg { animation: none; } }

/* ---------- WhatsApp float ---------- */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.06); }

/* Cookie notice (LGPD) */
.cookie {
  position: fixed; left: 16px; right: 86px; bottom: 16px; z-index: 45; max-width: 560px;
  display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgb(0 0 0 / .35); font-size: 14px; line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) { .cookie { right: auto; left: 24px; bottom: 24px; grid-template-columns: 1fr auto; align-items: center; gap: 18px; } }
.wa svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }


/* ==========================================================================
   Multi-page components
   ========================================================================== */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--accent-fg); }
.link-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: rotate(45deg); }
.section__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: 28px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line);
}
.section__foot p { color: var(--ink-2); max-width: 56ch; }

/* ---------- Page hero ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 clamp(56px, 7vw, 96px); }
.phero__glow {
  position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70vw; height: 70vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 179, 36, .12), transparent 70%), radial-gradient(closest-side at 30% 40%, rgba(43, 95, 208, .14), transparent 70%);
  filter: blur(30px);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); transition: color .25s; }
.crumbs a:hover { color: var(--accent-fg); }
.crumbs [aria-current] { color: var(--ink-3); }
.phero__title {
  margin: 22px 0 24px; max-width: 15ch;
  font-weight: 500; font-size: clamp(44px, 6.6vw, 96px); line-height: 1; letter-spacing: -.045em; text-wrap: balance;
}
.phero__lead { max-width: 58ch; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); text-wrap: pretty; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.phero .stats { margin-top: clamp(48px, 6vw, 80px); }
.phero__media { margin-top: clamp(48px, 6vw, 80px); }
.phero__media img {
  width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: var(--pos, 50% 50%);
  border-radius: var(--radius); border: 1px solid var(--line); filter: brightness(var(--photo-light, 1.035)) saturate(var(--photo-color, 1.03)) contrast(1.01);
}
@media (max-width: 760px) { .phero__media img { aspect-ratio: 4 / 3; } }
.phero__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: clamp(48px, 6vw, 80px); }
.phero__strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: 16px; border: 1px solid var(--line); }
@media (max-width: 760px) { .phero__strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Pre-footer CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.cta__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 80% 100%, rgba(245, 179, 36, .2), transparent 70%),
    radial-gradient(50% 70% at 10% 0%, rgba(43, 95, 208, .16), transparent 70%),
    var(--bg);
}
.cta__wrap { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; text-align: center; }
.cta h2 { max-width: 18ch; font-size: clamp(40px, 6vw, 88px); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- Solution pages ---------- */
.caps-section { padding-top: 0; }
.caps { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .caps { grid-template-columns: repeat(4, 1fr); } }
.cap { display: grid; gap: 8px; align-content: start; padding: 28px 20px 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .cap { padding: 32px 24px 0; border-bottom: 0; border-left: 1px solid var(--line); } .cap:first-child { border-left: 0; padding-left: 0; } }
.cap strong { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -.035em; }
.cap span { font-size: 14px; color: var(--ink-3); max-width: 22ch; }
.caps__note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 36px; color: var(--ink-2); font-size: 15px; }

.deliver { background: var(--bg-2); }
.deliver__grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .deliver__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .deliver__grid { grid-template-columns: repeat(3, 1fr); } }
.deliver__item {
  display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .4s;
}
.deliver__item:hover { border-color: var(--line-2); }
.deliver__n { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--accent-fg); }
.deliver__item h3 { font-size: 22px; letter-spacing: -.035em; line-height: 1.2; }
.deliver__item p { color: var(--ink-2); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.gallery__item { overflow: hidden; border-radius: 14px; background: var(--bg-3); }
.gallery__item img { width: 100%; aspect-ratio: 17 / 10; object-fit: cover; object-position: var(--pos, 50% 50%); filter: brightness(var(--photo-light, 1.035)) saturate(var(--photo-color, 1.03)) contrast(1.01); transition: transform 1s var(--ease), filter .5s; }
.gallery__item:hover img { transform: scale(1.05); filter: none; }

.related__grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .related__grid { grid-template-columns: repeat(3, 1fr); } }
.related__grid .case { aspect-ratio: 4 / 5; }

.others { padding-top: 0; }
.faq + .others { padding-top: clamp(64px, 8vw, 104px); }  /* the FAQ band has its own background */
.others__list { margin-top: 18px; border-top: 1px solid var(--line); }
.others__item {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--line); color: var(--ink-3); transition: color .3s, padding .4s var(--ease);
}
.others__item span { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.4vw, 48px); letter-spacing: -.035em; line-height: 1.1; }
.others__item svg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; transition: transform .4s var(--ease); }
.others__item:hover { color: var(--ink); padding-left: 12px; }
.others__item:hover svg { transform: rotate(45deg); color: var(--accent-fg); }

/* Formats catalog (solution pages) */
.formats { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .formats { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 5vw, 72px); } }
.format { display: grid; gap: 8px; align-content: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.format h3 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; font-size: 20px; letter-spacing: -.03em; line-height: 1.25; }
.format h3 small { font-family: var(--display); font-size: 12px; font-weight: 500; font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-fg); }
.format p { color: var(--ink-2); font-size: 15px; max-width: 52ch; }

/* ---------- Projetos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.filters button {
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font-family: var(--display); font-size: 14px; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s;
}
.filters button:hover { color: var(--ink); border-color: var(--ink-3); }
.filters button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.work { padding-top: 0; }
.work__label { margin: 0 0 18px; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.work__label:not(:first-child) { margin-top: clamp(56px, 7vw, 88px); }
.work__grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .work__grid { grid-template-columns: repeat(3, 1fr); } .work__grid .case:first-child { grid-column: span 2; aspect-ratio: auto; } }
.work__grid .case { aspect-ratio: 4 / 5; }
[data-filterable] > [hidden] { display: none; }
.work__empty { margin-top: 24px; color: var(--ink-3); }

/* ---------- Case pages ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(36px, 4.4vw, 56px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { display: grid; gap: 6px; align-content: start; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .facts div { padding: 22px 24px 0; border-bottom: 0; border-left: 1px solid var(--line); } .facts div:first-child { padding-left: 0; border-left: 0; } }
.facts dt { font-family: var(--display); font-size: 11px; font-weight: 500; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.35; letter-spacing: -.02em; }
.facts dd a { color: var(--accent-fg); transition: opacity .25s; }
.facts dd a:hover { opacity: .75; }
.chero__row { margin-top: clamp(48px, 6vw, 80px); }

.story__wrap { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .story__wrap { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
  .story__head { position: sticky; top: 120px; }
}
.story__head { display: grid; gap: 20px; }
.story__text { display: grid; gap: 20px; max-width: 60ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.story__text p:first-child { color: var(--ink); }

/* photo rows: each photo grows by its aspect ratio, so a row shares one height and nothing is cropped */
.shots-section { padding-top: 0; }
.shots, .shots__row { display: grid; gap: 12px; }
@media (min-width: 700px) {
  .shots__row { display: flex; }
  .shots__row .shot { flex: var(--ar) 1 0; min-width: 0; }
}
.shot { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-3); }
.shot img {
  width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover;
  filter: brightness(var(--photo-light, 1.035)) saturate(var(--photo-color, 1.03)) contrast(1.01);
  transition: transform 1.2s var(--ease);
}
.shot:hover img { transform: scale(1.03); }
/* stacked on phones: tall photos stop short of a full screen */
@media (max-width: 699px) { .shot img { max-height: 72svh; } }

@media (min-width: 1040px) { .deliver__grid--4 { grid-template-columns: repeat(4, 1fr); } }

.next-case__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
.case--next { aspect-ratio: 21 / 8; }
.case--next h3 { font-size: clamp(34px, 4.4vw, 64px); }
@media (max-width: 760px) { .case--next { aspect-ratio: 4 / 5; } }
/* wide screens: text on the left, photo on the right 62% (about 16:10, so vertical photos still read) */
@media (min-width: 761px) {
  .case--next { justify-content: center; }
  .case--next img { left: 38%; width: 62%; }
  .case--next::before { background: linear-gradient(90deg, rgb(var(--bg-rgb)) 38%, rgb(var(--bg-rgb) / .55) 45%, rgb(var(--bg-rgb) / 0) 58%); }
  .case--next .case__info { max-width: 44%; padding: clamp(28px, 4vw, 56px); }
}

/* ---------- Estrutura ---------- */
.print-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .print-grid { grid-template-columns: 1.4fr 1fr 1fr; } .print-grid .tile--hero { min-height: 460px; } }
.techs { background: var(--bg-2); }
.tech-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
.tech { padding: clamp(22px, 2.4vw, 28px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tech header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.tech h3 { font-size: 22px; letter-spacing: -.035em; }
.tech header span { font-family: var(--display); font-size: 13px; color: var(--accent-fg); }
.tech li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tech li span { font-family: var(--display); font-size: 12px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 640px) { .mat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .mat-grid { grid-template-columns: repeat(6, 1fr); } }
.mat-grid li {
  display: flex; align-items: flex-end; min-height: 110px; padding: 18px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -.02em; transition: background-color .3s;
}
.mat-grid li:hover { background: var(--card-2); }
.install__wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .install__wrap { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.install__media img { width: 100%; aspect-ratio: 17 / 10; object-fit: cover; object-position: var(--pos, 50% 40%); filter: brightness(1.045) saturate(1.025); border-radius: var(--radius); border: 1px solid var(--line); }
.install__text { display: grid; gap: 20px; justify-items: start; }
.install__list { width: 100%; margin-top: 8px; border-top: 1px solid var(--line); }
.install__list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .install__list li { grid-template-columns: 160px 1fr; gap: 16px; } }
.install__list strong { font-family: var(--display); font-weight: 500; }
.install__list span { color: var(--ink-2); font-size: 15px; }

/* ---------- Sobre ---------- */
.brand__wrap { display: grid; gap: 32px; }
@media (min-width: 960px) { .brand__wrap { grid-template-columns: 1fr 1fr; gap: 80px; } }
.brand__wrap > div:first-child { display: grid; gap: 20px; align-content: start; }
.brand__text { display: grid; gap: 18px; color: var(--ink-2); font-size: 17px; }
.leadership { background: var(--bg-2); }
.leader--page { margin-top: 0; padding-top: 0; border-top: 0; }
.mv { display: grid; gap: 14px; }
@media (min-width: 860px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv__item { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.mv__item p { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -.03em; }
.values { margin-top: clamp(48px, 6vw, 72px); }
.values__label { margin-bottom: 18px; font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.values__list { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .values__list { grid-template-columns: repeat(3, 1fr); } }
.values__list li { display: grid; gap: 8px; align-content: start; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.values__list h3 { font-size: 20px; letter-spacing: -.03em; }
.values__list p { color: var(--ink-2); font-size: 15px; }
.clients-strip { padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-strip__wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .clients-strip__wrap { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); } }
.clients-strip__title { margin-top: 14px; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
.clients-strip__meta { margin-top: 10px; font-size: 14px; color: var(--ink-3); max-width: 30ch; }
.clients-strip__meta strong { font-weight: 500; color: var(--accent-fg); }
.clients-strip .marquee__track { gap: clamp(48px, 5vw, 88px); }
.join__grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .join__grid { grid-template-columns: 1fr 1fr; } }
.join__card {
  display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .4s, background-color .4s;
}
.join__card:hover { border-color: var(--line-2); background: rgb(var(--hi-rgb) / .05); }
.join__card h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.032em; }
.join__card p { color: var(--ink-2); }
.join__card .link-arrow { margin-top: 6px; }

/* ---------- Blog / article ---------- */
.blog--page { padding-top: 0; }
.posts--single { margin-top: 22px; }
@media (min-width: 820px) { .posts--single { grid-template-columns: 1fr; } .posts--single .post { flex-direction: row; } .posts--single .post__media { flex: 0 0 44%; aspect-ratio: auto; } }
.post__read { padding: 0 !important; border: 0 !important; color: var(--ink-3) !important; }
.article__head { padding-top: 150px; display: grid; gap: 22px; }  /* same left edge as the cover and the text */
.article__head > * { max-width: 900px; }
.article__head .crumbs { margin-bottom: 14px; }
.article__title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.article__lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 62ch; }
.article__cover { margin-top: clamp(40px, 5vw, 64px); }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: var(--pos, 50% 50%); filter: brightness(var(--photo-light, 1.035)) saturate(var(--photo-color, 1.03)) contrast(1.01); border-radius: var(--radius); border: 1px solid var(--line); }
.article__wrap { display: grid; gap: 48px; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 120px); }
@media (min-width: 1000px) { .article__wrap { grid-template-columns: minmax(0, 680px) 1fr; gap: 80px; } }
.prose { display: grid; gap: 22px; font-size: 18px; line-height: 1.75; color: rgb(var(--ink-rgb) / .82); }
.prose h2 { margin-top: 18px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.035em; color: var(--ink); max-width: none; }
.prose ul { display: grid; gap: 10px; padding-left: 20px; list-style: disc; }
.prose a { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose figure { margin: 14px 0; }
/* answer-first box at the top of each article */
.article__summary { display: grid; gap: 12px; padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.article__summary-label { font-family: var(--display); font-size: 11px; font-weight: 500; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-fg); }
.prose .article__summary ul { gap: 8px; }
.prose__table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--display); font-weight: 500; color: var(--ink); background: var(--card); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); }
@media (min-width: 640px) { .prose td:first-child { white-space: nowrap; } }
@media (max-width: 639px) { .prose table { min-width: 520px; } .prose th, .prose td { padding: 10px 12px; } }
.prose figure img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.article__aside { align-self: start; }
@media (min-width: 1000px) { .article__aside { position: sticky; top: 120px; } }
.article__box { display: grid; gap: 18px; justify-items: start; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.article__box p { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -.03em; }
.more-posts { padding-top: 0; }

/* ---------- Contato / forms ---------- */
.contact--page { padding-top: 0; }
.contact--page .contact__info { margin-top: 0; }
.simple { padding-top: 0; }
.simple__wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .simple__wrap { grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; } }
.simple__intro { display: grid; gap: 18px; color: var(--ink-2); font-size: 17px; }
.simple__mail a { color: var(--accent-fg); }
.legal { padding-top: 0; }
.prose--legal { max-width: 760px; font-size: 16px; }
.legal__updated { font-size: 14px; color: var(--ink-3); }

/* Page heroes animate on load with CSS, like the home hero */
.js .phero [data-reveal], .js .article__head [data-reveal], .js .article__cover[data-reveal] { opacity: 1; transform: none; filter: none; transition: none; animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
.js .phero [data-split] .w { opacity: 1; transform: none; filter: none; transition: none; animation: rise 1s var(--ease) both; animation-delay: calc(.05s + var(--i) * 50ms); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-split] .w {
  display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(10px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.js [data-split].is-in .w { opacity: 1; transform: none; filter: none; }

/* Hero entrance runs on pure CSS so it never waits on JS/observers */
.js .hero [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
.js .hero [data-split] .w { opacity: 1; transform: none; filter: none; transition: none; animation: rise 1s var(--ease) both; animation-delay: calc(.1s + var(--i) * 60ms); }
@keyframes rise {
  from { opacity: 0; transform: translateY(.4em); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Logo splash (first page of the visit; class set in <head>) ----------
   0-.6s the mark pops in, .25-.85s the wordmark wipes in, .95-1.5s the curtain lifts.
   The logo files share one geometry: the mark ends at 16.33% of the width. */
.splash { display: none; }
.has-splash .splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000;
  background: var(--bg); clip-path: inset(0 0 0 0);
  animation: splash-out .55s cubic-bezier(.76, 0, .24, 1) .95s forwards;
}
.splash-lock, .splash-lock body { overflow: hidden; }
.splash__logo { position: relative; width: clamp(200px, 24vw, 300px); aspect-ratio: 640 / 159; }
.has-splash .splash__logo { animation: splash-logo-out .55s cubic-bezier(.76, 0, .24, 1) .95s forwards; }
.splash__mark, .splash__word { position: absolute; inset: 0; }
.splash__mark img, .splash__word img { width: 100%; height: auto; }
.splash__mark { clip-path: inset(0 83.67% 0 0); transform-origin: 8% 50%; animation: splash-mark .6s cubic-bezier(.34, 1.56, .64, 1) .05s both; }
.splash__word { clip-path: inset(0 0 0 16.33%); animation: splash-word .6s var(--ease) .25s both; }
.splash__line {
  position: absolute; left: 16.33%; right: 0; bottom: -18px; height: 2px; border-radius: 2px;
  background: var(--accent); transform-origin: left; animation: splash-line .7s var(--ease) .3s both;
}
@keyframes splash-mark { from { opacity: 0; transform: scale(.4) rotate(-24deg); } to { opacity: 1; transform: none; } }
@keyframes splash-word { from { clip-path: inset(0 100% 0 16.33%); transform: translateX(-10px); } to { clip-path: inset(0 0 0 16.33%); transform: none; } }
@keyframes splash-line { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes splash-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes splash-logo-out { to { transform: translateY(-36px); opacity: 0; } }
/* page entrance starts as the curtain lifts */
.has-splash.js .hero [data-reveal], .has-splash.js .phero [data-reveal], .has-splash.js .article__head [data-reveal], .has-splash.js .article__cover[data-reveal] { animation-delay: calc(var(--d, 0s) + .9s); }
.has-splash.js .hero [data-split] .w { animation-delay: calc(1s + var(--i) * 60ms); }
.has-splash.js .phero [data-split] .w { animation-delay: calc(.95s + var(--i) * 50ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
}

/* Photo framing: shared focal points, with a mobile override for panoramic sources. */
@media (max-width: 760px) {
  .phero__media img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
}
/* Wide lettering/objects need their full frame inside the existing mosaic slots. */
.mosaic img[data-photo-fit="contain"], .phero__strip img[data-photo-fit="contain"] { object-fit: contain; background: var(--bg-3); }
/* Preserve wide work inside narrow project slots; only the photograph is fitted. */
.case img[data-photo-fit="contain"] { object-fit: contain; }

.tile--photo img, .phero__strip img, .prose figure img {
  filter: brightness(var(--photo-light, 1.035)) saturate(var(--photo-color, 1.03)) contrast(1.01);
}

/* ===================================================================
   WordPress additions
   =================================================================== */

/* Logged-in admin bar sits above the fixed nav */
.admin-bar .nav { top: 46px; }
@media (min-width: 783px) { .admin-bar .nav { top: 32px; } }

/* Form: honeypot stays out of sight, file field matches the inputs */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form input[type="file"] { padding: 12px 14px; cursor: pointer; }
.form input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer;
}
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* Blog pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }
.pagination a, .pagination span {
  min-width: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); text-align: center; font-size: 14px;
}
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pagination a:hover { color: var(--ink); border-color: var(--ink-3); }

/* Content written in the block editor (blog posts, case story, legal pages) */
.prose > * + *, .story__text > * + * { margin-top: 1em; }
.prose img { border-radius: 16px; }
.prose .wp-block-image figcaption, .prose figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.prose .wp-block-quote, .prose blockquote { padding-left: 20px; border-left: 2px solid var(--accent); color: var(--ink); }
.prose ol { display: grid; gap: 10px; padding-left: 20px; list-style: decimal; }
.prose .wp-block-table table { width: 100%; }
.prose .wp-block-separator, .prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* WhatsApp with lead capture (parts/whatsapp-gate.php) */
.wagate {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; background: transparent; color: var(--ink); overflow: visible;
}
.wagate::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.wagate[open] { animation: wagate-in .45s var(--ease); }
@keyframes wagate-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.wagate__form { position: relative; gap: 14px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--bg-2); box-shadow: var(--shadow-lg); }
.wagate__form h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 4vw, 32px); line-height: 1.05; letter-spacing: -.03em; }
.wagate__form .eyebrow { margin: 0; }
.wagate__lead { margin: 0 0 4px; color: var(--ink-2); font-size: 15px; }
.wagate__legal { font-size: 12px; color: var(--ink-3); }
.wagate__legal a { text-decoration: underline; text-underline-offset: 2px; }
.wagate__close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer;
}
.wagate__close:hover { color: var(--ink); border-color: var(--ink-3); }
.wagate__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .wagate[open] { animation: none; } }
