/* Nye Sherrit — scroll-driven portfolio
   Warm near-black, cream type, filament yellow as the accent.
   Sections marked .pin stick to the viewport while script.js feeds them scroll progress. */

:root {
  --bg: #0d0b0a;
  --bg-2: #161210;
  --bg-3: #1f1a16;
  --ink: #f2ebe1;
  --muted: #a1978c;
  --dim: #6d655d;
  --line: rgba(242, 235, 225, .12);
  --amber: #f4c21f;
  --amber-2: #ffdb6e;
  --green: #3ccf7f;
  --gutter: max(clamp(20px, 5vw, 80px), calc((100vw - 1440px) / 2));
  --header: 56px;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: ui-serif, 'New York', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--amber); color: #111; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--amber); color: #111; font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Header: thin translucent bar, like a product page */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: var(--header); padding: 0 var(--gutter); background: rgba(13, 11, 10, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-nav a:hover, .site-nav a.is-current:not(.nav-contact) { color: var(--ink); }
.site-nav .nav-contact { padding: 6px 14px; border-radius: 980px; background: var(--ink); color: var(--bg); font-weight: 500; }
.site-nav .nav-contact:hover { background: var(--amber); color: #111; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(13, 11, 10, .96); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .site-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; color: var(--ink); }
  .site-nav .nav-contact { margin-top: 16px; width: auto; padding: 10px 20px; border: 0; font-size: 16px; }
}

/* Shared type */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kind { margin-bottom: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
h2 { font-size: clamp(36px, 5.4vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 980px; color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--amber); font-weight: 500; text-decoration: none; }
.text-link::after { content: '›'; font-size: 1.25em; line-height: 1; transition: transform .2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 980px; font-size: 16px; font-weight: 500; text-decoration: none; transition: background .2s, color .2s, transform .2s var(--ease); }
.button:active { transform: scale(.97); }
.button-primary { background: var(--amber); color: #111; }
.button-primary:hover { background: var(--amber-2); }
.button-quiet { border: 1px solid rgba(242, 235, 225, .3); color: var(--ink); }
.button-quiet:hover { background: rgba(242, 235, 225, .08); }

/* Pinned sections. Without .motion they are ordinary blocks at natural height. */
.pin-inner { position: relative; padding: calc(var(--header) + 48px) var(--gutter) 72px; }
.motion.js .pin, .motion .hero.pin { position: relative; height: var(--pin-h, 250svh); }
.motion.js .pin-inner, .motion .hero .pin-inner { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0 var(--gutter); overflow: hidden; }

/* 1. Hero ------------------------------------------------------------------ */
.hero { --pin-h: 190svh; background: radial-gradient(120% 70% at 50% -10%, rgba(140, 102, 64, .38), rgba(13, 11, 10, 0) 65%), var(--bg); }
.hero .pin-inner { display: flex; flex-direction: column; justify-content: center; }
.hero-stage { transform-origin: 0 50%; will-change: transform, opacity; }
.print-area { position: relative; width: fit-content; }
.print-stack { position: relative; z-index: 1; display: flex; flex-direction: column; font-size: clamp(34px, min(10vw, 14svh), 150px); line-height: .98; letter-spacing: -.045em; }
.layer { display: block; width: fit-content; }
.layer-1 { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.03em; color: var(--muted); }
.layer-2 { font-weight: 700; color: var(--ink); }
.layer-3 { font-weight: 700; color: var(--amber); }
.print-bed { height: clamp(6px, .9vw, 12px); margin-top: clamp(12px, 1.8vw, 24px); border-radius: 2px; background: linear-gradient(90deg, var(--amber), #c98f12); }
.hero-text { margin-top: clamp(28px, 4vw, 48px); will-change: opacity, transform; }
.hero-intro { max-width: 46ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.scroll-cue { display: none; }
.motion .scroll-cue { position: absolute; left: 50%; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 40px; background: linear-gradient(var(--dim), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Print engine: the headline grows in Z-layers under a moving toolhead */
.hot-copy { position: absolute; top: 0; left: 0; z-index: 2; margin: 0; pointer-events: none; color: transparent; -webkit-background-clip: text; background-clip: text; background-repeat: no-repeat;
  background-image: linear-gradient(to bottom, #fffbe6 0, #ffe27a 6%, #f4c21f 22%, rgba(244, 194, 31, .55) 55%, rgba(244, 194, 31, 0) 100%);
  filter: drop-shadow(0 0 8px rgba(255, 196, 40, .6)); }
.hot-copy .layer { color: transparent !important; }
@property --lines { syntax: '<number>'; inherits: true; initial-value: 1; }
.print-stack.is-layered { -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0, #000 calc(var(--slice) - 1.5px), rgba(0, 0, 0, var(--lines)) calc(var(--slice) - 1.5px), rgba(0, 0, 0, var(--lines)) var(--slice));
  mask-image: repeating-linear-gradient(to bottom, #000 0, #000 calc(var(--slice) - 1.5px), rgba(0, 0, 0, var(--lines)) calc(var(--slice) - 1.5px), rgba(0, 0, 0, var(--lines)) var(--slice));
  -webkit-mask-position: 0 var(--mask-y, 0); mask-position: 0 var(--mask-y, 0); --lines: .55; transition: --lines 1.2s ease; }
.print-stack.is-smooth { --lines: 1; }
.motion .hero .pin-inner { padding-top: calc(var(--header) + clamp(16px, 5svh, 64px)); }

/* The viewport as a printer frame (built by script.js): posts on the screen
   edges with Z lead screws, a bar under the header, the bed, the X gantry. */
.printer { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.printer.is-on { opacity: 1; }
.pr-post { position: absolute; top: var(--top-y); bottom: 0; width: var(--post); background: linear-gradient(90deg, #1b1815, #4b443d 38%, #2e2924 68%, #171412); }
.pr-post::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(0, 0, 0, .6); }
.pr-post-l { left: 0; }
.pr-post-r { right: 0; }
.pr-screw { position: absolute; top: 0; bottom: 0; width: 4px; background: repeating-linear-gradient(160deg, #a19a91 0 1.5px, #3a3530 1.5px 4px); opacity: .85; }
.pr-post-l .pr-screw { left: calc(100% + 3px); }
.pr-post-r .pr-screw { right: calc(100% + 3px); }
.pr-top { position: absolute; left: 0; right: 0; top: var(--top-y); height: var(--top-h); background: linear-gradient(180deg, #4b443d, #2e2924 60%, #171412); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.pr-bed { position: absolute; left: calc(var(--post) + 8px); right: calc(var(--post) + 8px); height: var(--bed-h); border-radius: 1px;
  background: linear-gradient(180deg, #a08a58 0, #6e5d3c 2px, #2d2621 3px, #3d352e 55%, #1b1714); box-shadow: 0 12px 28px rgba(0, 0, 0, .55); }
.pr-gantry { position: absolute; top: 0; left: 0; right: 0; height: var(--beam); will-change: transform; }
.pr-beam { position: absolute; top: 0; bottom: 0; left: calc(var(--post) + 6px); right: calc(var(--post) + 6px); border-radius: 1px;
  background: linear-gradient(180deg, #b9bec2, #868c92 45%, #5c6268 56%, #9aa0a5); box-shadow: 0 5px 12px rgba(0, 0, 0, .5); }
.pr-beam::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .5); }
.pr-zb { position: absolute; top: 50%; width: calc(var(--post) + 16px); height: calc(var(--beam) * 2.4); min-height: 14px; transform: translateY(-50%); border-radius: 3px;
  background: linear-gradient(180deg, #3a352f, #1a1714); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 10px rgba(0, 0, 0, .5); }
.pr-zb-l { left: 0; }
.pr-zb-r { right: 0; }
.pr-head { position: absolute; top: 0; left: 0; will-change: transform; }
.pr-head svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); }
.th-fan { transform-origin: 40px 45px; animation: th-spin .3s linear infinite; }
.pr-head.is-idle .th-fan { animation-play-state: paused; }
.th-halo { animation: halo .35s ease-in-out infinite alternate; transition: opacity 1.5s ease; }
.pr-head.is-cool .th-halo { opacity: 0; animation: none; }
@keyframes th-spin { to { transform: rotate(360deg); } }
@keyframes halo { from { opacity: .55; } to { opacity: .95; } }
.pr-spool { position: absolute; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, #13100e 0 13%, #4a433c 14% 25%, #f4c21f 26% 70%, #b8890f 71% 74%, #2d2723 75% 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .06); }
.pr-spool i { position: absolute; inset: 14%; border-radius: 50%; background: repeating-conic-gradient(rgba(0, 0, 0, .28) 0 8deg, transparent 8deg 45deg); }
.pr-tube { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pr-tube path { fill: none; stroke-linecap: round; }
.pr-tube-o { stroke: rgba(242, 235, 225, .2); stroke-width: 5; }
.pr-tube-f { stroke: rgba(244, 194, 31, .85); stroke-width: 1.5; }
.print-status { display: none; }
.motion .print-status { position: absolute; right: 0; top: calc(100% + 14px); display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid var(--line); border-radius: 980px; background: rgba(31, 26, 22, .8); color: var(--muted); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .6s ease .8s; }
.ps-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(244, 194, 31, .6); animation: ps-pulse 1s ease-out infinite; }
@keyframes ps-pulse { to { box-shadow: 0 0 0 7px rgba(244, 194, 31, 0); } }
.print-status.is-done .ps-dot { background: var(--green); animation: none; }
.print-status.is-gone { opacity: 0; }
.motion .print-stack { clip-path: inset(100% 0 0 0); }
.motion .print-bed { transform: scaleX(0); transform-origin: left; }
.motion .hero-text { margin-top: clamp(56px, 5vw, 64px); opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s var(--ease); }
.motion.printed .hero-text { opacity: 1; transform: none; }
/* Safety net: if the script never runs, show everything anyway */
.motion .print-stack, .motion .print-bed, .motion .hero-text { animation: show-anyway 0s 6s forwards; }
.motion.printing .print-stack, .motion.printing .print-bed, .motion.printing .hero-text, .motion.printed .hero-text { animation: none; }
@keyframes show-anyway { to { clip-path: none; transform: none; opacity: 1; } }

/* 2. Statement: words light up with scroll ---------------------------------- */
.statement { --pin-h: 260svh; }
.statement .pin-inner { display: grid; place-items: center; }
.statement-text { max-width: 22ch; font-size: clamp(30px, 5vw, 72px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
.statement-text .w { transition: color .35s ease; }
.motion .statement-text .w { color: rgba(242, 235, 225, .16); }
.motion .statement-text .w.on { color: var(--ink); }
.motion .statement-text .w.hl.on { color: var(--amber); }

/* 3. Numbers -------------------------------------------------------------- */
.numbers { padding: clamp(80px, 12vw, 160px) var(--gutter); border-top: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; margin-top: 40px; }
.stats li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.stat-num { font-size: clamp(48px, 6.6vw, 104px); font-weight: 700; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--ink) 30%, #b9ab98); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats li:nth-child(2) .stat-num { background-image: linear-gradient(180deg, var(--amber-2), var(--amber) 60%, #c98f12); }
.stat-label { max-width: 24ch; color: var(--muted); font-size: 15px; line-height: 1.4; }
.numbers-note { margin-top: 48px; color: var(--muted); font-size: 17px; }
.numbers-note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* 4. Apex: the cover grows to fill the screen --------------------------------- */
.apex { --pin-h: 300svh; }
.apex .pin-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.apex-eyebrow { align-self: flex-start; }
.apex-frame { position: relative; width: min(100%, 1400px); aspect-ratio: 1200 / 630; overflow: hidden; border-radius: 22px; background: var(--bg-2); box-shadow: 0 40px 120px rgba(0, 0, 0, .55); will-change: transform; }
.apex-frame img { width: 100%; height: 100%; object-fit: cover; }
.apex-copy { max-width: 620px; }
.apex-copy h2 { margin-bottom: 14px; }
.apex-copy > p:not(.kind) { color: var(--muted); }
.motion.js .apex-eyebrow { position: absolute; top: calc(var(--header) + 28px); left: var(--gutter); }
.motion.js .apex-frame { width: min(calc(100vw - 2 * var(--gutter)), 1400px, calc((100svh - var(--header) - 48px) * 1200 / 630)); }
.motion.js .apex-copy { opacity: 0; transform: translateY(40px); }
@media (min-width: 901px) {
  .motion.js .apex-copy { position: absolute; right: var(--gutter); top: 50%; width: min(38%, 480px); margin-top: calc(var(--header) / 2); translate: 0 -50%; }
  .motion.js .apex-copy h2 { font-size: clamp(40px, 4.4vw, 72px); }
  .motion.js .apex-copy > p:not(.kind) { font-size: 16px; }
}
@media (max-width: 900px) {
  .motion.js .apex .pin-inner { justify-content: center; padding-top: var(--header); }
  .motion.js .apex-copy > p:not(.kind) { font-size: 15px; }
}

/* 5. K2: laptop opening --------------------------------------------------- */
.k2 { --pin-h: 260svh; background: radial-gradient(80% 60% at 75% 55%, rgba(244, 194, 31, .08), rgba(13, 11, 10, 0) 70%); }
.k2 .pin-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.k2-copy > p:not(.kind) { margin-top: 16px; color: var(--muted); }
.laptop { width: 100%; max-width: 860px; justify-self: center; perspective: 2200px; perspective-origin: 50% 80%; }
.laptop-lid { position: relative; padding: 2.2% 2.2% 3%; border-radius: 18px 18px 6px 6px; background: linear-gradient(#2b2622, #1a1613); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transform-origin: 50% 100%; transform: rotateX(var(--lid, 0deg)); will-change: transform; }
.laptop-screen { overflow: hidden; border-radius: 6px; background: #000; }
.laptop-screen img { width: 100%; filter: brightness(var(--glow, 1)); }
.laptop-base { position: relative; width: 114%; height: 16px; margin-left: -7%; border-radius: 2px 2px 18px 18px; background: linear-gradient(#3a342e, #1a1613 70%); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.laptop-base span { position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #13100e; }
.motion.js .k2-copy { opacity: 0; transform: translateX(-30px); }
@media (max-width: 900px) {
  .k2 .pin-inner { grid-template-columns: 1fr; }
  .k2 .laptop { order: -1; max-width: 520px; }
  .motion.js .k2 .pin-inner { align-content: center; gap: 28px; padding-top: var(--header); }
  .motion.js .k2-copy { transform: translateY(30px); }
  .motion.js .k2-copy > p:not(.kind) { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
}

/* 6. Horizontal gallery ---------------------------------------------------- */
.gallery .pin-inner { padding-left: 0; padding-right: 0; }
.gallery-track { display: flex; align-items: stretch; gap: 20px; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.motion.js .gallery .pin-inner { display: flex; flex-direction: column; justify-content: center; padding-top: var(--header); }
.motion.js .gallery-track { width: max-content; overflow: visible; will-change: transform; }
.gallery-head { flex: 0 0 min(78vw, 420px); align-self: center; padding-right: 20px; scroll-snap-align: start; }
.gallery-head h2 { margin: 10px 0 14px; }
.gallery-head p:not(.eyebrow) { color: var(--muted); }
.card { flex: 0 0 min(80vw, 420px); display: flex; flex-direction: column; padding: 18px 18px 26px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); scroll-snap-align: start; transition: border-color .3s; }
.card:hover { border-color: rgba(244, 194, 31, .4); }
.card h3 { margin-bottom: 8px; }
.card > p:not(.kind) { color: var(--muted); font-size: 15px; }
.card .tags { margin-top: auto; padding-top: 18px; }
.card-media { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 22px; padding: 18px; overflow: hidden; border-radius: 14px; background: radial-gradient(90% 80% at 50% 0%, rgba(140, 102, 64, .3), rgba(13, 11, 10, 0)), #110e0c; }
.gallery-progress { display: none; }
.motion.js .gallery-progress { display: block; width: min(320px, 60vw); height: 2px; margin: 36px auto 0; border-radius: 2px; background: var(--line); overflow: hidden; }
.gallery-progress i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(var(--gp, 0)); }
@media (max-height: 760px) { .card-media { aspect-ratio: 16 / 9; } .card > p:not(.kind) { font-size: 14px; } }

/* Mock illustrations inside cards */
.chat { display: flex; flex-direction: column; gap: 8px; width: 100%; font-size: 13px; }
.chat p { max-width: 86%; padding: 8px 12px; border-radius: 14px; line-height: 1.35; }
.chat-user { align-self: flex-end; background: var(--amber); color: #111; }
.chat-ai { background: var(--bg-3); }
.chat-tool { padding: 2px 0 !important; color: var(--dim); font-family: var(--mono); font-size: 11px; }
.chat-tool b { color: var(--green); font-weight: 500; }
.device { width: 82%; padding: 10px; border-radius: 14px; background: #050404; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.device-screen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; aspect-ratio: 4 / 3; padding: 10px; border-radius: 6px; background: #121a24; font-size: 11px; }
.dp-col { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.dp-col small { color: #7fa7d6; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.dp-col b { font-weight: 600; }
.dp-col span { color: var(--muted); }
.dp-bar { height: 3px; margin: 6px 0; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.dp-bar i { display: block; width: 45%; height: 100%; border-radius: 3px; background: var(--green); }
.growth { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 80%; }
.growth-num { font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -.045em; color: var(--amber); line-height: 1; }
.growth-label { color: var(--muted); font-size: 14px; }
.growth-bar { width: 100%; height: 6px; margin-top: 14px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.growth-bar i { display: block; width: 92%; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #c98f12, var(--amber-2)); }
.browser { width: 86%; overflow: hidden; border-radius: 10px; background: var(--ink); color: #111; }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #ddd3c6; font-size: 11px; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #b3a898; }
.browser-bar span { margin-left: 8px; color: #6b6257; }
.browser-body { display: flex; flex-direction: column; gap: 4px; padding: 22px 16px 30px; }
.browser-body strong { font-family: var(--serif); font-size: 22px; font-weight: 400; font-style: italic; }
.browser-body span { color: #6b6257; font-size: 13px; }

/* 7. AI process / 8. Experience ------------------------------------------ */
.ai, .experience { padding: clamp(96px, 13vw, 180px) var(--gutter); border-top: 1px solid var(--line); }
.section-head { max-width: 760px; }
.section-head h2 { margin: 14px 0 18px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.steps li { padding: 28px 24px 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); }
.step-n { display: block; margin-bottom: 40px; font-family: var(--serif); font-size: 44px; font-style: italic; line-height: 1; color: var(--amber); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }
.toolbelt { margin-top: 40px; color: var(--muted); }
.toolbelt span { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .step-n { margin-bottom: 20px; } }

.timeline { margin-top: 56px; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.when { color: var(--amber); font-family: var(--mono); font-size: 14px; padding-top: 3px; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); max-width: 64ch; }
.background { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-top: 64px; }
.background h3 { margin-bottom: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.background p + p { margin-top: 10px; }
@media (max-width: 760px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } .background { grid-template-columns: 1fr; gap: 32px; } }

/* 9. Contact ------------------------------------------------------------- */
.contact { padding: clamp(110px, 16vw, 220px) var(--gutter) clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); background: radial-gradient(90% 60% at 50% 100%, rgba(140, 102, 64, .32), rgba(13, 11, 10, 0) 70%); text-align: center; overflow: hidden; }
.contact-title { font-size: clamp(48px, 10.5vw, 180px); line-height: .95; letter-spacing: -.055em; transform-origin: 50% 100%; }
.contact-title span { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.03em; color: var(--amber); }
.motion .contact-title { transform: scale(calc(.78 + .22 * var(--e, 1))); opacity: calc(.2 + .8 * var(--e, 1)); }
.contact > p { max-width: 48ch; margin: 32px auto 0; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.contact-options { max-width: 460px; margin: 36px auto 0; }
.contact-email { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 980px; background: var(--amber); color: #111; font-weight: 500; cursor: pointer; list-style: none; transition: background .2s; }
.contact-email::-webkit-details-marker { display: none; }
.contact-email:hover { background: var(--amber-2); }
.contact-panel { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); text-align: left; }
.contact-address-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.email-copy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.email-copy-row input { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.copy-email { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.copy-email:hover { background: var(--amber); color: #111; }
.copy-status { min-height: 1.4em; margin-top: 8px; color: var(--green); font-size: 14px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 36px; }
.contact-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.contact-links a:hover { color: var(--ink); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }

/* Scroll reveal for ordinary sections (only when the script is running) */
.motion.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform 1s var(--ease); transition-delay: var(--delay, 0s); }
.motion.js .reveal.is-in { opacity: 1; transform: none; }

@media print {
  :root { --bg: #fff; --bg-2: #fff; --bg-3: #fff; --ink: #111; --muted: #444; --dim: #666; --line: #ccc; }
  @page { margin: 14mm; }
  .site-header, .skip-link, .scroll-cue, .print-status, .gallery-progress, .print-bed, .contact-options, .card-media, .printer { display: none !important; }
  body, html { background: #fff !important; color: #111; }
  * { box-shadow: none !important; text-shadow: none !important; }
  .motion .pin, .motion.js .pin { height: auto !important; }
  .motion .pin-inner, .motion.js .pin-inner { position: static !important; height: auto !important; overflow: visible !important; padding: 24px 0 !important; }
  .hero-stage, .hero-text, .apex-frame, .apex-copy, .apex-eyebrow, .laptop, .laptop-lid, .k2-copy, .gallery-track, .reveal, .contact-title { opacity: 1 !important; transform: none !important; translate: none !important; position: static !important; clip-path: none !important; }
  .print-stack { clip-path: none !important; }
  .gallery-track { flex-wrap: wrap; width: auto !important; overflow: visible !important; }
  .statement-text .w { color: #111 !important; }
  .stat-num { color: #111 !important; background: none !important; }
  section { border: 0 !important; background: none !important; }
  .card, .steps li, .timeline li, .stats li, .background > div, .apex-frame, .laptop, .apex-copy, .k2-copy { break-inside: avoid; }
  .card { flex-basis: 30% !important; }
}
