/* ════════════════════════════════════════════════════════════════
   TheBaysWorld — homepage design system (ground-up rebuild)
   Reference school: Locomotive / editorial-minimal.
   Canvas near-white · ink · one cobalt accent · hairline rules ·
   Bricolage Grotesque display · Inter body · mono labels.
   Shared across every page (home, portfolio, booking, order, SSR).
   ════════════════════════════════════════════════════════════════ */

/* Fonts are loaded from index.html via <link rel="preconnect"> + stylesheet
   so the CSS file itself never blocks on a cross-origin @import. */

:root {
  --paper: #fafaf6;
  --ink: #131310;
  --muted: #6f6f66;
  --line: rgba(19, 19, 16, 0.14);
  --line-soft: rgba(19, 19, 16, 0.08);
  --bay: #1740ee;
  --bay-deep: #0f2eb8;
  --tide: #e4eafb;
  --sand: #efece3;

  --display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: light; }

[id] { scroll-margin-top: 88px; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a, button, summary, input, select, textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-64px);
  opacity: 0;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.skip-link:focus-visible { transform: none; opacity: 1; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--bay); color: #fff; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ── Atoms ── */
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease),
    border-color 220ms var(--ease), transform 220ms var(--ease);
}
.btn:hover { background: var(--bay); border-color: var(--bay); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--bay { background: var(--bay); border-color: var(--bay); color: #fff; }
.btn--bay:hover { background: var(--bay-deep); border-color: var(--bay-deep); }
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--bay);
  outline-offset: 3px;
}

/* ── Reveal on scroll ── */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.in { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.nav.scrolled {
  background: rgba(250, 250, 246, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img {
  border-radius: 8px;
  transition: transform 200ms var(--ease);
}
.nav-logo:hover img { transform: scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(19, 19, 16, 0.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { min-height: 42px; padding: 9px 20px; font-size: 14px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}
.nav-burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px clamp(20px, 4vw, 48px) 20px;
    background: rgba(250, 250, 246, 0.97);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--line-soft);
  }
  .nav-links.open { display: flex; }
  .nav .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-burger { display: flex; }
  .nav-cta .btn--ghost { display: none; }
}

/* ════════════════════════════════════════════════
   HERO — blue wave-field on white, centered copy,
   giant SVG wordmark cropped at the bottom edge
   ════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
}
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  will-change: transform, opacity;
  display: grid;
  justify-items: center;
  gap: 26px;
  max-width: 660px;
  padding: 100px 24px 26vh;
  text-align: center;
}
.hero-copy::before {
  /* soft white halo so copy stays readable over the wave lines */
  content: '';
  position: absolute;
  inset: 40px -80px 10vh;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.94), transparent);
}
.hero-globe {
  width: 54px;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  opacity: 0.92;
  animation: globeBob 7s ease-in-out infinite;
}
@keyframes globeBob { 50% { transform: translateY(-8px); } }
.hero-copy h1 {
  font-family: var(--body);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 38ch;
  text-wrap: balance;
}
.hero-copy p {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
  text-wrap: balance;
}

.hero-mark {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 103vw;
  line-height: 0;
  pointer-events: none;
}
.hero-mark svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -3vw; /* crop the letterforms at the viewport edge */
  will-change: transform;
}
.hero-mark text {
  font-family: var(--display);
  font-size: 200px;
  font-weight: 800;
  letter-spacing: -0.04em;
  fill: var(--bay);
}

@media (max-width: 640px) {
  .hero-copy { padding-bottom: 30vh; gap: 20px; }
  .hero-mark { width: 106vw; }
}

/* ── Stats strip (services intro) ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vh, 72px);
}
.stats div { display: grid; gap: 4px; }
.stats strong {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ════════════════════════════════════════════════
   TICKER
   ════════════════════════════════════════════════ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  white-space: nowrap;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-right: clamp(32px, 5vw, 64px);
  animation: tick 36s linear infinite;
}
.tick {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tick img { width: 26px; height: 26px; display: block; }
@keyframes tick { to { transform: translateX(-100%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ════════════════════════════════════════════════
   SECTIONS — shared rhythm
   ════════════════════════════════════════════════ */
.section { padding: clamp(80px, 12vh, 150px) 0 0; }

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 72px);
  align-items: start;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.head-glyph {
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(96px, 12vw, 150px);
  height: auto;
  pointer-events: none;
}
.contact-copy { position: relative; }
.contact-copy .head-glyph { width: clamp(84px, 9vw, 120px); }
@media (max-width: 900px) { .head-glyph { display: none; } }
.section-head .label { padding-top: 14px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}
.section-head p {
  margin-top: 16px;
  max-width: 52ch;
  font-size: 17px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-head .label { padding-top: 0; }
}

/* ════════════════════════════════════════════════
   SERVICES — sticky stacking panels
   Each panel pins below the nav; the next one
   slides over it as you scroll (deck effect).
   ════════════════════════════════════════════════ */
.svc-stack { display: grid; gap: 22px; }
.svc-panel {
  position: sticky;
  top: calc(86px + var(--i, 0) * 14px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: min(600px, calc(100svh - 170px));
  padding: clamp(28px, 4vw, 60px);
  border-radius: 28px;
  background: var(--panel, var(--tide));
}
.svc-copy .label { color: var(--accent, var(--bay)); }
.svc-copy h3 {
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 14px 0 0;
  max-width: 14ch;
  text-wrap: balance;
}
.svc-copy > p {
  margin: 16px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
}
.svc-copy ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
}
.svc-copy li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink);
}
.svc-copy li::before { content: '—'; position: absolute; left: 0; color: var(--accent, var(--bay)); }
.svc-art img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .svc-panel {
    position: static;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 20px;
  }
  .svc-art { order: -1; }
}

/* ════════════════════════════════════════════════
   WORK — live projects table
   ════════════════════════════════════════════════ */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: clamp(14px, 2.5vw, 36px);
  align-items: center;
  min-height: 76px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 300ms var(--ease);
}
.work-row:hover { padding-left: 14px; }
.work-row img, .work-row b {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--sand);
}
.work-name {
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-row:hover .work-name { color: var(--bay); }
.work-stack { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.work-arrow { color: var(--muted); font-size: 18px; transition: transform 240ms var(--ease), color 240ms var(--ease); }
.work-row:hover .work-arrow { transform: translateX(6px); color: var(--bay); }
.work-empty, .work-skel { padding: 34px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.work-skel i {
  display: block;
  height: 14px;
  width: 46%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(19,19,16,0.05) 25%, rgba(19,19,16,0.12) 37%, rgba(19,19,16,0.05) 50%);
  background-size: 200% auto;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.work-more { margin-top: 28px; }
@media (max-width: 720px) {
  .work-row { grid-template-columns: 44px 1fr auto; }
  .work-stack { display: none; }
}

/* ════════════════════════════════════════════════
   PROCESS — 4 numbered steps (real sequence)
   ════════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step {
  position: relative;
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.5vw, 32px) clamp(32px, 4vw, 52px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step-px {
  position: absolute;
  top: clamp(20px, 2.6vw, 34px);
  right: clamp(16px, 2.2vw, 28px);
  width: clamp(48px, 5vw, 64px);
  height: auto;
}
.step .label { display: block; color: var(--bay); }
.step h3 {
  font-family: var(--display);
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 10px;
}
.step p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════
   PRICING — two group panels, plans as columns
   (Notion-style: group headline, price, full-width
   button, ✓ checklist, add-on rows)
   ════════════════════════════════════════════════ */
.pricing-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.pgroup {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(26px, 3vw, 42px);
  background: #fff;
}
.pgroup--tint { background: var(--tide); border-color: transparent; }
.pgroup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.pgroup-title {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 16ch;
  text-wrap: balance;
}
.pgroup-crew { width: clamp(96px, 10vw, 132px); height: auto; flex-shrink: 0; }
.pgroup-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 36px);
  margin-top: 24px;
}
.pplan { display: flex; flex-direction: column; }
.pplan-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pchip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bay);
  background: rgba(23, 64, 238, 0.09);
  padding: 3px 9px;
  border-radius: 999px;
}
.pplan-price {
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 14px 0 0;
}
.pplan-price small {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.pplan > p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 10px 0 18px; min-height: 42px; }
.pplan-btn { width: 100%; justify-content: center; min-height: 46px; }
.pgroup .btn--ghost { background: rgba(23, 64, 238, 0.06); border-color: transparent; color: var(--bay); }
.pgroup .btn--ghost:hover { background: rgba(23, 64, 238, 0.12); color: var(--bay-deep); }
.pgroup--tint .btn--ghost { background: #fff; }
.pgroup--tint .btn--ghost:hover { background: #fff; color: var(--bay-deep); }
.pplan-inc {
  display: block;
  margin: 22px 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pcheck { list-style: none; display: grid; gap: 9px; }
.pcheck li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.pcheck li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bay);
  font-weight: 700;
}

/* add-on rows (bottom of tinted group) */
.paddons { margin-top: 30px; border-top: 1px solid rgba(19, 19, 16, 0.12); }
.paddon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
}
.paddon + .paddon { border-top: 1px solid rgba(19, 19, 16, 0.08); }
.paddon b { font-family: var(--display); font-size: 15px; font-weight: 700; }
.paddon p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 4px; max-width: 52ch; }
.paddon img { width: 56px; height: 56px; }

.plans-note { margin-top: 26px; text-align: center; font-size: 14px; color: var(--muted); }
.plans-note a { color: var(--bay); font-weight: 600; }

@media (max-width: 1060px) { .pricing-groups { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .pgroup-plans { grid-template-columns: 1fr; }
  .pgroup-head { flex-direction: column-reverse; min-height: 0; }
  .pplan > p { min-height: 0; }
}

/* ════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════ */
.faq-list { border-top: 1px solid var(--line); max-width: 900px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 24px 56px 24px 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 180ms var(--ease);
}
.faq-list summary:hover { color: var(--bay); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 26px;
  color: var(--muted);
  transition: transform 240ms var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--bay); }
.faq-list details p { padding: 0 0 26px; max-width: 62ch; font-size: 15.5px; color: var(--muted); }

/* ════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════ */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-links { display: grid; gap: 6px; margin-top: 30px; justify-items: start; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease);
}
.contact-links a:hover { color: var(--bay); }
.contact-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form { display: grid; gap: 18px; }
.form-group { display: grid; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form input, .form select, .form textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  font-size: 15px;
  outline: none;
  appearance: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--bay);
  box-shadow: 0 0 0 3px rgba(23, 64, 238, 0.12);
}
.form textarea { min-height: 130px; resize: vertical; }
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%236f6f66' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.form-status { font-size: 14px; color: var(--muted); min-height: 20px; }
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   FOOTER — bay-blue closer with giant SVG wordmark
   ════════════════════════════════════════════════ */
.footer {
  margin-top: clamp(80px, 12vh, 150px);
  overflow: hidden;
  background:
    url('/img/px-waves-white.svg') top center / 1100px auto repeat,
    linear-gradient(180deg, var(--bay) 0%, #102fb4 70%, #0c2794 100%);
  color: rgba(255, 255, 255, 0.85);
}
.footer a:focus-visible, .footer .btn:focus-visible { outline-color: #fff; }

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(48px, 8vh, 84px) 0 clamp(28px, 4vh, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-cta h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.footer-cta-sub {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta-btn { background: #fff; border-color: #fff; color: var(--bay); }
.footer-cta-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.footer-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.footer-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 5vh, 56px) 0;
}
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col .label { margin-bottom: 6px; color: rgba(255, 255, 255, 0.5); }
.footer-col a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  width: fit-content;
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}
.footer-col a:hover { color: #fff; transform: translateX(4px); }

.footer-mark { line-height: 0; }
.footer-mark svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -1.6vw; /* tuck the baseline into the bottom bar */
  will-change: transform;
}
.footer-mark text {
  font-family: var(--display);
  font-size: 200px;
  font-weight: 800;
  letter-spacing: -0.04em;
  fill: rgba(255, 255, 255, 0.95);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .rv { opacity: 1; transform: none; }
  [data-plx] { transform: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   SECONDARY PAGES — portfolio, booking, order, SSR detail
   Shared chrome (.nav/.footer/.btn) is reused as-is; below are the
   page-body pieces. JS-generated class names (lp-project-*,
   lp-filter-btn, lp-project-modal-*, bk-*, od-*) are preserved and
   restyled here so the scripts keep working untouched.
   ════════════════════════════════════════════════════════════════ */

/* ── Simple page header (portfolio / detail intros) ── */
.page-hero { padding: clamp(120px, 18vh, 180px) 0 0; }
.page-hero .label { display: block; margin-bottom: 18px; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.page-hero h1 em { font-style: normal; color: var(--bay); }
.page-hero-lede {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--muted);
}
.page-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 5vh, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.page-meta div { display: grid; gap: 4px; }
.page-meta strong {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.page-meta span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .page-meta { grid-template-columns: repeat(2, 1fr); } }

/* ── Portfolio filters ── */
.lp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(32px, 5vh, 52px) 0 0; }
.lp-filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease);
}
.lp-filter-btn:hover { color: var(--ink); border-color: var(--ink); }
.lp-filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── Portfolio grid + cards ── */
.lp-portfolio-section { padding: clamp(40px, 6vh, 72px) 0 clamp(60px, 9vh, 110px); }
.lp-work-featured { margin-bottom: 20px; }
.lp-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .lp-work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-work-grid { grid-template-columns: 1fr; } }

.lp-project-card,
.lp-project-featured {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.lp-project-featured { flex-direction: row; gap: 24px; padding: 20px; }
.lp-project-card:hover,
.lp-project-featured:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 19, 16, 0.28);
  box-shadow: 0 22px 56px rgba(19, 19, 16, 0.08);
}
.lp-project-card:focus-visible,
.lp-project-featured:focus-visible { outline: 2px solid var(--bay); outline-offset: 3px; }

.lp-project-thumb,
.lp-project-photo--empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background-color: var(--sand);
  background-size: cover;
  background-position: top center;
}
.lp-project-featured .lp-project-thumb,
.lp-project-featured .lp-project-photo--empty { width: 46%; aspect-ratio: 4 / 3; flex: 0 0 46%; }
.lp-project-photo--empty {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  color: rgba(19, 19, 16, 0.22);
}
.lp-project-body { display: flex; flex-direction: column; gap: 12px; }
.lp-project-featured .lp-project-body { justify-content: center; }

.lp-project-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bay);
}
.lp-project-title {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lp-project-featured .lp-project-title { font-size: clamp(24px, 3.2vw, 40px); }
.lp-project-desc { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.lp-project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-project-stack span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lp-project-arrow {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bay);
}
.lp-work-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

/* skeletons */
.lp-project-skeleton { pointer-events: none; }
.lp-skel {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(19,19,16,0.05) 25%, rgba(19,19,16,0.11) 37%, rgba(19,19,16,0.05) 50%);
  background-size: 200% auto;
  animation: shimmer 1.4s ease-in-out infinite;
}
.lp-skel-tag { width: 100%; aspect-ratio: 16 / 10; }
.lp-skel-title { width: 60%; height: 20px; }
.lp-skel-desc { width: 100%; height: 13px; }

/* ── Portfolio CTA band ── */
.lp-portfolio-cta { padding: clamp(48px, 8vh, 90px) 0; }
.lp-portfolio-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--tide);
}
.lp-portfolio-cta-inner h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.lp-portfolio-cta-inner h2 em { font-style: normal; color: var(--bay); }
.lp-portfolio-cta-inner .page-hero-lede { margin-top: 10px; }

/* ── Project modal ── */
.lp-project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}
.lp-project-modal.open { opacity: 1; pointer-events: auto; }
.lp-project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 16, 0.5);
  backdrop-filter: blur(8px);
}
.lp-project-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(19, 19, 16, 0.3);
  transform: translateY(16px) scale(0.98);
  transition: transform 240ms var(--ease);
}
.lp-project-modal.open .lp-project-dialog { transform: none; }
.lp-project-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
}
.lp-project-close:hover { background: var(--ink); color: var(--paper); }
.lp-project-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lp-project-modal-media { min-height: 100%; padding: 18px; background: var(--tide); }
.lp-project-modal-image,
.lp-project-modal-empty {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 16px;
  background-color: var(--sand);
  background-size: cover;
  background-position: top center;
}
.lp-project-modal-empty {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 700;
  color: rgba(19, 19, 16, 0.16);
}
.lp-project-modal-body { overflow: auto; padding: clamp(26px, 4vw, 44px); }
.lp-project-modal-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lp-project-modal-tag,
.lp-project-modal-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.lp-project-modal-tag { color: var(--bay); }
.lp-project-modal-body h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.lp-project-modal-body > p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.lp-project-modal-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lp-project-modal-stack span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lp-project-modal-notes {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(19, 19, 16, 0.02);
}
.lp-project-modal-notes h3 { font-size: 15px; margin-bottom: 8px; }
.lp-project-modal-notes p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.lp-project-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
body.modal-open { overflow: hidden; }
@media (max-width: 800px) {
  .lp-project-dialog { grid-template-columns: 1fr; max-height: calc(100vh - 24px); }
  .lp-project-featured { flex-direction: column; }
  .lp-project-featured .lp-project-thumb,
  .lp-project-featured .lp-project-photo--empty { width: 100%; flex-basis: auto; aspect-ratio: 16 / 10; }
}

/* ── Compat aliases so legacy dark/outline button classes match brand ── */
.lp-btn { /* fallback for any remaining markup */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.lp-btn:hover { background: var(--bay); border-color: var(--bay); color: #fff; transform: translateY(-2px); }
.lp-btn-dark { background: var(--bay); border-color: var(--bay); color: #fff; }
.lp-btn-dark:hover { background: var(--bay-deep); border-color: var(--bay-deep); color: #fff; }
.lp-btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.lp-btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ════════════════════════════════════════════════
   BOOKING PAGE
   ════════════════════════════════════════════════ */
.bk-wrap { padding: clamp(120px, 16vh, 170px) 0 clamp(60px, 9vh, 100px); }
.bk-inner {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
@media (max-width: 760px) { .bk-inner { grid-template-columns: 1fr; } }

.bk-summary, .bk-form {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.bk-summary { background: var(--tide); align-self: start; }
.bk-summary-kicker, .bk-form-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.bk-summary-pkg {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 22px;
}
.bk-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--muted);
}
.bk-summary-row-v { font-weight: 600; color: var(--ink); text-align: right; }
.bk-dp-row {
  margin-top: 22px;
  padding: 18px;
  border-radius: 14px;
  background: var(--bay);
  color: #fff;
}
.bk-dp-row-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; margin-bottom: 6px; }
.bk-dp-row-v { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.bk-dp-note { font-size: 13px; margin-top: 8px; opacity: 0.82; }
.bk-features { list-style: none; margin: 22px 0 0; display: grid; gap: 10px; }
.bk-features li { position: relative; padding-left: 22px; font-size: 14px; color: var(--muted); }
.bk-features li::before { content: '—'; position: absolute; left: 0; color: var(--bay); }

.bk-field { margin-bottom: 16px; }
.bk-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.bk-input, .bk-textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.bk-textarea { min-height: 110px; resize: vertical; }
.bk-input:focus, .bk-textarea:focus { border-color: var(--bay); box-shadow: 0 0 0 3px rgba(23, 64, 238, 0.12); }
.bk-error {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(220, 60, 60, 0.4);
  border-radius: 12px;
  background: rgba(220, 60, 60, 0.06);
  color: #c0392b;
  font-size: 14px;
  font-weight: 500;
}
.bk-error.visible { display: block; }
.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid var(--bay);
  border-radius: 999px;
  background: var(--bay);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.bk-btn:hover { background: var(--bay-deep); border-color: var(--bay-deep); transform: translateY(-2px); }
.bk-btn:active { transform: translateY(0) scale(0.98); }
.bk-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.bk-btn-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.bk-invalid { display: none; max-width: 520px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.bk-invalid.visible { display: block; }
.bk-invalid p { font-family: var(--display); font-size: 24px; font-weight: 700; margin-bottom: 20px; }

/* ════════════════════════════════════════════════
   ORDER STATUS PAGE
   ════════════════════════════════════════════════ */
.od-wrap {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(120px, 16vh, 170px) 20px clamp(60px, 9vh, 100px);
}
.od-card {
  width: 100%;
  max-width: 520px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: transparent;
}
.od-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.od-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.od-badge.pending { background: var(--tide); color: var(--bay-deep); }
.od-badge.paid { background: #1a7f4b; color: #fff; }
.od-badge.failed { background: #c0392b; color: #fff; }
.od-badge.expired { background: var(--sand); color: var(--muted); }
.od-title {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 18px;
}
.od-message { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 26px; }
.od-rows { margin-bottom: 26px; }
.od-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.od-row-k { color: var(--muted); }
.od-row-v { font-weight: 600; color: var(--ink); }
.od-actions { display: flex; flex-direction: column; gap: 10px; }
.od-actions .lp-btn, .od-actions .btn { justify-content: center; }
.od-loading { padding: 80px 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ════════════════════════════════════════════════
   SSR DETAIL (project / note pages)
   ════════════════════════════════════════════════ */
.ssr-page { max-width: 860px; margin: 0 auto; padding: clamp(120px, 16vh, 170px) clamp(20px, 4vw, 32px) clamp(60px, 9vh, 100px); }
.ssr-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.ssr-back:hover { color: var(--ink); border-color: var(--ink); }
.ssr-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ssr-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bay); margin-bottom: 14px; display: inline-block; }
.ssr-title {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 16px;
  text-wrap: balance;
}
.ssr-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--muted); }
.ssr-media {
  width: 100%;
  height: min(460px, 54vw);
  margin-bottom: 40px;
  border-radius: 20px;
  background-size: cover;
  background-position: top center;
  background-color: var(--sand);
}
.ssr-meta-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin-bottom: 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--tide);
}
.ssr-meta-list dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ssr-meta-list dd { font-size: 14.5px; font-weight: 500; }
.ssr-meta-list a { color: var(--bay); text-decoration: none; }
.ssr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.ssr-prose { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.ssr-prose > * + * { margin-top: 1.1em; }
.ssr-prose p { max-width: 68ch; color: #2a2a26; }
.ssr-prose h2, .ssr-prose h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 1.8em; }
.ssr-prose h2 { font-size: clamp(24px, 3.4vw, 34px); }
.ssr-prose h3 { font-size: clamp(19px, 2.4vw, 24px); }
.ssr-prose a { color: var(--bay); text-decoration: underline; text-underline-offset: 3px; }
.ssr-prose blockquote { padding-left: 20px; border-left: 3px solid var(--bay); font-size: 18px; font-style: italic; color: var(--muted); }
.ssr-prose code { font-family: var(--mono); font-size: 0.88em; background: rgba(19,19,16,0.06); padding: 2px 6px; border-radius: 5px; }
.ssr-prose pre { padding: 18px; border-radius: 14px; background: var(--ink); color: #eceae2; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; }
.ssr-prose pre code { background: none; padding: 0; color: inherit; }
.ssr-prose ul, .ssr-prose ol { padding-left: 24px; }
.ssr-prose li { margin-top: 8px; }
.ssr-prose img, .ssr-prose video { width: 100%; border-radius: 16px; margin: 1.6em 0; }
.ssr-prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

.ssr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 28px 0; }
.ssr-gallery-item {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 12px;
  background-size: cover;
  background-position: top center;
  background-color: var(--sand);
  cursor: pointer;
  transition: transform 200ms var(--ease);
}
.ssr-gallery-item:hover { transform: translateY(-3px); }
.ssr-gallery-item:focus-visible { outline: 2px solid var(--bay); outline-offset: 3px; }
.pg-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(19,19,16,0.8); backdrop-filter: blur(6px); padding: 24px; }
.pg-lightbox.open { display: flex; }
.pg-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; }
.pg-lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.pg-lb-prev { left: 16px; }
.pg-lb-next { right: 16px; }
.pg-lb-close { top: 16px; right: 16px; transform: none; }
.ssr-prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.ssr-prevnext a { font-size: 14px; font-weight: 600; color: var(--bay); }
@media (max-width: 600px) { .ssr-meta-list { grid-template-columns: 1fr; gap: 4px 0; } }
