/* ==========================================================================
   ASACE Labs — corporate site stylesheet.

   The visual system is inherited from the Cadence family design language
   (see cadence-form/src/design/theme.ts): warm paper, near-black ink, a
   single forest accent, a warm terracotta secondary, hairline structure,
   Fraunces for the editorial voice and a system sans for the working text.
   Nothing here depends on the product codebases at runtime.
   ========================================================================== */

/* --- Typeface ------------------------------------------------------------ */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  /* Latin + Latin-1 Supplement only: everything this site sets. */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* --- Tokens -------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Ground */
  --paper: #f3f0e7;
  --paper-deep: #eae4d8;
  --sheet: #f8f5ed;
  --surface: rgba(248, 245, 237, 0.86);
  --surface-strong: rgba(248, 245, 237, 0.95);

  /* Ink. Each tier is checked against --paper for WCAG AA at its use size. */
  --ink: #1b1d19;
  --ink-2: rgba(27, 29, 25, 0.72);
  --ink-3: rgba(27, 29, 25, 0.64);
  --ink-4: rgba(27, 29, 25, 0.42); /* decorative only — never body text */

  /* Accent */
  --accent: #567061;
  --accent-deep: #3f574a;
  --accent-soft: rgba(86, 112, 97, 0.13);
  --warm: #a86745;
  --warm-deep: #8f5436;
  --warm-soft: rgba(168, 103, 69, 0.12);
  --gold: #c9a05e;

  /* Structure */
  --line: rgba(27, 29, 25, 0.1);
  --line-strong: rgba(27, 29, 25, 0.18);
  --line-accent: rgba(86, 112, 97, 0.34);
  --line-accent-soft: rgba(86, 112, 97, 0.18);

  /* Depth — used sparingly; the system prefers hairlines to shadows. */
  --lift: 0 1px 2px rgba(27, 29, 25, 0.03), 0 18px 40px -28px rgba(27, 29, 25, 0.24);
  --lift-strong: 0 1px 2px rgba(27, 29, 25, 0.04), 0 30px 60px -34px rgba(27, 29, 25, 0.3);

  /* Geometry */
  --r-sm: 10px;
  --r-control: 12px;
  --r-card: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 90ms;
  --t-fast: 200ms;
  --t-med: 300ms;
  --t-slow: 720ms;

  /* Rhythm */
  --art: clamp(116px, 14vw, 148px); /* every product mark, same size */
  --card-x: clamp(26px, 3.6vw, 48px); /* shared, so the marks line up card to card */
  --gutter: clamp(20px, 4vw, 40px);
  --measure: 1120px;
  --section-y: clamp(72px, 10.5vw, 132px);

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* --- Reset --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The two washes from the app's AppBackground: seasonal light at the top,
   a grounding warmth at the foot. Fixed so sections pass through them. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 62% at 50% -12%, rgba(210, 222, 207, 0.5), rgba(243, 240, 231, 0) 72%),
    radial-gradient(90% 44% at 88% 6%, rgba(201, 160, 94, 0.09), rgba(243, 240, 231, 0) 70%),
    linear-gradient(180deg, rgba(243, 240, 231, 0) 62%, rgba(225, 216, 201, 0.42) 100%),
    var(--paper);
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

::selection { background: var(--accent-soft); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* --- Layout primitives --------------------------------------------------- */

.shell {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* The masthead hairline with its centre index mark — the recurring detail
   from the app's HeaderRule. Used to punctuate, not to fence every section. */
.rule {
  position: relative;
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}
.rule::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.98rem + 0.44vw, 1.25rem);
  line-height: 1.65;
  max-width: 34em;
}

.section-head { max-width: 40rem; }
.section-head h2 {
  font-size: clamp(1.875rem, 1.45rem + 1.9vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 300;
}
.section-head p { margin-top: 18px; }

/* --- Brand --------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px; /* keeps the logo link a comfortable tap target */
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 26px; height: 26px; flex: 0 0 auto; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1;
}
.brand-name b { font-weight: 500; }
.brand-mark .mark-frame,
.brand-mark .mark-ring,
.brand-mark .mark-rule { transition: stroke var(--t-med) var(--ease); }
.brand:hover .mark-ring { stroke: var(--accent); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-press) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: var(--lift);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.8125rem; }

.btn .arrow { transition: transform var(--t-med) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Quiet inline link with an arrow — used inside cards. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-decoration: none;
}
.link-arrow svg { transition: transform var(--t-med) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { color: var(--ink); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 240, 231, 0.84);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), background-color var(--t-med) var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(243, 240, 231, 0.7); backdrop-filter: saturate(150%) blur(14px); }
}
.site-header[data-scrolled='true'] { border-bottom-color: var(--line); }

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4vw, 10px);
}
.nav a {
  padding: 12px clamp(6px, 1.2vw, 12px);
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav .btn { margin-left: clamp(6px, 1.4vw, 14px); }

/* --- Hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(60px, 9vw, 116px) clamp(56px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero h1 {
  font-size: clamp(2.75rem, 1.9rem + 4.1vw, 4.75rem);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.032em;
  max-width: 12ch;
}
.hero h1 .quiet { color: var(--ink-3); }
.hero .lede { margin-top: clamp(22px, 2.6vw, 30px); max-width: 33em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 3.4vw, 40px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.hero-meta .dot {
  width: 4px; height: 4px;
  border-radius: var(--r-pill);
  background: var(--ink-4);
}

/* The hero instrument: hairline rules carrying index marks, read against
   two quiet apertures. Abstract, drawn, and about 2 kB of SVG. */
.hero-figure {
  position: relative;
  aspect-ratio: 400 / 280;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}
.hero-figure svg { width: 100%; height: 100%; overflow: visible; }

/* --- Cards --------------------------------------------------------------- */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.products-list {
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
  margin-top: clamp(38px, 4.6vw, 60px);
}

/* Flagship — the stronger treatment of the two. */
.product-feature {
  border-color: var(--line-accent-soft);
  border-radius: var(--r-lg);
  background: var(--surface-strong);
  box-shadow: var(--lift);
  overflow: hidden;
}
.product-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(88% 120% at 82% 0%, var(--accent-soft), transparent 62%);
}
.product-feature:hover { border-color: var(--line-accent); box-shadow: var(--lift-strong); }

.product-feature-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, var(--art)) minmax(0, 1fr);
  gap: clamp(26px, 3.8vw, 56px);
  align-items: center;
  padding: clamp(30px, 4.2vw, 54px) var(--card-x);
}

/* The three marks: one size, one alignment, one shadow. Hierarchy between the
   products is carried by the copy and the card, not by the icon. */
.product-art,
.product-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.product-art img,
.product-icon img,
.product-plate {
  width: var(--art);
  border-radius: 22.5%;
  box-shadow:
    0 1px 2px rgba(27, 29, 25, 0.05),
    0 4px 10px -4px rgba(27, 29, 25, 0.12),
    0 26px 46px -24px rgba(27, 29, 25, 0.42);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.card:hover .product-art img,
.card:hover .product-icon img,
.card:hover .product-plate {
  transform: translateY(-3px);
  box-shadow:
    0 1px 2px rgba(27, 29, 25, 0.05),
    0 6px 14px -4px rgba(27, 29, 25, 0.14),
    0 36px 60px -26px rgba(27, 29, 25, 0.46);
}

.product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}
.product-body h3 {
  font-size: clamp(1.625rem, 1.32rem + 1.2vw, 2.125rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.product-body > p {
  margin-top: 16px;
  color: var(--ink-2);
  max-width: 46ch;
}

/* Two states, and they should not look alike: work in progress is quiet,
   something you can actually download carries the accent. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(248, 245, 237, 0.7);
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--ink-4);
}
.status-live {
  border-color: var(--line-accent-soft);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.status-live::before { background: currentColor; }

.traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 32px;
  margin-top: clamp(24px, 2.6vw, 32px);
  padding-top: clamp(20px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}
.traits li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.traits li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.78em;
  width: 6px; height: 1px;
  background: var(--line-accent);
}

/* Secondary product — a lighter horizontal band, deliberately quieter. */
.product-secondary { background: var(--surface); }
.product-secondary:hover { border-color: var(--line-strong); }
.product-secondary-inner {
  display: grid;
  grid-template-columns: minmax(0, var(--art)) minmax(0, 1fr);
  gap: clamp(26px, 3.8vw, 56px);
  align-items: center;
  padding: clamp(26px, 3.2vw, 40px) var(--card-x);
}
.product-secondary h3 {
  font-size: clamp(1.375rem, 1.24rem + 0.6vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.product-secondary .product-body > p { margin-top: 12px; font-size: 1rem; max-width: 52ch; }

/* EduPro's own wordmark construction, reproduced from the product's brand
   stylesheet (edupro/client/public/brand.css) rather than re-drawn. */
.edupro-wordmark {
  font-family: var(--font-sans);
  font-size: calc(var(--art) * 0.185);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.edupro-wordmark .edu { color: #f8fafc; }
.edupro-wordmark .pro { color: #d97706; }

.product-meta {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* --- About --------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(38px, 5.4vw, 88px);
  align-items: start;
}

.principles { display: grid; gap: 0; }
.principles li { padding-block: clamp(20px, 2.4vw, 26px); border-top: 1px solid var(--line); }
.principles li:first-child { border-top: 0; padding-top: 0; }
.principles li:last-child { padding-bottom: 0; }
.principles h3 {
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.principles p { margin-top: 7px; color: var(--ink-2); font-size: 1rem; }

/* --- Contact ------------------------------------------------------------- */

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(30px, 4.2vw, 56px);
  border-radius: var(--r-lg);
  border-color: var(--line-accent-soft);
  background:
    radial-gradient(80% 130% at 8% 0%, var(--warm-soft), transparent 60%),
    var(--surface-strong);
  box-shadow: var(--lift);
}
.contact-card h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.022em;
}
.contact-card p { margin-top: 14px; color: var(--ink-2); max-width: 40ch; }
.contact-email {
  display: inline-block;
  margin-top: 18px;
  color: var(--warm-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  letter-spacing: -0.005em;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 84, 54, 0.3);
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* --- Footer -------------------------------------------------------------- */

.site-footer { padding-block: clamp(44px, 5vw, 64px) clamp(36px, 4vw, 52px); }
.site-footer .shell > .rule { margin-bottom: clamp(36px, 4vw, 52px); }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
}

.legal {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.legal .legal-name { color: var(--ink-2); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}
.footer-links a {
  padding: 10px 12px;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease);
}
.footer-links a:first-child { padding-left: 0; }
.footer-links a:hover { color: var(--ink); }

/* --- Prose (privacy, and any future document page) ----------------------- */

.doc { padding-block: clamp(52px, 7vw, 96px); }
.doc-head { max-width: 46rem; }
.doc-head h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.doc-head .meta { margin-top: 18px; color: var(--ink-3); font-size: 0.875rem; }

.prose {
  max-width: 42rem;
  margin-top: clamp(38px, 4.4vw, 56px);
  padding: clamp(26px, 3.6vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--lift);
}
.prose > section + section {
  margin-top: clamp(26px, 3vw, 36px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.prose h2 {
  font-size: clamp(1.25rem, 1.14rem + 0.5vw, 1.4375rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.prose p, .prose ul { margin-top: 12px; color: var(--ink-2); font-size: 1rem; }
.prose li { position: relative; padding-left: 20px; }
.prose li + li { margin-top: 7px; }
.prose li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.78em;
  width: 7px; height: 1px;
  background: var(--line-accent);
}
.prose a { color: var(--warm-deep); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }

/* --- Not found ----------------------------------------------------------- */

.centred {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: clamp(420px, 62svh, 620px);
  padding-block: var(--section-y);
}
.centred h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.centred p { margin-top: 16px; color: var(--ink-2); }
.centred .btn { margin-top: 28px; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 7vw, 60px); }
  .hero h1 { max-width: 16ch; }
  .hero-figure { max-width: 420px; order: 2; margin-inline: 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .product-feature-inner { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4vw, 38px); }
  .product-art,
  .product-icon,
  .product-plate { justify-self: start; }
  .product-secondary-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contact-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  body { font-size: 1rem; }
  .site-header .shell { min-height: 60px; gap: 10px; }
  .nav a { padding: 12px 8px; font-size: 0.875rem; }
  .nav .btn { display: none; }
  .hero-figure { max-width: 100%; }
  .traits { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-meta .dot { display: none; }
  .footer-grid { flex-direction: column; gap: 24px; }
}

@media (max-width: 560px) {
  /* Two buttons of different widths read as ragged on a narrow column;
     full-width stacking is tidier and gives larger targets. */
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .nav { gap: 0; }
  .nav a { padding: 12px 5px; font-size: 0.8125rem; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 23px; height: 23px; }
}

@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;
  }
}

@media print {
  body::before, .site-header, .hero-figure { display: none; }
  body { background: #fff; }
  .card, .prose, .contact-card { box-shadow: none; }
}

/* --- Hero figure motion -------------------------------------------------- */

.hero-figure .hf-arc {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: hf-draw 1400ms var(--ease) 340ms forwards;
}
.hero-figure .hf-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hf-mark 620ms var(--ease) forwards;
}
.hero-figure .hf-dot-1 { animation-delay: 1500ms; }
.hero-figure .hf-dot-2 { animation-delay: 900ms; }
.hero-figure .hf-dot-3 { animation-delay: 1150ms; }

@keyframes hf-draw { to { stroke-dashoffset: 0; } }
@keyframes hf-mark {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}

/* --- Secondary product marks --------------------------------------------- */

.product-body .link-arrow { margin-top: 6px; padding-block: 10px; }

/* --- Secondary product tile ---------------------------------------------- */

.product-plate {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #0f172a;
}

/* --- Stacked ledes ------------------------------------------------------- */

.section-head .lede + .lede { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .hero-figure .hf-arc,
  .hero-figure .hf-dot { animation-delay: 0ms !important; }
}
