:root {
  --canvas: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #F9F9F8;
  --ink: #111111;
  --ink-soft: #2F3437;
  --ink-mute: #787774;
  --line: #EAEAEA;
  --line-soft: rgba(0, 0, 0, 0.06);

  --pale-red-bg: #FDEBEC;
  --pale-red-ink: #9F2F2D;
  --pale-blue-bg: #E1F3FE;
  --pale-blue-ink: #1F6C9F;
  --pale-green-bg: #EDF3EC;
  --pale-green-ink: #346538;
  --pale-yellow-bg: #FBF3DB;
  --pale-yellow-ink: #956400;

  --font-sans: 'Geist', 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --font-serif: 'Newsreader', 'Lyon Text', 'Playfair Display', Georgia, serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60vw 50vw at 15% 10%, rgba(210, 190, 140, 0.06), transparent 60%),
    radial-gradient(50vw 45vw at 85% 80%, rgba(120, 140, 200, 0.04), transparent 60%);
  animation: ambient-drift 28s var(--ease) infinite alternate;
}
@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 1%, 0) scale(1.04); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: #111; color: #F7F6F3; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 40px;
  background: rgba(247, 246, 243, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo img { height: 38px; width: auto; }

.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav a { padding: 6px 2px; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.cta-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  font-size: 13px;
  color: var(--ink-mute);
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.cta-phone-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* Main grid */
main { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

section { padding: 120px 0; }

.section-head {
  max-width: 780px;
  margin-bottom: 56px;
}
.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 20px;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
}
.section-lede {
  font-size: 18px;
  color: var(--ink-mute);
  max-width: 640px;
  margin: 0;
}

/* Hero */
.hero { padding-top: 80px; padding-bottom: 80px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--surface);
}
.hero-meta { margin-bottom: 32px; }
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 18ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 72px;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: #333; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:active { transform: scale(0.98); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.hero-stats > div {
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { border-right: none; padding-right: 0; }
.hero-stats > div:not(:first-child) { padding-left: 28px; }
.hero-stats dt {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero-stats dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bento-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035);
  border-color: #DCDCDC;
}
.bento-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.bento-card p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 15.5px;
  line-height: 1.55;
}
.bento-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 6px;
}
.bento-icon svg { width: 100%; height: 100%; }

.bento-lg { grid-column: span 2; }
.bento-wide { grid-column: span 2; }
.bento-full { grid-column: 1 / -1; }

.bento .bullets {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.bento .bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.bento .bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 1px;
  background: var(--ink);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 9999px;
  margin-top: auto;
  align-self: flex-start;
}
.tag-red    { background: var(--pale-red-bg);    color: var(--pale-red-ink); }
.tag-blue   { background: var(--pale-blue-bg);   color: var(--pale-blue-ink); }
.tag-green  { background: var(--pale-green-bg);  color: var(--pale-green-ink); }
.tag-yellow { background: var(--pale-yellow-bg); color: var(--pale-yellow-ink); }

.bento-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento-why .bento-card { padding: 32px; }

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 32px 28px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
}
.steps li:nth-child(3n) { border-right: none; }
.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.steps h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 10px;
}
.steps p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.55;
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--line);
  max-width: 880px;
}
.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 4px 0;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink-mute);
  font-weight: 400;
  transition: transform 260ms var(--ease);
}
.accordion details[open] summary::after {
  content: '−';
  color: var(--ink);
}
.accordion details p {
  margin: 14px 0 4px;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.contact-card:not(.contact-card-static):hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035);
  border-color: #DCDCDC;
}
.contact-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-value {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 500;
}
.contact-meta {
  font-size: 13.5px;
  color: var(--ink-mute);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.footer-brand img { height: 30px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: var(--ink-mute); font-size: 14px; max-width: 48ch; }
.footer-meta {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-meta a { color: var(--ink-soft); }
.footer-meta a:hover { color: var(--ink); }

/* Reveal (only when JS is on) */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
html.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  main { padding: 0 24px; }
  section { padding: 88px 0; }
  .site-header { grid-template-columns: auto 1fr; padding: 14px 20px; gap: 16px; }
  .nav { display: none; }
  .cta-phone { border-left: none; padding-left: 0; }
  .cta-phone-label { display: none; }

  .hero-title { font-size: clamp(40px, 10vw, 64px); max-width: 18ch; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .hero-stats > div:last-child { border-bottom: none; }
  .hero-stats > div:not(:first-child) { padding-left: 0; }

  .bento { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide, .bento-full { grid-column: auto; grid-row: auto; }
  .bento-why { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ambient { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
