/* ============================================================================
   BlinkDone — site stylesheet
   One file, no build step, no runtime CSS injection.

   Design notes
   ------------
   Palette : deep emerald on warm paper. Green carries the brand; everything
             else is a disciplined neutral so the accent still means something.
   Type    : Archivo (display, tight and sturdy) / Inter (body) /
             JetBrains Mono (labels, step numbers — the automation vernacular).
   Signature: the "blink rule" — every section label sits on a hairline that
             ends in a blinking cursor block. It is the brand name, drawn.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Brand */
  --green-900: #06251b;
  --green-800: #0a3a2a;
  --green-700: #0d5740;
  --green-600: #127a5c;   /* primary accent */
  --green-500: #199a74;
  --green-400: #35bd90;
  --green-300: #79dcb9;
  --green-100: #dcf3ea;

  /* Neutrals — warm-leaning so the green reads natural, not clinical */
  --ink-900: #0d1310;
  --ink-800: #161d19;
  --ink-700: #2a332e;
  --ink-500: #5c6a63;
  --ink-300: #9aa5a0;
  --ink-200: #d7dbd8;
  --ink-100: #e9eae6;
  --paper:   #f6f6f3;
  --white:   #ffffff;

  /* Semantic — light theme */
  --bg:            var(--paper);
  --bg-raised:     var(--white);
  --bg-sunken:     #eeefeb;
  --bg-inverse:    var(--green-900);
  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --text-inverse:  #eef4f0;
  --accent:        var(--green-600);
  --accent-text:   var(--green-700);
  --accent-quiet:  var(--green-100);
  --border:        color-mix(in srgb, var(--ink-900) 12%, transparent);
  --border-strong: color-mix(in srgb, var(--ink-900) 22%, transparent);
  --shadow-sm: 0 1px 2px rgb(13 19 16 / 6%), 0 1px 1px rgb(13 19 16 / 4%);
  --shadow-md: 0 4px 16px -4px rgb(13 19 16 / 10%), 0 2px 4px rgb(13 19 16 / 5%);
  --shadow-lg: 0 18px 48px -12px rgb(13 19 16 / 18%);

  /* Type */
  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.09rem + 0.3vw, 1.3rem);
  --step-2:  clamp(1.4rem, 1.28rem + 0.6vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.4vw, 3.5rem);
  --step-5:  clamp(2.75rem, 1.8rem + 4.4vw, 5.25rem);

  /* Space — 4px base */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;

  --edge: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 62ch;
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Dark theme — applied by media query, overridable by the toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0b100d;
    --bg-raised:     #131a16;
    --bg-sunken:     #0f1512;
    --bg-inverse:    #08231a;
    --text:          #eef2ef;
    --text-muted:    #97a49d;
    --text-inverse:  #eef4f0;
    --accent:        var(--green-400);
    --accent-text:   var(--green-300);
    --accent-quiet:  color-mix(in srgb, var(--green-400) 14%, transparent);
    --border:        color-mix(in srgb, #eef2ef 14%, transparent);
    --border-strong: color-mix(in srgb, #eef2ef 26%, transparent);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-md: 0 4px 16px -4px rgb(0 0 0 / 50%);
    --shadow-lg: 0 18px 48px -12px rgb(0 0 0 / 60%);
  }
}

:root[data-theme="dark"] {
  --bg:            #0b100d;
  --bg-raised:     #131a16;
  --bg-sunken:     #0f1512;
  --bg-inverse:    #08231a;
  --text:          #eef2ef;
  --text-muted:    #97a49d;
  --text-inverse:  #eef4f0;
  --accent:        var(--green-400);
  --accent-text:   var(--green-300);
  --accent-quiet:  color-mix(in srgb, var(--green-400) 14%, transparent);
  --border:        color-mix(in srgb, #eef2ef 14%, transparent);
  --border-strong: color-mix(in srgb, #eef2ef 26%, transparent);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-md: 0 4px 16px -4px rgb(0 0 0 / 50%);
  --shadow-lg: 0 18px 48px -12px rgb(0 0 0 / 60%);
}

/* ---------- 2. Reset & base --------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: var(--accent); color: var(--white); }

.skip-link {
  position: absolute;
  left: var(--s-4); top: var(--s-4);
  z-index: 200;
  transform: translateY(-200%);
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--s-2) var(--s-4);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { transform: translateY(0); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--edge); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Header / navigation --------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header[data-stuck="true"] {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 4.5rem;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--edge);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--accent); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav a {
  position: relative;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding-block: var(--s-2);
  transition: color 0.18s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* The nav carries its own CTA for the mobile menu panel only. On desktop the
   CTA in .header-actions is the one that shows, so this stays hidden — without
   this rule the button appears twice. */
.nav > .btn { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon { display: revert; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: revert; }
}

.nav-toggle {
  display: none;
  width: 2.5rem; height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.5px;
  margin: 3.5px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) var(--edge) var(--s-5);
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav[data-open="true"] { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav a {
    font-size: 1.05rem;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--border);
  }
  .nav a::after { display: none; }
  .nav > .btn {
    display: inline-flex;
    margin-top: var(--s-5);
    /* undo the .nav a link styling it would otherwise inherit */
    border-bottom: 1px solid transparent;
    padding: 1rem 1.6rem;
    font-size: var(--step-0);
    color: var(--btn-primary-text, #fff);
  }
}

/* ---------- 4. Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; transition: transform 0.22s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* On light the accent is dark enough for white text; on dark the accent is a
   bright mint, so the label flips to the deepest green for contrast. */
.btn-primary {
  background: var(--accent);
  color: var(--btn-primary-text, #fff);
  box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] { --btn-primary-text: var(--green-900); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --btn-primary-text: var(--green-900); }
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink-900));
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }

.btn-lg { padding: 1rem 1.6rem; font-size: var(--step-0); }

.on-dark .btn-secondary { color: var(--text-inverse); border-color: rgb(255 255 255 / 30%); }
.on-dark .btn-secondary:hover { background: rgb(255 255 255 / 10%); }
.on-dark .btn-primary { background: var(--green-400); color: var(--green-900); }
.on-dark .btn-primary:hover { background: var(--green-300); }

/* ---------- 5. Section furniture + the blink rule ------------------------ */

.section { padding-block: var(--section-y); }
.section-tight { padding-block: 0 var(--section-y); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: 0 0 var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
/* the signature: a terminal cursor that blinks at the end of every rule */
.eyebrow::before {
  content: "";
  order: 3;
  width: 7px; height: 13px;
  margin-left: calc(-1 * var(--s-4) + 2px);
  background: var(--accent);
  animation: blink 1.6s steps(1, end) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.12; } }

.section-title {
  font-size: var(--step-3);
  max-width: 22ch;
  margin: 0;
}
.section-lede {
  margin: var(--s-4) 0 0;
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* ---------- 6. Hero ------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6.5rem);
}
/* soft ambient field — replaces the old flat grey slab */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(48rem 32rem at 78% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%),
    radial-gradient(36rem 26rem at 6% 74%, color-mix(in srgb, var(--green-500) 10%, transparent), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: var(--step-5);
  line-height: 0.96;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--accent); }

.hero-lede {
  margin: var(--s-6) 0 0;
  max-width: 56ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* page hero (subpages) */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; letter-spacing: -0.03em; }
.page-hero .hero-lede { margin-top: var(--s-5); }

/* ---------- 7. Cards / grids --------------------------------------------- */

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card h3 {
  font-size: var(--step-1);
  letter-spacing: -0.015em;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: var(--s-2);
  border-radius: var(--radius);
  background: var(--accent-quiet);
  color: var(--accent-text);
}
.card-icon svg { width: 20px; height: 20px; }

/* numbered steps — numbering is used only where order genuinely matters */
.step { counter-increment: step; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}
.steps { counter-reset: step; position: relative; }

/* ---------- 8. Split with imagery ---------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  box-shadow: var(--shadow-lg);
}
.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.75);
  transition: filter 0.5s var(--ease), transform 0.7s var(--ease);
}
.figure:hover img { filter: saturate(1); transform: scale(1.02); }
.figure figcaption {
  padding: var(--s-3) var(--s-4);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

/* ---------- 9. Service blocks (services page) ---------------------------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}
@media (max-width: 880px) { .service { grid-template-columns: 1fr; } }
.service h2 { font-size: var(--step-2); max-width: 20ch; }
.service p { margin-top: var(--s-4); color: var(--text-muted); max-width: 58ch; }

.check-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.check-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  width: 1.1rem; height: 1.1rem;
  margin-top: 0.18rem;
  border-radius: 50%;
  background: var(--accent-quiet);
  /* inline tick, coloured by mask so it follows the theme */
  -webkit-mask: none;
}
.check-list li svg { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; color: var(--accent); }
.check-list li:has(svg)::before { display: none; }
.check-list li:has(svg) { grid-template-columns: 1.05rem 1fr; }

/* ---------- 10. Quote ----------------------------------------------------- */

.quote { padding-block: var(--section-y); }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 26ch;
}
.quote blockquote::before { content: "\201C"; color: var(--accent); }
.quote blockquote::after { content: "\201D"; color: var(--accent); }
.quote figcaption {
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- 11. Logo wall ------------------------------------------------- */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-wall div {
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.65;
}

/* ---------- 12. CTA band -------------------------------------------------- */

.band {
  position: relative;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40rem 24rem at 82% 10%, rgb(53 189 144 / 22%), transparent 65%);
  pointer-events: none;
}
.band > .wrap { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); }
.band h2 { font-size: var(--step-3); max-width: 20ch; color: var(--text-inverse); }
.band p {
  margin-top: var(--s-4);
  max-width: 54ch;
  color: rgb(238 244 240 / 76%);
  font-size: var(--step-0);
}
.band .hero-actions { margin-top: var(--s-6); }

/* ---------- 13. Forms ----------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text);
}
.field .hint { font-size: 0.78rem; color: var(--text-muted); }

.input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input::placeholder { color: var(--text-muted); opacity: 0.75; }
.input:hover { border-color: color-mix(in srgb, var(--text) 35%, transparent); }
.input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
textarea.input { resize: vertical; min-height: 7rem; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: var(--step--1);
  font-weight: 500;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
:root[data-theme="dark"] .chip:has(input:checked) { color: var(--green-900); }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-status {
  font-size: var(--step--1);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--accent-quiet);
  color: var(--accent-text);
}
.form-status[hidden] { display: none; }

.info-card {
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.info-card dl { margin: 0; display: grid; gap: var(--s-4); }
.info-card dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.info-card dd { margin: 0.2rem 0 0; font-size: 0.95rem; }

/* ---------- 14. Footer ---------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  padding-block: var(--s-8) var(--s-6);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p {
  margin-top: var(--s-3);
  max-width: 34ch;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-list a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
.footer-list a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- 15. Motion ---------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-delay-1.is-visible { transition-delay: 0.06s; }
.reveal-delay-2.is-visible { transition-delay: 0.12s; }
.reveal-delay-3.is-visible { transition-delay: 0.18s; }

/* orchestrated hero entrance — one moment, three beats */
.hero-in > * { animation: rise 0.7s var(--ease) both; }
.hero-in > *:nth-child(1) { animation-delay: 0.05s; }
.hero-in > *:nth-child(2) { animation-delay: 0.16s; }
.hero-in > *:nth-child(3) { animation-delay: 0.26s; }
.hero-in > *:nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .eyebrow::before { opacity: 1; }
}

/* ---------- 16. Print ----------------------------------------------------- */

@media print {
  .site-header, .band, .hero::before, .theme-toggle, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .info-card { box-shadow: none; border: 1px solid #ccc; }
}
