/* Kage — kage.black */
:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --card: #111113;
  --card-2: #151517;
  --line: rgba(239, 236, 230, .085);
  --line-2: rgba(239, 236, 230, .15);
  --ink: #efece6;
  --ink-2: rgba(239, 236, 230, .78);
  --muted: rgba(239, 236, 230, .56);
  --faint: rgba(239, 236, 230, .34);
  --seal: #e2491f;
  --seal-2: #ff6a2b;
  --ok: #5fbf8b;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(16px, 3.4vw, 44px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
::selection { background: var(--seal); color: #fff; }
:focus-visible { outline: 2px solid var(--seal-2); outline-offset: 3px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; font-family: var(--mono); font-size: 12px; }
.skip:focus { top: 12px; }
.dim { color: var(--faint); }

[data-d="1"] { --d: 1; } [data-d="2"] { --d: 2; } [data-d="3"] { --d: 3; } [data-d="4"] { --d: 4; }
[data-d="5"] { --d: 5; } [data-d="6"] { --d: 6; } [data-d="7"] { --d: 7; } [data-d="8"] { --d: 8; }

/* progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--seal-2); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 22px var(--gut); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff4ec;
  transition: transform .6s var(--ease-out), background-color .4s, padding .4s var(--ease-out), border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10, 10, 11, .72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); padding-top: 14px; padding-bottom: 14px; border-color: var(--line); color: var(--ink); }
.nav.hidden { transform: translateY(-110%); }
.brand { font-family: var(--display); font-weight: 800; font-stretch: 100%; font-size: 21px; letter-spacing: -.01em; display: inline-flex; align-items: flex-start; gap: 4px; justify-self: start; }
.brand-k { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 10px; letter-spacing: 0; line-height: 1; margin-top: 2px; color: var(--seal-2); }
.nav:not(.scrolled) .brand-k { color: #fff4ec; opacity: .8; }
.nav-links { display: flex; gap: clamp(22px, 5vw, 92px); }
.nav-links a { position: relative; opacity: .82; transition: opacity .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-clock { justify-self: end; font-variant-numeric: tabular-nums; }
.nav-clock .dim { color: inherit; opacity: .6; }

/* intro (page load) */
.intro { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + 200ms); }
.loaded .intro { opacity: 1; transform: none; }
.nav { opacity: 0; }
.loaded .nav { opacity: 1; transition: transform .6s var(--ease-out), background-color .4s, padding .4s var(--ease-out), border-color .4s, opacity 1s .5s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; color: #fff4ec;
  background:
    radial-gradient(60% 55% at 14% 92%, rgba(34, 52, 112, .55), transparent 70%),
    radial-gradient(85% 75% at 68% 34%, #ff7a32 0%, #ec5420 30%, #c63a17 58%, #6e1d0b 86%, #2a0b05 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 5, .28) 60%, rgba(10, 6, 5, .5)); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.arcs circle { fill: none; stroke: rgba(255, 238, 226, .2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2400 600; }
.arcs g { transform-box: view-box; }
.arc-a { transform-origin: 1180px 520px; animation: spin 140s linear infinite; }
.arc-b { transform-origin: 360px 1180px; animation: spin 180s linear infinite reverse; }
.arc-c { transform-origin: 1500px -120px; animation: spin 120s linear infinite; }
.arcs g { opacity: 0; transition: opacity 2s .6s; }
.loaded .arcs g { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.kanji { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; will-change: transform; }
.grain { position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

.hero-mid { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 0 var(--gut); margin-bottom: clamp(10px, 2vw, 26px);
  font-family: var(--mono); font-size: clamp(11px, 1vw, 13px); letter-spacing: .07em; text-transform: uppercase; line-height: 1.75; }
.hero-mail { transition: color .3s; white-space: nowrap; }
.hero-mail:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero-tag { text-align: right; }
.hero-tag .ln { display: block; overflow: hidden; }
.hero-tag .ln > span { display: inline-block; white-space: nowrap; }

.wordmark { position: relative; z-index: 2; padding: 0 var(--gut); margin-bottom: -.165em; font-family: var(--display); font-weight: 850; font-stretch: 100%;
  font-size: 27vw; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; color: #fff6ef; will-change: transform; }
.wm { display: flex; justify-content: space-between; }
.wm > span { display: inline-block; transform: translateY(105%); transition: transform 1.5s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + 150ms); }
.loaded .wm > span { transform: none; }

/* ---------- ticker ---------- */
.ticker { position: relative; z-index: 3; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); padding: 15px 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticker-track { display: flex; width: max-content; gap: 26px; align-items: center; animation: tick 46s linear infinite; }
.ticker-track i { font-style: normal; color: var(--seal-2); font-size: 10px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(80px, 11vw, 150px) var(--gut) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px dashed var(--line-2); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.label { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.label::before { content: ""; width: 2px; height: 13px; background: var(--seal-2); }
.sec-meta { color: var(--faint); }
.sec-meta::before { content: "◦ "; color: var(--faint); }

.headline { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(40px, 6.6vw, 104px); line-height: .92; letter-spacing: -.012em; max-width: 14ch; margin-bottom: clamp(36px, 5vw, 64px); }
.headline-xl { font-size: clamp(52px, 10vw, 168px); max-width: none; }

/* word-split reveal (headlines) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.split .w > span { display: inline-block; transform: translateY(102%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.split.in .w > span { transform: none; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- about ---------- */
.about-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.statement { grid-column: 2; font-family: var(--display); font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(30px, 3.7vw, 58px); line-height: 1.03; letter-spacing: -.004em; }
.statement .sw { color: rgba(239, 236, 230, .16); transition: color .5s; }
.statement .sw.on { color: var(--ink); }
.statement .sw.hl.on { color: var(--seal-2); }

.about-low { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(60px, 8vw, 110px); align-items: start; }
.plate { position: relative; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 60% at 20% 18%, rgba(48, 82, 170, .55), transparent 65%),
    radial-gradient(90% 80% at 80% 90%, #ff6a2b, #c93c18 45%, #3a0f07 100%); }
.plate-glyph { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 700; font-size: min(78vw, 300px); line-height: 1; color: #0c0706; opacity: .9; transform: translateY(var(--py, 0)); }
.plate-scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; z-index: 1; background: linear-gradient(180deg, transparent, rgba(255, 236, 220, .14) 85%, rgba(255, 236, 220, .5) 100%); animation: scan 5.5s var(--ease-io) infinite; mix-blend-mode: screen; }
@keyframes scan { 0% { top: -30%; } 70%, 100% { top: 100%; } }
.plate span { position: absolute; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 244, 236, .86); line-height: 1.6; }
.plate-tl { left: 16px; top: 14px; } .plate-tr { right: 16px; top: 14px; } .plate-bl { left: 16px; bottom: 14px; }
.plate::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 244, 236, .16); pointer-events: none; }

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.kicker-strong { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; margin-bottom: 30px; }
.about-text .body { color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); max-width: 60ch; }
.about-text .body + .body { margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); }
.facts div { padding: 18px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin-top: 6px; font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: 19px; text-transform: uppercase; line-height: 1.15; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); padding: 16px; transition: border-color .4s, background-color .4s, transform .6s var(--ease-out); }
.card::before { content: ""; position: absolute; inset: -1px; border: 1px solid var(--seal-2); opacity: 0; transition: opacity .4s; pointer-events: none; clip-path: inset(0 100% 100% 0); }
.card:hover { background: var(--card-2); }
.card:hover::before { opacity: 1; clip-path: inset(0 0 0 0); transition: opacity .2s, clip-path .9s var(--ease-out); }
.card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.badge { width: 40px; height: 40px; display: grid; place-items: center; background: linear-gradient(140deg, #ff7a32, #b8330f); color: #fff6ef; font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 15px; letter-spacing: .01em; }
.badge svg { width: 22px; height: 22px; fill: none; stroke: #fff6ef; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.card h3 { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; }
.mono-s { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.score { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; align-self: start; white-space: nowrap; }
.score i { font-style: normal; color: var(--seal-2); }
.card-quote { margin-top: 16px; padding: 18px; border: 1px solid var(--line); background: var(--bg-2); font-family: var(--display); font-weight: 700; font-stretch: 80%; text-transform: uppercase; font-size: 16px; line-height: 1.32; letter-spacing: .005em; color: var(--ink-2); min-height: 108px; }

.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card-degree { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: stretch; padding: 20px;
  background: linear-gradient(120deg, rgba(226, 73, 31, .12), transparent 50%), var(--card); }
.card-degree .card-top { align-self: start; }
.card-degree .card-quote { margin-top: 0; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.02; color: var(--ink); display: flex; align-items: flex-end; min-height: 0; }

/* ---------- capabilities ---------- */
.caps { border-top: 1px solid var(--line); }
.cap { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.cap::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); z-index: -1; background: var(--seal); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); }
.cap-code { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--seal-2); transition: color .4s; }
.cap h3 { font-family: var(--display); font-weight: 800; font-stretch: 76%; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 50px); line-height: .95; transition: transform .6s var(--ease-out); }
.cap p { color: var(--muted); font-size: 15px; max-width: 46ch; transition: color .4s; }
.cap i { font-style: normal; font-size: 20px; justify-self: end; color: var(--faint); transition: transform .5s var(--ease-out), color .4s; }
@media (hover: hover) {
  .cap:hover::before { transform: scaleY(1); transform-origin: top; }
  .cap:hover .cap-code, .cap:hover p, .cap:hover i { color: #fff4ec; }
  .cap:hover h3 { transform: translateX(10px); }
  .cap:hover i { transform: rotate(45deg); }
}

/* ---------- work ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work { display: flex; flex-direction: column; }
.work-visual { position: relative; aspect-ratio: 5 / 4; overflow: hidden; isolation: isolate; border: 1px solid var(--line);
  background:
    radial-gradient(70% 70% at 82% 110%, rgba(255, 106, 43, .55), transparent 70%),
    radial-gradient(60% 50% at 0% 0%, rgba(48, 82, 170, .32), transparent 70%),
    #120c0a; transition: transform .9s var(--ease-out); }
.work-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); pointer-events: none; z-index: 2; }
.visual-tag { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); padding: 7px 12px; border: 1px solid rgba(255, 244, 236, .5); background: rgba(10, 10, 11, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff4ec; opacity: 0; transition: opacity .4s, transform .6s var(--ease-out); }
a.work:hover .visual-tag { opacity: 1; transform: translate(-50%, -50%) scale(1); }
a.work:hover .work-visual { transform: translateY(-4px); }
.work-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
a.work:hover .work-meta span:last-child { color: var(--seal-2); }
.live, .dev { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.live i, .dev i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
.dev i { background: var(--seal-2); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 191, 139, .55); } 70% { box-shadow: 0 0 0 7px rgba(95, 191, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 191, 139, 0); } }
.work h3 { margin-top: 10px; font-family: var(--display); font-weight: 800; font-stretch: 76%; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 36px); line-height: 1; }
.work p { margin-top: 8px; color: var(--muted); font-size: 14.5px; max-width: 44ch; }

.chart svg { position: absolute; inset: 22% 0 0 0; width: 100%; height: 78%; z-index: 1; }
.chart .gridlines line { stroke: rgba(255, 244, 236, .09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .draw { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s var(--ease-out) .3s; }
.chart .spark { fill: none; stroke: #fff4ec; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .area { fill: rgba(255, 106, 43, .22); }
.chart .spark-dot { fill: var(--seal-2); opacity: 0; transition: opacity .5s 2.3s; }
.work.in .draw { clip-path: inset(0 0 0 0); }
.work.in .spark-dot { opacity: 1; animation: blip 2s 2.8s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blip { 50% { transform: scale(1.8); opacity: .4; } }

.feed { -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.feed-track { position: absolute; left: 30px; right: 40%; top: 0; display: flex; flex-direction: column; gap: 14px; animation: feed 16s linear infinite; z-index: 1; }
.feed-track span { display: block; height: 9px; background: rgba(255, 244, 236, .16); width: 70%; position: relative; margin-left: 16px; }
.feed-track span::before { content: ""; position: absolute; left: -16px; top: 1.5px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 244, 236, .3); }
.feed-track span.hot { background: rgba(255, 106, 43, .5); }
.feed-track span.hot::before { background: var(--seal-2); }
.feed-track span:nth-child(8n+1) { width: 72%; } .feed-track span:nth-child(8n+2) { width: 54%; } .feed-track span:nth-child(8n+3) { width: 86%; } .feed-track span:nth-child(8n+4) { width: 40%; }
.feed-track span:nth-child(8n+5) { width: 64%; } .feed-track span:nth-child(8n+6) { width: 78%; } .feed-track span:nth-child(8n+7) { width: 48%; } .feed-track span:nth-child(8n) { width: 70%; }
@keyframes feed { to { transform: translateY(-50%); } }
.radar { position: absolute; right: 9%; top: 50%; width: 34%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(255, 244, 236, .25); z-index: 1;
  background: radial-gradient(circle, transparent 32%, rgba(255, 244, 236, .12) 33%, transparent 34%, transparent 64%, rgba(255, 244, 236, .12) 65%, transparent 66%); overflow: hidden; }
.radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 106, 43, .65), transparent 70deg); animation: spin 4s linear infinite; }

.swarm { display: grid; place-items: center; }
.swarm .core { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff4ec; box-shadow: 0 0 0 6px rgba(255, 244, 236, .12), 0 0 30px rgba(255, 106, 43, .8); z-index: 1; animation: core 2.6s ease-in-out infinite; }
@keyframes core { 50% { box-shadow: 0 0 0 12px rgba(255, 244, 236, .05), 0 0 40px rgba(255, 106, 43, .9); } }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 244, 236, .16); z-index: 1; }
.o1 { width: 38%; aspect-ratio: 1; animation: spin 9s linear infinite; }
.o2 { width: 66%; aspect-ratio: 1; animation: spin 16s linear infinite reverse; }
.orbit b { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; background: var(--seal-2); }
.o2 b { background: rgba(255, 244, 236, .75); width: 5px; height: 5px; margin: -2.5px; }
.orbit { container-type: inline-size; }
.o1 b:nth-child(n) { transform: rotate(calc(var(--k) * 60deg)) translateY(-50cqw); }
.o2 b:nth-child(n) { transform: rotate(calc(var(--k) * 36deg)) translateY(-50cqw); }
.orbit b:nth-child(1) { --k: 0; } .orbit b:nth-child(2) { --k: 1; } .orbit b:nth-child(3) { --k: 2; } .orbit b:nth-child(4) { --k: 3; } .orbit b:nth-child(5) { --k: 4; }
.orbit b:nth-child(6) { --k: 5; } .orbit b:nth-child(7) { --k: 6; } .orbit b:nth-child(8) { --k: 7; } .orbit b:nth-child(9) { --k: 8; } .orbit b:nth-child(10) { --k: 9; }

/* ---------- principles ---------- */
.rules { border-top: 1px solid var(--line); }
.rule { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(24px, 4vw, 60px); padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rule-n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--seal-2); grid-row: span 2; }
.rule h3 { font-family: var(--display); font-weight: 800; font-stretch: 76%; text-transform: uppercase; font-size: clamp(32px, 4.6vw, 72px); line-height: .94; }
.rule p { margin-top: 12px; color: var(--muted); max-width: 52ch; }

/* ---------- contact ---------- */
.contact .headline-xl { margin-bottom: clamp(40px, 5vw, 70px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr); gap: 12px; align-items: start; }
.contact-card { padding: 22px; display: flex; flex-direction: column; gap: 42px; min-height: 100%; }
.contact-lead { font-family: var(--display); font-weight: 700; font-stretch: 80%; text-transform: uppercase; font-size: 18px; line-height: 1.3; max-width: 30ch; }
.mail-row { display: flex; border: 1px solid var(--line-2); background: var(--bg); }
.mail { flex: 1; min-width: 0; padding: 13px 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.mail:hover { color: var(--ink); }
.copy { margin: 5px; padding: 0 14px; background: var(--seal); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: background-color .3s; }
.copy:hover { background: var(--seal-2); }

.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.menu a { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; background: var(--card); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  transition: background-color .3s, color .3s, border-color .3s; }
.menu a i { font-style: normal; color: var(--faint); transition: color .3s, transform .4s var(--ease-out); }
.menu a.on, .menu a:hover { background: var(--seal); border-color: var(--seal); color: #fff; }
.menu a.on i, .menu a:hover i { color: #fff; }
.menu a:hover i { transform: translateX(-3px); }

.contact-meta { display: grid; gap: 18px; padding-left: clamp(0px, 1.5vw, 20px); }
.contact-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.contact-meta dd { margin-top: 4px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); overflow-wrap: anywhere; }

.cta-wrap { display: flex; justify-content: center; margin-top: clamp(56px, 7vw, 96px); }
.cta { display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border: 1px solid var(--line-2); background: var(--card); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: background-color .4s, border-color .4s, transform .5s var(--ease-out); }
.cta i { font-style: normal; color: var(--seal-2); transition: transform .5s var(--ease-out), color .3s; }
.cta:hover { background: var(--seal); border-color: var(--seal); }
.cta:hover i { color: #fff; transform: translateX(4px); }
.cta span, .cta i { pointer-events: none; }

/* ---------- footer ---------- */
.foot { position: relative; margin-top: clamp(70px, 9vw, 120px); overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; padding: 22px var(--gut); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); flex-wrap: wrap; }
.foot-row a { transition: color .3s; } .foot-row a:hover { color: var(--seal-2); }
.foot-word { display: flex; justify-content: space-between; padding: 0 var(--gut); margin-bottom: -.2em; font-family: var(--display); font-weight: 850; font-stretch: 100%; font-size: 27vw; line-height: 1; letter-spacing: -.035em;
  color: transparent; background: linear-gradient(180deg, #19191b 20%, #0d0d0e 80%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.foot-word span { display: inline-block; transform: translateY(60%); opacity: 0; transition: transform 1.4s var(--ease-out), opacity 1s; transition-delay: calc(var(--i, 0) * 90ms); }
.foot.in .foot-word span { transform: none; opacity: 1; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; transition: opacity .4s, transform .5s var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (min-width: 761px) {
  .wordmark, .foot-word { font-stretch: 125%; letter-spacing: -.02em; }
}
@media (max-width: 1000px) {
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-degree { grid-column: span 2; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-meta { grid-column: span 2; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0 0; }
  .cap { grid-template-columns: 70px minmax(0, 1fr) 30px; }
  .cap p { grid-column: 2; grid-row: 2; }
  .cap i { grid-row: 1; grid-column: 3; }
}
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; padding-top: 16px; padding-bottom: 16px; }
  .nav-links { display: none; }
  .hero { min-height: 92svh; }
  .hero-mid { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .hero-tag { text-align: left; }
  .hero-tag .ln { display: inline; }
  .hero-tag .ln > span { display: inline; white-space: normal; }
  .about-top, .about-low, .rule { grid-template-columns: minmax(0, 1fr); }
  .statement { grid-column: 1; }
  .plate { aspect-ratio: 1; }
  .rule-n { grid-row: auto; margin-bottom: 10px; }
  .creds, .works, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .card-degree { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .card-degree .card-quote { min-height: 120px; }
  .contact-meta { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 16px; }
  .cap { grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 8px 14px; padding: 22px 0; }
  .foot-row { flex-direction: column; gap: 6px; }
  .card-quote { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .intro, .reveal, .nav { opacity: 1; transform: none; }
  .wm > span, .split .w > span, .foot-word span { transform: none; opacity: 1; }
  .grain { animation: none; }
  .statement .sw { color: var(--ink); }
}
