/* ============================================================
   Claudable — Design System
   Inspired by Claude's warmth, built for tech-forward SMBs.
   ============================================================ */

:root {
  /* Surface — bone cream base, cooler than Claude's warm cream */
  --cream:       #F1EDE3;   /* bone */
  --cream-deep:  #E7E0CF;   /* deeper oat */
  --paper:       #FBF8F0;
  --ink:         #0E1014;   /* cool near-black */
  --ink-soft:    #1C2028;
  --muted:       #4F535E;   /* steel */
  --muted-soft:  #8D929E;   /* mist */
  --line:        rgba(14, 16, 20, 0.10);
  --line-strong: rgba(14, 16, 20, 0.18);

  /* Accent — cobalt as primary (future-tech), solar as warmth */
  --terra:       #2233D9;   /* cobalt (was terra; name kept for compat) */
  --terra-deep:  #1A29B8;   /* deeper cobalt */
  --terra-soft:  #D7DCFB;   /* soft cobalt for orbs/surfaces */
  --moss:        #95A382;   /* sage */
  --gold:        #F2A567;   /* solar peach */

  /* Semantic aliases */
  --cobalt:      #2233D9;
  --cobalt-deep: #1A29B8;
  --cobalt-soft: #D7DCFB;
  --solar:       #F2A567;
  --solar-soft:  #FBE0C4;
  --sage:        #95A382;
  --bone:        #F1EDE3;

  /* Type — Space Grotesk display, Inter body, Inter italic for emphasis */
  --font-serif:    'Space Grotesk', 'Inter', system-ui, sans-serif; /* kept name for compat */
  --font-display:  'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-sans:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-emphasis: 'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Scale */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  /* Layout */
  --max:       1240px;
  --gutter:    clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

button { font: inherit; cursor: pointer; border: none; background: none; }

/* Subtle paper texture (very faint noise) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

main, header, footer, section { position: relative; z-index: 1; }

/* ----------------------- Typography --------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--cobalt);
  display: inline-block;
}

/* ----------------------- Layout ------------------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: var(--section-y) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ----------------------- Nav ---------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(245, 241, 234, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.logo-mark {
  width: 28px; height: 28px;
  display: inline-block;
  position: relative;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: logo-spin 4s var(--ease) infinite;
}
@keyframes logo-spin {
  0%   { transform: rotate(0deg); }
  18%  { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark svg { animation: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
}
.nav-links a:hover { color: var(--cobalt); }
.nav-links a.active { color: var(--ink); }
.nav-links a.btn-primary,
.nav-links a.btn-primary.active,
.nav-links a.btn-primary:hover { color: #FFFFFF; }
.nav-links .btn {
  padding: 10px 16px;
  font-size: 0.78rem;
  gap: 7px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--cobalt);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(34, 51, 217, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-link {
  color: var(--cobalt);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}
.btn-link:hover { color: var(--cobalt-deep); }
.btn-link::after {
  content: '→';
  transition: transform 0.25s var(--ease);
}
.btn-link:hover::after { transform: translateX(4px); }

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

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-links .btn { margin-top: 12px; }
}

/* ----------------------- Hero --------------------------- */
.hero {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}

/* Hero with background illustration */
.hero-with-bg {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(120px, 14vw, 200px);
  min-height: clamp(640px, 78vh, 880px);
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg img,
.hero-bg picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 65%;
  opacity: 0.82;
  display: block;
}
.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.92;
}
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;          /* 16:9 — height proportional to width */
  min-height: 100%;
  min-width: 177.78vh;      /* 16:9 — width proportional to height */
  border: 0;
  display: block;
  mix-blend-mode: multiply;
}
.hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(241, 237, 227, 0.88) 0%,
      rgba(241, 237, 227, 0.62) 22%,
      rgba(241, 237, 227, 0.20) 50%,
      rgba(241, 237, 227, 0) 80%
    ),
    linear-gradient(
      to bottom,
      rgba(241, 237, 227, 0.35) 0%,
      rgba(241, 237, 227, 0) 25%,
      rgba(241, 237, 227, 0) 75%,
      var(--cream) 100%
    );
}
.hero-with-bg .hero-inner { position: relative; z-index: 2; }
.hero-with-bg .hero-orbs { opacity: 0.55; }

@media (max-width: 760px) {
  .hero-with-bg { min-height: auto; padding-bottom: clamp(80px, 14vw, 120px); }
  .hero-bg img { opacity: 0.55; object-position: 65% 90%; }
  .hero-video { opacity: 0.7; }
  .hero-bg-fade {
    background:
      linear-gradient(
        to bottom,
        rgba(241, 237, 227, 0.85) 0%,
        rgba(241, 237, 227, 0.55) 35%,
        rgba(241, 237, 227, 0.25) 65%,
        var(--cream) 100%
      );
  }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: var(--cobalt-soft); top: -180px; right: -120px; }
.orb-2 { width: 380px; height: 380px; background: var(--solar-soft); bottom: -120px; left: -100px; animation-delay: -8s; }
.orb-3 { width: 260px; height: 260px; background: #DCE3CC; top: 40%; left: 35%; animation-delay: -14s; opacity: 0.4; }

@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,-30px) scale(1.08); }
}

.hero-inner { position: relative; z-index: 1; max-width: 980px; }

.hero h1 {
  margin: 22px 0 28px;
}
.pain-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--solar);
  position: relative;
  min-height: 1.1em;
  letter-spacing: -0.035em;
}
.pain-line .pain-cursor {
  display: inline-block;
  width: 0.06em;
  background: var(--solar);
  height: 0.85em;
  margin-left: 4px;
  vertical-align: -0.05em;
  animation: blink 0.9s steps(2, end) infinite;
  border-radius: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

.resolve-line { display: block; }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-mini .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(34, 51, 217, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(34, 51, 217, 0); }
}

/* ----------------------- Section heading ---------------- */
.sec-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.sec-head h2 { margin-top: 18px; }
.sec-head p { margin-top: 8px; }

/* ----------------------- Cards -------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px -32px rgba(27,27,25,0.18);
}
.card h3 { margin-top: 16px; }
.card p { color: var(--muted); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cobalt-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt-deep);
}
.card-icon svg { width: 22px; height: 22px; }

/* Card illustration (large thumbnail at top of card) */
.card-illu {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin: -8px 0 22px;
  background: var(--cream);
  position: relative;
}
.card-illu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.card:hover .card-illu img { transform: scale(1.04); }

/* Service-row illustration (services page) */
.svc-illu {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.svc-illu img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Numbered cards */
.num-card .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--cobalt);
  line-height: 1;
  display: block;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}

/* ----------------------- Feature ------------------------ */
.feature {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.feature h2, .feature h3 { color: var(--cream); }
.feature p { color: rgba(241, 237, 227, 0.78); }
.feature .eyebrow { color: var(--solar); }
.feature .eyebrow::before { background: var(--solar); }

.feature-glow {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle at center, rgba(242, 165, 103, 0.28), transparent 60%);
  top: -380px; right: -280px;
  pointer-events: none;
}
.feature-glow::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(34, 51, 217, 0.32), transparent 60%);
  bottom: -200px; left: -200px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
}
@media (max-width: 880px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(245,241,234,0.86);
  font-size: 0.98rem;
}
.feature-list li::before {
  content: '';
  flex: 0 0 auto;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--solar);
  margin-top: 6px;
  box-shadow: 0 0 0 4px rgba(242, 165, 103, 0.18);
}

/* Agent demo card (visual) */
.agent-card {
  background: rgba(245,241,234,0.06);
  border: 1px solid rgba(245,241,234,0.14);
  border-radius: var(--radius);
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: rgba(245,241,234,0.9);
  position: relative;
  backdrop-filter: blur(8px);
}
.agent-card .head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(245,241,234,0.1);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.6);
}
.agent-card .head .live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #8FBF7A;
  box-shadow: 0 0 0 4px rgba(143,191,122,0.2);
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  50% { box-shadow: 0 0 0 8px rgba(143,191,122,0); }
}
.agent-line {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(6px);
  animation: agent-in 0.6s var(--ease) forwards;
}
.agent-line .tag {
  color: var(--solar);
  flex: 0 0 auto;
  width: 70px;
  font-weight: 500;
}
.agent-line .body { color: rgba(245,241,234,0.85); }
.agent-line:nth-child(2) { animation-delay: 0.3s; }
.agent-line:nth-child(3) { animation-delay: 0.8s; }
.agent-line:nth-child(4) { animation-delay: 1.3s; }
.agent-line:nth-child(5) { animation-delay: 1.8s; }
.agent-line:nth-child(6) { animation-delay: 2.3s; }
.agent-line:nth-child(7) { animation-delay: 2.8s; }

@keyframes agent-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------- Trust strip -------------------- */
.trust {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-marks {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.7;
}
.trust-marks span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink-soft);
  letter-spacing: -0.02em;
}

/* ----------------------- Quote -------------------------- */
.quote {
  padding: clamp(60px, 9vw, 120px) 0;
}
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  max-width: 880px;
}
.quote blockquote::before {
  content: '"';
  font-size: 4rem;
  font-family: var(--font-emphasis);
  color: var(--solar);
  display: block;
  line-height: 0.6;
  margin-bottom: 24px;
}
.quote cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ----------------------- CTA banner --------------------- */
.cta {
  background: var(--cream-deep);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 { max-width: 18ch; margin: 0 auto 18px; }
.cta p { max-width: 50ch; margin: 0 auto 36px; }
.cta-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta::before, .cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}
.cta::before { width: 360px; height: 360px; background: var(--cobalt-soft); top: -120px; left: -80px; opacity: 0.7; }
.cta::after  { width: 320px; height: 320px; background: var(--solar-soft); bottom: -140px; right: -80px; opacity: 0.7; }
.cta > * { position: relative; z-index: 1; }

/* ----------------------- Service rows ------------------- */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(40px, 6vw, 70px) 0;
  border-top: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .svc-row { grid-template-columns: 1fr; gap: 16px; } }

.svc-row .svc-meta { color: var(--muted); }
.svc-row .svc-meta .eyebrow { display: inline-flex; }
.svc-row h3 { margin: 18px 0 12px; max-width: 22ch; }

.svc-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.svc-tags span {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ----------------------- Contact ------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

form {
  display: grid;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(34, 51, 217, 0.16);
}

.contact-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-side h3 { margin-bottom: 18px; }
.contact-side ul { list-style: none; padding: 0; margin: 0; }
.contact-side li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.contact-side li:first-child { border-top: none; padding-top: 0; }
.contact-side li span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-side li a, .contact-side li strong { font-weight: 400; color: var(--ink); font-size: 1.05rem; }

/* Success */
.form-success {
  display: none;
  background: rgba(149, 163, 130, 0.22);
  color: #3F4F33;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* ----------------------- Footer ------------------------- */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } }

.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-soft); font-size: 0.95rem; }
.foot-col a:hover { color: var(--cobalt); }

.foot-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot-tag {
  font-family: var(--font-emphasis);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 32ch;
  line-height: 1.4;
}

/* ----------------------- Reveal on scroll --------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ----------------------- Illustration containers ------- */
.illu {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.hero-illu {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-top: 56px;
  box-shadow: 0 30px 80px -40px rgba(14, 16, 20, 0.25);
  overflow: hidden;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
}
.hero-illu img { display: block; width: 100%; height: auto; }

.illu-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 22px;
  border: 1px solid var(--line);
}
.illu-square img { width: 100%; height: 100%; object-fit: cover; display: block; }

.feature-illu {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(241, 237, 227, 0.04);
  border: 1px solid rgba(241, 237, 227, 0.14);
  margin-bottom: 18px;
}
.feature-illu img { display: block; width: 100%; height: auto; }

/* ----------------------- Page hero (services/contact) --- */
.page-hero {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(40px, 6vw, 70px);
}
.page-hero h1 { max-width: 16ch; margin-top: 22px; }
.page-hero .lead { margin-top: 18px; }

/* Process ladder (services) */
.ladder {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.ladder .rung {
  background: var(--paper);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) { .ladder .rung { grid-template-columns: 1fr; gap: 8px; } }

.ladder .rung .step {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--cobalt);
  letter-spacing: -0.04em;
}
.ladder .rung h4 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.ladder .rung p { margin: 0; }

/* Capability marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 24px 0;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 24px;
}
.marquee-track span::after {
  content: '✦';
  color: var(--cobalt);
  font-size: 0.9rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Accent helpers */
.accent { color: var(--solar); }
.serif  { font-family: var(--font-display); }
.italic { font-family: var(--font-emphasis); font-style: italic; font-weight: 500; color: var(--solar); }
.italic.serif { font-family: var(--font-emphasis); } /* override when both classes set */
.center { text-align: center; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
