/* ==========================================================================
   Triple Berry Solutions Inc. — design system
   Palette: paper white, blackberry night, one raspberry accent.
   Type: Instrument Sans (display + body), Instrument Serif italic (accent
   word), Geist Mono (labels, figures).
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #f5f3f5;
  --paper-3: #ebe7eb;
  --ink: #131016;
  --ink-2: #6b6472;
  --ink-3: #9a939f;
  --line: #e6e2e6;
  --berry: #b4174f;
  --berry-hover: #93123f;
  --berry-soft: #fbe9ef;
  --berry-deep: #5c1a3e;
  --raspberry: #d63c6e;
  --night: #0c0a0e;
  --night-2: #171319;
  --night-line: #2a2430;
  --on-night: #f4f1f4;
  --on-night-2: #a9a1ad;

  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", "SF Mono", Menlo, Consolas, monospace;

  --measure: 62ch;
  --wrap: 1180px;
  --wrap-narrow: 860px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.chapter { padding-block: clamp(72px, 11vw, 140px); }
.chapter--tint { background: var(--paper-2); }
.chapter--night { background: var(--night); color: var(--on-night); }
.chapter--night .lede, .chapter--night .muted { color: var(--on-night-2); }
.chapter--night .eyebrow { color: var(--raspberry); }
.chapter--flush-top { padding-top: 0; }

.stack { display: grid; gap: 18px; }
.center { text-align: center; }
.center .stack { justify-items: center; }
.center .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 0;
}

.display {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.display--xl { font-size: clamp(44px, 8vw, 104px); letter-spacing: -0.045em; line-height: 0.96; }
.display--l  { font-size: clamp(36px, 5.6vw, 72px); }
.display--m  { font-size: clamp(30px, 4vw, 52px); }
.display--s  { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.025em; line-height: 1.12; }

.accent-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--berry);
}
.chapter--night .accent-word { color: var(--raspberry); }

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--measure);
  margin: 0;
  text-wrap: pretty;
}

.muted { color: var(--ink-2); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--berry); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--berry { background: var(--berry); color: #fff; }
.btn--berry:hover { background: var(--berry-hover); }
.chapter--night .btn--primary { background: var(--on-night); color: var(--night); }
.chapter--night .btn--primary:hover { background: var(--raspberry); color: #fff; }
.chapter--night .btn--ghost { color: var(--on-night); border-color: var(--night-line); }
.chapter--night .btn--ghost:hover { border-color: var(--on-night); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--berry); font-weight: 600;
}
.text-link .arrow { transition: transform 0.35s var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }
.chapter--night .text-link { color: var(--raspberry); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 56px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.86); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-size: 15px; }
.brand-name span { color: var(--ink-3); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; border-radius: 10px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform 0.3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform 0.3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 56px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border: 0; }
}

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

.hero { padding-block: clamp(64px, 10vw, 128px) clamp(40px, 6vw, 80px); }
.hero .stack { gap: 26px; }
.hero .lede { font-size: clamp(19px, 1.8vw, 24px); max-width: 56ch; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}

/* Hero stage: the two practices joined by one core */
.stage { margin-top: clamp(40px, 6vw, 72px); }
.stage-frame {
  position: relative;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  max-width: 100%;
  isolation: isolate;
}
.stage-orb {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ff7aa3 0%, var(--raspberry) 28%, var(--berry) 52%, var(--berry-deep) 76%, transparent 78%);
  filter: blur(28px);
  opacity: 0.9;
  animation: orb 14s ease-in-out infinite alternate;
}
@keyframes orb {
  from { transform: translate(-52%, -48%) scale(0.96); }
  to   { transform: translate(-48%, -52%) scale(1.06); }
}
.stage-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.stage-panel {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34%;
  text-align: left;
  padding: clamp(14px, 2.4vw, 28px);
  border-radius: 16px;
  background: rgba(23, 19, 25, 0.72);
  border: 1px solid var(--night-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.stage-panel--left { left: clamp(14px, 3vw, 36px); }
.stage-panel--right { right: clamp(14px, 3vw, 36px); }
.stage-panel .eyebrow { color: var(--raspberry); font-size: 11px; }
.stage-panel h3 { margin: 6px 0 4px; font-size: clamp(15px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.02em; }
.stage-panel p { margin: 0; font-size: clamp(11px, 1.15vw, 14px); color: var(--on-night-2); line-height: 1.4; }
.stage-panel svg { margin-top: clamp(10px, 1.6vw, 18px); width: 100%; height: auto; }
.stage-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: clamp(10px, 1.1vw, 13px); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-night);
  text-align: center;
}
.stage-core strong { display: block; font-family: var(--font-sans); font-size: clamp(16px, 2.2vw, 30px); letter-spacing: -0.03em; font-weight: 600; text-transform: none; margin-bottom: 4px; }

@media (max-width: 700px) {
  .stage-frame { aspect-ratio: auto; padding: 22px 16px; display: grid; gap: 14px; }
  .stage-panel { position: static; transform: none; width: 100%; }
  .stage-core { position: static; transform: none; order: -1; margin-bottom: 4px; }
  .stage-orb { width: 80%; top: 30%; }
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 32px;
}
.chapter--night .stats { border-color: var(--night-line); }
.stat { display: grid; gap: 6px; }
.stat-value { font-size: clamp(38px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value sup { font-size: 0.45em; vertical-align: top; top: 0.25em; position: relative; color: var(--berry); }
.stat-label { font-size: 14px; color: var(--ink-2); }
.chapter--night .stat-label { color: var(--on-night-2); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Practices (dual split)
   -------------------------------------------------------------------------- */

.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.practice { padding: clamp(28px, 4vw, 56px); display: grid; align-content: start; gap: 18px; background: var(--paper); }
.practice + .practice { border-left: 1px solid var(--line); }
.practice h3 { margin: 0; }
.practice ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.practice li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.practice li .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; padding-top: 4px; }
.practice-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--berry-soft); color: var(--berry); }
@media (max-width: 820px) {
  .practices { grid-template-columns: 1fr; }
  .practice + .practice { border-left: 0; border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Feature rows (text + visual, alternating)
   -------------------------------------------------------------------------- */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature--flip .feature-text { order: 2; }
.feature-text { display: grid; gap: 18px; }
.feature-text h3 { margin: 0; }
.feature-visual { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.chapter--night .feature-visual { background: var(--night-2); border: 1px solid var(--night-line); }
.feature-visual svg { width: 100%; height: 100%; }
.feature ul.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.feature ul.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.chapter--night .feature ul.checks li { color: var(--on-night-2); }
.feature ul.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--berry); margin-top: 9px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-text { order: 0; }
}

/* --------------------------------------------------------------------------
   Product tiles
   -------------------------------------------------------------------------- */

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  display: grid; grid-template-rows: auto 1fr; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -30px rgba(19, 16, 22, 0.35); border-color: var(--paper-3); }
.chapter--night .product { background: var(--night-2); border-color: var(--night-line); }
.chapter--night .product:hover { border-color: #3a3340; box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8); }
.product-visual { aspect-ratio: 16 / 10; background: var(--paper-2); position: relative; overflow: hidden; }
.chapter--night .product-visual { background: var(--night); }
.product-visual svg { width: 100%; height: 100%; }
.product-body { padding: 24px; display: grid; gap: 10px; align-content: start; }
.product-body h3 { margin: 0; font-size: 22px; letter-spacing: -0.025em; font-weight: 600; }
.product-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.chapter--night .product-body p { color: var(--on-night-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2);
}
.chapter--night .tag-pill { border-color: var(--night-line); color: var(--on-night-2); }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status--live::before { background: #1f9d55; }
.status--beta::before { background: #e0a100; }
.status--lab::before { background: var(--berry); }
.chapter--night .status { color: var(--on-night-2); }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Lab list (no cards)
   -------------------------------------------------------------------------- */

.lab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.chapter--night .lab { border-color: var(--night-line); }
.lab-item { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.chapter--night .lab-item { border-color: var(--night-line); }
.lab-item h4 { margin: 0; font-size: 18px; letter-spacing: -0.02em; font-weight: 600; }
.lab-item p { margin: 0; font-size: 15px; color: var(--ink-2); }
.chapter--night .lab-item p { color: var(--on-night-2); }
.lab-item .tags { margin-top: 2px; }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lab { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Clients wall
   -------------------------------------------------------------------------- */

.clients {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.client {
  padding: 26px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; align-content: center; gap: 4px; min-height: 108px;
}
.client-name { font-weight: 600; letter-spacing: -0.015em; font-size: 17px; }
.client-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.chapter--night .clients, .chapter--night .client { border-color: var(--night-line); }
.chapter--night .client-meta { color: var(--on-night-2); }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Engagements (case list)
   -------------------------------------------------------------------------- */

.cases { display: grid; border-top: 1px solid var(--line); }
.chapter--night .cases { border-color: var(--night-line); }
.case {
  display: grid; grid-template-columns: 200px 1fr 1fr; gap: 24px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.chapter--night .case { border-color: var(--night-line); }
.case-client { display: grid; gap: 4px; align-content: start; }
.case-client strong { font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.case-client span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.chapter--night .case-client span { color: var(--on-night-2); }
.case-role { color: var(--ink-2); font-size: 15.5px; }
.case-work { color: var(--ink); font-size: 15.5px; }
.chapter--night .case-role { color: var(--on-night-2); }
.chapter--night .case-work { color: var(--on-night); }
.case-work ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 10px; } }

/* --------------------------------------------------------------------------
   Timeline (career)
   -------------------------------------------------------------------------- */

.timeline { display: grid; border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 150px 1fr 220px; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tl-when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-who strong { font-weight: 600; letter-spacing: -0.015em; }
.tl-who span { color: var(--ink-2); }
.tl-what { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 760px) { .tl-row { grid-template-columns: 1fr; gap: 4px; } }

/* --------------------------------------------------------------------------
   Credentials grid
   -------------------------------------------------------------------------- */

.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.creds h4 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; }
.creds li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.chapter--night .creds li { border-color: var(--night-line); }
@media (max-width: 800px) { .creds { grid-template-columns: 1fr; gap: 28px; } }

/* --------------------------------------------------------------------------
   Process steps (a real sequence, so numbering is earned)
   -------------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); position: relative; }
.chapter--night .step { border-color: var(--night-line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--berry); }
.step h4 { margin: 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.chapter--night .step p { color: var(--on-night-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Founder band
   -------------------------------------------------------------------------- */

.founder { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.founder-sig { display: grid; gap: 22px; justify-items: start; }
.founder-sig img { width: min(100%, 520px); height: auto; opacity: 0.92; }
.founder-sig .mono { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-2); }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Quote / thesis
   -------------------------------------------------------------------------- */

.thesis { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 50px); line-height: 1.15; letter-spacing: -0.01em; margin: 0; max-width: 24ch; text-wrap: balance; }
.thesis em { color: var(--berry); font-style: italic; }
.chapter--night .thesis em { color: var(--raspberry); }

/* --------------------------------------------------------------------------
   Booking embed
   -------------------------------------------------------------------------- */

.booking { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.booking iframe { display: block; width: 100%; height: 760px; border: 0; }
@media (max-width: 600px) { .booking iframe { height: 920px; } }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px var(--berry-soft); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-3); }
.contact-list { display: grid; gap: 22px; }
.contact-list h4 { margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry); }
.contact-list p { margin: 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero { padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 64px); }
.page-hero .stack { gap: 20px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { padding-block: clamp(72px, 10vw, 128px); }
.cta-band .display { max-width: 18ch; }

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

.site-footer { background: var(--night); color: var(--on-night); padding-block: 56px 32px; border-top: 1px solid var(--night-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-2); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--on-night); font-size: 15px; }
.footer-grid a:hover { color: var(--raspberry); }
.footer-brand { display: grid; gap: 12px; justify-items: start; }
.footer-brand p { margin: 0; color: var(--on-night-2); font-size: 14.5px; max-width: 34ch; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-night-2); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reveal motion (content is visible at rest; motion only adds lift)
   -------------------------------------------------------------------------- */

.reveal { transform: translateY(18px); transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); opacity: 0.001; }
.reveal.in { transform: none; opacity: 1; }
.no-js .reveal { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; opacity: 1; transition: none; }
  .stage-orb { animation: none; }
  html { scroll-behavior: auto; }
}
