:root {
  --page: #f5f1e8;
  --panel: rgba(255, 252, 246, 0.72);
  --panel-solid: #fbf8f1;
  --panel-strong: #f1ebdf;
  --text: #1f1f1b;
  --text-soft: #57544c;
  --line: rgba(48, 42, 31, 0.12);
  --line-strong: rgba(48, 42, 31, 0.2);
  --accent: #1756c6;
  --accent-soft: rgba(23, 86, 198, 0.08);
  --shadow: 0 18px 50px rgba(27, 24, 19, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max-width: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(23, 86, 198, 0.05), transparent 20%),
    var(--page);
  color: var(--text);
  font-family: "Avenir Next", "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.site-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 0 0 48px;
}

.site-header-frame {
  position: sticky;
  top: 0;
  z-index: 24;
  margin: 0 0 28px;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, var(--page) 0%, rgba(245, 241, 232, 0.96) 74%, rgba(245, 241, 232, 0) 100%);
  transition: transform 220ms ease, padding 220ms ease;
}

body.is-nav-hidden .site-header-frame {
  transform: translateY(calc(-100% + 14px));
}

body.is-scrolled .site-header-frame {
  padding: 8px 0 14px;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(249, 245, 237, 0.8);
  backdrop-filter: blur(20px);
  transition:
    top 220ms ease,
    padding 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

body.is-scrolled .site-header {
  padding: 8px 12px;
  border-color: rgba(48, 42, 31, 0.1);
  background: rgba(249, 245, 237, 0.96);
  box-shadow: 0 8px 24px rgba(27, 24, 19, 0.06);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  transition: gap 220ms ease;
}

body.is-scrolled .brand-lockup { gap: 10px; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(23, 86, 198, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: width 220ms ease, height 220ms ease, font-size 220ms ease;
}

body.is-scrolled .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.brand-text { display: grid; gap: 2px; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.brand-tag {
  color: var(--text-soft);
  font-size: 12px;
  transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease;
}

body.is-scrolled .brand-tag {
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
  overflow: hidden;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  transition: gap 220ms ease;
}

body.is-scrolled .site-nav { gap: 18px; }

.site-nav a,
.secondary-link {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.secondary-link:hover { color: var(--text); }

.nav-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--text);
  color: #faf8f2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, background 180ms ease;
}

body.is-scrolled .nav-cta {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  background: rgba(31, 31, 27, 0.08);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(48, 42, 31, 0.12);
}

.nav-cta:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: #12120f;
}

body.is-scrolled .nav-cta:hover { background: rgba(31, 31, 27, 0.14); }

.section-block { margin: 0 0 34px; }
.section-block[id] { scroll-margin-top: 110px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 252, 246, 0.78)),
    var(--panel);
  box-shadow: var(--shadow);
}

.section-label {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero h1 { max-width: 11ch; font-size: clamp(56px, 9vw, 98px); }

.hero-text,
.section-copy,
.hero-support,
.final-cta p,
.product-card p,
.solution-card p,
.capability-item p,
.use-case-card p,
.process-step p,
.why-grid p,
.two-column-copy p {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.hero-text { margin: 22px 0 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-support { margin: 22px 0 0; font-size: 14px; }

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(241, 235, 223, 0.78));
}

.eyebrow-soft {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel-title { margin: 10px 0 0; font-size: 32px; line-height: 1.02; letter-spacing: -0.05em; }
.hero-flow { display: grid; gap: 16px; margin-top: 26px; }

.flow-node,
.solution-card,
.capability-item,
.product-card,
.use-case-card,
.process-step,
.why-grid article,
.proof-strip,
.final-cta-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.62);
}

.flow-node { display: grid; gap: 8px; padding: 18px 20px; }

.flow-step,
.solution-index,
.process-step span {
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-node strong,
.solution-card h3,
.capability-item h3,
.product-card h3,
.use-case-card h3,
.process-step h3,
.why-grid h3 {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.flow-node span:last-child,
.deliverable-list li,
.quiet-list li {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.proof-strip div {
  padding: 18px 20px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child { border-right: 0; }

.section-heading { display: grid; gap: 10px; margin-bottom: 24px; }
.section-heading h2 { max-width: 12ch; font-size: clamp(38px, 5vw, 58px); }

.two-column-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.quiet-list,
.deliverable-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.quiet-list li,
.deliverable-list li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.solution-grid,
.capability-grid,
.use-case-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.solution-card,
.capability-item,
.use-case-card,
.why-grid article { padding: 22px; }

.solution-card h3,
.capability-item h3,
.product-card h3,
.use-case-card h3,
.why-grid h3 { margin: 10px 0 12px; }

.solution-card p,
.capability-item p,
.use-case-card p,
.why-grid p,
.product-card p {
  margin: 0 0 18px;
  font-size: 15px;
}

.capability-section .section-heading h2,
.why-section .section-heading h2,
.process-section .section-heading h2 { max-width: 14ch; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  transition: border-color 160ms ease, transform 180ms ease, background 160ms ease;
}

.product-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-tag,
.product-link {
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-step { padding: 24px; }
.process-step h3 { margin: 18px 0 10px; }
.process-support { margin: 18px 0 0; color: var(--text-soft); font-size: 15px; }

.final-cta-shell {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(241, 235, 223, 0.92));
}

.final-cta h2 { max-width: 14ch; font-size: clamp(34px, 5vw, 56px); }

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 30px;
  padding: 26px 0 12px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-heading {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-links a:hover { color: var(--text); }

@media (max-width: 1080px) {
  .site-header,
  .hero,
  .two-column-copy,
  .final-cta-shell,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .solution-grid,
  .capability-grid,
  .product-grid,
  .use-case-grid,
  .why-grid,
  .process-grid,
  .footer-links,
  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 { max-width: 12ch; }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header-frame { padding: 8px 0 12px; }
  body.is-scrolled .site-header-frame { padding: 8px 0 12px; }
  body.is-nav-hidden .site-header-frame { transform: none; }
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 10px;
    padding: 12px 14px;
    border-radius: 24px;
  }
  body.is-scrolled .site-header {
    padding: 12px 14px;
  }

  .site-header,
  .hero,
  .hero-panel,
  .solution-card,
  .capability-item,
  .product-card,
  .use-case-card,
  .process-step,
  .why-grid article,
  .final-cta-shell {
    padding: 22px;
  }

  .site-nav,
  .proof-strip,
  .solution-grid,
  .capability-grid,
  .product-grid,
  .use-case-grid,
  .why-grid,
  .process-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a {
    white-space: nowrap;
    font-size: 12px;
  }
  .brand-lockup { min-width: 0; }
  body.is-scrolled .brand-lockup { gap: 14px; }
  .brand-mark,
  body.is-scrolled .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
  .brand-tag,
  body.is-scrolled .brand-tag {
    opacity: 1;
    transform: none;
    max-height: none;
    overflow: visible;
    font-size: 10px;
  }
  .hero-actions { width: 100%; }
  .primary-button { width: 100%; }
  .nav-cta,
  body.is-scrolled .nav-cta {
    grid-column: 2 / 3;
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .secondary-link { padding-left: 4px; }

  .section-heading h2,
  .hero h1,
  .final-cta h2 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-block[id] { scroll-margin-top: 96px; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
