/* =========================================================================
   Synapse Ent — Landing v4
   Editorial art-direction. Warm ink + bone, hierarchy by opacity, one
   restrained amber accent. Fraunces × Hanken Grotesk × Gowun Batang × mono.
   Signature: the coverflow reel. Everything else stays quiet.
   ========================================================================= */
/* Self-hosted display faces — Baemin Dohyeon / Jua (SIL OFL 1.1, no game-industry restriction).
   Rounded, chunky, playful — same casual game vibe as CookieRun, clean license. */
@font-face { font-family: "BMDohyeon"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("fonts/BMDOHYEON.woff2") format("woff2"); }
@font-face { font-family: "BMJua"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("fonts/BMJUA.woff2") format("woff2"); }

:root {
  --ink: #050506;                 /* base — neutral black */
  --ink-2: #0d0d11;
  --ink-3: #16161b;
  --bone: 244, 243, 240;          /* near-white text, used with opacity */
  --t1: rgba(244, 243, 240, .96);
  --t2: rgba(244, 243, 240, .58);
  --t3: rgba(244, 243, 240, .34);
  --line: rgba(244, 243, 240, .11);
  --line-2: rgba(244, 243, 240, .2);
  --accent: #ff5b2e;              /* signal orange — energy / marks / particles */
  --accent-2: #e9b66a;            /* warm amber companion */
  --accent-soft: rgba(255, 91, 46, .14);
  --live: #84d98f;
  --dev: #f4b65e;
  --soon: #6fb0ff;
  --max: 1640px;
  --gut: clamp(20px, 5.2vw, 96px);
  --disp: "BMDohyeon", "BMJua", "Hanken Grotesk", "Pretendard", system-ui, sans-serif;
  --sans: "Hanken Grotesk", "Pretendard", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  background: var(--ink); color: var(--t1); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; overflow-x: hidden; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv01";
}
@media (pointer: fine) { body { cursor: none; } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
@media (pointer: fine) { a, button, [data-magnet] { cursor: none; } }
::selection { background: var(--accent); color: #fff; }

/* film grain — quiet, adds texture/craft */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* custom cursor — quiet */
.cursor-dot { position: fixed; z-index: 1000; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); pointer-events: none; transform: translate(-50%, -50%); }
.cursor-ring { position: fixed; z-index: 1000; top: 0; left: 0; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), border-color .3s, opacity .3s; }
.cursor-ring.is-hot { width: 58px; height: 58px; border-color: var(--accent); }
.cursor-canvas { position: fixed; inset: 0; z-index: 997; pointer-events: none; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring, .cursor-canvas { display: none; } }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--t3); font-weight: 400; }

/* ---- header ---- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform .55s var(--ease), background .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-pinned { background: rgba(5, 5, 6, .74); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -46px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 5, 6, .6), transparent); opacity: 1; transition: opacity .4s var(--ease); }
.site-header.is-pinned::before { opacity: 0; }
.site-header-inner { max-width: var(--max); margin: 0 auto; padding: 20px var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.brand-name { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--t1); }
.header-nav { display: flex; gap: 28px; }
.header-nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--t2); transition: color .25s; }
.header-nav a:hover { color: var(--t1); }
.lang-switch { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.lang-switch button { color: var(--t3); transition: color .25s; }
.lang-switch button.is-active { color: var(--accent); }

/* ---- hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; transition: opacity .6s var(--ease); }
/* the hero photo's own opacity (console: 이미지 불투명도) decides how much of
   the effect shows through, so the canvas stays at full strength beneath it */
.hero-photo { position: absolute; inset: 0; z-index: 1; }
/* --hero-media-op = console "이미지 불투명도"; the ::after gradient keeps text
   legible at full strength regardless of the media opacity */
.hero-photo img, .hero-photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo video { opacity: var(--hero-media-op, 1); }
.hero-slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.is-on { opacity: var(--hero-media-op, 1); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,6,.2) 0%, rgba(5,5,6,.12) 38%, rgba(5,5,6,.7) 78%, var(--ink) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(90% 70% at 80% 6%, rgba(255, 91, 46, .10), transparent 55%), linear-gradient(180deg, transparent 40%, var(--ink) 96%); }
.hero-inner { z-index: 2; }
.hero-inner { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gut) clamp(48px, 7vw, 110px); }
.hero-eyebrow { display: block; margin-bottom: clamp(24px, 4vw, 44px); }
.hero-title { font-family: var(--disp); font-weight: 300; line-height: .96; letter-spacing: -.025em; font-size: calc(clamp(3rem, 11vw, 11rem) * var(--ts-title, 1)); text-wrap: balance; }
.hero-eyebrow { font-size: calc(11px * var(--ts-eyebrow, 1)); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line:nth-child(2) { font-style: italic; color: var(--t2); }
.hero-title .word { display: inline-block; transform: translateY(105%); transition: transform 1.05s var(--ease); }
.hero-title.is-in .word { transform: translateY(0); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(34px, 5vw, 64px); }
.hero-sub { max-width: 46ch; color: var(--t2); font-size: calc(clamp(1rem, 1.25vw, 1.2rem) * var(--ts-subtitle, 1)); line-height: 1.65; text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 15px 26px; border-radius: 2px; border: 1px solid var(--line-2); transition: background .35s var(--ease), color .35s, border-color .35s; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #ff7853; border-color: #ff7853; }
.btn-ghost { color: var(--t1); }
.btn-ghost:hover { border-color: var(--t1); }
.scroll-cue { position: absolute; right: var(--gut); bottom: clamp(48px, 7vw, 110px); z-index: 2; writing-mode: vertical-rl; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--t3); display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---- section frame ---- */
.section { position: relative; padding: clamp(90px, 13vw, 220px) 0; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sec-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 18px 28px; margin-bottom: clamp(48px, 7vw, 100px); }
.sec-head .mono { grid-column: 1 / -1; }
.sec-title { font-family: var(--disp); font-weight: 300; letter-spacing: -.02em; line-height: .98; font-size: calc(clamp(2.6rem, 7.5vw, 6.8rem) * var(--ts-title, 1)); }
.sec-desc { color: var(--t2); max-width: 40ch; justify-self: end; align-self: end; text-wrap: pretty; font-size: calc(.98rem * var(--ts-description, 1)); }

.reveal-word { display: inline-block; color: var(--t3); transition: color .6s var(--ease); }
.reveal-word.is-in { color: var(--t1); }

/* ---- ethos ---- */
.ethos .section-inner { max-width: 1360px; }
.ethos-statement { font-family: var(--disp); font-weight: 300; letter-spacing: -.02em; line-height: 1.18; font-size: calc(clamp(1.9rem, 4.6vw, 4.4rem) * var(--ts-statement, 1)); text-wrap: balance; }
.ethos-note { margin-top: 52px; }

/* ---- marquee ---- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 44px; animation: marq 32s linear infinite; will-change: transform; }
.marquee span { font-family: var(--disp); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.6rem); color: var(--t3); }
.marquee span em { color: var(--accent); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---- works ---- */
.work-row { margin-bottom: clamp(64px, 9vw, 130px); }
.work-row:last-child { margin-bottom: 0; }
.work-row-head { display: flex; align-items: baseline; gap: clamp(14px, 2.5vw, 32px); padding: 0 var(--gut); margin-bottom: 32px; }
.work-index { font-family: var(--mono); font-size: 12px; color: var(--t3); letter-spacing: .12em; }
.work-row-title { font-family: var(--disp); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: -.02em; }
.work-row-count { font-family: var(--mono); font-size: 11px; color: var(--t3); letter-spacing: .1em; }
.work-row-desc { margin-left: auto; max-width: 34ch; color: var(--t3); font-size: .86rem; text-align: right; }
.work-row-rule { height: 1px; background: var(--line); margin: 0 var(--gut) 28px; }

.rail { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; padding: 24px var(--gut) 32px; -webkit-user-select: none; user-select: none; }
.rail img { -webkit-user-drag: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; }
.rail-track { display: flex; gap: clamp(16px, 1.6vw, 26px); width: max-content; perspective: 1200px; }
.work-card {
  position: relative; flex: 0 0 auto; width: clamp(286px, 29vw, 420px); min-height: 452px;
  background: linear-gradient(165deg, var(--ink-3), var(--ink-2) 60%, var(--ink));
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: opacity .8s var(--ease), transform .6s var(--bounce), box-shadow .45s var(--ease), border-color .45s var(--ease);
  transform-style: preserve-3d;
}
.work-card.is-in { opacity: 1; transform: none; }
.work-card::after { content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); z-index: 4; }
.work-card:hover { border-color: var(--cc, rgba(255, 91, 46, .5)); box-shadow: 0 34px 76px rgba(0, 0, 0, .58), 0 0 0 1px var(--cc, rgba(255, 91, 46, .3)); }
/* collection accent ribbon (game-rarity feel) */
.work-strip { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--cc, var(--accent)), transparent 80%); z-index: 5; }
.work-strip::before { content: ""; position: absolute; top: 0; left: 22px; width: 46px; height: 4px; background: var(--cc, var(--accent)); box-shadow: 0 0 14px var(--cc, var(--accent)); }
/* holographic gloss that follows the cursor */
.work-gloss { position: absolute; inset: 0; border-radius: 20px; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.12), transparent 60%); mix-blend-mode: screen; }
.work-card:hover .work-gloss { opacity: 1; }
.work-card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, var(--ink-3), #050506); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.work-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.02); transition: filter .6s var(--ease), transform .9s var(--ease); }
.work-card:hover .work-card-media img { filter: none; transform: scale(1.04); }
.work-card-media .ghost-name { font-family: var(--disp); font-style: italic; font-weight: 300; font-size: 2.2rem; color: rgba(239, 233, 221, .07); padding: 0 22px; text-align: center; line-height: 1.05; }
.work-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.work-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.work-card-name { font-family: var(--disp); font-weight: 400; font-size: calc(1.6rem * var(--ts-cardname, 1)); letter-spacing: -.015em; line-height: 1.08; }
.work-card-tagline { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin-top: 10px; }
.work-card-desc { color: var(--t2); font-size: calc(.92rem * var(--ts-carddesc, 1)); margin-top: 16px; flex: 1; text-wrap: pretty; }
.work-card-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.link-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--t2); transition: border-color .3s, color .3s; }
.link-pill:hover { border-color: var(--accent); color: var(--accent); }
.work-card-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.work-card-tags span { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--t3); }

.status-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--t2); white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--t3); }
.status-pill[data-status="live"]::before, .status-pill[data-status="ongoing"]::before, .status-pill[data-status="released"]::before { background: var(--live); }
.status-pill[data-status="in-development"]::before { background: var(--dev); }
.status-pill[data-status="coming-soon"]::before { background: var(--soon); }

/* ---- reel (coverflow) — signature ---- */
.reel { overflow: hidden; }
.reel .sec-head { padding: 0 var(--gut); max-width: var(--max); margin-left: auto; margin-right: auto; }
.flow { position: relative; width: 100%; height: clamp(300px, 46vw, 600px); perspective: 2200px; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.flow img { -webkit-user-drag: none; }
.flow-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.flow-card { position: absolute; top: 50%; left: 50%; width: clamp(280px, 46vw, 660px); transform: translate(-50%, -50%); will-change: transform, opacity; transition: transform .65s var(--ease), opacity .65s var(--ease); }
.flow-card.is-center { cursor: pointer; }
.flow-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a0d; border: 1px solid var(--line-2); border-radius: 7px; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0,0,0,.4); }
.flow-frame img { width: 100%; height: 100%; object-fit: cover; }
.flow-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.flow-play { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 45%, transparent, rgba(0,0,0,.35)); opacity: 0; transition: opacity .4s var(--ease); }
.flow-card.is-center .flow-play { opacity: 1; }
.flow-play span { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--accent); background: rgba(255,91,46,.14); backdrop-filter: blur(3px); display: grid; place-items: center; font-size: 17px; color: #fff; }
.flow-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; background: linear-gradient(transparent, rgba(8,7,6,.82)); opacity: 0; transition: opacity .5s var(--ease); }
.flow-card.is-center .flow-cap { opacity: 1; }
.flow-cap .fl { font-family: var(--disp); font-weight: 400; font-size: 1.2rem; color: #fff; }
.flow-cap .fm { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.flow-nav { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.flow-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .3s; }
.flow-dot.is-on { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

/* pinned horizontal-scroll rows */
.work-row.is-pin { position: relative; }
.work-row.is-pin .pin-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3.5vw, 44px); overflow: hidden; }
.work-row.is-pin .rail { overflow: hidden; cursor: default; }
.pin-stage { display: flex; flex-direction: column; gap: 28px; }

/* ---- contact ---- */
.contact { border-top: 1px solid var(--line); }
.contact-title { font-family: var(--disp); font-weight: 300; letter-spacing: -.02em; line-height: 1.04; font-size: calc(clamp(2.4rem, 6.5vw, 6rem) * var(--ts-title, 1)); max-width: 14ch; margin-top: 26px; text-wrap: balance; }
.contact-email { display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(36px, 5vw, 70px); font-family: var(--disp); font-style: italic; font-weight: 300; font-size: calc(clamp(1.5rem, 4.2vw, 3.2rem) * var(--ts-email, 1)); color: var(--t1); border-bottom: 1px solid var(--line-2); padding-bottom: 10px; transition: color .35s, border-color .35s; }
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: clamp(44px, 6vw, 88px); }
.contact-meta a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); transition: color .3s; }
.contact-meta a:hover { color: var(--t1); }
.footer-base { max-width: var(--max); margin: 64px auto 0; padding: 28px var(--gut) 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); }

.empty-note { font-family: var(--mono); font-size: 12px; color: var(--t3); padding: 0 var(--gut); }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .work-row-desc { display: none; }
  .sec-desc { justify-self: start; }
}
@media (max-width: 680px) {
  .header-nav { display: none; }
  .sec-head { grid-template-columns: 1fr; }
  .work-card { width: 82vw; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-title .word { transform: none; }
  .reveal-word { color: var(--t1); }
  .work-card { opacity: 1; transform: none; }
  .flow-track { animation: none; }
}

/* =======================================================================
   CookieRun display tuning + gamification touches
   ======================================================================= */
.hero-title, .sec-title, .ethos-statement, .contact-title, .work-row-title,
.work-card-name, .ghost-name, .flow-cap .fl, .contact-email { letter-spacing: 0; font-style: normal; }
.hero-title { font-weight: 900; line-height: 1.02; }
.hero-title .line:nth-child(2) { color: var(--accent); font-style: normal; }
.sec-title, .contact-title { font-weight: 900; line-height: 1.06; }
.ethos-statement { font-weight: 700; line-height: 1.24; }
.work-row-title { font-weight: 700; }
.work-card-name, .flow-cap .fl { font-weight: 700; }
.ghost-name { font-weight: 900; }
.contact-email { font-weight: 700; }

/* playful, springy controls */
.btn { transition: transform .3s var(--bounce), background .3s var(--ease), border-color .3s, color .3s; }
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.97); }
.work-card { transition: opacity .7s var(--ease), transform .7s var(--bounce), background .5s var(--ease); }
.link-pill:hover { transform: translateY(-2px); }
.status-pill::before { box-shadow: 0 0 0 3px rgba(255,255,255,.04); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active, .link-pill:hover { transform: none; }
}

/* rail scrollbar — easy to grab */
.rail-bar { position: relative; height: 8px; margin: 18px var(--gut) 0; border-radius: 999px; background: rgba(239, 233, 221, .08); cursor: pointer; transition: height .2s var(--ease); }
.rail-bar:hover { height: 11px; }
.rail-bar-thumb { position: absolute; top: 0; left: 0; height: 100%; min-width: 48px; border-radius: 999px; background: var(--cc, var(--t2)); opacity: .5; transition: opacity .25s var(--ease); }
.rail-bar:hover .rail-bar-thumb, .rail-bar.is-active .rail-bar-thumb { opacity: .95; }
@media (pointer: coarse) { .rail-bar { height: 6px; } .rail-bar:hover { height: 6px; } }

/* rail dot pagination (replaces scrollbar) */
.rail-dots { display: flex; justify-content: center; align-items: center; gap: 11px; margin: 24px var(--gut) 0; flex-wrap: wrap; }
.rail-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; transition: transform .25s var(--bounce), background .25s, border-color .25s, box-shadow .25s; }
.rail-dot:hover { border-color: var(--cc, var(--accent)); transform: scale(1.2); }
.rail-dot.is-on { background: var(--cc, var(--accent)); border-color: var(--cc, var(--accent)); transform: scale(1.35); box-shadow: 0 0 12px var(--cc, var(--accent)); }
