/* Strange Gnome - strangegnome.com. One stylesheet, no framework. The brand (docs/launch/BRAND_STUDIO.md): midnight
   ground, ivory mark, Enchanted Gold for what you can act on, Arcane Violet only as a rare trace of light. A dark site
   by design (the brand's own ground), so one theme. */

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* fallbacks sized to the web fonts' metrics, so the swap doesn't shift the page */
@font-face { font-family: "Cormorant Fallback"; src: local("Times New Roman"), local("Georgia"); size-adjust: 88%; ascent-override: 100%; descent-override: 31%; }
@font-face { font-family: "Instrument Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 97%; ascent-override: 95%; descent-override: 25%; }

:root {
  color-scheme: dark;
  --midnight: #0D0C14;
  --night-1: #12101B;
  --night-2: #181522;
  --night-3: #221E2F;
  --ivory: #F2E6D2;
  --ivory-2: rgba(242, 230, 210, .78);
  --ivory-3: rgba(242, 230, 210, .58);
  --line: rgba(242, 230, 210, .12);
  --line-2: rgba(242, 230, 210, .22);
  --gold: #E8B66B;
  --gold-hi: #F4CF92;
  --gold-lo: #B98A45;
  --violet: #8955D9;
  --serif: "Cormorant Garamond", "Cormorant Fallback", "Times New Roman", serif;
  --sans: "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(.84rem, .8rem + .15vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.35rem + 1vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.7rem + 2vw, 3.4rem);
  --step-4: clamp(2.8rem, 2rem + 3.4vw, 5rem);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--midnight); color: var(--ivory-2);
  font: 400 var(--step-0)/1.65 var(--sans); letter-spacing: .005em;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img, video { height: auto; }
::selection { background: rgba(137, 85, 217, .55); color: var(--ivory); }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(232, 182, 107, .45); transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { color: var(--gold-hi); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ivory); font-weight: 600; }
h1, h2, h3 { color: var(--ivory); text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { font: 500 .9em/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ivory-3); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; border-radius: 8px; background: var(--gold); color: var(--midnight); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box;
  background: rgba(13, 12, 20, .72); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  view-transition-name: site-header;
}
.site-header.is-over-hero { position: fixed; inset: 0 0 auto 0; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-over-hero.is-scrolled { background: rgba(13, 12, 20, .78); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; color: var(--ivory); line-height: 0; border-radius: 6px; }
.brand img { height: 34px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
  position: relative; display: block; padding: 10px 14px; color: var(--ivory-2); text-decoration: none;
  font: 500 .95rem/1 var(--sans); letter-spacing: .02em; border-radius: 8px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.site-nav a:hover { color: var(--ivory); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ivory); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0;
    background: none; border: 0; color: var(--ivory); cursor: pointer; border-radius: 8px;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform .35s var(--ease-out), opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { transform: translateY(-7px); }
  .nav-toggle-bars::after { transform: translateY(7px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    background: var(--midnight); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    padding: 8px var(--gutter-r) 24px var(--gutter);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .35s var(--ease-out), visibility 0s .35s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease-out); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 16px 4px; font-size: 1.25rem; font-family: var(--serif); font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--gold); }
  .js .site-nav:not(.is-open) a { pointer-events: none; }
  html:not(.js) .site-nav { position: static; visibility: visible; opacity: 1; transform: none; background: none; border: 0; padding: 0; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .site-nav a { font: 500 .9rem/1 var(--sans); padding: 8px; border: 0; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font: 600 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--gold); color: var(--midnight); box-shadow: 0 0 0 0 rgba(232, 182, 107, 0); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 248, 232, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-primary:hover { color: var(--midnight); background: var(--gold-hi); box-shadow: 0 8px 30px -8px rgba(232, 182, 107, .55); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { color: var(--ivory); border: 1px solid var(--line-2); background: rgba(242, 230, 210, .02); }
.btn-ghost:hover { color: var(--ivory); border-color: rgba(232, 182, 107, .7); background: rgba(232, 182, 107, .06); }
.btn .ext { font-size: .9em; opacity: .7; transform: translateY(-1px); transition: transform .25s var(--ease-out); }
.btn:hover .ext { transform: translate(2px, -3px); }
.btn-play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-right: -2px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "\2192"; transition: transform .3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }
.ext { margin-left: 2px; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 72px;
  background:
    radial-gradient(60% 48% at 50% 44%, rgba(232, 182, 107, .10), transparent 70%),
    radial-gradient(90% 70% at 50% 110%, rgba(137, 85, 217, .10), transparent 70%),
    var(--midnight);
}
.hero-motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow {
  position: absolute; left: 50%; top: 40%; width: min(70vw, 720px); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(232, 182, 107, .16), rgba(232, 182, 107, .04) 60%, transparent);
  opacity: 0; pointer-events: none;
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-mark { width: clamp(150px, 22vw, 230px); color: var(--ivory); }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.hero-title { margin-top: clamp(18px, 3vh, 30px); width: clamp(260px, 44vw, 560px); color: var(--ivory); line-height: 0; }
.hero-title img { width: 100%; height: auto; }
.hero-tagline { margin: clamp(14px, 2.2vh, 22px) 0 0; width: clamp(200px, 30vw, 380px); line-height: 0; }
.hero-tagline img { width: 100%; height: auto; }
.hero-lead { max-width: 34em; margin: clamp(28px, 5vh, 48px) auto 0; font-size: var(--step-1); line-height: 1.5; color: var(--ivory-2); }
.hero-actions { justify-content: center; margin-top: 28px; }

/* the trace: each part's outline drawn in gold, then filled ivory (the studio intro, in a line) */
.trace-part { fill: var(--ivory); stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.js [data-trace]:not(.is-tracing):not(.is-traced) .trace-part { fill-opacity: 0; stroke-opacity: 0; }
.js .is-tracing .trace-part { fill-opacity: 0; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.js .is-tracing .trace-spark { opacity: 1; }
.trace-spark { opacity: 0; fill: #FFF3D6; filter: drop-shadow(0 0 6px rgba(255, 220, 160, .95)) drop-shadow(0 0 16px rgba(232, 182, 107, .8)); }
.js .is-traced .trace-part { fill-opacity: 1; stroke-opacity: 0; transition: fill-opacity 1.1s var(--ease), stroke-opacity 1.6s var(--ease); }
.js .hero .hero-title, .js .hero .hero-tagline, .js .hero .hero-lead, .js .hero .hero-actions { opacity: 0; transform: translateY(12px); }
.js .hero.is-ready .hero-title, .js .hero.is-ready .hero-tagline, .js .hero.is-ready .hero-lead, .js .hero.is-ready .hero-actions {
  opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease-out);
}
.js .hero.is-ready .hero-tagline { transition-delay: .1s; }
.js .hero.is-ready .hero-lead { transition-delay: .2s; }
.js .hero.is-ready .hero-actions { transition-delay: .3s; }
.js .hero.is-ready .hero-glow { opacity: 1; transition: opacity 3s var(--ease); }
.js .is-traced .trace-nose { animation: nose 1.2s var(--ease-out); }
@keyframes nose { 0% { filter: drop-shadow(0 0 0 rgba(255, 226, 170, 0)); } 25% { filter: drop-shadow(0 0 18px rgba(255, 226, 170, .95)); } 100% { filter: drop-shadow(0 0 0 rgba(255, 226, 170, 0)); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-title { font: 600 var(--step-3)/1.05 var(--serif); letter-spacing: -.01em; margin-bottom: .55em; }
.page-head { padding: calc(clamp(64px, 9vw, 120px)) 0 clamp(12px, 2vw, 24px); }
.page-title { font: 600 var(--step-4)/1 var(--serif); letter-spacing: -.015em; }
.page-lead { margin-top: 20px; max-width: 40em; font-size: var(--step-1); line-height: 1.55; color: var(--ivory-2); }

/* the game feature card */
.game-feature {
  display: grid; grid-template-columns: 1fr; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--night-1); border: 1px solid var(--line);
}
.game-feature + .game-feature { margin-top: 32px; }
.game-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); }
.game-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out); }
.game-feature:hover .game-art img { transform: scale(1.0); }
.game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 16, 27, .9)); }
.game-body { padding: clamp(24px, 4vw, 48px); margin-top: -12%; position: relative; }
.game-logo { width: clamp(220px, 34vw, 400px); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6)); }
.game-name { line-height: 0; margin-bottom: 22px; }
.game-short { max-width: 44em; font-size: var(--step-1); line-height: 1.55; }
.game-feature .actions { margin-top: 28px; }
@media (min-width: 980px) {
  .game-art { aspect-ratio: 2 / 1; }
  .game-art img { object-position: 50% 18%; }
  .game-body { margin-top: -9%; display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px 56px; align-items: end; }
  .game-name { grid-column: 1; margin-bottom: 0; }
  .game-short { grid-column: 1; margin: 0; }
  .game-body .facts-inline { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0 0 4px; }
  .game-body .actions { grid-column: 1 / -1; margin-top: 20px; }
}

.facts { margin: 0; }
.facts dt { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); }
.facts dd { margin: 6px 0 0; color: var(--ivory); }
.facts-inline { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 24px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid > div { padding: 24px 20px 24px 0; }
.facts-grid > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
@media (max-width: 720px) { .facts-grid > div + div { border-left: 0; padding-left: 0; } .facts-grid > div { border-bottom: 1px solid var(--line); } .facts-grid > div:last-child { border-bottom: 0; } }
.facts-list > div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-list > div:first-child { border-top: 1px solid var(--line); }
.facts-list dd { margin: 0; }
@media (max-width: 520px) { .facts-list > div { grid-template-columns: 1fr; gap: 4px; } }

/* studio */
.studio-split, .prose-split, .feature-split, .press-split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) {
  .studio-split { grid-template-columns: 1fr 1.1fr; }
  .prose-split { grid-template-columns: 1.4fr 1fr; }
  .feature-split { grid-template-columns: 1fr 1.35fr; }
  .feature-flip .feature-copy { order: 2; }
  .press-split { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.studio-copy p, .prose p, .feature-copy p { font-size: var(--step-1); line-height: 1.6; max-width: 34em; }
.studio-figure, .feature-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--night-2); border: 1px solid var(--line); position: relative; }
.studio-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.studio-figure figcaption { position: absolute; left: 16px; bottom: 12px; font: italic 500 1.05rem/1.2 var(--serif); color: var(--ivory); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.emblem-plate { justify-self: center; width: min(320px, 70%); color: var(--ivory); opacity: .9; }
.emblem-plate img { width: 100%; height: auto; }

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 72px 1fr; gap: 8px 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before { content: counter(p, upper-roman); grid-row: span 2; font: italic 500 1.6rem/1 var(--serif); color: var(--gold); padding-top: 4px; }
.principles h3 { font: 600 var(--step-2)/1.1 var(--serif); }
.principles p { margin: 0; max-width: 38em; font-size: var(--step-1); line-height: 1.55; }

/* contact band */
.contact-band { text-align: center; display: flex; flex-direction: column; align-items: center; padding-block: clamp(48px, 7vw, 88px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  background: radial-gradient(70% 120% at 50% 0%, rgba(232, 182, 107, .09), transparent 70%), var(--night-1); }
.contact-band .section-title { margin-bottom: .3em; }
.contact-band p { font-size: var(--step-1); max-width: 32em; }
.contact-band .actions { justify-content: center; margin-top: 12px; }
.section-contact { padding-top: 0; }

/* ---------- game page ---------- */
.game-hero { position: relative; min-height: min(88vh, 900px); display: flex; align-items: flex-end; overflow: hidden; padding: 120px 0 clamp(40px, 7vw, 88px); }
.game-hero-art { position: absolute; inset: 0; background: var(--night-2); }
.game-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 12, 20, .25) 0%, transparent 30%, rgba(13, 12, 20, .55) 62%, var(--midnight) 100%), linear-gradient(90deg, rgba(13, 12, 20, .6), transparent 60%); }
.game-hero-inner { position: relative; z-index: 1; }
.game-hero-title { line-height: 0; }
.game-hero-title img { width: clamp(260px, 40vw, 520px); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .6)); }
.game-hero-lead { max-width: 38em; margin: 24px 0 28px; font-size: var(--step-1); line-height: 1.55; color: var(--ivory); text-shadow: 0 1px 18px rgba(0, 0, 0, .8); }
@media (prefers-reduced-motion: no-preference) {
  .game-hero-art img { animation: drift 30s var(--ease) infinite alternate; }
  @keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
}

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000 center / cover no-repeat; border: 1px solid var(--line); }
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player-start {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border: 0; padding: 0; cursor: pointer; color: var(--ivory); font: 600 1rem/1 var(--sans); letter-spacing: .02em;
  background: radial-gradient(closest-side, rgba(13, 12, 20, .15), rgba(13, 12, 20, .55));
}
.player-start-icon { width: 84px; height: 84px; border-radius: 50%; background: rgba(232, 182, 107, .92); display: grid; place-items: center; box-shadow: 0 10px 40px -6px rgba(232, 182, 107, .6); transition: transform .4s var(--ease-out), background-color .3s; }
.player-start-icon::before { content: ""; border-left: 22px solid var(--midnight); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.player-start:hover .player-start-icon { transform: scale(1.07); background: var(--gold-hi); }
.player-start-label { text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.player-len { color: var(--ivory-3); margin-left: 6px; font-weight: 500; }
html:not(.js) .player-start { display: none; }
.player-wait { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .3s; }
.player.is-waiting .player-wait { opacity: 1; }
.player.is-playing .player-start { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }

.spinner { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(242, 230, 210, .18); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.feature-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.gallery a { display: block; position: relative; border-radius: 10px; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity .5s; }
.gallery a:hover img { transform: scale(1.045); }
.gallery a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(232, 182, 107, 0); transition: box-shadow .3s; }
.gallery a:hover::after, .gallery a:focus-visible::after { box-shadow: inset 0 0 0 1px rgba(232, 182, 107, .7); }

.lightbox { width: min(96vw, 1600px); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--ivory); overflow: visible; }
.lightbox::backdrop { background: rgba(8, 7, 12, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }
.lightbox figure { margin: 0; }
.lightbox-stage { position: relative; aspect-ratio: 16 / 9; max-height: 82vh; margin-inline: auto; border-radius: 10px; overflow: hidden; background: var(--night-1); display: grid; place-items: center; }
.lightbox-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s var(--ease); }
.lightbox-stage.is-loaded img { opacity: 1; }
.lightbox-stage.is-loaded .spinner { display: none; }
.lightbox figcaption { margin-top: 12px; text-align: center; color: var(--ivory-2); font-size: .95rem; min-height: 1.6em; }
.lightbox-btn, .lightbox-close { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(13, 12, 20, .7); color: var(--ivory); cursor: pointer; transition: border-color .2s, background-color .2s; }
.lightbox-btn:hover, .lightbox-close:hover { border-color: var(--gold); background: rgba(232, 182, 107, .12); }
.lightbox-prev { left: 12px; top: calc(50% - 40px); }
.lightbox-next { right: 12px; top: calc(50% - 40px); }
.lightbox-close { right: 0; top: -60px; }
.lightbox-prev::before, .lightbox-next::before { content: ""; width: 11px; height: 11px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(2px) rotate(45deg); }
.lightbox-next::before { transform: translateX(-2px) rotate(-135deg); }
.lightbox-close::before, .lightbox-close::after { content: ""; position: absolute; width: 18px; height: 2px; background: currentColor; transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }

/* ---------- press ---------- */
.press-blurb { font-size: var(--step-1); line-height: 1.55; max-width: 36em; }
.downloads { display: flex; flex-direction: column; gap: 12px; }
.downloads-title { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); margin-bottom: 4px; }
.download {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 16px; align-items: center;
  padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--night-1);
  color: var(--ivory); text-decoration: none; transition: border-color .25s, background-color .25s, transform .3s var(--ease-out);
}
.download::after { content: ""; grid-row: 1 / span 2; grid-column: 2; width: 14px; height: 14px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease-out); }
.download:hover { border-color: rgba(232, 182, 107, .6); background: var(--night-2); color: var(--ivory); }
.download:hover::after { transform: rotate(45deg) translate(2px, 0); }
.download-name { font-weight: 600; }
.download-meta { grid-column: 1; font-size: .88rem; color: var(--ivory-3); }
.brand-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .brand-grid { grid-template-columns: 1fr 1fr; } }
.logo-sample { margin: 0; }
.logo-sample-plate { display: grid; place-items: center; padding: clamp(28px, 6vw, 64px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--midnight); color: var(--ivory); }
.logo-sample-plate img { width: min(100%, 340px); height: auto; }
.logo-sample figcaption { margin-top: 10px; font-size: .9rem; color: var(--ivory-3); }
.brand-notes p { font-size: var(--step-1); line-height: 1.55; }
.swatches { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.swatches li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; color: var(--ivory); font-weight: 500; }
.swatch { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); }
.swatches code { grid-column: 2; font-size: .82rem; }
.swatch-midnight { background: #0D0C14; }
.swatch-ivory { background: #F2E6D2; }
.swatch-gold { background: #E8B66B; }
.swatch-violet { background: #8955D9; }

/* ---------- contact ---------- */
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.contact { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--night-1); display: flex; flex-direction: column; }
.contact-title { font: 600 var(--step-2)/1.1 var(--serif); margin-bottom: 10px; }
.contact p { margin-bottom: 16px; }
.contact-row { margin: auto 0 0 !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-mail { font-weight: 600; word-break: break-all; }
.copy { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ivory-2); font: 500 .85rem/1 var(--sans); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.copy:hover { border-color: var(--gold); color: var(--ivory); }
.copy.is-done { border-color: var(--gold); color: var(--gold); }
html:not(.js) .copy { display: none; }
.note { margin-top: 20px; min-height: 1.6em; color: var(--ivory-3); }

/* ---------- prose / legal ---------- */
.prose { max-width: 46em; }
.legal h2 { font: 600 var(--step-2)/1.15 var(--serif); margin: 1.8em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font: 600 1.05rem/1.3 var(--sans); margin: 1.4em 0 .4em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .5em; }

/* ---------- 404 ---------- */
.lost { position: relative; min-height: calc(100svh - var(--header-h) - 120px); display: grid; place-items: center; overflow: hidden; padding: 80px 0; text-align: center;
  background: radial-gradient(50% 50% at 50% 40%, rgba(137, 85, 217, .10), transparent 70%), var(--midnight); }
.lost-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.lost-mark { width: 110px; color: var(--ivory); opacity: .85; }
.lost-mark img { width: 100%; height: auto; }
.lost-code { margin: 24px 0 6px; font: italic 500 1.3rem/1 var(--serif); color: var(--gold); letter-spacing: .2em; }
.lost .page-lead { margin-inline: auto; }
.lost .actions { justify-content: center; margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .lost-mark { animation: bob 6s var(--ease) infinite alternate; }
  @keyframes bob { to { transform: translateY(-10px) rotate(-2deg); } }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--night-1); padding-top: clamp(48px, 7vw, 80px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } .footer-brand { grid-column: auto; flex-direction: column; align-items: flex-start; } }
.footer-mark { display: block; width: 76px; color: var(--ivory); border-radius: 8px; }
.footer-mark img { width: 100%; height: auto; }
.footer-tag { margin: 0; width: 210px; line-height: 0; }
.footer-tag img { width: 100%; height: auto; }
.footer-head { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { color: var(--ivory-2); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 64px); padding-block: 22px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ivory-3); }
.footer-base p { margin: 0; }
.footer-base a { color: var(--ivory-3); text-decoration: none; }
.footer-base a:hover { color: var(--gold); }

/* ---------- arrivals ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
img.is-fading { opacity: 0; }
img.is-loaded { opacity: 1; transition: opacity .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero .hero-title, .js .hero .hero-tagline, .js .hero .hero-lead, .js .hero .hero-actions { opacity: 1; transform: none; }
  .hero-motes { display: none; }
}

/* page to page: a soft cross-fade where the browser supports it (an enhancement; nothing depends on it) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

@media print {
  .site-header, .site-footer, .hero-motes, .actions, .player, .gallery { display: none !important; }
  body { background: #fff; color: #000; }
}
