/* ============================================================
   LEGAT GROUP — Colors & Type foundations
   Brand seeds (from logo): Navy #2E3342 · Champagne Gold #CBB890 · White
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Giga:wght@300;400;500;600&family=Lexend:wght@300;400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&display=swap');

:root {
  --navy-900: #181C25;
  --navy-800: #21262F;
  --navy-700: #2E3342;   /* BRAND PRIMARY */
  --navy-600: #393F50;
  --navy-500: #4B5266;
  --navy-400: #6A7186;
  --navy-300: #98a8bd;

  --gold-800: #826E45;
  --gold-700: #9C8557;
  --gold-600: #B7A172;
  --gold-500: #CBB890;   /* BRAND ACCENT */
  --gold-400: #D9C9A6;
  --gold-300: #E8DCC4;
  --gold-200: #F1EADB;

  --white:  #FFFFFF;
  --paper:  #FAF8F3;
  --ivory:  #F4F1EA;
  --sand:   #ECE7DC;
  --line:   #E3DDD0;
  --line-strong: #D2CABA;
  --ink:    #23262E;

  --line-dark:  rgba(203,184,144,.18);
  --line-dark-2: rgba(255,255,255,.10);
  --veil-dark:  rgba(24,28,37,.72);

  --success: #4F7A5B;
  --warning: #B5893C;
  --danger:  #9E4B3F;

  --bg:          var(--paper);
  --surface:     var(--white);
  --surface-alt: var(--ivory);
  --fg:          var(--ink);
  --fg-muted:    var(--navy-400);
  --fg-faint:    #8c93a2;
  --accent:      var(--gold-700);
  --accent-soft: var(--gold-500);
  --on-accent:   var(--navy-700);
  --border:      var(--line);
  --border-strong: var(--line-strong);
  --focus:       var(--gold-700);

  --font-display: 'Lexend Giga', system-ui, sans-serif;
  --font-sans:    'Lexend', system-ui, sans-serif;
  --font-serif:   'Source Serif 4', Georgia, serif;

  --t-display: clamp(48px, 6vw, 88px);
  --t-h1:      clamp(38px, 4.4vw, 60px);
  --t-h2:      clamp(28px, 3vw, 40px);
  --t-h3:      clamp(21px, 1.9vw, 27px);
  --t-h4:      19px;
  --t-lead:    clamp(18px, 1.5vw, 22px);
  --t-body:    17px;
  --t-small:   15px;
  --t-caption: 13px;
  --t-eyebrow: 12px;

  --track-wide:   .22em;
  --track-mid:    .12em;
  --track-tight:  -.01em;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  --r-xs: 2px; --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(36,38,46,.05), 0 1px 1px rgba(36,38,46,.04);
  --sh-2: 0 4px 14px rgba(36,38,46,.07), 0 1px 3px rgba(36,38,46,.05);
  --sh-3: 0 18px 48px rgba(30,33,45,.14), 0 4px 12px rgba(30,33,45,.08);
  --sh-gold: 0 10px 30px rgba(155,133,87,.22);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display { font-family: var(--font-sans); color: var(--fg); }
.display, .wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}

h1 { font-size: var(--t-h1); font-weight: 500; line-height: 1.08; letter-spacing: var(--track-tight); }
h2 { font-size: var(--t-h2); font-weight: 500; line-height: 1.14; letter-spacing: var(--track-tight); }
h3 { font-size: var(--t-h3); font-weight: 500; line-height: 1.22; }
h4 { font-size: var(--t-h4); font-weight: 600; font-family: var(--font-sans); line-height: 1.3; }

.lead { font-family: var(--font-serif); font-size: var(--t-lead); line-height: 1.5; color: var(--fg); }
p { font-family: var(--font-serif); }
small, .small { font-size: var(--t-small); }
.caption { font-size: var(--t-caption); color: var(--fg-muted); font-family: var(--font-sans); }

a { color: var(--accent); text-decoration: none; }
::selection { background: var(--gold-300); color: var(--navy-700); }

/* ============================================================
   LAYOUT KIT
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
.kit { overflow-x: hidden; position: relative; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.section { padding: 112px 0; position: relative; }
.section-sm { padding: 72px 0; }
.band-navy { background: var(--navy-700); color: #F3F1EC; }
.band-ivory { background: var(--ivory); }
.band-deep { background: var(--navy-800); color: #F3F1EC; }
section[id], .section { scroll-margin-top: 88px; }

/* eyebrow / section heads */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display);
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.eyebrow.center { justify-content: center; }
.sec-head { font-family: var(--font-sans); font-weight: 500; font-size: var(--t-h2);
  line-height: 1.12; letter-spacing: -.015em; color: var(--fg); margin: 18px 0 0; max-width: 22ch; }
.band-navy .sec-head, .band-deep .sec-head { color: #F4F2ED; }
.lede { font-family: var(--font-serif); font-size: 19px; line-height: 1.55; color: var(--fg-muted); max-width: 62ch; margin: 20px 0 0; }
.band-navy .lede, .band-deep .lede { color: #B7BDC9; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(250,248,243,.86);
  backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.nav.dark { background: rgba(33,38,47,.55); border-bottom-color: var(--line-dark); }
.nav.dark.scrolled { background: rgba(28,32,42,.94); border-bottom-color: var(--line-dark); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; cursor: pointer; flex: none; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand .wm { font-family: var(--font-display); font-size: 15px; letter-spacing: .26em; color: var(--navy-700); font-weight: 400; white-space: nowrap; }
.nav.dark .brand .wm { color: #F3F1EC; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-sans); font-size: 13.5px; color: var(--navy-600); cursor: pointer; position: relative; transition: color var(--dur) var(--ease); white-space: nowrap; }
.nav.dark .nav-links a { color: #C9CDD6; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--accent); transition: width var(--dur) var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }
.nav.dark .nav-links a:hover { color: var(--gold-400); }

/* buttons */
.btn { font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: .01em; padding: 13px 24px;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
  transition: all var(--dur) var(--ease); white-space: nowrap; line-height: 1; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-600); }
.btn-accent { background: var(--gold-700); color: #fff; }
.btn-accent:hover { background: var(--gold-800); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--navy-700); }
.btn-ghost:hover { border-color: var(--navy-700); }
.btn-onnavy { background: var(--gold-500); color: var(--navy-700); }
.btn-onnavy:hover { background: var(--gold-400); box-shadow: var(--sh-gold); }
.btn-ghost-onnavy { background: transparent; border-color: rgba(203,184,144,.42); color: var(--gold-300); }
.btn-ghost-onnavy:hover { border-color: var(--gold-500); color: var(--gold-200); }
.btn-lg { padding: 16px 30px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link-arrow { font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--accent); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: gap var(--dur) var(--ease); background: none; border: none; padding: 0; }
.link-arrow:hover { gap: 12px; }
.band-navy .link-arrow, .band-deep .link-arrow { color: var(--gold-400); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  position: relative; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.card.lift:hover { box-shadow: var(--sh-2); transform: translateY(-4px); border-color: var(--line-strong); }
.card.lift:hover::before { transform: scaleX(1); }

/* branded image well */
.imgwell { position: relative; overflow: hidden; background:
  linear-gradient(135deg, #2E3342 0%, #262B37 52%, #1B1F29 100%); }
.imgwell::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(203,184,144,.22); pointer-events: none; }
.imgwell .em { position: absolute; width: 46%; max-width: 150px; opacity: .12; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.imgwell .tag { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-sans); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(203,184,144,.7); z-index: 2; }
/* real generated image inside the well */
.imgwell img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.imgwell--photo::before { content: none; }   /* no overlay */
.imgwell--photo::after { content: none; }    /* no gold inset frame on photos */
/* photo with a readable bottom tag (direction cards) */
.imgwell--photo.imgwell--tagged::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 58%; background: linear-gradient(180deg, rgba(33,26,18,0), rgba(33,26,18,.5)); z-index: 1; pointer-events: none; }
.imgwell--tagged .tag { z-index: 2; color: rgba(247,245,240,.95); }

.hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* marquee */
.marquee-band { padding: 20px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 0; animation: marquee 42s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--font-sans); font-size: 14px; letter-spacing: .02em; color: #B7BDC9; padding: 0 26px; }
.marquee-dot { color: var(--gold-500); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.watermark { position: absolute; pointer-events: none; }
.icon { stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* forms */
.field-label { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); display: block; margin-bottom: 8px; }
.field { font-family: var(--font-serif); font-size: 15.5px; color: var(--ink); padding: 13px 15px; border-radius: var(--r-sm);
  background: #fff; outline: none; width: 100%; border: 1px solid var(--line-strong); transition: all .15s ease; }
.field:focus { border-color: var(--gold-700); box-shadow: 0 0 0 3px rgba(155,133,87,.16); }

/* carousel */
.rail { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.hide-sm { }

/* ============================================================
   PAGE COMPONENTS (static markup)
   ============================================================ */

/* hero (statement) */
.hero { background: var(--navy-700); color: #F3F1EC; position: relative; overflow: hidden; }
.hero__inner { position: relative; padding: 134px 0 116px; }
.hero__wm { width: 680px; height: 680px; opacity: .06; right: -170px; top: -130px; }
.hero h1 { font-family: var(--font-sans); font-weight: 400; font-size: clamp(38px,5vw,68px); line-height: 1.05;
  letter-spacing: -.018em; color: #F7F5F0; margin: 30px 0 0; max-width: 18ch; }
.hero__lede { font-family: var(--font-serif); font-size: 22px; line-height: 1.5; color: #B7BDC9; max-width: 50ch; margin-top: 30px; }
.hero__cta { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }

/* news / article cards */
.mc-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.mc-date { font-family: var(--font-sans); font-size: 13px; color: var(--accent); letter-spacing: .04em; }
.mc-title { font-family: var(--font-sans); font-weight: 500; font-size: 19px; line-height: 1.28; color: var(--navy-700); margin: 12px 0 12px; }
.mc-body p { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.55; color: var(--navy-400); margin: 0; }
.news-card { width: 360px; overflow: hidden; display: flex; flex-direction: column; text-align: left; cursor: pointer; font: inherit; padding: 0; }
.art-meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-sans); font-size: 12px; color: var(--fg-muted); }
.art-meta .dot { width: 3px; height: 3px; border-radius: 3px; background: var(--accent); }
.art-meta .cat { color: var(--accent); letter-spacing: .02em; }
.art-card { overflow: hidden; display: flex; flex-direction: column; text-align: left; cursor: pointer; font: inherit; padding: 0; width: 100%; }
.art-card .mc-title { margin: 13px 0 12px; }
.art-card .mc-body p { margin: 0 0 20px; }

/* cell grids (audience / pain) */
.cellgrid { display: grid; gap: 1px; }
.cellgrid--3 { grid-template-columns: repeat(3,1fr); background: var(--border); border: 1px solid var(--border); }
.cellgrid--dark { background: var(--line-dark); border: 1px solid var(--line-dark); }
.cap-cell { background: var(--surface); padding: 38px 34px; transition: background var(--dur) var(--ease); }
.cap-cell:hover { background: var(--ivory); }
.cap-cell .icon { color: var(--accent); }
.cap-cell h3 { font-family: var(--font-sans); font-weight: 500; font-size: 19px; line-height: 1.25; color: var(--navy-700); margin: 22px 0 12px; }
.cap-cell p { font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--navy-400); margin: 0; }
.pain-cell { background: var(--navy-800); padding: 36px 32px; }
.pain-cell .icon { color: var(--gold-500); }
.pain-cell h3 { font-family: var(--font-sans); font-weight: 500; font-size: 18.5px; line-height: 1.25; color: #F4F2ED; margin: 20px 0 11px; }
.pain-cell p { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.55; color: #9AA1AE; margin: 0; }

/* services rows (directions) */
.svc-list { margin-top: 56px; border-top: 1px solid var(--border); }
.svc-row { display: grid; grid-template-columns: 1.18fr .82fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--border); }
.svc-row--alt { grid-template-columns: .82fr 1.18fr; }
.svc-row--alt .svc-text { order: 2; } .svc-row--alt .svc-media { order: 1; }
.svc-head-row { display: flex; align-items: center; gap: 16px; }
.svc-num { font-family: var(--font-display); font-size: 15px; letter-spacing: .18em; color: var(--accent); }
.svc-head-row .icon { color: var(--navy-600); }
.svc-row h3 { font-family: var(--font-sans); font-weight: 500; font-size: clamp(24px,2.4vw,32px); line-height: 1.12; color: var(--navy-700); margin: 20px 0 16px; letter-spacing: -.01em; }
.svc-row .svc-text > p { font-family: var(--font-serif); font-size: 17px; line-height: 1.6; color: var(--navy-400); max-width: 46ch; margin: 0 0 24px; }

/* directions as link-cards (image on top, whole card clickable) */
.dir-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.dir-card .imgwell { border-radius: 0; }
.dir-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.dir-card__body .svc-head-row { gap: 14px; }
.dir-card__title { font-family: var(--font-sans); font-weight: 500; font-size: 23px; line-height: 1.15; letter-spacing: -.01em; color: var(--navy-700); margin: 16px 0 12px; }
.dir-card__text { font-family: var(--font-serif); font-size: 15px; line-height: 1.6; color: var(--navy-400); margin: 0 0 22px; }
.dir-card .link-arrow { margin-top: auto; }
.dir-card:hover .link-arrow { gap: 12px; }

/* process */
.proc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 52px; border-top: 2px solid var(--navy-700); }
.proc-step { padding: 34px 30px 8px; border-right: 1px solid var(--border); position: relative; }
.proc-step:last-child { border-right: none; }
.proc-num { font-family: var(--font-display); font-size: 64px; font-weight: 400; color: var(--sand); line-height: 1; letter-spacing: .02em; }
.proc-step h3 { font-family: var(--font-sans); font-weight: 500; font-size: 21px; color: var(--navy-700); margin: 22px 0 12px; }
.proc-step p { font-family: var(--font-serif); font-size: 15px; line-height: 1.58; color: var(--navy-400); margin: 0; }

/* cases */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.case-card { display: flex; flex-direction: column; padding: 32px 30px 0; }
.case-cat { font-family: var(--font-display); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.case-rule { height: 1px; background: var(--border); margin: 20px 0 24px; }
.case-row { margin-bottom: 18px; }
.case-row .field-label { margin-bottom: 6px; }
.case-row p { font-family: var(--font-serif); font-size: 15.5px; line-height: 1.55; color: var(--navy-600); margin: 0; }
.case-result { margin-top: auto; margin-inline: -30px; padding: 22px 30px; background: var(--gold-200); border-top: 1px solid var(--gold-300); display: flex; gap: 12px; align-items: flex-start; }
.case-result .icon { color: var(--gold-800); margin-top: 3px; flex: none; }
.case-result p { font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--gold-800); margin: 0; }

/* materials */
.mat-card { padding: 32px 30px; display: flex; flex-direction: column; text-align: left; cursor: pointer; font: inherit; width: 100%; }
.mat-tags { display: flex; gap: 9px; align-items: center; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.mat-tags .kind { color: var(--accent); } .mat-tags .cat { color: var(--fg-muted); }
.mat-card h3 { font-family: var(--font-sans); font-weight: 500; font-size: 20px; line-height: 1.28; color: var(--navy-700); margin: 20px 0 12px; }
.mat-card > p { font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--navy-400); margin: 0 0 26px; }
.mat-card .link-arrow { margin-top: auto; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-list { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 28px; display: grid; gap: 16px; }
.contact-info-list .link-arrow { color: var(--navy-700); font-size: 16px; white-space: nowrap; }
.contact-info-list .link-arrow .icon { color: var(--accent); }
.form-card { padding: 36px 36px 40px; border-top: 2px solid var(--gold-500); }
.form-grid { display: grid; gap: 18px; }
.form-success { text-align: center; padding: 30px 8px; display: none; }
.form-success.show { display: block; }
.success-badge { width: 58px; height: 58px; border-radius: 999px; background: var(--gold-200); border: 1px solid var(--gold-400); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.success-badge .icon { color: var(--gold-800); }
.form-success h3 { font-family: var(--font-sans); font-weight: 500; font-size: 23px; color: var(--navy-700); margin: 0 0 10px; }
.form-success p { font-family: var(--font-serif); font-size: 15.5px; line-height: 1.55; color: var(--navy-400); max-width: 34ch; margin: 0 auto; }
.form-status { font-family: var(--font-sans); font-size: 13px; text-align: center; min-height: 1.1rem; margin: 0; }

/* footer */
.footer { position: relative; overflow: hidden; }
.footer__inner { position: relative; padding: 72px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; border-bottom: 1px solid var(--line-dark); padding-bottom: 44px; }
.footer .brand .wm-lg { font-family: var(--font-display); font-size: 17px; letter-spacing: .26em; color: #F3F1EC; }
.footer__desc { font-family: var(--font-serif); font-size: 15.5px; line-height: 1.6; color: #9AA1AE; max-width: 44ch; margin-top: 22px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__col .field-label { color: var(--gold-500); }
.footer__links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.footer__links a { font-family: var(--font-sans); font-size: 14px; color: #C9CDD6; cursor: pointer; }
.footer__links a:hover { color: var(--gold-400); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-family: var(--font-sans); font-size: 12.5px; color: #7E8597; }
.footer__bottom a { color: #7E8597; }

/* ============ SUBPAGES ============ */
.page-hero { background: var(--navy-700); color: #F3F1EC; position: relative; overflow: hidden; isolation: isolate; }
.page-hero__inner { position: relative; z-index: 2; padding: 130px 0 96px; }
/* photo background for direction heroes */
.page-hero[class*="page-hero--"]::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; filter: brightness(1.18) saturate(1.06); }
.page-hero[class*="page-hero--"]::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(24,28,37,.86) 0%, rgba(24,28,37,.64) 36%, rgba(24,28,37,.28) 68%, rgba(24,28,37,.1) 100%); }
.page-hero--vodo::before  { background-image: url('/assets/img/hero-voda.webp'); }
.page-hero--imush::before { background-image: url('/assets/img/hero-imush.webp'); }
.page-hero--okn::before   { background-image: url('/assets/img/hero-okn.webp'); }
.page-hero h1 { font-family: var(--font-sans); font-weight: 400; font-size: clamp(34px,4.4vw,56px); line-height: 1.07; letter-spacing: -.018em; color: #F7F5F0; margin: 24px 0 0; max-width: 20ch; }
.page-hero__lede { font-family: var(--font-serif); font-size: 20px; line-height: 1.55; color: #B7BDC9; max-width: 60ch; margin-top: 24px; }
.crumbs { font-family: var(--font-sans); font-size: 13px; color: #9AA1AE; letter-spacing: .02em; }
.crumbs a { color: #9AA1AE; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs .sep { margin: 0 10px; opacity: .5; }

/* services detail list (subpage) */
.svc-detail { border-top: 1px solid var(--border); margin-top: 48px; }
.svc-detail__item { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--border); align-items: start; }
.svc-detail__name { font-family: var(--font-sans); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--navy-700); }
.svc-detail__desc { font-family: var(--font-serif); font-size: 15.5px; line-height: 1.6; color: var(--navy-400); }
.svc-detail__cta { margin-top: 14px; }

/* triggers */
.trigger-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 48px; background: var(--border); border: 1px solid var(--border); }
.trigger-cell { background: var(--surface); padding: 30px 30px; }
.trigger-cell__num { font-family: var(--font-display); font-size: 13px; letter-spacing: .18em; color: var(--accent); }
.trigger-cell p { font-family: var(--font-serif); font-size: 15.5px; line-height: 1.55; color: var(--navy-600); margin: 14px 0 0; }

/* terms callout */
.callout { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 48px; border: 1px solid var(--border); background: var(--surface); }
.callout > div { padding: 36px 34px; }
.callout > div + div { border-left: 1px solid var(--border); }
.callout__label { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 14px; }
.callout__value { font-family: var(--font-sans); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--navy-700); margin-bottom: 10px; letter-spacing: -.01em; }
.callout__note { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.55; color: var(--navy-400); }

/* faq */
.faq { max-width: 820px; margin-top: 12px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__item summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--font-sans); font-size: 18px; font-weight: 500; line-height: 1.4; color: var(--navy-700); transition: color var(--dur) var(--ease); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--accent); transition: transform var(--dur) var(--ease); line-height: 1; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__body { padding: 0 0 28px; font-family: var(--font-serif); font-size: 15.5px; line-height: 1.65; color: var(--navy-400); }
.faq__body p { margin: 0 0 12px; } .faq__body p:last-child { margin-bottom: 0; }

/* about page bits */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split__body p { font-family: var(--font-serif); font-size: 18px; line-height: 1.62; color: var(--navy-400); margin: 0 0 20px; }
.split__body p:last-child { margin-bottom: 0; }
.principle-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.principle-list li { display: flex; gap: 14px; font-family: var(--font-serif); font-size: 16px; color: var(--navy-600); }
.principle-list .mk { color: var(--accent); flex: none; }
.team-card { background: var(--surface); border: 1px solid var(--border); padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.team-card__avatar { width: 54px; height: 54px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.team-card__role { font-family: var(--font-sans); font-weight: 500; font-size: 16px; color: var(--navy-700); }
.team-card p { font-family: var(--font-serif); font-size: 14.5px; line-height: 1.55; color: var(--navy-400); margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.stat-cell { background: var(--navy-800); padding: 34px 28px; }
.stat-cell__num { font-family: var(--font-display); font-size: clamp(30px,3vw,40px); color: var(--gold-500); line-height: 1; letter-spacing: .01em; }
.stat-cell__label { font-family: var(--font-sans); font-size: 13px; color: #9AA1AE; line-height: 1.45; margin-top: 12px; }

/* ============ MODALS ============ */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }

.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(24,28,37,.62); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
.modal { width: 100%; max-width: 560px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  overflow: hidden; max-height: 92vh; overflow-y: auto; animation: rise .32s var(--ease-out); }
.modal--wide { max-width: 720px; }
.modal__head { background: var(--navy-700); padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; }
.modal__head .lockup { display: flex; align-items: center; gap: 12px; }
.modal__head .lockup img { width: 26px; height: 26px; }
.modal__head .wm { font-family: var(--font-display); font-size: 11.5px; letter-spacing: .2em; color: #fff; }
.modal__head .mhcat { font-family: var(--font-sans); font-size: 12px; color: var(--gold-400); letter-spacing: .04em; }
.modal__close { background: none; border: none; cursor: pointer; color: #9AA1AE; display: flex; padding: 0; }
.modal__close:hover { color: #fff; }
.modal__steps { display: flex; gap: 6px; padding: 16px 30px 0; }
.modal__steps span { flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.modal__steps span.on { background: var(--gold-600); }
.modal__body { padding: 26px 30px 30px; }
.modal__body h3 { font-family: var(--font-sans); font-weight: 500; font-size: 21px; color: var(--navy-700); margin: 0 0 6px; }
.modal__sub { font-family: var(--font-serif); font-size: 14.5px; color: var(--navy-400); margin: 0 0 22px; }
.modal__step { display: none; } .modal__step.on { display: block; }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topic-btn { text-align: left; padding: 14px 16px; border-radius: var(--r-sm); cursor: pointer; font-family: var(--font-sans); font-size: 13.5px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy-600); transition: all .15s ease; }
.topic-btn.sel { border-color: var(--gold-700); background: var(--gold-200); color: var(--gold-800); }
.modal__actions { display: flex; justify-content: space-between; margin-top: 24px; }
.modal__actions.end { justify-content: flex-end; }
.modal__consent { font-family: var(--font-sans); font-size: 12px; line-height: 1.45; color: var(--fg-muted); display: flex; gap: 9px; align-items: flex-start; margin-top: 4px; }
.modal__consent input { margin-top: 2px; accent-color: var(--gold-700); }
.modal__consent a { color: var(--accent); }
/* reading modal body */
.read-body { font-family: var(--font-serif); font-size: 16px; line-height: 1.7; color: var(--ink); }
.read-body p { margin: 0 0 16px; } .read-body p:last-child { margin-bottom: 0; }
.read-body h4 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--gold-700); margin: 26px 0 10px; }
.read-body a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 2px; }
.read-body a:hover { color: var(--gold-800); }
.read-body ul { list-style: none; margin: 4px 0 0; padding: 0; }
.read-body ul li { position: relative; padding-left: 18px; margin: 0 0 9px; font-size: 14.5px; line-height: 1.5; color: var(--fg-muted); }
.read-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.read-meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-sans); font-size: 12.5px; color: var(--fg-muted); margin-bottom: 14px; }
.read-meta .cat { color: var(--accent); }
.read-modal-title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(22px,2.6vw,30px); line-height: 1.2; letter-spacing: -.01em; color: var(--navy-700); margin: 0 0 22px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .grid-3, .cellgrid--3, .trigger-grid, .stat-row { grid-template-columns: 1fr !important; }
  .contact-grid, .split { grid-template-columns: 1fr !important; gap: 40px; }
  .callout { grid-template-columns: 1fr !important; }
  .callout > div + div { border-left: none; border-top: 1px solid var(--border); }
  .svc-detail__item { grid-template-columns: 1fr; gap: 12px; }
  .proc-grid { grid-template-columns: 1fr 1fr !important; }
  .proc-step:nth-child(2) { border-right: none; }
}
@media (max-width: 820px) {
  .container { padding: 0 24px; }
  .section { padding: 76px 0; }
  .hero__inner { padding: 110px 0 84px; }
  .page-hero__inner { padding: 110px 0 72px; }
  .hide-sm { display: none !important; }
  .svc-row, .svc-row--alt { grid-template-columns: 1fr !important; gap: 28px; }
  .svc-row--alt .svc-text, .svc-row--alt .svc-media { order: initial; }
  .proc-grid { grid-template-columns: 1fr !important; }
  .proc-step { border-right: none; }
  .stat-cell, .footer__cols { }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .topic-grid { grid-template-columns: 1fr; }
  .news-card { width: 280px; }
}

/* extra grids for subpages */
.cellgrid--4 { grid-template-columns: repeat(4,1fr); }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 1080px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .cellgrid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cellgrid--4, .team-grid { grid-template-columns: 1fr; } }
