/* ============================================================
   BLDRX — Builders of the Next
   Design system: editorial + technical/HUD, black & white first
   ============================================================ */

:root{
  --bg:        #0A0A0A;
  --bg-2:      #111111;
  --ink:       #F5F4EF;
  --ink-rgb:   245, 244, 239;
  --mut:       #8A8A82;
  --line:      rgba(245,244,239,0.14);
  --line-2:    rgba(245,244,239,0.06);
  /* Monochrome by design: the palette is the marble itself (#0A0A0A → #E5E5E5).
     "signal" is no longer a hue — it's just the brightest stone. */
  --signal:    #E8E6DF;
  --signal-ink:#0A0A0A;

  --f-display: 'Archivo', 'Arial Black', sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-py: clamp(72px, 12vh, 160px);

  --ease: cubic-bezier(.16,.84,.44,1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    /* BLDRX is a dark-first brand system by design — kept intentionally
       fixed across the light OS preference; no light variant is offered. */
  }
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:auto; }
html,body{ background:var(--bg); }
body{
  margin:0;
  font-family:var(--f-body);
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,p{ margin:0; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }

::selection{ background:var(--ink); color:var(--bg); }

:focus-visible{ outline:2px solid var(--signal); outline-offset:3px; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:999;
  background:var(--ink); color:var(--bg); padding:10px 16px; font-family:var(--f-mono); font-size:13px;
}
.skip-link:focus{ left:12px; top:12px; }

/* ============================================================
   PRELOADER
   display:none is the default on purpose — html.preload is added
   by an inline script, so the overlay can only ever appear when
   JS is alive to remove it again.
   ============================================================ */
.preloader{
  position:fixed; inset:0; z-index:200; background:var(--bg);
  display:none; align-items:center; justify-content:center;
}
html.preload .preloader{ display:flex; }
html.preload body{ overflow:hidden; }
.preloader.is-out{ opacity:0; pointer-events:none; transition:opacity .45s var(--ease); }

.preloader__word{
  display:flex; align-items:center;
  font-family:var(--f-display); font-weight:900; text-transform:uppercase;
  font-size:clamp(46px, 9vw, 124px); line-height:1; letter-spacing:-.015em;
  color:var(--ink);
}
/* Untyped letters take no width, so the word grows and the caret travels
   with it. Reserving their boxes up front left the caret stranded after
   an empty gap. */
.pl-letter{
  display:inline-block; width:0; overflow:hidden;
  opacity:0; transform:translateY(.06em);
  transition:opacity .12s linear, transform .18s var(--ease);
}
.pl-letter.is-in{ width:auto; opacity:1; transform:none; }

/* no overflow:hidden here — the dust canvas has to spill past this box */
.pl-x{ position:relative; display:inline-block; width:0; }
.pl-x.is-forming{ width:auto; }
/* reserves the exact glyph box, and resolves crisp once the dust settles
   so the final letterform never depends on particle coverage */
.pl-x__ghost{ opacity:0; transition:opacity .38s var(--ease); }
.pl-x.is-solid .pl-x__ghost{ opacity:1; }
.pl-x__dust{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  pointer-events:none;
}

.pl-caret{
  width:.06em; height:.78em; margin-left:.1em; background:var(--ink);
  animation:plCaret .75s step-end infinite;
}
.pl-caret.is-gone{ opacity:0; animation:none; }
@keyframes plCaret{ 0%,50%{opacity:1} 51%,100%{opacity:0} }

/* ---------- grain / texture ---------- */
.grain{
  position:fixed; inset:0; z-index:2; pointer-events:none; opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- progress rail ---------- */
.progress-rail{
  position:fixed; top:0; left:0; right:0; height:2px; z-index:60; background:var(--line-2);
}
.progress-rail__fill{
  display:block; height:100%; width:0%; background:var(--ink); transform-origin:left; will-change:width;
}

/* ---------- scroll hammer: rides the same progress the rail shows ---------- */
.scroll-hammer{
  position:fixed; top:0; right:clamp(14px,2.4vw,32px); height:100%; width:26px; z-index:65;
  pointer-events:none;
}
.scroll-hammer__track{
  position:absolute; top:64px; bottom:64px; left:50%; width:1px;
  background:var(--line-2); transform:translateX(-50%);
}
.scroll-hammer__mark{
  position:absolute; top:64px; left:50%; width:26px; height:26px;
  transform:translate(-50%,-50%); color:var(--ink);
  --charge:0;
  filter:drop-shadow(0 0 calc(var(--charge) * 12px) rgba(var(--ink-rgb), var(--charge)));
}
.scroll-hammer__icon{ display:block; width:100%; height:100%; }
.scroll-hammer__bolt{
  position:absolute; top:100%; left:50%; width:15px; height:26px;
  transform:translate(-50%,2px); color:var(--ink); opacity:0;
}
@media (max-width:768px){ .scroll-hammer{ display:none; } }

/* ---------- custom cursor ---------- */
.cursor{ position:fixed; inset:0; z-index:80; pointer-events:none; }
.cursor__dot,.cursor__ring{
  position:absolute; top:0; left:0; border-radius:50%; transform:translate(-50%,-50%);
  will-change:transform;
}
.cursor__dot{ width:6px; height:6px; background:var(--ink); }
.cursor__ring{ width:34px; height:34px; border:1px solid var(--line); transition:width .25s var(--ease),height .25s var(--ease),border-color .25s var(--ease),background .25s var(--ease); }
.cursor.is-hover .cursor__ring{ width:56px; height:56px; border-color:var(--ink); }
.cursor.is-active .cursor__ring{ width:24px; height:24px; }
@media (hover:none), (pointer:coarse){ .cursor{ display:none; } }

.pulse-dot{
  display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--signal);
  margin-right:9px; flex:none; position:relative; top:-1px;
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:70;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px var(--gutter);
  background:linear-gradient(to bottom, rgba(10,10,10,.85), rgba(10,10,10,0));
  transition:transform .4s var(--ease), background .3s var(--ease);
}
.nav.is-condensed{ background:rgba(10,10,10,.72); backdrop-filter:blur(10px); }
.nav.is-hidden{ transform:translateY(-110%); }

.nav__logo{ display:flex; align-items:center; gap:10px; }
.nav__mark{ width:20px; height:20px; color:var(--ink); }
.nav__word{ font-family:var(--f-display); font-weight:800; font-size:19px; letter-spacing:.02em; }

.nav__links{ display:flex; gap:36px; font-family:var(--f-mono); font-size:13px; letter-spacing:.03em; text-transform:uppercase; }
.nav__links a{ position:relative; padding-bottom:4px; }
.nav__links a::after{
  content:""; position:absolute; left:0; bottom:0; width:100%; height:1px; background:var(--ink);
  transform:scaleX(0); transform-origin:left; transition:transform .35s var(--ease);
}
.nav__links a:hover::after{ transform:scaleX(1); }

.nav__right{ display:flex; align-items:center; gap:22px; }

.nav__burger{ display:none; flex-direction:column; gap:6px; width:26px; }
.nav__burger span{ height:1.4px; background:var(--ink); width:100%; transition:transform .3s var(--ease), opacity .3s var(--ease); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--f-mono); font-size:13px; letter-spacing:.04em; text-transform:uppercase;
  padding:14px 26px; border:1px solid var(--ink); white-space:nowrap;
  transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  position:relative; overflow:hidden;
}
/* a light sweeps through on hover, on top of the existing color swap */
.btn::after{
  content:""; position:absolute; top:0; left:-75%; width:45%; height:100%;
  background:linear-gradient(115deg, transparent, rgba(var(--ink-rgb),.55), transparent);
  transform:skewX(-18deg); pointer-events:none;
  transition:left .6s var(--ease);
}
.btn--solid::after{ background:linear-gradient(115deg, transparent, rgba(10,10,10,.35), transparent); }
.btn:hover::after{ left:135%; }
.btn--solid{ background:var(--ink); color:var(--bg); }
.btn--solid:hover{ background:var(--signal); border-color:var(--signal); color:var(--signal-ink); }
.btn--ghost{ background:transparent; border-color:var(--line); }
.btn--ghost:hover{ border-color:var(--ink); }
.btn--line{ background:transparent; }
.btn--line:hover{ background:var(--ink); color:var(--bg); }
.btn--sm{ padding:9px 16px; font-size:11px; }
.btn--lg{ padding:19px 40px; font-size:14px; }

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.menu{
  position:fixed; inset:0; z-index:75; background:var(--bg);
  display:flex; flex-direction:column; justify-content:space-between;
  padding:22px var(--gutter) 40px;
  transform:translateY(-100%); transition:transform .5s var(--ease);
}
.menu.is-open{ transform:translateY(0); }
.menu__top{ display:flex; justify-content:space-between; align-items:center; }
.menu__label{ font-family:var(--f-mono); font-size:13px; letter-spacing:.06em; color:var(--mut); }
.menu__close{ font-size:20px; }
.menu__links{ display:flex; flex-direction:column; gap:6px; }
.menu__links a{
  display:flex; align-items:baseline; gap:18px;
  font-family:var(--f-display); font-weight:800; font-size:clamp(38px,10vw,80px);
  padding:10px 0; border-bottom:1px solid var(--line-2);
  text-transform:uppercase; letter-spacing:-.01em;
}
.menu__idx{ font-family:var(--f-mono); font-size:14px; color:var(--mut); font-weight:400; }
.menu__bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; }
.menu__meta{ display:flex; flex-direction:column; gap:2px; font-family:var(--f-mono); font-size:12px; color:var(--mut); text-align:right; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; min-height:100vh; min-height:100svh;
  display:flex; flex-direction:column; justify-content:safe center;
  /* the fixed nav overlays the hero rather than pushing it down, so on
     short/wide windows (a laptop browser that isn't maximised
     vertically) pure viewport centring could place the eyebrow line
     right under — or behind — the nav. Reserving its height as top
     padding keeps the centred content clear of it; "safe center" is
     the fallback for the rare case content still doesn't fit, so it
     aligns to this padding instead of overflowing upward past it.
     The extra +26px clears .hero__hud too — it sits at this same
     clamp() offset, so without the buffer a tall hero__inner (title +
     subtitle + actions + the stats row) centres right on top of it
     instead of just below it. */
  padding:0 var(--gutter);
  padding-top:calc(clamp(90px,14vh,140px) + 20px);
  /* mirrors the top reservation: .hero__footer (the SCROLL cue + 00/08
     index) is also absolutely positioned, bottom-anchored, so the stats
     row — now the last, lowest item in the centred stack — needs its
     own clearance or it lands right on top of it on shorter screens. */
  padding-bottom:calc(clamp(28px,5vh,48px) + 34px);
  overflow:hidden;
}
.hero__dust{
  position:absolute; inset:0; width:100%; height:100%;
  z-index:0; pointer-events:none;
}

.hero__grid{ position:absolute; inset:0; pointer-events:none; }
.hero__cross{ position:absolute; width:14px; height:14px; }
.hero__cross::before,.hero__cross::after{ content:""; position:absolute; background:var(--line); }
.hero__cross::before{ left:50%; top:0; bottom:0; width:1px; transform:translateX(-50%); }
.hero__cross::after{ top:50%; left:0; right:0; height:1px; transform:translateY(-50%); }
.hero__cross--tl{ top:clamp(90px,14vh,140px); left:var(--gutter); }
.hero__cross--tr{ top:clamp(90px,14vh,140px); right:var(--gutter); }
.hero__cross--bl{ bottom:clamp(70px,10vh,110px); left:var(--gutter); }
.hero__cross--br{ bottom:clamp(70px,10vh,110px); right:var(--gutter); }

.hero__hud{
  position:absolute; top:clamp(90px,14vh,140px); left:0; right:0;
  display:flex; justify-content:space-between; padding:0 calc(var(--gutter) + 26px);
  font-family:var(--f-mono); font-size:12px; letter-spacing:.05em; color:var(--mut);
}
.hero__hud-item--status{ display:flex; align-items:center; }

/* right-edge floating labels — desktop only, in the strip of hairline
   gutter the right-anchored figure never quite reaches */
.hero__phrases{
  position:absolute; z-index:1; right:var(--gutter); top:26%;
  text-align:right; pointer-events:none;
}
.hero__phrase-list{
  font-family:var(--f-mono); font-size:12.5px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--mut); display:flex; flex-direction:column; gap:6px;
}
/* sits on its own, lower — roughly where the sculpture's feet/rock
   base reads (measured: the rock mass starts around 60% down the
   figure box), instead of grouped with the list up by its shoulder */
.hero__phrase-tag{
  position:absolute; z-index:1; right:var(--gutter); top:68%;
  font-family:var(--f-mono); font-size:12px; line-height:1.6;
  letter-spacing:.02em; color:var(--mut); display:flex; align-items:flex-start; gap:8px; justify-content:flex-end;
  pointer-events:none; text-align:right;
}
.hero__phrase-mark{ width:12px; height:1px; background:var(--line); margin-top:8px; flex:none; }

.hero__next{
  position:absolute; z-index:1; right:var(--gutter); bottom:clamp(70px,10vh,110px);
  width:44px; height:44px; border:1px solid var(--line); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--ink);
  transition:border-color .3s var(--ease), transform .3s var(--ease);
}
.hero__next:hover{ border-color:var(--ink); transform:translateY(3px); }

.hero__stats{
  display:flex; gap:clamp(24px,3vw,44px); margin-top:clamp(12px,1.6vw,20px);
  padding-top:12px; border-top:1px solid var(--line-2);
}
.hero__stat{ display:flex; flex-direction:column; gap:4px; }
.hero__stat-num{ font-family:var(--f-display); font-weight:800; font-size:clamp(19px,2vw,25px); }
.hero__stat-label{ font-family:var(--f-mono); font-size:11.5px; letter-spacing:.03em; color:var(--mut); max-width:16ch; }

/* Sculpture sits in the empty right half, behind the type, back to the
   pre-redesign desktop treatment (the dim centred backdrop turned out
   to read better as a mobile-only trick than a universal default). The
   cutout already carries its own alpha channel and a baked-in darken
   pass (tools/hero-cutout.py), so no CSS mask or opacity is needed here. */
.hero__figure{
  position:absolute; right:clamp(40px, 7vw, 150px); top:52%;
  /* declared, not just used with a var() fallback: GSAP reads the computed
     value as its tween start, and an undeclared custom property reads as
     an empty string */
  --fx:0px; --fy:0px; --fs:1;
  /* drift is composed onto the centring transform through custom properties,
     so JS never has to rewrite (and lose) the translateY that centres it */
  transform:translateY(-50%) translate3d(var(--fx,0px), var(--fy,0px), 0) scale(var(--fs,1));
  will-change:transform;
  /* max-width:none defeats the global img{max-width:100%}, which would
     otherwise clamp the bleed to the container width. */
  max-width:none;
  width:min(50vw, 900px); max-height:88vh; height:auto;
  z-index:0; pointer-events:none;
}

.hero__inner{ max-width:var(--container); margin:0 auto; width:100%; position:relative; z-index:1; }
.eyebrow{
  display:flex; align-items:center; font-family:var(--f-mono); font-size:13px; letter-spacing:.08em;
  color:var(--mut); margin-bottom:16px; text-transform:uppercase;
}
.hero__title{ font-family:var(--f-display); font-weight:900; text-transform:uppercase; line-height:.86; letter-spacing:-.02em; }
.hero__line{ display:block; overflow:hidden; }
/* trimmed from 10.5vw/168px per direct request. Figure just grew wider
   too (bled further, per the same request), so re-verify clearance
   against WHAT'S — the longest line — before growing this back up. */
.hero__line span{ display:block; font-size:clamp(52px, 9.2vw, 148px); }
.hero__line--outline span{ -webkit-text-stroke:2px var(--ink); color:transparent; }

.hero__sub{ margin-top:14px; max-width:520px; font-size:17px; line-height:1.6; color:var(--mut); }
.hero__actions{ display:flex; gap:16px; margin-top:20px; flex-wrap:wrap; }

.hero__footer{
  position:absolute; bottom:clamp(28px,5vh,48px); left:0; right:0;
  display:flex; justify-content:flex-end; align-items:center; padding:0 var(--gutter);
  font-family:var(--f-mono); font-size:12px; letter-spacing:.08em; color:var(--mut);
}
/* the scroll cue used to be a small inline track next to the 00/08 index;
   it's now the big vertical line asked for — its own lane in the gutter
   margin, left of where the title's own left edge starts, spanning most
   of the hero's height so it reads as a real scroll rail, not a hint. */
.hero__scroll{
  position:absolute; left:clamp(14px,2vw,28px);
  top:clamp(90px,14vh,140px); bottom:clamp(70px,10vh,110px);
  display:flex; flex-direction:column; align-items:center; z-index:1; pointer-events:none;
}
.hero__scroll-track{ position:relative; width:1px; flex:1; background:var(--line); }
.hero__scroll-dot{ position:absolute; left:-1.5px; top:0; width:4px; height:4px; border-radius:50%; background:var(--ink); animation:scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot{ 0%{ top:0; opacity:1; } 90%{ opacity:1; } 100%{ top:100%; opacity:0; } }
.hero__scroll-label{
  margin-top:14px; font-family:var(--f-mono); font-size:10.5px; letter-spacing:.14em;
  color:var(--mut); writing-mode:vertical-rl;
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section{
  position:relative; max-width:var(--container); margin:0 auto;
  padding:var(--section-py) var(--gutter);
  border-top:1px solid var(--line-2);
}
.section__head{ display:flex; align-items:baseline; gap:16px; margin-bottom:clamp(28px,5vw,56px); }
.section__idx{ font-family:var(--f-mono); font-size:13px; color:var(--mut); }
.section__kicker{ font-family:var(--f-mono); font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--mut); }
.section__kicker::before{ content:"— "; }

.section__title{
  font-family:var(--f-display); font-weight:800; text-transform:uppercase;
  font-size:clamp(30px, 5.2vw, 68px); line-height:1.05; letter-spacing:-.01em; max-width:18ch;
}
.section__title--display{ font-weight:900; max-width:none; letter-spacing:-.02em; }

/* ---------- 01 manifesto ---------- */
.manifesto__statement{ font-family:var(--f-display); font-weight:700; text-transform:uppercase; line-height:1.08; }
.manifesto__statement p{
  font-size:clamp(30px,6vw,74px); color:var(--mut); transition:color .5s var(--ease);
  text-shadow:0 2px 24px rgba(10,10,10,.7);
}
.manifesto__statement p.is-strong,
.manifesto__statement p em{ color:var(--ink); font-style:normal; }
.manifesto__statement p em{ font-style:italic; font-family:var(--f-body); font-weight:400; text-transform:none; letter-spacing:0; }

.manifesto__list{ margin-top:clamp(56px,9vw,110px); display:flex; flex-direction:column; }
.manifesto__list li{
  font-family:var(--f-mono); font-size:clamp(15px,1.6vw,19px); letter-spacing:.01em;
  padding:20px 0; border-bottom:1px solid var(--line-2); color:var(--mut); transition:color .4s var(--ease), padding-left .4s var(--ease);
  text-shadow:0 2px 20px rgba(10,10,10,.7);
}
.manifesto__list li:first-child{ border-top:1px solid var(--line-2); }
.manifesto__list li.is-lit{ color:var(--ink); padding-left:14px; }

/* ---------- section background video ----------
   A handful of sections use one of the sculpture clips as their own
   backdrop instead of flat --bg, muted and looping, dimmed by a scrim
   so the section's own copy stays readable on top.

   .section itself is capped at --container and centred, so on any
   viewport wider than that the video only filled the boxed section —
   a hard vertical seam against the page's own --bg on either side.
   .section--video drops that cap so the video (and the section box
   carrying it) runs true edge-to-edge; .section__inner puts the
   --container cap back just for the actual copy, same as before. */
.section--video{
  position:relative; overflow:hidden;
  max-width:none; margin-left:0; margin-right:0;
  padding-left:0; padding-right:0;
}
.section__inner{
  position:relative; z-index:2;
  max-width:var(--container); margin:0 auto; padding:0 var(--gutter);
}
.section__bgvideo{
  position:absolute; inset:0; width:100%; height:100%; max-width:none;
  object-fit:cover; z-index:0; pointer-events:none;
}
.section--video::after{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(to bottom, rgba(10,10,10,.92) 0%, rgba(10,10,10,.78) 35%, rgba(10,10,10,.9) 100%);
}

/* ---------- 03 método ----------
   Four stages in a hairline grid. The stage names stay — raw stone
   shaped into a figure is still the right metaphor for the method,
   with or without the sculpture next to it. */
.method__row{
  margin-top:clamp(48px,7vw,84px);
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line-2);
}
.method__step{ background:var(--bg); padding:32px 26px 40px; position:relative; }
.method__num{ font-family:var(--f-mono); font-size:13px; color:var(--mut); }
.method__step h3{
  font-family:var(--f-display); font-weight:800; text-transform:uppercase;
  font-size:22px; margin:18px 0 14px; letter-spacing:.01em;
}
.method__step h3 em{
  font-family:var(--f-mono); font-style:normal; font-weight:400;
  font-size:.58em; letter-spacing:.08em; color:var(--mut);
  margin-left:7px; text-transform:lowercase;
}
.method__step p{ font-size:14.5px; line-height:1.6; color:var(--mut); }

/* ---------- 03 build list ---------- */
.build__list{ margin-top:8px; }
.build__row{
  display:grid; grid-template-columns:56px 1fr auto; align-items:baseline; gap:24px;
  padding:26px 0; border-bottom:1px solid var(--line-2); position:relative;
}
.build__row:first-child{ border-top:1px solid var(--line-2); }
.build__num{ font-family:var(--f-mono); font-size:13px; color:var(--mut); }
.build__name{
  font-family:var(--f-display); font-weight:700; text-transform:uppercase;
  font-size:clamp(24px,4vw,42px); letter-spacing:-.01em; transition:letter-spacing .35s var(--ease);
}
.build__tag{ font-family:var(--f-mono); font-size:13px; color:var(--mut); text-align:right; }
.build__row::after{
  content:""; position:absolute; left:0; bottom:-1px; height:1px; width:0; background:var(--ink);
  transition:width .45s var(--ease);
}
.build__row:hover::after{ width:100%; }
.build__row:hover .build__name{ letter-spacing:.01em; }

/* ---------- 04 ai ---------- */
.ai__sub{ margin-top:24px; max-width:56ch; color:var(--mut); font-size:16px; line-height:1.65; }
.ai__row{ margin-top:clamp(48px,7vw,84px); display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(28px,4vw,56px); }
.ai__num{ font-family:var(--f-mono); font-size:13px; color:var(--mut); }
.ai__item h3{ font-family:var(--f-display); font-weight:800; font-size:18px; margin:16px 0 10px; letter-spacing:.03em; }
.ai__item p{ font-size:14.5px; color:var(--mut); line-height:1.6; }
.ai__status{
  display:inline-block; margin-top:16px;
  font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; color:var(--mut);
  border:1px solid var(--line); padding:6px 10px; white-space:nowrap;
}

/* ---------- 05 community ---------- */
.community__list{ margin-top:12px; display:flex; flex-direction:column; gap:16px; max-width:560px; }
.community__list li{ display:flex; gap:14px; font-size:17px; line-height:1.5; padding:6px 0; }
.community__mark{ font-family:var(--f-mono); color:var(--mut); flex:none; }

.marquee{
  overflow:hidden; margin-top:clamp(48px,8vw,96px);
  border-top:1px solid var(--line-2); border-bottom:1px solid var(--line-2);
  /* fades the loop seam at both edges instead of hard-cutting mid-word */
  -webkit-mask-image:linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image:linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track{ display:flex; width:max-content; white-space:nowrap; will-change:transform; }
.marquee--thin .marquee__track{ font-family:var(--f-mono); font-size:14px; letter-spacing:.1em; color:var(--mut); padding:18px 0; }
.marquee--thin i{ font-style:normal; padding:0 .9em; color:var(--line-2); }
.marquee--chips .marquee__track{ font-family:var(--f-display); font-weight:800; text-transform:uppercase; font-size:clamp(28px,5vw,52px); padding:22px 0; }
.marquee--chips i{ color:var(--mut); font-style:normal; padding:0 .3em; }

/* ---------- 06 projects ---------- */
.projects__sub{ margin-top:22px; max-width:56ch; color:var(--mut); font-size:16px; line-height:1.65; }

/* ---------- cases carousel: browser-chrome preview cards ---------- */
.projects__carousel{ margin-top:clamp(40px,6vw,72px); position:relative; }
.projects__track{
  display:flex; gap:28px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none; padding-bottom:4px;
}
.projects__track::-webkit-scrollbar{ display:none; }
.projects__card{ flex:0 0 min(560px, 86vw); scroll-snap-align:start; display:flex; flex-direction:column; }
.projects__preview{
  display:block; position:relative; aspect-ratio:16/10; overflow:hidden;
  background:var(--bg-2); border:1px solid var(--line-2);
}
.projects__chrome{
  position:absolute; top:0; left:0; right:0; height:28px; z-index:1;
  display:flex; align-items:center; gap:6px; padding:0 12px;
  background:rgba(10,10,10,.7); backdrop-filter:blur(4px);
  border-bottom:1px solid var(--line-2);
}
.projects__chrome i{ width:7px; height:7px; border-radius:50%; background:var(--line); display:block; }
.projects__preview img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top;
  transition:transform .5s var(--ease);
}
.projects__preview:hover img{ transform:scale(1.03); }

.projects__meta{ margin-top:18px; display:flex; flex-direction:column; gap:6px; }
.projects__num{ font-family:var(--f-mono); font-size:12px; color:var(--mut); }
.projects__name{ font-family:var(--f-display); font-weight:700; font-size:clamp(19px,2vw,24px); text-transform:uppercase; }
.projects__desc{ color:var(--mut); font-size:14.5px; line-height:1.55; max-width:46ch; }
.projects__stack{ font-family:var(--f-mono); font-size:12px; color:var(--mut); margin-top:2px; }

.projects__nav{ display:flex; align-items:center; justify-content:center; gap:20px; margin-top:clamp(28px,4vw,44px); }
.projects__arrow{
  width:38px; height:38px; border:1px solid var(--line); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--ink);
  transition:border-color .25s var(--ease), background .25s var(--ease);
}
.projects__arrow:hover{ border-color:var(--ink); background:var(--bg-2); }
.projects__dots{ display:flex; gap:8px; }
.projects__dot{
  width:6px; height:6px; border-radius:50%; background:var(--line); border:none; padding:0; cursor:pointer;
  transition:background .25s var(--ease), transform .25s var(--ease);
}
.projects__dot.is-active{ background:var(--ink); transform:scale(1.3); }

/* ---------- 07 future ---------- */
.future__sub{ margin-top:20px; max-width:52ch; color:var(--mut); font-size:16px; line-height:1.65; }

/* ---------- 08 cta ---------- */
.cta{ text-align:center; padding-bottom:clamp(120px,16vh,200px); position:relative; overflow:hidden; }
.cta .section__head{ justify-content:center; position:relative; z-index:1; }
/* Full-bleed backdrop for the closing section: the builder at rest,
   answering the one at work in the hero.

   Opposite treatment to .hero__figure, because the source is opposite:
   this frame is 89% below luma 20 and its borders sit at luma 0.7-3.5,
   darker than --bg's 10. There is no backdrop to key out — keying it
   would erase the subject, which is itself a dark silhouette. screen
   maps its near-black to the page (2 over 10 resolves to 12, invisible)
   and lets only the rim light and halo through. */
.cta__builder{
  position:absolute; inset:0; width:100%; height:100%; max-width:none;
  object-fit:cover; object-position:50% 100%;
  mix-blend-mode:screen; pointer-events:none; z-index:0;
}
.cta__title, .cta__sub, .cta__actions, .cta__tag{ position:relative; z-index:1; }
.cta__title{
  font-family:var(--f-display); font-weight:900; text-transform:uppercase; letter-spacing:-.02em;
  font-size:clamp(52px,10vw,140px); line-height:.94; margin:0 auto;
}
.cta__sub{ margin:26px auto 0; max-width:44ch; color:var(--mut); font-size:17px; }
.cta__actions{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-top:44px; }
.cta__tag{ margin-top:38px; font-family:var(--f-mono); font-size:13px; letter-spacing:.06em; color:var(--mut); }

/* ============================================================
   ORÇAMENTO — single-page quote form (orcamento.html).
   Two columns: pitch + alt-contact on the left (sticky, so it
   stays in view while the form scrolls), the actual form on the
   right. Collapses to one column on tablet/mobile.
   ============================================================ */
.quote{ padding-top:clamp(140px,18vh,220px); }
.quote__grid{
  display:grid; grid-template-columns:minmax(260px,1fr) minmax(340px,600px);
  gap:clamp(40px,6vw,96px); align-items:start;
}
.quote__left{ position:sticky; top:clamp(120px,16vh,180px); }
.quote__title{
  font-family:var(--f-display); font-weight:900; text-transform:uppercase; letter-spacing:-.02em;
  font-size:clamp(34px,4.6vw,58px); line-height:1.05;
}
.quote__intro{ margin-top:20px; max-width:38ch; color:var(--mut); font-size:16px; line-height:1.65; }
.quote__alt{ margin-top:36px; padding-top:28px; border-top:1px solid var(--line-2); }
.quote__alt p{ color:var(--mut); font-size:14.5px; line-height:1.6; max-width:34ch; }
.quote__alt a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.quote__alt .btn{ margin-top:18px; }

.quote__form{ display:flex; flex-direction:column; gap:clamp(36px,5vw,56px); }
.quote__fields{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.quote__field{ position:relative; }
.quote__field--full{ grid-column:1 / -1; }
.quote__field label{
  position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0; padding:0;
}
.quote__field input, .quote__field textarea{
  width:100%; background:var(--bg-2); border:1px solid var(--line-2); color:var(--ink);
  font-family:var(--f-body); font-size:15px; padding:17px 18px; border-radius:2px;
  transition:border-color .25s var(--ease), background .25s var(--ease);
}
.quote__field textarea{ min-height:120px; resize:vertical; }
.quote__field input::placeholder, .quote__field textarea::placeholder{ color:var(--mut); }
.quote__field input:focus, .quote__field textarea:focus{ outline:none; border-color:var(--ink); background:#161616; }

.quote__legend{
  display:block; font-family:var(--f-display); font-weight:700; font-size:clamp(17px,2vw,20px);
  text-transform:uppercase; letter-spacing:-.01em; margin-bottom:18px;
}
.quote__services{ display:grid; gap:10px; }
.quote__service{
  display:flex; gap:14px; align-items:flex-start; cursor:pointer;
  background:var(--bg-2); border:1px solid var(--line-2); padding:18px 20px;
  transition:border-color .25s var(--ease), background .25s var(--ease);
}
.quote__service:hover{ border-color:var(--line); }
.quote__service.is-selected{ border-color:var(--ink); background:#161616; }
.quote__service input{ position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); }
.quote__service-box{
  flex:none; width:18px; height:18px; margin-top:2px; border:1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center; transition:border-color .2s var(--ease), background .2s var(--ease);
}
.quote__service.is-selected .quote__service-box{ background:var(--ink); border-color:var(--ink); }
.quote__service-box svg{ width:11px; height:11px; opacity:0; transform:scale(.6); transition:opacity .15s var(--ease), transform .15s var(--ease); color:var(--bg); }
.quote__service.is-selected .quote__service-box svg{ opacity:1; transform:scale(1); }
.quote__service-name{ font-family:var(--f-display); font-weight:700; font-size:15.5px; text-transform:uppercase; }
.quote__service-tag{ display:block; margin-top:3px; color:var(--mut); font-size:13.5px; }

.quote__pillgroup{ display:flex; flex-wrap:wrap; gap:10px; }
.quote__pill{ position:relative; cursor:pointer; }
.quote__pill input{ position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); }
.quote__pill span{
  display:inline-flex; align-items:center; font-family:var(--f-mono); font-size:13px;
  border:1px solid var(--line-2); background:var(--bg-2); color:var(--ink);
  padding:12px 20px; border-radius:999px; transition:background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.quote__pill:hover span{ border-color:var(--line); }
.quote__pill.is-selected span{ background:var(--ink); color:var(--bg); border-color:var(--ink); }

.quote__status{
  font-family:var(--f-mono); font-size:13px; color:var(--mut); border:1px solid var(--line-2);
  padding:14px 18px;
}
.quote__submit{ align-self:flex-start; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  position:relative; overflow:hidden; padding:clamp(48px,7vw,72px) var(--gutter) 28px;
  border-top:1px solid var(--line-2);
}
.footer__giant{
  position:absolute; left:50%; bottom:-6%; transform:translateX(-50%);
  font-family:var(--f-display); font-weight:900; font-size:clamp(90px,26vw,420px);
  color:var(--line-2); letter-spacing:-.02em; white-space:nowrap; pointer-events:none; z-index:0;
}
.footer__top{
  position:relative; z-index:1; max-width:var(--container); margin:0 auto;
  display:grid; grid-template-columns:1.4fr .8fr .8fr .8fr; gap:40px; padding-bottom:64px;
}
.footer__brand{ display:flex; flex-direction:column; gap:14px; }
.footer__mark{ width:26px; height:26px; }
.footer__word{ font-family:var(--f-display); font-weight:900; font-size:26px; }
.footer__tagline{ color:var(--mut); font-size:14.5px; max-width:22ch; }

.footer__col{ display:flex; flex-direction:column; gap:12px; }
.footer__col-title{ font-family:var(--f-mono); font-size:12px; letter-spacing:.08em; color:var(--mut); margin-bottom:6px; }
.footer__col a{ font-size:15px; color:var(--ink); opacity:.85; }
.footer__col a:hover{ opacity:1; text-decoration:underline; }
.footer__whatsapp{ display:inline-flex; align-items:center; gap:8px; }
.footer__meta{ font-family:var(--f-mono); font-size:12.5px; color:var(--mut); margin-top:4px; }

.footer__bottom{
  position:relative; z-index:1; max-width:var(--container); margin:0 auto; padding-top:22px;
  border-top:1px solid var(--line-2); display:flex; justify-content:space-between;
  font-family:var(--f-mono); font-size:12px; letter-spacing:.04em; color:var(--mut);
}

/* ============================================================
   [data-tilt] hover lift (method steps)
   ============================================================ */
[data-tilt]{ will-change:transform; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .nav__links{ display:none; }
  .nav__burger{ display:flex; }
  .method__row{ grid-template-columns:repeat(2,1fr); }
  /* geometry already clears the type at every width; nothing to soften */
  .ai__row{ grid-template-columns:1fr; gap:32px; }
  .footer__top{ grid-template-columns:1fr 1fr; gap:36px 24px; }
  .quote__grid{ grid-template-columns:1fr; gap:44px; }
  .quote__left{ position:static; }
}

@media (max-width:768px){
  .hero__hud,.hero__grid,.hero__phrases,.hero__phrase-tag,.hero__next,.hero__scroll{ display:none; }
  .hero__stats{ gap:24px; flex-wrap:wrap; }
  .hero__line span{ font-size:clamp(48px,15vw,86px); }
  /* back to full-bleed cover on mobile per direct request — the 16:9
     band was rejected in favour of the original zoomed-in look. Keep
     the crop centred on the subject instead of drifting to a corner. */
  .section--video .section__bgvideo{ object-position:50% 50%; }
  /* text sitting over the video is the actual design — keep the copy
     pulled up against the section's own top edge. The lighter scrim
     and brightness boost this used to carry were tuned for the old
     short 16:9 band; now that mobile is full-bleed cover again (same
     as desktop), it inherits the desktop scrim below instead — no
     override needed, and it reads darker/clearer as a result. */
  .section--video{ padding-top:40px; }
  /* mobile: the figure fills the background behind the type, centred and
     bleeding past the viewport, with its extremes masked so the copy on
     top stays readable */
  .hero__figure{
    width:min(132vw, 680px); max-height:none;
    left:50%; right:auto; top:50%;
    transform:translate(-50%,-50%) translate3d(var(--fx,0px), var(--fy,0px), 0) scale(var(--fs,1));
    /* .30 was tuned for the original, brighter source photo. The current
       cutout already carries its own 0.68 darken pass (tools/hero-cutout.py),
       so stacking the old opacity on top of that made mobile read as
       near-black. Bumped once to .5, still reported too dark — now .75
       plus a brightness filter to lift the actual pixel values, not just
       let more of them show through. */
    opacity:.75;
    filter:brightness(1.25);
    -webkit-mask-image:radial-gradient(ellipse 62% 58% at 50% 48%, #000 42%, transparent 100%);
            mask-image:radial-gradient(ellipse 62% 58% at 50% 48%, #000 42%, transparent 100%);
  }
  /* the copy now sits over the lit stone — a scrim between the two keeps
     it readable without having to dim the figure back down */
  .hero__inner::before{
    content:""; position:absolute; inset:-8vw -6vw -10vw;
    background:radial-gradient(ellipse at 34% 52%,
                rgba(10,10,10,.88) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,0) 100%);
    z-index:-1; pointer-events:none;
  }
  .build__row{ grid-template-columns:32px 1fr; row-gap:6px; }
  .build__tag{ grid-column:2; text-align:left; }
  .method__row{ grid-template-columns:1fr; }
  .footer__top{ grid-template-columns:1fr; gap:32px; }

  /* mobile gets its own composition: sculpture on top, stages below */
}

@media (max-width:480px){
  .btn{ width:100%; }
  .hero__actions{ flex-direction:column; }
  .hero__actions .btn{ width:100%; }
  .cta .btn{ width:auto; }
  .hero__footer{ font-size:11px; }
  .section{ padding-top:64px; padding-bottom:64px; }
  .section--video{ padding-top:40px; }
  .quote{ padding-top:120px; }
  .quote__fields{ grid-template-columns:1fr; }
  .quote__submit{ width:100%; }
}

/* ============================================================
   REDUCED MOTION — everything must already be visible via JS,
   this is only a hard safety net if something slips through
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .pulse-dot,.hero__scroll-dot{ animation:none !important; opacity:1; }
}
html.force-no-motion *{ animation:none !important; transition:none !important; }
