@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/serif-ext.woff2") format("woff2"); font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("/assets/fonts/serif-i-ext.woff2") format("woff2"); font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("/assets/fonts/serif-i.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/mono.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Noto Serif Devanagari"; src: url("/assets/fonts/deva.woff2") format("woff2"); font-display: swap; }
:root {
  --black: #050505; --carbon: #0f0f0f; --silver: #a7a7a3; --white: #f4f3ef; --line: rgb(244 243 239 / .16); --tungsten: #ffb36b;
  --gut: clamp(18px, 3vw, 44px);
  --anton: "Anton", Impact, "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font: 400 clamp(21px, 1.9vw, 28px)/1.3 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; }
::selection { background: var(--tungsten); color: #000; }
em { font-style: italic; color: var(--tungsten); }
.mono { font: 400 11px/1.55 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--silver); }
.big { font: 400 clamp(56px, 12.4vw, 216px)/.95 var(--anton); text-transform: uppercase; letter-spacing: -.005em; }
.statement { font: 400 clamp(38px, 6.2vw, 104px)/1.02 var(--serif); letter-spacing: -.02em; }
.wrap { padding-inline: var(--gut); }
.rv { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Grain, over everything, to keep it photographic ---------- */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Dock: contact is always one tap away ---------- */
.dock { position: fixed; z-index: 50; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: stretch; background: rgb(15 15 15 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.dock a, .dock button { display: flex; align-items: center; padding: 13px clamp(13px, 2vw, 22px); font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background .25s, color .25s; }
.dock > * + * { border-left: 1px solid var(--line); }
.dock a:hover, .dock button:hover { background: var(--white); color: #000; }
.dock .primary { background: var(--tungsten); color: #000; }
.toast { position: fixed; z-index: 55; left: 50%; bottom: 72px; transform: translate(-50%, 12px); padding: 9px 16px; border-radius: 99px; background: var(--white); color: #000; font: 400 11px var(--mono); letter-spacing: .06em; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hero: you hold the light ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; touch-action: pan-y; --x: 66%; --y: 40%; }
.face { position: absolute; top: -3%; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, #000 72%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-shadow { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .8) 0, rgb(0 0 0 / .25) 28%, transparent 36%, transparent 48%, rgb(0 0 0 / .92) 57%, #000 100%); }
.face-base { filter: grayscale(1) contrast(1.24) brightness(.66); animation: rise 2.6s ease both; }
@keyframes rise { from { opacity: 0; } }
.face-light { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(circle clamp(120px, 21vw, 340px) at var(--x) var(--y), #000 18%, rgb(0 0 0 / .55) 55%, transparent 100%); mask-image: radial-gradient(circle clamp(120px, 21vw, 340px) at var(--x) var(--y), #000 18%, rgb(0 0 0 / .55) 55%, transparent 100%); }
.face-light img { filter: contrast(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .78), transparent 42%); pointer-events: none; }
.hero-top { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); top: 20px; display: flex; justify-content: space-between; gap: 20px; }
.hero-top .mono { color: var(--white); }
.hero-text { position: absolute; z-index: 3; left: var(--gut); right: var(--gut); bottom: 74px; }
.meaning { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.meaning b { font: 300 clamp(30px, 3.4vw, 54px)/1.25 "Noto Serif Devanagari", serif; }
.meaning i { font: italic 400 clamp(24px, 2.6vw, 42px)/1 var(--serif); color: var(--tungsten); }
.hero h1 { font: 400 clamp(72px, 12.6vw, 250px)/.92 var(--anton); text-transform: uppercase; letter-spacing: -.005em; white-space: nowrap; margin-left: -.02em; }
.hero-roles { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-top: 10px; }
.hero-roles .mono { color: var(--white); }

/* ---------- The name: the bright half stays lit, the dark half waits for the visitor's light ---------- */
.meanings { display: flex; flex-wrap: wrap; gap: 2px 34px; }
.meaning.night b { color: var(--silver); }
.meaning.night i { color: var(--silver); }
.n-doshi { position: relative; display: inline-block; --dx: -999px; --dy: -999px; }
.n-doshi .o { color: transparent; -webkit-text-stroke: 1.5px rgb(244 243 239 / .62); }
.n-doshi .f { position: absolute; left: 0; top: 0; color: var(--white); -webkit-mask-image: radial-gradient(circle clamp(90px, 15vw, 230px) at var(--dx) var(--dy), #000 35%, transparent 100%); mask-image: radial-gradient(circle clamp(90px, 15vw, 230px) at var(--dx) var(--dy), #000 35%, transparent 100%); }

.dual { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; touch-action: pan-y; cursor: ew-resize; --split: 50%; }
.dual-layer { position: absolute; inset: 0; }
.dual-dark { background: #000; color: var(--white); }
.dual-light { background: var(--white); color: #000; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.dual-light .mono { color: #55554f; }
.dual-in { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.dual-word { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: var(--gut); text-align: center; }
.dual-word .mono { margin-bottom: clamp(26px, 5vh, 56px); }
.dual-word b { font: 300 clamp(82px, 15vw, 270px)/1.42 "Noto Serif Devanagari", serif; }
.dual-word i { font: italic 400 clamp(28px, 3.6vw, 60px)/1.1 var(--serif); }
.dual-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 1px; background: var(--tungsten); box-shadow: 0 0 26px 5px rgb(255 179 107 / .62); }
.dual-hint { position: absolute; left: 0; right: 0; bottom: 78px; text-align: center; color: #fff; mix-blend-mode: difference; transition: opacity .6s; }
.lamp { font: 400 clamp(25px, 2.9vw, 46px)/1.2 var(--serif); margin-top: clamp(34px, 4vw, 60px); color: var(--silver); }
@media (max-aspect-ratio: 1/1) {
  .dual-in { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .dual-word { padding-block: 10px; }
  .dual-word .mono { margin-bottom: 18px; }
  .dual-light { clip-path: inset(0 0 calc(100% - var(--split)) 0); }
  .dual-line { top: var(--split); bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .dual-hint { bottom: 70px; }
  .dual-word b { font-size: clamp(70px, 24vw, 170px); }
  .n-doshi .o { -webkit-text-stroke-width: 1px; }
}

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(100px, 15vw, 230px) var(--gut); }
.manifesto ol { list-style: none; margin: clamp(40px, 5vw, 70px) 0 0; padding: 0; }
.manifesto li a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: clamp(6px, 1vw, 14px) 0; border-top: 1px solid var(--line); transition: color .3s, padding .6s var(--ease); }
.manifesto li:last-child a { border-bottom: 1px solid var(--line); }
.manifesto li a:hover { color: var(--tungsten); padding-left: 18px; }
.manifesto .bio { max-width: 34em; margin-top: clamp(50px, 7vw, 100px); margin-left: auto; color: var(--silver); }
.manifesto .bio p + p { margin-top: 1em; }
.manifesto .bio strong { color: var(--white); font-weight: 400; }

/* ---------- Chapters ---------- */
.chapter-head { padding: clamp(70px, 9vw, 130px) var(--gut) clamp(34px, 4vw, 60px); border-top: 1px solid var(--line); display: grid; gap: 14px; }
.chapter-sub { max-width: 30em; color: var(--silver); }
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 880px); gap: 8px; padding: 0 var(--gut) 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #000; scroll-snap-align: center; }
.reel img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.72); transition: filter .8s ease, transform 1.6s var(--ease); }
.reel a:hover img, .reel a:focus-visible img { filter: none; transform: scale(1.02); }
.reel span { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; color: var(--white); }
.reel b { font: 400 clamp(26px, 3.4vw, 54px)/1 var(--anton); text-transform: uppercase; }
.more { padding: 18px var(--gut) 0; }
.link { display: inline-flex; gap: 10px; font: 400 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: color .25s, gap .4s var(--ease); }
.link:hover { color: var(--tungsten); gap: 18px; }
.link::after { content: "→"; }

.frames { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 0 var(--gut); }
.frames figure { position: relative; overflow: hidden; background: #000; }
.frames img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s ease; }
.frames figure:hover img { filter: none; }
.frames figure:nth-child(1) { grid-column: span 7; aspect-ratio: 3 / 2; }
.frames figure:nth-child(2) { grid-column: span 5; }
.frames figure:nth-child(3) { grid-column: span 4; aspect-ratio: 1; }
.frames figure:nth-child(4) { grid-column: span 4; aspect-ratio: 1; }
.frames a.ig { grid-column: span 4; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: var(--white); color: #000; transition: background .3s; }
.frames a.ig:hover { background: var(--tungsten); }
.frames a.ig .mono { color: #000; }
.frames a.ig b { font: 400 clamp(32px, 4.2vw, 70px)/.98 var(--anton); text-transform: uppercase; }
.sample { position: absolute; left: 8px; top: 8px; padding: 3px 7px; background: var(--tungsten); color: #000; font: 400 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.teach { display: grid; grid-template-columns: repeat(12, 1fr); gap: 34px 24px; padding: 0 var(--gut); }
.teach-num { grid-column: 1 / 7; }
.teach-num b { display: block; font: 400 clamp(110px, 15.5vw, 270px)/.95 var(--anton); color: var(--tungsten); margin-bottom: .16em; }
.teach-list { grid-column: 7 / 13; align-self: end; }
.teach-list li { padding: 15px 0; border-top: 1px solid var(--line); }
.teach-list li:last-child { border-bottom: 1px solid var(--line); }
.teach-list .mono { display: block; margin-bottom: 4px; }

.rec { padding: clamp(80px, 11vw, 160px) var(--gut); margin-top: clamp(70px, 9vw, 130px); background: var(--white); color: #000; }
.rec .mono { color: #55554f; }
.rec em { color: #000; }
.rec ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; margin-top: clamp(40px, 6vw, 80px); }
.rec li { padding: 14px 0 26px; border-top: 1px solid rgb(0 0 0 / .25); }
.rec li b { display: block; font: 400 clamp(28px, 3.2vw, 52px)/1.02 var(--anton); text-transform: uppercase; margin-bottom: 6px; }

.hero-cld { color: var(--white); margin-bottom: 8px; }
.ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; margin-top: clamp(40px, 6vw, 80px); }
.ranks div { border-top: 3px solid #000; padding-top: 12px; }
.ranks b { display: block; font: 400 clamp(40px, 5.2vw, 96px)/1 var(--anton); text-transform: uppercase; white-space: nowrap; }
.ranks p { grid-column: 1 / -1; margin-top: 14px; }
@media (max-width: 720px) { .ranks { grid-template-columns: 1fr; gap: 12px; } .ranks b { font-size: 16.5vw; } }

/* ---------- The card ---------- */
.card-section { padding: clamp(90px, 12vw, 180px) var(--gut) 120px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.scene { perspective: 1400px; width: 100%; max-width: 620px; justify-self: center; }
.bcard { position: relative; width: 100%; aspect-ratio: 1.75; transform-style: preserve-3d; transition: transform .9s var(--ease); cursor: pointer; display: block; text-align: left; }
.bcard.flipped { --flip: 180deg; }
/* Safari ignores backface-visibility here, so swap the faces halfway through the flip */
.bcard .side { transition: visibility 0s linear .45s; }
.bcard .back, .bcard[aria-pressed="true"] .front { visibility: hidden; }
.bcard[aria-pressed="true"] .back { visibility: visible; }
.side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; border-radius: 14px; border: 1px solid rgb(244 243 239 / .22); box-shadow: 0 30px 80px rgb(255 179 107 / .1), 0 20px 50px rgb(0 0 0 / .8); }
.front { background: #000; }
.front img { position: absolute; right: 0; top: 0; height: 100%; width: 74%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.22) brightness(.82); }
.front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 28%, transparent 66%); }
.front-in { position: absolute; z-index: 2; inset: 0; padding: 6% 6%; display: flex; flex-direction: column; justify-content: space-between; }
.front-in b { font: 400 clamp(34px, 5.2vw, 72px)/.92 var(--anton); text-transform: uppercase; display: block; }
.front-in .mono { font-size: clamp(8px, .85vw, 11px); color: var(--white); }
.back { transform: rotateY(180deg); background: var(--white); color: #000; display: flex; align-items: center; gap: 5%; padding: 5%; }
/* card is 1.75:1 with 5% padding, so a 52% wide QR fills the inner height */
.back .qr { flex: 0 0 52%; width: 52%; aspect-ratio: 1; }
.back > span:last-child { flex: 1 1 0; min-width: 0; }
.back .qr svg { display: block; width: 100%; height: 100%; }
.back b { display: block; font: 400 clamp(22px, 3vw, 42px)/1 var(--anton); text-transform: uppercase; margin-bottom: 8px; }
.back .mono { color: #000; font-size: clamp(10px, 1.15vw, 13px); line-height: 1.7; letter-spacing: .03em; text-transform: none; }
.flip-hint { margin-top: 12px; text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.btn { display: inline-flex; padding: 14px 20px; border: 1px solid var(--line); border-radius: 99px; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--white); color: #000; border-color: var(--white); }
.btn.primary { background: var(--tungsten); border-color: var(--tungsten); color: #000; }
.socials { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px var(--gut) 86px; border-top: 1px solid var(--line); }

/* ---------- /card ---------- */
.solo { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding: 28px 18px 90px; text-align: center; }
.solo .scene { max-width: 560px; }
.solo .actions { justify-content: center; margin-top: 4px; }
.solo .socials { justify-content: center; margin-top: 0; }

@media (max-aspect-ratio: 1/1) {
  .face { top: 1%; height: 76%; -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%); mask-image: linear-gradient(180deg, #000 76%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .hero-shadow { background: linear-gradient(90deg, transparent 0, transparent 46%, rgb(0 0 0 / .88) 66%, rgb(0 0 0 / .98) 100%); }
  .hero::after { background: linear-gradient(0deg, #000 34%, rgb(0 0 0 / .86) 44%, transparent 54%); }
}
@media (max-width: 820px) {
  .reel { grid-auto-columns: 86vw; }
  .reel span { flex-direction: column; gap: 2px; }
  .frames figure:nth-child(1) { grid-column: 1 / -1; }
  .frames figure:nth-child(2) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .frames figure:nth-child(3), .frames figure:nth-child(4) { grid-column: span 6; }
  .frames a.ig { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .teach-num, .teach-list { grid-column: 1 / -1; }
  .rec ul { grid-template-columns: 1fr 1fr; }
  .card-section { grid-template-columns: 1fr; }
  .scene { order: -1; }
  .hero h1 { font-size: 27vw; white-space: normal; line-height: .92; }
  .hero h1 span { display: block; }
  .hero-text { bottom: 66px; }
  .hero-roles { display: none; }
  .front-in b { font-size: 11vw; }
  .front-in .mono { font-size: 8px; }
  .back .mono { font-size: 10px; line-height: 1.5; }
  .back b { font-size: 6.4vw; }
}
@media (max-width: 480px) { .dock a, .dock button { padding: 13px 11px; font-size: 10px; letter-spacing: .04em; } .rec ul { grid-template-columns: 1fr; } }
@media (hover: none) { .reel img, .frames img { filter: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; transition: none; } .face-base { animation: none; } .bcard, .bcard .side { transition: none; } }
