/* =============================================================================
   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:   #575052;   /* secondary text (7:1 on paper) */
  --ink-faint:  #746D6F;   /* captions & labels (4.6:1 on paper — AA) */
  --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,.78); 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; }
/* Brand red is too dark against ink — use a red tint for small text on dark. */
.site-footer .brand-tag, .section--ink .eyebrow, .sidebar .brand-tag { color: #FF8A8F; }
.section--ink .eyebrow::before, .section--ink .eyebrow::after { background: #FF8A8F; }
.footer-brand p { color: rgba(251,250,248,.7); 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,.78); 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,.64); }
.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; margin-inline: auto; width: 100%; }
  .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; }
}
/* Staged header collapse: phone → CTA → hamburger, so nothing ever crowds. */
@media (max-width: 1140px) {
  .header-phone { display: none; }
}
@media (max-width: 980px) {
  .header-actions { display: none; }
  .main-nav { margin-left: auto; }
}
@media (max-width: 860px) {
  .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: 861px) { .mobile-nav { display: none; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem .8rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .page-hero .display { overflow-wrap: anywhere; }
}

/* =============================================================================
   Jobs board, application, portal & admin — added with the merge.
   Reuses the existing token system (--red, --ink, --paper, --line …).
   ============================================================================ */

/* ---- Shared small utilities ---------------------------------------------- */
.muted { color: var(--ink-faint); }
.spacer { margin-left: auto; }
.btn--sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn--xs { padding: .4rem .8rem; font-size: .82rem; box-shadow: none; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; line-height: 1;
  padding: .32rem .6rem; border-radius: 100px; text-transform: capitalize;
  background: var(--sand); color: var(--ink-soft); border: 1px solid var(--line);
}
.chip--red { background: color-mix(in srgb, var(--red) 10%, #fff); color: var(--oxblood); border-color: color-mix(in srgb, var(--red) 22%, #fff); }
.rule { border: none; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.flash { border-radius: var(--radius-sm); padding: .9rem 1.2rem; margin-bottom: 1.4rem; font-weight: 500; }
.flash--ok { background: color-mix(in srgb, #2f7d4f 12%, #fff); border: 1px solid color-mix(in srgb, #2f7d4f 28%, #fff); color: #1e5e3a; }

/* RAG status pills */
.rag { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; padding: .28rem .55rem; border-radius: 100px; text-transform: capitalize; }
.rag::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.rag--valid    { background: #e7f2ec; color: #2f7d4f; }
.rag--expiring { background: #fbf0dc; color: #b9791c; }
.rag--expired  { background: #fbe1df; color: #c0271f; }
.rag--missing, .rag--pending { background: #efeceb; color: #8a8285; }

/* =============================================================================
   Jobs board
   ============================================================================ */
.jobs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
/* Let grid children shrink below their content size so nothing overflows the viewport. */
.jobs-layout > *, .job-detail > *, .detail-grid > *, .dash-cols > *, .kpi-grid > *, .job-card { min-width: 0; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; }
.filter-panel h3 { font-family: var(--font-body); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: .8rem; }
.filter-group { margin-bottom: 1.4rem; }
.filter-input { width: 100%; font: inherit; background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.filter-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent); }
.filter-check { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; font-size: .95rem; }
.filter-check input { width: 18px; height: 18px; accent-color: var(--red); }
.jobs-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }

.job-list { display: flex; flex-direction: column; gap: 1rem; }
.job-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: center;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease-out);
}
.job-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-card.is-featured { border-left: 4px solid var(--red); }
.job-card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.job-card h3 a { color: var(--ink); }
.job-card h3 a:hover { color: var(--red); }
.job-card__summary { font-size: .95rem; margin-bottom: .7rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .88rem; color: var(--ink-faint); }
.job-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.job-meta svg { color: var(--red); }
.job-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.job-salary { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); white-space: nowrap; }

.empty { text-align: center; padding: 4rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-faint); }
.empty svg { color: var(--line-strong); margin: 0 auto 1rem; }
.empty h3 { color: var(--ink-soft); }

/* Job detail */
.job-detail { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.job-aside { position: sticky; top: 90px; background: var(--sand); border-radius: var(--radius); padding: 1.8rem; }
.job-aside__dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; margin: 1.4rem 0; }
.job-aside__dl dt { color: var(--ink-faint); font-size: .85rem; }
.job-aside__dl dd { font-weight: 600; text-align: right; }

/* =============================================================================
   Application form
   ============================================================================ */
.apply-form .fieldset { border: none; padding: 0; margin: 0 0 2.4rem; }
.apply-form .fieldset + .fieldset { border-top: 1px solid var(--line); padding-top: 2rem; }
.fieldset > legend { font-family: var(--font-display); font-size: 1.5rem; font-weight: 480; padding: 0; margin-bottom: .3rem; }
.fieldset__hint { color: var(--ink-faint); font-size: .9rem; margin-bottom: 1.3rem; }
.upload-list { display: grid; gap: .9rem; }
.upload { display: flex; align-items: center; gap: 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 1rem; background: var(--paper); cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease); }
.upload:hover { border-color: var(--red); background: var(--surface); }
.upload__icon { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--red) 10%, #fff); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.upload__text { flex: 1; min-width: 0; }
.upload__text strong { display: block; }
.upload__text small { color: var(--ink-faint); }
.upload input[type=file] { font-size: .85rem; margin-top: .4rem; max-width: 100%; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.6rem; }

.success-tick { width: 84px; height: 84px; border-radius: 50%; background: #e7f2ec; color: #2f7d4f; display: grid; place-items: center; margin: 0 auto 1.5rem; }
.ref-chip { display: inline-block; font-family: var(--font-display); font-size: 1.6rem; background: var(--sand); padding: .4rem 1.1rem; border-radius: var(--radius-sm); margin: .4rem 0; color: var(--red); }

/* =============================================================================
   Auth cards (portal + admin login)
   ============================================================================ */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--red) 8%, transparent), transparent 42%), var(--paper); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 5vw, 2.6rem); }
.auth-card .brand { display: flex; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: .3rem; }
.cred-hint { margin-top: 1.4rem; padding: .8rem 1rem; background: var(--sand); border-radius: var(--radius-sm); font-size: .85rem; line-height: 1.7; }
.cred-hint code { background: var(--surface); padding: .1rem .35rem; border-radius: 4px; font-size: .82rem; }
.auth-meta { margin-top: 1.4rem; font-size: .85rem; color: var(--ink-faint); text-align: center; }
.auth-meta a:hover { color: var(--red); }

/* =============================================================================
   Dashboard shell (portal + admin)
   ============================================================================ */
.app-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100dvh; }
.sidebar { background: var(--ink); color: rgba(251,250,248,.72); display: flex; flex-direction: column; padding: 1.4rem 1rem; position: sticky; top: 0; height: 100dvh; }
.sidebar .brand { margin-bottom: 1.8rem; padding-inline: .5rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: 10px; color: rgba(251,250,248,.72); font-weight: 500; font-size: .96rem; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: var(--red); color: #fff; }
.side-nav a svg { flex-shrink: 0; }
.side-nav__label { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 1rem .8rem .35rem; }
.sidebar__foot { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.sidebar__foot a { color: rgba(255,255,255,.6); }
.sidebar__foot a:hover { color: #fff; }

.app-main { background: var(--paper); min-width: 0; }
.app-topbar { display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(1rem,3vw,2rem); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.app-topbar h1 { font-size: 1.5rem; }
.app-user .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.app-content { padding: clamp(1.25rem, 3vw, 2.25rem); }
.sidebar-toggle { display: none; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; color: var(--ink); place-items: center; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem; }
.kpi__label { font-size: .85rem; color: var(--ink-faint); display: flex; align-items: center; gap: .5rem; }
.kpi__label svg { color: var(--red); }
.kpi__value { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; margin-top: .5rem; color: var(--ink); }
.kpi__trend { font-size: .82rem; margin-top: .4rem; }
.kpi--alert { border-left: 4px solid #c0271f; }
.kpi--warn { border-left: 4px solid #b9791c; }
.kpi--ok { border-left: 4px solid #2f7d4f; }

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 1.5rem; overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.panel__head h2 { font-size: 1.2rem; }
.panel__body { padding: 1.4rem; }

/* Data tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .8rem 1.4rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; background: var(--sand); }
table.data tbody tr:hover { background: var(--paper); }
table.data td .sub { display: block; color: var(--ink-faint); font-size: .82rem; white-space: normal; }
table.data td.wrap-cell { white-space: normal; max-width: 360px; }
.row-actions { display: flex; gap: .4rem; }
.mini-select { font: inherit; padding: .5rem .8rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }

/* Compliance matrix */
table.matrix { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.matrix th, table.matrix td { padding: .6rem .7rem; border: 1px solid var(--line); text-align: center; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--surface); }
table.matrix th { background: var(--sand); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.cell-state { display: inline-block; width: 100%; padding: .25rem .4rem; border-radius: 6px; font-weight: 700; font-size: .7rem; text-transform: capitalize; }
.cell-state.valid { background: #e7f2ec; color: #2f7d4f; }
.cell-state.expiring { background: #fbf0dc; color: #b9791c; }
.cell-state.expired { background: #fbe1df; color: #c0271f; }
.cell-state.missing, .cell-state.pending { background: #efeceb; color: #8a8285; }

/* Detail grid + key/value lists */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; }
.kv dt { color: var(--ink-faint); font-size: .85rem; }
.kv dd { font-weight: 600; word-break: break-word; }

/* Document library (portal) */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,300px),1fr)); gap: 1rem; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.doc-card__top { display: flex; gap: .9rem; align-items: flex-start; }
.doc-card__icon { width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--red) 10%, #fff); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.doc-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.doc-card p { font-size: .85rem; }
.doc-card__meta { display: flex; gap: .8rem; align-items: center; font-size: .82rem; color: var(--ink-faint); margin-top: auto; }

/* ---- Dashboard responsive ------------------------------------------------ */
@media (max-width: 1024px) {
  .jobs-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .job-detail { grid-template-columns: 1fr; }
  .job-aside { position: static; }
  .dash-cols, .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 256px; z-index: 200; transform: translateX(-100%); transition: transform .3s var(--ease-out); }
  .sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-toggle { display: inline-grid; }
  .scrim { position: fixed; inset: 0; background: rgba(32,28,29,.45); z-index: 150; display: none; }
  .scrim.is-open { display: block; }
}
@media (max-width: 640px) {
  .job-card { grid-template-columns: 1fr; }
  .job-card__side { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 861px) { .scrim { display: none; } }

/* =============================================================================
   Motion & atmosphere layer — elegant, brand-locked, reduced-motion safe.
   (The global prefers-reduced-motion rule at the top zeroes all durations.)
   ============================================================================ */

/* Soft brand wash behind the hero — atmosphere from the palette, no new hues. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 48% at 82% 8%, color-mix(in srgb, var(--red) 7%, transparent), transparent 70%),
    radial-gradient(40% 36% at 4% 92%, color-mix(in srgb, var(--sand-deep) 55%, transparent), transparent 72%);
}
.hero > .wrap { position: relative; z-index: 1; }

/* Gentle float on the hero cards — barely-there life. */
@keyframes float-soft { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.hero-badge { animation: float-soft 5.2s var(--ease) infinite alternate; }
.hero-stat-float { animation: float-soft 6.4s var(--ease) 1.2s infinite alternate; }

/* Heartbeat (ECG) divider — the brand's signature motion. Draws in on reveal. */
.pulse-line { display: block; width: min(340px, 60%); height: 28px; color: var(--red); }
.section--ink .pulse-line { color: #FF8A8F; }
.pulse-line.center { margin-inline: auto; }
.pulse-line path {
  stroke-dasharray: 620; stroke-dashoffset: 620;
  transition: stroke-dashoffset 1.9s var(--ease-out) .25s;
}
[data-reveal].is-in .pulse-line path,
.boot-ready .pulse-line[data-boot] path,
.pulse-line.is-in path { stroke-dashoffset: 0; }

/* Reading progress — a 2px brand hairline under the header. */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 2.5px; width: 100%;
  background: linear-gradient(90deg, var(--red-bright), var(--red) 60%, var(--oxblood));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* Quiet lift for KPI + doc cards in the dashboards. */
.kpi, .doc-card { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.kpi:hover, .doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Focus polish on inputs inside dark contexts (footer newsletter). */
.news-form input:focus-visible { outline-offset: 1px; }
