/* ============================================================
   Twelve03 — shared stylesheet
   Used by index.html, about.html, thanks.html, 404.html
   ============================================================ */

:root {
  --ink: #2B1F17;
  --ink-deep: #221811;
  --paper: #FDFCFA;
  --paper-tint: #F7F2EC;
  --stone: #9B9087;
  --stone-light: #C9C0B8;
  --terracotta: #BC6B4D;
  --terracotta-soft: #D08A6E;
  --cream: #F5EFE8;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --textserif: "Source Serif 4", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--sans);
  /* Newsreader carries an opsz axis (6-72); headings must keep optical sizing */
  font-optical-sizing: auto;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(188, 107, 77, 0.16); }
body::selection, div::selection, section::selection, header::selection, footer::selection, nav::selection, ul::selection { background: transparent; }

/* Reading text in a quiet serif; the sans stays on small UI only */
.hero-sub, .section-lede, .about-body p, .about-prose p, .card p, .pillar p,
.step li, .contact p, .name-body, .footer-about p {
  font-family: var(--textserif);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
}
.brand-mark circle { fill: currentColor; transition: fill 0.4s ease; }
.brand-mark .accent { fill: var(--terracotta); }
/* Nav logo intro: accent steps around the ring 12 -> 1 -> 2 -> 3 o'clock (driven by JS) */
.brand-mark.intro .accent { fill: currentColor; }
.brand-mark.intro circle.lit { fill: var(--terracotta); }
@keyframes brand-pulse {
  0%, 100% { r: 8; }
  50% { r: 11.5; }
}
.brand-mark .accent.pulse { animation: brand-pulse 0.32s ease-in-out; }
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.4s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(245, 239, 232, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:not(.nav-cta) {
  background-image: linear-gradient(var(--terracotta), var(--terracotta));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: left calc(100% + 5px);
  transition: color 0.3s ease, background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 6px;
}
.nav-links a:not(.nav-cta):hover { background-size: 100% 1.5px; }
.nav-links a:hover { color: var(--cream); }
.nav-links a[aria-current="page"] { color: var(--cream); background-size: 100% 1.5px; }
.nav-cta {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cream) !important;
  border: 1px solid rgba(245, 239, 232, 0.35);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease !important;
}
.nav-cta:hover {
  border-color: var(--terracotta-soft);
  background: rgba(188, 107, 77, 0.18);
}

nav.scrolled {
  background: rgba(253, 252, 250, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(43, 31, 23, 0.08);
}
nav.open {
  background: var(--paper);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(43, 31, 23, 0.08);
}
nav.scrolled .nav-brand, nav.open .nav-brand { color: var(--ink); }
nav.scrolled .nav-links a, nav.open .nav-links a { color: rgba(43, 31, 23, 0.65); }
nav.scrolled .nav-links a:hover, nav.open .nav-links a:hover { color: var(--ink); }
nav.scrolled .nav-links a[aria-current="page"], nav.open .nav-links a[aria-current="page"] { color: var(--ink); }
nav.scrolled .nav-cta, nav.open .nav-cta {
  color: var(--ink) !important;
  border-color: rgba(43, 31, 23, 0.25);
}
nav.scrolled .nav-cta:hover, nav.open .nav-cta:hover {
  border-color: var(--terracotta);
  background: rgba(188, 107, 77, 0.1);
}

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  margin-right: -10px;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
nav.scrolled .nav-toggle span, nav.open .nav-toggle span { background: var(--ink); }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 32px 26px;
    background: var(--paper);
    border-bottom: 1px solid rgba(43, 31, 23, 0.08);
    box-shadow: 0 24px 40px -28px rgba(43, 31, 23, 0.35);
  }
  nav.open .nav-links { display: flex; }
  .nav-links a:not(.nav-cta) {
    color: rgba(43, 31, 23, 0.75);
    font-size: 1rem;
    padding: 13px 0;
    width: 100%;
  }
  .nav-links .nav-cta {
    margin-top: 16px;
    color: var(--ink) !important;
    border-color: rgba(43, 31, 23, 0.25);
  }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink-deep);
  background-image: radial-gradient(ellipse 90% 70% at 50% 42%, #352619 0%, #2A1E15 45%, #1E150E 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 160px 0 120px;
  max-width: 920px;
}
.hero-rule, .head-rule {
  width: 44px;
  height: 2px;
  background: var(--terracotta);
  margin-bottom: 36px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta-soft);
}
.hero h1 em, .pair { white-space: nowrap; }
@media (max-width: 720px) {
  .hero h1 em, .pair { white-space: normal; }
}
.hero-sub {
  font-family: var(--textserif);
  font-optical-sizing: auto;
  font-size: 1.28rem;
  line-height: 1.6;
  color: rgba(245, 239, 232, 0.82);
  max-width: 50ch;
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease,
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--terracotta);
  color: #FDFCFA;
}
.btn-primary:hover {
  background: #A85C40;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.btn-ghost {
  color: var(--cream);
  border: 1px solid rgba(245, 239, 232, 0.3);
}
.btn-ghost:hover { border-color: rgba(245, 239, 232, 0.65); }
/* Arrow glyph nudges right on hover; wrapped in a span so it transforms alone */
.btn-arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-ghost:hover .btn-arrow { transform: translateX(3px); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(245, 239, 232, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}
.hero-scroll:hover { color: rgba(245, 239, 232, 0.8); }
/* Gentle bob to cue scrolling (preserves the -50% centering offset) */
@keyframes hero-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}
.hero-scroll { animation: hero-bob 2.5s ease-in-out infinite; }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  position: relative;
  background: var(--ink-deep);
  background-image: radial-gradient(ellipse 90% 80% at 50% 30%, #352619 0%, #2A1E15 50%, #1E150E 100%);
  color: var(--cream);
  padding: 190px 0 100px;
  overflow: hidden;
}
.page-head .head-rule { margin-bottom: 32px; }
.head-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin-bottom: 18px;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 740px;
}
.hero .wrap, .page-head .wrap { position: relative; z-index: 2; }

/* Inline text link on light sections */
.text-link {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid rgba(188, 107, 77, 0.35);
  transition: border-color 0.3s ease;
}
.text-link:hover { border-color: var(--terracotta); }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-tint { background: var(--paper-tint); }

/* Film grain on the dark moments */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 1;
}

.kicker-rule {
  width: 36px;
  height: 2px;
  background: var(--terracotta);
  margin-bottom: 24px;
}
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}
.section-lede {
  font-size: 1.02rem;
  color: var(--stone);
  max-width: 620px;
  line-height: 1.7;
}

/* About (home) */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.about-body p {
  margin-bottom: 22px;
  line-height: 1.8;
  color: rgba(43, 31, 23, 0.82);
}
.about-body p:last-child { margin-bottom: 0; }
.about-pull {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.32rem;
  line-height: 1.5;
  color: var(--ink);
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* About page prose */
.about-prose { max-width: 720px; margin-top: 28px; }
.about-prose p {
  margin-bottom: 24px;
  line-height: 1.85;
  color: rgba(43, 31, 23, 0.82);
}
.about-prose p:last-child { margin-bottom: 0; }
.about-prose a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid rgba(188, 107, 77, 0.35);
  transition: border-color 0.3s ease;
}
.about-prose a:hover { border-color: var(--terracotta); }
.about-prose p.about-pull {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.5;
  color: var(--ink);
}

/* The name / conviction */
.name-body {
  font-size: 1.04rem;
  line-height: 1.85;
  color: rgba(43, 31, 23, 0.78);
  max-width: 680px;
  margin: 28px 0 32px;
}
.name-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--terracotta);
}

/* Numbered cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 72px;
}
.card { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover { transform: translateY(-3px); }
.card:hover .card-num { color: var(--terracotta-soft); }
.card-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: 18px;
  transition: color 0.4s ease;
}
.card-num-rule {
  width: 30px;
  height: 2px;
  background: var(--terracotta);
  opacity: 0.5;
  margin-bottom: 22px;
}
.card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.card p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: rgba(43, 31, 23, 0.72);
}
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; gap: 52px; }
}

/* Working with us */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
.pillar {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 14px;
  line-height: 1.3;
}
.pillar p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(43, 31, 23, 0.72);
}
.pillar-mark {
  width: 30px;
  height: 2px;
  background: var(--terracotta);
  margin-bottom: 24px;
}
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Steps */
.steps {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
.step { position: relative; }
.step-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #FDFCFA;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}
.step h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step ul { list-style: none; }
.step li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(43, 31, 23, 0.72);
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
}
.step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.55;
}
.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--terracotta) 0%, var(--terracotta) 55%, transparent 55.5%),
              repeating-linear-gradient(to right, var(--terracotta) 0 6px, transparent 6px 14px);
  opacity: 0.35;
  z-index: 0;
}
.step-dot { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

/* ---------- Dashboard mock ---------- */
.dash-card {
  background: var(--ink-deep);
  background-image: radial-gradient(ellipse 100% 80% at 50% 0%, #33241731 0%, transparent 60%), linear-gradient(180deg, #2E2014 0%, #261A10 100%);
  border-radius: var(--radius-lg);
  padding: 34px 36px 28px;
  margin-top: 64px;
  color: var(--cream);
  box-shadow: 0 34px 70px -34px rgba(43, 31, 23, 0.45);
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.dash-client { display: flex; align-items: center; gap: 12px; }
.dash-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(188, 107, 77, 0.18);
}
.dash-client strong { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }
.dash-tag {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 232, 0.45);
  border: 1px solid rgba(245, 239, 232, 0.16);
  border-radius: var(--radius-sm);
  padding: 4px 11px;
}
.dash-tabs {
  display: flex;
  gap: 4px;
  background: rgba(245, 239, 232, 0.06);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.dash-tab {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(245, 239, 232, 0.55);
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.dash-tab:hover { color: var(--cream); }
.dash-tab.active { background: var(--terracotta); color: #FDFCFA; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.kpi {
  background: rgba(245, 239, 232, 0.04);
  border: 1px solid rgba(245, 239, 232, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px 16px;
}
.kpi-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 232, 0.42);
  margin-bottom: 10px;
}
.kpi-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.72rem;
  line-height: 1;
}
.kpi-delta {
  font-size: 0.72rem;
  margin-top: 9px;
  color: rgba(245, 239, 232, 0.45);
}
.kpi-delta .up { color: var(--terracotta-soft); }

.dash-legend {
  display: flex;
  gap: 22px;
  font-size: 0.72rem;
  color: rgba(245, 239, 232, 0.5);
  margin-bottom: 10px;
}
.dash-legend span { display: inline-flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.swatch-rev { background: var(--terracotta); }
.swatch-spend { background: var(--stone); }

.dash-chart-wrap { position: relative; margin-bottom: 26px; }
.dash-chart-wrap svg { display: block; width: 100%; height: auto; }
.dash-tip {
  position: absolute;
  pointer-events: none;
  background: #1B130C;
  border: 1px solid rgba(245, 239, 232, 0.14);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.72rem;
  color: rgba(245, 239, 232, 0.85);
  white-space: nowrap;
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dash-range {
  font-size: 0.76rem;
  color: rgba(245, 239, 232, 0.42);
  margin: -16px 0 22px;
  letter-spacing: 0.02em;
}
.dash-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 5px 13px;
}
.chip-good { background: rgba(188, 107, 77, 0.16); color: var(--terracotta-soft); }
.chip-flat { background: rgba(245, 239, 232, 0.07); color: rgba(245, 239, 232, 0.55); }

.kpi-sub {
  font-size: 0.7rem;
  margin-top: 7px;
  color: rgba(245, 239, 232, 0.35);
}

.dash-comment {
  background: rgba(245, 239, 232, 0.04);
  border-left: 2px solid var(--terracotta);
  border-radius: 0;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.dash-comment .label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin-bottom: 7px;
}
.dash-comment p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(245, 239, 232, 0.72);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.platform {
  background: rgba(245, 239, 232, 0.04);
  border: 1px solid rgba(245, 239, 232, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.p-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.p-head strong { font-size: 0.86rem; font-weight: 600; color: rgba(245, 239, 232, 0.85); }
.p-head span { font-size: 0.72rem; color: rgba(245, 239, 232, 0.42); font-variant-numeric: tabular-nums; }
.p-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  padding: 5px 0;
  border-top: 1px solid rgba(245, 239, 232, 0.06);
  color: rgba(245, 239, 232, 0.6);
}
.p-row b { font-weight: 600; color: rgba(245, 239, 232, 0.82); font-variant-numeric: tabular-nums; }
.p-row .up { color: var(--terracotta-soft); }
.p-detail {
  margin-top: 10px;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(245, 239, 232, 0.42);
}
@media (max-width: 860px) {
  .platforms { grid-template-columns: 1fr; }
}
.dash-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 239, 232, 0.07);
  font-size: 0.73rem;
  color: rgba(245, 239, 232, 0.38);
}
@media (max-width: 860px) {
  .dash-card { padding: 26px 22px 22px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--ink-deep);
  background-image: radial-gradient(ellipse 80% 90% at 50% 110%, #36271A 0%, #281C12 55%, #1E150E 100%);
  color: var(--cream);
  text-align: center;
  padding: 130px 0;
}
.contact .wrap { position: relative; z-index: 2; }
.contact h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 18px;
}
.contact > .wrap > p, .contact .contact-sub {
  color: rgba(245, 239, 232, 0.6);
  margin-bottom: 40px;
  font-size: 1.02rem;
}
.contact .head-rule { margin: 0 auto 36px; }

/* Contact form (Netlify) */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 239, 232, 0.55);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(245, 239, 232, 0.05);
  border: 1px solid rgba(245, 239, 232, 0.18);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245, 239, 232, 0.3); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: rgba(245, 239, 232, 0.08);
  box-shadow: 0 0 0 3px rgba(188, 107, 77, 0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { display: block; width: fit-content; margin: 4px auto 0; }
.bot-field { display: none; }

.contact-alt {
  margin-top: 36px;
  font-size: 0.95rem;
  color: rgba(245, 239, 232, 0.55);
}
.contact-alt a {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--terracotta-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(208, 138, 110, 0.4);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-alt a:hover { color: var(--cream); border-color: var(--cream); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink-deep);
  border-top: 1px solid rgba(245, 239, 232, 0.08);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  color: rgba(245, 239, 232, 0.9);
  font-size: 1.35rem;
  text-decoration: none;
  margin-bottom: 14px;
  transition: color 0.3s ease;
}
a.footer-brand:hover { color: var(--cream); }
.footer-brand .brand-mark { width: 20px; height: 20px; }
.footer-about p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(245, 239, 232, 0.45);
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 239, 232, 0.38);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: rgba(245, 239, 232, 0.62);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(245, 239, 232, 0.07);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 0.76rem;
  color: rgba(245, 239, 232, 0.35);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Utility pages (thanks, 404) ---------- */
.util-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink-deep);
  background-image: radial-gradient(ellipse 90% 70% at 50% 42%, #352619 0%, #2A1E15 45%, #1E150E 100%);
  color: var(--cream);
}
.util-page .wrap { position: relative; z-index: 2; text-align: center; }
.util-page .head-rule { margin: 0 auto 32px; }
.util-page h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.util-page p {
  font-family: var(--textserif);
  color: rgba(245, 239, 232, 0.65);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* ---------- Keyboard focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none; /* terracotta border on :focus already marks these */
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- Rule draw ---------- */
/* Terracotta rules sweep in from the left. The rules sit inside the same blocks
   that fade up on reveal, so the sweep is held a beat (transition-delay) and
   lands as a distinct accent once the block has settled, instead of being
   masked by the fade. Rules stay opacity:1 so the sweep itself reads crisply.
   .head-rule is scoped to .reveal so the bare rules on thanks/404 stay
   full-width. .kicker-rule / .card-num-rule always live inside a .reveal parent. */
.hero-rule,
.head-rule.reveal,
.kicker-rule,
.card-num-rule {
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 1;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Hero rule is above the fold (ships .visible) — drawn immediately, no delay. */
.hero-rule.visible { transform: scaleX(1); }
/* Scroll-revealed rules sweep ~0.35s after their block begins revealing. */
.head-rule.reveal.visible,
.reveal.visible .kicker-rule,
.card.reveal.visible .card-num-rule {
  transform: scaleX(1);
  transition-delay: 0.35s;
}
/* Card-number rules stagger left -> right with their cards */
.card.reveal-d1.visible .card-num-rule { transition-delay: 0.43s; }
.card.reveal-d2.visible .card-num-rule { transition-delay: 0.51s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pillar, .btn, .card { transition: none; }
  .hero-rule, .head-rule.reveal, .kicker-rule, .card-num-rule { transform: none; transition: none; }
  .hero-scroll { animation: none; }
}
