/* Nexhub preview site. Colours only from generated/tokens.css (Eclipse), type from generated/fonts.css. */

/* ── site scale: space, radius, motion ── */
:root {
  --wrap: 1120px;
  --pad: max(16px, min(32px, 4vw));
  --gutter: max(var(--pad), calc((100% - var(--wrap)) / 2));
  --bar-h: 70px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
  --frame: 16 / 10;
  --lift: 0 1px 0 color-mix(in srgb, var(--text-primary) 5%, transparent) inset;
  color-scheme: dark;
}

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
/* The gutter stays when the preview locks the page, so nothing shifts sideways. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: calc(var(--bar-h) + 12px); }
html:has(.viewer[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--text-primary);
  font: 400 16px/1.6 var(--font-prose);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--primary-glow); color: var(--text-primary); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.skip {
  position: fixed; left: 16px; top: -48px; z-index: 30; padding: 8px 14px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--edge-subtle); text-decoration: none; font-size: 14px;
}
.skip:focus { top: 16px; }

/* ── type ── */
.eyebrow {
  font: 500 12px/1.4 var(--font-data); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
h2 {
  font: 600 clamp(30px, 3.6vw, 44px)/1.12 var(--font-prose); letter-spacing: -.025em;
  color: var(--text-heading); text-wrap: balance;
}
h3 { font: 600 18px/1.35 var(--font-prose); letter-spacing: -.01em; color: var(--text-heading); }
.lede {
  margin-top: 18px; max-width: 60ch;
  font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; color: var(--text-muted); text-wrap: pretty;
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-prose); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn svg { flex: none; }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-primary {
  background: var(--primary); color: var(--on-primary);
  border-color: color-mix(in srgb, var(--primary) 80%, var(--on-primary));
  box-shadow: 0 6px 22px var(--primary-soft), inset 0 1px 0 color-mix(in srgb, var(--on-primary) 18%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn-primary:disabled { filter: saturate(.6); cursor: default; transform: none; }
.btn-ghost { background: color-mix(in srgb, var(--card) 60%, transparent); border-color: var(--edge-subtle); color: var(--text-primary); }
.btn-ghost:hover { background: var(--hover-bg); border-color: var(--edge-hover); }
.btn-quiet { background: transparent; border-color: var(--edge-subtle); color: var(--text-primary); }
.btn-quiet:hover { border-color: var(--edge-hover); background: var(--hover-bg); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); cursor: pointer;
  background: transparent; border: 1px solid var(--edge-subtle); color: var(--text-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.icon-btn:hover:not(:disabled) { color: var(--text-primary); border-color: var(--edge-hover); background: var(--hover-bg); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ── the wordmark: the mark to the left of the name, the tagline beside it ── */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark-mark { width: 26px; height: 26px; flex: none; }
.wordmark-name { font: 600 18px/1 var(--font-prose); letter-spacing: -.02em; color: var(--text-primary); }
.wordmark-tag {
  margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--edge-subtle);
  font: 400 12px/1 var(--font-data); letter-spacing: .04em; color: var(--text-muted);
}

/* ── header: sticky, a thin ground under it once the page moves ── */
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--bar-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease);
}
.bar.scrolled { border-bottom-color: var(--hairline); }
.bar-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.bar-links { display: flex; gap: 26px; margin-left: auto; }
.bar-links a {
  font-size: 14px; color: var(--text-muted); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.bar-links a:hover { color: var(--text-primary); }
.bar .btn { margin-left: 8px; }

/* ── shots: every screenshot sits in one 16:10 frame. site.js measures each image,
   trims the thin black strip along its top, and picks cover or fit ── */
.shot {
  display: block; position: relative; width: 100%; aspect-ratio: var(--frame); overflow: hidden;
  container-type: size; background: var(--bg);
}
.shot-crop {
  display: block; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: max(100cqw, calc(100cqh * var(--r, 1.6))); aspect-ratio: var(--r, 1.6); overflow: hidden;
}
.shot-crop img {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto; max-width: none;
  opacity: 0; transition: opacity 420ms var(--ease);
}
.shot.ready .shot-crop img { opacity: 1; }
/* A view that is not a full screen (a widget) floats whole in the frame. */
.shot.fit { background: radial-gradient(ellipse at 50% 40%, var(--accent-soft), transparent 70%), var(--bg); }
.shot.fit .shot-crop {
  top: 50%; transform: translate(-50%, -50%);
  width: min(90cqw, calc(86cqh * var(--r, 1.6)));
  border-radius: 10px; border: 1px solid var(--edge-subtle);
}

/* A framed app window: the hero shot and the theme preview. */
.window {
  border-radius: var(--r-xl); overflow: hidden; background: var(--card);
  border: 1px solid var(--edge-subtle); box-shadow: var(--lift);
}

/* ── hero: copy left, mark right, the point field behind both ── */
.hero { position: relative; padding-bottom: clamp(56px, 8vw, 104px); isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; z-index: -2; right: -8%; top: -160px; width: min(1100px, 120%); height: 960px;
  pointer-events: none; background: radial-gradient(closest-side, var(--primary-soft), transparent); /* fades out inside its own box, so no edge shows */
}
.hero-stage {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center; gap: clamp(24px, 5vw, 64px); padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(24px, 4vw, 48px);
}
.field {
  position: absolute; inset: -40px 0 -40px; z-index: -1; width: 100%; height: calc(100% + 80px); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, var(--bg) 14%, var(--bg) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, var(--bg) 14%, var(--bg) 78%, transparent 100%);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-name {
  font: 600 clamp(56px, 7.4vw, 96px)/1 var(--font-prose); letter-spacing: -.045em;
  background: linear-gradient(120deg, var(--text-primary) 25%, var(--accent) 135%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.hero-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; }
.hero-lines span { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--text-muted); }
.hero-lines span:last-child { color: var(--text-primary); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-mark { justify-self: center; width: min(100%, clamp(200px, 30vw, 372px)); aspect-ratio: 1; }
.hero-mark img { width: 100%; height: 100%; }

.hero-shot { margin-top: clamp(32px, 5vw, 64px); position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: 10% 12% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--primary-soft), transparent 70%);
}
.hero-shot .window { box-shadow: var(--lift), 0 40px 120px -40px var(--primary-glow); }
.hero-shot figcaption {
  margin-top: 14px; text-align: center;
  font: 400 12px/1.4 var(--font-data); letter-spacing: .08em; color: var(--text-faint);
}

/* ── sections ── */
.section { padding-block: clamp(80px, 11vw, 148px); position: relative; }
.section + .section { border-top: 1px solid var(--hairline); }

/* The film: one player, the wide cut at 16:9 or the vertical cut at 9:16 (site.js sets .tall).
   The big play button covers it until the first press; native controls after. */
/* It follows the hero, which carries its own bottom space, so its top is shorter. */
#film { padding-top: clamp(24px, 4vw, 56px); }
.film {
  position: relative; margin-top: 40px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-xl); background: var(--card);
  border: 1px solid var(--edge-subtle); box-shadow: var(--lift), 0 40px 120px -48px var(--primary-glow);
}
.film.tall { aspect-ratio: 9 / 16; width: min(100%, calc(78svh * 9 / 16)); margin-inline: auto; }
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
.film-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; padding: 0; border: 0; cursor: pointer; color: var(--text-primary);
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--bg) 30%, transparent), color-mix(in srgb, var(--bg) 55%, transparent));
  font: 500 13px/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase;
  transition: background var(--dur) var(--ease);
}
.film-play-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); padding-left: 4px;
  box-shadow: 0 10px 40px var(--primary-glow), inset 0 1px 0 color-mix(in srgb, var(--on-primary) 18%, transparent);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.film-play:hover .film-play-icon { transform: scale(1.05); filter: brightness(1.07); }
.film-play:focus-visible { outline-offset: -6px; border-radius: var(--r-xl); }
.film-sound { position: absolute; top: 14px; right: 14px; background: color-mix(in srgb, var(--bg) 72%, transparent); }

/* Releases: one row per release, newest first */
.releases { display: flex; flex-direction: column; margin-top: 40px; border-top: 1px solid var(--hairline); }
.release {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 8px 32px;
  padding-block: 24px; border-bottom: 1px solid var(--hairline);
}
.release-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.release-ver { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--font-data); color: var(--text-heading); }
.release-latest {
  padding: 4px 8px; border-radius: 999px; background: var(--primary-soft); border: 1px solid var(--primary-border);
  font: 500 10.5px/1 var(--font-data); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.release-date { font: 400 13px/1.3 var(--font-data); color: var(--text-faint); }
.release-msg { font-size: 16px; line-height: 1.6; color: var(--text-muted); max-width: 62ch; }
.releases-empty { margin-top: 40px; font-size: 15px; color: var(--text-muted); }

/* What Nexhub is: three words, side by side */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 44px); margin-top: 48px; }
.pillar { border-top: 1px solid var(--edge-subtle); padding-top: 24px; }
.pillar h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.pillar p { color: var(--text-muted); font-size: 15.5px; max-width: 34ch; }

/* The pages: the row of cards */
.row-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.tier-jump { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--edge-subtle); }
.tier-btn {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: var(--r-sm);
  border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
  font: 500 14px/1.2 var(--font-prose);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tier-btn span { font: 400 12px/1 var(--font-data); color: var(--text-faint); }
.tier-btn:hover { color: var(--text-primary); }
.tier-btn[aria-current="true"] { background: var(--primary-soft); color: var(--text-primary); }
.tier-btn[aria-current="true"] span { color: var(--accent); }
.row-arrows { display: flex; gap: 8px; }

/* Free scrolling, no snap: site.js steps the arrows by whole cards instead. The
   native scrollbar spans the whole screen, so it is hidden for a short track below. */
.row {
  position: relative; display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  padding: 28px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row-track {
  position: relative; width: 160px; height: 4px; margin: 4px auto 0; border-radius: 999px;
  background: var(--edge-subtle); overflow: hidden;
}
.row-track i {
  position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--text-muted);
  width: var(--thumb-w, 30%); left: var(--thumb-x, 0%);
}
.row > li { flex: none; width: clamp(264px, 28vw, 336px); display: flex; }
.card {
  display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--edge-subtle); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--lift);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--edge-hover); box-shadow: var(--lift), 0 18px 40px -22px var(--primary-glow); }
.card:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
.card .shot { border-bottom: 1px solid var(--hairline); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.card-name { display: block; font: 600 18px/1.3 var(--font-prose); letter-spacing: -.01em; color: var(--text-heading); }
.card-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; line-height: 1.55; color: var(--text-muted);
}
.card-open {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font: 500 12px/1 var(--font-data); letter-spacing: .06em; color: var(--text-faint);
  transition: color var(--dur) var(--ease);
}
.card:hover .card-open, .card:focus-visible .card-open { color: var(--accent); }

/* The tier label: Central, Space, Extra */
.tier {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font: 500 11px/1 var(--font-data); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.tier::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tier-central { color: var(--accent); }
.tier-central::before { background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.tier-space::before { border: 1.5px solid var(--accent); }
.tier-extra::before { border: 1.5px dashed var(--text-faint); }

/* Make it yours */
.yours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.tile {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--edge-subtle); box-shadow: var(--lift);
}
.tile > p { color: var(--text-muted); font-size: 15px; max-width: 62ch; }
/* The widget shot at its own shape, not in the 16:10 frame. */
.tile-shot { margin-top: 8px; }
.tile-shot img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--edge-subtle); }
/* Each switch sits right beside its page's name. */
.toggles { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 40px; margin-top: 8px; }
.toggles li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-primary); min-width: 0; }
.toggles li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toggles li::before {
  content: ""; flex: none; width: 22px; height: 12px; border-radius: 999px;
  background: radial-gradient(circle at 16px 6px, var(--on-primary) 3.5px, transparent 4px), var(--primary);
  opacity: .85;
}

/* Your pace: the wizard's card for each page with modes, and its mode picks */
.tile-pace { grid-column: 1 / -1; }
.paces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
/* The wizard card sits beside its picks at its own size (a 2x shot, shown at half). */
.pace {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 22px;
  padding: 20px; border-radius: var(--r-md); background: var(--input-bg); border: 1px solid var(--hairline);
}
.pace > :not(.pace-card) { grid-column: 2; }
/* The hand-cropped shots carry stray card edges; a slight zoom trims an even margin. */
.pace-card { grid-row: 1 / span 3; width: 220px; aspect-ratio: 1.36; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--edge-subtle); }
.pace-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.pace:not(:has(.pace-card)) { grid-template-columns: minmax(0, 1fr); }
.pace:not(:has(.pace-card)) > * { grid-column: 1; }
.pace-name { font: 500 11px/1 var(--font-data); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pace-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.pace-desc { min-height: 1.6em; font-size: 15px; color: var(--text-primary); }

/* Your colours */
.themes {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 40px; align-items: start;
  margin-top: 16px; padding: 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--edge-subtle); box-shadow: var(--lift);
}
.themes-copy { display: flex; flex-direction: column; gap: 12px; }
.themes-copy > p { color: var(--text-muted); font-size: 15px; }
.themes-copy > .theme-note { font: 400 13px/1.5 var(--font-data); color: var(--text-faint); margin-top: 4px; }
.themes .window { border-radius: var(--r-md); background: var(--bg); }
.theme-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.theme-tab, .chip-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--edge-subtle); color: var(--text-muted);
  font: 500 14px/1.2 var(--font-prose);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.theme-tab { padding-left: 10px; }
.theme-tab:hover, .chip-btn:hover { color: var(--text-primary); border-color: var(--edge-hover); }
.theme-tab[aria-pressed="true"], .chip-btn[aria-pressed="true"] { color: var(--text-primary); border-color: var(--primary); background: var(--primary-soft); }
.chip-btn { padding: 7px 13px; font-size: 13.5px; }
.theme-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; border: 1px solid var(--edge-hover); }
.swatches { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.swatch { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.swatch-mini {
  display: flex; gap: 8px; height: 132px; padding: 10px; border-radius: var(--r-md);
  border: 1px solid var(--edge-subtle); overflow: hidden;
}
.swatch-mini i { display: block; }
.swatch-rail { width: 8px; border-radius: 4px; opacity: .9; }
.swatch-surf { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 7px; }
.swatch-line { height: 4px; border-radius: 3px; }
.swatch-cta { height: 10px; width: 42%; border-radius: 5px; margin-top: auto; }
.swatch-name { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font: 500 13.5px/1.3 var(--font-prose); color: var(--text-primary); }
.swatch-name small { font: 400 10.5px/1 var(--font-data); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }

/* The beta and the request access form */
.access { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ways { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ways li { display: flex; gap: 12px; font-size: 17px; color: var(--text-primary); }
.ways li::before { content: ""; width: 6px; height: 6px; margin-top: .65em; border-radius: 50%; background: var(--primary); flex: none; }
/* The "(or)" between the two ways: a quiet line, not a third bullet. */
.ways li.ways-or { padding-left: 18px; font: 400 13px/1.4 var(--font-data); color: var(--text-faint); }
.ways li.ways-or::before { content: none; }
.ways a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: var(--accent-border); }
.ways a:hover { text-decoration-color: var(--accent); }
.facts { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.facts li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-muted); }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

.access-side { display: flex; flex-direction: column; gap: 16px; }
.panel {
  padding: 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--edge-subtle); box-shadow: var(--lift);
}
.form { display: flex; flex-direction: column; }
.label { font: 600 14px/1.3 var(--font-prose); color: var(--text-primary); }
.hint { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
.field-row { display: flex; gap: 10px; margin-top: 14px; }
.input {
  flex: 1; min-width: 0; min-height: 50px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--input-bg); border: 1px solid var(--edge-subtle); color: var(--text-primary);
  font-size: 15px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder { color: var(--text-disabled); }
.input:hover { border-color: var(--edge-hover); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.input { min-height: 168px; resize: vertical; line-height: 1.55; }
.form-error { margin-top: 12px; font-size: 14px; color: var(--danger); }
.thanks {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--success-soft); border: 1px solid var(--success-border); color: var(--text-primary); font-weight: 500;
}
.thanks::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--success); box-shadow: 0 0 12px var(--success-glow);
}
.thanks:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.look {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: radial-gradient(ellipse at 100% 0%, var(--primary-soft), transparent 60%), var(--card);
}

/* Install */
.installs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.install {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--edge-subtle); box-shadow: var(--lift);
}
.install p { font-size: 15px; color: var(--text-muted); }
.install p b { font-weight: 600; color: var(--text-primary); }
.install-icon { color: var(--accent); margin-bottom: 6px; }
.install-brand { width: 22px; height: 22px; fill: currentColor; }
.step { color: var(--text-faint); padding-inline: 2px; }

/* Contact: the page's last section */
.contact { border-top: 1px solid var(--hairline); padding-block: clamp(72px, 9vw, 120px) 40px; background: linear-gradient(var(--bg), color-mix(in srgb, var(--card) 40%, var(--bg))); }
.contact-mark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.contact-mark img { width: 52px; height: 52px; }
.contact-mark span { font: 600 clamp(32px, 3.4vw, 40px)/1 var(--font-prose); letter-spacing: -.035em; }
.mission { display: flex; flex-direction: column; gap: 4px; margin-top: clamp(40px, 6vw, 72px); max-width: 36ch; }
.mission span { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.3; letter-spacing: -.015em; }
.mission span:first-child { color: var(--text-muted); }
.mission span:last-child { color: var(--text-primary); font-weight: 600; }
.contact-email {
  display: inline-block; margin-top: clamp(32px, 4vw, 48px);
  font: 600 clamp(20px, 2vw, 26px)/1.3 var(--font-prose); letter-spacing: -.01em;
  text-decoration: none; overflow-wrap: anywhere; transition: color var(--dur) var(--ease);
}
.contact-email:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: var(--r-md); border: 1px solid var(--edge-subtle); color: var(--text-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.socials a:hover { color: var(--text-primary); border-color: var(--edge-hover); background: var(--hover-bg); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.contact-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(48px, 6vw, 72px); padding-top: 36px; border-top: 1px solid var(--hairline);
}
.contact-cols nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-cols h3 { font: 500 16px/1.3 var(--font-prose); margin-bottom: 8px; }
.contact-cols a, .back-link { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.contact-cols a:hover, .back-link:hover { color: var(--text-primary); }
.contact-foot {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--hairline); font: 400 12.5px/1 var(--font-data); color: var(--text-faint);
}

/* ── the page preview dialog ── */
.viewer {
  width: min(1240px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border-radius: var(--r-xl); overflow: hidden;
  background: var(--card); color: var(--text-primary); border: 1px solid var(--edge-hover);
  box-shadow: 0 40px 140px -30px var(--primary-glow);
}
.viewer::backdrop { background: color-mix(in srgb, var(--bg) 82%, transparent); }
.viewer[open] { animation: viewerIn 280ms var(--ease); }
.viewer[open]::backdrop { animation: fadeIn 280ms var(--ease); }
@keyframes viewerIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; max-height: calc(100dvh - 48px); }
.viewer-stage { background: var(--bg); display: flex; align-items: center; border-right: 1px solid var(--hairline); min-width: 0; }
.viewer-side { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 22px 28px; overflow-y: auto; min-width: 0; }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-name { font: 600 30px/1.15 var(--font-prose); letter-spacing: -.025em; }
.viewer-text { color: var(--text-muted); font-size: 15.5px; line-height: 1.65; }
.viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hairline); }
.viewer-foot .btn { min-width: 0; padding-inline: 10px; }
.viewer-foot .btn span { overflow: hidden; text-overflow: ellipsis; max-width: 9em; }
.viewer-pos { font: 400 12px/1 var(--font-data); color: var(--text-faint); white-space: nowrap; }

/* ── feedback page ── */
.fb-hero { position: relative; isolation: isolate; min-height: calc(100vh - var(--bar-h)); display: flex; flex-direction: column; }
.fb-hero .field { inset: 0; height: 100%; }
.fb-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: clamp(24px, 6vw, 72px); padding-bottom: 80px; }
.fb-card {
  width: 100%; max-width: 620px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--edge-subtle); box-shadow: var(--lift), 0 40px 120px -50px var(--primary-glow);
}
.fb-mark { width: 56px; height: 56px; margin-bottom: 22px; }
.fb-card h1 { font: 600 clamp(30px, 4vw, 40px)/1.12 var(--font-prose); letter-spacing: -.025em; }
.fb-card .lede { margin-top: 12px; }
.fb-field + .fb-field { margin-top: 22px; }
.fb-field .input { width: 100%; margin-top: 10px; }
.fb-field .hint { margin-top: 4px; }
.fb-send { margin-top: 26px; align-self: flex-start; }
.fb-card .form-box { margin-top: 30px; }
.fb-contact { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 14.5px; color: var(--text-muted); }
.fb-contact a { color: var(--text-primary); text-decoration-color: var(--primary-border); text-underline-offset: 3px; overflow-wrap: anywhere; }
.fb-contact a:hover { text-decoration-color: var(--primary); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.footer { border-top: 1px solid var(--hairline); padding-block: 32px 40px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font: 400 12.5px/1 var(--font-data); color: var(--text-faint); }

/* ── narrower screens ── */
/* Six header links: the tagline gives way first, then the gaps close a little. */
@media (max-width: 1100px) {
  .wordmark-tag { display: none; }
  .bar-links { gap: 20px; }
}
@media (max-width: 1040px) {
  .toggles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes { grid-template-columns: minmax(0, 1fr); }
  .viewer-body { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .viewer-stage { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .viewer-side { overflow: visible; }
}
@media (max-width: 860px) {
  .bar-links { display: none; }
  .bar .btn { margin-left: auto; }
  .hero-stage { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { position: absolute; right: -8%; top: 12px; width: 46vw; opacity: .35; z-index: -1; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .yours { grid-template-columns: minmax(0, 1fr); }
  .paces { grid-template-columns: minmax(0, 1fr); }
  .access { grid-template-columns: minmax(0, 1fr); }
  .installs { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release { grid-template-columns: minmax(0, 1fr); }
  .release-head { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
}
@media (max-width: 640px) {
  :root { --bar-h: 62px; }
  .wordmark-tag { display: none; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch-mini { height: 104px; }
  .pace { grid-template-columns: minmax(0, 1fr); }
  .pace > *, .pace > :not(.pace-card) { grid-column: 1; }
  .pace-card { grid-row: auto; width: min(220px, 100%); }
  .tile, .themes, .install, .panel { padding: 22px; }
  .row-bar { flex-wrap: wrap; }
  .row-arrows { display: none; }
  .row > li { width: 80%; }
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
  .hero-shot .window { border-radius: var(--r-md); }
  .film { border-radius: var(--r-md); }
  .film-play-icon { width: 68px; height: 68px; }
  .footer-links { margin-left: 0; width: 100%; order: 3; }
  /* On a phone the page preview fills the screen. */
  .viewer { width: 100%; height: 100%; max-height: none; max-width: none; border-radius: 0; border: 0; margin: 0; }
  .viewer-body { max-height: 100dvh; height: 100%; align-content: start; }
  .viewer-stage { order: 2; }
  .viewer-side { display: contents; }
  .viewer-head { order: 1; padding: 14px 16px 12px; border-bottom: 1px solid var(--hairline); }
  .viewer-name { order: 3; padding: 20px 16px 0; font-size: 26px; }
  .viewer-text { order: 4; padding: 10px 16px 0; }
  .viewer-foot { order: 6; margin: 24px 16px 24px; }
}

/* ── motion: a staged entry for the header and hero (CSS only, so it plays before
   the script loads), then quiet reveals as each part scrolls in (site.js adds
   .reveal-on and marks each part .in). None of it runs under reduced motion. ── */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nameIn { from { opacity: 0; transform: translateY(34px) scale(.97); filter: blur(12px); letter-spacing: -.01em; } to { opacity: 1; transform: none; filter: none; } }
@keyframes markIn { from { opacity: 0; transform: scale(.78) rotate(-32deg); filter: blur(10px); } 55% { opacity: 1; } to { opacity: 1; transform: none; filter: none; } }
@keyframes glowIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes shotIn { from { opacity: 0; transform: translateY(64px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }

@media (prefers-reduced-motion: no-preference) {
  :root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

  /* The entry, in order: the bar, the glow and field, the mark, the name, its three
     lines, the buttons, then the Dashboard rising in underneath. */
  .bar { animation: drop .8s var(--ease-out) .05s both; }
  .hero::before { animation: glowIn 1.8s var(--ease-out) .1s both; }
  .hero .field { animation: fade 2.2s ease .3s both; }
  .hero-mark { animation: markIn 1.6s var(--ease-out) .2s both; }
  .hero-mark img { animation: float 9s ease-in-out 2s infinite; }
  .hero-name { animation: nameIn 1.2s var(--ease-out) .35s both; }
  .hero-lines span { animation: rise .9s var(--ease-out) both; }
  .hero-lines span:nth-child(1) { animation-delay: .6s; }
  .hero-lines span:nth-child(2) { animation-delay: .72s; }
  .hero-lines span:nth-child(3) { animation-delay: .84s; }
  .hero-actions { animation: rise .9s var(--ease-out) 1s both; }
  .hero-shot { animation: shotIn 1.4s var(--ease-out) 1.1s both; }

  /* The feedback page's own short entry. */
  .fb-hero .field { animation: fade 2s ease .2s both; }
  .fb-card { animation: rise 1s var(--ease-out) .15s both; }

  /* Reveals on scroll: each part rises a little and fades in; a group staggers. */
  .reveal-on .rv { opacity: 0; transform: translateY(24px); }
  .reveal-on .rv.in {
    opacity: 1; transform: none;
    transition: opacity .9s var(--ease-out) var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms);
  }

  /* A mode's description eases in when the pick changes. */
  .pace-desc.swap { animation: rise .45s var(--ease-out) both; }
}

/* ── reduced motion: nothing moves, only fades ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: opacity, color, background-color, border-color !important; }
  .btn-primary:hover, .card:hover, .film-play:hover .film-play-icon { transform: none; }
  .viewer[open] { animation: fadeIn 200ms linear; }
}
