/* ==========================================================================
   Flywheel — D2C Growth Agency
   Design system + page styles. No build step; edit this file directly.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --ink: #141414;
  --ink-2: #212121;          /* logo charcoal */
  --lime: #c3e13f;           /* logo accent */
  --lime-dim: #a9c72f;

  /* Surfaces */
  --paper: #fbfbf8;
  --paper-2: #f2f2ec;
  --paper-3: #e9e9e0;
  --card: #ffffff;

  /* Text */
  --text: #141414;
  --text-muted: #5d5f5a;
  --text-invert: #fbfbf8;
  --text-invert-muted: #a3a59d;

  /* Lines */
  --line: rgba(20, 20, 20, 0.12);
  --line-invert: rgba(251, 251, 248, 0.16);

  /* Shape */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Rhythm */
  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 140px);

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.05), 0 4px 14px rgba(20, 20, 20, 0.05);
  --shadow-md: 0 18px 50px rgba(20, 20, 20, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p  { text-wrap: pretty; }

::selection { background: var(--lime); color: var(--ink); }

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

/* --- Layout primitives ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

.section--dark {
  background: var(--ink);
  color: var(--text-invert);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-invert); }
.section--dark p { color: var(--text-invert-muted); }

.section--paper2 { background: var(--paper-2); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--ink);
  color: var(--text-invert);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  z-index: 200;
}
.skip-link:focus { left: 12px; }

/* --- Eyebrow / labels ----------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime);
  flex: none;
}
.section--dark .eyebrow { color: var(--lime); }

.section-head { max-width: 46ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-top: 18px; }
.section--dark .section-head p { color: var(--text-invert-muted); }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--text-muted); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: #d2ec5f; }

.btn--ink { background: var(--ink); color: var(--text-invert); }
.btn--ink:hover { background: #2c2c2c; }

.btn--ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--ink); }

.section--dark .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost { border-color: var(--line-invert); color: var(--text-invert); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.65; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}
.brand img { width: 30px; height: 30px; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--text); }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--text-invert);
  padding-block: clamp(72px, 11vw, 132px) clamp(56px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -190px; top: -230px;
  background: radial-gradient(circle, rgba(195, 225, 63, 0.16) 0%, transparent 68%);
  pointer-events: none;
}
.hero .eyebrow { color: var(--lime); }
.hero h1 { color: var(--text-invert); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-lede {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--text-invert-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Stat bar */
.statbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(52px, 7vw, 84px);
  background: var(--line-invert);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.statbar > div { background: var(--ink); padding: 28px 26px; }
.statbar .n {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--lime);
  line-height: 1;
}
.statbar .l {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-invert-muted);
  letter-spacing: 0.01em;
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--ink);
  color: var(--text-invert);
  padding-block: clamp(64px, 9vw, 116px) clamp(52px, 7vw, 88px);
}
.page-hero h1 { color: var(--text-invert); max-width: 18ch; }
.page-hero p {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--text-invert-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}
.page-hero .eyebrow { color: var(--lime); }

/* --- Client logo wall ----------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.logo-wall figure {
  background: var(--card);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 22px;
  transition: background 0.3s var(--ease);
}
.logo-wall figure:hover { background: var(--paper-2); }
.logo-wall img {
  max-height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.logo-wall figure:hover img { filter: grayscale(0); opacity: 1; }

/* --- Results / case cards ------------------------------------------------- */
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.result-card .cat {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.result-card h3 { margin-top: 14px; }
.result-card > p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.97rem;
  flex: 1;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.metrics > div { flex: 1 1 90px; }
.metrics .n {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.metrics .n.up { color: #2f7d32; }
.metrics .n.down { color: #b3402b; }
.metrics .l {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 7px;
  letter-spacing: 0.02em;
}

/* Full case study block (work page) */
.case {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-aside .cat {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.case-aside h2 { margin-top: 14px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.case-aside .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.case-aside .tags span {
  font-size: 0.79rem;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
}

.case-body .block { margin-bottom: 26px; }
.case-body .block:last-of-type { margin-bottom: 0; }
.case-body h4 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
  font-weight: 600;
}
.case-body p { color: var(--text-muted); }
.case-body ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.case-body ul li { margin-bottom: 7px; }
.case-body ul li::marker { color: var(--lime-dim); }

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 30px;
}
.case-metrics > div { background: var(--card); padding: 24px 20px; }
.case-metrics .n {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.case-metrics .n.up { color: #2f7d32; }
.case-metrics .n.down { color: #b3402b; }
.case-metrics .l { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }

/* --- Generic card grids --------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.8vw, 34px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }
.card .chan {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.section--dark .card {
  background: #1c1c1c;
  border-color: var(--line-invert);
}
.section--dark .card p { color: var(--text-invert-muted); }

/* Numbered step list */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  border-top: 2px solid var(--line-invert);
  padding-top: 22px;
}
.step .num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.1em;
}
.step h3 { margin: 12px 0 10px; font-size: 1.2rem; }
.step p { font-size: 0.94rem; }

/* Leak / problem list */
.leaks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.leak {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: var(--r-md);
  padding: 28px;
}
.leak .tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.leak h3 { margin: 12px 0 10px; font-size: 1.18rem; }
.leak p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Offer panel ---------------------------------------------------------- */
.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(30px, 4.4vw, 60px);
}
.offer ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.offer ul li { margin-bottom: 10px; }
.offer ul li::marker { color: var(--lime-dim); }
.offer .price {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.offer .price .n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.offer .price .l { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(38px, 5.5vw, 76px);
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p {
  max-width: 52ch;
  margin: 20px auto 0;
  color: rgba(20, 20, 20, 0.72);
  font-size: 1.06rem;
}
.cta-band .btn { margin-top: 34px; }

/* --- Contact / form ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-detail { margin-bottom: 26px; }
.contact-detail .k {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 7px;
}
.contact-detail .v { font-size: 1.06rem; font-weight: 500; }
.contact-detail .v a { border-bottom: 1px solid var(--lime); padding-bottom: 1px; }

form.audit-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 40px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--card);
}
.field textarea { resize: vertical; min-height: 118px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.84rem; color: var(--text-muted); margin-top: 16px; }
.form-status { margin-top: 16px; font-size: 0.96rem; }
.form-status.is-success {
  padding: 20px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  color: var(--text);
}
.form-status.is-error { color: #b3402e; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--text-invert-muted);
  padding-block: clamp(48px, 6vw, 80px) 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-invert);
}
.site-footer .brand { color: var(--text-invert); }
.site-footer p { font-size: 0.94rem; margin-top: 16px; max-width: 38ch; }
.footer-col h4 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-invert);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: 0.85rem;
}

/* --- Scroll reveal -------------------------------------------------------- */
/* Hidden only when JS is running — without JS the content is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps  { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .case { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { padding: 15px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .grid-4, .leaks, .result-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .case-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { width: 100%; }
}

/* --- Imagery and service icons -------------------------------------------- */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
  position: relative;
  z-index: 1;
}
.hero-copy { min-width: 0; }
.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.approach-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: clamp(32px, 4vw, 56px);
  border-radius: var(--r-lg);
}
.card-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.section--dark .card-icon { color: var(--lime); }

@media (min-width: 900px) {
  .hero-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .hero-image { max-height: none; }
}

/* --- Loop composition ----------------------------------------------------- */
.loop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
}
.loop-visual { min-width: 0; }
.loop-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.loop-steps {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (max-width: 899.98px) {
  .loop-steps .step {
    border-top: 0;
    border-left: 2px solid color-mix(in srgb, var(--lime) 30%, transparent);
    padding-top: 0;
    padding-left: 20px;
  }
}

@media (min-width: 900px) {
  .loop-layout { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
  .loop-visual {
    position: relative;
    min-height: 380px;
  }
  .loop-image {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 380px;
  }
  .loop-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Service art tiles ---------------------------------------------------- */
.card--art {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.card--art .card-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 457;
  object-fit: cover;
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
}
.card--art .card-content { padding: clamp(24px, 2.8vw, 34px); }
.section--dark .card--art { border-color: var(--line-invert); }
.section--dark .card--art .chan { color: var(--text-invert-muted); }
.card--art:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  .card--art, .card--art:hover { transform: none; }
}
