:root {
  color-scheme: light;
  --bg: #f5efe8;
  --bg-strong: #efe4d7;
  --surface: rgba(255, 253, 249, 0.86);
  --surface-strong: #fffdfa;
  --surface-accent: #eef3ff;
  --ink: #1f2940;
  --ink-soft: rgba(31, 41, 64, 0.72);
  --line: rgba(36, 49, 77, 0.1);
  --line-strong: rgba(36, 49, 77, 0.2);
  --blue: #376bff;
  --teal: #0d7c66;
  --orange: #ff6b3d;
  --gold: #f0b86f;
  --shadow-soft: 0 18px 50px rgba(31, 41, 64, 0.1);
  --shadow-strong: 0 24px 70px rgba(31, 41, 64, 0.12);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 61, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(55, 107, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #faf6f0 0%, var(--bg) 32%, #f3eee7 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0%, transparent 34%, transparent 66%, rgba(255, 255, 255, 0.18) 100%);
  mix-blend-mode: screen;
  opacity: 0.45;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 41, 64, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 64, 0.03) 1px, transparent 1px);
  background-size: 112px 112px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 90%);
  z-index: -1;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 18px 0 0;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.76);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
}

.site-nav.is-scrolled .nav-shell {
  background: rgba(255, 252, 247, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-mark strong {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-mark span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.nav-panel {
  min-width: 0;
}

.nav-surface {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.nav-links a {
  position: relative;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
}

.menu-toggle,
.menu-scrim {
  display: none;
}

.menu-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  width: 56px;
  height: 56px;
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.menu-icon {
  width: 24px;
  display: grid;
  gap: 5px;
}

.menu-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--blue));
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(55, 107, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--line);
  color: var(--ink);
}

.btn-link {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--blue);
  font-size: 0.92rem;
  box-shadow: none;
}

.hero-home,
.page-hero,
.split-layout,
.contact-layout,
.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.hero-home {
  padding: 34px 0 18px;
}

.hero-copy,
.hero-board,
.panel,
.visual-card,
.metric-card,
.element-card,
.service-card,
.timeline-card,
.quote-strip,
.contact-card,
.footer-card,
.summary-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: 40px;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
}

.hero-copy h1,
.page-copy h1,
.section-head h2,
.panel h3,
.footer-card h2,
.contact-card h2 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  letter-spacing: -0.06em;
  line-height: 0.94;
  color: var(--ink);
}

.hero-copy h1,
.page-copy h1 {
  font-size: clamp(3.2rem, 6vw, 6.4rem);
}

.section-head h2,
.contact-card h2,
.footer-card h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.hero-copy p,
.page-copy p,
.section-head p,
.panel p,
.service-card p,
.metric-card p,
.element-card p,
.summary-card p,
.contact-card p,
.footer-note,
.quote-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.78;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-board {
  padding: 26px;
  border-radius: calc(var(--radius-xl) + 10px) 24px 24px 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.66)),
    linear-gradient(135deg, rgba(240, 184, 111, 0.22), rgba(55, 107, 255, 0.14));
  display: grid;
  gap: 18px;
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 28px 52px 24px 24px;
}

.hero-image img,
.visual-card img,
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-board-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.hero-board-header strong {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.hero-board-header span,
.mini-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 124, 102, 0.12);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.framework-list {
  display: grid;
  gap: 12px;
}

.framework-link {
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(36, 49, 77, 0.08);
}

.framework-link strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.16rem;
  letter-spacing: -0.04em;
}

.framework-link span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.framework-link em {
  font-style: normal;
  color: var(--blue);
  font-weight: 800;
}

.section {
  padding: 22px 0;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.split-layout,
.contact-layout,
.bio-layout {
  gap: 24px;
}

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.panel-strong {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 244, 255, 0.9));
}

.visual-card {
  overflow: hidden;
  min-height: 100%;
  border-radius: 36px 22px 36px 22px;
  background: var(--surface-strong);
}

.image-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.84);
  box-shadow: 0 16px 32px rgba(31, 41, 64, 0.12);
}

.image-note strong {
  display: block;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.metric-grid,
.element-grid,
.service-grid,
.story-grid,
.summary-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.element-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-grid,
.story-grid,
.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.element-card,
.service-card,
.summary-card,
.timeline-card {
  padding: 22px;
  border-radius: var(--radius-md);
}

.metric-card strong,
.summary-card strong {
  display: block;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.metric-card span,
.pill-group span,
.timeline-copy span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.element-card {
  display: grid;
  gap: 12px;
}

.element-card strong,
.service-card h3,
.panel h3,
.timeline-card strong,
.portrait-copy h3 {
  display: block;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.32rem;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.element-card em,
.panel-label,
.timeline-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(55, 107, 255, 0.1);
  color: var(--blue);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill-cloud,
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(36, 49, 77, 0.08);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.list-clean,
.check-list,
.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list-clean li,
.check-list li,
.steps-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.list-clean li::before,
.check-list li::before,
.steps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--orange), var(--blue));
}

.steps-list li {
  padding-left: 54px;
  min-height: 38px;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  top: 0.1em;
  transform: none;
}

.steps-list {
  counter-reset: step;
}

.quote-strip {
  padding: 26px 30px;
  border-radius: 28px 28px 50px 28px;
  display: grid;
  gap: 10px;
}

.quote-strip strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-copy strong {
  font-size: 1.06rem;
}

.portrait-card {
  overflow: hidden;
  border-radius: 28px 50px 28px 18px;
  min-height: 100%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
}

.portrait-copy {
  padding: 26px;
}

.contact-card {
  padding: 30px;
  border-radius: 34px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(36, 49, 77, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.contact-form textarea {
  min-height: 180px;
  padding: 16px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(55, 107, 255, 0.18);
  border-color: rgba(55, 107, 255, 0.42);
}

.form-note {
  min-height: 1.3em;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.form-note[data-state="success"] {
  color: var(--teal);
}

.form-note[data-state="error"] {
  color: #c2552f;
}

.form-note[data-state="pending"] {
  color: var(--blue);
}

.footer {
  padding: 20px 0 36px;
}

.footer-card {
  padding: 26px 28px;
  border-radius: 28px;
  text-align: center;
}

.dev-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  width: min(1180px, calc(100% - 28px));
}

.dev-banner-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(36, 49, 77, 0.08);
  box-shadow: 0 18px 44px rgba(31, 41, 64, 0.18);
}

.dev-banner-brand img {
  height: 26px;
  width: auto;
}

.dev-banner-text {
  justify-self: center;
  color: #59697a;
  font-size: 0.92rem;
}

.dev-banner-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.has-dev-banner .site-nav {
  top: 92px;
}

.footer-note {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .element-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-home,
  .page-hero,
  .split-layout,
  .contact-layout,
  .bio-layout,
  .two-up,
  .service-grid,
  .story-grid,
  .summary-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .visual-card,
  .portrait-card {
    min-height: 340px;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 24px, 1240px);
  }

  .site-nav {
    padding-top: 14px;
    overflow: visible;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px;
    border-radius: 28px;
    overflow: visible;
  }

  .brand-mark span {
    display: none;
  }

  .nav-panel {
    position: fixed;
    inset: 92px 12px auto;
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-panel[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-surface {
    width: 100%;
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 30px;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-strong);
    max-height: calc(100vh - 110px);
    overflow: auto;
  }

  .nav-links,
  .nav-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-links a,
  .nav-cta .btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(36, 49, 77, 0.08);
    white-space: normal;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu-scrim {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(31, 41, 64, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 94;
  }

  .menu-scrim.is-visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .dev-banner {
    width: calc(100% - 24px);
  }

  .dev-banner-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 28px;
  }

  .dev-banner-brand {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .dev-banner-text {
    justify-self: start;
    font-size: 0.84rem;
  }

  .has-dev-banner .site-nav {
    top: 110px;
  }

  .hero-copy,
  .hero-board,
  .panel,
  .contact-card,
  .footer-card {
    padding: 24px;
  }

  .element-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-copy h1,
  .page-copy h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .section-head h2,
  .contact-card h2,
  .footer-card h2,
  .quote-strip strong {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .metric-grid,
  .element-grid {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .visual-card,
  .portrait-card {
    min-height: 280px;
  }
}
