/* ============================================================
   COHERO MEDIA — Design System
   Palette derived from brand logo (pixel-sampled).
   Signature: separate channels flowing into one coherent arc.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand — the four flowing channels */
  --violet:  #8B23BE;
  --magenta: #D81E77;
  --orange:  #F76B04;
  --teal:    #12A79C;

  /* Ink & surfaces */
  --ink:     #0F1A3D;   /* wordmark navy — primary text & dark sections */
  --ink-2:   #1B274F;   /* raised dark surface */
  --cloud:   #FBFAFD;   /* page background (warm white) */
  --mist:    #F3F0F8;   /* card / surface */
  --line:    #E6E1F0;   /* hairline borders */
  --slate:   #5A5570;   /* secondary text */
  --slate-2: #837E96;   /* tertiary text */
  --white:   #FFFFFF;

  /* Semantic */
  --bg: var(--cloud);
  --fg: var(--ink);
  --muted: var(--slate);
  --primary: var(--violet);
  --on-primary: #FFFFFF;

  /* The coherence gradient — used only where it means "one system" */
  --flow: linear-gradient(90deg, var(--violet) 0%, var(--magenta) 34%, var(--orange) 68%, var(--teal) 100%);
  --flow-soft: linear-gradient(90deg, rgba(139,35,190,.14), rgba(216,30,119,.14), rgba(247,107,4,.14), rgba(18,167,156,.14));

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);

  /* Elevation (Soft UI — soft, low-contrast, layered) */
  --shadow-sm: 0 1px 2px rgba(15,26,61,.05), 0 2px 8px rgba(15,26,61,.04);
  --shadow-md: 0 4px 12px rgba(15,26,61,.06), 0 12px 32px rgba(15,26,61,.07);
  --shadow-lg: 0 8px 24px rgba(15,26,61,.08), 0 24px 60px rgba(15,26,61,.10);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --container: 1200px;
  --gap: clamp(1rem, 0.6rem + 2vw, 2rem);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 240ms;

  --z-nav: 100;
  --nav-h: 88px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@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.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 2rem + 8vw, 7rem) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--flow);
}
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.lead { color: var(--muted); font-size: var(--step-1); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--ink);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border: 0; border-radius: 999px;
  font-weight: 700; font-size: var(--step-0); line-height: 1;
  color: var(--white); background: var(--_bg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--flow { --_bg: transparent; background-image: var(--flow); background-size: 140% 100%; background-position: 0 0; }
.btn--flow:hover { background-position: 100% 0; }
.btn--ghost {
  --_bg: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet); background: var(--white); }
.btn .ico { width: 18px; height: 18px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--cloud) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 52px; width: auto; flex: none; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  font-size: var(--step--1); font-weight: 600; color: var(--slate);
  position: relative; padding: .35rem 0;
  transition: color var(--dur);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  border-radius: 2px; background: var(--flow); transition: width var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1rem; }

/* language switch */
.lang { display: flex; gap: 2px; padding: 3px; background: var(--mist); border-radius: 999px; }
.lang a {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--slate);
  padding: .3rem .55rem; border-radius: 999px; transition: all var(--dur);
}
.lang a[aria-current="true"] { color: var(--white); background: var(--ink); }
.lang a:not([aria-current="true"]):hover { color: var(--ink); }

.nav__cta { display: inline-flex; }
.nav__toggle { display: none; background: none; border: 0; padding: .4rem; }
.nav__toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(3rem, 2rem + 6vw, 6rem) 0 clamp(2.5rem,5vw,4rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background:
    radial-gradient(60% 60% at 15% 20%, rgba(139,35,190,.16), transparent 60%),
    radial-gradient(55% 55% at 85% 10%, rgba(18,167,156,.14), transparent 60%),
    radial-gradient(50% 50% at 60% 40%, rgba(247,107,4,.10), transparent 60%);
  filter: blur(10px); z-index: -1; pointer-events: none;
}
.hero__inner { max-width: 62ch; }
.hero h1 { font-size: var(--step-4); margin-bottom: 1.1rem; }
.hero h1 .accent {
  background-image: linear-gradient(90deg, rgba(139,35,190,.38), rgba(216,30,119,.38), rgba(247,107,4,.38), rgba(18,167,156,.38));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% .28em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero__sub { font-size: var(--step-1); color: var(--slate); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* strike device */
.strike { color: var(--slate-2); text-decoration: line-through; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; }

/* ---------- Signature: channels → one system ---------- */
.signature { margin-top: clamp(2.5rem, 5vw, 4rem); }
.channels {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .5rem;
}
.channels li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--step--1); font-weight: 700; color: var(--ink);
  padding: .5rem .9rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.channels li .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--_c, var(--violet)); flex: none; }
.channels li:nth-child(1){--_c:var(--violet);} .channels li:nth-child(2){--_c:var(--magenta);}
.channels li:nth-child(3){--_c:var(--orange);} .channels li:nth-child(4){--_c:var(--teal);}
.channels li:nth-child(5){--_c:var(--ink);}

.weave { width: 100%; height: clamp(90px, 14vw, 150px); margin-top: .25rem; }
.weave path { fill: none; stroke-width: 3; stroke-linecap: round; }
.weave .strand { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.5s var(--ease) forwards; }
.weave .strand.s1{ stroke: var(--violet); animation-delay:.15s;}
.weave .strand.s2{ stroke: var(--magenta); animation-delay:.30s;}
.weave .strand.s3{ stroke: var(--orange); animation-delay:.45s;}
.weave .strand.s4{ stroke: var(--teal); animation-delay:.60s;}
.weave .strand.s5{ stroke: var(--ink); animation-delay:.0s;}
.weave .trunk { stroke: url(#flowGrad); stroke-width: 6; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1s var(--ease) .9s forwards; }
.weave .node { fill: var(--ink); opacity: 0; animation: pop .5s var(--ease) 1.6s forwards; }
.weave .node-label { font: 700 15px var(--font-body); fill: var(--white); opacity:0; animation: pop .5s var(--ease) 1.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity:0; transform: scale(.6);} to { opacity:1; transform: scale(1);} }
.system-tag {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: .4rem;
  font-weight: 700; color: var(--ink); font-size: var(--step-0);
}
.system-tag .chip { padding:.3rem .8rem; border-radius:999px; color:#fff; background:var(--flow); font-size: var(--step--1); }

/* ============================================================
   "NE YAPIYORUZ" — statement
   ============================================================ */
.statement { background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem,5vw,4.5rem); }
.statement .eyebrow { color: #C9B8FF; }
.statement h2 { font-size: var(--step-3); color: var(--white); max-width: 20ch; }
.statement h2 em { font-style: normal; background: var(--flow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement p { color: rgba(255,255,255,.78); max-width: 60ch; }
.statement__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.statement__points { display: grid; gap: 1rem; }
.point { display: flex; gap: .9rem; padding: 1rem 1.2rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-sm); }
.point .n { font-family: var(--font-display); font-weight: 700; color: var(--white); background: rgba(255,255,255,.08); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; flex: none; }
.point b { display:block; }
.point span { color: rgba(255,255,255,.7); font-size: var(--step--1); }

/* ============================================================
   SERVICES — bento
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.svc {
  position: relative; padding: 1.7rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  grid-column: span 2; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--_a) 40%, var(--line)); }
.svc::before { content:""; position:absolute; inset:0 0 auto 0; height: 4px; background: var(--_a); opacity:.9; }
.svc__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem; background: color-mix(in srgb, var(--_a) 12%, white); color: var(--_a); }
.svc__icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: var(--step-1); }
.svc p { color: var(--slate); font-size: var(--step--1); margin: 0; }
.svc__tag { display:inline-block; margin-top: 1rem; font-size: 11px; font-weight:700; letter-spacing:.08em; text-transform: uppercase; color: var(--_a); }
.svc.c-violet{--_a:var(--violet);} .svc.c-magenta{--_a:var(--magenta);}
.svc.c-orange{--_a:var(--orange);} .svc.c-teal{--_a:var(--teal);}
/* feature (wider) cards */
.svc.is-wide { grid-column: span 3; }
.svc__note { margin-top:.8rem; font-size:12px; color: var(--slate-2); display:flex; gap:.4rem; align-items:flex-start; }
.svc__note svg{ width:15px;height:15px;flex:none;margin-top:2px;color:var(--_a);}

/* ============================================================
   APPROACH — 5 steps
   ============================================================ */
.approach { background: var(--mist); }
.steps { display: grid; gap: 1rem; position: relative; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.step:hover { transform: translateX(6px); }
.step__n {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-2);
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  color: var(--white); background: var(--ink); position: relative;
}
.step:nth-child(1) .step__n{ background: var(--violet);} .step:nth-child(2) .step__n{ background: var(--magenta);}
.step:nth-child(3) .step__n{ background: var(--orange);} .step:nth-child(4) .step__n{ background: var(--teal);}
.step:nth-child(5) .step__n{ background: var(--ink);}
.step h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.step p { color: var(--slate); font-size: var(--step--1); margin: 0; }

/* ============================================================
   CASES
   ============================================================ */
/* Subgrid: top / body / foot rows are shared across both cards, so KAPSAM + links
   align exactly regardless of body text length or card-height stretch behaviour. */
.cases__grid { display: grid; grid-template-columns: repeat(2,1fr); grid-template-rows: auto 1fr auto auto; gap: 1.4rem; }
.case {
  display: grid; grid-row: span 4; grid-template-rows: subgrid;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case__top { padding: 1.7rem 1.7rem 1.2rem; background: var(--_bg, var(--ink)); color: #fff; position: relative; }
.case.dx{ --_bg: linear-gradient(135deg, #0F1A3D, #2a1150 55%, #7a1a6e); }
.case.mx{ --_bg: linear-gradient(135deg, #0F1A3D, #113f4a 55%, #12A79C); }
.case__kicker { font-size: 11px; font-weight:700; letter-spacing:.12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.case__top h3 { font-size: var(--step-2); color:#fff; margin:.4rem 0 .2rem; }
.case__sector { font-size: var(--step--1); color: rgba(255,255,255,.8); margin:0; }
.case__body { padding: 1.5rem 1.7rem 0; display: flex; flex-direction: column; gap: 1.1rem; }
/* KAPSAM + links live in a foot pinned to the card bottom, so both align across cards regardless of body text length */
/* foot box disappears so KAPSAM and links become their own subgrid rows (rows 3 & 4),
   each aligned across both cards independently — robust at every width. */
.case__foot { display: contents; }
.case__foot > .case__row { padding: 1.1rem 1.7rem 0; align-self: start; }
.case__row h4 { font-size: 12px; letter-spacing:.08em; text-transform: uppercase; color: var(--slate-2); margin:0 0 .3rem; font-family: var(--font-body); font-weight:700;}
.case__row p { font-size: var(--step--1); color: var(--slate); margin:0; }
.case__chips { display:flex; flex-wrap:wrap; gap:.4rem; }
.case__chips span { font-size: 12px; font-weight:600; padding:.3rem .7rem; border-radius:999px; background: var(--mist); color: var(--ink); border:1px solid var(--line); }
.case__links { display:flex; flex-wrap:wrap; gap:.6rem; padding: 1.1rem 1.7rem 1.7rem; align-self: start; }
.case__links a {
  display:inline-flex; align-items:center; gap:.4rem; font-size:13px; font-weight:600; color: var(--ink);
  padding:.5rem .8rem; border-radius:999px; border:1px solid var(--line); transition: all var(--dur);
}
.case__links a:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.case__links svg { width:16px; height:16px; }

/* ============================================================
   CONTACT / FINAL CTA
   ============================================================ */
.contact { background: var(--ink); color: #fff; }
.contact .eyebrow { color: #C9B8FF; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
.contact h2 { color: #fff; font-size: var(--step-3); max-width: 18ch; }
.contact__lead { color: rgba(255,255,255,.75); max-width: 46ch; }
.contact__info { display: grid; gap: .8rem; margin-top: 1.8rem; }
.contact__info a { display:inline-flex; align-items:center; gap:.7rem; color: rgba(255,255,255,.9); font-weight:600; }
.contact__info a:hover { color:#fff; }
.contact__info .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display:grid; place-items:center; flex:none; }
.contact__info .ic svg { width:20px; height:20px; }
.socials { display:flex; gap:.6rem; margin-top:1.5rem; }
.socials a { width:42px; height:42px; border-radius:12px; background: rgba(255,255,255,.07); display:grid; place-items:center; transition: all var(--dur); }
.socials a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.socials svg { width:20px; height:20px; }

/* form */
.form { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2.2rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display:block; font-size: 13px; font-weight:600; color: rgba(255,255,255,.85); margin-bottom: .4rem; }
.field label .req { color: var(--orange); }
.field input, .field textarea {
  width:100%; padding: .85rem 1rem; font: inherit; font-size: var(--step--1); color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm);
  transition: border-color var(--dur), background var(--dur);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: rgba(255,255,255,.09); }
.field textarea { resize: vertical; min-height: 110px; }
.field.err input, .field.err textarea { border-color: #ff6b6b; }
.field__err { display:none; color:#ffb0b0; font-size:12px; margin-top:.35rem; }
.field.err .field__err { display:block; }
.form .btn { width:100%; justify-content:center; margin-top:.4rem; }
.form__consent { font-size: 12px; color: rgba(255,255,255,.55); margin-top: .9rem; }
.form__alert { display:none; margin-top: .9rem; padding: .7rem .9rem; border-radius: var(--radius-sm);
  background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); color: #ffd0d0; font-size: 13px; }
.form__success { display:none; text-align:center; padding: 2rem 1rem; }
.form__success.show { display:block; }
.form__success .check { width:64px;height:64px;margin:0 auto 1rem; border-radius:50%; background:var(--flow); display:grid; place-items:center; }
.form__success .check svg{ width:32px;height:32px;stroke:#fff; }
.form__success h3{ color:#fff; }
.form__success p{ color: rgba(255,255,255,.7); }
.form.sent .form__body { display:none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0B1330; color: rgba(255,255,255,.7); padding: 3rem 0 2rem; }
.footer__top { display:flex; flex-wrap:wrap; gap:1.5rem; justify-content:space-between; align-items:center; padding-bottom:2rem; border-bottom:1px solid rgba(255,255,255,.09); }
.footer__logo img { height: 44px; }
.footer__nav { display:flex; flex-wrap:wrap; gap:1.4rem; }
.footer__nav a { font-size: var(--step--1); color: rgba(255,255,255,.7); }
.footer__nav a:hover { color:#fff; }
.footer__bottom { display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; padding-top:1.5rem; font-size:13px; }
.footer__bottom a:hover{ color:#fff; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
  .svc { grid-column: span 2; }
  .svc.is-wide { grid-column: span 4; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav[data-open="true"] .nav__links {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    background: var(--cloud); padding: 1.2rem 1.4rem; gap: 1rem; box-shadow: var(--shadow-md); border-bottom:1px solid var(--line);
  }
  .statement__grid, .contact__grid { grid-template-columns: 1fr; }
  /* single column: drop subgrid, revert cards to simple flex stacking */
  .cases__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .case { display: flex; flex-direction: column; grid-row: auto; grid-template-rows: none; }
  .case__foot { align-self: auto; margin-top: auto; }
}
@media (max-width: 640px) {
  .nav__logo img { height: 42px; }
  .services__grid { grid-template-columns: 1fr; }
  .svc, .svc.is-wide { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .step { grid-template-columns: auto 1fr; }
  .step__n { width: 52px; height: 52px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .weave .strand, .weave .trunk { stroke-dashoffset: 0 !important; }
  .weave .node, .weave .node-label { opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
