:root {
  --u: min(1vw, 1.817svh);
  --color-bg: #080a0d;
  --color-surface: #11151a;
  --color-surface-raised: #181d23;
  --color-border: #2a3139;
  --color-text: #f2f5f7;
  --color-muted: #9aa4ad;
  --color-accent: #1d6fba;
  --color-accent-hover: #2781d1;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;
  --space-9: 10rem;
  --radius-sm: 0.4rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --max-width: 88rem;
  --copy-width: 68ch;
  --duration: 600ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: clamp(5.25rem, 9.341svh, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: the desktop header is sized from 100vw, which includes the vertical scrollbar; clipping the
   two-pixel spill keeps a horizontal scrollbar from appearing under the homepage sequence. */
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); line-height: 1.6; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 100; top: var(--space-3); left: var(--space-3); padding: var(--space-2) var(--space-3); background: var(--color-text); color: var(--color-bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: absolute; z-index: 10; inset: 0 0 auto; width: 100%; height: var(--header-h); margin: auto; }
.site-header > .wordmark { display: none; }
.wordmark { position: absolute; top: 2.995svh; left: clamp(2rem, 2.158vw, 3.5rem); display: inline-flex; align-items: flex-start; gap: clamp(0.75rem, 0.828vw, 1rem); color: var(--color-text); text-decoration: none; }
.wordmark__icon { display: block; width: clamp(7rem, 10.614vw, 11.5rem); height: auto; aspect-ratio: 1; flex: none; background: currentColor; -webkit-mask: url("media/dolmen-icon.svg") center / contain no-repeat; mask: url("media/dolmen-icon.svg") center / contain no-repeat; }
.wordmark__glyphs { display: block; width: clamp(20rem, 23.844vw, 30.2rem); height: auto; aspect-ratio: 520 / 62; margin-top: 3.351svh; background: currentColor; -webkit-mask: url("media/dolmen-wordmark.svg") center / contain no-repeat; mask: url("media/dolmen-wordmark.svg") center / contain no-repeat; }
.site-header nav { position: absolute; top: 5.043svh; right: clamp(2rem, 3.14vw, 4rem); display: flex; align-items: center; gap: var(--space-4); }
.site-header nav a { min-height: 2.75rem; padding: 0.3rem 0.35rem; display: inline-flex; align-items: center; color: var(--color-muted); font-size: 1.025rem; text-decoration: none; transition: color var(--duration) var(--ease); }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--color-text); }

/* --hero-fade (1 at rest, 0 once the zoom has carried the copy away) and --lcd-clip (0 at rest, 1 when
   the photo is clipped to its LCD) are written per frame by main.js; without JavaScript they keep their defaults. */
.hero { --image-h: 44.8464vw; --image-lift: 9.168svh; --desk-depth: 10.35vw; --desk-seam-x: 18vw; --copy-left: clamp(2rem, 2.237vw, 4rem); --copy-box: min(42rem, calc(100vw - 4.75rem)); --desk-gradient: linear-gradient(180deg, transparent 0%, #75503f 4%, #865540 20%, #885943 40%, #a46647 58%, #b16e4c 76%, #986851 95%, #af7556 100%); --hero-fade: 1; --lcd-clip: 0; position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero__desk-extension { position: absolute; z-index: -5; inset: auto 0 0; height: calc(var(--image-lift) + var(--desk-depth)); background: var(--desk-gradient); opacity: var(--hero-fade); }
/* .hero__stage is the photo's box and the one element the zoom engine transforms; its origin is the LCD centre
   (398 + 1194/2 of 1672, 16 + 673/2 of 940). The picture fills it; the LCD rect is the same source geometry. */
.hero__stage { position: absolute; z-index: -4; right: -1.935vw; bottom: var(--image-lift); height: min(var(--image-h), calc(100% - var(--header-h) - var(--image-lift))); aspect-ratio: 1672 / 940; transform-origin: 59.51% 37.5%; }
.hero__stage.is-moving { will-change: transform; }
.hero__backdrop { position: absolute; inset: 0; display: block; margin: 0; clip-path: inset(calc(1.702% * var(--lcd-clip)) calc(4.785% * var(--lcd-clip)) calc(26.702% * var(--lcd-clip)) calc(23.804% * var(--lcd-clip))); }
.hero__backdrop img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right bottom; }
.hero__lcd { position: absolute; left: 23.804%; top: 1.702%; width: 71.411%; height: 71.596%; overflow: hidden; background: transparent; }
/* Feather the photo itself; an opaque overlay inside it creates a rectangular seam. */
.hero__desk-blend { display: none; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8,10,13,.92) 0%, rgba(8,10,13,.6) 35%, transparent 60%); opacity: var(--hero-fade); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: var(--header-h); pointer-events: none; background: var(--color-bg); opacity: var(--hero-fade); }
.hero__brand, .hero__copy, .hero__tagline, .hero__providers, .hero__platforms { opacity: var(--hero-fade); }
.hero.is-away .hero__brand, .hero.is-away .hero__copy, .hero.is-away .hero__tagline, .hero.is-away .hero__providers, .hero.is-away .hero__platforms { visibility: hidden; }
.hero__content { --hero-column: clamp(23rem, calc(34 * var(--u)), 54rem); position: relative; z-index: 1; width: var(--hero-column); min-height: 100svh; margin-left: max(2rem, calc(5.8 * var(--u))); padding: clamp(1.75rem, calc(2.54 * var(--u)), 4rem) 0 clamp(1.25rem, calc(2 * var(--u)), 3rem); display: flex; flex-direction: column; align-items: flex-start; box-sizing: border-box; }
.hero__brand { width: 100%; display: flex; align-items: flex-end; gap: 0; color: var(--color-text); text-decoration: none; }
.hero__brand-icon { width: clamp(6.5rem, calc(9.85 * var(--u)), 14.5rem); aspect-ratio: 1; flex: none; background: currentColor; -webkit-mask: url("media/dolmen-icon.svg") center / contain no-repeat; mask: url("media/dolmen-icon.svg") center / contain no-repeat; }
.hero__brand-wordmark { width: clamp(14rem, calc(20.7 * var(--u)), 33rem); aspect-ratio: 520 / 62; flex: none; margin: 0 0 clamp(1.2rem, calc(1.67 * var(--u)), 2.45rem) clamp(0.1rem, calc(0.15 * var(--u)), 0.3rem); background: currentColor; -webkit-mask: url("media/dolmen-wordmark.svg") center / contain no-repeat; mask: url("media/dolmen-wordmark.svg") center / contain no-repeat; }
.hero__copy { width: 100%; margin-top: 0; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { width: 100%; margin: 0; color: var(--color-accent-hover); font-size: clamp(0.9rem, calc(1.392 * var(--u)), 2rem); font-weight: 700; line-height: 1.35; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { width: 100%; max-width: none; margin: clamp(1rem, calc(1.82 * var(--u)), 2.9rem) 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, calc(3.125 * var(--u)), 5rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.035em; text-shadow: 0 .12em 1rem rgba(8,10,13,.55); }
.hero__lede { width: 100%; max-width: none; margin: clamp(1rem, calc(1.94 * var(--u)), 3.1rem) 0 0; color: #bdc6ce; font-size: clamp(0.8rem, calc(1.06 * var(--u)), 1.7rem); line-height: 1.5; text-shadow: 0 1px .7rem rgba(8,10,13,.8); }
.hero__actions { width: 100%; margin: clamp(0.7rem, calc(1.4 * var(--u)), 1.6rem) 0 0; display: flex; flex-wrap: nowrap; align-items: flex-start; gap: clamp(0.4rem, calc(0.9 * var(--u)), 1.4rem); }
.button { min-height: 3rem; padding: 0.72rem 1.15rem; border: 1px solid transparent; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--color-text); font: inherit; font-weight: 650; text-decoration: none; transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.button--primary { background: var(--color-accent); }
.button--primary:not(:disabled):hover, .button--primary:not(:disabled):focus-visible { background: var(--color-accent-hover); }
.button--secondary { border-color: var(--color-border); background: var(--color-surface); }
.button--secondary:hover, .button--secondary:focus-visible { border-color: var(--color-muted); }
.button--ghost { border-color: color-mix(in srgb, var(--color-accent-hover) 62%, transparent); background: rgba(8, 10, 13, .28); color: #8cc8ff; }
.button--ghost:hover, .button--ghost:focus-visible { border-color: var(--color-accent-hover); background: rgba(39, 129, 209, .12); color: var(--color-text); }
.button--link { color: var(--color-accent-hover); }
.button[disabled] { opacity: .55; cursor: not-allowed; }
.hero__compatibility { width: 100%; margin-top: clamp(0.9rem, calc(1.8 * var(--u)), 2.7rem); }
.hero__tagline { width: 100%; margin: 0; color: #f2f5f8; font-size: clamp(1.1rem, calc(1.64 * var(--u)), 2.625rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.hero__providers { width: 100%; margin-top: clamp(0.8rem, calc(1.68 * var(--u)), 2.75rem); display: flex; align-items: center; justify-content: flex-start; gap: clamp(0.75rem, calc(1.6 * var(--u)), 2.5rem); }
.hero__providers img { width: auto; height: clamp(2.25rem, calc(3.8 * var(--u)), 6.0625rem); max-width: none; object-fit: contain; opacity: .92; }
.hero__providers .provider-mark--light { filter: invert(1); }
.hero__platforms { display: flex; align-items: center; gap: clamp(1rem, calc(1.8 * var(--u)), 2.25rem); width: max-content; margin-top: clamp(0.55rem, calc(0.85 * var(--u)), 1.25rem); color: #aab4bd; font-size: clamp(0.7rem, calc(0.93 * var(--u)), 1.25rem); font-weight: 650; letter-spacing: .06em; }
.hero__platforms span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__platforms img { width: auto; height: clamp(1.75rem, calc(2.52 * var(--u)), 3.5rem); max-width: none; object-fit: contain; opacity: .68; }
.hero__platforms .platform-mark--light { filter: invert(1); }
.hero__platforms .hero__license { margin-left: 0.125rem; padding-left: 1.15rem; border-left: 1px solid rgba(170,180,189,.3); }

@media (min-width: 768px) {
  :root {
    --hero-scale: min(calc(100vw / 1699px), calc(100svh / 935px));
    --hero-stage-width: calc(1699px * var(--hero-scale));
    --hero-stage-x: max(0px, calc((100vw - var(--hero-stage-width)) / 2));
    --header-h: calc(87.328px * var(--hero-scale));
  }

  .site-header { inset: 0 auto auto var(--hero-stage-x); width: calc(1684px * var(--hero-scale)); height: var(--header-h); }
  .wordmark { top: calc(28px * var(--hero-scale)); left: calc(36.656px * var(--hero-scale)); gap: calc(14.063px * var(--hero-scale)); }
  .wordmark__icon { width: calc(180.328px * var(--hero-scale)); }
  .wordmark__glyphs { width: calc(405.109px * var(--hero-scale)); margin-top: calc(31.328px * var(--hero-scale)); }
  .site-header nav { top: calc(47.141px * var(--hero-scale)); right: calc(53.344px * var(--hero-scale)); gap: calc(24px * var(--hero-scale)); }
  .site-header nav a { font-size: clamp(0.9rem, calc(17px * var(--hero-scale)), 1.1rem); }

  .hero { min-height: 100svh; }
  .hero__desk-extension { inset: calc(706.438px * var(--hero-scale)) 0 0; height: auto; }
  /* Keep the mat opaque to its front edge; only the photo's sides blend into the desk. */
  .hero__stage { top: calc(87.344px * var(--hero-scale)); right: auto; bottom: auto; left: calc(var(--hero-stage-x) + 361.609px * var(--hero-scale)); width: calc(1355.266px * var(--hero-scale)); height: auto; }
  .hero__backdrop { -webkit-mask-image: linear-gradient(90deg, transparent, #000 calc(80px * var(--hero-scale)), #000 calc(100% - 80px * var(--hero-scale)), transparent); mask-image: linear-gradient(90deg, transparent, #000 calc(80px * var(--hero-scale)), #000 calc(100% - 80px * var(--hero-scale)), transparent); }
  .hero::before { inset: 0; width: auto; background: linear-gradient(90deg, rgba(8,10,13,.92) 0 var(--hero-stage-x), rgba(8,10,13,.6) calc(var(--hero-stage-x) + 589.4px * var(--hero-scale)), transparent calc(var(--hero-stage-x) + 1010.4px * var(--hero-scale)) 100%); }
  .hero::after { height: var(--header-h); }

  .hero .button { min-height: clamp(2.35rem, calc(2.45 * var(--u)), 3.75rem); padding: clamp(0.48rem, calc(0.65 * var(--u)), 1rem) clamp(0.65rem, calc(0.85 * var(--u)), 1.35rem); font-size: clamp(0.72rem, calc(0.78 * var(--u)), 1.25rem); line-height: 1.35; white-space: nowrap; }
}

.site-footer { max-width: var(--max-width); margin: 0 auto; padding: var(--space-6) clamp(1.25rem, 4vw, 4rem); border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; gap: var(--space-4); color: var(--color-muted); font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }

@media (min-width: 768px) and (max-height: 700px) {
  :root { --u: min(1vw, 1.55svh); }
  .hero__content { padding-top: calc(2 * var(--u)); }
  .hero__brand-icon { width: calc(9.85 * var(--u)); }
  .hero__brand-wordmark { width: calc(20.7 * var(--u)); margin-bottom: calc(1.67 * var(--u)); margin-left: calc(0.15 * var(--u)); }
  .eyebrow { font-size: max(0.8rem, calc(1.392 * var(--u))); }
  h1 { font-size: max(1.8rem, calc(3.125 * var(--u))); }
  .hero .button { min-height: 2.2rem; }
  .hero__platforms img { height: max(1.6rem, calc(2.52 * var(--u))); }
}

@media (min-width: 768px) and (min-height: 701px) and (max-height: 820px) {
  .hero__platforms { margin-top: max(0.55rem, calc(0.75 * var(--u))); }
}

/* Interior pages and shared components (phase 1) */
.page-header { max-width: var(--max-width); min-height: 6rem; margin: 0 auto; padding: 1.25rem clamp(1.25rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); border-bottom: 1px solid var(--color-border); }
.page-header .wordmark { position: static; display: inline-flex; align-items: center; gap: .75rem; font-size: 1rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
/* The icon SVG paints with currentColor, which an <img> cannot inherit; invert the remaining <img> lockups to the light text colour. */
.page-header .wordmark img { width: 3.5rem; height: 3.5rem; filter: invert(1) brightness(0.95); }
.page-header nav { display: flex; align-items: center; gap: .6rem 1rem; }
.page-header nav a { color: var(--color-muted); font-size: .9rem; text-decoration: none; }
.page-header nav a:hover, .page-header nav a:focus-visible { color: var(--color-text); }
.page-header nav a[aria-current="page"] { color: var(--color-text); text-decoration: underline; text-underline-offset: .4rem; }
.section { width: 100%; max-width: var(--max-width); min-height: 55vh; margin: 0 auto; padding: var(--space-8) clamp(1.25rem, 4vw, 4rem); }
.section__title { max-width: 18ch; margin: 0 0 var(--space-4); font: 400 clamp(2.6rem, 7vw, 5.5rem)/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: var(--space-4); }
.card { padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.prose { max-width: var(--copy-width); }
.cta-group { display: flex; flex-direction: column; align-items: flex-start; }
.pending-note { max-width: 30ch; margin: .35rem 0 0; color: var(--color-muted); font-size: .85rem; line-height: 1.35; }
.price { font-size: 1.4rem; }
.release-meta { color: var(--color-muted); }
.holding-notice { max-width: var(--copy-width); padding: var(--space-4); border-left: 3px solid var(--color-accent); background: var(--color-surface); }
.placeholder-frame { min-height: 14rem; border: 1px dashed var(--color-muted); display: grid; place-items: center; color: var(--color-muted); }


@media (max-width: 767px) {
  :root { --header-h: 7.25rem; }
  html { scroll-behavior: auto; }
  .wordmark { top: 0.875rem; left: 0.875rem; align-items: center; gap: clamp(0.45rem, 2.3vw, 0.6rem); }
  .wordmark__icon { width: 3.5rem; height: 3.5rem; }
  .wordmark__glyphs { width: min(17.6rem, calc(100vw - 5.85rem)); height: 3.5rem; margin-top: 0; }
  .site-header nav { display: flex; flex-wrap: wrap; top: 0.75rem; left: 1.25rem; right: 1.25rem; gap: .15rem 0.8rem; }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 2.25rem; font-size: 0.8125rem; }
  .hero { --image-h: 50vw; --image-lift: 0px; --desk-depth: 12.75vw; min-height: auto; padding: 0; display: flex; flex-direction: column; }
  .hero__desk-extension { height: 12.75vw; }
  .hero__desk-blend { display: none; }
  .hero__stage { position: relative; order: 2; top: auto; right: auto; bottom: auto; left: auto; width: 100%; height: auto; aspect-ratio: 1672 / 940; }
  .hero__backdrop img { object-position: right bottom; }
  .hero::before { background: linear-gradient(90deg, rgba(8,10,13,.9) 0%, rgba(8,10,13,.68) 65%, rgba(8,10,13,.28) 100%); }
  .hero__content { --hero-column: auto; order: 1; width: auto; min-height: auto; margin: 0; padding: 6.5rem 1.25rem 2rem; }
  .hero__brand { width: min(100%, 28rem); }
  .hero__brand-icon { width: 30%; }
  .hero__brand-wordmark { width: 64%; margin-left: 1%; margin-bottom: 5.1%; }
  .hero__copy { width: 100%; max-width: 34rem; margin-top: 1rem; }
  h1 { font-size: clamp(2.8rem, 13.5vw, 4rem); }
  .hero__actions { width: 100%; margin: var(--space-4) 0 0; flex-flow: row wrap; align-items: flex-start; }
  .hero__actions > .button { flex: 1 1 9rem; white-space: nowrap; }
  .hero__compatibility { width: 100%; margin-top: var(--space-5); }
  .hero__tagline { font-size: 1.15rem; }
  .hero__providers { max-width: 24rem; }
  .hero__providers img { height: clamp(2.1rem, 9.5vw, 2.35rem); }
  .hero__platforms { width: 100%; flex-wrap: wrap; }
  .hero__platforms { gap: 1.35rem; margin-top: 1rem; font-size: .75rem; }
  .hero__platforms img { height: 2rem; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-header nav { width: 100%; flex-wrap: wrap; }
  .page-header nav a { min-height: 2.25rem; display: inline-flex; align-items: center; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .button, .button[disabled], .beat__caption, .lcd__placeholder { border: 1px solid CanvasText; }
}
