/* =============================================================================
   Lynway Health and Wellbeing Solutions — design system
   Direction: "clinical warmth, editorially composed"
   Palette locked to brand: crimson red, charcoal ink, warm near-white.
   ============================================================================ */

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --red:        #D31820;   /* brand crimson */
  --red-bright: #FF1A1A;   /* brighter accent from the mark */
  --oxblood:    #9E0F16;   /* depth / hover */
  --ink:        #201C1D;   /* charcoal text */
  --ink-soft:   #5C5557;   /* secondary text */
  --ink-faint:  #8A8284;
  --paper:      #FBFAF8;   /* warm near-white base */
  --surface:    #FFFFFF;
  --sand:       #F3EEE8;   /* warm alt section */
  --sand-deep:  #ECE4DA;
  --line:       #E7E2DD;   /* hairline */
  --line-strong:#D8D1C9;

  --logo-red: var(--red);

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(32,28,29,.05), 0 2px 8px rgba(32,28,29,.04);
  --shadow-md: 0 6px 18px rgba(32,28,29,.08), 0 22px 48px -24px rgba(32,28,29,.18);
  --shadow-lg: 0 18px 48px -12px rgba(32,28,29,.22), 0 40px 90px -40px rgba(158,15,22,.18);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
  overflow: visible;            /* never clip ascenders, descenders or italic overhang */
}
.display {
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  font-weight: 460;
  line-height: 1.02;            /* a touch of room so glyphs are never shaved */
}
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
/* Italic emphasis leans right; pad the box so its tail is never cut, with a
   matching negative margin so the visual baseline stays exactly aligned. */
h1 em, h2 em, h3 em, .display em, .thesis-statement .hl {
  padding-right: .08em; margin-right: -.08em;
}
p  { color: var(--ink-soft); }
.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
em, .italic { font-style: italic; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block;
}
.eyebrow.center::after {
  content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block;
}
.eyebrow.muted { color: var(--ink-faint); }
.eyebrow.muted::before, .eyebrow.muted::after { background: var(--line-strong); }

/* ---- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: rgba(251,250,248,.72); }
.center { text-align: center; }
.measure { max-width: 40ch; }
.measure-wide { max-width: 60ch; }
.stack > * + * { margin-top: 1.1rem; }

.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; }
.section-head .lede { margin-top: 1.1rem; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--bg); color: var(--fg);
  padding: .95rem 1.6rem; border: 0; border-radius: 100px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), color .35s var(--ease);
  box-shadow: 0 8px 22px -10px rgba(211,24,32,.6);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--oxblood);
  transform: translateY(101%); transition: transform .42s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(158,15,22,.65); }
.btn:hover::after { transform: translateY(0); }
.btn .ar { transition: transform .35s var(--ease-out); }
.btn:hover .ar { transform: translate(3px,-3px); }

.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border: 1.5px solid var(--line-strong); box-shadow: none;
}
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { --fg: #fff; color: #fff; box-shadow: var(--shadow-md); border-color: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); box-shadow: var(--shadow-md); }
.btn--light::after { background: var(--paper); }
.btn--light:hover { color: var(--ink); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--ink);
  background-image: linear-gradient(var(--red),var(--red));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease-out), color .3s var(--ease);
  padding-bottom: 2px;
}
.textlink .ar { transition: transform .35s var(--ease-out); color: var(--red); }
.textlink:hover { color: var(--red); background-size: 100% 2px; }
.textlink:hover .ar { transform: translateX(4px); }

/* =============================================================================
   Header
   ============================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(32,28,29,.4);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 78px; transition: height .4s var(--ease);
}
.scrolled .header-inner { height: 66px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); flex-shrink: 0; }
.brand .logo-mark { transition: transform .5s var(--ease-out); }
.brand:hover .logo-mark { transform: rotate(-4deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 540; font-size: 1.18rem;
  letter-spacing: -0.02em; color: var(--ink);
}
.brand-tag {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-top: 3px;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .35rem; align-items: center; }
.main-nav a {
  position: relative; padding: .55rem .85rem; border-radius: 100px;
  font-weight: 500; font-size: .98rem; color: var(--ink);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 0; height: 2px;
  background: var(--red); border-radius: 2px; transform: translateX(-50%);
  transition: width .35s var(--ease-out);
}
.main-nav a:hover { color: var(--red); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 18px; }
.main-nav a[aria-current="page"] { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-phone {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600;
  color: var(--ink); font-size: .98rem;
}
.header-phone svg { color: var(--red); }
.header-phone span small {
  display: block; font-size: .66rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
}
.nav-toggle { display: none; }

/* =============================================================================
   Hero
   ============================================================================ */
.hero { position: relative; padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem); overflow-x: clip; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-top: 1.4rem; }
.hero .lede { margin-top: 1.6rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem 1.8rem; margin-top: 2.6rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.hero-trust li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.hero-trust svg { color: var(--red); flex-shrink: 0; }

/* rotating word */
.rotator { display: inline-block; position: relative; color: var(--red); font-style: italic; white-space: nowrap; }
.rotator .word {
  display: inline-block;
  /* Symmetric padding + matching negative margin: the gradient paint-box fully
     covers the italic glyphs (no clipped edges) while staying perfectly aligned. */
  padding: .04em .14em; margin: -.04em -.14em;
  background: linear-gradient(95deg, var(--red-bright), var(--red) 55%, var(--oxblood));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* signature "cut" image panel */
.hero-media { position: relative; }
.cut-panel {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.4;
  /* the signature diagonal corner cut, echoing the monogram */
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}
.cut-panel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-arc {
  position: absolute; right: -26px; bottom: 36px; width: 140px; height: 140px;
  border: 14px solid var(--red); border-radius: 50%;
  border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(35deg); z-index: 2; pointer-events: none;
}
.hero-badge {
  position: absolute; left: -22px; top: 40px; z-index: 3;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: .85rem; border: 1px solid var(--line);
}
.hero-badge .ring {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--red) 12%, #fff); color: var(--red);
}
.hero-badge b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 520; line-height: 1; color: var(--ink); }
.hero-badge small { display: block; font-size: .76rem; color: var(--ink-soft); margin-top: 2px; }
.hero-stat-float {
  position: absolute; right: 14px; bottom: -22px; z-index: 3;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: .9rem 1.15rem; box-shadow: var(--shadow-md);
}
.hero-stat-float b { font-family: var(--font-display); font-size: 1.6rem; color: #fff; font-weight: 520; display: block; line-height: 1; }
.hero-stat-float small { font-size: .74rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }

/* =============================================================================
   Marquee trust strip
   ============================================================================ */
.trust-strip { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.trust-track {
  display: flex; gap: 3.5rem; align-items: center; white-space: nowrap;
  padding-block: 1.05rem; width: max-content;
  animation: marquee 32s linear infinite;
}
.trust-strip:hover .trust-track { animation-play-state: paused; }
.trust-track span { display: inline-flex; align-items: center; gap: .65rem; font-weight: 600; color: var(--ink); font-size: .98rem; }
.trust-track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================================
   Thesis / about intro
   ============================================================================ */
.thesis-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.thesis-statement { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-family: var(--font-display); font-weight: 420; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
.thesis-statement .hl { color: var(--red); font-style: italic; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; margin-top: 2.4rem; }
.stat { }
.stat b { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.4rem); font-weight: 480; color: var(--ink); line-height: 1; display: block; white-space: nowrap; }
.stat b .suffix { color: var(--red); }
.stat span { display: block; margin-top: .5rem; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }

/* =============================================================================
   Services
   ============================================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.svc-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s var(--ease);
  will-change: transform;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(32,28,29,.35), transparent 55%);
}
.svc-icon {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--red);
  backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.svc-card:hover .svc-icon { background: var(--red); color: #fff; }
.svc-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { margin-bottom: .55rem; }
.svc-body p { font-size: .98rem; flex: 1; }
.svc-body .textlink { margin-top: 1.1rem; }
/* corner cut accent */
.svc-card::before {
  content: ""; position: absolute; top: 0; right: 0; z-index: 3;
  width: 0; height: 0; border-style: solid; border-width: 0 38px 38px 0;
  border-color: transparent var(--red) transparent transparent;
  opacity: 0; transform: translate(8px,-8px); transition: opacity .4s var(--ease), transform .45s var(--ease-out);
}
.svc-card:hover::before { opacity: 1; transform: translate(0,0); }

/* =============================================================================
   Approach (process sequence)
   ============================================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--red);
  letter-spacing: .04em;
}
.step::after {
  content: ""; position: absolute; top: 8px; left: 3.2rem; right: -0.7rem; height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { font-size: .96rem; }

/* =============================================================================
   Stat band (red)
   ============================================================================ */
.band-red {
  background:
    radial-gradient(120% 140% at 85% -10%, var(--red-bright), transparent 45%),
    linear-gradient(135deg, var(--red) 0%, var(--oxblood) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.band-red::before {
  content: ""; position: absolute; right: -120px; bottom: -160px;
  width: 460px; height: 460px; border: 60px solid rgba(255,255,255,.07); border-radius: 50%;
}
.band-red .wrap { position: relative; z-index: 1; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.band-grid .stat b { color: #fff; }
.band-grid .stat b .suffix { color: rgba(255,255,255,.85); }
.band-grid .stat span { color: rgba(255,255,255,.82); }

/* =============================================================================
   Testimonials
   ============================================================================ */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; position: relative; display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote-mark { font-family: var(--font-display); font-size: 4rem; line-height: .6; color: var(--red); opacity: .25; height: 2rem; }
.stars { display: flex; gap: 3px; color: var(--red); margin-bottom: 1rem; }
.quote-card blockquote { font-size: 1.08rem; color: var(--ink); line-height: 1.5; flex: 1; }
.quote-author { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.quote-author b { font-weight: 600; color: var(--ink); }
.quote-author small { display: block; color: var(--ink-faint); font-size: .85rem; margin-top: 2px; }

/* =============================================================================
   CTA band / careers
   ============================================================================ */
.cta-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.cta-split .btn { margin-top: 1.8rem; }
.cta-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow-lg);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%, 0 22%); }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================================
   Forms
   ============================================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: .85rem 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }
.check label { font-weight: 500; color: var(--ink-soft); font-size: .92rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  background: color-mix(in srgb, var(--red) 8%, #fff); border: 1px solid color-mix(in srgb, var(--red) 30%, #fff);
  color: var(--oxblood); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.4rem;
}
.form-error ul { display: grid; gap: .3rem; }
.form-error li { font-size: .92rem; position: relative; padding-left: 1.1rem; }
.form-error li::before { content: "•"; position: absolute; left: 0; color: var(--red); }
.form-success {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
}
.form-success h3 { margin-bottom: .6rem; }
.form-success .ref { font-family: var(--font-display); font-size: 1.3rem; color: var(--red); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow-sm); }
.contact-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--sand); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.contact-list b { display: block; color: var(--ink); }
.contact-list a, .contact-list span { color: var(--ink-soft); }

/* =============================================================================
   Footer
   ============================================================================ */
.site-footer { background: var(--ink); color: rgba(251,250,248,.7); padding-top: clamp(3.5rem,7vw,6rem); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: rgba(251,250,248,.6); margin-top: 1rem; max-width: 32ch; font-size: .95rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 700; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: rgba(251,250,248,.7); font-size: .96rem; transition: color .3s var(--ease), padding-left .3s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.news-form { display: flex; gap: .5rem; margin-top: 1rem; }
.news-form input { flex: 1; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.16); color: #fff; border-radius: 100px; padding: .8rem 1.1rem; font: inherit; }
.news-form input::placeholder { color: rgba(255,255,255,.45); }
.news-form input:focus { outline: none; border-color: var(--red); }
.news-form button { background: var(--red); color: #fff; border: 0; border-radius: 100px; width: 48px; display: grid; place-items: center; flex-shrink: 0; transition: background .3s var(--ease); }
.news-form button:hover { background: var(--red-bright); }
.news-msg { font-size: .85rem; margin-top: .6rem; min-height: 1.2em; color: var(--red-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-block: 1.8rem; font-size: .85rem; color: rgba(251,250,248,.5); }
.footer-bottom a:hover { color: #fff; }

/* =============================================================================
   Reveal animations
   ============================================================================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].is-in { transform: none; }

/* page intro sequence (hero) */
.boot [data-boot] { opacity: 0; transform: translateY(20px); }
.boot-ready [data-boot] { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) var(--bd,0ms), transform .9s var(--ease-out) var(--bd,0ms); }

/* =============================================================================
   Page hero (inner pages)
   ============================================================================ */
.page-hero { padding-block: clamp(3rem,6vw,5rem) clamp(2rem,4vw,3rem); position: relative; }
.page-hero .display { font-size: clamp(2.4rem,5vw,4rem); margin-top: 1rem; }
.page-hero .lede { margin-top: 1.2rem; max-width: 54ch; }
.breadcrumb { font-size: .85rem; color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--red); }

/* prose */
.prose p { margin-bottom: 1.1rem; max-width: 65ch; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose ul.ticks { display: grid; gap: .8rem; margin: 1.2rem 0; }
.prose ul.ticks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.prose ul.ticks svg { color: var(--red); flex-shrink: 0; margin-top: 3px; }

/* =============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-media { max-width: 520px; }
  .services-grid, .quotes { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step::after { display: none; }
  .band-grid { grid-template-columns: repeat(2,1fr); gap: 2.5rem 1rem; }
  .thesis-grid, .cta-split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink);
  }
  .nav-open .nav-toggle { background: var(--red); color: #fff; border-color: var(--red); }
  .mobile-nav {
    position: fixed; inset: 78px 0 auto 0; z-index: 99;
    background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-110%); transition: transform .45s var(--ease-out);
    box-shadow: var(--shadow-lg); padding: 1rem var(--gutter) 2rem;
  }
  .nav-open .mobile-nav { transform: translateY(0); }
  .mobile-nav a { display: block; padding: 1rem .25rem; font-size: 1.15rem; font-family: var(--font-display); border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 1.4rem; width: 100%; justify-content: center; }
  .services-grid, .quotes, .form-grid, .stat-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-badge { left: 8px; padding: .8rem .9rem; }
  .hero-stat-float { right: 8px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (min-width: 721px) { .mobile-nav { display: none; } }
