
@font-face { font-family: "Royal Imperial"; src: url(a/royal-imperial.woff) format("woff"); font-display: swap; }
/* Layout: Behance-style brand presentation. A stack of dark "boards", each framed by the
   same chrome (studio line on top, Brand Identity / section on the bottom), lit by drifting
   wine and gold glows. Motion: the logo draws itself from its own vector, boards reveal on
   scroll, objects tilt in 3D under the pointer, a marquee carries the brand lines. */
:root {
  color-scheme: dark;
  --bg: #0A0403;
  --night: #1A0405;
  --velvet: #420C12;
  --velvet-hi: #6B1622;
  --parch: #EDE8D9;
  --ink: #241411;
  --gold: #F5AD24;
  --gold-sun: #FDD009;
  --gold-old: #C49547;
  --muted: #A8978A;
  --line: rgba(237,232,217,.14);
  --crown: linear-gradient(90deg, #FDD009 0%, #F5AD24 52%, #F19530 82%, #F8E39A 100%);
  --display: "Royal Imperial", "Inter", sans-serif;
  --sans: "Inter", "Inter Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.7,.1,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--parch); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* progress */
.progress { position: fixed; z-index: 50; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 100%; background: var(--crown); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- board chrome ---------- */
.board { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid rgba(237,232,217,.06); }
.board > .in { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); padding-block: 28px; min-height: clamp(560px, 56.25vw, 900px); display: grid; grid-template-rows: auto 1fr auto; gap: clamp(24px, 4vw, 48px); }
.chrome { display: flex; align-items: center; gap: 18px; font-size: 12px; }
.chrome .studio b { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.chrome .studio span { display: block; font-size: 10.5px; color: var(--muted); }
.chrome .dash { flex: 1; height: 1px; background-image: linear-gradient(90deg, rgba(237,232,217,.4) 50%, transparent 50%); background-size: 8px 1px; }
.chrome .handle { font-weight: 500; }
.foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 500; }
.foot span:last-child { color: var(--muted); }
.stage { position: relative; display: grid; align-items: center; min-width: 0; }

/* glows */
.glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); opacity: .75; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.glow.w { background: radial-gradient(closest-side, rgba(150,30,44,.95), rgba(107,22,34,.5) 50%, transparent); }
.glow.g { background: radial-gradient(closest-side, rgba(245,173,36,.55), rgba(241,149,48,.22) 50%, transparent); }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4%, -6%, 0) scale(1.08); } 100% { transform: translate3d(-5%, 4%, 0) scale(.96); } }
.board::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(245,173,36,.08), transparent 60%); }
.grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* type */
.kicker { font-size: 13px; font-weight: 500; color: var(--gold-old); }
.h { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: .92; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.h.sm { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.p { color: var(--muted); max-width: 46ch; font-size: 1.02rem; }

/* reveal (progressive: only applied by JS to things below the fold) */
.pre { opacity: 0; transform: translateY(46px) scale(.985); filter: blur(8px); }
.rv { transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }

/* tilt */
[data-tilt] { transform-style: preserve-3d; transition: transform .5s var(--ease); will-change: transform; }
[data-tilt].tilting { transition: transform .08s linear; }

/* ---------- 01 hero ---------- */
.hero .rings { position: absolute; z-index: 0; left: 50%; top: 50%; width: min(140vw, 1900px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.hero .rings circle { fill: none; stroke: rgba(196,149,71,.16); }
.hero .rings .spin { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.hero .rings .spin2 { transform-origin: 50% 50%; animation: spin 140s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .stage { justify-items: center; align-content: center; }
@media (max-width: 960px) { .hero .stage { position: absolute; inset: 0; z-index: 2; padding-inline: 20px; } .hero .rings { width: 220vw; } }
.logo-draw { width: min(84%, 1040px); overflow: visible; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.logo-draw path { stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.logo-draw .k { stroke: var(--parch); fill: var(--parch); }
.logo-draw .gd { stroke: var(--gold); fill: url(#crownGrad); }
.anim .logo-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: draw 2.4s var(--ease) forwards, fillin 1.2s ease 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; stroke-opacity: 0; } }
.hero .sub { margin-top: clamp(22px, 3vw, 40px); display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--muted); }
.anim .hero .sub { opacity: 0; animation: up 1s var(--ease) 2.6s forwards; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cue { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); z-index: 3; }
.cue::after { content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(50px); opacity: 0; } 100% { opacity: 0; } }


/* ---------- film ---------- */
.player { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: #000; box-shadow: 0 0 0 1px rgba(237,232,217,.1), 0 60px 120px -40px rgba(150,30,44,.9), 0 0 160px -40px rgba(245,173,36,.25); }
.player video { width: 100%; height: 100%; object-fit: cover; }
.pctl { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 999px; background: rgba(12,5,4,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(237,232,217,.12); transition: opacity .4s, transform .4s var(--ease); }
.player:not(:hover) .pctl.idle { opacity: 0; transform: translateY(8px); }
.pbtn, .sbtn { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; transition: transform .2s var(--ease), background .3s; }
.pbtn { width: 40px; height: 40px; justify-content: center; background: var(--parch); color: var(--ink); }
.pbtn svg { width: 18px; height: 18px; fill: currentColor; }
.pbtn .i-play { display: none; }
.pbtn.paused .i-play { display: block; } .pbtn.paused .i-pause { display: none; }
.sbtn { height: 40px; padding: 0 16px 0 12px; background: var(--crown); color: var(--ink); font-size: 13px; font-weight: 600; }
.sbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sbtn svg path:first-child { fill: currentColor; }
.sbtn .wv { display: none; } .sbtn.on .wv { display: block; } .sbtn.on .x { display: none; }
.sbtn.on { background: var(--parch); }
.pbtn:hover, .sbtn:hover { transform: scale(1.05); }
.pbtn:active, .sbtn:active { transform: scale(.95); }
.ptrack { flex: 1; height: 3px; border-radius: 3px; background: rgba(237,232,217,.2); overflow: hidden; }
.ptrack i { display: block; height: 100%; width: 100%; background: var(--crown); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 560px) { .sbtn span { display: none; } .sbtn { padding: 0 10px; } }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding-block: clamp(20px, 3vw, 36px); background: var(--bg); border-bottom: 1px solid rgba(237,232,217,.06); }
.track { display: flex; width: max-content; gap: 40px; animation: mq 38s linear infinite; }
.track.rev { animation-direction: reverse; animation-duration: 46s; margin-top: 10px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.track span { display: inline-flex; align-items: center; gap: 40px; font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.track .o { color: transparent; -webkit-text-stroke: 1.2px rgba(237,232,217,.45); }
.track .gg { background: var(--crown); -webkit-background-clip: text; background-clip: text; color: transparent; }
.track svg { width: .6em; height: .6em; fill: var(--velvet-hi); flex: none; }

/* ---------- manifesto ---------- */
.manifesto { font-weight: 600; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; max-width: 20ch; }
.manifesto .w { transition: color .3s; }
.manifesto.live .w { color: rgba(237,232,217,.16); }
.manifesto.live .w.on { color: var(--parch); }
.manifesto.live .w.on.gold { color: var(--gold); }
.mrow { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.mrow .p { max-width: 34ch; }

/* ---------- equation ---------- */
.eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.term { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; padding: 12% 10% 10%; display: grid; grid-template-rows: 1fr auto; text-align: center; background: linear-gradient(160deg, rgba(237,232,217,.06), rgba(237,232,217,.015)); box-shadow: inset 0 0 0 1px rgba(237,232,217,.1); transition: box-shadow .4s, background .4s; min-width: 0; max-width: 100%; }
.term:hover { box-shadow: inset 0 0 0 1px rgba(245,173,36,.55), 0 30px 60px -20px rgba(150,30,44,.6); background: linear-gradient(160deg, rgba(107,22,34,.5), rgba(237,232,217,.02)); }
.term .g { display: grid; place-items: center; transform: translateZ(40px); }
.term .g svg, .term .g img { width: 70%; height: auto; transition: transform .6s var(--ease); }
.term:hover .g svg, .term:hover .g img { transform: scale(1.08) rotate(-4deg); }
.term h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: .02em; text-transform: uppercase; transform: translateZ(24px); }
.term p { font-size: 12.5px; color: var(--muted); margin-top: 4px; transform: translateZ(16px); }
.term.res { background: radial-gradient(120% 90% at 50% 0%, rgba(107,22,34,.9), rgba(26,4,5,.9)); box-shadow: inset 0 0 0 1px rgba(245,173,36,.4), 0 0 80px -10px rgba(245,173,36,.25); }
.op { font-weight: 200; font-size: clamp(2rem, 4vw, 3.6rem); color: var(--gold); }

/* ---------- construction ---------- */
.cons { position: relative; border-radius: 4px; padding: clamp(24px, 5vw, 70px) clamp(16px, 4vw, 60px); background-image: linear-gradient(rgba(237,232,217,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(237,232,217,.06) 1px, transparent 1px); background-size: 48px 48px; }
.cons svg { width: 100%; height: auto; overflow: visible; }
.cons .outline path { fill: none; stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.cons .fill path { transition: opacity .6s; }
.cons .fill .k { fill: var(--parch); }
.cons .fill .gd { fill: url(#crownGrad2); }
.cons .anc rect { fill: var(--bg); stroke: var(--parch); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: opacity .4s; }
.cons .guides line, .cons .guides rect { stroke: rgba(196,149,71,.55); stroke-dasharray: 6 8; fill: none; vector-effect: non-scaling-stroke; }
.cons .guides text { fill: var(--gold-old); font: 500 30px var(--sans); }
.cons[data-mode="outline"] .fill { opacity: 0; }
.cons[data-mode="fill"] .fill { opacity: 1; }
.cons[data-mode="fill"] .anc, .cons[data-mode="fill"] .outline { opacity: 0; }
.cons .fill, .cons .anc, .cons .outline { transition: opacity .6s; }
.cons.drawing .outline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) forwards; }
.cons.drawing .anc rect { opacity: 0; animation: pop .4s var(--ease) forwards; animation-delay: calc(1.2s + var(--i) * 4ms); }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(237,232,217,.06); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); transition: background .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--parch); color: var(--ink); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--parch); }
.row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- geometry ---------- */
.geo { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.geo > * { min-width: 0; }
.geofig { position: relative; aspect-ratio: 808 / 778; max-width: 100%; }
.geofig img, .geofig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.geofig img { opacity: .14; }
.geofig .cg { fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.geofig .cg .d { stroke-dasharray: 6 7; }
.geofig .cg .f { stroke: var(--gold-old); opacity: .8; }
.geofig .cg .gh { stroke: var(--parch); stroke-dasharray: 2 6; opacity: .7; }
.geofig text { font: 500 22px var(--sans); fill: var(--gold); }
.geofig.drawing .cg > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms); }
.nums { display: grid; gap: 0; }
.num { display: grid; grid-template-columns: 8.5rem 1fr; gap: 18px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.num:last-child { border-bottom: 1px solid var(--line); }
.num b { font-weight: 250; font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.num h4 { font-size: 1rem; font-weight: 600; }
.num p { font-size: .9rem; color: var(--muted); }

/* ---------- split ---------- */
.splitb > .in { padding-block: 0; min-height: 0; display: block; max-width: none; padding-left: 0; padding-right: 0; }
.halves { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(420px, 42vw, 720px); }
.half { position: relative; display: grid; place-items: center; overflow: hidden; min-width: 0; }
.half.v { background: radial-gradient(90% 90% at 40% 20%, #8A1D2C 0%, var(--velvet-hi) 30%, var(--velvet) 70%); }
.half.v img { width: 42%; filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.half.d { background: #0E0605; }
.half.d svg { width: 150%; max-width: none; height: auto; transform: translate(14%, 10%); }
.half.d path { fill: none; stroke: var(--gold); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.half.d rect { fill: #0E0605; stroke: var(--parch); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.half .lab { position: absolute; font-size: 12px; font-weight: 500; color: rgba(237,232,217,.75); }
.half .lab.tl { top: 22px; left: 24px; } .half .lab.br { bottom: 22px; right: 24px; } .half .lab.bl { bottom: 22px; left: 24px; } .half .lab.tr { top: 22px; right: 24px; }

/* ---------- sketch ---------- */
.paper { background: #ECE6D6; color: var(--ink); }
.paper .chrome .studio span, .paper .foot span:last-child { color: #7A6252; }
.paper .chrome .dash { background-image: linear-gradient(90deg, rgba(36,20,17,.4) 50%, transparent 50%); }
.paper .kicker { color: #8A5A2A; }
.paper .p { color: #6A5242; }
.paper::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(66,12,18,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(66,12,18,.06) 1px, transparent 1px); background-size: 28px 28px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.6vw, 22px); }
.step { min-width: 0; }
.step .pad { aspect-ratio: 1; display: grid; place-items: center; padding: 9%; border-radius: 16px; background: rgba(255,253,246,.7); box-shadow: 0 1px 0 rgba(36,20,17,.06), inset 0 0 0 1px rgba(66,12,18,.08); transition: transform .5s var(--ease), box-shadow .5s; max-width: 100%; }
.step:hover .pad { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 30px 50px -20px rgba(66,12,18,.35), inset 0 0 0 1px rgba(66,12,18,.12); }
.step .pad svg, .step .pad img { width: 100%; height: auto; }
.step .no { margin-top: 14px; font-size: 12px; font-weight: 600; color: #8A5A2A; }
.step h4 { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; margin-top: 2px; }
.step p { font-size: .86rem; color: #6A5242; margin-top: 2px; }
.pen { fill: none; stroke: #3A2620; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: url(#rough); }
.pen.lt { stroke: #A07C4A; stroke-width: 4; stroke-dasharray: 10 12; }
.pen.wine { fill: rgba(107,22,34,.88); }
.pen.goldf { fill: rgba(245,173,36,.92); }


/* ---------- cards ---------- */
.dealer { display: grid; gap: 28px; justify-items: center; padding: clamp(28px, 4vw, 56px) clamp(12px, 3vw, 40px); border-radius: 50% / 38%; background: radial-gradient(70% 70% at 50% 40%, rgba(107,22,34,.85), rgba(66,12,18,.75) 55%, rgba(26,4,5,.2) 80%); box-shadow: inset 0 0 0 1px rgba(196,149,71,.35), inset 0 0 80px rgba(0,0,0,.5); }
.hand { display: flex; justify-content: center; gap: clamp(8px, 1.6vw, 22px); perspective: 1400px; }
.pc { width: clamp(64px, 11vw, 170px); aspect-ratio: 148 / 241; position: relative; cursor: pointer; transition: transform .5s var(--ease); }
.pc:hover { transform: translateY(-14px) rotate(var(--r, 0deg)); }
.pc .in2 { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.pc.down .in2 { transform: rotateY(180deg); }
.pc .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 9%; overflow: hidden; box-shadow: 0 24px 40px -14px rgba(0,0,0,.8), 0 0 0 1px rgba(196,149,71,.25); }
.pc .face img { width: 100%; height: 100%; object-fit: cover; }
.pc .face.b { transform: rotateY(180deg); }
.pc.out { transform: translateY(-60px) scale(.9); opacity: 0; }
.pc.win .face { box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(245,173,36,.55), 0 24px 40px -14px rgba(0,0,0,.8); }
.dealbar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.result { text-align: center; }
.result .lbl { display: block; font-size: 12px; color: var(--muted); }
.result b { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; letter-spacing: .02em; text-transform: uppercase; background: var(--crown); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result b.pop { animation: popin .6s var(--ease); }
@keyframes popin { from { transform: scale(.6); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; } }
.deckrows { position: relative; z-index: 2; display: grid; gap: 14px; padding-top: 36px; padding-bottom: 48px; margin-top: -24px; overflow: visible; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.drow { display: flex; gap: 14px; width: max-content; animation: mq 70s linear infinite; }
.drow.rev { animation-direction: reverse; animation-duration: 80s; }
.deckrows:hover .drow { animation-play-state: paused; }
.drow img { width: clamp(70px, 8vw, 118px); border-radius: 9%; box-shadow: 0 14px 24px -10px rgba(0,0,0,.8); transition: transform .4s var(--ease), box-shadow .4s; }
.drow img:hover { transform: translateY(-10px) scale(1.12) rotate(-3deg); box-shadow: 0 0 0 1px var(--gold), 0 20px 40px -10px rgba(245,173,36,.4); }
@media (max-width: 560px) { .dealer { border-radius: 28px; } .hand { gap: 6px; } }

/* ---------- app ---------- */
.app { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.app > * { min-width: 0; }
.bigicon { width: min(78%, 380px); aspect-ratio: 1; margin: 0 auto; border-radius: 24%; position: relative; display: grid; place-items: center; background: linear-gradient(180deg, #2A0709 0%, #4A0E15 55%, #8A1D2C 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.08), inset 0 -18px 30px rgba(245,173,36,.35), inset 0 0 0 1px rgba(245,173,36,.35), 0 50px 90px -30px rgba(150,30,44,.9), 0 0 120px -20px rgba(245,173,36,.25); }
.bigicon::after { content: ""; position: absolute; inset: auto 8% -14% 8%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(150,30,44,.7), transparent); filter: blur(20px); z-index: -1; }
.bigicon img { width: 58%; transform: translateZ(50px); filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.phone { position: relative; width: min(100%, 520px); aspect-ratio: 9 / 12; margin-left: auto; border-radius: 52px 52px 0 0; padding: 14px 14px 0; background: linear-gradient(145deg, #3a3434, #141010 40%, #2a2424); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px rgba(0,0,0,.6); -webkit-mask: linear-gradient(#000 75%, transparent); mask: linear-gradient(#000 75%, transparent); max-width: 100%; }
.screen { height: 100%; border-radius: 40px 40px 0 0; background: radial-gradient(120% 70% at 50% 0%, #3A0A10, #0C0505 70%); padding: 22px 26px; overflow: hidden; }
.sbar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.island { width: 110px; height: 30px; border-radius: 20px; background: #000; }
.sig { display: flex; gap: 3px; align-items: flex-end; }
.sig i { width: 3px; background: var(--parch); border-radius: 1px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; margin-top: 36px; }
.ap { text-align: center; font-size: 11px; color: rgba(237,232,217,.75); }
.ap .ic { aspect-ratio: 1; border-radius: 24%; margin-bottom: 6px; background: rgba(237,232,217,.08); box-shadow: inset 0 0 0 1px rgba(237,232,217,.06); }
.ap.rp .ic { display: grid; place-items: center; background: linear-gradient(180deg, #2A0709, #6B1622); box-shadow: inset 0 0 0 1px rgba(245,173,36,.45), 0 10px 26px -6px rgba(150,30,44,.8); animation: pulse 3.2s ease-in-out infinite; }
.ap.rp .ic img { width: 62%; }
@keyframes pulse { 0%,100% { box-shadow: inset 0 0 0 1px rgba(245,173,36,.45), 0 10px 26px -6px rgba(150,30,44,.8); } 50% { box-shadow: inset 0 0 0 1px rgba(245,173,36,.8), 0 10px 40px -2px rgba(245,173,36,.45); } }
.ap.rp span { color: var(--parch); font-weight: 600; }

/* ---------- versions ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tile { position: relative; overflow: hidden; border-radius: 14px; display: grid; place-items: center; aspect-ratio: 16 / 10; min-width: 0; max-width: 100%; }
.tile.l { grid-column: span 3; } .tile.s { grid-column: span 2; aspect-ratio: 1; }
.tile img { width: 74%; transition: transform .8s var(--ease); }
.tile.s img { width: 40%; }
.tile:hover img { transform: scale(1.07); }
.tile .cap { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; opacity: .8; transition: transform .5s var(--ease), opacity .5s; }
.tile:hover .cap { opacity: 1; transform: translateY(-4px); }
.t-wine { background: radial-gradient(110% 120% at 30% 0%, var(--velvet-hi), var(--velvet) 55%, var(--night)); }
.t-parch { background: var(--parch); color: var(--ink); }
.t-onyx { background: #120807; box-shadow: inset 0 0 0 1px var(--line); }
.t-gold { background: var(--crown); color: var(--ink); }

/* ---------- colors bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(150px, 1fr)); gap: 10px; min-height: 420px; }
.sw { all: unset; position: relative; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; min-width: 0; color: var(--fg); background: var(--c); box-shadow: inset 0 0 0 1px rgba(237,232,217,.08); }
.sw:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(237,232,217,.2), 0 30px 50px -24px rgba(0,0,0,.8); }
.sw:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sw .nm { font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; }
.sw .codes { font-size: 11.5px; line-height: 1.55; font-variant-numeric: tabular-nums; opacity: .8; }
.sw .why { font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); max-width: 30ch; }
.sw:hover .why, .sw:focus-visible .why { opacity: .9; transform: none; }
.sw .copy { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.18); opacity: 0; transition: opacity .3s; }
.sw:hover .copy { opacity: 1; }
.sw.big { grid-column: span 2; }
.sw.wide2 { grid-column: span 2; }
.sw.tall { grid-row: span 2; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: var(--parch); color: var(--ink); font-size: 13px; font-weight: 600; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- type ---------- */
.typeb > .in { padding: 0; max-width: none; min-height: 0; display: block; }
.typeb .halves { min-height: clamp(520px, 50vw, 820px); }
.tp { position: relative; padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.tp.v { background: radial-gradient(100% 90% at 30% 0%, var(--velvet-hi), var(--velvet) 60%, var(--night)); }
.tp.c { background: var(--parch); color: var(--ink); }
.tp .meta { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; font-weight: 500; }
.tp .fam { margin-top: 18px; font-weight: 650; font-size: clamp(1.8rem, 3.2vw, 3rem); letter-spacing: -.03em; line-height: 1; }
.tp .desc { margin-top: 12px; font-size: .92rem; max-width: 38ch; opacity: .75; }
.tp .giant { position: absolute; left: clamp(24px, 4vw, 56px); right: 0; bottom: -6%; }
.tp.v .giant svg { width: 108%; max-width: none; height: auto; }
.tp.v .giant path { fill: var(--parch); }
.tp.c .giant { font-weight: 300; font-size: clamp(12rem, 30vw, 30rem); line-height: .78; letter-spacing: -.07em; bottom: -4%; color: var(--velvet); transition: font-weight 1.2s var(--ease), letter-spacing 1.2s var(--ease); }
.tp.c:hover .giant { font-weight: 900; letter-spacing: -.05em; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.wslider { margin-top: 22px; display: grid; gap: 8px; max-width: 360px; position: relative; z-index: 2; }
.wslider label { font-size: 12.5px; font-weight: 500; display: flex; justify-content: space-between; }
.wslider input { accent-color: var(--velvet-hi); width: 100%; }
.wslider .sample { font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }

/* ---------- still life ---------- */
.still { position: relative; min-height: clamp(420px, 44vw, 680px); }
.still .pat { position: absolute; inset: -10%; background: url(a/pattern.webp) center/520px auto; opacity: .14; mix-blend-mode: luminosity; -webkit-mask: radial-gradient(60% 60% at 50% 50%, #000 20%, transparent 72%); mask: radial-gradient(60% 60% at 50% 50%, #000 20%, transparent 72%); }
.obj { position: absolute; filter: drop-shadow(0 26px 30px rgba(0,0,0,.6)); transition: transform .9s var(--ease); }
.obj img { width: 100%; }
.obj.card { left: 50%; top: 50%; width: clamp(180px, 22vw, 330px); transform: translate(-50%, -50%) rotate(-7deg); }
.obj.card2 { left: 50%; top: 50%; width: clamp(170px, 20vw, 300px); transform: translate(-10%, -46%) rotate(9deg); }
.still:hover .obj.card { transform: translate(-62%, -52%) rotate(-14deg); }
.still:hover .obj.card2 { transform: translate(4%, -48%) rotate(16deg); }
.obj.f { animation: float 6s ease-in-out infinite; }
.obj.c1 { left: 14%; top: 14%; width: clamp(60px, 8vw, 120px); animation-delay: -1s; }
.obj.c2 { left: 22%; bottom: 8%; width: clamp(70px, 9vw, 140px); animation-delay: -3s; }
.obj.c3 { right: 15%; top: 10%; width: clamp(56px, 7vw, 110px); animation-delay: -2s; }
.obj.c4 { right: 12%; bottom: 14%; width: clamp(100px, 12vw, 180px); animation-delay: -4s; }
.obj.cr { left: 5%; top: 46%; width: clamp(56px, 6vw, 96px); animation-delay: -5s; }
.legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.legend > div { min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.legend h4 { font-size: .95rem; font-weight: 600; }
.legend p { font-size: .85rem; color: var(--muted); }
.orn { width: 100%; height: auto; color: var(--gold-old); }

/* ---------- players ---------- */
.tablewrap { position: relative; aspect-ratio: 16 / 8.4; max-width: 1180px; width: 100%; margin: 0 auto; }
.felt { position: absolute; inset: 16% 12%; border-radius: 50%; background: radial-gradient(60% 60% at 50% 45%, var(--velvet-hi), var(--velvet) 60%, #2A0709); box-shadow: 0 0 0 10px #1E1514, 0 0 0 12px rgba(196,149,71,.7), 0 0 0 26px #120B0A, 0 50px 90px rgba(0,0,0,.7), inset 0 0 70px rgba(0,0,0,.6); overflow: hidden; }
.felt::before { content: ""; position: absolute; inset: 0; background: url(a/pattern.webp) center/420px auto; opacity: .12; mix-blend-mode: luminosity; }
.felt .rim { position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(196,149,71,.35); }
.felt img { position: absolute; left: 50%; top: 50%; width: 15%; transform: translate(-50%, -50%); opacity: .5; }
.seat { position: absolute; width: 12%; transform: translate(-50%, -50%); text-align: center; }
.seat .ring { aspect-ratio: 1; border-radius: 50%; padding: 4%; background: var(--crown); box-shadow: 0 14px 28px rgba(0,0,0,.6); transition: transform .5s var(--ease), box-shadow .5s; animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.seat .ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #0C0605; }
.seat:hover .ring { transform: scale(1.14); box-shadow: 0 0 0 1px rgba(245,173,36,.7), 0 0 50px rgba(245,173,36,.45); }
.seat.king .ring { background: conic-gradient(from 210deg, #FDD009, #F19530, #F8E39A, #F5AD24, #FDD009); box-shadow: 0 0 0 1px rgba(245,173,36,.6), 0 0 50px rgba(245,173,36,.45); }
.seat .nm { margin-top: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; text-shadow: 0 2px 8px #000; }
.seat .sb { font-size: 11px; color: var(--gold); white-space: nowrap; text-shadow: 0 2px 6px #000; }

/* ---------- posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); max-width: 1100px; margin: 0 auto; width: 100%; perspective: 1200px; }
.post { min-width: 0; }
.post .im { border-radius: 10px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0,0,0,.9), inset 0 0 0 1px var(--line); }
.post .im img { width: 100%; transform: translateZ(0); }
.post .acts { display: flex; gap: 14px; margin-top: 12px; padding-inline: 2px; }
.post .acts svg { width: 20px; height: 20px; fill: none; stroke: var(--parch); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.post .acts .heart { fill: #E0484E; stroke: #E0484E; }
.post .acts .sv { margin-left: auto; }
.post .acts button { all: unset; cursor: pointer; display: grid; }
.post .acts button:hover svg { transform: scale(1.18); }
.post .acts button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.gad { max-width: 1100px; width: 100%; margin: clamp(28px,4vw,48px) auto 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 40px 70px -30px rgba(0,0,0,.9); transition: transform .5s var(--ease); }
.gad:hover { transform: translateY(-6px); }
.gad-bar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; font-size: 11.5px; color: #5f6368; background: #f8f9fa; }
.gad-tag { font-weight: 700; color: #202124; }
.gad-x { margin-left: auto; letter-spacing: 4px; }
.gad img { width: 100%; }
/* browser mock */
.browser { max-width: 1180px; width: 100%; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #160C0B; box-shadow: inset 0 0 0 1px rgba(237,232,217,.1), 0 50px 100px -30px rgba(0,0,0,.9); }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: linear-gradient(#2A1414, #1C0E0D); }
.browser .bar i { width: 12px; height: 12px; border-radius: 50%; }
.browser .url { margin-left: 16px; flex: 1; max-width: 420px; height: 26px; border-radius: 8px; background: rgba(237,232,217,.07); display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; color: var(--muted); }
.browser .url img { width: 14px; }
.browser .view { overflow-x: auto; }
.browser .view img { min-width: 760px; width: 100%; }

/* close */
.close .stage { justify-items: center; text-align: center; gap: 28px; align-content: center; }
.close .crown { width: clamp(70px, 8vw, 110px); animation: float 6s ease-in-out infinite; }
.close .h { max-width: 14ch; }
.close .logo { width: min(340px, 72%); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--crown); background-size: 200% 100%; transition: background-position .6s var(--ease), transform .3s var(--ease), box-shadow .3s; }
.btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(245,173,36,.55); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .board > .in { min-height: 0; }
  .hero > .in { min-height: clamp(480px, 78svh, 820px); }
  .eq { grid-template-columns: 1fr 1fr; }
  .op { display: none; }
  .geo, .app, .mrow { grid-template-columns: 1fr; }
  .halves { grid-template-columns: 1fr; }
  .half { min-height: 360px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .legend { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(150px, auto); }
  .sw.big { grid-column: span 2; grid-row: span 1; min-height: 220px; }
  .sw.tall { grid-row: span 1; }
  .sw.wide2 { grid-column: span 2; }
  .sw .why { opacity: .85; transform: none; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .tile.l { grid-column: span 2; } .tile.s { grid-column: span 1; }
  .tablewrap { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 14px; }
  .felt { display: none; }
  .seat { position: static; width: auto; transform: none; }
  .seat.king { grid-column: 1 / -1; width: 36%; justify-self: center; }
  .typeb .halves { min-height: 0; }
  .tp { min-height: 520px; }
  .phone { margin: 0 auto; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .posts, .legend { grid-template-columns: 1fr; }
  .chrome .handle { display: none; }
  .num { grid-template-columns: 6rem 1fr; }
  .num b { font-size: 2.6rem; }
  .mosaic { grid-template-columns: 1fr; }
  .tile.l, .tile.s { grid-column: auto; }
  .bento { grid-template-columns: 1fr; }
  .sw.big, .sw.wide2 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre { opacity: 1 !important; transform: none !important; filter: none !important; }
  .track { transform: none; }
}

