/* ==========================================================================
   Metapresto website
   Layout: a calm white page that alternates open sections with one dark
   philosophy band, led by the three-arrow Metapresto cycle as the hero image.

   BRAND COLORS: change the four --brand-* / --ink values below to re-theme
   the whole site, logo included. Everything else is derived from them.
   ========================================================================== */
:root {
  /* Brand (from the logo) */
  --brand-top: #FF9A4D;    /* orange top fold */
  --brand-left: #14C3B8;   /* teal left panel */
  --brand-right: #0A55E6;  /* blue right panel; also buttons and links */
  --ink: #1F2329;          /* wordmark charcoal; headings and body text */

  /* Derived roles */
  --accent: var(--brand-right);
  --accent-ink: #FFFFFF;
  --accent-hover: color-mix(in srgb, var(--accent) 86%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 7%, #fff);

  /* Neutrals, with a slight cool bias toward the charcoal */
  --bg: #FFFFFF;
  --surface: #F4F6F9;
  --surface-2: #EBEEF3;
  --line: #DFE3EA;
  --muted: #586170;
  --deep: color-mix(in srgb, var(--ink) 92%, #000);  /* dark band and footer */
  --on-deep: #F2F4F7;
  --on-deep-muted: #A9B1BE;

  /* Placeholder markers for content that still needs real copy */
  --ph-bg: #FFF5CC;
  --ph-line: #D9A300;
  --ph-ink: #6B5200;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(2.3rem, 4.6vw, 3.4rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 2.75rem);
  --fs-h3: 1.2rem;
  --fs-lede: clamp(1.08rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  /* Space and shape */
  --gutter: 16px;
  --maxw: 1180px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 60;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, #fff); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem/1 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 30px; flex: none; }
.brand-word { font: 700 1.35rem/1 var(--font-display); letter-spacing: -0.015em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--bg); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav ul {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(20, 24, 32, .25);
  }
  .site-nav ul:not(.is-open) { display: none; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { padding-top: 16px; }
  .site-nav .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(600px 380px at 85% 30%, color-mix(in srgb, var(--brand-top) 14%, transparent), transparent 70%),
    radial-gradient(520px 360px at 70% 85%, color-mix(in srgb, var(--brand-left) 12%, transparent), transparent 70%),
    radial-gradient(520px 420px at 100% 75%, color-mix(in srgb, var(--brand-right) 10%, transparent), transparent 70%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero .lede { font-size: var(--fs-lede); color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-note { font-size: var(--fs-small); color: var(--muted); }

.hero-figure { margin: 0; display: grid; gap: 28px; justify-items: center; }
.hero-figure figcaption { font-size: var(--fs-small); color: var(--muted); text-align: center; max-width: 30em; }

/* Hero cycle: three arrows in the brand colors (know, update, iterate). */
.hero-cycle { position: relative; width: min(100%, 430px); aspect-ratio: 1; }
.hero-cycle > svg {
  width: 100%; height: 100%; display: block; overflow: visible;
  filter: drop-shadow(0 26px 34px rgba(20, 30, 50, .14));
}
.arrow-know { fill: var(--brand-top); }
.arrow-update { fill: var(--brand-left); }
.arrow-iterate { fill: var(--brand-right); }
.hero-cycle > svg { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.cycle-steps { list-style: none; margin: 0; padding: 0; }
.cycle-step {
  position: absolute;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(20, 30, 50, .35);
}
.cycle-num {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
}
.cycle-know .cycle-num { background: var(--brand-top); }
.cycle-update .cycle-num { background: var(--brand-left); }
.cycle-iterate .cycle-num { background: var(--brand-right); color: #fff; }
.cycle-know { top: 6%; right: -12%; }
.cycle-update { bottom: -3%; left: 50%; transform: translateX(-50%); }
.cycle-iterate { top: 30%; left: -24%; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-cycle { width: min(70%, 380px); margin-top: 24px; }
}
@media (max-width: 560px) {
  .hero-figure { gap: 16px; }
  .hero-cycle { width: 62%; margin-top: 8px; margin-bottom: 8px; }
  .cycle-step { font-size: 0.8rem; padding: 5px 10px 5px 5px; gap: 7px; white-space: normal; width: max-content; max-width: 9.5em; }
  .cycle-num { width: 20px; height: 20px; font-size: 0.72rem; }
  .cycle-know { top: -4%; right: -30%; }
  .cycle-update { bottom: -10%; max-width: none; white-space: nowrap; }
  .cycle-iterate { top: 36%; left: -32%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-h2); font-weight: 800; }
.section-lede { font-size: var(--fs-lede); color: var(--muted); }

/* ---------- Name (dictionary entries) ---------- */
.name { background: var(--surface); }
.entries { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: stretch; }
.entry {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid; gap: 10px; align-content: start;
}
.entry-word {
  font: 800 clamp(2.6rem, 5.5vw, 3.75rem)/1 var(--font-display);
  letter-spacing: -0.035em;
  justify-self: start;
  padding-bottom: 6px;
  background: linear-gradient(var(--entry-color), var(--entry-color)) 0 100% / 100% 8px no-repeat;
}
.entry-meta { --entry-color: var(--brand-left); }
.entry-presto { --entry-color: var(--brand-top); }
.entry-pron { color: var(--muted); font-size: 0.95rem; display: flex; gap: 10px; align-items: baseline; }
.entry-pron span { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; }
.entry-def { font-size: 1.08rem; max-width: 34em; }
.entry-def b { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.entries-plus { align-self: center; font: 800 2.25rem/1 var(--font-display); color: var(--muted); }
@media (max-width: 760px) {
  .entries { grid-template-columns: minmax(0, 1fr); }
  .entries-plus { justify-self: center; font-size: 1.75rem; }
}

/* ---------- Philosophy band ---------- */
.band { background: var(--deep); color: var(--on-deep); padding-block: clamp(4rem, 9vw, 7rem); }
.band-inner { display: grid; gap: 26px; justify-items: start; }
.band blockquote { margin: 0; max-width: 54rem; position: relative; }
.band blockquote p {
  font: 700 clamp(1.9rem, 4.4vw, 3.4rem)/1.12 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.band blockquote::before {
  content: "\201C";
  display: block;
  font: 800 5rem/0.7 var(--font-display);
  color: var(--brand-top);
  margin-bottom: 8px;
}
.band-sub { color: var(--on-deep-muted); font-size: var(--fs-lede); max-width: 38em; }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.svc-tabs { display: none; flex-direction: column; gap: 6px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.js .svc-tabs { display: flex; }
.svc-tabs button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 600 1.05rem/1.2 var(--font-display);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.svc-tabs button:hover { background: var(--surface); }
.svc-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.svc-tab-count {
  font: 600 0.8rem/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  min-width: 26px; padding: 5px 7px; border-radius: 999px; text-align: center;
  background: var(--surface-2); color: var(--muted);
}
.svc-tabs button[aria-selected="true"] .svc-tab-count { background: rgba(255,255,255,.16); color: #fff; }

.svc-panels { display: grid; gap: 4rem; }
.js .svc-panels { gap: 0; }
.svc-panel { display: grid; gap: 1.75rem; min-width: 0; }
.svc-intro { display: grid; gap: 8px; max-width: 40rem; }
.svc-intro h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; }
.svc-intro p { color: var(--muted); font-size: 1.1rem; }
.svc-grid { display: grid; border-top: 1px solid var(--line); }
.svc-card {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 8px 32px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.svc-card h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.svc-card p { color: var(--muted); }
.svc-panel.is-entering .svc-card { animation: rise .35s ease both; }
.svc-panel.is-entering .svc-card:nth-child(2) { animation-delay: .04s; }
.svc-panel.is-entering .svc-card:nth-child(3) { animation-delay: .08s; }
.svc-panel.is-entering .svc-card:nth-child(4) { animation-delay: .12s; }
.svc-panel.is-entering .svc-card:nth-child(5) { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(8px); opacity: .4; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-tabs {
    position: static; flex-direction: row; overflow-x: auto; gap: 8px;
    padding-bottom: 4px; scrollbar-width: none;
    margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
    padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tabs button { width: auto; flex: none; border-color: var(--line); padding: 10px 14px; font-size: 0.98rem; }
}
@media (max-width: 640px) {
  .svc-card { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Approach ---------- */
.approach { background: var(--surface); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px;
  background: linear-gradient(90deg, var(--brand-left), var(--brand-top), var(--brand-right));
  opacity: .55;
}
.step { display: grid; gap: 12px; align-content: start; position: relative; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--ink);
  font: 800 1.15rem/1 var(--font-display);
  margin-bottom: 8px;
}
.step h3 { font-size: var(--fs-h3); font-weight: 700; }
.step p { color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--brand-left), var(--brand-top), var(--brand-right)); }
  .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
}

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-copy { display: grid; gap: 18px; max-width: 34rem; }
.about-copy h2 { font-size: var(--fs-h2); font-weight: 800; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.principles li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid; gap: 8px; align-content: start;
}
.principles li::before {
  content: ""; width: 22px; height: 18px; border-radius: 3px; margin-bottom: 8px;
  background: var(--chip, var(--brand-top));
  transform: skewY(-24deg);
}
.principles li:nth-child(2) { --chip: var(--brand-left); }
.principles li:nth-child(3) { --chip: var(--brand-right); }
.principles li:nth-child(4) { --chip: var(--ink); }
.principles h3 { font-size: 1.1rem; font-weight: 700; }
.principles p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) { .about-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Testimonials ---------- */
.voices { padding-top: 0; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quote { margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); background: var(--surface); display: grid; gap: 20px; align-content: space-between; }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 600 1.2rem/1.45 var(--font-display); letter-spacing: -0.01em; }
.quote figcaption { display: grid; gap: 2px; font-size: 0.95rem; }
.quote figcaption span { color: var(--muted); }
@media (max-width: 760px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.faq-inner .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0;
  font: 600 1.1rem/1.35 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 40em; }
@media (max-width: 900px) { .faq-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy { display: grid; gap: 18px; }
.contact-copy h2 { font-size: var(--fs-h2); font-weight: 800; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; max-width: 30em; }
.contact-details { margin: 12px 0 0; display: grid; gap: 14px; }
.contact-details div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; }
.contact-details dt { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.contact-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 30px 60px -40px rgba(20, 30, 50, .35);
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field [aria-invalid="true"] { border-color: #C2331F; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-status { font-size: 0.95rem; color: var(--muted); }
.form-status.is-error { color: #A82A18; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .contact-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding-block: 3.5rem 2.5rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem 3rem; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.site-footer .brand { color: var(--on-deep); }
.footer-nav { display: flex; gap: clamp(2rem, 6vw, 5rem); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-h { font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-deep); margin-bottom: 14px; }
.footer-nav a { color: var(--on-deep-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--on-deep); text-decoration: underline; }
.footer-legal { grid-column: 1 / -1; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.88rem; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ask box (hero) ---------- */
.ask {
  width: 100%;
  max-width: 36rem;
  display: grid; gap: 12px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -32px rgba(20, 30, 50, .35);
}
.ask-label { font: 700 1.05rem/1.3 var(--font-display); }
.ask-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ask textarea {
  width: 100%; min-height: 56px; resize: vertical;
  font: inherit; font-size: 1rem; color: var(--ink); line-height: 1.45;
  padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ask textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.ask textarea:focus {
  outline: none; background: var(--bg); border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.ask textarea[aria-invalid="true"] { border-color: #C2331F; }
.ask-btn { min-height: 56px; border-radius: 12px; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 0.88rem/1 var(--font-body); color: var(--ink);
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--muted); background: var(--surface); }
.ask-alt { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 520px) {
  .ask { padding: 14px; }
  .ask-row { grid-template-columns: minmax(0, 1fr); }
  .ask-btn { width: 100%; min-height: 50px; }
}

/* ---------- Ask result ---------- */
.ask-result { padding-block: clamp(3rem, 7vw, 5rem); background: var(--bg); border-top: 1px solid var(--line); }
.ask-result-inner { display: grid; gap: clamp(1.75rem, 4vw, 2.5rem); }
.ask-head { display: grid; gap: 12px; max-width: 48rem; }
.ask-head h2 { font-size: var(--fs-h2); font-weight: 800; }
.ask-asked { color: var(--muted); }
.ask-asked q { color: var(--ink); font-style: italic; }
.ask-summary { font-size: var(--fs-lede); }
.ask-pending { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.ask-pending::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.ask-grid h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; }
.ask-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.ask-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; counter-increment: step; }
.ask-steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  font: 800 0.95rem/1 var(--font-display);
}
.ask-steps h4 { font-size: 1.05rem; font-weight: 700; padding-top: 6px; }
.ask-steps p { color: var(--muted); }
.ask-svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ask-svc { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px; justify-items: start; }
.ask-svc-cat { font: 700 0.72rem/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ask-svc h4 { font-size: 1.08rem; font-weight: 700; }
.ask-svc p { color: var(--muted); font-size: 0.98rem; }
.ask-svc-link {
  margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 0.95rem/1.4 var(--font-body); color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}
.ask-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--surface);
}
.ask-foot p { font-weight: 600; max-width: 38em; }
.ask-foot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-card.is-highlighted { animation: glow 2.2s ease; }
@keyframes glow {
  0%, 30% { background: color-mix(in srgb, var(--brand-top) 16%, transparent); }
  100% { background: transparent; }
}
@media (max-width: 860px) { .ask-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Placeholder markers (remove once real content is in) ---------- */
.placeholder { position: relative; outline: 2px dashed var(--ph-line); outline-offset: -2px; background: var(--ph-bg) !important; }
.placeholder::before {
  content: attr(data-placeholder);
  position: absolute; top: 12px; right: 12px;
  font: 700 0.7rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ph-ink); background: #fff; border: 1px solid var(--ph-line);
  padding: 5px 8px; border-radius: 999px;
}
.placeholder-inline { background: var(--ph-bg); box-shadow: inset 0 -2px 0 var(--ph-line); padding: 1px 4px; border-radius: 3px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
