/* ==========================================================================
   Arquite design system
   One typeface (Geist), Geist Mono for numeric and label data only.
   All sizes resolve to the Tailwind type scale.
   All spacing resolves to the spacing token table.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Spacing */
  --s-0: 0;
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* Type scale */
  --text-xs: 12px;
  --lh-xs: 16px;
  --text-sm: 14px;
  --lh-sm: 20px;
  --text-base: 16px;
  --lh-base: 24px;
  --text-lg: 18px;
  --lh-lg: 28px;
  --text-xl: 20px;
  --lh-xl: 28px;
  --text-2xl: 24px;
  --lh-2xl: 32px;
  --text-3xl: 30px;
  --lh-3xl: 36px;
  --text-4xl: 36px;
  --lh-4xl: 40px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-7xl: 72px;

  /* Radius */
  --r-sm: 2px;
  --r: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 700ms;
  --dur-slow: 900ms;

  /* Light theme, warm paper */
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-sunken: #f4f0e9;
  --ink: #14120f;
  --ink-soft: #3d3833;
  --muted: #6d665e;
  --rule: #e5ded2;
  --rule-strong: #d3c9b9;
  --brand: #a85d34;
  --brand-ink: #8f4c27;
  --brand-wash: #f6ece2;
  --focus: #a85d34;

  /* Hero heading gradient, light theme */
  --hero-from: #000000;
  --hero-to: #666666;

  --shadow-card: 0 1px 2px rgba(20, 18, 15, 0.04);
  --shadow-lift: 0 12px 32px -12px rgba(20, 18, 15, 0.16);
  --shadow-modal: 0 32px 64px -16px rgba(20, 18, 15, 0.28);
  --glass: rgba(250, 248, 244, 0.72);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131209;
    --surface: #1f1f1f;
    --surface-sunken: #181818;
    --ink: #f4f1ec;
    --ink-soft: #d8d2c9;
    --muted: #9b948a;
    --rule: #313131;
    --rule-strong: #3d3d3d;
    --brand: #d89460;
    --brand-ink: #e5b181;
    --brand-wash: #272727;
    --focus: #d89460;
    --hero-from: #ffffff;
    --hero-to: #9b9b9b;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-modal: 0 32px 64px -16px rgba(0, 0, 0, 0.7);
    --glass: rgba(19, 18, 9, 0.72);
  }
}

:root[data-theme="dark"] {
  --bg: #131209;
  --surface: #1f1f1f;
  --surface-sunken: #181818;
  --ink: #f4f1ec;
  --ink-soft: #d8d2c9;
  --muted: #9b948a;
  --rule: #313131;
  --rule-strong: #3d3d3d;
  --brand: #d89460;
  --brand-ink: #e5b181;
  --brand-wash: #272727;
  --focus: #d89460;
  --hero-from: #ffffff;
  --hero-to: #9b9b9b;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 32px 64px -16px rgba(0, 0, 0, 0.7);
  --glass: rgba(19, 18, 9, 0.72);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

body {
  font-family: "Geist", system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: var(--lh-base);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--brand);
  color: #ffffff;
}

/* Skip to content */
.skip-link {
  position: absolute;
  left: var(--s-200);
  top: var(--s-200);
  z-index: 2000;
  padding: var(--s-100) var(--s-300);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. Typography primitives
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--s-100);
}
.eyebrow::before {
  content: "";
  width: var(--s-300);
  height: 1px;
  background: var(--rule-strong);
  flex: none;
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--s-600);
}
.section-head h2 {
  font-size: var(--text-4xl);
  line-height: var(--lh-4xl);
  margin-top: var(--s-200);
}
.section-head p {
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  margin-top: var(--s-200);
}

.lede {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--s-300);
}

.section {
  padding-block: var(--s-900);
  border-top: 1px solid var(--rule);
  scroll-margin-top: var(--s-800);
}
.section--flush {
  border-top: 0;
}

@media (max-width: 800px) {
  .section {
    padding-block: var(--s-700);
  }
}

/* --------------------------------------------------------------------------
   5. Island navigation
   -------------------------------------------------------------------------- */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 960; /* above the menu overlay so the morphed X stays clickable */
  padding-top: var(--s-300);
  padding-inline: var(--s-300);
  pointer-events: none;
}

.island {
  pointer-events: auto;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300);
  border-radius: var(--r-full);
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
  transition: box-shadow var(--dur) var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  text-decoration: none;
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  font-weight: 600;
  letter-spacing: -0.03em;
  flex: none;
}
.brand svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex: none;
}

.island-links {
  display: flex;
  align-items: center;
  gap: var(--s-50);
}
.island-links a {
  position: relative;
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
  color: var(--muted);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.island-links a:hover {
  color: var(--ink);
  background: var(--brand-wash);
}
.island-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.island-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: var(--s-25);
  width: var(--s-50);
  height: var(--s-50);
  border-radius: var(--r-full);
  background: var(--brand);
  transform: translateX(-50%);
}

.island .btn {
  flex: none;
}

/* Hamburger, morphs to a true X */
.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--brand-wash);
  cursor: pointer;
  flex: none;
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.burger:active {
  transform: scale(0.96);
}
.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  border-radius: var(--r-full);
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}
.burger span:nth-child(1) {
  transform: translate(-50%, -5px);
}
.burger span:nth-child(2) {
  transform: translate(-50%, 3.5px);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Full screen menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--glass);
  backdrop-filter: blur(64px) saturate(180%);
  -webkit-backdrop-filter: blur(64px) saturate(180%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-900) var(--s-400) var(--s-600);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}
.menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
}
.menu a {
  display: block;
  text-decoration: none;
  font-size: var(--text-4xl);
  line-height: var(--lh-4xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding-block: var(--s-100);
  color: var(--ink);
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.menu[data-open="true"] a {
  opacity: 1;
  transform: translateY(0);
}
.menu a:nth-child(1) {
  transition-delay: 100ms;
}
.menu a:nth-child(2) {
  transition-delay: 150ms;
}
.menu a:nth-child(3) {
  transition-delay: 200ms;
}
.menu a:nth-child(4) {
  transition-delay: 250ms;
}
.menu a:nth-child(5) {
  transition-delay: 300ms;
}
.menu a:nth-child(6) {
  transition-delay: 350ms;
}
.menu a[aria-current="page"] {
  color: var(--brand);
}
.menu-foot {
  margin-top: var(--s-700);
  padding-top: var(--s-300);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-300);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--dur) var(--ease) 400ms;
}
.menu[data-open="true"] .menu-foot {
  opacity: 1;
}
.menu-foot a {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
  transform: none;
  opacity: 1;
  padding: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .island-links,
  .island > .btn {
    display: none;
  }
  .burger {
    display: block;
  }
  .island {
    width: 100%;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.btn i {
  font-size: var(--text-base);
}
.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--brand-ink);
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  background: var(--brand-wash);
  border-color: var(--brand);
}

.btn--sm {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-100);
  align-items: center;
}

/* Text link with underline that draws in */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  font-weight: 500;
  color: var(--brand-ink);
  text-decoration: none;
  padding-bottom: var(--s-25);
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur) var(--ease);
}
.link:hover {
  background-size: 100% 1px;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: var(--s-800);
  padding-bottom: var(--s-900);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-700);
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero h1 {
  max-width: 680px;
  font-size: var(--text-6xl);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-top: var(--s-300);
  background-image: linear-gradient(
    to right,
    var(--hero-from),
    var(--hero-to)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin-top: var(--s-300);
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  color: var(--muted);
}

.hero .btn-row {
  margin-top: var(--s-500);
}

.hero-proof {
  margin-top: var(--s-500);
  padding-top: var(--s-300);
  border-top: 1px solid var(--rule);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-100) var(--s-300);
}
.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--muted);
}
.hero-proof i {
  color: var(--brand);
  font-size: var(--text-base);
  flex: none;
}

.hero-art {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--r-2xl);
  background: var(--surface-sunken);
  padding: var(--s-75);
  /* 38 stages of drafting, so it runs a little over three seconds */
  --draw-dur: 1200ms;
  --draw-step: 62ms;
}

/* Once the sheet is drawn it settles, so the hero never sits fully static */
.hero-art.in svg {
  animation: axoSettle 9s ease-in-out 3.6s infinite;
}
@keyframes axoSettle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.hero-art .frame {
  border-radius: var(--r-lg); /* 16 minus 8 gap */
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.hero-art svg {
  width: 100%;
  height: auto;
  color: var(--ink);
}
/* Keep line weights legible at any rendered size. Without this the 0.7 unit
   detail lines fall to a quarter of a pixel on a phone and disappear. */
.draws svg .dr,
.draws svg .fade {
  vector-effect: non-scaling-stroke;
}

/* Any figure marked .draws drafts itself in, stroke by stroke, the way a
   sheet gets drawn. Paths carry pathLength="1" so one dash length covers
   any path regardless of its real length. Stagger comes from --i on a
   parent group, which inherits down to the paths. */
.draws svg .dr {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.draws svg .fl {
  fill-opacity: 0;
}
.draws svg .fade {
  opacity: 0;
}

.draws.in svg .dr {
  animation: axoDraw var(--draw-dur, 1100ms) var(--ease) forwards;
  animation-delay: calc(var(--draw-lead, 260ms) + var(--i, 0) * var(--draw-step, 68ms));
}
.draws.in svg .dr.fl {
  animation:
    axoDraw var(--draw-dur, 1100ms) var(--ease) forwards,
    axoFill 900ms var(--ease) forwards;
  animation-delay: calc(var(--draw-lead, 260ms) + var(--i, 0) * var(--draw-step, 68ms));
}
.draws.in svg .fade {
  animation: axoFade 800ms var(--ease) forwards;
  animation-delay: calc(var(--draw-lead, 260ms) + var(--i, 0) * var(--draw-step, 68ms));
}

/* The tiles are smaller and sit three across, so they draw a little quicker */
.work-tile.draws {
  --draw-dur: 850ms;
  --draw-lead: 160ms;
  --draw-step: 80ms;
}

@keyframes axoDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes axoFill {
  to {
    fill-opacity: 1;
  }
}
@keyframes axoFade {
  to {
    opacity: var(--o, 1);
  }
}

/* Weighted tilt toward the pointer, set by app.js */
.hero-art .frame {
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
  transition: transform var(--dur) var(--ease);
  will-change: transform;
}

.hero-art figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-100) var(--s-100) var(--s-50);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-600);
  }
  .hero h1 {
    font-size: var(--text-5xl);
  }
}
@media (max-width: 640px) {
  .hero {
    padding-top: var(--s-600);
    padding-bottom: var(--s-700);
  }
  .hero h1 {
    font-size: var(--text-4xl);
    line-height: var(--lh-4xl);
  }
}

/* --------------------------------------------------------------------------
   8. Marquee credential strip
   -------------------------------------------------------------------------- */
.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s-300);
  overflow: hidden;
}
.strip-track {
  display: flex;
  gap: var(--s-700);
  width: max-content;
  animation: slide 40s linear infinite;
}
.strip:hover .strip-track {
  animation-play-state: paused;
}
@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.strip-track span {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.strip-track i {
  color: var(--brand);
  font-size: var(--text-base);
}

/* --------------------------------------------------------------------------
   9. Cards and grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--s-300);
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-2xl);
  padding: var(--s-300);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--rule-strong);
}
.card h3 {
  font-size: var(--text-xl);
  line-height: var(--lh-xl);
  margin-top: var(--s-200);
}
.card p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  margin-top: var(--s-75);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg); /* 16 outer minus 24 pad is below 2, keep own */
  background: var(--brand-wash);
  color: var(--brand-ink);
  font-size: var(--text-xl);
}

.card-list {
  list-style: none;
  margin-top: var(--s-200);
  padding-top: var(--s-200);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
}
.card-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-75);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--ink-soft);
}
.card-list i {
  color: var(--brand);
  font-size: var(--text-base);
  flex: none;
  margin-top: var(--s-25);
}

/* Numbered process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--s-300);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.step {
  counter-increment: step;
  padding-top: var(--s-300);
  border-top: 1px solid var(--rule-strong);
}
.step::before {
  content: "0" counter(step);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.12em;
  color: var(--brand);
}
.step h3 {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  margin-top: var(--s-100);
}
.step p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  margin-top: var(--s-75);
}

/* Work / drawing tiles */
.work-tile {
  border: 1px solid var(--rule);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.work-tile:hover {
  border-color: var(--rule-strong);
  transform: translateY(-4px);
}
.work-tile .plate {
  background: var(--surface-sunken);
  padding: var(--s-300);
  border-bottom: 1px solid var(--rule);
}
.work-tile svg {
  width: 100%;
  height: auto;
  color: var(--ink-soft);
}
.work-tile .meta {
  padding: var(--s-200) var(--s-300) var(--s-300);
}
.work-tile .meta h3 {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
}
.work-tile .meta p {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s-50);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-300);
}
@media (max-width: 800px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.stat {
  padding-top: var(--s-300);
  border-top: 1px solid var(--rule-strong);
}
.stat .n {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--text-4xl);
  line-height: var(--lh-4xl);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.stat .l {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--muted);
  margin-top: var(--s-50);
}

/* Testimonials */
.quote {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-2xl);
  padding: var(--s-300);
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
}
.quote blockquote {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  margin-top: auto;
  padding-top: var(--s-200);
  border-top: 1px solid var(--rule);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  flex: none;
}
.quote figcaption .who {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
}
.quote figcaption .where {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Tagline reveal, words activate one at a time
   -------------------------------------------------------------------------- */
.tagline {
  padding-block: var(--s-900);
  border-top: 1px solid var(--rule);
}
.tagline p {
  max-width: 680px;
  font-size: var(--text-5xl);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.tagline .w {
  color: var(--ink);
  opacity: 0.3;
  transition: opacity var(--dur-slow) var(--ease);
}
.tagline .w.on {
  opacity: 1;
}
@media (max-width: 800px) {
  .tagline p {
    font-size: var(--text-4xl);
    line-height: var(--lh-4xl);
  }
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--rule-strong);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding-block: var(--s-300);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-300);
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--brand-ink);
}
.faq summary i {
  font-size: var(--text-xl);
  color: var(--muted);
  flex: none;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary i {
  transform: rotate(45deg);
}
.faq .answer {
  padding-bottom: var(--s-300);
  max-width: 680px;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--lh-base);
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.band {
  background: var(--surface-sunken);
  border: 1px solid var(--rule);
  border-radius: var(--r-3xl);
  padding: var(--s-700) var(--s-500);
  text-align: center;
}
.band h2 {
  max-width: 680px;
  margin-inline: auto;
  font-size: var(--text-4xl);
  line-height: var(--lh-4xl);
}
.band p {
  max-width: 680px;
  margin: var(--s-200) auto 0;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
}
.band .btn-row {
  justify-content: center;
  margin-top: var(--s-400);
}
.band .assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-100) var(--s-300);
  margin-top: var(--s-300);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--muted);
}
.band .assurances span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
}
.band .assurances i {
  color: var(--brand);
}
@media (max-width: 640px) {
  .band {
    padding: var(--s-500) var(--s-300);
  }
  .band h2 {
    font-size: var(--text-3xl);
    line-height: var(--lh-3xl);
  }
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-700) var(--s-400);
  margin-top: var(--s-900);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-500);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.footer h4 {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: var(--s-200);
}
.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
}
.footer li,
.footer address {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--muted);
  font-style: normal;
}
.footer a {
  text-decoration: none;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.footer a:hover {
  color: var(--brand-ink);
}
.footer .contact-line {
  display: flex;
  align-items: flex-start;
  gap: var(--s-75);
}
.footer .contact-line i {
  color: var(--brand);
  font-size: var(--text-base);
  flex: none;
  margin-top: var(--s-25);
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--muted);
  margin-top: var(--s-200);
  max-width: 320px;
}
.footer-bottom {
  margin-top: var(--s-600);
  padding-top: var(--s-300);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-200);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--muted);
}
.footer-bottom .legal {
  display: flex;
  gap: var(--s-300);
}

/* --------------------------------------------------------------------------
   14. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(64px);
  filter: blur(12px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease),
    filter var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal[data-d="1"] {
  transition-delay: 100ms;
}
.reveal[data-d="2"] {
  transition-delay: 150ms;
}
.reveal[data-d="3"] {
  transition-delay: 200ms;
}
.reveal[data-d="4"] {
  transition-delay: 250ms;
}

/* --------------------------------------------------------------------------
   15. Forms and modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--s-300);
  background: rgba(20, 18, 15, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}
.modal[data-open="true"] {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-modal);
  padding: var(--s-400);
  transform: translateY(24px) scale(0.98);
  transition: transform var(--dur) var(--ease);
}
.modal[data-open="true"] .modal-card {
  transform: translateY(0) scale(1);
}
.modal-card h2 {
  font-size: var(--text-2xl);
  line-height: var(--lh-2xl);
}
.modal-card > p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  margin-top: var(--s-50);
}
.modal-close {
  position: absolute;
  top: var(--s-200);
  right: var(--s-200);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: var(--text-lg);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.modal-close:hover {
  background: var(--brand-wash);
  color: var(--ink);
}
.modal-close:active {
  transform: scale(0.94);
}

form {
  margin-top: var(--s-300);
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
}
.field label {
  display: block;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
  margin-bottom: var(--s-50);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: var(--s-100);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b3401f;
}
.field .err {
  display: none;
  margin-top: var(--s-50);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: #b3401f;
}
.field .err.on {
  display: block;
}
.field .hint {
  margin-top: var(--s-50);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--muted);
}

.consent {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-100);
  align-items: flex-start;
}
.consent .err {
  flex-basis: 100%;
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: var(--s-25);
  accent-color: var(--brand);
  flex: none;
}
.consent label {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--muted);
}
.consent a {
  color: var(--brand-ink);
}

.form-note {
  display: none;
  padding: var(--s-100);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  border: 1px solid;
}
.form-note.on {
  display: block;
}
.form-note--error {
  background: var(--brand-wash);
  border-color: #b3401f;
  color: #b3401f;
}
.form-note--ok {
  background: var(--brand-wash);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.modal-switch {
  margin-top: var(--s-300);
  padding-top: var(--s-200);
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--muted);
}
.modal-switch a {
  color: var(--brand-ink);
  font-weight: 500;
}

/* Footer client area */
.auth-who {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  color: var(--ink-soft);
  font-weight: 500;
}
.auth-who i {
  color: var(--brand);
  font-size: var(--text-base);
}

/* Loading state, skeleton shaped like the real layout */
.btn[data-loading="true"] {
  pointer-events: none;
  color: transparent;
  position: relative;
}
.btn[data-loading="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* Empty state */
.empty {
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-2xl);
  padding: var(--s-500);
  text-align: center;
  color: var(--muted);
}
.empty i {
  font-size: var(--text-4xl);
  color: var(--rule-strong);
}
.empty h3 {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  color: var(--ink);
  margin-top: var(--s-200);
}
.empty p {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  margin-top: var(--s-75);
}

/* --------------------------------------------------------------------------
   16. Utilities
   -------------------------------------------------------------------------- */
.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;
}
.prose {
  max-width: 680px;
}
.prose h2 {
  font-size: var(--text-2xl);
  line-height: var(--lh-2xl);
  margin-top: var(--s-500);
}
.prose h3 {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  margin-top: var(--s-400);
}
.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  margin-top: var(--s-200);
}
.prose ul,
.prose ol {
  padding-left: var(--s-300);
}
.prose a {
  color: var(--brand-ink);
}
