/* Sea Layers site
   Colours and type follow the app's brand and chrome tokens
   (CHARTS_APP/docs/brand.md, src/styles/brand.ts, src/styles/theme.ts). */

:root {
  color-scheme: dark;
  --navy: #0b1626;        /* brand.navy, ink.base */
  --panel: #101e32;       /* brand.panel: marketing surfaces */
  --raised: #152435;      /* ink.raised */
  --active: #1d3247;      /* ink.active */
  --foam: #eaf2f8;        /* brand.foam: headings and the name */
  --text: #edf2f7;        /* text.primary */
  --text-2: #94a8bc;      /* text.secondary */
  --text-3: #5c7186;      /* text.faint */
  --hairline: rgba(148, 163, 184, 0.16);
  --blue: #56c1f0;        /* brand.blue: the one action colour */
  --blue-deep: #3888a8;   /* brand.depthLine */
  --heat: #ff8a3c;        /* brandHeat.body */
  --display: "Space Grotesk", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 1120px;
  --gutter: max(1rem, calc((100vw - var(--measure)) / 2));
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foam);
}
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; }
p { margin: 0; }
.lede { font-size: 1.1rem; color: var(--text-2); max-width: 36rem; }

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  transform: translateY(-200%);
  padding: 0.65rem 0.9rem; border-radius: 10px;
  background: var(--foam); color: var(--navy); font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 22, 38, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  width: min(calc(100% - 2rem), var(--measure));
  height: 64px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
}
.wordmark {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--foam);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em;
}
.wordmark img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.95rem; color: var(--text-2); }
.nav-links a { text-decoration: none; padding: 0.3rem 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* Phone menu. Shown in place of .nav-links at narrow widths. */
.nav-menu { display: none; margin-left: auto; }
.nav-menu summary {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.8rem;
  border: 1px solid var(--hairline); border-radius: 11px;
  background: var(--raised); color: var(--text);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; list-style: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--active); }
.nav-menu-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  display: grid; padding: 0.25rem 1rem 0.75rem;
  background: var(--navy); border-bottom: 1px solid var(--hairline);
}
.nav-menu-panel a {
  padding: 0.8rem 0; border-bottom: 1px solid var(--hairline);
  color: var(--text); text-decoration: none;
}
.nav-menu-panel a:last-child { border-bottom: 0; }
.nav-menu-panel a[aria-current="page"] { color: var(--blue); }

/* Buttons, shaped like the app's own */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 1.15rem; border-radius: 13px;
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer;
}
.button-primary { background: var(--blue); color: var(--navy); }
.button-primary:hover { background: #6fcbf3; }
.button-secondary { background: var(--raised); color: var(--text); border-color: var(--hairline); }
.button-secondary:hover { background: var(--active); }
.button-small { white-space: nowrap; min-height: 38px; padding: 0 0.9rem; font-size: 0.9rem; border-radius: 11px; }

/* App Store button, drawn in the style of Apple's badge */
.store-button {
  display: inline-flex; align-items: center; gap: 0.65rem;
  min-height: 52px; padding: 0 1.15rem 0 1rem; border-radius: 13px;
  background: var(--foam); color: #000; text-decoration: none;
  font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.05;
}
.store-button svg { width: 22px; height: 26px; flex: none; }
.store-button small { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.01em; }
.store-button:hover { background: #fff; }

.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
}

/* Hero: the claim, the launch rule and the real chart */
.hero {
  position: relative;
  width: min(calc(100% - 2rem), var(--measure));
  margin: 0 auto; padding: 4rem 0 5rem;
  display: grid;
  grid-template-columns: minmax(18rem, 1.1fr) minmax(18rem, 0.9fr);
  column-gap: 4rem;
  align-items: center;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -4rem -20vw auto auto;
  width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(86, 193, 240, 0.13), rgba(86, 193, 240, 0) 70%);
  pointer-events: none;
}
.hero-intro { padding-top: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; max-width: 12ch; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 2.25rem;
  margin: 2.5rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--hairline);
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: 0.82rem; color: var(--text-3); }
.hero-stats dd { margin: 0; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--foam); }
.launch-rule { display: flex; gap: 6px; margin: 1.4rem 0 1.6rem; }
.launch-rule span { width: 22px; height: 3px; border-radius: 2px; }
.launch-rule span:nth-child(1) { background: var(--blue-deep); }
.launch-rule span:nth-child(2) { background: var(--blue); }
.launch-rule span:nth-child(3) { background: var(--heat); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.9rem; }
.hero-actions .button { min-height: 52px; }
.email-note { margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-2); }
.email-note a, .email-address { color: var(--text); overflow-wrap: anywhere; }
.email-address { -webkit-user-select: all; user-select: all; }

.capture { justify-self: center; width: min(100%, 340px); margin: 0; }
.capture-frame { position: relative; }
.capture-poster { position: absolute; top: 0; left: 0; z-index: 1; transition: opacity 300ms ease; }
/* The recording dot is 21 px across, centred at 243.5, 53 in the 720 x 1564
   frame. This disc is the island's own black, about 2 px wider each side. */
.capture-island-mask {
  position: absolute; z-index: 2; pointer-events: none;
  left: 33.82%; top: 3.389%; width: 3.6%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; background: #000;
}
.capture.is-playing .capture-poster { opacity: 0; pointer-events: none; }
.capture-media {
  width: 100%; aspect-ratio: 720 / 1564; object-fit: cover;
  border-radius: 48px; background: var(--navy);
  border: 1px solid rgba(234, 242, 248, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.capture figcaption {
  display: flex; justify-content: center; align-items: center; gap: 0.5rem;
  margin-top: 0.9rem; font-size: 0.85rem; color: var(--text-3);
}
.motion-toggle {
  border: 1px solid var(--hairline); background: transparent; color: var(--text-2);
  padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.8rem; cursor: pointer;
}
.motion-toggle:hover { color: var(--text); background: var(--raised); }

/* Shared section rhythm */
.section, .hero, .shore { scroll-margin-top: 72px; }
.section { width: min(calc(100% - 2rem), var(--measure)); margin: 0 auto; padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p:not(.eyebrow) { margin-top: 0.9rem; color: var(--text-2); font-size: 1.05rem; }

/* Layers: the app's dock beside the chart. Tiles, glyphs, accents and
   the check badge follow LayerQuickDock and LayerGlyphs in the app. */
.explorer {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start;
  padding: 2rem; border-radius: 24px;
  background: var(--panel); border: 1px solid var(--hairline);
}
.explorer-dock { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; order: 2; }
.explorer:not(.is-live) .explorer-dock { display: none; }
.dock-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; cursor: pointer; text-align: right;
}
.dock-label {
  display: flex; align-items: center; justify-content: flex-end;
  height: 40px; min-width: 104px; padding: 0 12px; border-radius: 9px;
  background: var(--raised); border: 1px solid var(--hairline);
  font-size: 0.85rem; font-weight: 600; color: var(--text-3);
  transition: color 150ms ease;
}
.dock-tile {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--raised); border: 1.5px solid var(--hairline); color: var(--text-3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.glyph { width: 24px; height: 24px; display: block; }
.dock-row:hover .dock-label, .dock-row:hover .dock-tile { color: var(--text-2); }
.dock-row:active .dock-tile { transform: scale(0.94); }
.dock-row[aria-selected="true"] .dock-label { color: var(--text); }
.dock-row[aria-selected="true"] .dock-tile { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.dock-check {
  position: absolute; right: -5px; bottom: -5px; width: 17px; height: 17px; border-radius: 50%;
  background: #4ade80; border: 2px solid var(--navy);
  opacity: 0; transform: scale(0.5); transition: opacity 150ms ease, transform 150ms ease;
}
.dock-check::after {
  content: ""; position: absolute; left: 4px; top: 2.5px; width: 3.5px; height: 6.5px;
  border: solid var(--navy); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
.dock-row[aria-selected="true"] .dock-check { opacity: 1; transform: scale(1); }
.dock-row:focus-visible { outline: none; }
.dock-row:focus-visible .dock-tile { outline: 2px solid var(--blue); outline-offset: 3px; }

.explorer-panels { order: 1; min-width: 0; }
.explorer:not(.is-live) .layer-detail + .layer-detail { margin-top: 3rem; }
.layer-detail {
  display: grid; grid-template-columns: minmax(14rem, 18rem) 1fr; gap: 2.5rem; align-items: center;
}
.layer-detail:focus-visible { outline-offset: 8px; border-radius: 12px; }
.layer-detail.is-entering .layer-shot { animation: shot-in 320ms ease-out; }
.layer-detail.is-entering .layer-copy { animation: copy-in 320ms ease-out; }
@keyframes shot-in { from { opacity: 0; transform: translateX(10px) scale(0.985); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(6px); } }
.layer-shot {
  margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px;
  background: var(--navy); border: 1px solid rgba(234, 242, 248, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.layer-shot img { width: 100%; height: 100%; object-fit: cover; }
.layer-shot-card {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; padding: 1.5rem;
  background:
    repeating-radial-gradient(circle at 75% 25%, transparent 0 22px, color-mix(in srgb, var(--accent) 12%, transparent) 22px 23.5px),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--navy)), var(--navy) 65%);
}
.card-glyph {
  display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: auto;
  border-radius: 21px; background: var(--accent); color: var(--navy);
}
.card-glyph .glyph { width: 40px; height: 40px; }
.card-stat { font-size: 0.9rem; color: var(--text-2); }
.card-stat strong { color: var(--foam); font-weight: 700; margin-right: 0.25rem; }
.layer-kind { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.layer-copy h3 { margin-top: 0.5rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; }
.layer-copy > p:not(.layer-kind) { margin-top: 0.8rem; color: var(--text-2); max-width: 32rem; }
.layer-facts { margin: 1.4rem 0 0; border-top: 1px solid var(--hairline); }
.layer-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--hairline); font-size: 0.9rem; }
.layer-facts dt { color: var(--text-3); }
.layer-facts dd { margin: 0; color: var(--text); }

/* Data: measured, analysed, forecast */
.data { display: grid; grid-template-columns: minmax(16rem, 0.8fr) 1.2fr; gap: 3rem; align-items: start; }
.data .section-head { margin-bottom: 0; }
.kinds { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.kinds li:last-child { border-bottom: 0; }
.kinds li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--hairline); }
.kinds strong { font-weight: 600; color: var(--foam); }
.kinds p { color: var(--text-2); }
.kinds p + p { margin-top: 0.3rem; font-size: 0.92rem; color: var(--text-3); }
.sources { margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-3); }

/* Offshore */
.offshore { display: grid; grid-template-columns: minmax(16rem, 0.8fr) 1.2fr; gap: 3rem; align-items: start; }
.offshore .section-head { margin-bottom: 0; }
.points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.points li { padding: 1.2rem 0; border-bottom: 1px solid var(--hairline); }
.points li:last-child { border-bottom: 0; }
.points strong { display: block; font-weight: 600; color: var(--foam); }
.points p { margin-top: 0.25rem; color: var(--text-2); }

/* On the water: one photo band. Stacked by default; on wide screens the
   heading sits in the sky and the note sits on the water, clear of the boat. */
.shore {
  position: relative; display: grid; overflow: hidden;
  width: min(calc(100% - 2rem), 1280px); margin: 1.5rem auto 0;
  border-radius: 28px; border: 1px solid var(--hairline);
  background: var(--panel);
}
.shore picture { display: block; }
.shore-photo { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.shore-head { padding: 1.75rem 2rem 0; }
.shore-head h2 { color: var(--foam); }
.shore-note { padding: 0.8rem 2rem 2rem; max-width: 40rem; color: var(--text-2); font-size: 1.05rem; }

@media (min-width: 1100px) {
  .shore { isolation: isolate; }
  .shore > *, .shore::after { grid-area: 1 / 1; }
  .shore::after {
    content: ""; z-index: 1; pointer-events: none;
    background:
      linear-gradient(180deg, rgba(11, 22, 38, 0.82) 0%, rgba(11, 22, 38, 0.4) 20%, rgba(11, 22, 38, 0) 34%),
      linear-gradient(20deg, rgba(11, 22, 38, 0.85) 0%, rgba(11, 22, 38, 0.45) 26%, rgba(11, 22, 38, 0) 46%);
  }
  .shore-head, .shore-note { position: relative; z-index: 2; }
  .shore-head { align-self: start; padding: 2.5rem 3rem 0; }
  .shore-head h2 { text-shadow: 0 1px 18px rgba(11, 22, 38, 0.5); }
  .shore-note { align-self: end; justify-self: start; max-width: 27rem; padding: 0 3rem 2.75rem; color: var(--text); }
}

/* Download */
.download-panel {
  position: relative; overflow: hidden;
  padding: 2.75rem; border-radius: 24px;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(86, 193, 240, 0.16), transparent 60%),
    radial-gradient(50% 120% at 100% 100%, rgba(255, 138, 60, 0.12), transparent 60%),
    var(--panel);
  border: 1px solid var(--hairline);
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
}
.download-mark { width: 96px; height: 96px; }
.download-panel h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.download-panel p { margin-top: 0.6rem; color: var(--text-2); max-width: 32rem; }
.download-action { display: grid; justify-items: start; }
.safety-note { margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-3); text-align: center; }

/* Footer */
.site-footer {
  width: min(calc(100% - 2rem), var(--measure)); margin: 0 auto; padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
  font-size: 0.88rem; color: var(--text-3);
}
.site-footer .wordmark { font-size: 1rem; }
.site-footer .wordmark img { width: 26px; height: 26px; }
.site-footer p { max-width: 38rem; }
.built-in { display: block; margin-top: 0.35rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer nav a { text-decoration: none; color: var(--text-2); }
.site-footer nav a:hover { color: var(--text); }

/* Support page */
.page { width: min(calc(100% - 2rem), 760px); margin: 0 auto; padding: 4rem 0 5rem; }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.05; }
.page .lede { margin-top: 1rem; }
.faq { margin-top: 2.5rem; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 600; color: var(--foam);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-answer { padding: 0 2.5rem 1.4rem 0; color: var(--text-2); }
.faq-answer p + p { margin-top: 0.7rem; }
.faq-answer a { color: var(--blue); }
.contact-panel {
  margin-top: 3rem; padding: 2rem;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.contact-panel h2 { font-size: 1.4rem; }
.contact-panel p { margin: 0.6rem 0 1.25rem; color: var(--text-2); }
.contact-panel .email-note { margin: 0.75rem 0 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero { column-gap: 2.5rem; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 1rem 2.5rem; }
  .hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.4rem); }
  .layer-detail { grid-template-columns: 1fr; gap: 1.75rem; }
  .layer-shot { width: min(100%, 300px); }
  .download-panel { grid-template-columns: 1fr; padding: 2rem; gap: 1.25rem; }
  .download-mark { width: 72px; height: 72px; }
}
@media (max-width: 760px) {
  .nav { height: 58px; gap: 1rem; }
  .nav-links, .wide-only { display: none; }
  .nav-menu { display: block; }
  .hero { padding: 2.25rem 0 3.5rem; grid-template-columns: 1fr; row-gap: 2.5rem; }
  .hero-intro { padding-top: 0; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 1rem 2.5rem; }
  .capture { width: min(100%, 300px); }
  .capture-media { border-radius: 42px; }
  .section { padding: 3.5rem 0; }
  .data, .offshore { grid-template-columns: 1fr; gap: 2rem; }
  .kinds li { grid-template-columns: 1fr; gap: 0.3rem; }
  .site-footer { grid-template-columns: 1fr; gap: 1rem; }

  /* Phones get the tighter 4:3 crop centred on the boat. */
  .shore { border-radius: 22px; }
  .shore-photo { aspect-ratio: 4 / 3; }
  .shore-head { padding: 1.4rem 1.25rem 0; }
  .shore-note { padding: 0.7rem 1.25rem 1.6rem; }

  /* The dock lies along the top on phones, scrolling sideways. */
  .explorer { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.5rem; }
  .explorer-dock {
    order: 0; flex-direction: row; align-items: stretch; gap: 0.6rem;
    margin: 0 -1.25rem; padding: 0.25rem 1.25rem 0.6rem;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .explorer-dock::-webkit-scrollbar { display: none; }
  .dock-row { flex-direction: column-reverse; gap: 0.45rem; scroll-snap-align: center; }
  .dock-label { height: auto; min-width: 0; padding: 0; border: 0; background: none; font-size: 0.75rem; justify-content: center; }
  .layer-shot { width: 100%; max-width: 250px; justify-self: center; }
  .layer-detail { gap: 1.25rem; }
  .layer-facts div { grid-template-columns: 6.5rem 1fr; }
}
@media (max-width: 380px) {
  .nav { gap: 0.6rem; }
  .wordmark { font-size: 1rem; gap: 0.45rem; }
  .wordmark img { width: 30px; height: 30px; }
  .button-small { padding: 0 0.7rem; }
  .nav-menu summary { padding: 0 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer-detail.is-entering .layer-shot, .layer-detail.is-entering .layer-copy { animation: none; }
}

/* ---- HOOK: fish hook through the phone (delete this block and the two
   .hook SVGs in index.html to revert). The point comes out through the glass at
   the top-right corner; shank, eye and line sit behind the phone and show past its edge. */
.capture-frame { isolation: isolate; }
.hook { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hook-back { z-index: -1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }
.hook-front { z-index: 3; filter: drop-shadow(3px 6px 5px rgba(0, 0, 0, 0.55)); }
.hook-line-short { display: none; }
@media (min-width: 761px) and (max-width: 1180px) {
  /* The phone sits near the screen edge here: pull it in so the eye fits. */
  .capture { justify-self: end; width: min(100% - 88px, 340px); margin-right: 88px; }
}
@media (max-width: 760px) {
  .hook-line-long { display: none; }
  .hook-line-short { display: inline; }
  /* Room on the right for the eye: a slightly narrower phone, smaller hook. */
  .capture { width: min(100% - 5rem, 270px); }
  .hook { transform: scale(0.75); transform-origin: 100% 0; }
}
/* ---- end HOOK */
