/* Gastown landing, built on the Hermes landing system: a near-black page in a thin blue frame, giant thin condensed caps,
   tiny caps labels, small square buttons, all in Gastown Sans, and one full-bleed blue band where an old photograph of New York sits in halftone.
   Every colour, both faces and the radii come from tokens.css. */
:root {
  --scan: repeating-linear-gradient(to bottom, #000 0 1.5px, transparent 1.5px 3px);  /* scanlines for the engravings */
  /* film grain: white fractal noise, laid over every blue surface */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .28 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Halftone art: each image is a dot mask (art/*.png, dithered from public domain works), tinted with --band-art */
.art { position: relative; overflow: hidden; background: var(--grain), var(--band); }
.art::before { content: ""; position: absolute; inset: -9% 0; transform: translate3d(0, var(--ty, 0px), 0); background: var(--band-art); -webkit-mask: var(--img) center / cover no-repeat; mask: var(--img) center / cover no-repeat; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: var(--size-body); line-height: 24px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code { font-size: .9em; padding: 2px 6px; border-radius: var(--r-sq); background: var(--surface); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }
.center { text-align: center; }

h1, h2, h3, .label { font-family: var(--display); }
h1, h2, h3 { text-wrap: balance; }
/* the wing, in the accent, over a section title */
.wing { display: block; width: 56px; height: 56px; margin: 0 auto var(--sp-4); background: var(--accent); -webkit-mask: url(mark.svg) center / contain no-repeat; mask: url(mark.svg) center / contain no-repeat; }
h1 { font-size: clamp(60px, 11vw, 168px); line-height: .92; font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; }
h2 { font-size: clamp(40px, 6vw, 88px); line-height: .95; font-weight: 700; text-transform: uppercase; letter-spacing: -.025em; }
h3 { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; }
.label { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: var(--sp-4); }

.btn { white-space: nowrap; height: 40px; padding: 0 var(--sp-4); border-radius: var(--r-sq); display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: background var(--motion), color var(--motion), border-color var(--motion); }
.btn-solid { background: var(--btn); color: #fff; }
.btn-solid:hover { background: color-mix(in srgb, var(--btn) 82%, #fff); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn:focus-visible, .foot-cols a:focus-visible, .nav-brand:focus-visible, .nav-links a:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.nav { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-5); height: 56px; padding: 0 var(--sp-5); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.nav-brand { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: var(--r-icon); }
.nav-links { display: flex; gap: var(--sp-5); font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: var(--sub); }
.nav-links a:hover { color: var(--text); }
.nav-brand { grid-column: 2; }
.nav-end .btn { transition: opacity .2s, visibility .2s; }
.nav.cta-off .nav-end .btn { opacity: 0; visibility: hidden; }
.nav-end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--sp-5); }
/* the thin blue frame down both edges of the window */
@media (min-width: 900px) { body::after { content: ""; position: fixed; inset: 0; border-inline: 4px solid var(--frame); pointer-events: none; z-index: 30; } }

.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: calc(100svh - 56px); padding: var(--sp-9) 0; background: #05070d; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* the film, a little oversize so the parallax drift never shows an edge, under a dark wash that lets the type read */
.hero-video { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,7,13,.72), rgba(5,7,13,.5) 45%, rgba(5,7,13,.86)); }
.hero .label, .hero .lead, .hero .fine { color: rgba(255,255,255,.78); }
.hero .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-copy { will-change: transform, opacity; }
.store-bar { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: 48px; padding: var(--sp-1) var(--sp-4); background: #000; color: #fff; text-decoration: none; font-size: 14px; }
.store-bar img { display: block; height: 32px; width: auto; }
.store-bar:hover span { text-decoration: underline; }
/* iPhone and iPad already get Safari's smart App Store banner (meta apple-itunes-app), so the bar is desktop only. */
@media (hover: none) { .store-bar { display: none; } }
.store-badge { display: inline-flex; align-items: center; height: 40px; }
.store-badge img { display: block; height: 40px; width: auto; }
.lead { max-width: 560px; margin: var(--sp-6) auto 0; color: var(--sub); }
.cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.center .cta { justify-content: center; }
.fine { margin-top: var(--sp-3); font-size: var(--size-footnote); line-height: 16px; color: var(--sub); }


/* the stage: halftone art under the film */
.stage { position: relative; overflow: hidden; background: var(--grain), var(--band); padding: clamp(24px, 6vw, 96px) clamp(12px, 7vw, 128px); }
.stage-art { position: absolute; inset: 0; }

/* The blue band: the engraving in scanlines beside the section head, then the six features as ruled cells */
.band { margin: 0 clamp(0px, 3vw, 44px); background: var(--grain), var(--band); color: #fff; overflow: hidden; }
.band .label { color: var(--band-sub); }
.band-head { text-align: center; }
.band-art { aspect-ratio: 19 / 10; max-height: 86vh; width: 100%; background: none; }
.band-copy { position: relative; margin-top: -10vw; padding: 0 var(--sp-5) var(--sp-9); }
.band-copy h2 { font-size: clamp(44px, 8vw, 128px); line-height: .92; }
.band-copy p:last-child { margin: var(--sp-6) auto 0; max-width: 480px; color: var(--band-sub); }
.frows { border-top: 1px solid var(--band-line); }
.frow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-bottom: 1px solid var(--band-line); }
.frow .art { aspect-ratio: 3 / 2; background: var(--grain), color-mix(in srgb, #fff 6%, var(--band)); }
.frow:nth-child(even) .art { order: 2; }
.frow > div:not(.art) { padding: var(--sp-7) clamp(24px, 6vw, 96px); max-width: 560px; }
.frow h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; font-weight: 600; }
.frow p:last-child { margin-top: var(--sp-4); color: var(--band-sub); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--band-line); }
.cell { padding: var(--sp-6) var(--sp-6) var(--sp-7); border-right: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.cell:nth-child(3n) { border-right: 0; }
.cell:nth-last-child(-n+3) { border-bottom: 0; }
.cell .label { margin-bottom: var(--sp-5); }
.cell p:last-child { margin-top: var(--sp-3); color: var(--band-sub); font-size: 15px; line-height: 22px; }

.sec { padding: var(--sp-9) 0; }
.body { color: var(--sub); margin-top: var(--sp-5); max-width: 560px; }
.center .body { margin-left: auto; margin-right: auto; }

/* a real run: the playthrough video on a second halftone stage */
.film-stage { margin-top: var(--sp-7); }
.film-stage .film { position: relative; max-width: 960px; margin: 0 auto; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.film-stage video { display: block; width: 100%; height: auto; }

.plats { border-top: 1px solid var(--line); }
.plat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-7); }
.plat-row > div { flex: 1 1 280px; max-width: 440px; padding: var(--sp-6); border-radius: 4px; border: 1px solid var(--line); display: grid; gap: var(--sp-2); justify-items: center; }
.plat-row small { font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.plat-row b { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 40px; text-transform: uppercase; letter-spacing: -.02em; }
.plat-row p { color: var(--sub); font-size: 15px; line-height: 22px; margin-bottom: var(--sp-3); }

/* Footer: brand and link columns, the engraved band of Hermes' things, one fine line */
.foot { text-align: center; padding: var(--sp-8) var(--sp-4) var(--sp-5); background: var(--bg); overflow: hidden; border-top: 1px solid var(--line); }
.foot-top { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-7); text-align: left; }
.foot-brand { display: grid; gap: var(--sp-2); align-content: start; }
.foot-brand img { border-radius: var(--r-icon); }
.foot-brand b { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 36px; text-transform: uppercase; letter-spacing: -.02em; }
.foot-brand p { color: var(--sub); font-size: 15px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.foot-cols div { display: grid; gap: var(--sp-2); align-content: start; }
.foot-cols .label { margin-bottom: var(--sp-2); }
.foot-cols a { color: var(--text); text-decoration: none; font-size: 15px; }
.foot-cols a:hover { color: var(--accent); }
.word-band { color: var(--accent); position: relative; width: 100vw; margin: var(--sp-6) 0 0 calc(50% - 50vw); height: clamp(160px, 24vw, 340px); }
.word-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.word-band.live .word-canvas { display: block; }
.legal { margin-top: var(--sp-2); font-size: var(--size-footnote); line-height: 16px; color: var(--sub); text-wrap: balance; }

/* Privacy page: the same nav and footer, then one reading column */
.docs { max-width: var(--wrap); margin: 0 auto; padding: var(--sp-8) var(--sp-5) var(--sp-9); }
.doc { max-width: 720px; display: grid; gap: var(--sp-8); }
.doc section { display: grid; gap: var(--sp-4); justify-items: start; scroll-margin-top: 88px; }
.doc h2 { font-size: clamp(44px, 5vw, 72px); margin-bottom: var(--sp-2); }
.doc .label { margin-bottom: 0; }
.doc p { color: var(--sub); }
.doc a:not(.btn) { color: var(--accent); }
.privacy { max-width: 760px; }
.doc-h1 { font-size: clamp(56px, 8vw, 104px); line-height: .95; margin-bottom: var(--sp-3); }
.legal a { color: inherit; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .frow { grid-template-columns: 1fr; }
  .frow:nth-child(even) .art { order: 0; }
  .frow > div:not(.art) { padding: var(--sp-6) var(--sp-5) var(--sp-7); }
  .band-copy { margin-top: -14vw; }
  .cells { grid-template-columns: 1fr 1fr; }
  .cell, .cell:nth-child(3n), .cell:nth-last-child(-n+3) { border-right: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
  .cell:nth-child(2n) { border-right: 0; }
  .cell:nth-last-child(-n+2) { border-bottom: 0; }
  }
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav { gap: var(--sp-3); padding: 0 var(--sp-4); }
  .wrap { padding: 0 var(--sp-4); }
  .hero { padding-top: var(--sp-8); }
  .cells { grid-template-columns: 1fr; }
  .cell, .cell:nth-child(2n), .cell:nth-child(3n), .cell:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--band-line); padding: var(--sp-5); }
  .cell:last-child { border-bottom: 0; }
  .word-band { height: 260px; }
  .foot-cols { gap: var(--sp-6); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { top: 0; height: 100%; transform: none !important; }
  .hero-copy { transform: none !important; opacity: 1 !important; }
  .art::before { transform: none; inset: 0; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
