/* ============================================================
   FSR — Flow Sleep Repeat Ltd
   Calm operational intelligence for complex delivery work.
   ============================================================ */

:root {
  /* Brand palette */
  --navy: #0B1320;
  --graphite: #1E2933;
  --slate: #334155;
  --slate-2: #475569;
  --slate-3: #64748B;
  --teal: #16B39A;
  --teal-dim: #0E8A77;
  --amber: #F5A623;
  --mist: #F3F5F6;
  --off-white: #FAFAFA;
  --white: #FFFFFF;

  /* Surfaces */
  --bg-page: var(--off-white);
  --bg-mist: var(--mist);
  --bg-dark: var(--navy);
  --bg-dark-2: var(--graphite);

  /* Text */
  --ink: #0B1320;
  --ink-soft: #334155;
  --ink-mute: #64748B;
  --ink-on-dark: #E7ECF1;
  --ink-on-dark-soft: #94A3B8;
  --ink-on-dark-mute: #64748B;

  /* Borders */
  --hairline: #E4E8EC;
  --hairline-2: #D6DCE2;
  --hairline-dark: rgba(255,255,255,0.08);
  --hairline-dark-2: rgba(255,255,255,0.14);

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Density (overridable per theme) */
  --section-py: 120px;
  --container-px: 48px;
  --container-max: 1240px;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

[data-density="compact"]  { --section-py: 80px;  }
[data-density="regular"]  { --section-py: 120px; }
[data-density="spacious"] { --section-py: 160px; }

/* ----------------------------------------------------------
   Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--teal); color: var(--navy); }

/* ----------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}
.section--dark { background: var(--navy); color: var(--ink-on-dark); }
.section--mist { background: var(--mist); }
.section--white { background: var(--white); }
.section--off { background: var(--off-white); }

/* Section eyebrow / kicker */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--teal);
}
.section--dark .eyebrow { color: var(--teal); }

[data-accent="restrained"] .eyebrow { color: var(--ink-soft); }
[data-accent="restrained"] .eyebrow::before { background: var(--slate-3); }
[data-accent="restrained"] .section--dark .eyebrow { color: var(--ink-on-dark-soft); }
[data-accent="restrained"] .section--dark .eyebrow::before { background: var(--slate-2); }

/* Headlines */
.h-display {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h-card {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  font-weight: 600;
  margin: 0;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0;
  text-wrap: pretty;
}
.section--dark .lead { color: var(--ink-on-dark-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.btn-primary:hover { background: #19c4a8; border-color: #19c4a8; }
[data-accent="restrained"] .btn-primary {
  background: var(--navy); color: var(--off-white); border-color: var(--navy);
}
[data-accent="restrained"] .btn-primary:hover { background: var(--graphite); border-color: var(--graphite); }
[data-accent="restrained"] .section--dark .btn-primary {
  background: var(--off-white); color: var(--navy); border-color: var(--off-white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn-ghost:hover { border-color: var(--ink); }
.section--dark .btn-ghost,
.hero .btn-ghost,
.cta .btn-ghost,
.deliverables .btn-ghost { color: var(--ink-on-dark); border-color: var(--hairline-dark-2); }
.section--dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.cta .btn-ghost:hover,
.deliverables .btn-ghost:hover { border-color: var(--ink-on-dark); background: rgba(255,255,255,0.04); }
[data-theme="light"] .hero .btn-ghost { color: var(--ink); border-color: var(--hairline-2); background: transparent; }
[data-theme="light"] .hero .btn-ghost:hover { border-color: var(--ink); background: transparent; }

.btn-arrow {
  display: inline-block;
  transition: transform 160ms var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--hairline-2);
  color: var(--ink-soft);
  background: var(--white);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 179, 154, 0.18);
}
.section--dark .pill {
  background: rgba(255,255,255,0.04);
  border-color: var(--hairline-dark-2);
  color: var(--ink-on-dark-soft);
}

/* ----------------------------------------------------------
   Nav
   ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 19, 32, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--hairline-dark);
  color: var(--ink-on-dark);
}
.nav--light {
  background: rgba(250, 250, 250, 0.78);
  border-bottom-color: var(--hairline);
  color: var(--ink);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__lockup {
  height: 38px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-on-dark-soft);
  transition: color 140ms var(--ease);
}
.nav__links a:hover { color: var(--ink-on-dark); }
.nav--light .nav__links a { color: var(--ink-mute); }
.nav--light .nav__links a:hover { color: var(--ink); }

.nav__cta {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: var(--r-sm);
  font-weight: 600;
  border: 1px solid var(--hairline-dark-2);
  color: var(--ink-on-dark);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.nav__cta:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); }
.nav--light .nav__cta { background: var(--navy); border-color: var(--navy); color: var(--off-white); }
.nav--light .nav__cta:hover { background: var(--graphite); border-color: var(--graphite); }

/* [fsr] mark */
.fsr-mark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: currentColor;
}
.fsr-mark .fsr-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  margin: 0 1px 1px 0;
  align-self: flex-end;
}
.fsr-divider {
  width: 1px;
  height: 18px;
  background: var(--hairline-dark-2);
  margin: 0 2px;
}
.nav--light .fsr-divider { background: var(--hairline-2); }
.fsr-tag {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink-on-dark-soft);
}
.nav--light .fsr-tag { color: var(--ink-mute); }

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--ink-on-dark);
  padding-top: 96px;
  padding-bottom: 120px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 78% 30%, rgba(22,179,154,0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(245,166,35,0.05), transparent 60%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 90%);
}
.hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(22,179,154,0.32) 1px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  opacity: 0.25;
  mask-image: radial-gradient(circle at 70% 50%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, black 0%, transparent 60%);
  animation: hero-glow 10s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  from { opacity: 0.18; }
  to   { opacity: 0.32; }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
  min-height: 560px;
}
.hero__copy { max-width: 560px; }
.hero__title {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 22px 0 22px;
  color: var(--off-white);
  text-wrap: balance;
}
.hero__sub {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-on-dark-soft);
  max-width: 520px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__meta {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-on-dark-mute);
}
.hero__meta b {
  display: block;
  color: var(--ink-on-dark);
  font-weight: 500;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: -0.005em;
  text-transform: none;
  margin-top: 4px;
}

/* Hero visual: floating UI cards over dark abstract bg */
.hero__visual {
  position: relative;
  height: 560px;
}
.hv-card {
  position: absolute;
  background: linear-gradient(180deg, rgba(40,54,70,0.92), rgba(22,32,44,0.96));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  padding: 18px 18px;
  box-shadow:
    0 24px 48px -16px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 -1px 0 rgba(255,255,255,0.05) inset;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hv-card__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.hv-card__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-dark-soft);
}

/* Pipeline card */
.hv-pipeline { top: 0; left: 0; right: 0; width: auto; }
.hv-pipeline .stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  align-items: center;
}
.hv-pipeline .stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: 11px;
  color: var(--ink-on-dark-soft);
  font-weight: 500;
}
.hv-pipeline .stage .node {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(22,179,154,0.18);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 11px;
  position: relative;
  z-index: 1;
}
.hv-pipeline .stage--current .node {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.18);
}
.hv-pipeline .stage--current { color: var(--off-white); }
.hv-pipeline .stage--pending .node {
  background: transparent;
  border-color: var(--slate-2);
  color: var(--slate-3);
}
.hv-pipeline .stages::before {
  content:"";
  position:absolute;
  left: 28px; right: 28px;
  top: 35px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 60%, var(--slate-2) 60%, var(--slate-2) 100%);
  z-index: 0;
}
.hv-pipeline .stages { position: relative; padding-top: 24px;}

/* Stats card */
.hv-stats { top: 168px; left: 0; width: 56%; }
.hv-stats .stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hv-stats .stat {
  display: flex; flex-direction: column; gap: 4px;
}
.hv-stats .stat .lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-on-dark-mute);
}
.hv-stats .stat .val {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--off-white);
  font-variant-numeric: tabular-nums;
}
.hv-stats .stat .sub {
  font-size: 11px;
  color: var(--teal);
}
.hv-stats .stat .sub--amber { color: var(--amber); }

/* Actions card */
.hv-actions {
  bottom: 0; left: 0; width: 56%;
}
.hv-actions ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.hv-actions li {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--ink-on-dark-soft);
}
.hv-actions .chk {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--teal);
  background: rgba(22,179,154,0.12);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--teal);
  font-size: 10px;
}
.hv-actions .chk--pending {
  border-color: var(--amber);
  background: rgba(245,166,35,0.12);
  color: var(--amber);
}
.hv-actions .chk--open {
  border-color: var(--slate-2);
  background: transparent;
  color: transparent;
}

/* Approval card */
.hv-approval { top: 168px; right: 0; width: 40%; }
.hv-approval .rows {
  display: flex; flex-direction: column; gap: 9px;
}
.hv-approval .row {
  display: grid;
  grid-template-columns: 18px 1fr 16px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-on-dark-soft);
}
.hv-approval .avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--slate);
  border: 1px solid var(--slate-2);
}
.hv-approval .row .bar {
  height: 4px; border-radius: 999px;
  background: var(--graphite);
  position: relative;
  overflow: hidden;
}
.hv-approval .row .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 60%);
  background: var(--teal);
  border-radius: 999px;
}
.hv-approval .row--pending .bar::after { background: var(--amber); }

/* Donut card */
.hv-donut {
  bottom: 0; right: 0; width: 40%;
  display: flex; align-items: center; gap: 14px;
}
.hv-donut__viz {
  width: 92px; height: 92px;
  flex-shrink: 0;
  position: relative;
}
.hv-donut__num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--off-white);
  letter-spacing: -0.02em;
}
.hv-donut__legend {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px;
  color: var(--ink-on-dark-soft);
}
.hv-donut__legend span::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--teal);
  margin-right: 8px;
  vertical-align: middle;
}
.hv-donut__legend span.amber::before { background: var(--amber); }
.hv-donut__legend span.mute::before { background: var(--slate-2); }

/* Connector lines SVG layer */
.hv-connectors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Hero minimal variant (no UI cards) */
.hero--minimal .hero__inner { grid-template-columns: 1fr; min-height: 460px;}
.hero--minimal .hero__copy { max-width: 880px;}
.hero--minimal .hero__visual { display: none; }
.hero--minimal .hero__title { font-size: clamp(48px, 6.4vw, 88px); }

/* Hero "dashboard" variant — one large card */
.hero--dashboard .hero__visual { height: 520px;}
.hero--dashboard .hv-card { animation: none; opacity: 1; transform: none; }
.hero--dashboard .hv-stats,
.hero--dashboard .hv-actions,
.hero--dashboard .hv-approval,
.hero--dashboard .hv-donut { display: none; }
.hero--dashboard .hv-pipeline {
  top: 0; bottom: 0; left: 0; right: 0;
  width: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.hero--dashboard .hv-dashboard {
  display: flex; flex-direction: column; gap: 20px;
}

/* ----------------------------------------------------------
   Section: Pain points
   ---------------------------------------------------------- */
.pain {
  background: var(--off-white);
  position: relative;
}
.pain__hd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.pain__hd-title { margin-top: 18px; }
.pain__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.pain__item {
  padding: 32px 24px 36px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.pain__item:last-child { border-right: 0; }
.pain__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.pain__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.pain__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mute);
}
.pain__icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

/* ----------------------------------------------------------
   Section: Services
   ---------------------------------------------------------- */
.services { background: var(--mist); }
.services__hd { margin-bottom: 64px; max-width: 720px; }
.services__hd-title { margin-top: 18px; }
.services__hd-lead { margin-top: 18px; }

/* Card style */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.svc-card:hover {
  border-color: var(--slate);
  transform: translateY(-2px);
}
.svc-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal);
}
[data-accent="restrained"] .svc-card__num { color: var(--ink-mute); }
.svc-card__title { color: var(--ink); margin-top: 4px;}
.svc-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.svc-card__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.svc-card__list li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}
[data-accent="restrained"] .svc-card__list li::before { background: var(--slate-3); }

/* Numbered list style */
.svc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.svc-list__item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.svc-list__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  padding-top: 6px;
}
.svc-list__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.svc-list__desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.svc-list__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.svc-list__chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
}

/* ----------------------------------------------------------
   Section: Example deliverables (DARK)
   ---------------------------------------------------------- */
.deliverables { background: var(--navy); color: var(--ink-on-dark); position: relative; overflow: hidden; }
.deliverables::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 80%);
  pointer-events: none;
}
.deliverables__hd { max-width: 720px; margin-bottom: 64px; position: relative;}
.deliverables__hd-title { color: var(--off-white); margin-top: 18px;}
.deliverables__hd-lead { color: var(--ink-on-dark-soft); margin-top: 18px;}
.del-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  position: relative;
}
.del-card {
  background: linear-gradient(180deg, rgba(30,41,51,0.7), rgba(15,23,33,0.85));
  border: 1px solid var(--hairline-dark-2);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.del-card__hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.del-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--off-white);
}
.del-card__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-dark-mute);
}

/* Weekly Report card */
.del-report .rep-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.del-report .rep-meta .item .lbl {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-on-dark-mute);
  margin-bottom: 4px;
}
.del-report .rep-meta .item .val {
  font-size: 22px; font-weight: 600; color: var(--off-white);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.del-report .rep-meta .item .val.teal { color: var(--teal); }
.del-report .rep-meta .item .val.amber { color: var(--amber); }
.del-report .rep-bars {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 11px;
}
.del-report .rep-bars .row {
  display: grid; grid-template-columns: 110px 1fr 36px; gap: 12px; align-items: center;
  font-size: 12px; color: var(--ink-on-dark-soft);
}
.del-report .rep-bars .bar {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden;
}
.del-report .rep-bars .bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w, 70%); background: var(--teal); border-radius: 999px;
}
.del-report .rep-bars .row.amber .bar::after { background: var(--amber); }
.del-report .rep-bars .val {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-on-dark);
  text-align: right;
}

/* Action tracker card */
.del-actions table {
  width: 100%; border-collapse: collapse;
}
.del-actions th, .del-actions td {
  text-align: left; padding: 9px 0;
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 12px;
}
.del-actions th {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-on-dark-mute);
  font-weight: 500;
}
.del-actions td { color: var(--ink-on-dark-soft); }
.del-actions td.id { font-family: var(--font-mono); color: var(--ink-on-dark);}
.del-actions .status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em;
}
.del-actions .status .d { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.del-actions .status.open .d { background: var(--amber); }
.del-actions .status.due .d { background: #ef4444; }

/* QA dashboard card */
.del-qa .qa-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.del-qa .qa-tile {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-sm);
  padding: 14px;
}
.del-qa .qa-tile .lbl {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-on-dark-mute);
}
.del-qa .qa-tile .val {
  font-size: 24px; font-weight: 600; color: var(--off-white);
  letter-spacing: -0.02em; margin-top: 6px;
}
.del-qa .qa-tile .delta {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--teal); margin-top: 2px;
}
.del-qa .qa-list {
  display: flex; flex-direction: column; gap: 9px;
  margin-top: auto;
}
.del-qa .qa-list .row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  font-size: 12px; color: var(--ink-on-dark-soft);
}
.del-qa .qa-list .row .badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(22,179,154,0.14); color: var(--teal);
}
.del-qa .qa-list .row.amber .badge { background: rgba(245,166,35,0.14); color: var(--amber); }

/* Documentation visibility card */
.del-docs .docs-list { display: flex; flex-direction: column; gap: 0;}
.del-docs .doc-row {
  display: grid;
  grid-template-columns: 18px 1fr 64px 18px;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 12.5px;
  color: var(--ink-on-dark-soft);
}
.del-docs .doc-row:last-child { border-bottom: 0; }
.del-docs .doc-row .ico {
  color: var(--ink-on-dark-mute);
}
.del-docs .doc-row .ver {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-on-dark-mute); text-align: right;
}
.del-docs .doc-row .st {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(22,179,154,0.16);
  color: var(--teal);
  font-size: 10px;
}
.del-docs .doc-row.amber .st { background: rgba(245,166,35,0.14); color: var(--amber); }
.del-docs .doc-row.open .st { background: transparent; border: 1px solid var(--slate-2); color: transparent; }

/* ----------------------------------------------------------
   Section: Process
   ---------------------------------------------------------- */
.process { background: var(--off-white); }
.process__hd { max-width: 720px; margin-bottom: 72px; }
.process__hd-title { margin-top: 18px; }

/* Horizontal */
.proc-h {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.proc-h::before {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(100%/6);
  right: calc(100%/6);
  height: 1px;
  background: var(--hairline-2);
  z-index: 0;
}
.proc-h__step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 32px;
  position: relative;
  z-index: 1;
}
.proc-h__node {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.proc-h__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.proc-h__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 320px;
}

/* Vertical timeline */
.proc-v {
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 1px solid var(--hairline-2);
  padding-left: 48px;
  margin-left: 16px;
}
.proc-v__step {
  position: relative;
  padding: 24px 0 48px;
}
.proc-v__step:last-child { padding-bottom: 0; }
.proc-v__node {
  position: absolute;
  left: -65px;
  top: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}
.proc-v__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: 10px;
}
.proc-v__desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.55;
}

/* ----------------------------------------------------------
   Section: About / Founder
   ---------------------------------------------------------- */
.about { background: var(--mist); }
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 80px;
  align-items: start;
}
.about__title { margin-top: 18px; }
.about__lead {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  text-wrap: pretty;
  margin: 0;
  letter-spacing: -0.01em;
}
.about__meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-2);
}
.about__meta .item .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.about__meta .item .val {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

/* ----------------------------------------------------------
   Section: Closing CTA / Contact
   ---------------------------------------------------------- */
.cta { background: var(--navy); color: var(--ink-on-dark); position: relative; overflow: hidden;}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 100%, rgba(22,179,154,0.10), transparent 60%);
  pointer-events: none;
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  position: relative;
}
.cta__title {
  color: var(--off-white);
  margin-top: 18px;
}
.cta__lead {
  color: var(--ink-on-dark-soft);
  margin-top: 18px;
}
.cta__direct {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-dark);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta__direct .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-dark-mute);
}
.cta__direct a {
  font-size: 18px;
  color: var(--off-white);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--hairline-dark-2);
  padding-bottom: 4px;
  width: max-content;
  transition: border-color 160ms var(--ease);
}
.cta__direct a:hover { border-bottom-color: var(--teal); }

/* Form */
.form {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--hairline-dark-2);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-dark-soft);
  margin-bottom: 4px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-on-dark-soft);
  letter-spacing: -0.005em;
}
.field input, .field textarea, .field select {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--hairline-dark-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--off-white);
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--ink-on-dark-mute);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(0,0,0,0.35);
}
.field textarea { min-height: 100px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__submit { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 8px; }
.form__note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-on-dark-mute);
}
.form__success {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(22,179,154,0.10);
  border: 1px solid rgba(22,179,154,0.35);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--off-white);
}
.form__success .ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  display: grid; place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.foot {
  background: var(--graphite);
  color: var(--ink-on-dark-soft);
  padding: 56px 0 32px;
}
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline-dark);
}
.foot__brand img { max-width: 220px; height: auto; }
.foot__tag {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-on-dark-mute);
  max-width: 320px;
}
.foot__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-dark-mute);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot__col a, .foot__col li {
  font-size: 13.5px;
  color: var(--ink-on-dark-soft);
  transition: color 140ms var(--ease);
}
.foot__col a:hover { color: var(--off-white); }
.foot__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-on-dark-mute);
}

/* ----------------------------------------------------------
   Reveal class — kept for source-marker compatibility, but
   content is visible by default. Subtle motion lives in the
   hero dot-grid glow + hover transitions, per the brief.
   ---------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }

/* ----------------------------------------------------------
   Light theme override (light hero too)
   ---------------------------------------------------------- */
[data-theme="light"] .hero {
  background: var(--off-white);
  color: var(--ink);
}
[data-theme="light"] .hero .hero__title { color: var(--ink); }
[data-theme="light"] .hero .hero__sub { color: var(--ink-soft); }
[data-theme="light"] .hero__grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
[data-theme="light"] .hero__bg {
  background:
    radial-gradient(1200px 600px at 78% 30%, rgba(22,179,154,0.07), transparent 60%);
}
[data-theme="light"] .hero__dots { opacity: 0.4; }
[data-theme="light"] .hv-card {
  background: var(--white);
  border-color: var(--hairline);
  box-shadow: 0 24px 48px -28px rgba(11,19,32,0.18);
}
[data-theme="light"] .hv-card__title { color: var(--ink-mute); }
[data-theme="light"] .hv-pipeline .stage { color: var(--ink-mute); }
[data-theme="light"] .hv-pipeline .stage--current { color: var(--ink); }
[data-theme="light"] .hv-pipeline .stages::before {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 60%, var(--hairline-2) 60%, var(--hairline-2) 100%);
}
[data-theme="light"] .hv-pipeline .stage--pending .node {
  border-color: var(--hairline-2);
  color: var(--ink-mute);
}
[data-theme="light"] .hv-stats .stat .val,
[data-theme="light"] .hv-donut__num { color: var(--ink); }
[data-theme="light"] .hv-stats .stat .lbl,
[data-theme="light"] .hv-actions li,
[data-theme="light"] .hv-approval .row,
[data-theme="light"] .hv-donut__legend { color: var(--ink-soft); }
[data-theme="light"] .hv-approval .row .bar { background: var(--hairline); }
[data-theme="light"] .hero__meta { color: var(--ink-mute); border-top-color: var(--hairline); }
[data-theme="light"] .hero__meta b { color: var(--ink); }
[data-theme="light"] .nav { background: rgba(250,250,250,0.78); border-bottom-color: var(--hairline); color: var(--ink);}
[data-theme="light"] .nav .nav__links a { color: var(--ink-mute); }
[data-theme="light"] .nav .nav__links a:hover { color: var(--ink); }
[data-theme="light"] .nav .nav__cta { background: var(--navy); border-color: var(--navy); color: var(--off-white); }
[data-theme="light"] .nav .fsr-divider { background: var(--hairline-2); }
[data-theme="light"] .nav .fsr-tag { color: var(--ink-mute); }

/* All-dark theme: body sections also dark */
[data-theme="dark"] {
  background: var(--navy);
  color: var(--ink-on-dark);
}
[data-theme="dark"] body { background: var(--navy); color: var(--ink-on-dark); }
[data-theme="dark"] .pain { background: var(--navy); color: var(--ink-on-dark); }
[data-theme="dark"] .services { background: var(--graphite); color: var(--ink-on-dark); }
[data-theme="dark"] .process { background: var(--navy); color: var(--ink-on-dark); }
[data-theme="dark"] .about { background: var(--graphite); color: var(--ink-on-dark); }
[data-theme="dark"] .pain__title,
[data-theme="dark"] .h-section,
[data-theme="dark"] .h-card,
[data-theme="dark"] .svc-card__title,
[data-theme="dark"] .svc-list__title,
[data-theme="dark"] .proc-h__title,
[data-theme="dark"] .proc-v__title,
[data-theme="dark"] .about__lead { color: var(--off-white); }
[data-theme="dark"] .pain__desc,
[data-theme="dark"] .svc-card__desc,
[data-theme="dark"] .svc-list__desc,
[data-theme="dark"] .proc-h__desc,
[data-theme="dark"] .proc-v__desc,
[data-theme="dark"] .lead { color: var(--ink-on-dark-soft); }
[data-theme="dark"] .pain__num,
[data-theme="dark"] .svc-list__num,
[data-theme="dark"] .svc-list__chip,
[data-theme="dark"] .about__meta .item .lbl { color: var(--ink-on-dark-mute); }
[data-theme="dark"] .pain__grid,
[data-theme="dark"] .pain__item,
[data-theme="dark"] .svc-list,
[data-theme="dark"] .svc-list__item,
[data-theme="dark"] .about__meta { border-color: var(--hairline-dark); }
[data-theme="dark"] .svc-card {
  background: rgba(255,255,255,0.025); border-color: var(--hairline-dark-2);
}
[data-theme="dark"] .svc-card__list { border-color: var(--hairline-dark); }
[data-theme="dark"] .svc-list__chip { background: rgba(255,255,255,0.04); border-color: var(--hairline-dark-2); }
[data-theme="dark"] .pain__icon,
[data-theme="dark"] .about__meta .item .val { color: var(--off-white); }
[data-theme="dark"] .proc-h::before,
[data-theme="dark"] .proc-v { border-color: var(--hairline-dark-2); background-color: transparent;}
[data-theme="dark"] .proc-h__node, [data-theme="dark"] .proc-v__node {
  background: var(--navy); border-color: var(--off-white); color: var(--off-white);
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 980px) {
  :root { --container-px: 28px; --section-py: 88px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
  .hero__visual { height: 480px; }
  .pain__hd, .about__inner, .cta__inner { grid-template-columns: 1fr; gap: 32px; }
  .pain__grid { grid-template-columns: repeat(2, 1fr); }
  .pain__item { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .pain__item:nth-child(2n) { border-right: 0;}
  .pain__item:nth-last-child(-n+1) { border-bottom: 0;}
  .svc-cards, .proc-h { grid-template-columns: 1fr; gap: 14px; }
  .proc-h::before { display: none; }
  .del-grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .svc-list__item { grid-template-columns: 1fr; gap: 12px; }
  .nav__links { display: none; }
}
