/* Tidegauge marketing site
   Palette follows the app's Graphite Night / Graphite Day tokens (DESIGN.md). */

:root {
  --bg: #0c0c0e;
  --bg-2: #111113;
  --card: #18181b;
  --card-hi: #222226;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --ink: #ececf0;
  --ink-2: #b4b4bb;
  --dim: #808088;

  --cpu: #5a9cf0;
  --mem: #a397f4;
  --gpu: #f18db5;
  --disk: #e8ad39;
  --net: #41c79a;
  --bat: #63ca6e;
  --sound: #e87bcc;
  --bt: #51c4df;
  --proj: #f28d60;
  --neural: #c28df2;
  --ok: #30d158;
  --err: #ff453a;

  --paper: #efede7;
  --paper-ink: #19191b;
  --paper-dim: #67676d;

  --f-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Newsreader", ui-serif, Georgia, serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bar-h: 34px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--f-mono); }
p code, li code {
  font-size: 0.78em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--card-hi);
  color: var(--ink);
  white-space: nowrap;
}
::selection { background: rgba(90, 156, 240, 0.35); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: calc(var(--bar-h) + 8px); }

:focus-visible {
  outline: 2px solid var(--cpu);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ */
/* Menu bar                                                            */
/* ------------------------------------------------------------------ */

.menubar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(10px, 2vw, 18px);
  font-size: 13px;
  font-weight: 500;
  background: rgba(14, 14, 16, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}

.mb-left, .mb-right { display: flex; align-items: center; min-width: 0; }
.mb-left { gap: 6px; }
.mb-right { gap: 14px; }

.mb-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mb-glyph { width: 15px; height: 15px; fill: var(--ink); }

.mb-nav { display: flex; align-items: center; }
.mb-nav a, .mb-brand {
  transition: background-color 0.15s;
}
.mb-nav a {
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
}
.mb-nav a:hover, .mb-brand:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.mb-readouts {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
}
.ro { display: inline-flex; align-items: center; gap: 5px; }
.ro i {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.ro b {
  font-size: 10.5px;
  font-weight: 500;
  min-width: 4.2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ro canvas { width: 24px; height: 10px; }

.mb-gh {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 22px;
  border-radius: 6px;
  color: var(--ink-2);
}
.mb-gh:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.mb-gh svg { width: 15px; height: 15px; }

.mb-clock {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Shared bits                                                         */
/* ------------------------------------------------------------------ */

.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(180deg, #fbfbfc, #dcdde1);
  color: #111113;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -10px rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 40px -12px rgba(255, 255, 255, 0.5); }
.btn-primary svg:last-child:not(:first-child) { transition: transform 0.2s var(--ease); }
.btn-primary:hover svg:last-child:not(:first-child) { transform: translateX(3px); }

.btn-cmd {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
}
.btn-cmd .prompt { color: var(--net); }
.btn-cmd .ic-copy { width: 15px; height: 15px; color: var(--dim); margin-left: 4px; }
.btn-cmd:hover { border-color: rgba(255, 255, 255, 0.28); color: var(--ink); background: rgba(255, 255, 255, 0.07); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }
h2 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
h1 em, h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  background: linear-gradient(170deg, #f4f4f6 10%, #9c9da3 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.section { padding-block: clamp(80px, 10vw, 140px); position: relative; }

.sec-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head-row {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}
.sec-lede {
  margin: 26px 0 0;
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
}
.sec-head-row .sec-lede { margin: 0; }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c, var(--ink));
}
.card-title svg { width: 18px; height: 18px; }
.card-note {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}
.card-note b { color: var(--ink); font-weight: 500; }
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--dim);
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.seg button {
  height: 26px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"],
.seg button[aria-pressed="true"] {
  background: var(--card-hi);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.btn-mini {
  height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, opacity 0.2s;
}
.btn-mini:hover { background: rgba(255, 255, 255, 0.09); }
.btn-mini:disabled { opacity: 0.4; cursor: default; }
.btn-danger { background: var(--err); border-color: transparent; color: #fff; }
.btn-danger:hover { background: #ff5d54; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cpu);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(720px, 100svh);
  padding-top: calc(var(--bar-h) + clamp(32px, 6vh, 88px));
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(65, 110, 160, 0.16), transparent 60%),
    radial-gradient(60% 40% at 85% 10%, rgba(90, 156, 240, 0.06), transparent 70%),
    var(--bg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  from { transform: scale(0.5); opacity: 0.9; }
  to { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  font-size: clamp(54px, 8.2vw, 124px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 750;
}
.hero h1 em { letter-spacing: -0.035em; }

.lede {
  max-width: 540px;
  margin: 28px 0 0;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}

.hero-station {
  width: 230px;
  margin-top: 56px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 20, 23, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--f-mono);
  font-size: 11px;
}
.station-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-2);
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9.5px;
}
.station-list { margin: 10px 0 0; }
.station-list div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.station-list dt { color: var(--dim); }
.station-list dd { margin: 0; color: var(--ink); }
.station-read {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.station-read span { flex: 1; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 9.5px; }
.station-read b {
  font-family: var(--f-sans);
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--cpu);
}
.station-read small { color: var(--dim); font-size: 13px; }

.tide {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 240px;
  max-height: 440px;
  margin-top: clamp(4px, 2vh, 24px);
}
.tide canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}

.staff {
  position: absolute;
  left: clamp(10px, 2vw, 24px);
  top: 12%;
  bottom: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--dim);
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
}
.staff span { position: relative; line-height: 1; }
.staff span::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--line-2);
}

.datum {
  position: absolute;
  left: 0;
  right: 0;
  top: 70%;
  display: flex;
  justify-content: space-between;
  padding: 6px clamp(10px, 2vw, 24px) 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------------------------------------------ */
/* Product shot                                                        */
/* ------------------------------------------------------------------ */

.shot {
  position: relative;
  z-index: 3;
  margin-top: clamp(-140px, -12vh, -80px);
  perspective: 1800px;
}
.window {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: 14px;
  transform-origin: 50% 100%;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 60px 120px -30px rgba(0, 0, 0, 0.9),
    0 30px 160px -40px rgba(90, 156, 240, 0.28);
  will-change: transform;
}
.js .window.reveal { transform: translateY(40px) rotateX(var(--tilt, 0deg)) scale(var(--scale, 1)); }
.js .window.reveal.is-in { transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1)); }
.window img { width: 100%; height: auto; border-radius: 14px; }

.callout {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: rgba(16, 16, 18, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  animation: bob 6s ease-in-out infinite;
}
.callout i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent);
}
.c1 { top: -18px; left: 8%; }
.c2 { bottom: 6%; left: 28%; animation-delay: -2s; }
.c3 { top: 30%; right: -4%; animation-delay: -4s; }
@keyframes bob {
  50% { transform: translateY(-5px); }
}

.shot-cap {
  margin-top: 22px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}

/* ------------------------------------------------------------------ */
/* Tabs grid                                                           */
/* ------------------------------------------------------------------ */

.tabgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.tab {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--bg);
  transition: background-color 0.35s;
}
.tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--c);
  transition: width 0.5s var(--ease);
}
.tab:hover { background: color-mix(in srgb, var(--c) 7%, var(--bg)); }
.tab:hover::before { width: 100%; }
.tab svg { width: 24px; height: 24px; color: var(--c); }
.tab h3 {
  margin-top: 30px;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tab p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.tabgrid .tab:first-child { grid-column: span 2; }
.tabgrid .tab:first-child h3 { font-size: 26px; }

.extras {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.extras li { display: flex; gap: 12px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.extras svg { flex: none; width: 20px; height: 20px; color: var(--ink-2); margin-top: 1px; }
.extras b { display: block; color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Split sections                                                      */
/* ------------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.split-rev .split-copy { order: 2; }
.split-copy h2, .local-copy h2 { margin-bottom: 28px; font-size: clamp(40px, 4.8vw, 68px); }
.split-copy p:not(.kicker) { margin: 0 0 16px; color: var(--ink-2); font-size: 17.5px; max-width: 520px; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 15.5px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--cpu);
}

/* app list */
.rows { list-style: none; margin: 0; padding: 6px 0; position: relative; }
.row {
  display: grid;
  grid-template-columns: 20px 28px 1fr minmax(70px, 120px) 54px;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 16px;
  will-change: transform;
}
.row + .row { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.row .rk { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.row .ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--tile, #333);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.row .nm { min-width: 0; }
.row .nm b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm small { font-size: 12px; color: var(--dim); }
.row .bar {
  height: 5px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  overflow: hidden;
}
.row .bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: var(--c);
  transition: width 0.9s var(--ease);
}
.row .val {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Menu-bar configurator                                               */
/* ------------------------------------------------------------------ */

.config {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-areas:
    "preview preview"
    "settings json";
  gap: 20px;
}

.preview {
  grid-area: preview;
  position: relative;
  height: clamp(150px, 16vw, 200px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 12% 110%, rgba(65, 199, 154, 0.55), transparent 60%),
    radial-gradient(60% 80% at 92% 100%, rgba(90, 156, 240, 0.6), transparent 60%),
    radial-gradient(50% 60% at 60% 30%, rgba(163, 151, 244, 0.35), transparent 70%),
    linear-gradient(180deg, #1a2333, #0e1420);
}
.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(255, 255, 255, 0.025) 22px 23px);
  mask-image: linear-gradient(180deg, transparent 30%, #000);
}

.fake-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  padding: 0 12px 0 16px;
  background: rgba(10, 12, 18, 0.32);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  color: #fff;
  font-size: 13px;
}
.fake-left { display: flex; gap: 18px; opacity: 0.92; }
.fake-left span:not(.fake-app) { opacity: 0.85; font-weight: 400; }
.fake-app { font-weight: 700; }
.fake-right { display: flex; align-items: center; gap: 12px; }
.fake-right .sys { width: 15px; height: 15px; }
.fake-right time { font-variant-numeric: tabular-nums; }

.tg-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.12s;
}
.tg-item:hover, .tg-item[aria-expanded="true"] { background: rgba(255, 255, 255, 0.18); }
.tg-item .glyph { width: 16px; height: 16px; fill: currentColor; }
.tg-item .mi { display: inline-flex; align-items: center; gap: 4px; }
.tg-item .mi i {
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.8;
}
.tg-item .mi b {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tg-item .mi svg { width: 14px; height: 14px; }
.tg-item .mi canvas { width: 24px; height: 10px; }
.tg-item .mi.enter { animation: pop 0.35s var(--ease); }
@keyframes pop {
  from { opacity: 0; transform: translateY(-4px); }
}

.native-menu {
  position: absolute;
  top: 32px;
  right: 74px;
  min-width: 220px;
  padding: 5px;
  border-radius: 9px;
  background: rgba(38, 38, 42, 0.82);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  animation: pop 0.18s var(--ease);
}
.native-menu[hidden] { display: none; }
.native-menu div {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: default;
}
.native-menu div:hover { background: #2a6de0; }
.native-menu kbd { font-family: var(--f-sans); opacity: 0.55; }
.native-menu hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 5px 8px; }

.preview-hint {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 14px;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}

.settings {
  grid-area: settings;
  padding: 6px 0 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  min-height: 52px;
}
.set-row + .set-row, .set-list .set-row:first-child { border-top: 1px solid var(--line); }
.set-row > span { font-size: 14.5px; font-weight: 500; }
.set-icon b { display: block; font-size: 14.5px; font-weight: 600; }
.set-icon small { font-size: 12.5px; color: var(--dim); }
.set-row .seg button { padding: 0 9px; font-size: 12px; }
.set-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}

.json {
  grid-area: json;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0f0f11;
  overflow: hidden;
}
.json-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
}
.json-head span:first-child { color: var(--ink); }
.json-head span:last-child { color: var(--dim); font-size: 10px; word-break: break-all; }
.json pre {
  flex: 1;
  margin: 0;
  padding: 18px;
  font-size: 12px;
  line-height: 1.75;
  overflow: auto;
  color: var(--ink-2);
}
.json .k { color: var(--cpu); }
.json .s { color: var(--net); }
.json .n { color: var(--disk); }
.json .l { color: var(--gpu); }
.json .hl { background: rgba(90, 156, 240, 0.12); border-radius: 3px; animation: hl 1.2s ease-out forwards; }
@keyframes hl { to { background: transparent; } }

/* ------------------------------------------------------------------ */
/* Projects                                                            */
/* ------------------------------------------------------------------ */

.projlist { overflow: hidden; }
.proj-groups { padding: 6px 0; }
.pgroup { padding: 10px 16px 6px; }
.pgroup + .pgroup { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.pgroup header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.pgroup header b { font-size: 14.5px; font-weight: 600; }
.pgroup header code { font-size: 10.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  height: 40px;
  font-size: 13.5px;
  transition: opacity 0.4s, filter 0.4s;
}
.prow .rt { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.prow .rt::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18);
}
.prow .port {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--proj) 14%, transparent);
  color: var(--proj);
}
.prow .pid { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); }
.prow.stopped { opacity: 0.45; }
.prow.stopped .rt::before { background: var(--dim); box-shadow: none; }
.prow.stopped .rt { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }

.sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(320px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 14px;
  background: rgba(36, 36, 40, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7);
  animation: sheet 0.25s var(--ease);
  z-index: 3;
}
.sheet[hidden] { display: none; }
.projlist.has-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.45);
  animation: pop 0.2s ease-out;
}
.sheet p { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-2); }
.sheet p b { color: var(--ink); font-size: 15px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@keyframes sheet { from { opacity: 0; transform: translate(-50%, -46%) scale(0.98); } }

/* ------------------------------------------------------------------ */
/* Compare                                                             */
/* ------------------------------------------------------------------ */

.compare {
  position: relative;
  aspect-ratio: 1192 / 781;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 100px -30px rgba(0, 0, 0, 0.85);
  user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.compare-handle span::before, .compare-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  transform: translateY(-50%);
}
.compare-handle span::before { left: 7px; border-right-color: #111; }
.compare-handle span::after { right: 7px; border-left-color: #111; }
.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(input:focus-visible) { outline: 2px solid var(--cpu); outline-offset: 4px; }
.compare-legend {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 18px auto 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.compare-legend span { display: inline-flex; align-items: center; gap: 10px; }
.compare-legend i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line-2); }
.compare-legend .day i { background: #f5f5f7; }
.compare-legend .night i { background: #161618; }

/* ------------------------------------------------------------------ */
/* Under the hood                                                      */
/* ------------------------------------------------------------------ */

.hood {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.rhythm { display: flex; flex-direction: column; }
.rhythm-grid {
  flex: 1;
  align-content: center;
  display: grid;
  grid-template-columns: minmax(120px, 160px) repeat(10, 1fr);
  padding: 10px 16px 6px;
  position: relative;
}
.rhythm-grid .lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  font-size: 13px;
  color: var(--ink-2);
}
.rhythm-grid .lbl i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}
.rhythm-grid .lbl small { color: var(--dim); font-family: var(--f-mono); font-size: 10px; margin-left: auto; padding-right: 10px; }
.rhythm-grid .cell {
  display: grid;
  place-items: center;
  height: 46px;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s;
}
.rhythm-grid .cell.on { background: rgba(255, 255, 255, 0.045); }
.rhythm-grid .cell b {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.rhythm-grid .cell.on b { background: var(--c); transform: scale(1.2); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 70%, transparent); }
.rhythm-grid .hd {
  height: 24px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--dim);
}
.rhythm-grid .hd.on { color: var(--ink); }
.rhythm-note {
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

.stack {
  list-style: none;
  margin: 0;
  padding: 8px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stack li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
}
.stack li + li { border-top: 1px solid var(--line); }
.stack b { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.stack span { font-size: 13.5px; color: var(--dim); text-align: right; }

/* ------------------------------------------------------------------ */
/* Local                                                               */
/* ------------------------------------------------------------------ */

.local {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.local-copy p:not(.kicker) { color: var(--ink-2); font-size: 17.5px; max-width: 480px; margin: 0; }
.paths { display: grid; gap: 10px; }
.path {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.path:hover { border-color: var(--line-2); transform: translateX(4px); }
.path span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.path code { font-size: 12px; color: var(--ink); word-break: break-all; line-height: 1.6; }
.paths-note { margin: 8px 0 0; font-size: 13.5px; color: var(--dim); }

/* ------------------------------------------------------------------ */
/* Paper: known shallows                                               */
/* ------------------------------------------------------------------ */

.paper {
  position: relative;
  padding-block: clamp(96px, 13vw, 170px);
  background:
    linear-gradient(90deg, rgba(25, 25, 27, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, rgba(25, 25, 27, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--paper);
  color: var(--paper-ink);
}
.paper ::selection { background: rgba(36, 111, 199, 0.25); }
.paper-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 56px;
}
.paper-head .kicker { grid-column: 1 / -1; margin: 0; }
.kicker-ink { color: var(--paper-dim); }
.kicker-ink span { color: var(--paper-ink); border-color: rgba(25, 25, 27, 0.25); }
.paper h2 {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 128px);
  letter-spacing: -0.035em;
  line-height: 0.9;
}
.paper-head p:not(.kicker) { margin: 0; font-size: 18px; color: #3c3c41; max-width: 520px; }

.tidetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.tidetable thead th {
  padding: 0 16px 12px 0;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border-bottom: 2px solid var(--paper-ink);
}
.tidetable tbody th, .tidetable td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid rgba(25, 25, 27, 0.16);
  text-align: left;
  vertical-align: middle;
}
.tidetable tbody th { font-weight: 650; font-size: 17px; letter-spacing: -0.015em; width: 26%; }
.tidetable td:nth-child(2) { width: 24%; }
.tidetable td:last-child { color: #3c3c41; }
.tidetable tbody tr { transition: background-color 0.2s; }
.tidetable tbody tr:hover { background: rgba(25, 25, 27, 0.04); }
.chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(25, 25, 27, 0.35);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  white-space: nowrap;
}
.paper-foot { margin: 40px 0 0; font-size: 15px; color: #3c3c41; }
.paper-foot a { color: var(--paper-ink); font-weight: 600; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ */
/* Install + support                                                   */
/* ------------------------------------------------------------------ */

.install-sec {
  background: radial-gradient(70% 50% at 50% 0%, rgba(90, 156, 240, 0.08), transparent 70%), var(--bg);
}
.install {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}
.install > *, .config > *, .hood > *, .split > *, .local > * { min-width: 0; }
.inst { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; align-items: flex-start; }
.inst h3 { font-size: 26px; letter-spacing: -0.03em; }
.inst > p { margin: 10px 0 26px; color: var(--ink-2); font-size: 15.5px; }
.inst .inst-note { margin: auto 0 0; padding-top: 22px; font-size: 13px; color: var(--dim); }

.term {
  width: 100%;
  border-radius: 12px;
  background: #0b0b0d;
  border: 1px solid var(--line);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--line);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.term-copy {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}
.term-copy:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.term-copy svg { width: 14px; height: 14px; }
.term pre { margin: 0; padding: 16px 18px; font-size: 12.5px; line-height: 1.9; overflow-x: auto; color: var(--ink); }
.term .p { color: var(--net); user-select: none; }

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 20px;
  padding: clamp(24px, 3.5vw, 36px) clamp(24px, 3.5vw, 40px);
  border-radius: 18px;
  border: 1px solid rgba(232, 173, 57, 0.22);
  background:
    radial-gradient(80% 140% at 100% 50%, rgba(232, 173, 57, 0.14), transparent 60%),
    var(--card);
}
.support h3 { font-size: 22px; letter-spacing: -0.025em; }
.support p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; max-width: 560px; }
.btn-coffee {
  flex: none;
  background: #ffdd00;
  color: #111;
  box-shadow: 0 10px 30px -12px rgba(255, 221, 0, 0.6);
}
.btn-coffee:hover { background: #ffe433; box-shadow: 0 14px 36px -12px rgba(255, 221, 0, 0.75); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.foot {
  position: relative;
  padding: 40px 0 36px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.foot-mark {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  margin-bottom: 36px;
}
.foot-bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 0.6vw, 8px);
  height: clamp(48px, 11vw, 160px);
  align-self: center;
}
.foot-bars i {
  width: clamp(9px, 1.4vw, 20px);
  border-radius: 999px;
  background: linear-gradient(180deg, #fafafb, #d9dade);
  animation: tide 5s ease-in-out infinite;
  transform-origin: bottom;
}
.foot-bars i:nth-child(1) { height: 52%; animation-delay: 0s; }
.foot-bars i:nth-child(2) { height: 72%; animation-delay: -0.6s; background: linear-gradient(180deg, #b7b8bd, #85868b); }
.foot-bars i:nth-child(3) { height: 41%; animation-delay: -1.2s; }
.foot-bars i:nth-child(4) { height: 86%; animation-delay: -1.8s; }
.foot-bars i:nth-child(5) { height: 62%; animation-delay: -2.4s; background: linear-gradient(180deg, #b7b8bd, #85868b); }
.foot-bars i:nth-child(6) { height: 47%; animation-delay: -3s; }
@keyframes tide { 50% { transform: scaleY(0.78); } }
.foot-word {
  font-size: clamp(64px, 15.5vw, 230px);
  font-weight: 800;
  line-height: 1.12;
  padding-bottom: 0.04em;
  letter-spacing: -0.065em;
  background: linear-gradient(180deg, #e9e9ed 20%, rgba(233, 233, 237, 0.08) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}
.foot-row p { margin: 0; }
.foot-row a { color: var(--ink-2); text-underline-offset: 3px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-row nav a { text-decoration: none; }
.foot-row nav a:hover { color: var(--ink); }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .tabgrid { grid-template-columns: repeat(3, 1fr); }
  .tabgrid .tab:first-child { grid-column: span 2; }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .c2 { left: 2%; }
  .c3 { right: 2%; }
}

@media (max-width: 960px) {
  .mb-nav a:nth-child(n+4) { display: none; }
  .hero-station { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .split, .local, .hood, .install, .sec-head-row, .paper-head { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: 0; }
  .config {
    grid-template-columns: 1fr;
    grid-template-areas: "preview" "settings" "json";
  }
  .callout { display: none; }
  .support { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --bar-h: 40px; }
  body { font-size: 16px; }
  .mb-nav, .ro-hide-sm, .mb-clock { display: none; }
  .eyebrow { font-size: 10px; letter-spacing: 0.03em; }
  .tabgrid { grid-template-columns: 1fr 1fr; }
  .tabgrid .tab:first-child { grid-column: span 2; }
  .tab { padding: 20px 18px 22px; }
  .tab h3 { margin-top: 20px; }
  .extras { grid-template-columns: 1fr; }
  .shot { margin-top: -60px; }
  .row { grid-template-columns: 18px 26px 1fr 46px; }
  .row .bar { display: none; }
  .set-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .set-row .seg { max-width: 100%; overflow-x: auto; }
  .rhythm-grid { grid-template-columns: 96px repeat(10, 1fr); padding-inline: 10px; }
  .rhythm-grid .lbl { font-size: 11.5px; }
  .rhythm-grid .lbl small { display: none; }
  .rhythm-grid .cell b { width: 10px; height: 10px; }
  .path { grid-template-columns: 1fr; gap: 6px; }
  .tidetable thead { display: none; }
  .tidetable, .tidetable tbody, .tidetable tr, .tidetable th, .tidetable td { display: block; width: auto !important; }
  .tidetable tr { padding: 16px 0; border-bottom: 1px solid rgba(25, 25, 27, 0.16); }
  .tidetable tbody th, .tidetable td { padding: 3px 0; border: 0; }
  .fake-left span:not(.fake-app) { display: none; }
  .native-menu { right: 12px; }
  .staff { display: none; }
  .foot-word { font-size: 13.5vw; }
  .foot-bars { height: 11vw; }
  .foot-bars i { width: 2.2vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
