/* ============================================================
   Keystone Education Advisors — Design System
   ============================================================ */

:root {
  /* Color */
  --ink-900: #0a1224;
  --ink-800: #111a30;
  --ink-700: #1a2540;
  --ink-600: #2a365a;
  --ink-500: #4a5378;

  --paper: #f6f1e7;
  --paper-2: #efe8d8;
  --paper-3: #e8dfca;
  --line: #ddd2b8;
  --line-soft: rgba(10, 18, 36, 0.08);

  --accent: #c08a3b;
  --accent-hi: #d9a35a;
  --accent-lo: #9a6e2c;
  --accent-tint: rgba(192, 138, 59, 0.12);

  --text: #14182a;
  --muted: #5a6178;

  --shadow-xs: 0 1px 0 rgba(10, 18, 36, 0.04);
  --shadow-sm: 0 1px 2px rgba(10, 18, 36, 0.06), 0 4px 12px rgba(10, 18, 36, 0.04);
  --shadow-md: 0 12px 32px rgba(10, 18, 36, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(10, 18, 36, 0.25);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter Tight', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 220ms;
}

/* ============================================================
   Reset / Base
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper grain — tasteful, not noisy */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.07  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.6vw + 0.5rem, 5.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3vw + 0.8rem, 3.2rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 0.6vw + 1rem, 1.4rem); font-weight: 600; font-variation-settings: "opsz" 36; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; font-variation-settings: "opsz" 14; letter-spacing: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

p { margin: 0 0 1em; }

.lead {
  font-size: clamp(1.08rem, 0.4vw + 1rem, 1.3rem);
  color: var(--ink-600);
  max-width: 60ch;
  line-height: 1.5;
}

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

a {
  color: var(--ink-800);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
a:hover { color: var(--accent-lo); }

/* Underline-on-hover for content links */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  position: relative;
}
.link-arrow::after {
  content: "→";
  transition: transform var(--t) var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.narrow { max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-lo);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.eyebrow-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-700);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 1.4em;
}
.eyebrow-pill .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 2px;
}

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(246, 241, 231, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-900);
}
.brand:hover { color: var(--ink-900); }

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-800);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.nav-links > a:hover { background: rgba(10, 18, 36, 0.05); color: var(--ink-900); }
.nav-links > a.active {
  background: var(--ink-900);
  color: var(--paper);
}
.nav-links > a.btn { margin-left: 8px; padding: 10px 18px; }
.nav-links > a.btn:hover { background: var(--ink-700); color: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-900);
  margin: 0 auto;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t) var(--ease),
              background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              color var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform var(--t) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink-900);
  color: var(--paper);
  box-shadow: 0 8px 18px -8px rgba(10, 18, 36, 0.4);
}
.btn-primary:hover {
  background: var(--ink-700);
  color: var(--paper);
  box-shadow: 0 12px 24px -8px rgba(10, 18, 36, 0.5);
}

.btn-ghost {
  color: var(--ink-800);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-800);
  color: var(--ink-900);
  background: rgba(10, 18, 36, 0.03);
}

.btn-accent {
  background: var(--accent);
  color: var(--ink-900);
}
.btn-accent:hover { background: var(--accent-hi); color: var(--ink-900); }

.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ============================================================
   Hero — full-bleed image
   ============================================================
   To set the hero photo, drop a file into assets/images/ and set:
     .hero-bg { background-image: url('assets/images/hero.jpg'); }
   The default is a sophisticated gradient placeholder so the hero
   still looks intentional before the photo is supplied.
   ============================================================ */

.hero {
  position: relative;
  min-height: 88vh;
  max-height: 960px;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 88px;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #0a1224;
  /* Photo first; gradient stack below acts as fallback if image fails to load.
     URL is relative to this stylesheet (assets/styles.css), so path is images/... */
  background-image:
    url('images/hero.jpg'),
    radial-gradient(70% 50% at 78% 22%, rgba(217, 163, 90, 0.55) 0%, transparent 62%),
    radial-gradient(60% 70% at 12% 100%, rgba(10, 18, 36, 0.85) 0%, transparent 70%),
    linear-gradient(160deg, #15203a 0%, #2a365a 38%, #4a3a25 72%, #1a1410 100%);
  background-size: cover, cover, cover, cover;
  background-position: center 35%, center, center, center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

/* Scrim for headline legibility — concentrated bottom-left to clear the building */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top right, rgba(10, 18, 36, 0.86) 0%, rgba(10, 18, 36, 0.42) 40%, rgba(10, 18, 36, 0.0) 72%),
    linear-gradient(to top, rgba(10, 18, 36, 0.5) 0%, rgba(10, 18, 36, 0.0) 48%);
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw + 0.2rem, 6.6rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-bottom: 0.5em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(10, 18, 36, 0.25);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-hi);
}

.hero .eyebrow-pill {
  background: rgba(246, 241, 231, 0.12);
  border-color: rgba(246, 241, 231, 0.28);
  color: var(--paper);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero .lead {
  color: rgba(246, 241, 231, 0.88);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: var(--paper);
  color: var(--ink-900);
}
.hero .btn-primary:hover {
  background: #fff;
  color: var(--ink-900);
}
.hero .btn-ghost {
  color: var(--paper);
  border-color: rgba(246, 241, 231, 0.4);
  background: rgba(246, 241, 231, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero .btn-ghost:hover {
  border-color: rgba(246, 241, 231, 0.8);
  color: #fff;
  background: rgba(246, 241, 231, 0.14);
}

/* Placeholder tag — visible until image is supplied; delete when adding photo */
.hero-placeholder-tag {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(10, 18, 36, 0.55);
  border: 1px solid rgba(246, 241, 231, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-pill);
  color: rgba(246, 241, 231, 0.92);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero-placeholder-tag .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-hi);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(217, 163, 90, 0.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 163, 90, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(217, 163, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 163, 90, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-placeholder-tag .pulse { animation: none; }
}

/* Hero meta strip (sits just below the hero image) */
.hero-meta-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.hero-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.hero-meta div { min-width: 160px; }
.hero-meta .label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-meta .value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-900);
  font-weight: 500;
}

/* ============================================================
   Marquee
   ============================================================ */

.marquee {
  position: relative;
  border-block: 1px solid var(--line-soft);
  background: var(--paper-2);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 56px;
  padding: 22px 0;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track > span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink-700);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track > span::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.9rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 112px 0;
  position: relative;
}
.section-tight { padding: 80px 0; }

.section-alt { background: var(--paper-2); }
.section-deep { background: var(--paper-3); }

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head .section-intro {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 8px;
}

.section-head-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head-split .section-intro { margin: 0; }

/* ============================================================
   Service bento grid
   ============================================================ */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
}

.bento-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.bento-card .num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-lo);
  letter-spacing: 0.04em;
}
.bento-card h3 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.bento-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}
.bento-card .arrow-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.bento-card .arrow-link::after {
  content: "→";
  transition: transform var(--t) var(--ease);
}
.bento-card:hover .arrow-link::after { transform: translateX(3px); }

.bento-card.feature {
  grid-column: span 4;
  grid-row: span 2;
  background: var(--ink-900);
  color: var(--paper);
  border-color: transparent;
  padding: 44px;
}
.bento-card.feature::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 80%;
  height: 100%;
  background: radial-gradient(circle, var(--accent-tint) 0%, transparent 60%);
  pointer-events: none;
}
.bento-card.feature h3 {
  font-size: 2rem;
  color: #fff;
}
.bento-card.feature p { color: rgba(246, 241, 231, 0.78); font-size: 1.05rem; }
.bento-card.feature .num { color: var(--accent-hi); }
.bento-card.feature .arrow-link { color: var(--accent-hi); border-top-color: rgba(246, 241, 231, 0.18); }

.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-3 { grid-column: span 3; }

/* Tall variant for feature card balance */
@media (min-width: 880px) {
  .bento { grid-auto-rows: 220px; }
}

/* ============================================================
   Process / numbered
   ============================================================ */

.process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 36px;
  border: 1px solid var(--line-soft);
  margin: -1px 0 0 -1px;
  background: var(--paper);
  position: relative;
  transition: background var(--t) var(--ease);
}
.process-step:hover { background: var(--paper-2); }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 4vw, 5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
  font-feature-settings: "lnum";
}
.process-step h3 {
  margin: 4px 0 10px;
  font-size: 1.4rem;
}
.process-step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ============================================================
   Quote / dark band
   ============================================================ */

.quote-band {
  background: var(--ink-900);
  color: var(--paper);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 12% 12%, rgba(192, 138, 59, 0.16) 0%, transparent 60%),
    radial-gradient(40% 60% at 88% 88%, rgba(192, 138, 59, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.quote-band .container { position: relative; z-index: 2; max-width: 980px; text-align: center; }
.quote-band .quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 24px;
  display: inline-block;
}
.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: #fff;
  text-wrap: balance;
}
.quote-band .quote-attrib {
  margin-top: 32px;
  color: var(--accent-hi);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  padding: 96px 0;
  background:
    radial-gradient(50% 80% at 50% 0%, var(--accent-tint) 0%, transparent 60%),
    var(--paper-2);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 56ch; margin: 0 auto 28px; font-size: 1.1rem; }

/* ============================================================
   Page heads
   ============================================================ */

.page-head {
  padding: 96px 0 48px;
  position: relative;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 90% 0%, var(--accent-tint) 0%, transparent 60%);
  pointer-events: none;
}
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 16px; }

/* ============================================================
   Service detail (services page)
   ============================================================ */

.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
.service-detail:first-of-type { border-top: 0; padding-top: 24px; }
.service-detail-head {
  position: sticky;
  top: 96px;
}
.service-detail-head .num-tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-lo);
  font-style: italic;
  margin-bottom: 6px;
}
.service-detail-head h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  margin-bottom: 12px;
}
.service-detail-head .muted { font-size: 1rem; }

.service-detail-body { font-size: 1.02rem; color: var(--text); }
.service-detail-body ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.service-detail-body li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-800);
}
.service-detail-body li:last-child { border-bottom: 1px solid var(--line-soft); }
.service-detail-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   Two col / Why us
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  gap: 4px;
}
.check-list li {
  position: relative;
  padding: 14px 0 14px 36px;
  color: var(--ink-800);
  border-top: 1px solid var(--line-soft);
  font-size: 1rem;
}
.check-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 14px;
  height: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Image card for the Why section — card catalog photo */
.figure-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  /* Photo first; gradient stack below acts as fallback if image fails to load */
  background-color: var(--ink-900);
  background-image:
    url('images/figure.jpg'),
    radial-gradient(120% 80% at 70% 20%, rgba(217, 163, 90, 0.35) 0%, transparent 60%),
    radial-gradient(120% 80% at 20% 90%, rgba(10, 18, 36, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-700) 0%, var(--ink-900) 100%);
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-lg);
}
/* Bottom scrim for the fig-tag legibility */
.figure-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10, 18, 36, 0.78) 0%, rgba(10, 18, 36, 0.0) 100%);
  pointer-events: none;
}
.figure-card .fig-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  color: rgba(246, 241, 231, 0.92);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.figure-card .fig-tag .label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent-hi);
}
.figure-card .fig-tag .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: #fff;
}

/* About values */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.value-card {
  background: var(--paper);
  padding: 32px 28px;
  transition: background var(--t) var(--ease);
}
.value-card:hover { background: var(--paper-2); }
.value-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.value-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ============================================================
   Contact form
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #fff;
  padding: 40px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--text);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink-800);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 18, 36, 0.06);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { margin: 14px 0 0; }

.contact-aside h2 { font-size: 1.6rem; }
.contact-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.contact-block:first-of-type { padding-top: 0; border-top: 0; }
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink-900);
  color: rgba(246, 241, 231, 0.78);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at 80% 0%, rgba(192, 138, 59, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 2; }
.site-footer .brand-name { color: #fff; font-size: 1.4rem; }
.site-footer .brand-sub { color: rgba(246, 241, 231, 0.5); }
.site-footer .muted { color: rgba(246, 241, 231, 0.55); max-width: 36ch; }
.site-footer a { color: rgba(246, 241, 231, 0.78); display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--accent-hi); }
.footer-head {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent-hi);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.12);
}
.footer-grid .brand { margin-bottom: 16px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { display: inline; margin: 0; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .hero { min-height: 78vh; padding: 100px 0 64px; }
  .hero-placeholder-tag { top: 20px; right: 20px; font-size: 0.72rem; padding: 8px 12px; }
  .hero-meta { gap: 28px; padding: 22px 0; }

  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .figure-card { aspect-ratio: 5 / 4; max-width: 520px; }

  .section-head-split { grid-template-columns: 1fr; gap: 24px; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-card.feature { grid-column: span 2; grid-row: span 1; padding: 36px; }
  .bento-card.span-2, .bento-card.span-3 { grid-column: span 2; }

  .process { grid-template-columns: 1fr; }

  .service-detail { grid-template-columns: 1fr; gap: 24px; }
  .service-detail-head { position: static; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .section { padding: 80px 0; }
  .quote-band { padding: 80px 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a {
    padding: 12px 16px;
    border-radius: var(--r-md);
  }
  .nav-links > a.btn { margin: 6px 0 0; text-align: center; justify-content: center; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav { padding: 14px 20px; }
  .contact-form { grid-template-columns: 1fr; padding: 28px; }
  .hero-actions .btn { flex: 1 0 auto; justify-content: center; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.feature, .bento-card.span-2, .bento-card.span-3 { grid-column: span 1; }
}
