/* =========================================================
   Eagle Craft: styles
   Mobile-first. Components use tokens only (no raw hex below
   the token blocks).
   ========================================================= */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --border: #E2DCD0;
  --text: #0B1220;
  --text-2: #566074;
  --accent: #C2410C;
  --accent-hover: #9A3412;
  --on-accent: #FFFFFF;
  --danger: #B42318;
  --success: #1E7A46;
  --focus: var(--accent);
  --shadow: 0 1px 2px rgb(11 18 32 / 0.04), 0 6px 20px rgb(11 18 32 / 0.05);

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.4vw, 5rem);

  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --header-h: 4.5rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Dark tokens: applied by the toggle, or by the OS when nothing is chosen
   (this second rule also covers visitors with JavaScript off). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1220;
  --surface: #121A2B;
  --raised: #1A2438;
  --border: #243049;
  --text: #E9ECF2;
  --text-2: #9AA5B8;
  --accent: #F26A21;
  --accent-hover: #FF8240;
  --on-accent: #0B1220;
  --danger: #FF8A80;
  --success: #5FD39A;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0B1220;
    --surface: #121A2B;
    --raised: #1A2438;
    --border: #243049;
    --text: #E9ECF2;
    --text-2: #9AA5B8;
    --accent: #F26A21;
    --accent-hover: #FF8240;
    --on-accent: #0B1220;
    --danger: #FF8A80;
    --success: #5FD39A;
    --shadow: none;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
.hl { color: var(--accent); }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--on-accent); }

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.5rem; height: 1.5rem; flex: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head p { color: var(--text-2); font-size: var(--step-1); margin: 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1rem;
}
[id] { scroll-margin-top: var(--header-h); }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.btn .icon { width: 1.125rem; height: 1.125rem; transition: transform 160ms var(--ease-out); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--text-2); }
.btn-label { display: inline-block; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-right: auto;
  border-radius: 4px;
}
.logo {
  width: 9.5rem;
  height: auto;
  color: var(--text);   /* "EAGLE" + tagline */
  fill: var(--accent);  /* "CRAFT" */
}
.header-actions { display: flex; align-items: center; gap: 0.25rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.icon-btn .icon { width: 1.25rem; height: 1.25rem; grid-area: 1 / 1; }

/* Theme toggle shows the icon of the theme you would switch TO.
   Both icons share one grid cell and crossfade; page colours switch instantly. */
.theme-toggle .icon { transition: opacity 200ms ease, transform 200ms var(--ease-out), filter 200ms ease; }
.theme-toggle .i-sun,
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: scale(0.8); filter: blur(2px); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; filter: none; }

.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }

/* No JS: hide the controls that need it; nav stays visible */
.no-js .theme-toggle,
.no-js .menu-toggle { display: none; }

.site-nav { width: 100%; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  padding-bottom: 0.5rem;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* JS on, small screens: collapsible menu */
@media (max-width: 55.99rem) {
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
  /* Opens with a short fade; closes instantly (no exit transition) */
  @starting-style {
    .js .site-nav.is-open { opacity: 0; transform: translateY(-4px); }
  }
  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--border);
  }
  .js .site-nav a { padding-inline: 0.25rem; font-size: var(--step-1); }
}

@media (min-width: 56rem) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { width: auto; order: 0; }
  .site-nav ul { padding: 0; }
  .header-actions { order: 1; }
  .menu-toggle { display: none !important; }
  .logo { width: 10.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 3rem + 6vw, 8.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 14ch; margin-bottom: 1.5rem; }
.hero-sub {
  max-width: 36rem;
  font-size: var(--step-1);
  color: var(--text-2);
  margin-bottom: 2.25rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 29.99rem) {
  .cta-row .btn { flex: 1 1 100%; }
}
.hero-note {
  margin: 1.5rem 0 0;
  color: var(--text-2);
  font-size: var(--step--1);
}
.hero-motif {
  position: absolute;
  z-index: 0;
  right: -6rem;
  bottom: -2rem;
  width: min(44rem, 120vw);
  height: auto;
  color: var(--text-2);
  opacity: 0.35;
  pointer-events: none;
}
.hero-motif path { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 1; }
.hero-motif .accent-line { stroke: var(--accent); opacity: 1; stroke-width: 1.5; }
@media (min-width: 56rem) {
  .hero-motif { right: -2rem; bottom: -3rem; opacity: 0.5; }
}

.pillars {
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.pillars li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.5rem 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
}
.pillars .icon { color: var(--accent); }
@media (min-width: 48rem) {
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 48rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  box-shadow: var(--shadow);
}
.section--surface .card { background: var(--raised); }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--text-2); margin: 0; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.price-note {
  margin: 2rem 0 0;
  color: var(--text-2);
}
.price-note strong { color: var(--text); font-weight: 600; }

/* Why choose: quieter list-style tiles */
.why-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.why-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.why-list .icon { color: var(--accent); margin-top: 0.15rem; }
.why-list h3 { margin: 0; }
.why-list p { grid-column: 2; margin: 0; color: var(--text-2); }
@media (min-width: 48rem) {
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}
@media (min-width: 64rem) {
  .why-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Approach timeline ---------- */
.timeline { counter-reset: step; position: relative; }
.timeline li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.25rem 4rem;
}
.timeline li:last-child { padding-bottom: 0; }
/* vertical line (mobile) */
.timeline li::after {
  content: "";
  position: absolute;
  left: 1.3125rem;
  top: 2.75rem;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline li:last-child::after { display: none; }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
}
.timeline h3 { margin: 0.45rem 0 0.35rem; }
.timeline p { margin: 0; color: var(--text-2); }

@media (min-width: 64rem) {
  .timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .timeline li { padding: 4rem 0 0; }
  .timeline li::after {
    left: 3.5rem;
    right: -1.5rem;
    top: 1.375rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .timeline h3 { margin-top: 0; }
}

/* What we need from you */
.needs {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.needs h3 { margin-bottom: 1rem; }
.check-list { display: grid; gap: 0.75rem; }
.check-list li, .needs-time { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-list .icon, .needs-time .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--accent); }
.needs-time {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
}
@media (min-width: 48rem) {
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}

/* ---------- Team ---------- */
.team { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
.person {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 30rem) {
  .person { grid-template-columns: 2fr 3fr; }
}
.person-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--border);
}
.person-body { display: flex; flex-direction: column; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.person-body h3 { margin-bottom: 0.15rem; }
.person-role { color: var(--accent); font-family: var(--font-head); font-weight: 600; margin-bottom: 0.75rem; }
.person-body > p:not(.person-role) { color: var(--text-2); }
.person .tags { margin-top: 0.25rem; }
.person-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: 0.75rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq details p { margin: 0 0 1.25rem; color: var(--text-2); max-width: 40rem; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--accent); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
}
.contact-intro p { color: var(--text-2); font-size: var(--step-1); }
.contact-links { display: grid; gap: 0.5rem; margin-top: 2rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
.contact-link .icon { color: var(--accent); }
.contact-link span { display: grid; line-height: 1.35; }
.contact-link small { color: var(--text-2); font-size: var(--step--1); }
.contact-link strong { font-weight: 600; }
.service-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--text-2);
}
.service-area .icon { color: var(--text-2); }
.todo {
  outline: 2px dashed var(--danger);
  outline-offset: 2px;
}

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow);
}
/* Turnstile needs at least 300px; give it room on the narrowest phones */
@media (max-width: 23.99rem) {
  .form-card { padding-inline: 0.75rem; }
}
.form-card h3 { font-size: var(--step-2); }
.form-note { color: var(--text-2); font-size: var(--step--1); }
.no-js .contact-form { display: none; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.field .optional { font-weight: 400; color: var(--text-2); }
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--text-2);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin: 0.375rem 0 0;
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: 500;
}
.field-error .icon, .error-summary .icon, .form-status .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; }
.field-error[hidden] { display: none; }

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.error-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--danger);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.error-summary h4 {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  color: var(--danger);
  letter-spacing: 0;
}
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--text); }
.error-summary:focus-visible { outline-offset: 2px; }

.turnstile-wrap { min-height: 4.125rem; margin-bottom: 1.25rem; }

.form-status:empty { margin: 0; padding: 0; border: 0; }
.form-status {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg);
}
.form-status p { margin: 0; }
.form-status--success { border-color: var(--success); }
.form-status--success .icon { color: var(--success); }
.form-status--error { border-color: var(--danger); }
.form-status--error .icon { color: var(--danger); }
.form-status ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }

.noscript-box {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.noscript-box ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }

/* ---------- Portfolio ---------- */
.page-intro { padding-block: clamp(4rem, 3rem + 5vw, 7rem) clamp(3rem, 2rem + 3vw, 4.5rem); }
.page-intro h1 { max-width: 16ch; }
.page-intro .lead { max-width: 42rem; font-size: var(--step-1); color: var(--text-2); }
.page-intro .lead strong { color: var(--text); font-weight: 600; }

.background-strip { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.background-strip h2 { font-size: var(--step-2); }
.facts { display: grid; gap: 1rem; }
.facts li { padding-left: 1rem; border-left: 2px solid var(--accent); }
.facts strong { display: block; font-family: var(--font-head); font-size: var(--step-1); line-height: 1.3; }
.facts span { color: var(--text-2); }
@media (min-width: 48rem) {
  .facts { grid-template-columns: 1fr 1fr 2fr; gap: 2rem; }
}

.work-list { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) {
  .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
.work-card { display: flex; flex-direction: column; }
.work-card h3 { font-size: var(--step-2); margin-bottom: 0.25rem; }
.work-client { color: var(--text-2); font-weight: 500; margin: 0 0 1rem; }
.work-card .summary { color: var(--text); margin-bottom: 1.25rem; }
.meta { display: grid; gap: 0.25rem; margin: 0 0 1.25rem; font-size: 0.9375rem; }
.meta div { display: flex; flex-wrap: wrap; gap: 0 0.5rem; }
.meta dt { color: var(--text-2); }
.meta dd { margin: 0; font-weight: 600; }
.work-card ul.points { margin: 0 0 1.5rem; padding-left: 1.125rem; color: var(--text-2); }
.work-card ul.points li { margin-bottom: 0.5rem; }
.work-card ul.points li::marker { color: var(--accent); }
.metrics {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
}
.metrics span { color: var(--text-2); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.tags li {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-2);
}
.work-actions { margin-top: 1.5rem; }
.card--placeholder {
  display: grid;
  align-content: center;
  justify-items: start;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}
.card--placeholder h3 { font-size: var(--step-1); }
.founder-note { margin: 2.5rem 0 0; color: var(--text-2); }
.section--flush-top { padding-top: 0; }

/* ---------- CTA band ---------- */
.cta-band h2 { max-width: 18ch; }
.cta-band p { max-width: 36rem; color: var(--text-2); font-size: var(--step-1); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  color: var(--text-2);
}
.footer-inner { display: grid; gap: 1.5rem; }
.footer-brand { color: var(--text); font-family: var(--font-head); font-weight: 600; margin: 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin-left: -0.75rem; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  color: var(--text-2);
  text-decoration: none;
}
.copyright { margin: 0; font-size: var(--step--1); }
@media (min-width: 56rem) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .copyright { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--border); }
}

/* ---------- Floating WhatsApp button ----------
   Round icon on phones, labelled pill on wider screens.
   js/nav.js shows it after the first section and hides it near
   the contact section and footer. Without JS it is always shown. */
.wa-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgb(11 18 32 / 0.18);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 0s;
}
.wa-fab .icon { width: 1.625rem; height: 1.625rem; }
.wa-fab-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (min-width: 56rem) {
  .wa-fab { width: auto; padding: 0 1.25rem 0 1rem; right: 1.5rem; bottom: 1.5rem; }
  .wa-fab .icon { width: 1.375rem; height: 1.375rem; }
  .wa-fab-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
.wa-fab:focus-visible { outline-offset: 4px; }
.js .wa-fab:not(.is-shown) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}
@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover { background: var(--accent-hover); color: var(--on-accent); }
}
@media print {
  .wa-fab { display: none; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; align-content: center; }
.not-found p { color: var(--text-2); font-size: var(--step-1); max-width: 34rem; }

/* ---------- Hover (mouse and trackpad only; avoids sticky hover after a tap) ---------- */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
  .btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
  .btn--secondary:hover { color: var(--text); border-color: var(--text); text-decoration: none; }
  .icon-btn:hover { border-color: var(--text-2); background: var(--surface); }
  .site-nav a:hover { color: var(--accent); }
  .contact-link:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
  .footer-nav a:hover { color: var(--accent); text-decoration: underline; }
}

/* ---------- Motion ----------
   Opacity fades apply to everyone. Movement (transforms, drawing, smooth
   scroll) only applies when the visitor has not asked for reduced motion. */

/* Reveal on scroll: a one-off fade when an item first enters view.
   js/nav.js adds .is-visible and staggers items that enter together.
   Without JS, content is simply shown. */
.js .reveal { opacity: 0; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js .reveal { transform: translateY(12px); }
  .js .reveal.is-visible { transform: none; }

  /* Press feedback */
  .btn:active { transform: scale(0.97); }
  .icon-btn:active { transform: scale(0.95); }
  .contact-link:active { transform: scale(0.98); }
  .wa-fab:active { transform: scale(0.97); }
  .js .wa-fab:not(.is-shown) { transform: translateY(8px); }

  /* "Get started" arrow points the way on hover */
  @media (hover: hover) and (pointer: fine) {
    .btn:hover > .icon { transform: translateX(3px); }
  }

  /* Hero load-in (once per page view). The h1 stays static so it paints immediately. */
  .js .hero .eyebrow,
  .js .hero-sub,
  .js .hero .cta-row,
  .js .hero-note,
  .js .hero .pillars {
    animation: rise 450ms var(--ease-out) both;
  }
  .js .hero-sub { animation-delay: 60ms; }
  .js .hero .cta-row { animation-delay: 120ms; }
  .js .hero-note { animation-delay: 150ms; }
  .js .hero .pillars { animation-delay: 180ms; }

  /* Wing lines draw in once, accent line last */
  .js .hero-motif path { animation: draw 1.2s var(--ease-out) both; }
  .js .hero-motif path:nth-child(2) { animation-delay: 40ms; }
  .js .hero-motif path:nth-child(4) { animation-delay: 80ms; }
  .js .hero-motif path:nth-child(5) { animation-delay: 120ms; }
  .js .hero-motif path:nth-child(6) { animation-delay: 160ms; }
  .js .hero-motif path:nth-child(7) { animation-delay: 200ms; }
  .js .hero-motif path:nth-child(8) { animation-delay: 240ms; }
  .js .hero-motif path:nth-child(9) { animation-delay: 280ms; }
  .js .hero-motif .accent-line { animation-delay: 450ms; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle .icon { transform: none !important; filter: none !important; }
  .js .site-nav.is-open { transform: none; }
  .faq summary::after { transition: none; }
  @starting-style {
    .js .site-nav.is-open { transform: none; }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* ---------- Forced colours (Windows High Contrast) ---------- */
@media (forced-colors: active) {
  .btn, .icon-btn, .card, .contact-link, .form-card, .wa-fab { border: 1px solid CanvasText; }
  .logo { fill: LinkText; }
}

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}
