/* ============================================================
   ChainGPT Labs — Residency Hero
   Tokens + responsive layout (mobile · tablet · desktop)
   ============================================================ */

:root {
  /* ---- Color ---- */
  --orange-primary: #ff6001;
  --orange-deep:    #e85400;
  --orange-glow:    #ff9b4d;
  --white:          #ffffff;
  --white-70:       rgba(255, 255, 255, 0.70);
  --white-55:       rgba(255, 255, 255, 0.55);
  --white-45:       rgba(255, 255, 255, 0.45);
  --white-30:       rgba(255, 255, 255, 0.30);
  --white-22:       rgba(255, 255, 255, 0.22);
  --nav-orange:     #d74302;

  /* ---- Light sections (master PRD) ---- */
  --bg:            #e4e4e4;   /* section background */
  --panel:         #f4f4f4;   /* near-white panels */
  --panel-white:   #ffffff;   /* card backgrounds */
  --orange:        #ff6001;
  --orange-deep:   #e85400;
  --yellow:        #ffc80e;
  --ink:           #1a1a1a;
  --body-ink:      #2b2b2b;
  --muted:         #6b6b6b;
  --border:        rgba(0, 0, 0, 0.16);
  --border-strong: rgba(0, 0, 0, 0.28);
  --frame-inset:   48px;
  --maxw:          1344px;

  /* ---- Type ---- */
  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-pixel:   "LABS Amiga", "Silkscreen", monospace;
  --font-mono:    "Roboto Mono", monospace;
  --font-body:    "Geist", "Roboto", sans-serif;

  /* ---- Layout ---- */
  --page-pad-x:  48px;
  --top-divider: clamp(72px, 8.6vw, 122px);  /* y of top horizontal frame line */
  --nav-h:       80px;                        /* sticky nav bar height */
}

/* swappable real pixel font for "BUILDERS" */
@font-face {
  font-family: "LABS Amiga";
  src: url("fonts/LABSAmiga-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--orange-primary);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* clip horizontal bleed without becoming a scroll container (keeps position:sticky working) */
}

/* ============================================================
   Background video (no overlay)
   ============================================================ */
#hero-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  background: var(--orange-primary);
}

/* ============================================================
   Page shell
   ============================================================ */
.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--nav-h) var(--page-pad-x) 0;   /* top pad clears the fixed nav */
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  --nav-clip: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 21px) 100%, 21px 100%, 0 calc(100% - 20px));
  position: fixed;
  top: 0; left: 0; right: 0;
  margin: 0 auto;
  max-width: 1442px;                          /* centred bar, like the original banner */
  height: var(--nav-h);
  z-index: 100;
  /* the element itself is the OUTLINE layer; ::after is the fill (lets a clipped shape have a border) */
  background: var(--white-22);                /* subtle white edge over the hero, like the original */
  transition: background-color .22s ease;
  /* unique bar shape: chamfered bottom-left & bottom-right corners */
  -webkit-clip-path: var(--nav-clip);
  clip-path: var(--nav-clip);
}
.nav::after {
  content: "";
  position: absolute; inset: 1px;             /* the 1px gap reveals the outline colour all around */
  z-index: 0;
  background: var(--nav-orange);              /* bar fill (#D74302) over the hero */
  -webkit-clip-path: var(--nav-clip);
  clip-path: var(--nav-clip);
  transition: background-color .22s ease;
}
.nav__bar, .nav__mobile { position: relative; z-index: 1; }   /* content above the fill layer */
.nav__bar {
  height: 100%;
  display: grid;
  grid-template-columns: 401fr 671fr 370fr;   /* original logo | menu | apply proportions */
  align-items: stretch;
}
.nav__logo { display: inline-flex; align-items: center; justify-self: start; margin-left: var(--page-pad-x); }
.nav__logo img { height: 34px; width: auto; display: block; transition: filter .22s ease; }

/* centred menu, framed by thin vertical hairlines like the blueprint */
.nav__menu {
  justify-self: stretch;                /* fill the middle column so the hairlines land on the original divider lines */
  align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 1.9vw, 40px);
  padding: 0 clamp(20px, 2.4vw, 48px);
  border-left: 1px solid var(--white-30);
  border-right: 1px solid var(--white-30);
  transition: border-color .22s ease;
}
.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(13px, 0.5vw + 9px, 18px);   /* §1 fluid size */
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 3px;
  transition: color .22s ease;
}

/* §2 hover brackets — hidden, expand outward from the text to the corners */
.nav-link::before,
.nav-link::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease-out, opacity .25s ease-out;
}
.nav-link::before {                 /* top-left */
  top: -4px; left: -7px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: translate(6px, 6px);
}
.nav-link::after {                  /* bottom-right */
  bottom: -4px; right: -7px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translate(-6px, -6px);
}
.nav-link:hover::before, .nav-link:hover::after,
.nav-link:focus-visible::before, .nav-link:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* APPLY NOW — chamfered frosted button (SVG shape so the border follows the chamfer) */
.nav__apply {
  justify-self: end;
  align-self: center;
  margin-right: var(--page-pad-x);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px;
  padding: 0 22px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(11px, 0.3vw + 8px, 14px);
  letter-spacing: 0.08em;
  transition: color .2s ease, transform .16s ease;
}
.nav__apply-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.nav__apply-shape path {
  fill: rgba(255, 255, 255, 0.30);
  stroke: var(--white);
  stroke-width: 1;
  transition: fill .2s ease, stroke .2s ease;
}
.nav__apply span { position: relative; z-index: 1; }
/* hover — button fills solid + subtle lift; label inverts for contrast */
.nav__apply:hover { transform: translateY(-1px); }
.nav__apply:active { transform: translateY(0); }
.nav__apply:hover .nav__apply-shape path { fill: var(--white); stroke: var(--white); }
.nav.scrolled .nav__apply:hover { color: var(--white); }
.nav.scrolled .nav__apply:hover .nav__apply-shape path { fill: var(--orange-deep); stroke: var(--orange-deep); }

/* §5 scrolled state — over the light sections: thin black outline + dark links */
.nav.scrolled { background: rgba(0, 0, 0, 0.55); }     /* OUTLINE — thin black around the bar */
.nav.scrolled::after { background: #e7e7e7; }          /* FILL — light bar */
.nav.scrolled .nav-link { color: var(--ink); }
.nav.scrolled .nav-link::before, .nav.scrolled .nav-link::after { border-color: var(--orange); }  /* orange brackets on light */
.nav.scrolled .nav__menu { border-left-color: var(--border); border-right-color: var(--border); }
.nav.scrolled .nav__logo img,
.nav.scrolled .nav__mlogo img { filter: brightness(0); }
/* APPLY NOW becomes the solid-orange brand button on the light bar */
.nav.scrolled .nav__apply { color: var(--white); }
.nav.scrolled .nav__apply-shape path { fill: var(--orange); stroke: var(--orange); }

/* Mobile bar (hidden on desktop) */
.nav__mobile { display: none; }
.nav__drawer { display: none; }

/* anchor offset so the sticky bar never covers a scrolled-to section */
#what-you-get, #faq { scroll-margin-top: calc(var(--nav-h) + 10px); }

@media (prefers-reduced-motion: reduce) {
  /* §6 brackets fade only (no translate); smooth-scroll off */
  .nav-link::before, .nav-link::after { transition: opacity .2s ease; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   CTA buttons — exact provided SVGs, inlined (chamfered shape,
   frosted/transparent fill, white border, black label)
   ============================================================ */
.cta { display: inline-flex; text-decoration: none; transition: filter .18s ease, transform .12s ease; }
.cta__svg { display: block; height: 50px; width: auto; }
.cta:hover { filter: brightness(1.07); }
.cta:active { transform: translateY(1px); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; flex: 1 1 auto; }

/* ---- Blueprint divider frame ---- */
.frame {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--page-pad-x));
  right: calc(-1 * var(--page-pad-x));
  z-index: 2;
  pointer-events: none;
}
.frame__v { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--white-30); }
.frame__v--lo { left: 48px; }
.frame__v--li { display: none; }
.frame__v--ri { display: none; }
.frame__v--ro { right: 48px; }
.frame__h { position: absolute; height: 1px; background: var(--white-30); left: 48px; right: 48px; }
.frame__h--top { top: var(--top-divider); }

/* ---- Technical registration marks (sit on the top divider) ---- */
.mark { position: absolute; z-index: 3; pointer-events: none; }
.mark__xbox {
  top: calc(var(--top-divider) - 13px);
  left: 38px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--white-30);
  display: grid;
  place-items: center;
  background: var(--orange-primary);
}
.mark__xbox svg { width: 16px; height: 16px; }
.mark__xbox line { stroke: var(--white-45); stroke-width: 1; }
.mark__sq { width: 6px; height: 6px; background: var(--white); opacity: 0.85; top: calc(var(--top-divider) - 3px); }
.mark__sq--a { left: 88px; }
.mark__sq--b { left: 470px; }

/* ---- Left text column ---- */
.hero__left {
  position: relative;
  z-index: 3;
  padding-top: clamp(96px, 12.6vw, 188px);
  max-width: 520px;
}

.headline { text-transform: uppercase; color: var(--white); line-height: 0.92; }
.headline__we {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 6.8vw, 97px);
  letter-spacing: -0.015em;
  padding-top: 1px;
  margin-top: 1px;
  transform: translate(8px, 0px);
}
.headline__builders {
  display: block;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 66px);
  letter-spacing: 0.005em;
  margin-top: 8px;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
  transform: translate(15px, 0px);
}

.hero__body {
  margin-top: 28px;
  max-width: 360px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  transform: translate(19px, 0px);
}

/* mid-left horizontal divider, above the CTA row */
.hero__rule { height: 1px; background: var(--white-30); width: min(520px, 70vw); margin: 26px 0 0; }

.hero__cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* ---- Right feature column ---- */
.hero__right {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  right: 14px;
  width: 246px;
}
.features { list-style: none; }
.feature { margin-bottom: 18px; }
.feature__title {
  display: flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--white);
}
.chev { display: inline-block; margin-right: 8px; font-weight: 700; transform: translateY(-1px); }
.feature__sub {
  margin-top: 5px;
  margin-left: 21px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--white-55);
}
.features__divider {
  margin-top: 16px;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--white-45) 0 14px, transparent 14px 24px);
}
.features__caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--white-70);
}

/* ---- Flower in its bordered frame box, bottom-right ---- */
.flower {
  position: absolute;
  z-index: 3;
  right: 56px;
  bottom: 36px;
  width: 88px;
  height: 88px;
  border: 1px solid var(--white-22);
  display: grid;
  place-items: center;
}
/* The asset is a semi-transparent grey PNG; stack it a few times to build
   up opacity (so the orange no longer shows through) and brighten it to read
   as the glossy white shape in the reference. */
.flower__img {
  position: absolute;
  inset: 13%;
  background-image:
    url("assets/flower.png"), url("assets/flower.png"),
    url("assets/flower.png"), url("assets/flower.png"),
    url("assets/flower.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(1.18) contrast(1.02);
}
.flower__c { position: absolute; width: 11px; height: 11px; border: 1px solid var(--white-45); }
.flower__c--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.flower__c--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.flower__c--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.flower__c--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ============================================================
   LIGHT SECTIONS (below the hero)
   ============================================================ */
.sections {
  position: relative;
  z-index: 2;
  background: var(--bg);
  color: var(--ink);
}
.sections__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

/* single continuous vertical frame (left + right), inset 48px */
.frame-box {
  position: relative;
  margin: 0 48px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* shared section frame: each band closes with a hairline that spans
   the framed width (corners meet the verticals cleanly) */
.sec { position: relative; z-index: 2; border-bottom: 1px solid var(--border); padding: 0; }

/* pixel section headline */
.sec-pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  color: var(--ink);
  text-transform: uppercase;
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
  letter-spacing: 0.02em;
}
.sec-pixel--center { text-align: center; }

/* ---- 00 · Why We Exist ---- */
.sec--wwe { padding: 0; border-bottom: 0; }
.wwe-title {
  font-size: 46px;
  line-height: 1.18;
  color: var(--ink);
  padding: 56px 48px 44px;
}
.wwe-inner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 54% 46%;
}
.wwe-keys {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 40px;
}
.wwe-keys img {
  width: 92%; max-width: 600px; height: auto; display: block;
  transition: transform .3s ease, filter .3s ease;
}
.wwe-keys img:hover {
  transform: scale(1.015) translateY(-4px);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.16)) brightness(1.02);
}
.wwe-text {
  border-left: 1px solid var(--border);
  padding: 52px 56px;
  display: flex; flex-direction: column; gap: 26px;
}
.wwe-text p {
  font-family: var(--font-mono);
  font-size: 27px;
  line-height: 1.5;
  color: var(--body-ink);
  max-width: 25ch;
}

/* ---- 01 · By The Numbers ---- */
.sec--numbers { padding: 44px 72px 46px; }
.sec--numbers .sec-pixel { font-size: 49px; margin-bottom: 46px; }
.stats { display: flex; gap: 24px; }
.stat { flex: 1 1 0; min-width: 0; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat__label {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--body-ink);
  letter-spacing: 0.01em;
}

.sec-spacer { position: relative; z-index: 2; height: 96px; border-bottom: 1px solid var(--border); }

/* shared: section label "▪ Label" */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.sec-label .sq { width: 7px; height: 7px; background: var(--ink); display: inline-block; }
.sq { width: 7px; height: 7px; background: var(--ink); display: inline-block; }

/* shared: dark arrow button */
.arrow-btn {
  flex: none;
  width: 36px; height: 36px;
  background: var(--ink); color: #fff;
  border: 0; cursor: pointer;
  font-size: 16px; line-height: 1;
  display: grid; place-items: center;
  font-family: var(--font-mono);
}

/* ---- 02 · What You Get ---- */
.sec--wyg { padding: 0; }
.wyg-head { position: relative; padding: 0 48px; min-height: 360px; }
.wyg-structure {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 72%;
  display: flex; align-items: center; justify-content: flex-end;
  z-index: 1;
  pointer-events: none;
}
.wyg-structure img { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.wyg-panel {
  position: relative;
  z-index: 2;
  margin-top: 44px;
  width: 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 26px 28px 30px;
}
.wyg-title {
  font-size: 56px;
  line-height: 0.98;
  margin-top: 70px;
  color: var(--ink);
}
.wyg-tooltip {
  position: absolute;
  top: 58px; right: 24px;
  z-index: 3;
  width: 250px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 14px;
}
.wyg-tooltip p {
  font-family: var(--font-mono);
  font-size: 12px; line-height: 1.5; color: var(--body-ink);
  margin: 0;
}

.wyg-underline {
  position: relative; z-index: 2;
  margin: 28px 48px 0;
  border-top: 1px solid var(--border);
  height: 0;
}
.wyg-underline .sq { position: absolute; top: -3px; }
.wyg-underline .sq:nth-child(1) { left: 0; }
.wyg-underline .sq:nth-child(2) { left: 64px; }

/* carousel */
.wyg-carousel { position: relative; z-index: 2; padding: 40px 0 56px 0; }
.car-nav {
  position: absolute;
  left: -26px; top: 50%; transform: translateY(-50%);
  z-index: 5;
  display: inline-flex; flex-direction: row;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}
.car-arrow {
  width: 30px; height: 38px;
  border: 0; background: transparent; color: var(--ink);
  cursor: pointer; font-size: 18px; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s ease, opacity .2s ease;
}
.car-arrow.car-next { border-left: 1px solid var(--border); }
.car-arrow:hover { background: rgba(0,0,0,0.05); }
.car-viewport { overflow: hidden; }
.car-track { display: flex; gap: 24px; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.car-edge { flex: 0 0 22px; align-self: stretch; }
.card {
  flex: 0 0 360px;
  background: var(--panel-white);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 22px 24px 26px;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.card__idx { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.card__idx .sq { width: 6px; height: 6px; background: var(--ink); }
.card__icon { position: relative; height: 156px; display: grid; place-items: center; margin: 6px 0 18px; }
.card__icon::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 172px; height: 158px;
  background: url("assets/ico-container.svg") center / contain no-repeat;
  z-index: 0;
}
.card__icon img { position: relative; z-index: 1; height: 128px; width: auto; object-fit: contain; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); margin-bottom: 14px; }
.card__body { font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: var(--body-ink); }

/* shared corner brackets for asset boxes */
.brk { position: absolute; width: 12px; height: 12px; border: 1px solid var(--border-strong); z-index: 2; }
.brk--tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.brk--tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.brk--bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.brk--br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

/* reveal animation */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---- 03 · Our Alumni ---- */
.sec--alumni { padding: 0; }
.alumni-grid-wrap { display: grid; grid-template-columns: 1fr 1.05fr; }
.alumni-left { padding: 52px 40px 40px 48px; border-right: 1px solid var(--border); position: relative; }
.alumni-title { font-family: var(--font-mono); font-weight: 500; font-size: 26px; line-height: 1.34; letter-spacing: -0.01em; color: var(--ink); margin-top: 18px; }
.alumni-shape { position: absolute; left: 48px; bottom: 30px; width: 136px; height: 136px; display: grid; place-items: center; }
.alumni-shape img { width: 88%; height: 88%; object-fit: contain; }
.alumni-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin: 52px 24px 44px;
  /* thin outer hairlines (top + left); cells add right + bottom to complete the grid */
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.cell {
  position: relative; aspect-ratio: 1.1 / 1;
  border: 0;                                   /* kill the 2px UA <button> border */
  border-right: 1px solid var(--border);       /* thin divider, same weight as page dividers */
  border-bottom: 1px solid var(--border);
  background: transparent; cursor: pointer; overflow: hidden;
  display: grid; place-items: center;
}
.cell__glow {
  position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(255,96,1,0.30), rgba(255,96,1,0) 70%);
  transition: opacity .25s ease; z-index: 1;
}
.cell img { position: relative; z-index: 2; max-width: 54%; max-height: 40%; object-fit: contain; opacity: 0; transform: scale(.9); transition: opacity .25s ease, transform .25s ease; }
.cell::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; z-index: 3; pointer-events: none; transition: border-color .25s ease; }
.cell:hover .cell__glow, .cell:focus-visible .cell__glow { opacity: 0; }
.cell:hover img, .cell:focus-visible img { opacity: 1; transform: none; }
/* soft peach tint fill on the revealed/active cell (no hard orange outline) */
.cell:hover, .cell:focus-visible, .cell--active { background-color: rgba(255, 96, 1, 0.07); }
.cell:hover::after, .cell:focus-visible::after,
.cell--active::after { border-color: rgba(255, 96, 1, 0.55); }
.cell--active .cell__glow { opacity: 0; }
.cell--active img { opacity: 1; transform: none; }
/* corner brackets inside each cell */
.cell { background-image:
  linear-gradient(var(--border-strong),var(--border-strong)), linear-gradient(var(--border-strong),var(--border-strong)),
  linear-gradient(var(--border-strong),var(--border-strong)), linear-gradient(var(--border-strong),var(--border-strong)),
  linear-gradient(var(--border-strong),var(--border-strong)), linear-gradient(var(--border-strong),var(--border-strong)),
  linear-gradient(var(--border-strong),var(--border-strong)), linear-gradient(var(--border-strong),var(--border-strong));
  background-repeat: no-repeat;
  background-size: 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px;
  background-position: 8px 8px, 8px 8px, calc(100% - 8px) 8px, calc(100% - 8px) 8px, 8px calc(100% - 8px), 8px calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) calc(100% - 8px);
}
.alumni-grid-wrap { border-bottom: 1px solid var(--border); }
.alumni-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 20px 16px; padding: 15px 20px;
  border: 1px solid var(--border);
}
.alumni-bar__dot { color: var(--ink); font-size: 14px; }

/* ---- 04 · Our Partners ---- */
.sec--partners { padding: 0; }
.partners-head { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); min-height: 150px; }
.partners-sphere { position: relative; width: 230px; border-right: 1px solid var(--border); display: grid; place-items: center; margin-left: 48px; }
.partners-sphere img { width: 64%; height: auto; }
.partners-sphere .reg { position: absolute; top: 10px; right: 14px; font-size: 11px; color: var(--ink); }
.partners-title { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding: 0 48px; font-size: 46px; color: var(--ink); }
.ticker { overflow: hidden; }
.ticker__row { display: flex; width: max-content; will-change: transform; }
.ticker__set { display: flex; }
.tcell {
  flex: none; width: 172px; height: 64px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: grid; place-items: center;
  background: transparent;
  transition: background-color .25s ease;
}
.ticker__row--3 .tcell { border-bottom: 0; }
.tcell img {
  max-width: 64%; max-height: 46%; object-fit: contain;
  transition: filter .25s ease;
}
/* hover: the box darkens and its logo lightens to white */
.tcell:hover { background: var(--ink); }
.tcell:hover img { filter: brightness(0) invert(1); }

/* ---- 05 · FAQ ---- */
.sec--faq { padding: 0; }
.faq-head { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); min-height: 110px; }
.faq-xbox { width: 48px; border-right: 1px solid var(--border); display: grid; place-items: center; }
.faq-xbox svg { width: 16px; height: 16px; }
.faq-xbox line { stroke: var(--muted); stroke-width: 1.4; }
.faq-panel { width: 220px; background: var(--panel); border-right: 1px solid var(--border); display: grid; place-items: center; }
.faq-panel .sec-pixel { font-size: 34px; }
.faq-shape { position: relative; width: 150px; border-right: 1px solid var(--border); display: grid; place-items: center; background: var(--panel); }
.faq-shape img { width: 60%; height: auto; }
.faq-intro { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; gap: 6px; }
.faq-intro p { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: transparent; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 22px 48px; text-align: left; }
.faq-q span:first-child { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.faq-toggle { flex: none; width: 28px; height: 28px; background: var(--orange); color: #fff; border-radius: 7px; display: grid; place-items: center; font-size: 18px; line-height: 1; transition: transform .3s ease; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; padding: 0 48px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--body-ink); }
.faq-item.open .faq-a > div { padding-bottom: 24px; }
.faq-a a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.faq-a a:hover { color: var(--orange-deep); }

/* ---- 06 · CTA ---- */
.sec--cta { padding: 70px 48px 0; text-align: center; border-bottom: 1px solid var(--border); }
.cta-title { font-size: 46px; color: var(--ink); }
.cta-sub { font-family: var(--font-mono); font-size: 14px; color: var(--body-ink); margin-top: 18px; }
.cta-apply { display: inline-block; margin-top: 30px; }
.cta-apply img { height: 50px; width: auto; display: block; }
.cta-asset { margin-top: 40px; }
.cta-asset img { width: 420px; max-width: 80%; height: auto; }

/* ---- 07 · Footer ---- */
.sec--footer { padding: 0; }
.subscribe { display: grid; grid-template-columns: 1fr 1.4fr 1fr; border-bottom: 1px solid var(--border); }
.subscribe__logo { padding: 36px 40px; display: flex; align-items: center; border-right: 1px solid var(--border); }
.subscribe__logo img { height: 30px; }
.subscribe__mid { padding: 30px 40px; border-right: 1px solid var(--border); }
.subscribe__mid label { display: block; font-family: var(--font-mono); font-size: 15px; color: var(--ink); margin-bottom: 18px; }
.subscribe__mid input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--border-strong); padding: 8px 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.subscribe__mid input::placeholder { color: var(--muted); }
.subscribe__right { padding: 30px 40px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.subscribe__cap { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.sub-btn { background: var(--orange); color: var(--ink); border: 0; border-radius: 6px; padding: 11px 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; cursor: pointer; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; padding: 40px 48px; gap: 24px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col__h { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 6px; }
.foot-col a { font-family: var(--font-mono); font-size: 13px; color: var(--ink); text-decoration: none; }
.foot-col a:hover { opacity: 0.65; }
.foot-col--social { align-items: flex-end; }
.foot-col--social a { display: inline-flex; gap: 6px; }
.foot-copy { display: flex; gap: 60px; padding: 22px 48px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.foot-wordmark { position: relative; padding: 40px 48px 46px; }
.foot-wordmark img { width: 100%; display: block; }
.foot-sq { position: absolute; width: 10px; height: 10px; background: var(--orange); }
.foot-sq--tl { top: 26px; left: 48px; }
.foot-sq--tr { top: 26px; right: 48px; }
.foot-sq--bl { bottom: 30px; left: 48px; }
.foot-sq--br { bottom: 30px; right: 48px; }

/* ============================================================
   Responsive — TABLET (≤1024): hamburger nav, feature column
   drops below the text column
   ============================================================ */
@media (max-width: 1024px) {
  :root { --nav-h: 64px; }   /* mobile bar is shorter; keeps .page top-padding + scroll sync correct */
  /* nav → mobile bar */
  .nav__bar { display: none; }
  .nav {
    width: 100%;
    max-width: none;
    margin: 0;
    height: auto;
    background: var(--nav-orange);
    border-bottom: 1px solid var(--white-22);
    -webkit-clip-path: none;
    clip-path: none;                 /* plain rectangular bar on mobile */
  }
  .nav::after { display: none; }     /* no chamfer/fill layer on mobile */
  .nav.scrolled { background: rgba(231, 231, 231, 0.96); border-bottom-color: var(--border); }
  .nav.scrolled .nav__mlogo img { filter: brightness(0); }
  .nav__mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 var(--page-pad-x);
  }
  .nav__mlogo img { height: 30px; display: block; }
  .nav__burger {
    width: 42px; height: 42px;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    background: transparent; border: 1px solid var(--white-30); cursor: pointer;
  }
  .nav__burger span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    z-index: 99;                       /* just under the fixed bar */
    background: var(--nav-orange);
    width: 100%;
    border-bottom: 1px solid var(--white-22);
    padding: 8px var(--page-pad-x) 16px;
  }
  .nav__drawer[hidden] { display: none; }
  .nav__drawer a {
    color: var(--white); text-decoration: none;
    font-family: var(--font-mono); font-size: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--white-22);
  }
  .nav__drawer a:last-child { border-bottom: 0; }
  .nav__drawer-cta {
    margin-top: 12px; text-align: center; text-transform: uppercase; letter-spacing: 0.1em;
    border: 1px solid var(--white-70) !important; padding: 12px !important;
  }

  /* hero reflow: single column, feature column below */
  .frame { display: none; }
  .mark { display: none; }
  .hero { display: flex; flex-direction: column; padding-bottom: 120px; }
  .hero__left { max-width: 620px; padding-top: 56px; }
  .hero__body { max-width: 460px; }
  .hero__right {
    position: static;
    transform: none;
    width: 100%;
    max-width: 460px;
    margin-top: 44px;
  }
  .flower { right: 24px; bottom: 24px; width: 76px; height: 76px; }
}

/* ============================================================
   Responsive — MOBILE (≤640)
   ============================================================ */
@media (max-width: 640px) {
  :root { --page-pad-x: 20px; }
  #hero-video { object-position: 58% center; }
  .hero__left { padding-top: 40px; }
  .hero__body { font-size: 11px; max-width: 100%; }
  .hero__cta .cta__svg { height: 46px; }
  .hero__right { margin-top: 36px; }
  .features__caption { font-size: 12px; }
  .flower { right: 16px; bottom: 16px; width: 64px; height: 64px; }
}

@media (max-width: 380px) {
  .hero__cta { gap: 10px; }
  .cta { flex: 1 1 100%; }
  .cta__svg { width: 100%; height: auto; }
}
