/* TidalBreathe — specimen catalogue · putty, black, teal */
:root {
  --bg: #dedad3;
  --surface: #d3cec6;
  --ink: #0a0a0a;
  --muted: #5c5852;
  --accent: #256f82;
  --accent-ink: #ffffff;
  --field-1: #dedad3;
  --field-2: #c9c3b8;
  --field-3: #256f82;
  --field-4: #16343c;
  --paper: var(--bg);
  --sand: var(--surface);
  --sand-2: var(--field-2);
  --indigo: var(--ink);
  --indigo-2: var(--muted);
  --indigo-deep: var(--ink);
  --ink-2: var(--muted);
  --ink-3: var(--muted);
  --ochre: var(--accent);
  --ochre-soft: #9ec3cd;
  --terra: var(--accent);
  --font-display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --font-text: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --serif: var(--font-display);
  --sans: var(--font-text);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 6.4vw, 7rem);
  --margin: clamp(1rem, 2.4vw, 2.5rem);
  --gutter: 10px;
  --section: clamp(5rem, 11vw, 12rem);
  --radius: 0px;
  --max: 100%;
  --gut: var(--margin);
  --r: 0;
  --arch: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --line: transparent;
  --line-strong: transparent;
  --line-inv: transparent;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; max-width: 62ch; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: pretty;
}
.hero h1 { text-wrap: unset; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.1; }
h1 em, h2 em, h3 em { font-style: normal; color: inherit; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--margin);
}

.label,
.sec-no,
.g-no,
.page-head .label,
.contact-panel .label { display: none; }

.lede { font-size: var(--step-lead); line-height: 1.35; color: var(--ink); max-width: 38ch; }
.hero .lede { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); line-height: 1.45; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { top: 0.6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.4rem;
  border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-text); font-size: 1.125rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--ease), background-color 180ms ease, color 180ms ease;
}
.btn::after { display: none; }
.btn:hover { background: var(--field-4); }
.btn:active { transform: scale(0.97); }
.btn.no-arrow::after { display: none; }
.btn-line { background: var(--ink); color: var(--bg); }
.btn-line:hover { background: var(--field-4); color: var(--accent-ink); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--surface); }
.btn-gold { background: var(--accent); color: var(--accent-ink); }
.btn-gold:hover { background: var(--field-4); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }

.link {
  display: inline; font-size: inherit; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 0.07em;
  background: none; padding: 0; border: 0; cursor: pointer; color: var(--ink);
}
.link::after { content: none; }
.link:hover { color: var(--accent); }
.link-light { color: var(--bg); }

/* Top line */
.topline { background: var(--ink); color: var(--bg); font-size: var(--step-small); }
.topline .container { padding-top: 0.7rem; padding-bottom: 0.7rem; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
.topline p { margin: 0; max-width: none; }
.topline a { color: var(--bg); }
.topline-meta { display: flex; gap: 1.2rem; white-space: nowrap; }
@media (max-width: 860px) {
  .topline-meta { display: none; }
  .topline .container { display: block; }
}

/* Header */
.site-header { position: relative; z-index: 50; background: var(--bg); }
.header-bar { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; position: relative; }
.header-note { display: none; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; letter-spacing: -0.03em; }
.brand-name b { font-weight: 400; font-style: normal; color: inherit; }
.header-tools { display: flex; align-items: center; gap: 0.8rem; margin-left: auto; }
.cart-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  background: var(--ink); color: var(--bg);
  text-decoration: none; font-size: 1rem; font-weight: 600;
}
.cart-link:hover { background: var(--accent); }
.cart-link [data-cart-count] {
  display: inline-grid; place-items: center;
  min-width: 1.5rem; height: 1.5rem; padding: 0 0.3rem;
  background: var(--accent); color: var(--accent-ink); font-size: var(--step-small); font-weight: 600;
}
.main-nav { background: transparent; }
.nav-inner { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.header-bar .main-nav { flex: 1; }
.header-bar .nav-inner { padding: 0; }
.main-nav a {
  position: relative; padding: 0.4rem 0;
  font-size: 1.05rem; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--muted); text-decoration: none;
}
.main-nav a::after { display: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; width: 46px; height: 46px; cursor: pointer; position: relative; background: var(--ink); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--bg); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }

@media (max-width: 1080px) {
  .header-bar { flex-wrap: wrap; }
  .burger { display: block; }
  .header-bar .main-nav,
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); max-height: 0; overflow: hidden; visibility: hidden;
  }
  .nav-inner { flex-direction: column; gap: 0; padding: 0.4rem var(--margin) 1.4rem; }
  .main-nav a { font-family: var(--font-display); font-size: 1.75rem; color: var(--bg); padding: 0.55rem 0; }
  .nav-toggle:checked ~ .main-nav,
  .nav-toggle:checked ~ .header-bar .main-nav { max-height: 90vh; overflow-y: auto; visibility: visible; }
  .nav-toggle:checked ~ .header-bar .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .header-bar .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .header-bar .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .brand-name { font-size: 1.25rem; }
  .cart-link .cart-word { display: none; }
}

/* Hero — statement + specimen mosaic */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 100svh auto;
  background: var(--bg);
  color: var(--ink);
  position: relative;
}
.hero-bg { display: none; }
.hero-inner {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: none; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0 0 1rem; color: var(--ink); max-width: 8em; }
.hero .lede { color: var(--ink); font-size: var(--step-body); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.8rem; }
.hero-note { margin: 0; font-size: var(--step-small); color: var(--muted); max-width: 20ch; }
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  grid-auto-rows: minmax(90px, 14vh);
  gap: 10px;
  padding: 10px 0 10px 10px;
  background: var(--field-4);
  overflow: hidden;
  align-content: center;
}
.hero-mosaic .tile {
  margin: 0;
  overflow: hidden;
  background: var(--field-2);
}
.hero-mosaic .tile:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; background: var(--surface); }
.hero-mosaic .tile:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; background: var(--accent); }
.hero-mosaic .tile:nth-child(3) { grid-column: 4 / 6; grid-row: 2 / 4; background: var(--field-1); }
.hero-mosaic .tile:nth-child(4) { grid-column: 6 / 8; grid-row: 2 / 3; background: var(--surface); }
.hero-mosaic .tile:nth-child(5) { grid-column: 1 / 3; grid-row: 3 / 5; background: var(--accent); }
.hero-mosaic .tile:nth-child(6) { grid-column: 3 / 6; grid-row: 4 / 6; background: var(--surface); }
.hero-mosaic img {
  width: 100%; height: 100%; object-fit: cover;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  margin-top: 0;
  padding: 2rem var(--margin);
  background: var(--surface);
}
.hero > .container:last-child { grid-column: 1 / -1; padding: 0; }
.fact { padding: 0; background: none; margin: 0; max-width: 22ch; font-size: var(--step-body); color: var(--ink); }
.fact + .fact::before { display: none; }
.fact strong { display: inline; font-family: inherit; font-weight: 600; font-size: inherit; color: inherit; margin: 0; }
.fact span { font-size: inherit; color: inherit; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .hero-mosaic { min-height: 52svh; grid-auto-rows: minmax(70px, 10vh); order: -1; padding: 10px; }
  .hero-inner { min-height: 0; padding-top: 2rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .facts { grid-template-columns: 1fr 1fr; padding: 10px var(--margin) 0; }
  .hero-note { display: none; }
}

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
#catalogo { background: var(--surface); }
.section.tint { background: var(--surface); }
.section.dark { background: var(--ink); color: var(--bg); }
.sec-head { text-align: left; max-width: none; margin: 0 0 clamp(2rem, 4vw, 3.5rem); }
.sec-head .sec-body h2 { margin: 0 0 0.6rem; }
.sec-head p { margin: 0; color: var(--ink); max-width: 48ch; }
.sec-head p a { color: var(--ink); }
.dark .sec-head p { color: var(--bg); }
.dark h2 em { color: inherit; }

/* Catalog as specimens */
.index-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 10px;
  grid-auto-flow: dense;
}
.index-row {
  grid-column: span 4;
  display: flex; flex-direction: column; gap: 10px;
  padding: 0; border: 0; position: relative;
}
.index-list .index-row:nth-child(6n+1) { grid-column: span 4; }
.index-list .index-row:only-child { grid-column: 1 / -1; }
.index-list .index-row:only-child .index-thumb { aspect-ratio: 16 / 8; }
.index-thumb {
  width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--field-2); display: grid; place-items: center;
}
.index-row:nth-child(4n+1) .index-thumb { background: var(--surface); }
.index-row:nth-child(4n+2) .index-thumb { background: var(--accent); }
.index-row:nth-child(4n+3) .index-thumb { background: var(--field-2); }
.index-row:nth-child(4n+4) .index-thumb { background: var(--field-4); }
.index-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: none;
}
.index-row:hover .index-thumb img { transform: none; }
.index-main { padding: 0 2px 8px; }
.index-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.index-line h3 { margin: 0; font-family: var(--font-text); font-size: 1.2rem; letter-spacing: 0; line-height: 1.2; white-space: normal; }
.index-line h3 a { text-decoration: none; }
.index-line h3 a::after { content: ""; position: absolute; inset: 0; }
.dots { display: none; }
.index-price { font-family: var(--font-text); font-size: 1.2rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.index-meta { margin: 0.2rem 0 0; font-size: 1rem; color: var(--muted); }
.index-format { margin: 0; font-size: var(--step-body); color: var(--muted); }
.index-add {
  position: absolute; z-index: 2; right: 10px; top: 10px;
  width: 42px; height: 42px;
  background: var(--ink); color: var(--bg); cursor: pointer;
  font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
}
.index-add:hover, .index-add.is-added { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 900px) {
  .index-row, .index-list .index-row:nth-child(6n+1) { grid-column: span 6; }
}
@media (max-width: 560px) {
  .index-row, .index-list .index-row:nth-child(6n+1) { grid-column: span 12; }
}

/* Showcase — two objects, two fields */
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--surface);
}
.chapter + .chapter { margin-top: 10px; }
.chapter.flip { background: var(--field-4); color: var(--bg); }
.chapter.flip .chapter-copy p { color: var(--bg); }
.chapter.flip .chapter-copy .link { color: var(--bg); }
.chapter.flip .chapter-media { order: 2; }
.chapter-media { margin: 0; background: var(--field-2); }
.chapter.flip .chapter-media { background: var(--accent); }
.chapter-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.chapter-media::after { display: none; }
.chapter-copy { padding: clamp(1.6rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.chapter-copy p { color: var(--ink); }
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter.flip .chapter-media { order: 0; }
  .chapter-media img { aspect-ratio: 1; }
}

/* Statement */
.statement { padding: clamp(4rem, 9vw, 7rem) 0; text-align: left; background: var(--accent); color: var(--accent-ink); }
.statement::before { display: none; }
.statement p {
  font-family: var(--font-text);
  font-size: clamp(1.25rem, 2vw, 2.25rem);
  line-height: 1.25;
  max-width: 36ch;
  margin: 0;
}
.statement p em { color: inherit; font-style: normal; }
.statement .mark { display: block; margin: 0 0 1.4rem; width: 56px; height: 56px; color: var(--bg); }

/* Timeline as stacked fields */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.timeline li { padding: 2rem 1.6rem; background: var(--field-4); }
.timeline .step-no { display: block; font-family: var(--font-display); font-size: var(--step-head); line-height: 1; color: var(--bg); margin-bottom: 0.5rem; }
.timeline h3 { font-size: 1.6rem; margin: 0.3rem 0 0.6rem; }
.timeline p { color: rgba(222, 218, 211, 0.78); max-width: 30ch; margin: 0; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.feature img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature > div { background: var(--surface); padding: clamp(1.6rem, 4vw, 3rem); }
.feature p { color: var(--ink); }
.feature .actions { margin-top: 1.6rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* Quotes as paper slips */
.quotes {
  display: flex; flex-wrap: wrap; gap: 0;
  justify-content: center;
  padding: 2rem 0 4rem;
  overflow: hidden;
  background: var(--field-2);
  margin-inline: calc(var(--margin) * -1);
  padding-inline: var(--margin);
}
.quote {
  margin: 0  -20px 0;
  width: min(320px, 86vw);
  padding: 1.6rem 1.4rem 2.2rem;
  background: var(--bg);
  display: block;
  clip-path: polygon(0 8px, 12px 0, 28px 8px, 44px 0, 60px 8px, 76px 0, 92px 8px, 108px 0, 124px 8px, 140px 0, 156px 8px, 172px 0, 188px 8px, 204px 0, 220px 8px, 236px 0, 252px 8px, 268px 0, 284px 8px, 300px 0, 100% 8px, 100% calc(100% - 8px), 284px 100%, 268px calc(100% - 8px), 252px 100%, 236px calc(100% - 8px), 220px 100%, 204px calc(100% - 8px), 188px 100%, 172px calc(100% - 8px), 156px 100%, 140px calc(100% - 8px), 124px 100%, 108px calc(100% - 8px), 92px 100%, 76px calc(100% - 8px), 60px 100%, 44px calc(100% - 8px), 28px 100%, 12px calc(100% - 8px), 0 100%);
}
.quote:nth-child(1) { transform: rotate(-4deg); min-height: 440px; z-index: 1; }
.quote:nth-child(2) { transform: rotate(2deg); min-height: 520px; z-index: 2; }
.quote:nth-child(3) { transform: rotate(5deg); min-height: 600px; z-index: 3; }
.quote:nth-child(4) { transform: rotate(-3deg); min-height: 480px; z-index: 1; }
.quote:nth-child(5) { transform: rotate(3deg); min-height: 520px; }
.quote:nth-child(6) { transform: rotate(-2deg); min-height: 460px; }
.quote::before { display: none; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1.05rem; line-height: 1.45; font-style: italic; }
.quote blockquote p { margin: 0; max-width: none; }
.quote figcaption { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.quote figcaption span { display: block; font-weight: 400; font-style: italic; color: var(--muted); }
@media (max-width: 760px) {
  .quotes { display: block; }
  .quote { width: 78%; margin: -32px auto 0; }
  .quote:nth-child(odd) { margin-left: 0; }
  .quote:nth-child(even) { margin-right: 0; margin-left: auto; }
}

.notice {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 10px; align-items: stretch;
  padding: 0; background: transparent;
}
.notice::after { display: none; }
.notice > div:first-child { background: var(--field-4); color: var(--bg); padding: clamp(1.6rem, 3vw, 2.6rem); }
.notice > div:last-child { background: var(--surface); padding: clamp(1.6rem, 3vw, 2.6rem); }
.notice h2 { margin: 0; }
.notice p { color: var(--ink); }
.notice > div:first-child h2 { color: var(--bg); }
@media (max-width: 860px) { .notice { grid-template-columns: 1fr; } }

.fineprint { font-size: 1rem; color: var(--muted); margin: 1.8rem 0 0; max-width: 70ch; text-align: left; }
.callout { background: var(--surface); padding: 1.1rem 1.3rem; margin: 1.6rem 0; font-size: 1rem; color: var(--ink); }
.callout::before { display: none; }
.callout p:last-child { margin: 0; }

/* FAQ — stacked cards */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); }
.faq-wrap .aside { position: sticky; top: 110px; align-self: start; }
.faq-wrap .aside p { color: var(--muted); }
.faq { background: var(--surface); margin: -48px 0 0; padding: 1.1rem 1.3rem 0.4rem; }
.faq:first-child { margin-top: 0; }
.faq:nth-child(3n+1) { background: var(--surface); }
.faq:nth-child(3n+2) { background: var(--field-2); }
.faq:nth-child(3n+3) { background: #c2d4d8; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 0.6rem 0 0.8rem;
  font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.2; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: 1.2rem;
}
.faq[open] summary::after { transform: rotate(45deg); background: var(--accent); }
.faq .faq-a { padding: 0 0 1.2rem; color: var(--ink); max-width: 50ch; }
.faq .faq-a a { color: var(--ink); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .aside { position: static; } }

/* Inner page head */
.page-head { background: var(--field-4); color: var(--bg); padding: clamp(2.4rem, 6vw, 5rem) 0; }
.page-head::after { display: none; }
.crumbs { font-size: 1rem; color: rgba(222, 218, 211, 0.7); margin-bottom: 1.6rem; }
.crumbs a { color: var(--bg); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 0.5rem; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.4rem, 5vw, 4.5rem); align-items: end; }
.page-head h1 { margin: 0; color: var(--bg); font-size: var(--step-head); }
.page-head .lede { margin: 0; color: rgba(222, 218, 211, 0.86); }
.page-head .lede a { color: var(--bg); }
.page-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.page-nav a { font-size: 1rem; text-decoration: none; padding: 0.6rem 1.1rem; background: var(--accent); color: var(--accent-ink); }
.page-nav a:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } }

.section > .container > .crumbs { color: var(--muted); }
.section > .container > .crumbs a { color: var(--ink); }

.doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: 110px; background: var(--surface); padding: 1.4rem; }
.toc p { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 0.6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 0.45rem 0; font-size: 1.05rem; text-decoration: none; color: var(--muted); }
.toc a::before { content: none; }
.toc a:hover { color: var(--ink); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

.prose { max-width: 62ch; }
.prose h2 { font-size: var(--step-head); color: var(--ink); margin: 2.4rem 0 1rem; scroll-margin-top: 120px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose ul li::marker { color: var(--accent); }
.prose a { color: var(--ink); }

.data-list { margin: 0 0 1.5rem; }
.data-list div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: 0.9rem 0; }
.data-list div:nth-child(odd) { background: transparent; }
.data-list dt { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.data-list dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .data-list div { grid-template-columns: 1fr; gap: 0.2rem; } }

.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; align-items: start; }
.story figure { margin: 0; position: sticky; top: 110px; background: var(--field-2); }
.story img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.story figcaption { font-size: 1rem; font-style: italic; color: var(--muted); margin: 0.8rem 0 0; padding: 0 0.2rem; }
.story .prose p:first-child { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.25; color: var(--ink); }
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 2rem; }
.milestones div { padding: 1.5rem 1.2rem; background: var(--surface); }
.milestones div:nth-child(2) { background: var(--accent); color: var(--accent-ink); }
.milestones div:nth-child(3) { background: var(--field-4); color: var(--bg); }
.milestones strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 0 0 0.4rem; }
.milestones div::before { display: none; }
.milestones span { font-size: 1rem; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story figure { position: static; } .milestones { grid-template-columns: 1fr; } }

.banner-img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; margin-bottom: clamp(2rem, 5vw, 4rem); }
.glossary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gloss { padding: 1.4rem 1.2rem; background: var(--surface); display: block; min-height: 12rem; }
.gloss:nth-child(4n+2) { background: var(--field-2); }
.gloss:nth-child(4n+3) { background: var(--accent); color: var(--accent-ink); }
.gloss:nth-child(4n+3) p { color: rgba(255,255,255,0.86); }
.gloss:nth-child(4n+4) { background: var(--field-4); color: var(--bg); }
.gloss:nth-child(4n+4) p { color: rgba(222, 218, 211, 0.82); }
.gloss h3 { margin: 0 0 0.4rem; font-size: 1.35rem; color: inherit; }
.gloss p { margin: 0; font-size: 1rem; color: var(--muted); }
.g-tag { display: block; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: inherit; margin-bottom: 0.35rem; opacity: 0.7; }
@media (max-width: 960px) { .glossary { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .glossary { grid-template-columns: 1fr; } .banner-img { aspect-ratio: 4 / 3; } }

.principles { list-style: none !important; margin: 0 0 1.4rem; padding: 0 !important; }
.principles li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; padding: 1rem 0 !important; margin: 0; background: var(--surface); padding-left: 1rem !important; padding-right: 1rem !important; margin-bottom: 10px !important; }
.principles li::marker { content: none; }
.principles li span { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }

.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 10px; align-items: start; padding-bottom: clamp(2rem, 5vw, 4rem); }
.product-media { margin: 0; position: sticky; top: 110px; background: var(--field-2); overflow: hidden; }
.product-media img { width: 100%; aspect-ratio: 5 / 6; object-fit: contain; padding: 8%; }
.product-info { background: var(--bg); padding: 0.4rem 0 0 0.2rem; }
.product-info h1 { font-size: var(--step-head); color: var(--ink); margin-bottom: 0.4rem; }
.product-info .tagline { font-style: italic; font-size: var(--step-lead); color: var(--muted); margin-bottom: 1.4rem; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface); margin-bottom: 1.4rem; }
.price-row .price { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--ink); }
.price-row .vat { font-size: 1rem; color: var(--muted); text-align: right; max-width: 22ch; }
.buy { display: grid; gap: 0.7rem; margin-bottom: 1.6rem; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perks li { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; background: var(--surface); font-size: 1rem; color: var(--ink); line-height: 1.5; }
.perks svg { width: 22px; height: 22px; color: var(--accent); }
.perks a { color: var(--ink); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product-media { position: static; } }
@media (max-width: 460px) { .perks { grid-template-columns: 1fr; } }

.dossier { display: grid; gap: 10px; }
.dossier-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 2rem; padding: 2rem 1.4rem; background: var(--surface); }
.dossier-row:nth-child(even) { background: var(--field-2); }
.dossier-row > h2 { font-size: 1.6rem; color: var(--ink); margin: 0; }
.dossier-row ol { counter-reset: st; list-style: none; padding: 0; }
.dossier-row ol li { counter-increment: st; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); padding: 0.55rem 0; margin: 0; }
.dossier-row ol li::before { content: counter(st); font-family: var(--font-display); color: var(--accent); }
.prose img { width: 100%; height: auto; display: block; margin: 1.2rem 0 0; }
.spec { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec th, .spec td { text-align: left; padding: 0.75rem 0; vertical-align: top; }
.spec th { width: 36%; font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); padding-right: 1rem; }
@media (max-width: 760px) { .dossier-row { grid-template-columns: 1fr; gap: 0.8rem; } }

.cart-lines { }
.cart-line { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.2rem 0; }
.cart-line img { width: 90px; height: 108px; object-fit: contain; background: var(--surface); }
.cart-line h2 { font-size: 1.4rem; color: var(--ink); margin: 0 0 0.2rem; }
.cart-line .unit { font-size: 1rem; color: var(--muted); margin: 0 0 0.6rem; }
.cart-line .controls { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; background: var(--surface); }
.qty button { width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 2rem; text-align: center; font-weight: 600; }
.remove { background: none; border: 0; padding: 0; font-size: 1rem; color: var(--muted); cursor: pointer; text-decoration: underline; }
.line-total { font-size: 1.4rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.summary { background: var(--surface); padding: 1.8rem; position: sticky; top: 110px; }
.summary h2 { font-size: 1.8rem; color: var(--ink); margin-bottom: 1rem; }
.sum-lines { list-style: none; margin: 0 0 1rem; padding: 0; font-size: 1rem; color: var(--muted); }
.sum-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.7rem 0; font-size: 1rem; }
.sum-total { font-size: 1.05rem; }
.sum-total strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; color: var(--ink); }
.summary .btn { margin-top: 1.2rem; }
.summary .small { margin-top: 1rem; color: var(--muted); }
.empty { padding: 3.5rem 2rem; text-align: left; background: var(--surface); }
.empty p { font-family: var(--font-display); font-size: var(--step-head); color: var(--ink); margin-bottom: 1.4rem; max-width: 20ch; }
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-line { grid-template-columns: 70px minmax(0, 1fr); }
  .line-total { grid-column: 2; }
}

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.4rem; }
.field > span { font-size: 1rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 0; border-radius: 0; padding: 0.85rem 1rem;
}
.field select { background-image: none; padding-right: 2rem; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.check { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 1rem; color: var(--ink); }
.check input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--accent); flex: none; }
.form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.photo-strip {
  display: flex; gap: 8px; overflow: hidden;
  height: 150px; margin: 0 calc(var(--margin) * -1) 2.4rem;
}
.photo-strip img { height: 150px; width: auto; object-fit: cover; flex: none; background: var(--surface); }
.photo-strip img:nth-child(3n+1) { width: 200px; }
.photo-strip img:nth-child(3n+2) { width: 150px; }
.photo-strip img:nth-child(3n+3) { width: 225px; }
.archive {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin-top: 2rem;
}
.archive figure { margin: 0; background: var(--field-2); }
.archive img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.archive figcaption { font-size: 1rem; color: var(--muted); padding: 0.6rem 0.2rem 0; }
@media (max-width: 800px) { .archive { grid-template-columns: 1fr 1fr; } .photo-strip { height: 110px; } .photo-strip img { height: 110px; } }
.credits { font-size: 1rem; color: rgba(222, 218, 211, 0.7); max-width: 60ch; margin: 0 0 1rem; }

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; align-items: start; }
.contact-panel { background: var(--field-4); color: var(--bg); padding: clamp(2rem, 3.4vw, 2.8rem); position: relative; overflow: hidden; }
.contact-panel::after { display: none; }
.contact-panel h2 { font-size: 2.2rem; text-align: left; }
.contact-panel .data-list dt { color: rgba(222, 218, 211, 0.62); }
.contact-panel .data-list dd, .contact-panel a { color: var(--bg); }
.contact-panel .link { margin-top: 1.4rem; color: var(--bg); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem; background: rgba(10, 10, 10, 0.62); }
.modal[hidden] { display: none; }
.modal-box { background: var(--bg); max-width: 540px; width: 100%; padding: 2.6rem; text-align: left; }
.modal-box h2 { font-size: 2rem; color: var(--ink); }
.modal-box p { color: var(--muted); }
.modal-box .ref { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); letter-spacing: 0; text-transform: none; }

.cookie-bar { position: fixed; left: var(--margin); right: var(--margin); bottom: var(--margin); z-index: 110; max-width: 980px; margin: 0 auto; background: var(--ink); color: var(--bg); }
.cookie-bar[hidden] { display: none; }
.cookie-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 1.2rem 1.4rem; }
.cookie-bar p { margin: 0; font-size: 1rem; color: var(--bg); max-width: 60ch; }
.cookie-bar strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin-bottom: 0.15rem; }
.cookie-bar a { color: var(--bg); }
.cookie-actions { display: flex; gap: 0.6rem; flex: none; }
.cookie-actions .btn { min-height: 44px; }
.cookie-actions .btn-line { background: var(--field-4); color: var(--bg); }
.cookie-actions .btn-line:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 760px) { .cookie-bar .container { flex-direction: column; align-items: stretch; gap: 1rem; } .cookie-actions .btn { flex: 1; } }

/* Footer — mark built large */
.site-footer { background: var(--ink); color: var(--bg); font-size: 1rem; }
.tile-strip { display: none; }
.site-footer > .container { padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: var(--bg); text-decoration: none; }
.site-footer a:hover { color: var(--ochre-soft); }
.site-footer .brand { color: var(--bg) !important; }
.site-footer .brand-name b { color: inherit; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2rem; padding-bottom: 2.4rem; }
.footer-top h2 { font-family: var(--font-text); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--bg); margin-bottom: 0.8rem; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: 0.45rem; }
.footer-intro p { max-width: 40ch; }
.footer-intro .serif { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; color: var(--bg); margin: 1.2rem 0; }
.footer-contact { display: grid; gap: 0.25rem; margin-top: 1.2rem; }
.footer-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.6rem 0; font-size: 1rem; line-height: 1.55; }
.footer-legal p { margin: 0; max-width: 60ch; }
.footer-legal h2 { font-family: var(--font-text); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--bg); margin-bottom: 0.5rem; }
.wordmark, .mark-band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  height: 34svh;
  align-items: end;
  margin: 1.6rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 7rem);
  line-height: 1;
  color: var(--ink);
}
.wordmark { font-size: 0; letter-spacing: 0; text-align: left; white-space: normal; overflow: visible; color: transparent; }
.wordmark::before {
  content: "TidalBreathe";
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  width: 100%;
  height: 34svh;
  font-size: clamp(1.6rem, 6vw, 5.5rem);
  color: var(--ink);
}
.mark-band span,
.footer-letters span {
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--accent); color: var(--ink);
  height: 78%;
  padding-bottom: 0.15em;
}
.mark-band span:nth-child(odd),
.footer-letters span:nth-child(odd) { background: var(--bg); height: 100%; }
.mark-band span:nth-child(3n),
.footer-letters span:nth-child(3n) { background: var(--surface); height: 62%; }
.footer-base { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0 1.8rem; font-size: 1rem; color: rgba(222, 218, 211, 0.82); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-intro { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-legal { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .mark-band, .footer-letters { grid-template-columns: repeat(6, 1fr); height: 22svh; }
}

.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }

.field-error { display: block; margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--accent); }
.field-error-wide { grid-column: 1 / -1; margin-top: -0.5rem; }
.form .actions .field-error { flex-basis: 100%; }
.field-error-fix { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { outline: 2px solid var(--accent); }
.check input[aria-invalid="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.thanks-box h2 { margin: 1rem 0 0.6rem; }
.thanks-box p { margin: 0; max-width: 34ch; }
.thanks-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; background: var(--surface); }
.thanks-icon::after { content: ""; width: 24px; height: 13px; margin-top: -5px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
