:root {
  --black: #000;
  --ink: #050510;
  --depth: #070b2a;
  --white: #fff;
  --muted: #9999a6;
  --line: rgba(255, 255, 255, 0.13);
  --purple: #7a3cff;
  --magenta: #c13cff;
}

.not-found { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 26px; padding: 40px; background: radial-gradient(circle at 70% 30%, rgba(122,60,255,.18), transparent 30%), #000; }
.not-found > img { width: 34px; height: 46px; object-fit: contain; filter: brightness(0) invert(1); }
.not-found > p { margin: 20px 0 0; color: #8d8d98; font: 10px ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.not-found > h1 { max-width: 900px; margin: 0; font-size: clamp(4rem, 10vw, 9rem); line-height: .85; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--white); font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-synthesis: none; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.shell { width: min(100% - 64px, 1440px); margin-inline: auto; }

.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 72% 48%, rgba(122,60,255,.13), transparent 27%), linear-gradient(135deg, #000 34%, #030312 75%, #000);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw; mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero::after {
  content: ""; position: absolute; width: 52vw; height: 52vw; top: 13%; right: -17%; z-index: -1;
  border: 1px solid rgba(145,108,255,.24); transform: perspective(800px) rotateX(66deg) rotateZ(-12deg); box-shadow: 0 0 100px rgba(122,60,255,.06) inset;
}
.nav { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: -.01em; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-weight: 600; }
.brand img { filter: brightness(0) invert(1); width: 20px; height: 26px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 34px; color: #aaaab3; }
.nav-links a, .text-link { transition: color 220ms ease; }
.nav-links a:hover, .text-link:hover { color: #fff; }
.hero-content { min-height: calc(100svh - 170px); display: flex; flex-direction: column; justify-content: center; padding: 11vh 0 14vh; position: relative; }
.eyebrow, .section-index { margin: 0 0 34px; color: #858592; font: 500 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; max-width: 1210px; font-size: clamp(4rem, 10.2vw, 10.2rem); font-weight: 450; line-height: .82; letter-spacing: -.075em; }
h1 span { display: block; }
h1 span:last-child { margin-left: 8vw; }
h1 em { font-style: normal; color: transparent; background: linear-gradient(110deg, #fff 12%, #a27aff 55%, #cf4cff); background-clip: text; -webkit-background-clip: text; }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; margin-top: 60px; padding-left: 8vw; }
.hero-bottom > p { max-width: 510px; margin: 0; color: #b9b9c1; font-size: clamp(16px,1.25vw,19px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; background: #fff; color: #050505; font-size: 13px; font-weight: 600; transition: background 220ms ease, transform 220ms ease; }
.button:hover { background: #ded2ff; transform: translateY(-2px); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 18px; color: #aaaab3; font-size: 13px; }
.hero-meta { position: absolute; inset: auto 0 22px; display: flex; justify-content: space-between; color: #666674; font: 500 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.status-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 1px 0; border-radius: 50%; background: #8b5cff; box-shadow: 0 0 12px #7a3cff; }
.hero-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.field-line { position: absolute; display: block; border-top: 1px solid rgba(255,255,255,.09); transform-origin: left; }
.field-line-a { width: 43vw; right: 0; top: 42%; transform: rotate(-12deg); }
.field-line-b { width: 32vw; right: 8%; top: 64%; transform: rotate(18deg); }
.field-node { position: absolute; width: 7px; height: 7px; border: 1px solid #8e60ff; background: #05030d; box-shadow: 0 0 22px rgba(122,60,255,.65); }
.node-a { right: 22%; top: 43%; }.node-b { right: 35%; top: 68%; }
.field-label { position: absolute; color: #686477; font: 9px ui-monospace, monospace; letter-spacing: .12em; }
.label-a { right: 8%; top: 39%; }.label-b { right: 26%; top: 72%; }
.reveal { opacity: 0; transform: translateY(24px); animation: reveal .85s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal-1 { animation-delay: .15s; }.reveal-2 { animation-delay: .28s; }.reveal-3 { animation-delay: .48s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
.philosophy-intro { padding: clamp(130px,18vw,260px) 0; }
.philosophy-intro h2, .statement-muted { margin: 0; font-size: clamp(3rem,7.3vw,7rem); line-height: .98; letter-spacing: -.065em; font-weight: 450; }
.statement-muted { color: #3d3d46; margin-top: 10px; }
:focus-visible { outline: 2px solid #a879ff; outline-offset: 5px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 1440px); }
  .nav { height: 82px; }.nav-links a:not(:last-child) { display: none; }
  .hero-content { padding: 12vh 0 15vh; }
  h1 { font-size: clamp(3.8rem,19vw,6rem); line-height: .88; }
  h1 span:last-child { margin-left: 0; }
  .hero-bottom { grid-template-columns: 1fr; padding-left: 0; margin-top: 42px; gap: 32px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .button { width: 100%; min-height: 56px; }
  .hero-meta span:nth-child(2) { display: none; }
  .hero::after { width: 100vw; height: 100vw; top: 36%; right: -48%; }
  .field-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-enhanced) { scroll-behavior: auto; }
  html:not(.motion-enhanced) *, html:not(.motion-enhanced) *::before, html:not(.motion-enhanced) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Editorial narrative */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 850ms cubic-bezier(.2,.8,.2,1); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.hero { --pointer-x: 72vw; --pointer-y: 45vh; }
.hero-field::after { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--pointer-x) var(--pointer-y), rgba(122,60,255,.105), transparent 72%); transition: background 350ms ease-out; }
.philosophy-section { background: linear-gradient(#000 0%, #03030c 55%, #000 100%); }
.principles { padding-bottom: clamp(140px,18vw,260px); }
.principle { display: grid; grid-template-columns: 8vw minmax(240px, 1fr) minmax(260px, .7fr); align-items: baseline; gap: 24px; padding: 42px 0; border-top: 1px solid var(--line); }
.principle > span { color: #565662; font: 10px ui-monospace, monospace; }
.principle h3 { margin: 0; font-size: clamp(1.8rem,3.5vw,3.5rem); letter-spacing: -.05em; font-weight: 450; }
.principle p { max-width: 400px; margin: 0; color: #92929d; font-size: 16px; line-height: 1.55; }

.manifesto { position: relative; padding: clamp(130px,17vw,240px) 0; background: #f2f1ee; color: #0a0a0b; overflow: hidden; }
.manifesto::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px); background-size: 8.333vw 8.333vw; mask-image: radial-gradient(circle at 70% 60%, black, transparent 62%); }
.manifesto .section-index { color: #77777b; }
.manifesto-head { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 2fr; align-items: start; }
.manifesto-head h2, .products-heading h2, .build-heading h2, .lab-head h2 { margin: 0; font-size: clamp(3.3rem,7vw,7.5rem); font-weight: 450; line-height: .92; letter-spacing: -.065em; }
.dependency-map { position: relative; z-index: 1; margin-top: clamp(100px,14vw,190px); border: 1px solid rgba(0,0,0,.18); background: rgba(255,255,255,.36); }
.core-path { min-height: 220px; padding: 40px 6vw; display: flex; align-items: center; justify-content: space-between; }
.core-path span { display: grid; place-items: center; width: clamp(92px,10vw,150px); aspect-ratio: 1; border: 1px solid rgba(0,0,0,.55); border-radius: 50%; font-size: 13px; font-weight: 600; }
.core-path span:last-child { background: #09090b; color: white; box-shadow: 0 0 0 12px rgba(122,60,255,.08); }
.core-path i { flex: 1; height: 1px; margin: 0 18px; background: #111; position: relative; }
.core-path i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.removed { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(0,0,0,.18); border-bottom: 1px solid rgba(0,0,0,.18); }
.removed span { flex: 1 0 160px; padding: 20px 22px; color: #8a898d; font: 10px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; text-decoration: line-through; border-right: 1px solid rgba(0,0,0,.12); }
.manifesto-result { display: grid; grid-template-columns: 1fr 2fr; padding: 60px 6vw; align-items: end; }
.manifesto-result span { color: #777; font: 9px ui-monospace, monospace; letter-spacing: .13em; }
.manifesto-result p { margin: 0; max-width: 700px; font-size: clamp(2rem,4vw,4.3rem); line-height: 1; letter-spacing: -.055em; }

.products { padding: clamp(140px,18vw,260px) 0; background: #000; }
.products-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: start; margin-bottom: clamp(100px,13vw,180px); }
.products-heading > p:last-child { grid-column: 2; max-width: 570px; margin: 42px 0 0; color: #92929c; font-size: 18px; line-height: 1.55; }
.product-list { display: grid; gap: 100px; }
.product { --accent: #7a3cff; display: grid; grid-template-columns: minmax(300px,.8fr) minmax(480px,1.4fr); gap: 7vw; align-items: center; min-height: min(78vh,820px); padding: 70px 0; border-top: 1px solid var(--line); }
.product-meta { display: grid; grid-template-columns: 44px 1fr 1fr; color: #73737f; font: 9px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.product-meta span:last-child { color: var(--accent); }
.product-copy h3 { margin: 75px 0 18px; font-size: clamp(4rem,8vw,8.5rem); font-weight: 450; line-height: .82; letter-spacing: -.08em; }
.product-short { max-width: 550px; margin: 0; font-size: clamp(1.4rem,2.4vw,2.5rem); line-height: 1.12; letter-spacing: -.04em; }
.product-description { max-width: 510px; margin: 28px 0 42px; color: #898994; line-height: 1.6; }
.product-link { display: inline-flex; align-items: center; justify-content: space-between; width: min(100%,280px); padding: 16px 0; border-bottom: 1px solid #555; font-size: 13px; transition: border-color 220ms ease, color 220ms ease; }
.product-link:hover { color: var(--accent); border-color: var(--accent); }
.product-visual { aspect-ratio: 1.26; min-height: 440px; display: flex; flex-direction: column; position: relative; overflow: hidden; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 16%, #08080c), #050507 60%); border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent); box-shadow: 0 45px 100px color-mix(in srgb, var(--accent) 11%, transparent); }
.product-visual::before { content: ""; 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: 54px 54px; mask-image: linear-gradient(135deg, black, transparent 70%); }
.screen-top, .screen-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; color: #868693; font: 8px ui-monospace, monospace; letter-spacing: .13em; border-bottom: 1px solid rgba(255,255,255,.1); }
.screen-top i { width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.screen-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 0; }
.library-ui { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; align-items: end; padding: 8%; }
.album { aspect-ratio: 1; background: linear-gradient(145deg, var(--accent), #111 62%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.album.large { grid-row: span 2; }
.library-ui > div { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 8px; }
.library-ui b { font-size: 16px; }.library-ui small { color: #7d7d88; font: 9px ui-monospace, monospace; }
.ledger-ui { position: relative; z-index: 1; flex: 1; padding: 11% 9%; display: flex; flex-direction: column; justify-content: center; }
.ledger-ui small { color: #777782; font: 9px ui-monospace, monospace; letter-spacing: .12em; }
.ledger-ui strong { margin: 16px 0 55px; font-size: clamp(2.6rem,5vw,5.8rem); font-weight: 450; letter-spacing: -.065em; }
.ledger-line { height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.ledger-bars { height: 100px; display: flex; align-items: end; gap: 8%; padding-top: 20px; }
.ledger-bars i { flex: 1; height: 25%; background: var(--accent); opacity: .3; }.ledger-bars i:nth-child(2) { height: 48%; }.ledger-bars i:nth-child(3) { height: 38%; }.ledger-bars i:nth-child(4) { height: 76%; opacity: .65; }.ledger-bars i:nth-child(5) { height: 60%; }.ledger-bars i:nth-child(6) { height: 88%; opacity: .85; }.ledger-bars i:nth-child(7) { height: 70%; }
.signal-ui { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 8%; }
.signal-ring { width: min(24vw,230px); aspect-ratio: 1; display: grid; place-content: center; text-align: center; border: 1px solid color-mix(in srgb, var(--accent) 80%, transparent); border-radius: 50%; box-shadow: 0 0 70px color-mix(in srgb, var(--accent) 13%, transparent), inset 0 0 0 24px rgba(255,255,255,.015); }
.signal-ring span { font-size: clamp(3rem,6vw,6rem); letter-spacing: -.08em; }.signal-ring small { color: var(--accent); font: 9px ui-monospace, monospace; }
.signal-readout { display: flex; flex-direction: column; gap: 16px; padding-left: 12%; border-left: 1px solid rgba(255,255,255,.12); }
.signal-readout b { font-size: 18px; }.signal-readout span { color: #7b7b87; font: 9px ui-monospace, monospace; letter-spacing: .08em; }

.build { padding: clamp(140px,18vw,260px) 0; background: var(--depth); }
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; }
.build-heading { position: sticky; top: 80px; align-self: start; }
.build-heading h2 { max-width: 630px; }
.mini-diagram { display: flex; align-items: center; margin-top: 90px; color: #9d9daa; font: 9px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.mini-diagram span { border: 1px solid rgba(255,255,255,.2); padding: 13px 16px; }
.mini-diagram i { width: 44px; height: 1px; background: rgba(255,255,255,.3); }
.build-notes article { display: grid; grid-template-columns: 52px 1fr; padding: 44px 0 60px; border-top: 1px solid rgba(255,255,255,.14); }
.build-notes article > span { color: #737385; font: 9px ui-monospace, monospace; }
.build-notes h3 { margin: 0; font-size: clamp(1.7rem,3vw,3rem); font-weight: 450; letter-spacing: -.045em; }
.build-notes p { grid-column: 2; max-width: 520px; margin: 22px 0 0; color: #9696a8; line-height: 1.55; }

.lab { padding: clamp(140px,17vw,240px) 0; background: #050508; }
.lab-head { display: grid; grid-template-columns: 1.5fr .6fr; gap: 7vw; align-items: end; }
.lab-head > p { margin: 0 0 8px; color: #8b8b96; line-height: 1.6; }
.lab-log { margin-top: 110px; border-top: 1px solid var(--line); }
.log-row { display: grid; grid-template-columns: 110px 1fr 160px 120px; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); color: #c1c1c7; font-size: 13px; }
.log-head { color: #64646e; font: 9px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.log-row .live { color: #a879ff; }.log-row .live::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: #9b6bff; }

.final { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(120px,15vw,220px); background: radial-gradient(circle at 82% 36%, rgba(122,60,255,.15), transparent 26%), #000; overflow: hidden; }
.final::after { content: ""; position: absolute; width: 60vw; height: 60vw; right: -24vw; top: 6%; border: 1px solid rgba(122,60,255,.2); transform: rotate(27deg); }
.final-inner, .final-mark { position: relative; z-index: 1; }
.final h2 { margin: 0; font-size: clamp(4rem,10vw,10rem); line-height: .86; font-weight: 450; letter-spacing: -.075em; }
.final h2 em { font-style: normal; color: #9f75ff; }
.final-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 70px 0 100px; }
.final-lower > p { max-width: 470px; margin: 0; color: #9b9ba5; font-size: 18px; line-height: 1.55; }
.final-lower nav { display: grid; }
.final-lower a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; transition: color 220ms ease, padding 220ms ease; }
.final-lower a:hover { color: #a879ff; padding-left: 7px; }
.final-mark { min-height: 100px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); }
.final-mark img { width: 22px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }.final-mark span { text-align: center; font-size: 13px; }.final-mark small { text-align: right; color: #666; font: 9px ui-monospace, monospace; }

@media (max-width: 900px) {
  .principle { grid-template-columns: 42px 1fr; }.principle p { grid-column: 2; }
  .manifesto-head, .products-heading, .manifesto-result, .build-grid, .lab-head { grid-template-columns: 1fr; }
  .manifesto-head h2, .products-heading h2 { margin-top: 24px; }
  .products-heading > p:last-child { grid-column: auto; }
  .product { grid-template-columns: 1fr; min-height: auto; gap: 56px; }
  .product-copy h3 { margin-top: 52px; }
  .product-visual { min-height: 380px; }
  .build-heading { position: static; margin-bottom: 80px; }
  .lab-head > p { margin-top: 34px; max-width: 600px; }
  .log-row { grid-template-columns: 90px 1fr 110px; }.log-row span:last-child { display: none; }
}
@media (max-width: 600px) {
  .philosophy-intro { padding-bottom: 110px; }
  .principle { padding: 30px 0; }.principle h3 { font-size: 1.85rem; }
  .manifesto { padding-block: 120px; }
  .core-path { padding: 52px 20px; min-height: 170px; }.core-path span { width: 74px; font-size: 11px; }.core-path i { margin: 0 7px; }
  .removed span { flex-basis: 50%; padding: 16px 12px; }
  .manifesto-result { padding: 38px 20px; gap: 28px; }
  .products { padding-block: 120px; }.product-list { gap: 48px; }.product { padding: 52px 0; }
  .product-meta { grid-template-columns: 32px 1fr; row-gap: 10px; }.product-meta span:last-child { grid-column: 2; }
  .product-copy h3 { font-size: 4.6rem; }.product-description { font-size: 15px; }
  .product-visual { min-height: 310px; aspect-ratio: .92; }.screen-top, .screen-foot { padding: 16px; }
  .library-ui { grid-template-columns: 1.5fr 1fr; }.library-ui > div { grid-column: 1 / 3; }.library-ui .album:nth-child(3) { display: none; }
  .ledger-ui strong { margin-bottom: 38px; font-size: 3rem; }
  .signal-ui { grid-template-columns: 1fr; gap: 24px; }.signal-ring { width: 150px; margin: auto; }.signal-readout { padding-left: 0; border: 0; }
  .build { padding-block: 120px; }.mini-diagram { margin-top: 55px; }.mini-diagram span { padding: 10px 8px; }.mini-diagram i { width: 20px; }
  .build-notes article { grid-template-columns: 34px 1fr; }.build-notes h3 { font-size: 1.8rem; }
  .lab { padding-block: 120px; }.lab-log { margin-top: 70px; }.log-row { grid-template-columns: 72px 1fr; font-size: 11px; }.log-row span:nth-child(3) { display: none; }
  .final-lower { grid-template-columns: 1fr; padding-bottom: 70px; }.final-mark { grid-template-columns: auto 1fr; gap: 20px; }.final-mark span { text-align: left; }.final-mark small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-enhanced) [data-reveal] { opacity: 1; transform: none; }
  html:not(.motion-enhanced) .hero-field::after { display: none; }
}

/* Product detail */
.detail { min-height: 100vh; background: radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 25%), #000; }
.detail-hero { padding: clamp(110px,14vw,210px) 0 100px; }
.detail-meta { display: flex; gap: 30px; color: #888894; font: 9px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.detail-meta span:nth-child(2) { color: var(--accent); }
.detail-hero h1 { margin: 54px 0 35px; font-size: clamp(5rem,14vw,14rem); line-height: .76; }
.detail-hero > p { max-width: 780px; margin: 0 0 0 8vw; color: #b9b9c2; font-size: clamp(1.6rem,3vw,3.4rem); line-height: 1.1; letter-spacing: -.045em; }
.detail-body { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: start; padding-bottom: clamp(130px,17vw,240px); }
.detail-body .product-visual { min-height: 520px; }
.detail-copy { padding-top: 70px; }
.detail-copy h2 { margin: 0 0 30px; font-size: clamp(2.5rem,4vw,4.5rem); line-height: .95; letter-spacing: -.055em; font-weight: 450; }
.detail-copy > p:not(.section-index) { color: #9797a3; line-height: 1.65; }
.detail-facts { display: grid; margin: 50px 0; border-top: 1px solid var(--line); }
.detail-facts span { padding: 16px 0; border-bottom: 1px solid var(--line); color: #c1c1c8; font-size: 13px; }
.detail-copy .button { width: 100%; }
.detail-footer { min-height: 110px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); font-size: 12px; }
.detail-footer strong { text-align: center; font-weight: 500; }.detail-footer a { text-align: right; color: #888; }
@media (max-width: 850px) {
  .detail-body { grid-template-columns: 1fr; }.detail-hero > p { margin-left: 0; }.detail-body .product-visual { min-height: 380px; }.detail-copy { padding-top: 0; }
}
@media (max-width: 560px) {
  .detail-meta { flex-wrap: wrap; gap: 10px 20px; }.detail-hero h1 { font-size: 5rem; }.detail-body .product-visual { min-height: 320px; }.detail-footer { grid-template-columns: 1fr 1fr; }.detail-footer strong { display: none; }
}

/* Motion system v2 */
.nav.shell {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 50%;
  width: min(calc(100% - 64px), 1440px);
  transform: translateX(-50%);
  padding-inline: 0;
  background: rgba(0,0,0,0);
  border: 0;
  border-bottom: 1px solid var(--line);
  transition: top 450ms cubic-bezier(.2,.8,.2,1), width 450ms cubic-bezier(.2,.8,.2,1), height 450ms cubic-bezier(.2,.8,.2,1), padding 450ms cubic-bezier(.2,.8,.2,1), background 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}
.nav.shell.is-scrolled {
  top: 14px;
  width: min(calc(100% - 32px), 1480px);
  height: 70px;
  padding-inline: 22px;
  background: rgba(4,4,8,.76);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(18px) saturate(125%);
}
.nav-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: calc(var(--page-progress, 0) * 100%); background: linear-gradient(90deg, var(--purple), var(--magenta)); box-shadow: 0 0 14px rgba(122,60,255,.7); transition: width 80ms linear; }
.nav-links { height: 100%; }
.nav-links a { position: relative; display: inline-flex; align-items: center; height: 100%; transition: color 220ms ease, transform 320ms cubic-bezier(.2,.8,.2,1); }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 1px; background: #9a6cff; transform: translateX(-50%); transition: width 350ms cubic-bezier(.2,.8,.2,1); }
.nav-links a.is-active { color: #fff; }.nav-links a.is-active::after { width: 100%; }
.motion-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0 0 0 22px; background: transparent; color: #6f6f7b; font: 500 9px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: color 220ms ease, transform 320ms cubic-bezier(.2,.8,.2,1); }
.motion-toggle span { color: #b18aff; }.motion-toggle:hover { color: #fff; }

.motion-enhanced [data-reveal] {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0,42px,0) scale(.982);
  transition: opacity 760ms cubic-bezier(.2,.8,.2,1), transform 920ms cubic-bezier(.2,.8,.2,1), filter 720ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.motion-enhanced [data-reveal][data-exit="above"] { transform: translate3d(0,-42px,0) scale(.985); }
.motion-enhanced [data-reveal].is-visible { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) scale(1); }
.motion-enhanced [data-reveal] > * { opacity: .28; transform: translateY(24px); transition: opacity 650ms ease, transform 850ms cubic-bezier(.2,.8,.2,1); }
.motion-enhanced [data-reveal].is-visible > * { opacity: 1; transform: translateY(0); }
.motion-enhanced [data-reveal].is-visible > *:nth-child(2) { transition-delay: 80ms; }
.motion-enhanced [data-reveal].is-visible > *:nth-child(3) { transition-delay: 150ms; }
.motion-enhanced [data-reveal].is-visible > *:nth-child(4) { transition-delay: 220ms; }
.motion-off [data-reveal], .motion-off [data-reveal] > * { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }

.hero-content { transform: translate3d(0,var(--hero-shift,0),0) scale(var(--hero-scale,1)); opacity: var(--hero-opacity,1); transform-origin: 50% 45%; transition: opacity 80ms linear; will-change: transform, opacity; }
.field-line-a { transform: rotate(calc(-12deg + var(--field-rotate,0deg))); }
.field-line-b { transform: rotate(calc(18deg - var(--field-rotate,0deg))); }
.field-node { animation: node-pulse 3.2s ease-in-out infinite; }
.node-b { animation-delay: -1.6s; }
@keyframes node-pulse { 0%,100% { opacity: .55; box-shadow: 0 0 8px rgba(122,60,255,.3); } 50% { opacity: 1; box-shadow: 0 0 28px rgba(122,60,255,.8); } }

.dependency-map { overflow: hidden; }
.dependency-map .core-path span { transform: scale(.72); opacity: 0; transition: transform 800ms cubic-bezier(.16,1,.3,1), opacity 500ms ease; }
.dependency-map .core-path i { transform: scaleX(0); transform-origin: left; transition: transform 900ms cubic-bezier(.16,1,.3,1) 180ms; }
.dependency-map .removed span { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 650ms cubic-bezier(.2,.8,.2,1); }
.dependency-map.is-visible .core-path span { transform: scale(1); opacity: 1; }
.dependency-map.is-visible .core-path span:nth-of-type(2) { transition-delay: 180ms; }.dependency-map.is-visible .core-path span:nth-of-type(3) { transition-delay: 360ms; }
.dependency-map.is-visible .core-path i { transform: scaleX(1); }
.dependency-map.is-visible .removed span { opacity: 1; transform: translateY(0); }
.dependency-map.is-visible .removed span:nth-child(2) { transition-delay: 90ms; }.dependency-map.is-visible .removed span:nth-child(3) { transition-delay: 180ms; }.dependency-map.is-visible .removed span:nth-child(4) { transition-delay: 270ms; }.dependency-map.is-visible .removed span:nth-child(5) { transition-delay: 360ms; }

.product-visual { --tilt-x: 0deg; --tilt-y: 0deg; --glow-x: 50%; --glow-y: 50%; transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0,var(--scene-y,0),0); transform-style: preserve-3d; transition: transform 260ms cubic-bezier(.2,.8,.2,1), border-color 350ms ease, box-shadow 350ms ease; }
.product-visual::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .5; background: radial-gradient(340px circle at var(--glow-x) var(--glow-y), color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); transition: opacity 300ms ease; }
.product-visual:hover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 55px 130px color-mix(in srgb, var(--accent) 18%, transparent); }
.product-visual:hover::after { opacity: .9; }
.ledger-bars i { transform-origin: bottom; animation: ledger-breathe 3.8s ease-in-out infinite alternate; }
.ledger-bars i:nth-child(2) { animation-delay: -.4s; }.ledger-bars i:nth-child(3) { animation-delay: -.8s; }.ledger-bars i:nth-child(4) { animation-delay: -1.2s; }.ledger-bars i:nth-child(5) { animation-delay: -1.6s; }.ledger-bars i:nth-child(6) { animation-delay: -2s; }.ledger-bars i:nth-child(7) { animation-delay: -2.4s; }
@keyframes ledger-breathe { from { transform: scaleY(.84); filter: brightness(.8); } to { transform: scaleY(1.06); filter: brightness(1.25); } }
.ledger-line { position: relative; overflow: visible; }
.ledger-line::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); animation: scan-ledger 4.8s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes scan-ledger { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }

.cursor-layer { display: none; }
@media (pointer: fine) {
  html:not(.motion-off), html:not(.motion-off) body, html:not(.motion-off) a, html:not(.motion-off) button { cursor: none; }
  .cursor-layer { display: block; position: fixed; inset: 0; z-index: 999; pointer-events: none; }
  .cursor-dot, .cursor-ring, .cursor-aura { position: absolute; left: 0; top: 0; border-radius: 50%; opacity: 0; will-change: transform; }
  .cursor-dot { width: 5px; height: 5px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.8); transition: width 220ms ease, height 220ms ease, background 220ms ease, opacity 180ms ease; }
  .cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(175,137,255,.7); transition: width 260ms cubic-bezier(.2,.8,.2,1), height 260ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, opacity 180ms ease; }
  .cursor-aura { width: 360px; height: 360px; z-index: -1; background: radial-gradient(circle, rgba(122,60,255,.095), rgba(122,60,255,.025) 42%, transparent 72%); transition: opacity 350ms ease; }
  .cursor-ready .cursor-dot, .cursor-ready .cursor-ring { opacity: 1; }.cursor-ready .cursor-aura { opacity: .75; }
  .cursor-hover .cursor-ring { width: 62px; height: 62px; border-color: rgba(255,255,255,.86); }.cursor-hover .cursor-dot { width: 8px; height: 8px; background: #a77cff; }
  .motion-off .cursor-layer { display: none; }
}

@media (max-width: 760px) {
  .nav.shell, .nav.shell.is-scrolled { width: calc(100% - 24px); top: 10px; height: 66px; padding-inline: 14px; background: rgba(3,3,7,.78); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); }
  .brand span { display: none; }
  .site-nav .nav-links a:not(:last-of-type) { display: none; }
  .detail .nav-links a { display: inline-flex; }
  .motion-toggle { padding-left: 8px; }
  .product-visual { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-enhanced), html:not(.motion-enhanced) body { scroll-behavior: auto; }
}

/* CMS-driven project showcase */
.cms-lines { white-space: pre-line; }
.showcase-section { padding: clamp(140px,18vw,260px) 0; background: linear-gradient(180deg,#000,#05040a 48%,#000); }
.showcase-heading { display: grid; grid-template-columns: 1fr 2fr; align-items: start; margin-bottom: clamp(100px,13vw,180px); }
.showcase-heading h2 { margin: 0; font-size: clamp(3.3rem,7vw,7.5rem); font-weight: 450; line-height: .92; letter-spacing: -.065em; }
.showcase-heading > p:last-child { grid-column: 2; max-width: 620px; margin: 42px 0 0; color: #92929c; font-size: 18px; line-height: 1.55; }
.showcase-list { display: grid; gap: clamp(100px,12vw,180px); }
.showcase-card { --accent: #7a3cff; display: grid; grid-template-columns: minmax(300px,.72fr) minmax(500px,1.28fr); gap: 7vw; align-items: center; min-height: min(82vh,880px); padding-top: 70px; border-top: 1px solid var(--line); }
.project-meta { display: grid; grid-template-columns: 42px 1fr 1fr; color: #73737f; font: 9px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.project-meta span:last-child { color: var(--accent); }
.showcase-copy h3 { margin: 72px 0 22px; font-size: clamp(4rem,8vw,8.7rem); font-weight: 450; line-height: .82; letter-spacing: -.08em; }
.showcase-summary { max-width: 600px; margin: 0 0 24px; color: #fff !important; font-size: clamp(1.45rem,2.5vw,2.6rem); line-height: 1.12 !important; letter-spacing: -.04em; }
.showcase-copy > p { max-width: 520px; color: #898994; line-height: 1.65; }
.showcase-actions { display: flex; align-items: center; gap: 28px; margin-top: 45px; }
.showcase-visual { --tilt-x: 0deg; --tilt-y: 0deg; --glow-x: 50%; --glow-y: 50%; position: relative; min-height: 560px; aspect-ratio: 1.15; overflow: hidden; display: flex; background: radial-gradient(circle at var(--glow-x) var(--glow-y),color-mix(in srgb,var(--accent) 25%,transparent),transparent 45%),linear-gradient(145deg,color-mix(in srgb,var(--accent) 12%,#0a0a0d),#050507); border: 1px solid color-mix(in srgb,var(--accent) 38%,transparent); box-shadow: 0 45px 120px color-mix(in srgb,var(--accent) 13%,transparent); transform: perspective(1300px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0,var(--scene-y,0),0); transition: transform 280ms cubic-bezier(.2,.8,.2,1),border-color 300ms ease,box-shadow 300ms ease; }
.showcase-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(145deg,black,transparent 70%); pointer-events: none; }
.showcase-visual:hover { border-color: color-mix(in srgb,var(--accent) 72%,transparent); box-shadow: 0 60px 150px color-mix(in srgb,var(--accent) 22%,transparent); }
.showcase-visual > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform 800ms cubic-bezier(.2,.8,.2,1),filter 500ms ease; }
.showcase-visual:hover > img { transform: scale(1.035); filter: saturate(1.08); }
.showcase-placeholder { margin: auto; position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; }
.showcase-placeholder img { width: 72px; height: 92px; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; }
.showcase-placeholder span { margin-top: 40px; font-size: clamp(3rem,6vw,6.5rem); letter-spacing: -.07em; }
.showcase-placeholder small { margin-top: 12px; color: #858590; font: 9px ui-monospace,monospace; letter-spacing: .12em; text-transform: uppercase; }
.showcase-overlay { position: absolute; z-index: 3; inset: auto 0 0; display: flex; justify-content: space-between; padding: 20px 24px; color: #aaaab3; background: linear-gradient(transparent,rgba(0,0,0,.82)); font: 9px ui-monospace,monospace; letter-spacing: .1em; text-transform: uppercase; }

/* Public project detail */
.project-detail { min-height: 100vh; background: radial-gradient(circle at 78% 20%,color-mix(in srgb,var(--accent) 17%,transparent),transparent 25%),#000; }
.project-detail-hero { min-height: 92svh; padding-top: clamp(170px,18vw,280px); display: flex; flex-direction: column; justify-content: center; }
.project-detail-meta { display: flex; gap: 30px; color: #858590; font: 9px ui-monospace,monospace; letter-spacing: .12em; text-transform: uppercase; }
.project-detail-meta span:last-child { color: var(--accent); }
.project-detail-hero h1 { margin: 55px 0 38px; font-size: clamp(5rem,13vw,13rem); }
.project-detail-hero > p { max-width: 860px; margin: 0 0 0 8vw; color: #b8b8c1; font-size: clamp(1.6rem,3vw,3.4rem); line-height: 1.1; letter-spacing: -.045em; }
.project-detail-image { position: relative; min-height: min(76vw,940px); margin-bottom: clamp(120px,16vw,230px); overflow: hidden; border: 1px solid color-mix(in srgb,var(--accent) 35%,transparent); background: #08080b; transform: translate3d(0,var(--scene-y,0),0); }
.project-detail-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.project-detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: start; padding-bottom: clamp(130px,17vw,240px); }
.project-detail-body h2 { margin: 25px 0 0; font-size: clamp(3rem,6vw,6.7rem); line-height: .92; letter-spacing: -.06em; font-weight: 450; }
.project-detail-copy > p { margin: 0; white-space: pre-line; color: #a1a1ab; font-size: 18px; line-height: 1.72; }
.project-actions { display: flex; align-items: center; gap: 28px; margin-top: 55px; }

@media (max-width: 900px) {
  .showcase-heading,.showcase-card,.project-detail-body { grid-template-columns: 1fr; }
  .showcase-heading > p:last-child { grid-column: auto; }.showcase-heading h2 { margin-top: 24px; }
  .showcase-card { min-height: auto; gap: 60px; }.showcase-visual { min-height: 460px; }
  .project-detail-hero > p { margin-left: 0; }.project-detail-body { gap: 65px; }
}
@media (max-width: 600px) {
  .showcase-section { padding-block: 120px; }.showcase-list { gap: 80px; }.showcase-card { padding-top: 48px; }
  .project-meta { grid-template-columns: 34px 1fr; row-gap: 10px; }.project-meta span:last-child { grid-column: 2; }
  .showcase-copy h3 { margin-top: 50px; font-size: 4.7rem; }.showcase-actions,.project-actions { align-items: stretch; flex-direction: column; }.showcase-actions .product-link { width: 100%; }
  .showcase-visual { min-height: 390px; aspect-ratio: .9; transform: none; }.showcase-overlay { padding: 16px; }
  .project-detail-hero { min-height: 82svh; }.project-detail-hero h1 { font-size: 5rem; }.project-detail-image { min-height: 115vw; }
}
