:root {
  color-scheme: light;
  --bg: #f3f6f4;
  --ink: #14211c;
  --muted: #5c6b64;
  --accent: #1b6b45;
  --accent-bar: #1b6b45;
  --card: #ffffff;
  --line: #d5e0da;
  --hero-bg: #f3f6f4;
  --hero-ink: #14211c;
  --bar: #ffffff;
  --bar-ink: #14211c;
  --bar-line: #e4ece8;
  --btn-bg: #14211c;
  --btn-ink: #f7faf8;
  --display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --g-node: #1b6b45;
  --g-fresh: #0e3d28;
  --g-edge: rgba(20, 33, 28, 0.28);
  --g-label: #14211c;
  --radius: 16px;
  --shadow: 0 0 0 transparent;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 148px; }
body[data-style="atelier"] .hero-copy,
body[data-style="signal"] .hero-copy { z-index: 2; pointer-events: none; }
body[data-style="atelier"] .hero-copy .btn,
body[data-style="signal"] .hero-copy .btn,
body[data-style="atelier"] .hero-progress button { pointer-events: auto; }
body[data-style="atelier"] .graph-frame,
body[data-style="signal"] .graph-frame { pointer-events: none; }
body[data-style="atelier"] #graph,
body[data-style="signal"] #graph,
body[data-style="atelier"] .graph-list,
body[data-style="signal"] .graph-list { pointer-events: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.55;
  padding-top: 46px;
}
img, svg, canvas { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}
.skip:focus { top: 0.5rem; }

.dock {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.9rem;
  background: rgba(18, 20, 23, 0.94);
  color: #f6f1e8;
  backdrop-filter: blur(16px);
}
.dock-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  white-space: nowrap;
}
.dock-styles { display: flex; flex-wrap: nowrap; gap: 0.15rem; overflow-x: auto; }
.dock-styles button {
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}
.dock-styles button[aria-pressed="true"] { background: #f6f1e8; color: #14181d; }
.dock-note { display: none; }
.dock-only {
  margin: 0;
  background: #f6f1e8;
  color: #14181d;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.mast {
  position: sticky;
  top: 46px;
  z-index: 30;
  background: var(--bar);
}
.top {
  position: relative;
  top: auto;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 4vw;
  background: var(--bar);
  color: var(--bar-ink);
  border-bottom: 1px solid var(--bar-line);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 560;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.mark img { height: 34px; width: auto; display: block; }
.tabs {
  display: flex;
  gap: 1.15rem;
  margin-left: auto;
  overflow-x: auto;
}
.tabs a, .utils a, .utils button, .foot button, .text-link {
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: 0.94rem;
}
.utils { display: flex; gap: 0.95rem; align-items: center; }
.tabs a:hover, .utils a:hover, .utils button:hover, .text-link:hover { opacity: 0.72; }

.hero { background: var(--hero-bg); color: var(--hero-ink); }
.hero-copy { min-width: 0; }
.hero-grid {
  width: min(1180px, calc(100% - 8vw));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.85fr);
  gap: 1.5rem 3rem;
  align-items: center;
  padding: 4.2rem 0 1.4rem;
}
.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero .kicker { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; }
h1 { margin: 0; font-size: clamp(2.15rem, 3vw, 3.45rem); text-wrap: balance; }
h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { margin: 0 0 0.45rem; font-size: 1.45rem; }
.dek { font-size: 1.12rem; max-width: 40rem; color: inherit; }
.hero .dek { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; align-items: center; margin-top: 1.5rem; }
.hero-progress { display: none; }
.count, .price, figcaption, .sec-head p, .card p, .product p, .help-grid p, .people p, .case .dek { color: var(--muted); }
.hero .count { color: var(--muted); margin: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font-weight: 560;
}
.btn:hover { transform: translateY(-1px); }
.graph-frame {
  position: relative;
  height: 440px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.graph-meta {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
#graph, .graph-still { width: 100%; height: 100%; display: block; }
.graph-still { display: none; }
.graph-list { display: none; list-style: none; margin: 0; padding: 0; }
.graph-tip {
  position: absolute;
  z-index: 3;
  width: min(240px, 70%);
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: #14211c;
  color: #f7faf8;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.35;
  pointer-events: none;
}
.ticker {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 38px;
  padding: 0 4vw;
  border-top: 1px solid var(--bar-line);
  background: var(--bar);
  color: var(--muted);
  overflow: hidden;
}
.ticker-label {
  margin: 0;
  flex: none;
  position: relative;
  z-index: 1;
  padding-right: 0.9rem;
  background: var(--bar);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ticker-window {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: tick 48s linear infinite;
  font-size: 0.84rem;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

.band { padding: 4.5rem 0; }
.wrap { width: min(1120px, calc(100% - 8vw)); margin: 0 auto; }
.sec-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
.sec-head p { margin: 0; max-width: 28rem; }
.cards, .products, .help-grid, .people { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(3, 1fr); }
.help-grid { grid-template-columns: repeat(4, 1fr); }
.products { grid-template-columns: repeat(4, 1fr); }
.people { grid-template-columns: 1fr 1fr; }
.card, .product, .panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
}
.card { min-height: 220px; display: flex; flex-direction: column; }
.card h3 { margin-top: auto; }
.orb { display: none; }
.people article, .help-grid article {
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.15rem 0 0;
}
.card h3, .card p, .card .kicker { position: relative; }
.desk { background: transparent; }
.desk-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; align-items: stretch; }
.radar { grid-column: 1 / -1; display: grid; gap: 1rem; }
.radar-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; }
.radar-tabs { display: flex; gap: 0.4rem; }
.radar-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: inherit;
}
.radar-tabs button[aria-selected="true"] { background: #1d1d1f; color: #f5f5f7; border-color: #1d1d1f; }
.radar-notes { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.radar-notes li { border-top: 1px solid var(--line); padding-top: 0.7rem; }
.radar-notes p { margin: 0.2rem 0; }
.radar-notes span { display: inline-block; margin-right: 0.8rem; color: var(--muted); font-size: 0.82rem; }
.radar-legal, .coming, .latest, .slot-line { margin: 0.35rem 0; }
.coming { font-weight: 560; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; }
.latest, .slot-line { color: var(--muted); font-size: 0.86rem; }
.shelf-group { margin-top: 2.4rem; }
.shelf-group h3 { margin: 0 0 0.8rem; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.shelf-group .products { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.showcase { grid-template-columns: 1fr 1fr; }
.atlas-link { position: absolute; left: 0; bottom: 0; margin: 0; z-index: 2; font-size: 0.88rem; }
.is-idle { cursor: default; opacity: 0.55; }
.btn.is-idle:hover, .text-link.is-idle:hover { transform: none; opacity: 0.55; }
.foot .is-idle { color: var(--muted); }
.topics { list-style: none; margin: 1rem 0 1.3rem; padding: 0; }
.graph-list li, .topics li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.topics button, .graph-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  text-align: left;
  color: inherit;
}
.topics small, .graph-list small { color: var(--muted); }
.chart {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 190px;
  margin-top: 1.2rem;
}
.bar {
  flex: 1;
  height: var(--h);
  background: var(--accent-bar);
  border-radius: 6px 6px 0 0;
  position: relative;
}
.bar:hover::before, .bar:focus-within::before {
  content: attr(data-value);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
  background: #1d1d1f;
  color: #f5f5f7;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
}
.bar span {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  padding-top: 0.35rem;
}
.chart-card { padding-bottom: 2.2rem; }
.price { margin: 0.8rem 0; font-weight: 560; color: var(--ink); }
.text-link { color: var(--accent); font-weight: 560; }
.contact-band { background: #fff; border-top: 1px solid var(--line); }
.case { max-width: 820px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 0; }
.stats div { border-top: 1px solid var(--line); padding-top: 0.7rem; }
.stats dt { font-family: var(--display); font-size: 1.8rem; }
.stats dd { margin: 0.2rem 0 0; color: var(--muted); }
.terms { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.terms button {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1rem;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  color: inherit;
}
.terms span { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
form label { display: grid; gap: 0.35rem; margin: 0 0 0.8rem; font-size: 0.86rem; }
input, textarea, select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  width: 100%;
}
.form-note { color: var(--accent); font-size: 0.9rem; }
.subscribe {
  background: #14211c;
  color: #f7faf8;
  padding: 3.5rem 0;
}
.subscribe p { color: rgba(247, 250, 248, 0.78); }
.subscribe-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.subscribe input { background: transparent; color: inherit; border-color: rgba(246, 241, 232, 0.3); }
.consent { display: flex !important; grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; font-size: 0.82rem !important; }
.consent input { width: auto; margin-top: 0.2rem; }
.foot { padding: 1.6rem 0 2rem; font-size: 0.88rem; color: var(--muted); }
.foot-grid { display: grid; gap: 0.7rem; }
.foot nav, .socials { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.foot button { color: var(--muted); }
.socials span { opacity: 0.8; }

dialog {
  width: min(560px, calc(100% - 1.5rem));
  border: 0;
  border-radius: 18px;
  padding: 1.2rem 1.25rem 1.4rem;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}
dialog::backdrop { background: rgba(16, 16, 16, 0.46); }
.dialog-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.dialog-head h2 { font-size: 1.55rem; }
#panel-body p, #panel-body li { color: var(--ink); }
#search-results { list-style: none; margin: 0.8rem 0 0; padding: 0; }
#search-results button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  color: inherit;
}
#search-results small { display: block; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }

.graph-frame.is-static #graph { display: none; }
.graph-frame.is-static .graph-still { display: block; }
.graph-frame.is-narrow { height: auto; }
.graph-frame.is-narrow #graph,
.graph-frame.is-narrow .graph-still { display: none; }
.graph-frame.is-narrow .graph-list { display: grid; }
.graph-still line { stroke: var(--g-edge); stroke-width: 0.35; }
.graph-still circle { fill: var(--g-node); }
.graph-still circle.fresh { fill: var(--g-fresh); }
.graph-still text { fill: var(--g-label); font-size: 2.4px; font-family: var(--sans); }

@media (max-width: 1100px) {
  .cards, .products, .help-grid { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .desk-grid, .contact-grid, .subscribe-inner, .hero-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 2.4rem; }
  .graph-frame { height: 360px; }
}
@media (max-width: 800px) {
  .top { flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; margin-left: 0; padding-bottom: 0.2rem; }
  .utils { margin-left: auto; }
  .cards, .products, .help-grid, .people, .stats, .terms button { grid-template-columns: 1fr; }
  .graph-frame, .graph-frame.is-static { height: auto; }
  #graph, .graph-still { display: none !important; }
  .graph-list { display: grid; }
  .graph-meta { position: static; margin-bottom: 0.4rem; }
  h1 { font-size: 2.2rem; }
  .dock-kicker { display: none; }
  .band { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .btn:hover { transform: none; }
  #graph { display: none !important; }
  .graph-still { display: block; }
}

/* Atelier — product page */
body[data-style="atelier"] {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0066cc;
  --accent-bar: #1d1d1f;
  --card: #f5f5f7;
  --line: #d2d2d7;
  --hero-bg: #000000;
  --hero-ink: #f5f5f7;
  --bar: rgba(255, 255, 255, 0.86);
  --bar-ink: #1d1d1f;
  --bar-line: rgba(0, 0, 0, 0.06);
  --btn-bg: #0071e3;
  --btn-ink: #ffffff;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --g-node: rgba(255, 255, 255, 0.85);
  --g-fresh: #7ec8ff;
  --g-edge: rgba(255, 255, 255, 0.22);
  --g-label: rgba(255, 255, 255, 0.78);
  --radius: 22px;
}
body[data-style="atelier"] .top { backdrop-filter: saturate(180%) blur(20px); }
body[data-style="atelier"] .mark { font-weight: 600; letter-spacing: -0.04em; }
body[data-style="atelier"] h1,
body[data-style="atelier"] h2,
body[data-style="atelier"] h3 { font-weight: 600; letter-spacing: -0.045em; }
body[data-style="atelier"] .hero {
  height: calc(100dvh - var(--chrome, 148px));
  overflow: hidden;
}
body[data-style="atelier"] h1 {
  font-size: clamp(2.15rem, 3.05vw, 3.35rem);
  line-height: 1.06;
  max-width: 18ch;
  text-wrap: balance;
}
body[data-style="atelier"] .hero .dek {
  font-size: clamp(1.2rem, 1.45vw, 1.42rem);
  line-height: 1.4;
  max-width: 34ch;
  margin-top: 1.05rem;
  letter-spacing: -0.015em;
}
body[data-style="atelier"] .hero-copy {
  position: absolute;
  z-index: 1;
  left: 6vw;
  top: 50%;
  width: min(38%, 28rem);
  max-width: min(38%, 28rem);
  transform: translateY(-52%);
}
body[data-style="atelier"] .hero-grid {
  width: auto;
  height: 100%;
  margin: 0;
  min-height: 0;
  padding: 0;
  position: relative;
  display: block;
}
body[data-style="atelier"] .hero h1,
body[data-style="atelier"] .hero .dek,
body[data-style="atelier"] .hero .kicker {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
body[data-style="atelier"] .hero-copy.is-swap h1,
body[data-style="atelier"] .hero-copy.is-swap .dek,
body[data-style="atelier"] .hero-copy.is-swap .kicker {
  opacity: 0;
  transform: translateY(10px);
}
body[data-style="atelier"] .hero-progress {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.15rem;
}
body[data-style="atelier"] .hero-progress button {
  width: 2.6rem;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
}
body[data-style="atelier"] .hero-progress button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
}
body[data-style="atelier"] .hero-progress button.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  height: 2px;
  width: 0;
  background: #f5f5f7;
  animation: story-fill 7.5s linear forwards;
}
@keyframes story-fill { to { width: 100%; } }
body[data-style="atelier"] .graph-frame {
  position: absolute;
  left: 46%;
  top: 12%;
  right: 3%;
  bottom: 16%;
  height: auto;
}
body[data-style="atelier"] .hero-copy { z-index: 1; }
body[data-style="atelier"] .hero .dek,
body[data-style="atelier"] .hero .count { color: rgba(245, 245, 247, 0.74); }
body[data-style="atelier"] .graph-frame { border: 0; background: transparent; border-radius: 0; }
body[data-style="atelier"] .kicker { letter-spacing: 0.08em; }
body[data-style="atelier"] .hero .kicker { color: #a1a1a6; }
body[data-style="atelier"] .band { padding: 6.5rem 0; }
body[data-style="atelier"] .cards { gap: 0.7rem; }
body[data-style="atelier"] .card { min-height: 420px; border-radius: 28px; background: #f5f5f7; color: #1d1d1f; justify-content: flex-start; padding: 1.6rem; }
body[data-style="atelier"] .card .kicker,
body[data-style="atelier"] .card p { color: #6e6e73; }
body[data-style="atelier"] .card-a,
body[data-style="atelier"] .card-b,
body[data-style="atelier"] .card-c { background: #f5f5f7; }
body[data-style="atelier"] .orb { display: none; }
body[data-style="atelier"] .card h3 { font-size: clamp(1.8rem, 2vw, 2.3rem); margin-top: auto; }
body[data-style="atelier"] .product,
body[data-style="atelier"] .panel-card { background: #f5f5f7; }
body[data-style="atelier"] .bar { background: #1d1d1f; border-radius: 999px; }
body[data-style="atelier"] .subscribe .btn { background: #fff; color: #000; }
body[data-style="atelier"] .graph-tip { background: rgba(255,255,255,0.92); color: #1d1d1f; }
body[data-style="atelier"] .atlas-link { color: #7ec8ff; bottom: -1.5rem; }

body[data-style="signal"] h1 { font-weight: 500; letter-spacing: -0.035em; }
body[data-style="signal"] .graph-meta,
body[data-style="signal"] .ticker-label { font-family: var(--mono); }

/* Gazette — broadsheet */
body[data-style="gazette"] {
  --bg: #f3efe4;
  --ink: #1c140e;
  --muted: #5e5348;
  --accent: #8f1d1d;
  --accent-bar: #8f1d1d;
  --card: transparent;
  --line: #1c140e;
  --hero-bg: #f3efe4;
  --hero-ink: #1c140e;
  --bar: #f3efe4;
  --bar-ink: #1c140e;
  --bar-line: transparent;
  --btn-bg: #1c140e;
  --btn-ink: #f3efe4;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", -apple-system, sans-serif;
  --g-node: #1c140e;
  --g-fresh: #8f1d1d;
  --g-edge: rgba(28, 20, 14, 0.35);
  --g-label: #1c140e;
  --radius: 0;
}
body[data-style="gazette"] .top {
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 3px double #1c140e;
  background: #f3efe4;
}
body[data-style="gazette"] .mark {
  order: -1;
  width: 100%;
  text-align: center;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 560;
  padding-top: 0.3rem;
}
body[data-style="gazette"] .tabs {
  width: 100%;
  margin: 0;
  justify-content: center;
  border-top: 1px solid #1c140e;
  padding: 0.45rem 0 0.2rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
}
body[data-style="gazette"] .utils { position: absolute; right: 4vw; top: 1.05rem; font-size: 0.82rem; }
body[data-style="gazette"] .hero .kicker,
body[data-style="gazette"] .hero .dek,
body[data-style="gazette"] .hero .count { color: var(--muted); }
body[data-style="gazette"] .hero .kicker { color: var(--accent); }
body[data-style="gazette"] .hero-grid { padding-top: 2rem; align-items: start; }
body[data-style="gazette"] h1 { font-size: clamp(2.7rem, 5vw, 4.4rem); }
body[data-style="gazette"] .graph-frame { height: 380px; border: 1px solid #1c140e; border-radius: 0; background: transparent; }
body[data-style="gazette"] .mast { background: #f3efe4; }
body[data-style="gazette"] .card,
body[data-style="gazette"] .product,
body[data-style="gazette"] .panel-card {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  border-top: 1px solid #1c140e;
}
body[data-style="gazette"] .card .kicker,
body[data-style="gazette"] .card p { color: var(--muted); }
body[data-style="gazette"] .orb { display: none; }
body[data-style="gazette"] .card { min-height: 0; }
body[data-style="gazette"] .cards { gap: 1.4rem; }
body[data-style="gazette"] .bar { border-radius: 0; }
body[data-style="gazette"] .btn { border-radius: 0; }
body[data-style="gazette"] input,
body[data-style="gazette"] textarea,
body[data-style="gazette"] select,
body[data-style="gazette"] dialog,
body[data-style="gazette"] .terms button { border-radius: 0; }
body[data-style="gazette"] .subscribe { background: #1c140e; color: #f3efe4; }
body[data-style="gazette"] .graph-tip { background: #f3efe4; color: #1c140e; border: 1px solid #1c140e; border-radius: 0; }
body[data-style="gazette"] .terms button { background: transparent; border: 1px solid #1c140e; }

/* Field — studio */
body[data-style="field"] {
  --bg: #efe6da;
  --ink: #1a120c;
  --muted: #6a5c51;
  --accent: #c4491d;
  --accent-bar: #c4491d;
  --card: #f7f1e8;
  --line: #ddcfc0;
  --hero-bg: #efe6da;
  --hero-ink: #1a120c;
  --bar: #efe6da;
  --bar-ink: #1a120c;
  --bar-line: transparent;
  --btn-bg: #1a120c;
  --btn-ink: #efe6da;
  --display: "Syne", sans-serif;
  --sans: "Manrope", sans-serif;
  --g-node: #c4491d;
  --g-fresh: #1a120c;
  --g-edge: rgba(196, 73, 29, 0.35);
  --g-label: #1a120c;
  --radius: 2px;
}
body[data-style="field"] .mark { font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
body[data-style="field"] .hero-grid {
  width: min(1280px, calc(100% - 6vw));
  min-height: calc(100vh - 70px);
  position: relative;
  display: block;
  padding: 6vh 0 2rem;
}
body[data-style="field"] h1 {
  font-size: clamp(3.4rem, 8.4vw, 8rem);
  line-height: 0.88;
  max-width: 10ch;
  font-weight: 700;
}
body[data-style="field"] .hero .kicker { color: var(--accent); }
body[data-style="field"] .hero .dek,
body[data-style="field"] .hero .count { color: var(--muted); }
body[data-style="field"] .hero-copy { max-width: 760px; position: relative; z-index: 1; }
body[data-style="field"] .graph-frame {
  position: absolute;
  right: 0;
  top: 16vh;
  width: min(38vw, 460px);
  height: 42vh;
}
body[data-style="field"] .ticker { border-top: 1px solid var(--line); margin-top: 2rem; color: var(--ink); }
body[data-style="field"] .cards { grid-template-columns: 1.3fr 1fr; }
body[data-style="field"] .card:first-child { grid-row: span 2; min-height: 460px; }
body[data-style="field"] .card { border-radius: 2px; }
body[data-style="field"] .orb { width: 240px; height: 240px; }
body[data-style="field"] .products { grid-template-columns: repeat(4, minmax(200px, 1fr)); overflow-x: auto; }
body[data-style="field"] .subscribe { background: #c4491d; color: #fff8f3; }
body[data-style="field"] .subscribe p { color: rgba(255, 248, 243, 0.88); }
body[data-style="field"] .subscribe .btn { background: #1a120c; color: #fff8f3; }
body[data-style="field"] .graph-tip { background: #1a120c; color: #efe6da; }

@media (max-width: 800px) {
  body[data-style="atelier"] .hero-grid,
  body[data-style="signal"] .hero-grid,
  body[data-style="field"] .hero-grid {
    min-height: 0;
    padding: 1.6rem 1.1rem 1rem;
    display: block;
  }
  body[data-style="atelier"] h1,
  body[data-style="field"] h1 { font-size: 2.5rem; max-width: none; }
  body[data-style="atelier"] .graph-frame,
  body[data-style="signal"] .graph-frame,
  body[data-style="field"] .graph-frame,
  body[data-style="gazette"] .graph-frame {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    right: auto;
    top: auto;
    margin-top: 1rem;
  }
  body[data-style="atelier"] .hero {
    height: auto;
    min-height: calc(100dvh - var(--chrome, 148px));
    overflow: visible;
  }
  body[data-style="atelier"] .hero-copy,
  body[data-style="signal"] .hero-copy { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; transform: none; }
  body[data-style="atelier"] .hero-copy { max-width: none; padding: 2.2rem 1.1rem 1.4rem; }
  body[data-style="gazette"] .utils { position: static; }
  body[data-style="field"] .cards { grid-template-columns: 1fr; }
  body[data-style="field"] .card:first-child { grid-row: auto; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-style="atelier"] .hero-progress button.is-on::after { animation: none; width: 100%; }
  body[data-style="atelier"] .hero h1,
  body[data-style="atelier"] .hero .dek,
  body[data-style="atelier"] .hero .kicker { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 800px) {
  .graph-still { display: none !important; }
}
