/* ==========================================================================
   Helmwise — main stylesheet
   Brand tokens come from the Helmwise design system (deep petrol, brass, chart-paper cream;
   Fraunces for display, Manrope for text; near-square corners).
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  /* colour */
  --night: #0c1517;       /* dark sections */
  --night-2: #132124;
  --abyss: #080f11;       /* footer */
  --deep: #0e3b43;        /* brand petrol */
  --deep-2: #6fb3b8;      /* petrol, lightened for dark grounds */
  --deep-soft: #dce8e6;
  --cream: #f5f2eb;       /* light sections */
  --paper: #ffffff;
  --ink: #13211f;
  --muted: #56625f;
  --mist: #ecefea;        /* text on dark */
  --mist-muted: #9daaa7;
  --brass: #b8862f;
  --brass-2: #d9a54a;     /* brass on dark grounds */
  --brass-text: #8a6119;  /* brass as text on light grounds (≥4.5:1 on cream) */
  --line: #d9d2c3;
  --line-dark: rgba(236, 239, 234, .14);

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --pad: clamp(20px, 4.5vw, 72px);
  --max: 1520px;
  --section: clamp(96px, 13vw, 200px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --ease-in-out: cubic-bezier(.77, 0, .18, 1);
  --header-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.js[data-lang="pt"]:not(.i18n-ready) body { visibility: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--brass-2); color: var(--night); }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--brass); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; transition: top .2s; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* section grounds */
[data-theme="dark"] { background: var(--night); color: var(--mist); }
[data-theme="light"] { background: var(--cream); color: var(--ink); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 6.6rem);
  line-height: .98;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.display--xl { font-size: clamp(3rem, 8.4vw, 9.4rem); line-height: .92; letter-spacing: -0.045em; }
.display em, .hero__title em, .motto em, .contact__title em { font-weight: 300; letter-spacing: -0.02em; }
[data-theme="light"] .display em { color: var(--brass-text); }
[data-theme="dark"] .display em, [data-theme="dark"] .motto em, [data-theme="dark"] .contact__title em { color: var(--brass-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
[data-theme="dark"] .eyebrow, .eyebrow--brass { color: var(--brass-2); }
.label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
[data-theme="dark"] .label { color: var(--mist-muted); }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 15px; line-height: 20px; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn__arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass::before { background: var(--mist); }
.btn--ghost { border-color: currentColor; }
[data-theme="dark"] .btn--ghost::before { background: var(--mist); }
[data-theme="dark"] .btn--ghost:hover { color: var(--night); border-color: var(--mist); }
[data-theme="light"] .btn--ghost::before { background: var(--deep); }
[data-theme="light"] .btn--ghost:hover { color: var(--cream); border-color: var(--deep); }
.btn--small { min-height: 40px; padding: 9px 18px; font-size: 14px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--night);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in-out);
}
html:not(.js) .loader, html.no-loader .loader { display: none; }
.loader__mark { width: 96px; height: 96px; overflow: visible; }
.loader__rim { fill: none; stroke: var(--mist); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__notch { fill: var(--brass-2); opacity: 0; transform: translateY(-10px); }
.loader__h { fill: var(--mist); opacity: 0; }
.loader.is-drawing .loader__rim { transition: stroke-dashoffset 1s var(--ease-in-out); stroke-dashoffset: 0; }
.loader.is-drawing .loader__notch { transition: opacity .5s .75s, transform .6s .75s var(--ease); opacity: 1; transform: none; }
.loader.is-drawing .loader__h { transition: opacity .5s .55s; opacity: 1; }
.loader.is-done { clip-path: inset(0 0 100% 0); }

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 120; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brass-2); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s;
}
.cursor__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--brass-2); border-color: var(--brass-2); mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  height: var(--header-h);
  color: var(--mist);
  transition: transform .6s var(--ease), color .4s, background-color .4s, backdrop-filter .4s;
}
.header::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: currentColor; opacity: 0; transition: opacity .4s; }
.header.is-scrolled { background: rgba(12, 21, 23, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.header.is-scrolled::after { opacity: .1; }
.header.is-light { color: var(--ink); }
.header.is-light.is-scrolled { background: rgba(245, 242, 235, .8); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; }
.mark-rim { fill: none; stroke: currentColor; stroke-width: 5; }
.mark-notch { fill: var(--brass-2); }
.header.is-light .mark-notch { fill: var(--brass); }
.mark-h { fill: currentColor; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; line-height: 1; }

.nav { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.nav a { position: relative; font-size: 14px; font-weight: 600; letter-spacing: .02em; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; }
.lang__btn { width: 34px; height: 30px; display: grid; place-items: center; border-radius: var(--radius); transition: background-color .3s; }
.lang__btn svg { width: 24px; height: 17px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); filter: grayscale(.85); opacity: .5; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.lang__btn:hover svg { filter: none; opacity: .9; transform: translateY(-1px); }
.lang__btn[aria-pressed="true"] { background: rgba(236, 239, 234, .12); }
.header.is-light .lang__btn[aria-pressed="true"], .menu .lang__btn[aria-pressed="true"] { background: rgba(19, 33, 31, .08); }
.lang__btn[aria-pressed="true"] svg { filter: none; opacity: 1; }
.header__cta { border-color: currentColor; }
.header__cta::before { background: currentColor; }
.header__cta:hover { color: var(--night); }
.header.is-light .header__cta:hover { color: var(--cream); }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger__line { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger__line { top: 18px; }
.burger__line + .burger__line { top: 25px; }
.burger[aria-expanded="true"] .burger__line { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line + .burger__line { top: 21.5px; transform: rotate(-45deg); }
body.menu-open .header { color: var(--mist); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .header::after { opacity: 0; }

.menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--night); color: var(--mist);
  padding: calc(var(--header-h) + 32px) var(--pad) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 4.2rem); line-height: 1.05; letter-spacing: -0.03em; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .2s; }
.menu__num { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--brass-2); }
.menu__foot { font-size: 15px; color: var(--mist-muted); }

/* ---------- reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; }
html.js [data-split] .wi { transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-split].is-in .wi { transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 28px;
}
.hero__inner { position: relative; z-index: 2; }
.hero__compass {
  position: absolute; z-index: 1;
  width: min(118vh, 86vw); aspect-ratio: 1;
  right: -14vw; top: 50%;
  transform: translate3d(var(--mx, 0px), calc(-50% + var(--my, 0px)), 0);
  transition: transform 1.2s var(--ease);
  pointer-events: none;
}
.compass { width: 100%; height: 100%; overflow: visible; }
.compass__turn { transform-origin: 400px 400px; transform-box: view-box; }
.compass__ring { fill: none; stroke: var(--mist); stroke-opacity: .16; stroke-width: 1; }
.compass__ring--faint { stroke-opacity: .08; }
.compass__ticks line { stroke: var(--mist); stroke-opacity: .22; stroke-width: 1; }
.compass__ticks line.major { stroke-opacity: .5; stroke-width: 1.5; }
.compass__labels text { fill: var(--mist); fill-opacity: .45; font-family: var(--font-sans); font-size: 18px; font-weight: 700; letter-spacing: .1em; text-anchor: middle; }
.compass__rim { fill: none; stroke: #16454e; stroke-width: 26; }
.compass__notch { fill: var(--brass-2); }
.compass__hub { fill: var(--brass-2); }
html.js .compass__rim { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.2s var(--ease-in-out) .2s; }
html.js .compass__notch { opacity: 0; transform: translateY(-40px); transition: opacity .8s 1.4s, transform 1.2s 1.4s var(--ease); }
html.js .compass__turn { opacity: 0; transition: opacity 1.6s .3s; }
.hero.is-in .compass__rim { stroke-dashoffset: 0; }
.hero.is-in .compass__notch { opacity: 1; transform: none; }
.hero.is-in .compass__turn { opacity: 1; }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.3rem, 11.6vw, 13.5rem);
  line-height: .9; letter-spacing: -0.048em;
  margin: 0 0 clamp(28px, 4vw, 56px) -0.04em;
}
.hero__title em { color: var(--brass-2); }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line__in { display: inline-block; }
html.js .line__in { transform: translateY(108%); transition: transform 1.3s var(--ease); }
html.js .line:nth-child(2) .line__in { transition-delay: .12s; }
.hero.is-in .line__in { transform: none; }
html.js .hero [data-reveal] { transition-delay: .5s; }
html.js .hero .hero__actions[data-reveal] { transition-delay: .62s; }

.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.hero__lead { max-width: 36ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--mist-muted); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(40px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mist-muted); }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; }
.hero__scroll i { position: relative; width: 48px; height: 1px; background: rgba(236,239,234,.2); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--brass-2); transform: translateX(-100%); animation: scrollcue 2.4s var(--ease-in-out) infinite; }
@keyframes scrollcue { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* ---------- marquee ---------- */
.marquee { background: var(--brass); color: var(--night); overflow: hidden; padding: clamp(16px, 2vw, 26px) 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 3.8vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; padding: 0 .55em; }
.marquee__sep { width: .5em; height: .5em; flex: none; fill: var(--night); font-size: clamp(1.6rem, 3.8vw, 3.6rem); }

/* ---------- manifesto ---------- */
.manifesto { padding: var(--section) 0; }
.manifesto__grid { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 32px; }
.manifesto__grid .label { padding-top: .9em; color: var(--brass-text); }
.manifesto__text { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.9vw, 4.1rem); line-height: 1.1; letter-spacing: -0.025em; text-wrap: pretty; }
.mw { opacity: .14; transition: opacity .35s linear; }
.mw.on { opacity: 1; }
html:not(.js) .mw { opacity: 1; }
.manifesto__sign { margin-top: clamp(36px, 5vw, 64px); font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; }
.manifesto__sign em { font-family: var(--font-display); font-weight: 400; font-size: 1.12em; color: var(--brass-text); }

/* ---------- services ---------- */
.services { padding: 0 0 var(--section); position: relative; }
.section-head { margin-bottom: clamp(48px, 7vw, 104px); max-width: 1100px; }
.svc-list { border-top: 1px solid var(--line); counter-reset: svc; }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 72px minmax(0, 1.25fr) minmax(0, 1fr) 150px;
  grid-template-areas: "num title desc kicker" "num title tags kicker";
  gap: 6px 40px; align-items: start;
  padding: clamp(28px, 3.4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--deep); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.svc__num { grid-area: num; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--brass-text); padding-top: .9em; transition: color .5s; }
.svc__title { grid-area: title; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 4.3rem); line-height: 1; letter-spacing: -0.035em; transition: transform .7s var(--ease); }
.svc__desc { grid-area: desc; color: var(--muted); max-width: 46ch; transition: color .5s; }
.svc__tags { grid-area: tags; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink); margin-top: 10px; transition: color .5s; }
.svc__kicker { grid-area: kicker; justify-self: end; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border: 1px solid currentColor; border-radius: var(--radius); margin-top: .6em; white-space: nowrap; transition: color .5s; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { color: var(--cream); }
  .svc:hover::before { transform: scaleY(1); }
  .svc:hover .svc__title { transform: translateX(18px); }
  .svc:hover .svc__desc { color: rgba(245, 242, 235, .78); }
  .svc:hover .svc__num, .svc:hover .svc__tags { color: var(--brass-2); }
}

.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 260px; height: 195px; margin: -97px 0 0 0;
  border-radius: var(--radius); overflow: hidden;
  transform: scale(0);
  visibility: hidden;
  will-change: transform;
  box-shadow: 0 30px 60px -20px rgba(8, 15, 17, .45);
  display: none;
}
html.has-cursor .svc-preview { display: block; }
.svc-preview__stack { height: 100%; transition: transform .7s var(--ease); transform: translateY(calc(var(--pi, 0) * -100%)); }
.svc-art { width: 100%; height: 100%; }
.svc-art .a-line { fill: none; stroke: var(--cream); stroke-width: 2; }
.svc-art .a-fill { fill: var(--cream); }
.svc-art .a-brass { fill: var(--brass-2); }
.svc-art .a-soft { fill: var(--cream); opacity: .5; }
.svc-art .a-line-f { fill: var(--deep); opacity: .4; }

/* ---------- method ---------- */
.method { padding: var(--section) 0; position: relative; overflow: hidden; }
.method__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 80px; align-items: end; }
.method__lead { color: var(--mist-muted); font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 44ch; }
.grid67 { margin-top: clamp(64px, 9vw, 128px); }
.grid67__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; font-family: var(--font-display); }
.grid67__day { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; }
.grid67__day b { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--brass-2); display: inline-block; min-width: 1.25em; }
.grid67__of { font-size: clamp(1.2rem, 2vw, 1.8rem); color: var(--mist-muted); font-style: italic; font-weight: 300; }
.grid67__cells { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: clamp(4px, .6vw, 8px); }
.cell { aspect-ratio: 1; border-radius: 2px; background: rgba(236, 239, 234, .06); box-shadow: inset 0 0 0 1px rgba(236, 239, 234, .08); transition: background-color .3s, transform .5s var(--ease), box-shadow .3s; transform: scale(.82); }
.cell.on { transform: scale(1); box-shadow: none; }
.cell.on[data-ph="1"], .ph1 { background: #24575f; }
.cell.on[data-ph="2"], .ph2 { background: #357a82; }
.cell.on[data-ph="3"], .ph3 { background: var(--deep-2); }
.cell.on[data-ph="4"], .ph4 { background: var(--brass); }
.cell.on[data-ph="5"], .ph5 { background: var(--brass-2); }
.grid67__legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--mist-muted); }
.grid67__legend li { display: inline-flex; align-items: center; gap: 10px; }
.grid67__legend i { width: 12px; height: 12px; border-radius: 2px; }

.method__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(72px, 9vw, 128px); }
.point { padding-top: 28px; border-top: 1px solid var(--line-dark); }
.point__num { display: block; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 2rem; line-height: 1; color: var(--brass-2); margin-bottom: 22px; }
.point h3 { font-size: 20px; line-height: 28px; font-weight: 700; margin-bottom: 10px; }
.point p { color: var(--mist-muted); }
.point:nth-child(2) { --rd: .1s; }
.point:nth-child(3) { --rd: .2s; }
.motto { margin-top: clamp(96px, 13vw, 200px); font-family: var(--font-display); font-weight: 400; font-size: clamp(3.2rem, 11vw, 12.5rem); line-height: .9; letter-spacing: -0.05em; }

/* ---------- prototype ---------- */
.proto { padding: var(--section) 0; overflow: hidden; }
.proto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.proto__body { margin-top: 32px; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--muted); max-width: 44ch; }
.proto__note { margin-top: 24px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brass-text); display: flex; align-items: center; gap: 10px; }
.proto__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.browser { background: var(--paper); border-radius: 8px; box-shadow: 0 1px 0 rgba(19,33,31,.06), 0 40px 80px -30px rgba(14, 59, 67, .35), 0 0 0 1px rgba(19,33,31,.08); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 16px; background: #ece9e1; border-bottom: 1px solid #dfdbd0; }
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #d3cec2; }
.browser__url { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 14px; background: var(--paper); border-radius: var(--radius); font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.browser__url svg { width: 11px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 1.4; flex: none; }
.browser__url b { color: var(--deep); font-weight: 700; }
.browser__caret { width: 1.5px; height: 16px; background: var(--deep); margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.browser__page { position: relative; aspect-ratio: 16 / 10.5; padding: clamp(16px, 2.4vw, 30px); display: flex; flex-direction: column; gap: clamp(14px, 2vw, 24px); background: var(--cream); }
.browser__page i, .browser__page b { display: block; border-radius: 3px; }
.pp-nav { display: flex; align-items: center; gap: 12px; }
.pp-nav i { width: 9%; height: 8px; background: rgba(19,33,31,.16); }
.pp-nav .pp-logo { width: 22px; height: 22px; border-radius: 50%; background: var(--deep); margin-right: auto; }
.pp-nav b { width: 15%; height: 24px; background: var(--deep); }
.pp-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; flex: 1; }
.pp-hero > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.pp-h1 { height: clamp(14px, 2vw, 24px); width: 92%; background: var(--ink); }
.pp-h1--short { width: 64%; }
.pp-p { height: 8px; width: 88%; background: rgba(19,33,31,.18); margin-top: 4px; }
.pp-p--short { width: 58%; }
.pp-btn { width: 38%; height: clamp(22px, 3vw, 34px); background: var(--brass); margin-top: 10px; }
.pp-img { height: 100%; min-height: 90px; border-radius: 4px; background: var(--deep); position: relative; overflow: hidden; }
.pp-img::before, .pp-img::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid var(--brass-2); }
.pp-img::before { width: 70%; aspect-ratio: 1; right: -18%; top: -24%; }
.pp-img::after { width: 120%; aspect-ratio: 1; right: -45%; top: -50%; opacity: .45; }
.pp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pp-cards i { height: clamp(36px, 5vw, 64px); background: var(--paper); box-shadow: inset 0 0 0 1px rgba(19,33,31,.08); }
.pp-badge { position: absolute; left: 14px; bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: var(--night); color: var(--mist); }
/* build-in animation for each typed address */
.browser__page.is-building > * { animation: ppin .8s var(--ease) both; }
.browser__page.is-building > :nth-child(2) { animation-delay: .12s; }
.browser__page.is-building > :nth-child(3) { animation-delay: .24s; }
.browser__page.is-building > :nth-child(4) { animation-delay: .5s; }
@keyframes ppin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- work ---------- */
.work { position: relative; }
.work__sticky { padding: var(--section) 0; }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.work__count { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); color: var(--mist-muted); white-space: nowrap; }
.work__count b { font-weight: 400; color: var(--mist); font-variant-numeric: tabular-nums; }
.work__track { display: flex; gap: clamp(20px, 2.6vw, 40px); padding-inline: var(--pad); will-change: transform; }
.card { flex: 0 0 min(60vw, 820px); display: flex; flex-direction: column; gap: 26px; }
.card__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--night-2); }
.card__art svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
a.card:hover .card__art svg { transform: scale(1.045); }
.card__body { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
.card__body > :not(.card__num) { grid-column: 2; }
.card__num { grid-row: 1 / span 4; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--brass-2); padding-top: 4px; }
.card__tag { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.2rem; color: var(--brass-2); }
.card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 3.6vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; margin: 6px 0 14px; }
.card__desc { color: var(--mist-muted); max-width: 48ch; }
.card__meta { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.card__meta--link { color: var(--brass-2); }
.card__art--c { display: grid; place-items: center; background: transparent; border: 1.5px dashed rgba(236, 239, 234, .3); transition: border-color .5s, background-color .5s; }
.card--next:hover .card__art--c { border-color: var(--brass-2); background: rgba(217, 165, 74, .06); }
.next-url { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 2.2rem); letter-spacing: -0.02em; color: var(--mist-muted); padding: 0 24px; text-align: center; overflow-wrap: break-word; }
.next-url em { color: var(--brass-2); font-weight: 300; }

/* pinned horizontal scroll on large screens */
@media (min-width: 1000px) {
  .work:not(.is-pinned) .work__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--max); margin-inline: auto; }
  html.js .work.is-pinned .work__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 8px) 0 32px; overflow: hidden; }
  html.js .work.is-pinned .card { flex-basis: min(54vw, 780px); }
  html.js .work.is-pinned .card__art { aspect-ratio: auto; height: min(46vh, 30vw); }
}

/* ---------- experience ---------- */
.exp { padding: var(--section) 0; }
.exp__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 80px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.exp__lead { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 44ch; }
.names { border-top: 1px solid var(--line); counter-reset: nm; }
.names li {
  counter-increment: nm;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: clamp(12px, 1.6vw, 20px) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 5rem); line-height: 1.05; letter-spacing: -0.035em;
  transition: color .5s var(--ease), padding .6s var(--ease);
}
.names li::after { content: "(" counter(nm, decimal-leading-zero) ")"; font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .names li:hover { color: var(--brass-text); font-style: italic; font-weight: 300; padding-left: 28px; }
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(72px, 9vw, 128px); }
.stat { border-top: 1px solid var(--ink); padding-top: 24px; }
.stat b { font-family: var(--font-display); font-weight: 300; font-size: clamp(4rem, 9vw, 8.6rem); line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat__plus { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.8rem); color: var(--brass-text); vertical-align: top; }
.stat p { margin-top: 16px; color: var(--muted); max-width: 24ch; }
.stat:nth-child(2) { --rd: .1s; }
.stat:nth-child(3) { --rd: .2s; }

/* ---------- process ---------- */
.process { padding: var(--section) 0; background: var(--deep-soft); }
.process__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px clamp(48px, 8vw, 140px); align-items: start; }
.process__head { position: sticky; top: calc(var(--header-h) + 40px); }
.process .display em { color: #6f4e12; }
.process .eyebrow { color: #6f4e12; }
.step { position: relative; display: grid; grid-template-columns: clamp(80px, 9vw, 140px) minmax(0, 1fr); gap: 24px; padding: clamp(32px, 4vw, 52px) 0; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(14, 59, 67, .3); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .1s; }
html:not(.js) .step::before, .step.is-in::before { transform: scaleX(1); }
.step__num { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: .9; color: var(--deep); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 12px; }
.step p { color: #3e4c4a; max-width: 42ch; }

/* ---------- faq ---------- */
.faq { padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px clamp(48px, 8vw, 140px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; cursor: pointer; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--deep); }
.faq summary i { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--deep); color: var(--cream); border-color: var(--deep); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 64px 28px 0; color: var(--muted); max-width: 62ch; animation: faqin .5s var(--ease); }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- contact ---------- */
.contact { padding: var(--section) 0; position: relative; overflow: hidden; }
.contact__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.4rem, 12.4vw, 14.5rem); line-height: .9; letter-spacing: -0.05em; margin-left: -0.04em; }
.contact__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px 80px; margin-top: clamp(48px, 6vw, 96px); padding-top: 40px; border-top: 1px solid var(--line-dark); }
.contact__body { color: var(--mist-muted); font-size: clamp(1.05rem, 1.35vw, 1.22rem); max-width: 36ch; }
.contact__email { position: relative; display: inline-block; font-family: var(--font-display); font-size: clamp(1.6rem, 4.2vw, 4rem); line-height: 1.1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.contact__email::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brass-2); transform: scaleX(.25); transform-origin: left; transition: transform .7s var(--ease); }
.contact__email:hover::after { transform: scaleX(1); }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- footer ---------- */
.footer { background: var(--abyss); color: var(--mist); padding: clamp(72px, 9vw, 120px) 0 24px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer__col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--mist-muted); }
.footer__col .label { margin-bottom: 8px; }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--mist); }
.footer__top-link { align-self: start; font-size: 14px; font-weight: 700; color: var(--mist); }
.footer__mark {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(5rem, 26.2vw, 30rem); line-height: .78; letter-spacing: -0.06em;
  color: #17414a; white-space: nowrap; user-select: none;
  margin: 0 0 clamp(20px, 2.4vw, 36px) -0.05em;
  transform: translate3d(0, var(--fy, 0), 0);
}
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--mist-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .svc { grid-template-columns: 56px minmax(0, 1fr) 140px; grid-template-areas: "num title kicker" "num desc desc" "num tags tags"; row-gap: 14px; }
  .svc__desc { max-width: 60ch; }
}
@media (max-width: 999px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .hero__foot, .method__top, .exp__top, .proto__grid, .process__grid, .faq__grid, .contact__row { grid-template-columns: minmax(0, 1fr); }
  .hero__compass { width: 130vw; right: -55vw; top: 34%; opacity: .55; }
  .manifesto__grid { grid-template-columns: minmax(0, 1fr); }
  .method__points, .stats { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .process__head { position: static; }
  .work__track { flex-direction: column; gap: 64px; }
  .card { flex-basis: auto; }
  .grid67__cells { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top-link { grid-column: 1 / -1; }
  .proto__grid { gap: 56px; }
}
@media (max-width: 600px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .brand__name { font-size: 21px; }
  .brand__mark { width: 30px; height: 30px; }
  .header__tools { gap: 8px; }
  .lang { gap: 2px; }
  .hero__meta span:first-child { display: none; }
  .hero__meta { justify-content: flex-end; }
  .hero__actions .btn { flex: 1 1 auto; }
  .svc { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num kicker" "title title" "desc desc" "tags tags"; }
  .svc__num { padding-top: 6px; }
  .svc__kicker { margin-top: 0; }
  .card__body { grid-template-columns: minmax(0, 1fr); }
  .card__body > :not(.card__num) { grid-column: 1; }
  .card__num { grid-row: auto; margin-bottom: 6px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .faq details p { padding-right: 0; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .names li::after { display: none; }
  .pp-cards i:nth-child(3) { display: none; }
  .pp-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-split] .wi, html.js .line__in { opacity: 1; transform: none; }
  html.js .compass__rim { stroke-dashoffset: 0; }
  html.js .compass__notch, html.js .compass__turn { opacity: 1; transform: none; }
  .mw { opacity: 1; }
}
