/* ============================================================
   GIVEN — given.systems
   Black-background, achromatic, tech-frame brand system.
   Tokens + classes per 01_BRAND/design-system (source of truth).
   ============================================================ */

/* ============ FONTS ============ */
@font-face{
  font-family:'Sora';
  src:url('../fonts/Sora-Variable.ttf') format('truetype-variations'),
      url('../fonts/Sora-Variable.ttf') format('truetype');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Inter';
  src:url('../fonts/Inter-Variable.ttf') format('truetype-variations'),
      url('../fonts/Inter-Variable.ttf') format('truetype');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

/* ============ TOKENS ============ */
:root{
  --black:#000000;
  --panel:#1A1A1A;
  --edge:#2E2E2E;
  --steel:#8A8A8A;
  --silver:#C4C4C4;
  --white:#FFFFFF;
  --font-display:'Sora','Helvetica Neue',Arial,sans-serif;
  --font-body:'Inter','Helvetica Neue',Arial,sans-serif;
  --ease-tech:cubic-bezier(0.16,1,0.3,1);
  --ease-mech:cubic-bezier(0.7,0,0.2,1);
  --dur-fast:180ms; --dur-base:280ms; --dur-slow:550ms; --dur-draw:1100ms;
  --space-xs:8px; --space-sm:12px; --space-md:20px; --space-lg:32px; --space-xl:48px; --space-2xl:64px;
  --radius-sm:2px;
  --notch:14px;
  --text-label:12px; --text-body:15px; --text-body-lg:18px;
  --container:1180px;
  --edge-pad:clamp(20px,5vw,64px);
}

/* ============ RESET / BASE ============ */
*,*::before,*::after{ box-sizing:border-box; }
html{ background:var(--black); scroll-behavior:auto; }
html,body{ overflow-x:hidden; width:100%; }
body{
  margin:0;
  background:var(--black);
  color:var(--white);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; background:none; border:none; color:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p,blockquote,figure{ margin:0; }

h1,h2,h3,.font-display{
  font-family:var(--font-display);
  font-weight:800;
  letter-spacing:-0.01em;
  line-height:1.05;
}

a:focus-visible, button:focus-visible{
  outline:1px solid var(--silver);
  outline-offset:4px;
}
::selection{ background:var(--white); color:var(--black); }

.kicker{
  font-family:var(--font-body);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:var(--text-label);
  color:var(--steel);
  display:inline-block;
}
.caps-label{
  font-family:var(--font-body);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:11px;
  color:var(--steel);
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding-left:var(--edge-pad);
  padding-right:var(--edge-pad);
  position:relative;
}

section{ position:relative; padding:clamp(36px,4.6vw,64px) 0; }

.dash-beat{
  display:block;
  color:var(--steel);
  font-size:20px;
  margin:10px 0;
  line-height:1;
}

/* ============ DOT GRID CANVAS ============ */
#dot-grid{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
  transition:opacity 1.2s ease;
}

.dot-panel{
  position:absolute;
  pointer-events:none;
  background-image:radial-gradient(var(--edge) 1px, transparent 1.4px);
  background-size:12px 12px;
  opacity:0.55;
  z-index:0;
}

.ghost-mark{
  position:absolute;
  z-index:0;
  pointer-events:none;
  color:var(--panel);
  opacity:0.55;
}

/* ============ TECH FRAME ============ */
.tech-frame{
  position:relative;
  border:1px solid var(--edge);
  clip-path:polygon(var(--notch) 0,100% 0,100% calc(100% - var(--notch)),calc(100% - var(--notch)) 100%,0 100%,0 var(--notch));
  background:
    linear-gradient(var(--steel),var(--steel)) top right / 11px 1px no-repeat,
    linear-gradient(var(--steel),var(--steel)) top right / 1px 11px no-repeat,
    linear-gradient(var(--steel),var(--steel)) bottom left / 11px 1px no-repeat,
    linear-gradient(var(--steel),var(--steel)) bottom left / 1px 11px no-repeat,
    var(--panel);
}
.tech-frame::before,
.tech-frame::after{
  content:"";
  position:absolute;
  width:14px; height:14px;
  pointer-events:none;
}
.tech-frame::before{
  top:0; left:0;
  border-top:1px solid var(--steel);
  border-left:1px solid var(--steel);
  clip-path:polygon(0 0,100% 0,0 100%);
}
.tech-frame::after{
  bottom:0; right:0;
  border-bottom:1px solid var(--steel);
  border-right:1px solid var(--steel);
  clip-path:polygon(100% 100%,0 100%,100% 0);
}
.frame-rule{
  display:block;
  position:absolute;
  left:14px; right:14px; top:0;
  height:1px;
  background:var(--steel);
  transform-origin:left center;
  transform:scaleX(0);
  pointer-events:none;
}
.hazard-mark{
  position:absolute;
  right:20px; bottom:16px;
  width:26px; height:16px;
  background:repeating-linear-gradient(135deg, var(--steel) 0 3px, transparent 3px 7px);
  opacity:0.5;
  pointer-events:none;
}

/* ============ SECTION HEAD ============ */
.section-head{ margin-bottom:18px; }
.section-head-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}
.section-head .kicker{
  font-size:14px;
  color:var(--silver);
}
.head-index{
  font-family:var(--font-display);
  font-weight:800;
  font-size:12px;
  letter-spacing:0.1em;
  color:var(--silver);
  border:1px solid var(--steel);
  padding:4px 10px;
  border-radius:var(--radius-sm);
  line-height:1.4;
  white-space:nowrap;
}
.head-index .of{ color:var(--steel); font-weight:600; }
.head-rule{
  display:block;
  margin-top:10px;
  height:1px;
  background:var(--edge);
  transform-origin:left center;
  transform:scaleX(0);
}

/* ============ BUTTONS ============ */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 30px;
  font-size:13px;
  font-family:var(--font-body);
  font-weight:500;
  letter-spacing:0.1em;
  text-transform:uppercase;
  background:var(--white);
  color:var(--black);
  border:1px solid var(--white);
  border-radius:var(--radius-sm);
  overflow:hidden;
  transition:background var(--dur-base) var(--ease-tech), color var(--dur-base) var(--ease-tech);
}
.btn:hover{ background:var(--black); color:var(--white); }
.btn .arrow{ transition:transform var(--dur-base) var(--ease-tech); }
.btn:hover .arrow{ transform:translateX(4px); }

.btn-outline{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 30px;
  font-size:13px;
  font-family:var(--font-body);
  font-weight:500;
  letter-spacing:0.1em;
  text-transform:uppercase;
  background:transparent;
  color:var(--white);
  border:1px solid var(--edge);
  border-radius:var(--radius-sm);
  transition:border-color var(--dur-fast) var(--ease-tech), color var(--dur-fast) var(--ease-tech);
}
.btn-outline:hover{ border-color:var(--white); }

.header-cta{
  font-size:12px;
  font-weight:500;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--steel);
  border:1px solid var(--edge);
  padding:9px 16px;
  border-radius:var(--radius-sm);
  display:inline-block;
  transition:color var(--dur-fast) var(--ease-tech), border-color var(--dur-fast) var(--ease-tech), background var(--dur-fast) var(--ease-tech);
  white-space:nowrap;
}
.header-cta:hover{ color:var(--black); background:var(--white); border-color:var(--white); }

/* ============ HEADER / NAV ============ */
header.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  padding:14px var(--edge-pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:rgba(0,0,0,0.82);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--edge);
}
.site-header .brand-mini{ display:flex; align-items:center; }
.site-header .brand-mini svg{ height:22px; width:auto; color:var(--white); transition:color var(--dur-fast) var(--ease-tech); }
.site-header nav{
  display:flex;
  align-items:center;
  gap:clamp(14px,2.6vw,30px);
}
.site-header nav a.nav-link{
  position:relative;
  font-size:12px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.1em;
  color:var(--steel);
  padding-bottom:5px;
  transition:color var(--dur-fast) var(--ease-tech);
}
.site-header nav a.nav-link::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  height:2px; width:100%;
  background:var(--white);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .3s var(--ease-tech);
}
.site-header nav a.nav-link:hover,
.site-header nav a.nav-link[aria-current="page"]{ color:var(--white); }
.site-header nav a.nav-link:hover::after{ transform:scaleX(1); transform-origin:left; }
.site-header nav a.nav-link[aria-current="page"]::after{ transform:scaleX(1); transform-origin:left; background:var(--steel); }

@media (max-width:680px){
  .site-header nav a.nav-link{ display:none; }
  .site-header nav a.nav-link.nav-keep{ display:inline-block; }
}

/* ============ BOOT SEQUENCE ============ */
.boot{
  position:fixed; inset:0;
  background:var(--black);
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}
.boot.done{ animation:bootOut .7s var(--ease-mech) forwards; }
@keyframes bootOut{ to{ clip-path:inset(0 0 100% 0); } }

/* v2 exit: fast launch, most of the travel early, then a smooth
   deceleration at high zoom while the fade completes — big motion
   happens while the text is still small (keeps it fluid, not steppy) */
.boot .boot-term{
  transform-origin:50% 42%;
  will-change:transform, opacity;
  transition:transform 1.05s var(--ease-mech), opacity .45s ease .5s;
}
.boot.fly{ background:var(--black); }
.boot.fly .boot-term{
  transform:scale(18);
  opacity:0;
}
.boot.fly .boot-skip{
  opacity:0 !important;
  transition:opacity .25s ease;
}

.boot-term{ width:min(420px,78vw); }
.boot-lines{ min-height:118px; }
.bline{
  display:flex;
  align-items:baseline;
  font-family:var(--font-display);
  font-weight:600;
  font-size:15px;
  letter-spacing:-0.01em;
  color:var(--white);
  line-height:1.9;
  visibility:hidden;
}
.bline.on{ visibility:visible; }
.bline .bprompt{ color:var(--steel); }
.bline .bok{
  margin-left:auto;
  font-family:var(--font-body);
  font-weight:500;
  font-size:10px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--steel);
  opacity:0;
  transition:opacity .18s var(--ease-tech);
}
.bline .bok.show{ opacity:1; }
.bline.bready .btext{ color:var(--white); font-weight:700; }
.bcursor{
  display:inline-block;
  width:9px; height:15px;
  background:var(--white);
  margin-left:3px;
  transform:translateY(2px);
  animation:blink 1s steps(1) infinite;
}
.boot-meta{ margin-top:26px; width:min(420px,78vw); }
.boot-bar-track{ height:2px; background:var(--edge); position:relative; overflow:hidden; }
.boot-bar-fill{ position:absolute; inset:0 100% 0 0; background:var(--white); }
.boot.run .boot-bar-fill{ animation:bootFill 1.45s var(--ease-tech) .15s forwards; }
@keyframes bootFill{ to{ inset:0 0 0 0; } }
.boot-status{
  display:flex; justify-content:space-between;
  margin-top:12px;
  font-size:10px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--steel); font-weight:500;
  opacity:0;
}
.boot.run .boot-status{ animation:bootFade .4s ease .35s forwards; }
@keyframes bootFade{ to{ opacity:1; } }
.boot-status .pct{ color:var(--silver); font-variant-numeric:tabular-nums; }
.boot-skip{
  position:absolute; bottom:22px; right:22px;
  font-size:10px; letter-spacing:0.12em; text-transform:uppercase; font-weight:500;
  color:var(--steel); border:1px solid var(--edge);
  padding:8px 14px; border-radius:var(--radius-sm);
  opacity:0; animation:bootFade .4s ease .9s forwards;
  transition:color var(--dur-fast) var(--ease-tech), border-color var(--dur-fast) var(--ease-tech);
}
.boot-skip:hover{ color:var(--white); border-color:var(--white); }

/* ============ HERO (home) ============ */
.hero{
  min-height:88svh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:96px;
  padding-bottom:36px;
}
.hero-inner{ position:relative; z-index:2; }
.hero .kicker{ margin-bottom:12px; }
.hero-mark-wrap{ width:min(720px,86vw); margin-bottom:6px; }
.hero-mark-wrap svg{ width:100%; height:auto; overflow:visible; }
.mark-icon path{ fill:none; stroke:var(--white); }
.mark-letters .letter{ opacity:0; }
.mark-letters path{ fill:var(--white); }
.hero-tagline{
  font-size:clamp(28px,4.6vw,54px);
  max-width:16ch;
  margin-top:14px;
  overflow:hidden;
  text-wrap:balance;
}
.hero-sub{
  color:var(--silver);
  font-size:clamp(15px,1.6vw,18px);
  max-width:46ch;
  margin-top:12px;
  line-height:1.6;
}
.cta-row{ margin-top:24px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.hero .ghost-mark{
  right:-18vw; top:-10vw;
  width:58vw; min-width:480px; max-width:860px;
}
@media (max-width:760px){
  .hero .ghost-mark{ right:-40vw; top:-6vw; width:88vw; opacity:0.4; }
}

/* ============ PAGE HERO (interior pages) ============ */
.page-hero{
  padding-top:clamp(120px,16vh,170px);
  padding-bottom:clamp(20px,3vw,36px);
}
.page-hero h1{
  font-size:clamp(38px,6.4vw,72px);
  letter-spacing:-0.02em;
  max-width:14ch;
  text-wrap:balance;
}
.page-hero .lead{
  color:var(--silver);
  font-size:clamp(15px,1.7vw,19px);
  max-width:52ch;
  margin-top:16px;
}
.page-hero .ghost-mark{
  right:-20vw; top:-14vw;
  width:56vw; min-width:420px; max-width:780px;
  opacity:0.45;
}

/* ============ MARQUEE ============ */
.marquee{
  position:relative;
  z-index:1;
  border-top:1px solid var(--edge);
  border-bottom:1px solid var(--edge);
  overflow:hidden;
  padding:14px 0;
  background:var(--black);
}
.marquee-track{
  display:flex;
  width:max-content;
  animation:marquee-scroll 26s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee-track span{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(16px,2.4vw,26px);
  color:var(--edge);
  padding:0 11px;
  white-space:nowrap;
}
.marquee-track span em{ color:var(--edge); font-style:normal; padding-left:11px; }
@keyframes marquee-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* ============ PROBLEM ============ */
.problem h2{ font-size:clamp(26px,4vw,44px); max-width:22ch; }
.problem-lines{
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  max-width:900px;
}
.problem-lines p{
  color:var(--silver);
  font-size:clamp(15px,1.6vw,18px);
  border-top:1px solid var(--edge);
  padding-top:12px;
}
@media (max-width:680px){ .problem-lines{ grid-template-columns:1fr; } }

/* ============ WHY BELIEFS (home) ============ */
.why-beliefs{
  margin-top:30px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px 24px;
  max-width:1020px;
}
@media (max-width:820px){ .why-beliefs{ grid-template-columns:1fr; } }
.belief{ border-top:1px solid var(--edge); padding-top:14px; }
.belief h3{ font-size:18px; letter-spacing:-0.015em; line-height:1.25; }
.belief p{
  margin-top:8px;
  color:var(--silver);
  font-size:14px;
  line-height:1.6;
  max-width:38ch;
}
.problem .section-more{ margin-top:26px; }

/* ============ PROGRESS RAIL (preview: ?rail) ============ */
.progress-rail{
  position:fixed;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  z-index:40;
  display:none;
  flex-direction:column;
  gap:13px;
  opacity:0;
  pointer-events:none;
  transition:opacity .5s var(--ease-tech);
}
.progress-rail.show{ opacity:1; pointer-events:auto; }
@media (min-width:1100px){
  body.rail-on .progress-rail{ display:flex; }
}
.progress-rail a{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.progress-rail .rl{
  font-size:9px;
  font-weight:500;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--steel);
  opacity:0.55;
  transition:opacity var(--dur-fast) var(--ease-tech), color var(--dur-fast) var(--ease-tech);
}
.progress-rail .rd{
  flex:none;
  width:5px; height:5px;
  border:1px solid var(--steel);
  border-radius:50%;
  background:transparent;
  transition:background var(--dur-fast) var(--ease-tech), border-color var(--dur-fast) var(--ease-tech), transform var(--dur-fast) var(--ease-tech);
}
.progress-rail a:hover .rl{ opacity:1; color:var(--white); }
.progress-rail a.active .rl{ opacity:1; color:var(--silver); }
.progress-rail a.active .rd{ background:var(--white); border-color:var(--white); transform:scale(1.35); }

/* ============ HERO ALT — wordmark left, copy right (default on desktop) ============ */
@media (min-width:1000px){
  body.hero-alt .hero-inner{
    display:grid;
    grid-template-columns:1.55fr 1fr;
    grid-template-rows:auto auto auto auto;
    column-gap:clamp(26px,3.5vw,56px);
    align-items:center;
  }
  body.hero-alt .hero-mark-wrap{
    grid-column:1; grid-row:1 / span 4;
    width:100%;
    margin-bottom:0;
  }
  body.hero-alt .hero-inner > .kicker{
    grid-column:2; grid-row:1;
    align-self:end;
    margin-bottom:10px;
  }
  body.hero-alt .hero-tagline{
    grid-column:2; grid-row:2;
    align-self:start;
    font-size:clamp(24px,2.7vw,40px);
    max-width:16ch;
    margin-top:0;
  }
  body.hero-alt .hero-sub{ grid-column:2; grid-row:3; margin-top:12px; }
  body.hero-alt .cta-row{ grid-column:2; grid-row:4; align-self:start; margin-top:18px; }
}

/* ============ HOW IT WORKS (home teaser) ============ */
.how-grid{
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
@media (max-width:900px){ .how-grid{ grid-template-columns:1fr; } }
.how-card{
  position:relative;
  padding:30px 22px 20px;
  min-height:150px;
  display:flex;
  flex-direction:column;
  overflow:visible;
}
.how-card .num{
  position:absolute;
  top:0; left:20px;
  transform:translateY(-50%);
  background:var(--black);
  border:1px solid var(--edge);
  padding:2px 9px;
  font-family:var(--font-display);
  font-weight:800;
  color:var(--steel);
  font-size:11px;
  letter-spacing:0.1em;
  line-height:1.5;
  z-index:1;
}
.how-card h3{ margin-top:8px; font-size:clamp(22px,2.6vw,30px); }
.how-card p{
  margin-top:10px;
  color:var(--silver);
  font-size:var(--text-body);
  max-width:32ch;
  position:relative;
  z-index:1;
}
.how-card .dot-panel{ top:14px; right:14px; width:56px; height:56px; }
.section-more{
  margin-top:20px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:500;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--steel);
  border-bottom:1px solid var(--edge);
  padding-bottom:4px;
  transition:color var(--dur-fast) var(--ease-tech), border-color var(--dur-fast) var(--ease-tech);
}
.section-more:hover{ color:var(--white); border-color:var(--white); }
.section-more .arrow{ transition:transform var(--dur-base) var(--ease-tech); }
.section-more:hover .arrow{ transform:translateX(4px); }

/* ============ WHAT WE BUILD (clickable tiles + drawer) ============ */
.build-grid{
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--edge);
  border:1px solid var(--edge);
}
@media (max-width:900px){ .build-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .build-grid{ grid-template-columns:1fr; } }
.build-item{
  background:var(--black);
  padding:20px;
  min-height:86px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  transition:background .3s var(--ease-tech);
  position:relative;
  overflow:hidden;
  text-align:left;
  width:100%;
}
.build-item .tile-label{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(15px,1.7vw,18px);
  color:var(--silver);
  transition:color .3s var(--ease-tech), transform .3s var(--ease-tech);
  position:relative;
  z-index:1;
}
.build-item .tile-plus{
  position:relative;
  z-index:1;
  flex:none;
  width:16px; height:16px;
  align-self:flex-end;
  margin-bottom:4px;
}
.build-item .tile-plus::before,
.build-item .tile-plus::after{
  content:"";
  position:absolute;
  background:var(--steel);
  transition:transform .3s var(--ease-tech), background .2s var(--ease-tech);
}
.build-item .tile-plus::before{ top:7px; left:0; width:16px; height:2px; }
.build-item .tile-plus::after{ top:0; left:7px; width:2px; height:16px; }
.build-item::before{
  content:"";
  position:absolute; inset:0;
  background:var(--panel);
  transform:translateY(101%);
  transition:transform .35s var(--ease-mech);
  z-index:0;
}
.build-item:hover::before,
.build-item[aria-expanded="true"]::before{ transform:translateY(0); }
.build-item:hover .tile-label{ color:var(--white); transform:translateY(-4px); }
.build-item[aria-expanded="true"] .tile-label{ color:var(--white); }
.build-item[aria-expanded="true"] .tile-plus::after{ transform:scaleY(0); }
.build-item[aria-expanded="true"] .tile-plus::before{ background:var(--white); }

.build-drawer{
  overflow:hidden;
  max-height:0;
  opacity:0;
  transition:max-height .45s var(--ease-tech), opacity .35s var(--ease-tech);
}
.build-drawer.open{ opacity:1; }
.build-drawer-inner{
  margin-top:16px;
  padding:26px clamp(20px,3vw,34px) 24px;
  position:relative;
}
.build-drawer-inner .drawer-icon{ display:block; color:var(--white); width:30px; height:30px; margin-bottom:14px; }
.build-drawer-inner .drawer-icon svg{ width:100%; height:100%; }
.build-drawer-inner h3{ font-size:clamp(20px,2.4vw,26px); }
.build-drawer-inner p{
  margin-top:10px;
  color:var(--silver);
  font-size:var(--text-body);
  max-width:62ch;
  line-height:1.6;
}
.build-drawer-inner .drawer-meta{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 26px;
  border-top:1px solid var(--edge);
  padding-top:12px;
}
.build-drawer-inner .drawer-meta span{
  font-size:11px;
  font-weight:500;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--steel);
}
.build-drawer-inner .drawer-meta b{
  color:var(--silver);
  font-weight:500;
  text-transform:none;
  letter-spacing:0.01em;
  font-size:13px;
}

/* ============ PRICING ============ */
.pricing-grid{
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
@media (max-width:900px){ .pricing-grid{ grid-template-columns:1fr; } }
.price-card{ padding:24px 22px; display:flex; flex-direction:column; }
.price-card .kicker{ margin-bottom:14px; }
.price-figure{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(38px,5vw,52px);
  font-variant-numeric:tabular-nums;
}
.price-figure .from{
  font-size:14px;
  color:var(--steel);
  font-family:var(--font-body);
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:0.1em;
  display:block;
  margin-bottom:8px;
}
.price-card p.desc{
  margin-top:10px;
  color:var(--silver);
  font-size:var(--text-body);
  border-top:1px solid var(--edge);
  padding-top:10px;
}
.pricing-note{
  margin-top:24px;
  color:var(--steel);
  font-size:var(--text-body);
  max-width:60ch;
}
.pricing-note strong{ color:var(--silver); font-weight:500; }

/* ============ PROOF PANEL ============ */
.proof-panel{
  margin-top:24px;
  padding:26px clamp(20px,4vw,40px);
  overflow:hidden;
}
.proof-ghost{
  position:absolute;
  right:-8%; top:50%;
  transform:translateY(-50%);
  width:42%; min-width:280px;
  color:#242424;
  z-index:0;
  pointer-events:none;
}
@media (max-width:900px){ .proof-ghost{ display:none; } }
.proof-stats{
  display:flex;
  flex-wrap:wrap;
  gap:24px 40px;
  position:relative;
  z-index:1;
}
.stat{ min-width:140px; }
.stat .stat-num{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(36px,5vw,58px);
  display:block;
  font-variant-numeric:tabular-nums;
}
.stat .stat-label{
  margin-top:8px;
  color:var(--steel);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.1em;
}
.proof-desc{
  margin-top:18px;
  color:var(--silver);
  font-size:clamp(15px,1.6vw,18px);
  max-width:64ch;
  border-top:1px solid var(--edge);
  padding-top:14px;
  position:relative;
  z-index:1;
}
.proof-panel .dot-panel{ top:0; right:0; width:88px; height:88px; }

/* ============ FAQ ============ */
.faq{ max-width:760px; margin-top:10px; }
.faq-item{ border-bottom:1px solid var(--edge); }
.faq-q{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:20px 0;
  text-align:left;
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
  letter-spacing:-0.01em;
  color:var(--white);
}
.faq-q .pm{ position:relative; width:16px; height:16px; flex:none; }
.faq-q .pm::before,.faq-q .pm::after{
  content:"";
  position:absolute;
  background:var(--steel);
  transition:transform .3s var(--ease-tech), background .2s;
}
.faq-q .pm::before{ top:7px; left:0; width:16px; height:2px; }
.faq-q .pm::after{ top:0; left:7px; width:2px; height:16px; }
.faq-item.open .pm::after{ transform:scaleY(0); }
.faq-item.open .pm::before{ background:var(--white); }
.faq-a{ overflow:hidden; max-height:0; transition:max-height .35s var(--ease-tech); }
.faq-a p{ color:var(--silver); font-size:var(--text-body); line-height:1.6; padding:0 40px 22px 0; }

/* ============ ABOUT ============ */
.about h2{ font-size:clamp(24px,3.6vw,36px); }
.about .dot-panel{ top:10%; right:6%; width:130px; height:130px; opacity:0.32; }
@media (max-width:900px){ .about .dot-panel{ display:none; } }
.about-grid{
  display:grid;
  grid-template-columns:1.45fr 1fr;
  gap:clamp(28px,5vw,64px);
  align-items:center;
  margin-top:10px;
}
.about-copy{ max-width:56ch; }
.about-photo{ max-width:360px; justify-self:end; width:100%; }
@media (max-width:820px){
  .about-grid{ grid-template-columns:1fr; }
  .about-photo{ justify-self:start; max-width:320px; }
}

/* Imagery Treatment production frame (per design system) */
.img-frame{
  position:relative;
  border:1px solid var(--edge);
  overflow:hidden;
  clip-path:polygon(var(--notch) 0,100% 0,100% calc(100% - var(--notch)),calc(100% - var(--notch)) 100%,0 100%,0 var(--notch));
}
.img-frame .corner{ position:absolute; width:12px; height:12px; z-index:3; pointer-events:none; }
.img-frame .corner.tl{ top:8px; left:8px; border-top:1px solid var(--steel); border-left:1px solid var(--steel); }
.img-frame .corner.br{ bottom:8px; right:8px; border-bottom:1px solid var(--steel); border-right:1px solid var(--steel); }
.img-frame .fcap{
  position:absolute;
  bottom:8px; left:10px;
  z-index:3;
  font-family:var(--font-display);
  font-weight:600;
  font-size:10px;
  letter-spacing:0.06em;
  color:var(--white);
  text-shadow:0 1px 3px #000;
  pointer-events:none;
}
.img-frame .fhz{
  position:absolute;
  top:8px; right:8px;
  width:22px; height:12px;
  z-index:3;
  background:repeating-linear-gradient(135deg,var(--steel) 0 3px, transparent 3px 6px);
  opacity:.6;
  pointer-events:none;
}
.img-frame .shot{ position:relative; width:100%; }
.img-frame .shot img{ width:100%; height:auto; display:block; }
.t-gray{ filter:grayscale(1) contrast(1.04) brightness(0.96); }

/* ============ PROCESS PAGE ============ */
.process-steps{ margin-top:10px; display:flex; flex-direction:column; gap:clamp(18px,2.6vw,28px); }
.step{
  display:grid;
  grid-template-columns:minmax(84px,140px) 1fr;
  gap:clamp(16px,3vw,40px);
  padding:clamp(24px,3vw,36px) clamp(20px,3vw,36px);
}
@media (max-width:680px){ .step{ grid-template-columns:1fr; gap:8px; } }
.step .step-num{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(38px,5.4vw,64px);
  letter-spacing:-0.03em;
  color:var(--edge);
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.step h3{ font-size:clamp(22px,2.8vw,30px); }
.step .step-kicker{ margin-bottom:8px; }
.step p{
  margin-top:10px;
  color:var(--silver);
  font-size:clamp(15px,1.6vw,17px);
  max-width:58ch;
  line-height:1.65;
}
.step ul.checklist{ margin-top:14px; display:flex; flex-direction:column; gap:8px; max-width:58ch; }
.step ul.checklist li{
  position:relative;
  padding-left:26px;
  color:var(--silver);
  font-size:var(--text-body);
  line-height:1.55;
}
.step ul.checklist li svg{
  position:absolute; left:0; top:4px;
  width:15px; height:15px;
  color:var(--steel);
}
.process-note{
  margin-top:clamp(24px,3vw,36px);
  color:var(--steel);
  font-size:var(--text-body);
  max-width:62ch;
}
.process-note strong{ color:var(--silver); font-weight:500; }

.spec-panel{ margin-top:24px; padding:8px clamp(20px,3vw,34px); }
.spec-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  padding:15px 0;
  border-bottom:1px solid var(--edge);
}
.spec-row:last-child{ border-bottom:0; }
.spec-row .k{
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:11px;
  color:var(--steel);
}
.spec-row .v{
  font-family:var(--font-display);
  font-weight:700;
  font-size:15px;
  color:var(--white);
  text-align:right;
}

.term{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(15px,1.8vw,19px);
  color:var(--white);
  letter-spacing:-0.01em;
}
.term .prompt{ color:var(--steel); }
.term .cursor{
  display:inline-block;
  width:10px; height:1.1em;
  background:var(--white);
  margin-left:2px;
  vertical-align:text-bottom;
  animation:blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

/* ============ WORK PAGE ============ */
.case-panel{ margin-top:24px; padding:clamp(24px,3.4vw,40px); overflow:hidden; }
.case-panel .case-kicker-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.case-panel h3{ font-size:clamp(24px,3.4vw,38px); max-width:20ch; }
.case-panel .case-body{
  margin-top:14px;
  color:var(--silver);
  font-size:clamp(15px,1.65vw,18px);
  max-width:66ch;
  line-height:1.65;
}
.case-rows{ margin-top:22px; border-top:1px solid var(--edge); }
.case-rows .crow{
  display:grid;
  grid-template-columns:minmax(140px,220px) 1fr;
  gap:14px 30px;
  padding:14px 0;
  border-bottom:1px solid var(--edge);
}
@media (max-width:600px){ .case-rows .crow{ grid-template-columns:1fr; gap:4px; } }
.case-rows .crow .ck{
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:11px;
  color:var(--steel);
  padding-top:3px;
}
.case-rows .crow .cv{ color:var(--silver); font-size:var(--text-body); line-height:1.6; }
.case-rows .crow .cv b{ color:var(--white); font-weight:600; }

.quote-block{
  margin-top:clamp(28px,4vw,44px);
  position:relative;
  max-width:820px;
  padding-left:30px;
  border-left:1px solid var(--edge);
}
.quote-block .mk{
  font-family:var(--font-display);
  font-weight:800;
  font-size:46px;
  color:var(--edge);
  line-height:1;
}
.quote-block blockquote{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(20px,2.6vw,28px);
  letter-spacing:-0.015em;
  line-height:1.3;
  margin:6px 0 14px;
}
.quote-block .cite{ color:var(--steel); font-size:13px; text-transform:uppercase; letter-spacing:0.08em; }

/* ============ CONTACT / FOOTER ============ */
.contact{
  text-align:left;
  padding-bottom:0;
  overflow:hidden;
  padding-top:clamp(56px,7vw,96px);
}
.contact .container{ position:relative; z-index:1; }
.contact h2{ font-size:clamp(42px,8vw,104px); line-height:0.98; }
.contact .cta-row{ margin-top:24px; }
.contact .contact-lines{
  margin-top:26px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 34px;
}
.contact .contact-lines a{
  font-size:13px;
  color:var(--steel);
  letter-spacing:0.06em;
  border-bottom:1px solid transparent;
  padding-bottom:2px;
  transition:color var(--dur-fast) var(--ease-tech), border-color var(--dur-fast) var(--ease-tech);
}
.contact .contact-lines a:hover{ color:var(--white); border-color:var(--edge); }
.contact .ghost-mark{
  right:-20vw; bottom:-26vw; top:auto;
  width:62vw; min-width:460px; max-width:860px;
  opacity:0.5;
}
@media (max-width:760px){
  .contact .ghost-mark{ right:-42vw; bottom:-38vw; top:auto; width:96vw; opacity:0.35; }
}

footer.site-footer{
  position:relative;
  z-index:1;
  border-top:1px solid var(--edge);
  margin-top:clamp(40px,6vw,72px);
  padding:clamp(28px,4vw,44px) var(--edge-pad) 26px;
}
.footer-grid{
  max-width:var(--container);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:30px;
}
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid .wm{ display:flex; align-items:center; margin-bottom:16px; }
.footer-grid .wm svg{ height:20px; width:auto; color:var(--white); }
.footer-grid p.mini{ color:var(--steel); font-size:13px; line-height:1.6; max-width:32ch; }
.footer-grid h4{
  font-family:var(--font-body);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:11px;
  color:var(--steel);
  margin:0 0 14px;
}
.footer-grid ul{ display:flex; flex-direction:column; gap:10px; }
.footer-grid ul a{
  font-size:14px;
  color:var(--silver);
  transition:color var(--dur-fast) var(--ease-tech);
}
.footer-grid ul a:hover{ color:var(--white); }
.footer-colophon{
  max-width:var(--container);
  margin:26px auto 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  justify-content:space-between;
  padding-top:22px;
  border-top:1px solid var(--edge);
}
.footer-colophon span{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.1em;
  color:var(--steel);
}

/* ============ REVEAL FALLBACKS ============ */
.reveal{ opacity:1; }
.no-js .reveal{ opacity:1 !important; transform:none !important; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce){
  .boot{ display:none !important; }
  .marquee-track{ animation:none; }
  .head-rule,.frame-rule{ transform:scaleX(1); }
  .term .cursor{ animation:none; }
  *{ scroll-behavior:auto !important; }
}
