/* Lofty Labz — site chrome + shared components. Section-specific styling lands with the home build. */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* sticky header offset for anchor jumps */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--heading);
  margin: 0 0 var(--space-3);
}
h1 { font-size: var(--step-5); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-3); max-width: 62ch; }

a { color: var(--accent-strong); }
.theme-dark a { color: var(--accent); }

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

img { max-width: 100%; height: auto; }

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--white);
  color: var(--purple);
  padding: 10px 16px;
  border-radius: var(--radius-ctl);
}

/* theme contexts paint their own background */
.theme-dark { background: var(--bg); color: var(--text); }
section.theme-dark, header.theme-dark, footer.theme-dark { background: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-ctl);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn:hover, .btn:focus-visible { box-shadow: var(--shadow-action); transform: translate(-2px, -2px); } /* Loop 4 m8: keyboard parity */
.btn:active { box-shadow: none; transform: translate(0, 0); }
/* beat the `.theme-dark a` color rule on dark surfaces */
.theme-dark a.btn-accent { color: var(--ink); }
.theme-dark a.btn-primary { color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand img { display: block; }
.site-nav ul {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-cta { padding: 9px 18px; font-size: var(--step--1); }
.header-tel {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.header-tel:hover { color: var(--accent); }
@media (max-width: 1020px) and (min-width: 821px) { .header-tel { display: none; } }
.nav-toggle { display: none; }

/* mobile nav */
@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-ctl);
    color: var(--text);
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform var(--dur-micro) var(--ease-out);
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(90deg) translateX(6px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { opacity: 0; }

  .site-nav {
    position: fixed;
    inset: 0;
    top: 72px;
    /* Loop 5 C1: the header's backdrop-filter makes it the containing block for
       fixed descendants, so bottom:0 resolved to the header box (height 0).
       Explicit height frees the panel from the bottom edge entirely. */
    height: calc(100dvh - 72px);
    bottom: auto;
    flex-direction: column;
    justify-content: center;
    background: var(--ink);
    transform: translateY(-110%);
    /* Loop 4 M3: delay visibility:hidden until the exit slide finishes */
    transition: transform var(--dur-section) var(--ease-out), visibility 0s var(--dur-section);
    visibility: hidden;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; transition: transform var(--dur-section) var(--ease-out), visibility 0s; }
  .site-nav ul { flex-direction: column; gap: var(--space-5); text-align: center; }
  .site-nav a:not(.btn) { font-size: var(--step-2); }
}

/* ---------- sections ---------- */
.section { padding: var(--section-pad) var(--space-4); }
.section-inner { max-width: var(--content-max); margin: 0 auto; }

/* ---------- hero (shell — choreography lands later) ---------- */
.hero { min-height: 88vh; display: grid; place-items: center; padding: var(--section-pad) var(--space-4); }
.hero-inner { max-width: var(--content-max); text-align: center; }
.hero-logo { margin: 0 auto var(--space-5); }
.hero h1 { color: var(--white); margin-inline: auto; max-width: 18ch; }
.hero-sub { margin: 0 auto var(--space-5); max-width: 52ch; color: var(--text-soft); font-size: var(--step-1); }
.hero-ctas { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ---------- contact (Loop 2 F8: two-column closer) ---------- */
.contact-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-cols { grid-template-columns: 1fr; }
}
/* Loop 6 A2: clear the title bar (28px) generously; even row rhythm; promise set apart.
   Compound selector required: .browser-frame's padding-top (28px) is defined later at equal
   specificity and silently won — same bug class as Loop 3's demo-embed. */
.contact-cols .direct-line { padding: 56px var(--space-5) var(--space-5); color: var(--near-black); }
.direct-line h3 { color: var(--ink); margin-bottom: var(--space-4); }
.direct-line a { color: var(--purple); font-weight: 600; text-decoration-thickness: 1.5px; }
.direct-list { list-style: none; margin: 0; padding: 0; }
.direct-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.direct-list li:last-child { border-bottom: 1px solid var(--line); }
.direct-list span { color: #4a3f57; }
.direct-promise {
  font-size: var(--step--1);
  color: #4a3f57;
  margin: var(--space-4) 0 0;
  line-height: 1.5;
}

/* ---------- forms ---------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 760px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--step--1); }
.optional { font-weight: 400; color: var(--text-soft); }
.field input,
.field textarea {
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-ctl);
}
.theme-dark .field input,
.theme-dark .field textarea {
  background: var(--ink-2);
  border-color: #6b5a8e; /* Loop 2 F6: ≥3:1 control boundary on ink (WCAG 1.4.11) */
}
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 0; border-color: var(--focus-ring); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Loop 6 A2: status sits beside the button (reserved space stays inline — no dead band, no CLS) */
.form-status { align-self: center; min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status.error { color: #ffb4b4; }
.form-status.ok { color: var(--accent); }
.contact-form .btn { justify-self: start; }
@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ---------- browser-window frame motif ---------- */
.browser-frame {
  background: var(--white);
  border: 1.5px solid var(--near-black);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding-top: 28px;
  position: relative;
}
.browser-frame::before {
  /* title bar + window controls, from the business-card window */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  border-bottom: 1.5px solid var(--near-black);
  background:
    linear-gradient(currentColor 0 0) no-repeat right 40px top 12px / 8px 1.5px,
    linear-gradient(currentColor 0 0) no-repeat right 24px top 9px / 1.5px 8px,
    linear-gradient(currentColor 0 0) no-repeat right 20.5px top 12.5px / 8px 1.5px;
  color: var(--near-black);
}
.demo-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-6) var(--space-4); }
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  text-align: center;
}
.footer-nav, .footer-contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  justify-content: center;
}
.footer-contact { flex-direction: column; gap: var(--space-1); }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }
.footer-social { list-style: none; display: flex; gap: var(--space-4); margin: 0; padding: 0; }
.footer-social span { color: var(--text-soft); font-size: var(--step--1); }
.footer-legal { color: var(--text-soft); font-size: var(--step--1); margin: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; align-items: center; text-align: center; }
.notfound-art { margin: 0 auto var(--space-4); color: var(--lavender-2); }
.notfound h1 { color: var(--white); }
.notfound p { margin-inline: auto; }
.notfound-links { list-style: none; padding: 0; display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ================= home sections ================= */

.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 var(--space-2);
}
.theme-dark .kicker { color: var(--accent); }
.section-lede { font-size: var(--step-1); color: var(--text-soft); max-width: 56ch; }
.section-alt { background: var(--lavender-2); }
.demo-tag {
  display: inline-block;
  vertical-align: middle;
  font: 600 11px/1.6 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-ctl);
  padding: 2px 8px;
  margin-left: 8px;
}

/* ---------- hero + cloud choreography ---------- */
.hero { position: relative; overflow: hidden; }
.cloud-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Loop 4 M1: backwards fill kills the 10px jump-cut when the 2s delay expires;
     ease-in-out avoids the stop-jerk at each 80s reversal */
  animation: drift 80s ease-in-out 2s infinite alternate backwards;
}
.cloud {
  position: absolute;
  fill: currentColor;
  animation: part var(--dur-grand) var(--ease-out) 0.25s forwards;
}
.cloud-l { color: var(--ink-2); }
.cloud-r { color: #241539; }
.cl-1 { width: 460px; top: 4%;  left: 14%; --tx: -26vw; --ty: -4vh; }
.cl-2 { width: 300px; top: 30%; left: 4%;  --tx: -16vw; --ty: 2vh; color: #3a2566; }
.cl-3 { width: 220px; top: 16%; left: 38%; --tx: -44vw; --ty: -8vh; opacity: .8; }
.cr-1 { width: 500px; top: 6%;  right: 12%; --tx: 26vw; --ty: -5vh; }
.cr-2 { width: 320px; top: 34%; right: 3%;  --tx: 16vw; --ty: 3vh; color: #3a2566; }
.cr-3 { width: 240px; top: 20%; right: 36%; --tx: 44vw; --ty: -7vh; opacity: .8; }
@keyframes part {
  from { transform: translate(0, 0); }
  to   { transform: translate(var(--tx), var(--ty)); }
}
@keyframes drift {
  from { translate: -10px 0; }
  to   { translate: 10px 4px; }
}
/* Loop 2 F1: below ~1140px fixed-px clouds + vw offsets collide with content —
   size clouds in vw and part them fully offscreen */
@media (max-width: 1140px) {
  .cl-1 { width: 38vw; --tx: -130vw; }
  .cl-2 { width: 26vw; --tx: -125vw; }
  .cl-3 { width: 20vw; --tx: -135vw; }
  .cr-1 { width: 40vw; --tx: 130vw; }
  .cr-2 { width: 27vw; --tx: 125vw; }
  .cr-3 { width: 21vw; --tx: 135vw; }
}
/* Loop 2 B2 hybrid: crescent-flask mark alone is revealed; H1 stays the focal point */
.hero-mark {
  width: clamp(64px, 8vw, 96px);
  height: auto;
  color: var(--accent);
  margin: 0 auto var(--space-4);
  display: block;
}
/* hero content enters immediately — never waits for the clouds */
.hero-mark, .hero h1, .hero-sub, .hero-ctas {
  animation: rise var(--dur-section) var(--ease-out) backwards;
}
.hero-mark { animation-delay: .2s; }
.hero h1 { animation-delay: .35s; }
.hero-sub { animation-delay: .5s; }
.hero-ctas { animation-delay: .65s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scroll-cue {
  position: absolute;
  bottom: 10px;
  left: 50%;
  translate: -50% 0;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 22px;
  opacity: 0.55; /* Loop 4 m1: matches the pulse's resting frame — no end snap */
  padding: 12px 16px; /* Loop 2 F14: touch target */
  animation: cue-pulse 1.2s var(--ease-out) 1.8s 2 alternate backwards;
}
@keyframes cue-pulse {
  from { transform: translateY(0); opacity: .55; }
  to   { transform: translateY(6px); opacity: 1; }
}
/* replay guard: intro already seen this session → clouds sit parted, content static */
.intro-done .cloud { animation: none; transform: translate(var(--tx), var(--ty)); }
.intro-done .hero-mark, .intro-done .hero h1, .intro-done .hero-sub, .intro-done .hero-ctas,
.intro-done .scroll-cue { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; transform: translate(var(--tx), var(--ty)); }
  .cloud-stage { animation: none; }
  .hero-mark, .hero h1, .hero-sub, .hero-ctas, .scroll-cue { animation: none; }
}

/* ---------- scroll reveals (enhanced by choreography.js) ---------- */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-section) var(--ease-out), transform var(--dur-section) var(--ease-out);
  transition-delay: var(--stagger, 0ms);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- services ---------- */
.services-tier {
  font-size: var(--step-0);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin: var(--space-6) 0 var(--space-3);
}
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  /* Loop 6 A1: without this, opening one card's <details> stretches every card
     in the row (grid default align-items: stretch) */
  align-items: start;
}
.grid-core { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-creative { grid-template-columns: 1fr; }
@media (min-width: 720px) and (max-width: 1099px) {
  .grid-creative { grid-template-columns: repeat(3, 1fr); } /* 3+2, no single orphan */
}
@media (min-width: 1100px) {
  .grid-creative { grid-template-columns: repeat(5, 1fr); }
}
.svc-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: var(--space-2);
  display: block;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}
.grid-core .svc-card { border-top: 3px solid var(--purple); }
.svc-card h4 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--heading);
  margin: 0 0 var(--space-2);
}
.svc-card p { font-size: var(--step--1); color: var(--text-soft); margin-bottom: var(--space-3); }
.svc-card details { font-size: var(--step--1); }
.svc-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--purple);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-card summary::-webkit-details-marker { display: none; }
.svc-card summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1;
}
.svc-card details[open] summary::before { content: "−"; }
.svc-card details ul { margin: var(--space-2) 0 0; padding-left: 1.2em; color: var(--text-soft); }
.svc-card details li { margin-bottom: 2px; }

/* ---------- why / audiences (Loop 2 F3/F11: balanced explicit grids, differentiated patterns) ---------- */
.why-grid, .aud-grid {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 980px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .aud-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .why-grid, .aud-grid { grid-template-columns: 1fr; }
}
.why-grid h3, .aud-grid h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.why-grid li { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.why-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.aud-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4);
}
.why-grid p, .aud-grid p { font-size: var(--step--1); color: var(--text-soft); margin: 0; }

/* ---------- founders ---------- */
.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.founder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}
.founder-portrait { width: 96px; margin-bottom: var(--space-3); }
.founder-portrait svg { display: block; border-radius: var(--radius-card); }
.founder h3 { margin-bottom: 2px; }
.founder-role { font-size: var(--step--1); color: var(--accent); font-weight: 600; margin-bottom: var(--space-2); }
.founder p { font-size: var(--step--1); color: var(--text-soft); }
.about-quote {
  margin: var(--space-6) auto 0;
  max-width: 56ch;
  border-left: 3px solid var(--accent);
  padding-left: var(--space-4);
}
.about-quote p { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); color: var(--text); }

/* ---------- work ---------- */
.work-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 var(--space-5); }
.chip {
  font: 600 var(--step--1) var(--font-body);
  padding: 10px 18px;
  min-height: 44px; /* Loop 2 F14: touch target */
  border: 1.5px solid var(--purple);
  border-radius: var(--radius-ctl);
  background: transparent;
  color: var(--purple);
  cursor: pointer;
}
.chip.is-active { background: var(--purple); color: var(--white); }
.chip:hover:not(.is-active) { background: var(--lavender-2); }
.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5) var(--space-4);
}
.work-tile.hidden { display: none; }
/* Loop 2 F10: 9 visible + show-more (JS-injected; no-JS users see everything) */
.js .work-tile.extra:not(.shown) { display: none; }
.work-more-wrap { text-align: center; margin-top: var(--space-5); }
.tile-frame { padding: 28px 0 0; overflow: hidden; transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.tile-frame img { display: block; width: 100%; background: var(--lavender-2); /* Loop 2 F2: paint before image decode */ }
.work-tile:hover .tile-frame,
.tile-link:focus-visible .tile-frame { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 #cbb7d6; }
.tile-caption { margin: var(--space-2) 0 0; font-size: var(--step--1); color: var(--text-soft); }
.tile-caption strong { color: var(--text); }
.tile-cta { display: none; /* revealed when the tile's case-study route is live (wrapped in .tile-link) */ color: var(--purple); font-weight: 600; }
.tile-link { display: block; text-decoration: none; color: inherit; }
.tile-link .tile-cta { display: inline; }
.tile-link:hover .tile-cta { text-decoration: underline; }

/* ---------- industries (Loop 2 F4: plain text row — never dress statics as controls) ---------- */
.industry-list {
  list-style: none;
  margin: var(--space-4) 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--text);
}
.industry-list li::after {
  content: "·" / "";
  color: var(--accent-strong);
  margin-left: var(--space-3);
}
.industry-list li:last-child::after { content: ""; margin: 0; }
.industry-stat { font-size: var(--step-1); }

/* ---------- testimonials ---------- */
.testi-grid {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}
.testi-card > p:first-child { font-family: var(--font-display); font-weight: 500; font-size: var(--step-0); }
.testi-attr { font-size: var(--step--1); color: var(--text-soft); margin: 0; }

/* ================= choreography pass (Loop 4) ================= */

/* services: icon stroke micro-draw on card hover */
.svc-card .svc-icon * {
  stroke-dasharray: 70;
  stroke-dashoffset: 0;
}
.svc-card:hover .svc-icon * {
  animation: icon-draw 0.45s var(--ease-out); /* Loop 4 m2: micro tier, not grand */
}
@keyframes icon-draw {
  from { stroke-dashoffset: 70; }
  to { stroke-dashoffset: 0; }
}

/* contact: submit morph (text swap handled in main.js; this smooths the state change) */
.contact-form button[type="submit"] {
  transition: background var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
  min-width: 170px;
}
.contact-form button.sent { background: #7ee2b8; }

/* 404: flask line-draw loop (inline SVG in template) */
.notfound-art .flask-strokes line,
.notfound-art .flask-strokes path {
  stroke-dasharray: 90;
  animation: flask-draw 2.6s var(--ease-out) infinite alternate;
}
@keyframes flask-draw {
  from { stroke-dashoffset: 90; }
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card:hover .svc-icon *,
  .notfound-art .flask-strokes line,
  .notfound-art .flask-strokes path { animation: none; }
}

/* Loop 5 m9: no JS → the hamburger can't work; don't show a dead control */
html:not(.js) .nav-toggle { display: none; }
