@import url("https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600;700&display=swap");

:root {
  --canvas: oklch(98% 0 0);
  --canvas-dark: oklch(93% 0 0);
  --ink: oklch(18% 0.035 275);
  --ink-soft: oklch(40% 0.026 275);
  --line: oklch(80% 0.01 275);
  --signal: oklch(65% 0.22 35);
  --signal-dark: oklch(48% 0.18 30);
  --blue: oklch(61% 0.2 252);
  --blue-light: oklch(88% 0.07 246);
  --acid: oklch(88% 0.18 111);
  --danger: oklch(60% 0.2 25);
  --success: oklch(78% 0.15 145);
  --font: "Spline Sans", "Helvetica Neue", Arial, sans-serif;
  --shell: min(100% - 2rem, 88rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 20;
  --z-skip: 30;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.section-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.7rem 0.9rem;
  color: var(--canvas);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(1rem, calc((100% - 88rem) / 2));
  border-bottom: 2px solid var(--ink);
  background: var(--signal);
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.wordmark span { margin-left: 0.12em; color: var(--canvas); }

.menu-button {
  display: inline-flex;
  min-width: 4.5rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.menu-mark, .menu-mark::after {
  display: block;
  width: 0.9rem;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms var(--ease-out);
}
.menu-mark::after { transform: translateY(0.3rem); }
.menu-button[aria-expanded="true"] .menu-mark { transform: translateY(0.15rem) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-mark::after { transform: rotate(-90deg); }

.site-nav {
  position: absolute;
  top: 4.75rem;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  padding: 0.75rem 1rem 1rem;
  border-bottom: 2px solid var(--ink);
  background: var(--signal);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  border-bottom: 1px solid oklch(35% 0.1 30 / 35%);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav .nav-cta { justify-content: space-between; border-bottom: 0; }

.hero {
  min-height: calc(100svh - 4.75rem);
  padding: clamp(3.5rem, 8vw, 7rem) 0 0;
  border-bottom: 2px solid var(--ink);
  background: var(--signal);
}
.hero-main { display: grid; }
.hero-label, .section-name, .service-title > p {
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.hero-label span { padding-inline: 0.35rem; color: var(--canvas); }
h1 {
  max-width: 13ch;
  margin-bottom: clamp(2.5rem, 7vw, 5rem);
  font-size: clamp(3.1rem, 8.2vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 0.93;
}
h1 span { display: block; animation: rise-in 700ms var(--ease-out) both; }
h1 span:nth-child(2) { color: var(--canvas); animation-delay: 70ms; }
.hero-bottom { display: grid; gap: 2rem; align-items: end; padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-intro { max-width: 43rem; margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem 1.5rem; align-items: center; }

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0); }
.button-dark { color: var(--canvas); background: var(--ink); }
.button-dark:hover { color: var(--ink); background: var(--acid); }
.text-link, .email-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-underline-offset: 0.3em;
}
.text-link span, .email-link span { transition: transform 180ms var(--ease-out); }
.text-link:hover span { transform: translateY(0.2rem); }
.email-link:hover span { transform: translate(0.2rem, -0.2rem); }

.workbench {
  position: relative;
  padding: 0 0 clamp(1.5rem, 4vw, 3rem);
}
.workbench-window {
  overflow: hidden;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--canvas);
  transform: translateY(1.5rem);
  animation: settle-in 800ms 180ms var(--ease-out) both;
}
.window-bar { display: flex; min-height: 2.75rem; align-items: center; gap: 0.4rem; padding-inline: 0.75rem; border-bottom: 2px solid var(--ink); background: var(--blue-light); }
.window-bar > span { width: 0.65rem; height: 0.65rem; border: 1.5px solid var(--ink); border-radius: 50%; }
.window-bar p { margin: 0 0 0 auto; font-size: 0.72rem; font-weight: 600; }
.window-grid { display: grid; }
.window-question { min-height: 14rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--canvas); }
.window-question p { margin-bottom: 3rem; font-size: 0.8rem; font-weight: 600; }
.window-question strong { display: block; max-width: 9ch; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 0.95; letter-spacing: -0.035em; }
.window-output { display: grid; align-content: center; padding: 1.5rem; border-top: 2px solid var(--ink); background: var(--blue); }
.window-output span { padding-block: 0.7rem; border-bottom: 1px solid var(--ink); font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 600; }
.window-output span:last-child { border-bottom: 0; }
.window-stamp { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); background: var(--acid); }
.window-stamp span { padding: 1rem 0.6rem; border-right: 1px solid var(--ink); font-size: 0.72rem; font-weight: 700; text-align: center; }
.window-stamp span:last-child { border-right: 0; }
.workbench-caption { margin: 2.3rem 0 0; font-size: 0.85rem; font-weight: 600; }

.section-lead { display: grid; gap: 1.5rem; padding: clamp(6rem, 12vw, 10rem) 0 clamp(3rem, 7vw, 5rem); }
.section-lead h2, .approach-header h2, .about-heading h2, .inquiry-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 0.96;
}
.section-lead > p:last-child, .approach-header > p:last-child { max-width: 39rem; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }

.service-list { border-top: 2px solid var(--ink); }
.service { display: grid; gap: 2rem; padding: clamp(2.5rem, 6vw, 5rem) 0; border-bottom: 2px solid var(--ink); transition: background-color 220ms var(--ease-out); }
.service-title > p { margin-bottom: 1rem; }
.service h3 { margin-bottom: 0; font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.88; }
.service-summary { max-width: 41rem; margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.service ul { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.service li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.service li::before { margin-right: 0.65rem; content: "→"; }

.approach-section { margin-top: clamp(6rem, 12vw, 10rem); padding: clamp(5rem, 10vw, 8rem) 0; color: var(--canvas); background: var(--ink); }
.approach-header { display: grid; gap: 1.5rem; }
.approach-header .section-name { color: var(--acid); }
.approach-header > p:last-child { color: oklch(82% 0.02 275); }
.process-list { margin-top: clamp(4rem, 8vw, 7rem); padding: 0; border-top: 2px solid var(--canvas); list-style: none; }
.process-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid oklch(45% 0.025 275); }
.process-number { color: var(--acid); font-size: 1.1rem; font-weight: 700; }
.process-list h3 { margin-bottom: 0.6rem; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.process-list p { max-width: 46rem; margin-bottom: 0; color: oklch(82% 0.02 275); }
.process-output { grid-column: 2; color: var(--acid) !important; font-size: 0.78rem; font-weight: 600; }

.about-section { padding: clamp(6rem, 12vw, 10rem) 0 0; background: var(--blue); }
.about-grid { display: grid; gap: 3rem; padding-bottom: clamp(5rem, 10vw, 8rem); }
.about-heading .section-name { margin-bottom: 2rem; }
.about-copy { align-self: end; }
.about-copy p { max-width: 42rem; margin-bottom: 1.4rem; }
.about-copy .about-intro { font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.35; }
.commitment-strip { display: grid; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--canvas); }
.commitment-strip p { display: flex; min-height: 4.75rem; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 1rem max(1rem, calc((100% - 88rem) / 2)); border-bottom: 1px solid var(--line); }
.commitment-strip p:last-child { border-bottom: 0; }
.commitment-strip span { font-weight: 700; }

.inquiry-section { padding: clamp(6rem, 12vw, 10rem) 0; color: var(--canvas); background: var(--ink); }
.inquiry-grid { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.inquiry-copy .section-name { color: var(--signal); }
.inquiry-copy > p { max-width: 35rem; color: oklch(82% 0.02 275); }
.email-link { margin-top: 1rem; color: var(--acid); }
.inquiry-form { display: grid; gap: 1.4rem; }
.form-row { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.78rem; font-weight: 700; }
.field label span { color: oklch(70% 0.02 275); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 2px solid oklch(58% 0.03 275);
  border-radius: 0;
  color: var(--canvas);
  background: transparent;
}
.field textarea { resize: vertical; }
.field select { color-scheme: dark; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--acid); outline: 0; }
.field textarea::placeholder { color: oklch(71% 0.02 275); opacity: 1; }
.field-honeypot { position: absolute; left: -10000px; }
.turnstile-shell { min-height: 4.1rem; }
.turnstile-note { margin: 0.4rem 0 0; color: oklch(75% 0.02 275); font-size: 0.78rem; }
.form-footer { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; margin-top: 1rem; }
.form-note { max-width: 24rem; margin: 0; color: oklch(75% 0.02 275); font-size: 0.8rem; }
.button-signal { color: var(--ink); border-color: var(--signal); background: var(--signal); }
.button-signal:hover { border-color: var(--acid); background: var(--acid); }
.button[disabled] { cursor: wait; opacity: 0.65; transform: none; }
.form-status { min-height: 1.6rem; margin: 0; font-size: 0.9rem; }
.form-status.is-error { color: oklch(82% 0.12 25); }
.form-status.is-success { color: var(--success); }

.site-footer { display: grid; gap: 2rem; padding-block: 4rem max(4rem, env(safe-area-inset-bottom)); }
.site-footer .wordmark span { color: var(--signal); }
.site-footer p { margin: 0; color: var(--ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { min-height: 2.75rem; align-content: center; text-underline-offset: 0.3em; }
.copyright { font-size: 0.75rem; font-weight: 600; }

.legal { max-width: 48rem; padding-block: 5rem; }
.legal h1 { max-width: none; font-size: clamp(3rem, 8vw, 6rem); }
.legal h2 { margin-top: 3rem; font-size: 1.6rem; letter-spacing: -0.025em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal-updated { font-size: 0.82rem; font-weight: 700; }
.legal-nav { display: flex; min-height: 4.75rem; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); }

:focus-visible {
  outline: 3px solid var(--canvas);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

@keyframes rise-in {
  from { opacity: 0.45; transform: translateY(1.2rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes settle-in {
  from { opacity: 0.6; transform: translateY(3rem) rotate(0.4deg); }
  to { opacity: 1; transform: translateY(1.5rem) rotate(0); }
}

@media (min-width: 48rem) {
  :root { --shell: min(100% - 4rem, 88rem); }
  h1 { max-width: none; }
  h1 span { white-space: nowrap; }
  .menu-button { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; gap: 2rem; align-items: center; padding: 0; border: 0; background: transparent; }
  .site-nav a { min-height: 2.75rem; border: 0; font-size: 0.86rem; }
  .site-nav .nav-cta { padding-left: 1.5rem; border-left: 2px solid var(--ink); }
  .hero-bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-actions { justify-content: flex-end; }
  .window-grid { grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr); }
  .window-output { border-top: 0; border-left: 2px solid var(--ink); }
  .window-stamp { grid-column: 1 / -1; }
  .section-lead { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.55fr); }
  .section-lead .section-name { grid-column: 1 / -1; }
  .section-lead > p:last-child { align-self: end; }
  .service { grid-template-columns: minmax(18rem, 0.65fr) minmax(20rem, 0.75fr) minmax(18rem, 0.6fr); align-items: start; }
  .service-web:hover { background: var(--blue-light); }
  .service-software:hover { background: oklch(94% 0.045 110); }
  .approach-header { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.55fr); }
  .approach-header .section-name { grid-column: 1 / -1; }
  .approach-header > p:last-child { align-self: end; }
  .process-list li { grid-template-columns: 4rem minmax(0, 1fr) minmax(13rem, 0.4fr); gap: 2rem; align-items: start; }
  .process-output { grid-column: auto; justify-self: end; text-align: right; }
  .about-grid { grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.75fr); }
  .commitment-strip { grid-template-columns: repeat(4, 1fr); padding-inline: max(2rem, calc((100% - 88rem) / 2)); }
  .commitment-strip p { display: block; min-height: 8rem; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 0; }
  .commitment-strip p:first-child { border-left: 1px solid var(--line); }
  .commitment-strip span { display: block; margin-bottom: 1.5rem; }
  .inquiry-grid { grid-template-columns: minmax(0, 0.75fr) minmax(28rem, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr auto; align-items: start; }
  .copyright { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
