/* ------------------------------------------------------------------
   Hamza, creative developer portfolio.
   Light hero, dark page, champagne gold accent. Anton for display,
   Outfit for everything else.
   ------------------------------------------------------------------ */

@font-face { font-family: "Anton"; src: url("../fonts/anton-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --surface: #131315;
  --surface-2: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #efede7;
  --muted: #8f8c84;
  --gold: #c9b17e;
  --gold-2: #efe3c2;
  --paper: #e7e6e1;
  --ink: #141414;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 22px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
svg { display: block; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
em { font-style: normal; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Grad text */
.grad {
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold) 45%, #8f7c52 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Loader --------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 10px;
}
.loader-count { font-family: var(--display); font-size: clamp(4rem, 12vw, 9rem); line-height: 1; color: var(--gold); letter-spacing: .01em; }
.loader-line { width: min(240px, 50vw); height: 60px; overflow: visible; }
.loader-line path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.curtain { position: fixed; inset: 0; z-index: 99; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
.curtain span { background: var(--bg); transform-origin: top; }

/* Cursor --------------------------------------------------------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 8px; height: 8px; background: var(--gold); mix-blend-mode: difference; }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid var(--gold); opacity: .7; transition: width .25s var(--ease), height .25s var(--ease), opacity .25s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; opacity: .4; }

/* Nav ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter);
  color: var(--ink);
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.nav.is-dark { color: var(--text); }
.nav.is-hidden { transform: translateY(-110%); }
.nav-brand { font-weight: 300; font-size: 1.6rem; letter-spacing: -0.02em; }
.nav-brand span, .foot-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 34px; justify-content: center; }
.nav-links a { font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-burger { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; }
.nav-burger svg { width: 26px; height: 26px; fill: currentColor; }

.menu { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; place-items: center; }
.menu[hidden] { display: none; }
.menu-close { position: absolute; top: 22px; right: var(--gutter); width: 44px; height: 44px; display: grid; place-items: center; }
.menu-close svg { width: 28px; height: 28px; fill: var(--text); }
.menu-links { display: grid; gap: 10px; text-align: center; }
.menu-links a { font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.5rem); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); transition: color .3s var(--ease), letter-spacing .3s var(--ease); }
.menu-links a:hover { color: var(--text); letter-spacing: .08em; }
.menu-foot { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* Hero (light) ---------------------------------------------------------- */
.hero {
  position: relative; min-height: 100dvh;
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: end;
  padding: 110px var(--gutter) 28px;
  overflow: hidden;
}
.hero-title { display: grid; justify-items: center; font-family: var(--display); font-weight: 400; line-height: .86; text-transform: uppercase; }
.hero-clip { display: block; overflow: hidden; padding: 0 .08em; }
.hero-text { display: inline-block; }
.hero-big { font-size: clamp(5rem, 20vw, 23rem); letter-spacing: .01em; }
.hero-small { font-size: clamp(2rem, 6vw, 5.6rem); margin-top: .1em; letter-spacing: .02em; }
.hero-words { display: flex; align-items: center; gap: clamp(28px, 6vw, 110px); margin-top: 28px; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-words li { position: relative; }
.hero-words li + li::before { content: ""; position: absolute; left: calc(-1 * clamp(14px, 3vw, 55px)); top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); }
.hero-scroll { margin-top: 26px; font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; display: grid; justify-items: center; gap: 8px; color: var(--ink); }
.hero-scroll-line { display: block; width: 1.5px; height: 34px; background: currentColor; position: relative; }
.hero-scroll-line::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 1.5px solid currentColor; background: var(--paper); }
.hero-scroll--dark { color: var(--muted); }
.hero-scroll--dark .hero-scroll-line::after { background: var(--bg); }
.hero-copy { position: absolute; left: var(--gutter); bottom: 40px; font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
.hero-copy span { font-weight: 300; font-size: 1.1rem; letter-spacing: 0; }
.badge { position: absolute; right: var(--gutter); bottom: 72px; width: 110px; height: 110px; display: grid; place-items: center; color: var(--ink); }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-ring text { font-family: var(--sans); font-weight: 600; font-size: 9.6px; letter-spacing: .22em; fill: currentColor; }
.badge-ring::after { content: none; }
.badge::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.badge-arrow { width: 28px; height: 28px; fill: currentColor; transition: transform .35s var(--ease); }
.badge:hover .badge-arrow { transform: translate(3px, -3px); }
.hero-based { position: absolute; right: var(--gutter); bottom: 36px; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }

/* Section furniture ------------------------------------------------------ */
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { width: 40px; height: 1px; background: var(--muted); }
.eyebrow span { color: var(--gold); }
.section-title { text-align: center; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.02em; text-transform: uppercase; margin-top: 10px; }
.label { display: flex; align-items: center; gap: 12px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.label i { width: 28px; height: 1px; background: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* About: identity scan -------------------------------------------------- */
.about { position: relative; }
.about-pin { position: relative; min-height: 100vh; display: grid; align-items: center; padding: 120px var(--gutter) 60px; overflow: hidden; }
.about-bg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: clamp(10rem, 34vw, 36rem); line-height: .85; letter-spacing: .02em; white-space: nowrap; pointer-events: none; user-select: none; }
.about-bg-line, .about-bg-fill { display: block; }
.about-bg-line { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); }
.about-bg-fill { position: absolute; inset: 0; color: transparent; background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, #6f5d38); -webkit-background-clip: text; background-clip: text; clip-path: inset(0 100% 0 0); opacity: .18; }
.about-stage { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.idcard { perspective: 1200px; }
.idcard-inner { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transform-style: preserve-3d; box-shadow: 0 40px 80px rgba(0,0,0,.55); }
.idcard-slices { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(12, 1fr); }
.idcard-slices span { display: block; background-image: url("../images/hamza-portrait.webp"); background-size: 100% 1200%; background-repeat: no-repeat; filter: saturate(.85); }
.idcard-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.25), rgba(11,11,12,0) 30%, rgba(11,11,12,.8) 100%); pointer-events: none; }
.idcard-scan { position: absolute; left: 0; right: 0; top: -10%; height: 2px; background: var(--gold); box-shadow: 0 0 24px 4px rgba(201,177,126,.55); opacity: .9; animation: scan 4.5s linear infinite; z-index: 2; }
@keyframes scan { 0% { top: -2%; } 60% { top: 102%; } 100% { top: 102%; } }
.idcard-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 48%, transparent 60%); background-size: 250% 250%; background-position: var(--sx, 100%) var(--sy, 100%); mix-blend-mode: screen; pointer-events: none; z-index: 2; }
.idcard-top, .idcard-bottom { position: absolute; left: 20px; right: 20px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.idcard-top { top: 20px; }
.idcard-top span:first-child { font-weight: 700; font-size: 1rem; letter-spacing: .16em; }
.idcard-top span:last-child, .idcard-bottom span:first-child { color: #d9d6cd; }
.idcard-bottom { bottom: 20px; }
.idcard-live { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); }
.idcard-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201,177,126,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,177,126,.6); } 100% { box-shadow: 0 0 0 10px rgba(201,177,126,0); } }
.about-head { margin-top: 18px; font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.1; letter-spacing: -0.015em; text-transform: uppercase; perspective: 600px; }
.about-head em, .contact-title em { color: var(--gold); }
.about-head .ch { display: inline-block; transform-origin: 50% 100%; }
.about-role { margin-top: 18px; font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 300; color: #c7c4bb; }
.role-swap { display: inline-block; min-width: 9ch; color: var(--gold); font-weight: 600; border-bottom: 1px solid rgba(201,177,126,.4); }
.about-p { margin-top: 16px; font-size: .98rem; color: #c7c4bb; max-width: 60ch; }
.counters { margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.counters li { position: relative; padding: 16px 16px 14px 70px; border: 1px solid var(--line); border-radius: 16px; background: rgba(19,19,21,.75); min-height: 92px; display: grid; align-content: center; gap: 2px; transition: border-color .3s, transform .4s var(--ease); }
.counters li:hover { border-color: rgba(201,177,126,.45); transform: translateY(-4px); }
.counters svg { position: absolute; left: 14px; top: 50%; width: 44px; height: 44px; transform: translateY(-50%) rotate(-90deg); }
.counters circle { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 3; }
.counters .arc { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 176; }
.counters b { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.counters li > span { font-size: .72rem; letter-spacing: .06em; color: var(--muted); }

/* Expertise: capability lab -------------------------------------------------- */
.lab { position: relative; }
.lab-pin { position: relative; height: 100vh; overflow: hidden; }
.lab-head { position: absolute; left: var(--gutter); right: var(--gutter); top: 96px; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; pointer-events: none; }
.lab-head .eyebrow { justify-content: flex-start; width: 100%; }
.lab-title { font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -0.02em; line-height: 1; color: var(--muted); }
.lab-title b { font-weight: 800; color: var(--text); }
.lab-progress { width: min(320px, 40vw); height: 2px; background: var(--line); overflow: hidden; }
.lab-progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.lab .logos { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.logo { position: absolute; width: 52px; height: 52px; opacity: .35; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.logo svg { width: 100%; height: 100%; }
.lab-track { position: relative; z-index: 2; display: flex; height: 100%; will-change: transform; }
.panel { position: relative; flex: 0 0 100vw; width: 100vw; height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: 200px var(--gutter) 60px; }
.panel-num { position: absolute; left: var(--gutter); bottom: 20px; font-family: var(--display); font-size: clamp(8rem, 22vw, 20rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); pointer-events: none; user-select: none; }
.panel-copy { position: relative; }
.exp-cat { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.panel-copy h3 { margin-top: 12px; font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; }
.panel-copy > p:not(.exp-cat):not(.exp-tags) { margin-top: 18px; color: #bdbab1; max-width: 46ch; font-size: .98rem; }
.exp-tags { margin-top: 16px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6f6c65; }
.panel-demo { position: relative; height: min(56vh, 520px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(19,19,21,.9), rgba(11,11,12,.9)); overflow: hidden; }
.demo-note { position: absolute; right: 18px; top: 16px; z-index: 3; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,11,12,.6); }

/* 01 code that writes a card */
.demo-code { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
.code { margin: 0; padding: 28px 24px; font-family: ui-monospace, "Cascadia Mono", Consolas, "JetBrains Mono", monospace; font-size: clamp(.72rem, .9vw, .86rem); line-height: 1.75; color: #d9d6cd; border-right: 1px solid var(--line); overflow: hidden; white-space: pre; }
.code .ln { display: block; clip-path: inset(0 calc(100% - var(--w, 0%)) 0 0); }
.code .k { color: var(--gold); } .code .s { color: #9ecf9a; } .code .f { color: #8fb8ff; } .code .c { color: #6f6c65; }
.code .caret { display: inline-block; width: .55em; height: 1.1em; background: var(--gold); vertical-align: -0.2em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-result { display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 50% at 50% 60%, rgba(201,177,126,.12), transparent 70%); }
.cr-card { width: min(100%, 240px); padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: #141416; display: grid; gap: 10px; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.cr-card > * { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.cr-tag { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; background: rgba(201,177,126,.15); color: var(--gold); }
.cr-title { font-weight: 600; font-size: 1.1rem; }
.cr-text { font-size: .85rem; color: var(--muted); }
.cr-btn { margin-top: 6px; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--ink); font-weight: 600; font-size: .82rem; text-align: center; }
.code-result.s1 .cr-card { opacity: 1; transform: none; }
.code-result.s2 .cr-tag, .code-result.s2 .cr-title { opacity: 1; transform: none; }
.code-result.s3 .cr-text, .code-result.s3 .cr-btn { opacity: 1; transform: none; }
.code-result.s4 .cr-card { box-shadow: 0 0 0 1px rgba(201,177,126,.5), 0 30px 60px rgba(201,177,126,.15); }
.code-result.s4 .cr-btn { background: var(--gold); }

/* 02 physics pit */
.pit { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.ball { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); border-radius: 50%; cursor: grab; touch-action: none; box-shadow: inset -8px -10px 20px rgba(0,0,0,.35), 0 14px 30px rgba(0,0,0,.45); }
.ball:active { cursor: grabbing; }
.ball.gold { background: radial-gradient(circle at 35% 30%, #efe3c2, var(--gold) 55%, #7d6a40); }
.ball.cream { background: radial-gradient(circle at 35% 30%, #fff, #e7e6e1 55%, #9a978f); }
.ball.ink { background: radial-gradient(circle at 35% 30%, #3a3a3e, #1a1a1d 60%, #000); border: 1px solid rgba(201,177,126,.5); }

/* 03 css cube */
.cube-scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 900px; cursor: grab; touch-action: none; background: radial-gradient(50% 50% at 50% 55%, rgba(201,177,126,.14), transparent 70%); }
.cube-scene:active { cursor: grabbing; }
.cube { position: relative; width: 200px; height: 200px; transform-style: preserve-3d; }
.face { position: absolute; inset: 0; border: 1.5px solid rgba(201,177,126,.85); background: rgba(201,177,126,.06); backdrop-filter: blur(1px); box-shadow: inset 0 0 40px rgba(201,177,126,.08); }
.face::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.12); }
.f1 { transform: translateZ(100px); } .f2 { transform: rotateY(180deg) translateZ(100px); }
.f3 { transform: rotateY(90deg) translateZ(100px); } .f4 { transform: rotateY(-90deg) translateZ(100px); }
.f5 { transform: rotateX(90deg) translateZ(100px); } .f6 { transform: rotateX(-90deg) translateZ(100px); }
.core { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #efe3c2, var(--gold) 50%, #5a4a28); box-shadow: 0 0 60px rgba(201,177,126,.6); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); box-shadow: 0 0 90px rgba(201,177,126,.8); } }

/* 04 payment flow */
.demo-flow { display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 48px 24px 20px; }
.flow { width: 100%; height: 100%; overflow: visible; }
.flow path { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 2; stroke-dasharray: 4 8; }
.flow .node circle { fill: #141416; stroke: rgba(255,255,255,.18); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.flow .node text { fill: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-anchor: middle; }
.flow .node.lit circle { stroke: var(--gold); fill: rgba(201,177,126,.18); }
.flow .node.lit text { fill: var(--text); }
.flow .dot { fill: var(--gold); filter: drop-shadow(0 0 8px rgba(201,177,126,.9)); }
.ledger { display: grid; gap: 6px; }
.ledger li { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); opacity: .35; transition: opacity .3s, color .3s; }
.ledger li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); flex: none; transition: background .3s, border-color .3s; }
.ledger li.done { opacity: 1; color: var(--text); }
.ledger li.done::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(201,177,126,.6); }

.code .ln { position: relative; clip-path: none; }
.code .code-txt { display: inline-block; clip-path: inset(0 calc(100% - var(--w, 0%)) 0 0); }
.code .caret { display: none; }
.code .ln.typing .caret { display: inline-block; }

/* Marquee + WORK ------------------------------------------------------------ */
.marquee { margin-top: clamp(70px, 9vw, 120px); padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; will-change: transform; }
.marquee-track span { font-weight: 700; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.marquee-track i { width: 10px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); flex: none; }
.work-intro { position: relative; display: grid; justify-items: center; padding: clamp(60px, 8vw, 110px) var(--gutter) 0; overflow: hidden; }
.goo { position: relative; filter: url(#goo); margin-top: 20px; padding: 0 40px 90px; }
.work-word { font-family: var(--display); font-size: clamp(7rem, 28vw, 30rem); line-height: .9; letter-spacing: .02em; color: var(--gold); }
.blobs { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: var(--gold); }

/* Work cards ------------------------------------------------------------ */
.work { padding: 0 var(--gutter); }
.work-label { text-align: center; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: .04em; color: var(--gold); margin-bottom: 36px; }
.cards { display: grid; gap: 28px; }
.card {
  position: sticky; top: 92px;
  display: block;
  min-height: min(78vh, 720px);
  padding: clamp(28px, 4vw, 56px);
  background: #0e0e10;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transform-origin: center top; isolation: isolate; z-index: var(--z, 1);
}
.card-media { position: absolute; inset: 0; z-index: 0; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform-origin: center; will-change: transform; }
.card-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.82) 38%, rgba(11,11,12,.3) 72%, rgba(11,11,12,.08) 100%), linear-gradient(0deg, rgba(11,11,12,.9) 0%, rgba(11,11,12,0) 50%); }
.card-word { position: absolute; left: clamp(20px, 3vw, 44px); top: clamp(16px, 2.5vw, 36px); z-index: 2; font-family: var(--display); font-size: clamp(5rem, 14vw, 13rem); line-height: .85; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); pointer-events: none; user-select: none; }
.card-body { position: absolute; left: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); bottom: clamp(28px, 4vw, 56px); z-index: 2; max-width: 560px; padding-right: 130px; }
.card-kind { display: flex; align-items: center; gap: 12px; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: #cfcbc0; }
.card-kind i { width: 28px; height: 1px; background: #cfcbc0; }
.card-body h3 { margin-top: 14px; font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
.card-body > p { margin-top: 18px; color: #d9d6cd; max-width: 46ch; font-size: .98rem; }
.card-body .tags { margin-top: 24px; }
.card-body .tags li { border-color: rgba(255,255,255,.18); color: #d9d6cd; background: rgba(11,11,12,.35); }
.orbit { position: absolute; right: clamp(24px, 4vw, 56px); bottom: clamp(24px, 4vw, 48px); z-index: 3; width: 112px; height: 112px; display: grid; place-items: center; color: var(--text); cursor: pointer; }
.orbit svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit svg.ring text { font-family: var(--sans); font-weight: 600; font-size: 9.5px; letter-spacing: .22em; fill: currentColor; }
.orbit::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--text); transition: transform .4s var(--ease); }
.orbit:hover::before { transform: scale(1.12); }
.orbit .orbit-arrow { position: relative; width: 24px; height: 24px; fill: var(--ink); }

/* FAQ ------------------------------------------------------------------- */
.faq { padding: clamp(80px, 10vw, 140px) var(--gutter) 0; max-width: 980px; margin: 0 auto; }
.faq-title { font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 28px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; flex: none; fill: var(--gold); transition: transform .35s var(--ease); }
.faq-item[open] summary svg { transform: rotate(90deg); }
.faq-item p { padding: 0 0 22px; max-width: 70ch; color: #c7c4bb; }

/* Contact ---------------------------------------------------------------- */
.contact { position: relative; margin-top: clamp(90px, 12vw, 160px); padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(60px, 8vw, 100px); overflow: hidden; }
.contact-bg { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-family: var(--display); font-size: clamp(6rem, 22vw, 24rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); pointer-events: none; white-space: nowrap; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); background: rgba(19,19,21,.7); }
.pill svg { width: 14px; height: 14px; fill: var(--gold); }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); margin-top: 40px; align-items: start; }
.contact-title { font-weight: 300; font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: .98; letter-spacing: -0.03em; }
.contact-copy > p { margin-top: 22px; color: #bdbab1; max-width: 42ch; }
.contact-cards { margin-top: 44px; display: grid; gap: 12px; }
.contact-cards a, .cc-static { display: grid; grid-template-columns: 52px minmax(0, 1fr) 40px; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(19,19,21,.7); transition: border-color .3s, transform .4s var(--ease); }
.contact-cards a:hover { border-color: rgba(201,177,126,.4); transform: translateX(6px); }
.cc-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
.cc-icon svg { width: 22px; height: 22px; fill: var(--muted); }
.cc-text { display: grid; }
.cc-text b { font-weight: 600; font-size: .95rem; }
.cc-text small { color: var(--muted); font-size: .85rem; }
.cc-arrow { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.cc-arrow svg { width: 14px; height: 14px; fill: var(--text); }
.form-error { color: #e07a6a; font-size: .9rem; }
.form-error[hidden] { display: none; }
.form-send { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 14px; background: linear-gradient(180deg, #2a2a2e, #1c1c20); border: 1px solid var(--line); font-weight: 600; cursor: pointer; transition: background .3s, color .3s; }
.form-send svg { width: 16px; height: 16px; fill: currentColor; }
.form-send:hover { background: var(--gold); color: var(--ink); }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }

/* Contact: brief + quick message ------------------------------------------ */
.talk { position: relative; display: grid; gap: 16px; padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(19,19,21,.85); }
.talk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.talk-tab { display: grid; gap: 2px; padding: 12px 16px; border-radius: 11px; text-align: left; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; transition: background .3s, color .3s; }
.talk-tab small { font-weight: 400; font-size: .74rem; color: var(--muted); }
.talk-tab.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(201,177,126,.35); }
.talk-tab.is-active small { color: var(--gold); }
.talk-pane { display: grid; gap: 14px; }
.step:not(.is-active) { display: none; }
.brief-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.brief-progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease); }
.brief-step-label { display: flex; justify-content: space-between; gap: 12px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.brief-step-label span:last-child { color: var(--gold); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-weight: 600; font-size: .85rem; min-width: 0; }
.field small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 400; font-size: 1rem; resize: vertical; min-width: 0; }
.field input::placeholder, .field textarea::placeholder { color: #6f6c65; }
.field input:focus, .field textarea:focus { outline: none; }
.field:focus-within { border-color: rgba(201,177,126,.5); }
.field.is-bad { border-color: rgba(224,122,106,.7); }
.q { font-weight: 600; font-size: .9rem; margin-top: 4px; }
.q small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.is-bad { outline: 1px solid rgba(224,122,106,.6); outline-offset: 6px; border-radius: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; color: #d9d6cd; background: var(--bg); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); user-select: none; }
.chips span:hover { border-color: rgba(201,177,126,.45); }
.chips input:checked + span { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips span:active { transform: scale(.96); }
.review { display: grid; gap: 6px; padding: 14px 16px; border: 1px dashed rgba(201,177,126,.35); border-radius: 14px; font-size: .86rem; color: #c7c4bb; }
.review:empty { display: none; }
.review b { color: var(--gold); font-weight: 600; }
.review p { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: stretch; }
.brief-nav .form-send { grid-column: 2; }
.btn-ghost { padding: 0 20px; min-height: 56px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); font-weight: 600; cursor: pointer; transition: border-color .3s; }
.btn-ghost:hover { border-color: rgba(201,177,126,.5); }
.form-send:disabled { opacity: .6; cursor: progress; }
.talk-done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 36px 16px; }
.done-ring { width: 72px; height: 72px; }
.done-ring circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 176; stroke-dashoffset: 176; }
.done-ring path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.talk-done h3 { font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
.talk-done p { color: #c7c4bb; max-width: 44ch; }
.done-ref { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.done-ref b { color: var(--gold); font-weight: 600; letter-spacing: .08em; }
.talk-done .btn-ghost { margin-top: 8px; }

/* Footer ----------------------------------------------------------------- */
.foot { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; padding: 26px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot-brand { font-weight: 300; font-size: 1.4rem; color: var(--text); }
.foot-links { display: flex; gap: 22px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.foot-links a:hover { color: var(--text); }
.foot-services { flex-basis: 100%; order: 3; max-width: 90ch; font-size: .78rem; line-height: 1.6; color: #6f6c65; }

/* Case panel --------------------------------------------------------------- */
.case-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); opacity: 0; }
.case-backdrop[hidden] { display: none; }
.case { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(680px, 100%); background: var(--surface); border-left: 1px solid var(--line); padding: 24px var(--gutter) 48px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); }
.case[hidden] { display: none; }
.case-close { position: sticky; top: 0; float: right; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); cursor: pointer; }
.case-close svg { width: 20px; height: 20px; fill: var(--text); }
.case-figure { clear: both; margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.case-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-kind { margin-top: 24px; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.case-title { margin-top: 8px; font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.case-body { margin-top: 24px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px 16px; }
.case-body dt { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.case-body dd { color: #c7c4bb; font-size: .98rem; }
.case .tags { margin-top: 24px; }
.case-note { margin-top: 24px; font-size: .8rem; color: var(--muted); }

/* Mobile ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { padding-top: 96px; }
  .hero-copy, .hero-based { display: none; }
  .badge { position: static; margin-top: 24px; width: 96px; height: 96px; }
  .hero { grid-template-rows: 1fr auto auto auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .talk-tabs { grid-template-columns: 1fr; }
  .goo { filter: url(#goo-m); padding: 0 16px 60px; }
  .blob { transform: scale(.6); }
  .about-pin { min-height: 0; padding-top: 90px; }
  .about-stage { grid-template-columns: 1fr; }
  .idcard { max-width: 340px; }
  .counters { grid-template-columns: 1fr 1fr; }
  .lab-pin { height: auto; }
  .lab-head { position: relative; top: auto; left: auto; right: auto; padding: 90px var(--gutter) 0; }
  .lab-progress { display: none; }
  .lab-track { flex-direction: column; height: auto; }
  .panel { flex: none; width: 100%; grid-template-columns: 1fr; padding: 48px var(--gutter) 90px; }
  .panel-num { bottom: 0; font-size: 7rem; }
  .panel-demo { height: 380px; }
  .demo-code { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .code { border-right: 0; border-bottom: 1px solid var(--line); font-size: .68rem; }
  .code-result { padding: 16px; }
  .cube { width: 150px; height: 150px; }
  .f1 { transform: translateZ(75px); } .f2 { transform: rotateY(180deg) translateZ(75px); }
  .f3 { transform: rotateY(90deg) translateZ(75px); } .f4 { transform: rotateY(-90deg) translateZ(75px); }
  .f5 { transform: rotateX(90deg) translateZ(75px); } .f6 { transform: rotateX(-90deg) translateZ(75px); }
  .logo { width: 40px; height: 40px; opacity: .25; }
  .card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 70vh; top: 80px; padding: 120px 20px 20px; }
  .card-word { font-size: clamp(4rem, 18vw, 7rem); }
  .orbit { right: 14px; bottom: auto; top: 14px; width: 84px; height: 84px; }
  .card-body { position: relative; left: auto; right: auto; bottom: auto; padding-right: 0; max-width: none; }
  .card-word { left: 14px; top: 14px; font-size: 4.6rem; }
  .card-shade { background: linear-gradient(0deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.85) 45%, rgba(11,11,12,.15) 100%); }
  .case-body { grid-template-columns: 1fr; gap: 4px 0; }
  .case-body dd + dt { margin-top: 14px; }
}
@media (max-width: 480px) {
  .hero-words { gap: 26px; }
  .hero-words li + li::before { left: -17px; }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .loader, .curtain, .cursor { display: none !important; }
  .card { position: static; }
  .card-shade { opacity: 1; }
  .idcard-scan, .idcard-live i, .core, .code .caret { animation: none !important; }
  * { transition: none !important; }
}
