/* drinktheocean.wiki — Taste Skill direction: One motif (seed 819402631).
   Motif: stepped bathymetric depth-gauge notch echoing ocean shelves exposed as water level drops.
   Type: Bricolage Grotesque (700/800 display & UI) + Public Sans (400/600 body) + JetBrains Mono (code & live calculator code readouts, taste-skill-ignore).
   Palette: Seafoam Salt #f3f8f9 ground, #e3eff2 / #cfe1e6 / #b8d1d8 surfaces, Abyssal Ink #0d2028 text, Pelagic Deep #102a35 dark stage, Straw Teal #095c66 accent. */
:root {
  --bg: #f3f8f9;
  --surface: #e3eff2;
  --surface-2: #cfe1e6;
  --surface-3: #b8d1d8;
  --ink: #0d2028;
  --muted: #2c4e59;
  --accent: #095c66;
  --accent-hover: #06444c;
  --accent-ink: #f3f8f9;
  --field: #102a35;
  --field-surface: #183d4c;
  --field-surface-2: #215063;
  --field-ink: #f3f8f9;
  --field-muted: #b9dce4;
  --ok: #0a5c3e;
  --warn: #734500;
  --bad: #8a1f24;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* code and pre only. taste-skill-ignore */
  --step-small: 0.875rem;
  --step-body: clamp(1.03rem, 0.99rem + 0.2vw, 1.14rem);
  --step-lead: clamp(1.22rem, 1.1rem + 0.48vw, 1.48rem);
  --step-head: clamp(1.72rem, 1.2rem + 1.9vw, 2.68rem);
  --step-display: clamp(2.25rem, 4.2vw, 3.85rem);
  --cut-lg: polygon(56px 0, 100% 0, 100% 100%, 0 100%, 0 40px, 28px 40px, 28px 20px, 56px 20px);
  --cut-md: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 20px, 14px 20px, 14px 10px, 28px 10px);
  --cut-sm: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 10px, 7px 10px, 7px 5px, 14px 5px);
  --margin: clamp(20px, 4vw, 44px);
  --wrap: 1340px;
  --gap: clamp(24px, 3.3vw, 50px);
  --section: clamp(76px, 7.6vw, 120px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 200ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.58 var(--body);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color var(--t-hover), text-decoration-color var(--t-hover);
}
a:hover { text-decoration-color: var(--accent); color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
b, strong { font-weight: 600; color: var(--ink); }
code, kbd, pre { font-family: var(--mono); }
code, kbd {
  font-size: 0.94em;
  background: var(--surface);
  color: var(--ink);
  padding: 0.1em 0.38em;
  overflow-wrap: anywhere;
}
pre {
  background: var(--surface);
  color: var(--ink);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: var(--step-small);
  line-height: 1.6;
  margin: 0 0 1.2em;
  clip-path: var(--cut-sm);
}
pre code { background: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-display); line-height: 0.94; }
.hero h1 { text-transform: uppercase; }
h2 { font-size: var(--step-head); line-height: 1.04; margin: 0 0 0.55em; }
h3 { font-size: var(--step-lead); font-weight: 700; line-height: 1.16; letter-spacing: -0.02em; margin: 1.3em 0 0.4em; }
h4 { font-size: var(--step-body); font-weight: 700; line-height: 1.25; margin: 1.1em 0 0.3em; }

p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; max-width: 66ch; }
li { margin: 0.38em 0; }
li::marker { color: var(--accent); font-family: var(--display); font-weight: 800; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--margin); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 14px; font-family: var(--display); }
.lead { font-size: var(--step-lead); line-height: 1.44; max-width: 44ch; }
.fine, .sub { font-size: 0.96rem; color: var(--muted); }
.note { background: var(--surface); padding: 18px 22px; max-width: 66ch; clip-path: var(--cut-sm); margin: 0 0 1.2em; }

/* Buttons with stepped bathymetric depth-gauge notch */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 var(--step-body)/1.15 var(--display);
  letter-spacing: -0.015em;
  text-decoration: none;
  border: 0;
  clip-path: var(--cut-sm);
  cursor: pointer;
  transition: background-color var(--t-hover), transform var(--t-press) var(--ease-out);
  text-align: center;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn--paper { background: var(--field-ink); color: var(--field); }
.btn--paper:hover { background: var(--surface); color: var(--field); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: var(--step-small); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

/* Navigation */
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 12px 22px;
  min-height: 76px;
  flex-wrap: wrap;
  padding-block: 12px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 800 var(--step-lead)/1 var(--display);
  letter-spacing: -0.03em;
}
.mark:hover { color: var(--ink); }
.mark svg { flex: none; }
.nav__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.nav__links a, .nav__lang a {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--t-hover);
}
.nav__links a:hover, .nav__lang a:hover { color: var(--ink); }
.nav__links a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.nav__lang { display: flex; gap: 12px; }
.nav__lang a[aria-current] { color: var(--ink); }

/* Hero: Fragment on a shaped bathymetric stage */
.hero { padding: clamp(24px, 3.6vw, 52px) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
}
.hero__grid--wide { grid-template-columns: minmax(0, 1fr); }
.hero h1 { margin: 0 0 20px; max-width: 14ch; }
.hero .lead { max-width: 40ch; }
.status { list-style: none; padding: 0; margin: 26px 0 0; max-width: 34rem; }
.status li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 6px;
  padding: 10px 14px;
  background: var(--surface);
  clip-path: var(--cut-sm);
}
.status li > b { font-family: var(--display); font-weight: 700; font-size: var(--step-small); color: var(--muted); }
.status .tag { font-family: var(--display); font-weight: 700; font-size: var(--step-small); font-variant-numeric: tabular-nums; margin-left: auto; color: var(--ink); }
.status .when { color: var(--muted); font-size: var(--step-small); text-align: right; }

/* Feature A: Live HTML5 Game Stage (#game-stage, data-ui) */
.stage {
  background: var(--field);
  color: var(--field-ink);
  clip-path: var(--cut-lg);
  padding: clamp(22px, 2.8vw, 34px);
}
.stage h2, .stage h3, .stage b, .stage strong { color: var(--field-ink); }
.stage a { color: var(--field-ink); text-decoration-color: var(--field-muted); }
.stage a.btn--paper, .band a.btn--paper { color: var(--field); text-decoration: none; }
.stage code, .stage kbd { background: var(--field-surface-2); color: var(--field-ink); }
.game-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.game-head h2 { font-size: var(--step-lead); margin: 0; }
.game-head .sub { color: var(--field-muted); margin: 0; font-size: var(--step-small); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.seg button {
  font: 700 var(--step-small)/1.2 var(--display);
  color: var(--field-ink);
  background: var(--field-surface);
  border: 0;
  padding: 11px 14px;
  clip-path: var(--cut-sm);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--t-hover), transform var(--t-press) var(--ease-out);
}
.seg button small { display: block; font-weight: 400; font-family: var(--body); font-size: 0.8rem; color: var(--field-muted); margin-top: 3px; }
.seg button:hover { background: var(--field-surface-2); }
.seg button:active { transform: scale(0.98); }
.seg button[aria-pressed="true"] { background: var(--field-ink); color: var(--field); }
.seg button[aria-pressed="true"] small { color: var(--muted); }

.game-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 310px;
  background: var(--field-surface);
  clip-path: var(--cut-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__grid--wide .game-viewport, .stage.is-wide .game-viewport { aspect-ratio: 16 / 9; min-height: 460px; }
.game-viewport.is-theater {
  position: fixed;
  inset: 0;
  z-index: 999;
  aspect-ratio: auto;
  min-height: 100svh;
  clip-path: none;
}
.game-viewport iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #07161d;
}
.game-poster {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 34px);
  text-align: left;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.game-poster__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}
.game-poster h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); margin: 0 0 8px; max-width: 24ch; }
.game-poster p { color: var(--field-muted); margin: 0; max-width: 48ch; font-size: 0.98rem; }
.game-keys { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: 0; max-width: none; }
.game-keys li { margin: 0; font-size: var(--step-small); color: var(--field-muted); background: var(--field); padding: 5px 10px; clip-path: var(--cut-sm); }
.game-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.game-bar__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ctl-btn {
  font: 700 var(--step-small)/1 var(--display);
  color: var(--field-ink);
  background: var(--field-surface);
  border: 0;
  min-height: 38px;
  padding: 0 13px;
  clip-path: var(--cut-sm);
  cursor: pointer;
  transition: background-color var(--t-hover), transform var(--t-press) var(--ease-out);
}
.ctl-btn:hover { background: var(--field-surface-2); }
.ctl-btn:active { transform: scale(0.97); }
.ctl-btn[aria-pressed="true"] { background: var(--field-ink); color: var(--field); }
.game-status { font-size: var(--step-small); color: var(--field-muted); margin: 0; }
.game-coop {
  background: var(--field-surface);
  clip-path: var(--cut-md);
  padding: clamp(20px, 2.8vw, 30px);
}
.game-coop[hidden], .game-browser[hidden] { display: none !important; }
.game-coop h3 { margin: 0 0 8px; }
.game-coop p { color: var(--field-muted); margin: 0 0 12px; }
.game-coop ul { margin: 0 0 16px; color: var(--field-ink); }
.game-coop li::marker { color: var(--field-muted); }

/* Feature B: Interactive Ocean Drain & Straw Upgrade ROI Calculator (#calculator, data-ui) */
.band {
  background: var(--field);
  color: var(--field-ink);
  clip-path: var(--cut-lg);
  padding: clamp(56px, 7vw, 104px) 0;
  margin-top: var(--section);
}
.band--box {
  background: var(--field);
  color: var(--field-ink);
  clip-path: var(--cut-md);
  padding: clamp(24px, 3vw, 36px);
  margin: 0 0 2em;
}
.band h2, .band h3, .band h4, .band b, .band strong,
.band--box h2, .band--box h3, .band--box h4, .band--box b, .band--box strong { color: var(--field-ink); }
.band .sub, .band .fine, .band--box .sub, .band--box .fine { color: var(--field-muted); }
.band code, .band--box code { background: var(--field-surface-2); color: var(--field-ink); }
.band a, .band--box a { color: var(--field-ink); text-decoration-color: var(--field-muted); }

.calc__intro { margin-bottom: 24px; }
.calc__intro p { max-width: 62ch; margin-top: 8px; }
.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
}
.band--box .calc__grid { grid-template-columns: 1fr; }
.calc__controls {
  background: var(--field-surface);
  padding: clamp(18px, 2.4vw, 26px);
  clip-path: var(--cut-md);
  display: grid;
  gap: 16px;
}
.calc__field { display: grid; gap: 6px; }
.calc__field label {
  font: 700 var(--step-small)/1.25 var(--display);
  color: var(--field-ink);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.calc__field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  font: 600 0.96rem var(--body);
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--surface-3);
  clip-path: var(--cut-sm);
  cursor: pointer;
}
.calc__presets { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.calc__out { display: grid; gap: 14px; }
.calc__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi {
  background: var(--field-surface);
  padding: 16px 16px;
  clip-path: var(--cut-sm);
}
.kpi span { display: block; font-size: var(--step-small); color: var(--field-muted); margin-bottom: 6px; }
.kpi code {
  display: block;
  background: none;
  padding: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--field-ink);
  font-variant-numeric: tabular-nums;
}
.calc__rec {
  background: #0a525b;
  padding: 18px 20px;
  clip-path: var(--cut-md);
}
.calc__rec h3 { font-size: var(--step-lead); margin: 0 0 6px; color: var(--field-ink); }
.calc__rec p { margin: 0; color: var(--field-ink); font-size: 0.98rem; max-width: none; }
.calc__depths {
  background: var(--field-surface);
  padding: 18px 20px;
  clip-path: var(--cut-md);
  display: grid;
  gap: 11px;
}
.calc__depths h3 { margin: 0 0 4px; font-size: var(--step-body); }
.depth-row { display: grid; gap: 5px; }
.depth-row__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--step-small); }
.depth-row__top b { font-family: var(--display); font-weight: 700; color: var(--field-ink); }
.depth-row__top code { background: var(--field); padding: 2px 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.depth-meter { height: 8px; background: var(--field); overflow: hidden; }
.depth-meter i { display: block; height: 100%; width: 35%; background: var(--field-muted); transition: width 260ms var(--ease-out); }

/* Signature Shutter image + ocean bathymetry crossfade */
.circuit { position: relative; margin: clamp(40px, 4.6vw, 76px) 0 0; }
.circuit__frame {
  position: relative;
  height: clamp(250px, 36vw, 500px);
  overflow: hidden;
  background: var(--surface);
  clip-path: var(--cut-lg);
  animation: shutter-open 1100ms var(--ease-out) both;
}
@keyframes shutter-open {
  from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%, 0 40px, 0 40px, 0 20px, 0 20px); }
  to { clip-path: polygon(56px 0, 100% 0, 100% 100%, 0 100%, 0 40px, 28px 40px, 28px 20px, 56px 20px); }
}
.circuit__frame img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1500ms ease, transform 1100ms var(--ease-out);
  will-change: transform, opacity;
}
.circuit__frame img.is-on { opacity: 1; transform: scale(1.02); }
.circuit figcaption, .ph figcaption { color: var(--muted); font-size: var(--step-small); margin-top: 10px; }
.ph { margin: 0; }
.ph__frame { overflow: hidden; background: var(--surface); clip-path: var(--cut-md); }
.ph__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }

/* Sections & Blueprints */
.sec { padding: var(--section) 0 0; }
.sec--surface { background: var(--surface); padding-block: var(--section); margin-top: var(--section); }
.sec--surface + .sec { padding-top: var(--section); }
.split { display: grid; gap: var(--gap); align-items: start; }
.split--75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--57 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--66 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split > * { min-width: 0; }
.split .ph__frame { aspect-ratio: 4 / 3; }
.sticky-col { position: sticky; top: 32px; }

/* Blueprint 1: Statement with inline stepped-notch thumbnails */
.statement {
  font-family: var(--display);
  font-size: var(--step-lead);
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 48ch;
  margin: 0 0 1.4em;
}
.thumb {
  display: inline-block;
  width: 1.45em;
  height: 0.92em;
  vertical-align: -0.1em;
  margin: 0 0.14em;
  overflow: hidden;
  background: var(--surface-2);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 4px, 3px 4px, 3px 2px, 6px 2px);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Blueprint 2: Interactive capability switches (data-ui) */
.switches { display: grid; gap: 4px; margin-top: 22px; }
.sw-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 12px;
  background: transparent;
  transition: background-color var(--t-hover), color var(--t-hover);
}
.sw-row h3 { margin: 0; font-size: var(--step-lead); color: var(--muted); transition: color var(--t-hover); }
.sw-row .sw-detail { display: none; margin: 8px 0 0; font-size: var(--step-body); max-width: 60ch; }
.sw-row.is-on { background: var(--surface); clip-path: var(--cut-sm); }
.sw-row.is-on h3 { color: var(--ink); }
.sw-row.is-on .sw-detail { display: block; color: var(--ink); }
.sw-toggle {
  position: relative;
  width: 58px;
  height: 32px;
  background: var(--surface-3);
  border: 0;
  clip-path: var(--cut-sm);
  cursor: pointer;
  padding: 4px;
  transition: background-color var(--t-hover), transform var(--t-press) var(--ease-out);
}
.sw-toggle i {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--bg);
  transition: transform var(--t-hover) var(--ease-out);
}
.sw-toggle[aria-checked="true"] { background: var(--accent); }
.sw-toggle[aria-checked="true"] i { transform: translateX(26px); }
.sw-toggle:active { transform: scale(0.95); }

/* Blueprint 3: Expandable bathymetric shelf rows (<details> stack) */
.bars { display: grid; gap: 8px; }
.bar-item { background: var(--surface); clip-path: var(--cut-sm); }
.bar-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 16px;
  font: 700 var(--step-body)/1.25 var(--display);
  position: relative;
}
.bar-item summary::-webkit-details-marker { display: none; }
.bar-item summary::before, .bar-item summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 14px;
  height: 3px;
  margin-top: -1.5px;
  background: currentColor;
  transition: transform var(--t-hover) var(--ease-out);
}
.bar-item summary::after { transform: rotate(90deg); }
.bar-item[open] { background: var(--surface-2); }
.bar-item[open] summary::after { transform: rotate(0deg); }
.bar-item__body { padding: 0 16px 20px; }
.bar-kv { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-variant-numeric: tabular-nums; }
.bar-kv span:last-child { font-weight: 600; text-align: right; }

/* Blueprint 4: Large metrics on filled tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile {
  background: var(--surface);
  padding: 24px;
  min-height: 164px;
  clip-path: var(--cut-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile--lead {
  grid-column: span 2;
  background: var(--field);
  color: var(--field-ink);
}
.tile--lead h2, .tile--lead p, .tile--lead b { color: var(--field-ink); }
.tile__big { font: 800 var(--step-head)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile p { margin: 8px 0 0; font-size: var(--step-small); color: var(--muted); }
.tile--lead p { color: var(--field-muted); font-size: var(--step-body); }

/* Key-value definition rows & tables */
.rows { margin: 0; max-width: 48rem; }
.rows > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 6px 24px; padding: 14px 16px; }
.rows > div:nth-child(odd) { background: var(--surface); clip-path: var(--cut-sm); }
.rows dt { font-family: var(--display); font-weight: 700; font-size: var(--step-small); }
.rows dd { margin: 0; }

.tw { overflow-x: auto; margin: 0 0 1.4em; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--surface-3); }
th { font-family: var(--display); font-weight: 700; font-size: var(--step-small); color: var(--muted); }
td.num { text-align: right; white-space: nowrap; }
.yes { color: var(--ok); font-weight: 600; white-space: nowrap; }
.no { color: var(--bad); font-weight: 600; white-space: nowrap; }
.part { color: var(--warn); font-weight: 600; white-space: nowrap; }

/* Inner pages */
.phead { padding: clamp(28px, 4vw, 56px) 0 0; }
.phead__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.phead h1 { margin: 0 0 20px; }
.phead .ph__frame { aspect-ratio: 4 / 3; }
.phead .ph figcaption { display: none; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; max-width: none; }
.facts li { margin: 0; padding: 6px 12px; background: var(--surface); clip-path: var(--cut-sm); font-size: var(--step-small); color: var(--muted); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); padding-top: clamp(64px, 6.5vw, 104px); }
.body { min-width: 0; }
.body > h2 { margin-top: 2em; max-width: 26ch; }
.body > h2:first-child { margin-top: 0; }
.side { min-width: 0; }
.side .sticky { position: sticky; top: 24px; display: grid; gap: 14px; }
.side__box { background: var(--surface); padding: 20px 22px; clip-path: var(--cut-md); }
.side__box h2 { font-size: var(--step-lead); margin: 0 0 10px; }
.side__box ul { list-style: none; padding: 0; margin: 0; }
.side__box li { margin: 0 0 7px; font-size: var(--step-small); }
.side__box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: var(--step-small); }
.side__box dt { color: var(--muted); font-family: var(--display); font-weight: 700; }
.side__box dd { margin: 0; text-align: right; }

.strip { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: clamp(64px, 6.8vw, 110px); }
.strip .ph__frame { aspect-ratio: auto; height: clamp(190px, 21vw, 300px); }

/* Amazon desktop gear box */
.amz-quick { background: var(--surface); padding: clamp(22px, 3vw, 32px); clip-path: var(--cut-md); margin: 2em 0; }
.amz-quick h2 { margin-top: 0; }

/* Blueprint 5: FAQ — Accordion of filled stepped tiles */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); padding: var(--section) 0 0; align-items: start; }
.faq > h2 { position: sticky; top: 32px; }
.faq__list { display: grid; gap: 8px; }
.qa { background: var(--surface); clip-path: var(--cut-sm); transition: background-color var(--t-hover); }
.qa:hover { background: var(--surface-2); }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 58px 20px 22px;
  font: 700 var(--step-body)/1.3 var(--display);
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 16px;
  height: 3px;
  margin-top: -1.5px;
  background: currentColor;
  transition: transform var(--t-hover) var(--ease-out);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] { background: var(--accent); color: var(--accent-ink); }
.qa[open] summary { color: var(--accent-ink); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa > div { padding: 0 22px 20px; }
.qa > div p { max-width: 58ch; margin: 0; color: var(--accent-ink); }
.qa[open] a, .qa[open] b, .qa[open] strong { color: var(--accent-ink); text-decoration-color: var(--field-muted); }
.qa[open] code { background: var(--field-surface); color: var(--accent-ink); }

/* Adsterra 3-slot layout */
.ad { margin: 52px 0 76px; text-align: center; }
.ad > span { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; }
.ad-l { display: flex; flex-direction: column; align-items: center; margin: 32px 0 0; overflow: hidden; }
.ad-wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--margin); }

/* Blueprint 6: Footer — DRINKOCEAN stepped bathymetric block monument */
.foot {
  background: var(--surface);
  margin-top: var(--section);
  padding: clamp(54px, 6vw, 82px) 0 40px;
  color: var(--muted);
}
.foot__mark {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: clamp(74px, 12vw, 158px);
  text-decoration: none;
  margin-bottom: clamp(38px, 4.8vw, 64px);
}
.foot__blk {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 4px;
  background: var(--field);
  color: var(--field-ink);
  font: 800 var(--step-head)/0.9 var(--display);
  clip-path: var(--cut-sm);
  height: var(--h, 100%);
  transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover);
}
.foot__mark:hover .foot__blk { background: var(--accent); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 42px; }
.foot__cols p { max-width: 40ch; font-size: 0.98rem; }
.foot h2 { font-size: var(--step-body); margin: 0 0 12px; color: var(--ink); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; font-size: var(--step-small); }
.foot li a { text-decoration: none; color: var(--ink); }
.foot li a:hover { text-decoration: underline; }
.foot__legal { background: var(--bg); padding: 22px 26px; clip-path: var(--cut-md); font-size: 0.96rem; }
.foot__legal p { max-width: 70ch; margin: 0 0 0.7em; }
.foot__legal p:last-child { margin: 0; }

/* Motion layer: hero staggered entrance + scroll reveal (.rv) */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.hero h1, .phead h1 { animation: rise 700ms var(--ease-out) both; }
.hero .lead, .phead .lead { animation: rise 700ms 80ms var(--ease-out) both; }
.hero .actions, .phead .actions { animation: rise 700ms 155ms var(--ease-out) both; }
.hero .status, .phead .facts { animation: rise 700ms 230ms var(--ease-out) both; }
.hero .stage, .phead .ph { animation: rise 820ms 175ms var(--ease-out) both; }
.rv { opacity: 0; transform: translateY(20px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .hero__grid, .phead__grid, .calc__grid, .split--75, .split--57, .split--66, .faq, .article { grid-template-columns: minmax(0, 1fr); }
  .sticky-col, .faq > h2, .side .sticky { position: static; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--lead { grid-column: span 2; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--57 > .sticky-col { order: 2; }
  .hero h1, .phead h1, .faq > h2 { max-width: none; }
}

@media (max-width: 680px) {
  .nav .wrap { gap: 8px 14px; min-height: 0; padding-block: 12px 8px; }
  .nav__links { margin-left: 0; order: 3; width: 100%; gap: 2px 14px; }
  .nav__lang { margin-left: auto; }
  .actions .btn { flex: 1 1 100%; }
  .seg, .calc__kpis { grid-template-columns: 1fr; }
  .status .when { display: none; }
  .rows > div, .bar-kv { grid-template-columns: 1fr; flex-direction: column; }
  .strip { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__mark { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; height: 58px; }
  .foot__blk { font-size: var(--step-lead); padding: 5px 1px; }
  .amz-quick thead, .tw thead { display: none; }
  .amz-quick table, .amz-quick tbody, .amz-quick tr, .amz-quick td,
  .tw table, .tw tbody, .tw tr, .tw td { display: block; width: 100%; }
  .amz-quick tr, .tw tr { padding: 12px 0; border-bottom: 1px solid var(--surface-3); }
  .amz-quick td, .tw td { padding: 3px 0; border: 0; }
  .tw td.num, .yes, .no, .part { text-align: left; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .circuit__frame img, .ph__frame img { transform: none !important; }
}
