/* ==========================================================================
   Iresh Technologies — Classic theme
   Ivory paper, deep forest green, brand green accent and antique gold.
   Playfair Display (headings) + Source Sans 3 (body).
   Layout system shared with Vayura Digital; colours follow the Iresh logo.
   ========================================================================== */

:root {
  --deep: #0F3A2B;
  --deep-2: #17503D;
  --deep-3: #08241A;
  --accent: #066A3A;
  --accent-d: #044F2B;
  --gold: #C29B45;
  --gold-d: #8C6B22;
  --gold-l: #EFE4C6;
  --paper: #FAF8F2;
  --paper-2: #F2EEE2;
  --white: #FFFFFF;
  --ink: #1C2621;
  --muted: #58635C;
  --line: #E1DCCD;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --shadow: 0 1px 2px rgba(15, 58, 43, .06), 0 8px 24px rgba(15, 58, 43, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-d); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--deep); letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--deep); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }
.ico { flex: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 13.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 28px; border: 1px solid transparent; border-radius: 2px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); color: #fff; }
.btn-deep { background: var(--deep); color: #fff; }
.btn-deep:hover { background: var(--deep-3); color: #fff; }
.btn-gold { background: var(--gold); color: var(--deep-3); }
.btn-gold:hover { background: #D1AC58; color: var(--deep-3); }
.btn-outline { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--deep); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ── Section scaffolding ─────────────────────────────────── */
.sec { padding-block: clamp(64px, 8vw, 104px); }
.sec-alt { background: var(--paper-2); }
.sec-white { background: var(--white); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); }
.sec-head p { color: var(--muted); font-size: 18px; }
.kicker {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 14px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-d);
}
.sec-head .kicker::before, .sec-head .kicker::after { content: ""; width: 34px; height: 1px; background: var(--gold); }
.kicker-left::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.kicker-light { color: var(--gold); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 22px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: currentColor; }
.ornament i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.ornament.left { justify-content: flex-start; }
.ornament.left::before { display: none; }
.lead { font-size: 19px; color: var(--muted); }

/* ── Top bar & header ───────────────────────────────────── */
.topbar { background: var(--deep-3); color: rgba(255,255,255,.82); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-block: 9px; }
.tb-info { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.tb-info a, .tb-info span { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.tb-info a:hover { color: #fff; }
.tb-info .ico { color: var(--gold); }
.tb-social { display: flex; gap: 6px; }
.tb-social a { display: grid; place-items: center; width: 28px; height: 28px; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.tb-social a:hover { color: var(--deep-3); background: var(--gold); border-color: var(--gold); }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-bottom: 1px solid var(--line); pointer-events: none; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* The logo file has wide margins; this frame crops to the artwork (x 4.5–96%, y 18–81%). */
.brand-logo { display: block; width: 150px; aspect-ratio: 1830 / 940; overflow: hidden; }
.brand-logo img { width: 109.3%; max-width: none; margin: -14.75% 0 0 -4.92%; }

.primary > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.primary a { display: block; padding: 10px 12px; font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; position: relative; }
.primary > ul > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.primary > ul > li > a:hover::after, .primary > ul > li > a[aria-current]::after { transform: scaleX(1); }
.primary a[aria-current] { color: var(--accent); }
.primary .nav-cta { margin-left: 10px; }
.primary .nav-cta .btn { padding: 13px 18px; color: #fff; font-size: 12.5px; }
.primary .nav-cta .btn::after { display: none; }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 6px; margin-left: -10px; color: var(--muted); cursor: pointer; }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; z-index: 5; min-width: 290px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-size: 15.5px; font-weight: 400; padding: 10px 20px; }
.sub a .ico { color: var(--gold-d); }
.sub a:hover { background: var(--paper); color: var(--accent); }
/* Three-column services menu */
.sub.mega { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; width: min(760px, 92vw); padding: 18px 10px; left: -40px; }
.sub-h { display: block; padding: 4px 20px 8px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); padding: 9px 14px; font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--deep); cursor: pointer; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; background: var(--deep) url('../images/backgrounds/main-slider-2-3.jpg') center 35%/cover no-repeat; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--deep-3) 0%, rgba(8,36,26,.94) 32%, rgba(8,36,26,.76) 52%, rgba(8,36,26,.45) 75%); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 30%, rgba(6,106,58,.45), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.82); max-width: 34em; margin-bottom: 34px; }
.hero .kicker { color: var(--gold); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 15px; color: rgba(255,255,255,.78); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ico { color: var(--gold); }

.frame { position: relative; z-index: 1; background: var(--paper); color: var(--ink); padding: 38px 34px; outline: 1px solid var(--gold); outline-offset: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.frame h2 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.frame .ornament { margin-bottom: 18px; }
.frame-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.frame-stats div { padding: 18px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.frame-stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.frame-stats strong { display: block; font: 600 34px/1.1 var(--serif); color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.frame-stats span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.frame-foot { margin: 18px 0 0; text-align: center; font: italic 500 17px/1.5 var(--serif); color: var(--deep-2); }

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero { position: relative; background: var(--deep); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 20%, rgba(6,106,58,.55), transparent 55%), repeating-linear-gradient(135deg, rgba(194,155,69,.06) 0 1px, transparent 1px 22px); }
.page-hero .wrap { position: relative; padding-block: clamp(52px, 7vw, 92px); text-align: center; }
.page-hero h1 { color: #fff; max-width: 900px; margin-inline: auto; }
.page-hero .lead { color: rgba(255,255,255,.8); max-width: 720px; margin: 0 auto; }
.page-hero .kicker { color: var(--gold); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 0 0 18px; padding: 0; font-size: 14px; color: rgba(255,255,255,.7); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--gold); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ── Feature row ────────────────────────────────────────── */
.features { position: relative; z-index: 2; margin-top: -56px; }
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.f-item { padding: 34px 30px; display: flex; gap: 18px; }
.f-item + .f-item { border-left: 1px solid var(--line); }
.f-ico { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--accent); border-radius: 50%; }
.f-item h3 { font-size: 20px; margin-bottom: 6px; }
.f-item p { margin: 0; color: var(--muted); font-size: 16px; }

/* ── Two-column split ───────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.top { align-items: start; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--gold-d); margin-top: 3px; }
.checks.one { grid-template-columns: 1fr; }

.portrait { position: relative; padding: 0 22px 22px 0; }
.portrait::before { content: ""; position: absolute; right: 0; bottom: 0; top: 22px; left: 22px; border: 1px solid var(--gold); }
.portrait-inner { position: relative; background: var(--deep) url('../img/stock/about-team.jpg') center/cover no-repeat; color: #fff; padding: clamp(32px, 4vw, 48px); isolation: isolate; }
.portrait-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,58,43,.88), rgba(15,58,43,.96)); }
.portrait-inner blockquote { margin: 0; font: italic 500 clamp(22px, 2.4vw, 28px)/1.45 var(--serif); }
.portrait-inner cite { display: block; margin-top: 18px; font: 600 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--gold); }
.portrait-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.portrait-stats div { padding-top: 18px; }
.portrait-stats strong { display: block; font: 600 30px/1.1 var(--serif); color: var(--gold); }
.portrait-stats span { font-size: 13.5px; color: rgba(255,255,255,.75); }
.cert-note { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; color: rgba(255,255,255,.85); }
.cert-note .ico { color: var(--gold); }

.img-frame { position: relative; padding: 0 18px 18px 0; }
.img-frame::before { content: ""; position: absolute; right: 0; bottom: 0; top: 18px; left: 18px; border: 1px solid var(--gold); z-index: 0; }
.img-frame img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 20px 44px rgba(0,0,0,.18); }

/* ── Accent band (CTA in page body) ─────────────────────── */
.accent-band { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.accent-band::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(239,228,198,.35); pointer-events: none; }
.accent-band .wrap { position: relative; padding-block: clamp(52px, 6vw, 76px); text-align: center; }
.accent-band h2 { color: #fff; }
.accent-band p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto 28px; }
.accent-band .btn-row { justify-content: center; }

/* ── Service cards ──────────────────────────────────────── */
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.s-grid.two { grid-template-columns: repeat(2, 1fr); }
.s-card { position: relative; padding: 38px 30px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; transition: background .25s; }
.s-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.s-card:hover { background: var(--paper); }
.s-card:hover::before { transform: scaleX(1); }
.s-num { font: italic 500 15px/1 var(--serif); color: var(--gold-d); margin-bottom: 18px; }
.s-card .s-ico { color: var(--accent); margin-bottom: 18px; }
.s-card h3 { font-size: 21px; }
.s-card p { color: var(--muted); font-size: 16px; }
.s-card .grow { flex: 1; }
.s-card .checks { margin-bottom: 22px; font-size: 16px; gap: 8px; }
.s-card .link-arrow { align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.tag { display: inline-block; font-size: 13px; padding: 4px 11px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }

/* ── Industries / value cards ───────────────────────────── */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ind-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 32px 26px; text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .7s ease; }
.ind-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15,58,43,.1); border-color: var(--gold); }
.ind-ico { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 50%; background: var(--paper-2); color: var(--accent); }
.ind-card h3 { font-size: 19px; margin-bottom: 8px; }
.ind-card p { margin: 0; font-size: 15.5px; color: var(--muted); }
.ind-card .link-arrow { margin-top: 16px; }

/* ── Why / numbered list ────────────────────────────────── */
.num-list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.num-list li:first-child { border-top: 1px solid var(--line); }
.num-list li::before { content: counter(n, upper-roman) "."; font: italic 500 26px/1 var(--serif); color: var(--gold-d); padding-top: 4px; }
.num-list h3 { font-size: 19px; margin-bottom: 4px; }
.num-list p { margin: 0; color: var(--muted); font-size: 16px; }

/* ── Process timeline ───────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 33px; left: 10%; right: 10%; height: 1px; background: var(--gold); }
.timeline li { text-align: center; padding: 0 14px; position: relative; }
.t-num { width: 66px; height: 66px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--gold); font: italic 600 22px/1 var(--serif); color: var(--accent); position: relative; box-shadow: 0 0 0 8px var(--paper-2); }
.sec-white .t-num { background: var(--white); box-shadow: 0 0 0 8px var(--white); }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ── Tech stack grid ────────────────────────────────────── */
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.tech-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 15px/1.35 var(--serif); color: var(--deep); transition: background .25s; }
.tech-item .ico { color: var(--gold-d); }
.tech-item:hover { background: var(--paper); }

/* ── Animated stats band ────────────────────────────────── */
.counter-band { position: relative; background: var(--deep); color: #fff; overflow: hidden; }
.counter-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 15%, rgba(6,106,58,.6), transparent 55%), radial-gradient(ellipse at 85% 85%, rgba(194,155,69,.18), transparent 55%); }
.counter-band .wrap { position: relative; }
.counter-band .sec-head h2 { color: #fff; }
.counter-band .sec-head p { color: rgba(255,255,255,.75); }
.counter-band .kicker { color: var(--gold); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat-item { text-align: center; padding: 28px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; transition: transform .3s ease, background .3s ease, opacity .7s ease; }
.stat-item:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.stat-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 0 14px; border-radius: 50%; background: rgba(194,155,69,.15); color: var(--gold); }
.stat-num { display: block; font: 600 42px/1.1 var(--serif); color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.stat-label { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.frame-stats .stat-num { font: 600 40px/1.1 var(--serif); color: var(--accent); }
.portrait-stats .stat-num { font: 600 30px/1.1 var(--serif); color: var(--gold); }

/* ── Testimonials ───────────────────────────────────────── */
.testi { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.testi::before { content: "\201C"; position: absolute; left: 50%; top: -110px; transform: translateX(-50%); font: 400 360px/1 var(--serif); color: rgba(194,155,69,.10); }
.testi .wrap { position: relative; text-align: center; padding-block: clamp(64px, 8vw, 100px); max-width: 900px; }
.testi h2 { color: #fff; }
.testi .kicker { color: var(--gold); }
.quote-text { font: italic 500 clamp(21px, 2.4vw, 27px)/1.55 var(--serif); margin: 10px auto 26px; min-height: 5.5em; }
.quote-who strong { display: block; font: 600 15px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.quote-who span { font-size: 15px; color: rgba(255,255,255,.72); }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 1px solid var(--gold); background: transparent; transform: rotate(45deg); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--gold); }

/* ── Careers ────────────────────────────────────────────── */
.jobs { display: grid; gap: 22px; }
.job { background: var(--white); border: 1px solid var(--line); padding: 30px 32px; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: start; transition: box-shadow .25s, border-color .25s; }
.job:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.job-dept { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); font-weight: 600; }
.job h3 { font-size: 23px; margin: 4px 0 10px; }
.job p { color: var(--muted); font-size: 16px; }
.job .tags { margin-bottom: 0; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.job-type { display: inline-block; padding: 6px 14px; border: 1px solid var(--gold); color: var(--gold-d); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.job-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.job-loc .ico { color: var(--gold-d); }

/* ── Forms ──────────────────────────────────────────────── */
.form-card { background: var(--white); border: 1px solid var(--line); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.form-card > h2 { font-size: 28px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-field { margin-bottom: 18px; }
.f-field label { display: block; font: 600 13px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin-bottom: 7px; }
.f-field label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.f-field input, .f-field select, .f-field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.f-field input[type="file"] { padding: 11px 12px; background: var(--paper); cursor: pointer; }
.f-field textarea { min-height: 150px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(194,155,69,.2); }
.f-field [aria-invalid="true"] { border-color: #B3261E; }
.f-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.notice { padding: 16px 20px; margin-bottom: 22px; border: 1px solid; }
.notice-ok { background: #EEF6EF; border-color: #A8CDB0; color: #1F5130; }
.notice-err { background: #FBEDEC; border-color: #E5B3AE; color: #8A1F17; }
.contact-cards { display: grid; gap: 18px; }
.c-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px; background: var(--white); border: 1px solid var(--line); }
.c-card .f-ico { width: 52px; height: 52px; }
.c-card h3 { font-size: 18px; margin-bottom: 4px; }
.c-card p { margin: 0; color: var(--muted); font-size: 16px; }
.c-card a { color: var(--muted); text-decoration: none; }
.c-card a:hover { color: var(--accent); text-decoration: underline; }
.c-card .lbl { display: inline-block; min-width: 64px; color: var(--ink); font-weight: 600; }

/* ── Legal / plain content ──────────────────────────────── */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 27px; margin-top: 1.7em; padding-top: .2em; scroll-margin-top: 110px; }
.legal h3 { font-size: 20px; margin-top: 1.4em; }
.legal ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.legal li { margin-bottom: .45em; }
.legal li::marker { color: var(--gold-d); }
.legal strong { color: var(--deep); }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 8px 16px; border: 1px solid var(--line); background: var(--white); font-size: 15px; color: var(--muted); }
.updated .ico { color: var(--gold-d); }
.note-box { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 22px 26px; margin: 0 0 2em; }
.note-box h3 { font-size: 19px; margin: 0 0 8px; }
.note-box p { margin: 0; color: var(--muted); }
.legal .closing { margin-top: 40px; font: italic 500 18px/1.6 var(--serif); color: var(--deep-2); }

/* ── Service detail modal ───────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(8,36,26,.72); backdrop-filter: blur(4px); }
.modal[hidden] { display: none !important; }
.modal-box { position: relative; width: min(820px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--paper); outline: 1px solid var(--gold); outline-offset: -10px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.modal-head { position: relative; background: var(--deep); color: #fff; padding: 34px 40px 30px; }
.modal-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 20%, rgba(6,106,58,.55), transparent 60%); }
.modal-head > * { position: relative; }
.modal-head h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; padding-right: 40px; }
.modal-head p { margin: 0; color: rgba(255,255,255,.82); }
.modal-close { position: absolute; top: 20px; right: 20px; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; color: var(--gold); border: 1px solid rgba(194,155,69,.6); border-radius: 50%; cursor: pointer; }
.modal-close:hover { background: var(--gold); color: var(--deep-3); }
.modal-body { padding: 32px 40px 36px; }
.modal-body h3 { font-size: 20px; margin: 0 0 14px; }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.modal-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.modal-stats div { text-align: center; padding: 18px 8px; }
.modal-stats div + div { border-left: 1px solid var(--line); }
.modal-stats strong { display: block; font: 600 28px/1.1 var(--serif); color: var(--accent); }
.modal-stats span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
body.modal-open { overflow: hidden; }

/* ── CTA strip & footer ─────────────────────────────────── */
.cta-strip { background: var(--deep-3); color: #fff; border-top: 3px solid var(--gold); }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px 40px; padding-block: 52px; }
.cta-strip h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta-strip p { margin: 0; color: rgba(255,255,255,.78); }
.cta-strip a:not(.btn) { color: var(--gold); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { background: var(--deep); color: rgba(255,255,255,.75); font-size: 16px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
.ft-about p { margin: 18px 0; }
.ft-logo { display: inline-block; background: var(--white); padding: 10px 14px; outline: 1px solid var(--gold); outline-offset: 4px; }
.ft-logo .brand-logo { width: 170px; }
.ft-h { font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 6px 0 20px; }
.ft-h-sm { margin-top: 26px; }
.ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.ft-links a:hover { color: #fff; text-decoration: underline; }
.ft-contact { font-style: normal; display: grid; gap: 12px; }
.ft-contact span, .ft-contact a { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.78); text-decoration: none; }
.ft-contact a:hover { color: #fff; }
.ft-contact .ico { color: var(--gold); margin-top: 4px; }
.ft-social { display: flex; gap: 8px; }
.ft-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(194,155,69,.5); color: var(--gold); border-radius: 50%; }
.ft-social a:hover { background: var(--gold); color: var(--deep-3); }
.ft-certs { display: flex; gap: 10px; flex-wrap: wrap; }
.ft-certs img { height: 64px; width: auto; background: #fff; padding: 4px; border-radius: 2px; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.ft-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 20px; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.ft-legal a { color: rgba(255,255,255,.7); text-decoration: none; }
.ft-legal a:hover { color: #fff; }

.to-top { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 44px; height: 44px; background: var(--deep); color: var(--gold); border: 1px solid var(--gold); cursor: pointer; display: grid; place-items: center; }

/* ── Reveal animation ───────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1180px) {
  .primary a { padding: 10px 8px; font-size: 13px; }
  .primary > ul > li > a::after { left: 8px; right: 8px; }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; }
  .primary { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 80px); overflow-y: auto; display: none; }
  .primary.open { display: block; }
  .primary > ul { flex-direction: column; align-items: stretch; padding: 10px clamp(16px, 4vw, 32px) 20px; gap: 0; }
  .primary > ul > li { border-bottom: 1px solid var(--line); }
  .primary > ul > li > a { padding: 15px 0; }
  .primary > ul > li > a::after { display: none; }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .sub-toggle { margin: 0; padding: 12px; }
  .sub, .sub.mega { position: static; flex-basis: 100%; width: auto; min-width: 0; box-shadow: none; border: 0; border-top: 1px dashed var(--line); opacity: 1; visibility: visible; transform: none; display: none; padding: 6px 0; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .sub a { padding: 10px 6px; }
  .sub-h { padding: 12px 6px 4px; }
  .primary .nav-cta { margin: 16px 0 0; border: 0; }
  .primary .nav-cta .btn { width: 100%; }
  .hdr { position: relative; }
}
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .f-item + .f-item { border-left: 0; border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { left: 33px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 66px 1fr; gap: 20px; text-align: left; padding: 0; }
  .t-num { margin: 0; }
  .s-grid, .ind-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .tb-hide { display: none !important; }
  .tb-social { display: none; }
  .brand-logo { width: 124px; }
  .menu-btn span { display: none; }
  .s-grid, .s-grid.two, .ind-grid, .ft-grid, .checks, .f-row, .modal-cols { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .frame { padding: 28px 20px; outline-offset: 6px; }
  .portrait-stats { grid-template-columns: 1fr 1fr; }
  .portrait-stats strong { font-size: 26px; }
  .stat-num { font-size: 34px; }
  .job { grid-template-columns: 1fr; padding: 26px 22px; }
  .job-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
  .modal-head { padding: 28px 22px 24px; }
  .modal-body { padding: 26px 22px 28px; }
  .modal-stats { grid-template-columns: 1fr 1fr; }
  .modal-stats div:nth-child(3) { border-left: 0; }
  .modal-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-actions .btn, .modal-body .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .cta-strip, .site-footer, .to-top, .modal { display: none !important; }
  body { background: #fff; }
}

/* ── Device robustness ─────────────────────────────────── */
.split > *, .s-grid > *, .ind-grid > *, .ft-grid > *, .f-row > *, .f-grid > *, .hero .wrap > *,
.contact-cards > *, .c-card > div, .tech-grid > *, .modal-cols > *, .job > * { min-width: 0; }
.ft-contact, .c-card, .ft-about, .legal { overflow-wrap: anywhere; }
input, select, textarea { font-size: 16px; }
@media (pointer: coarse) {
  .ft-links a { padding-block: 8px; display: inline-block; }
  .ft-links { gap: 2px; }
  .tb-info a { padding-block: 4px; }
}
@media (max-width: 359px) {
  .wrap { padding-inline: 14px; }
  .brand-logo { width: 108px; }
  .btn { padding: 15px 18px; letter-spacing: .08em; }
  .frame-stats strong { font-size: 28px; }
  .tb-info { gap: 4px 14px; font-size: 13px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero .wrap { padding-block: 40px; }
  .site-header { position: relative; }
  .primary { max-height: 70vh; }
}
@media (min-width: 641px) and (max-width: 980px) {
  .hero .wrap { gap: 48px; }
  .frame { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (min-width: 1600px) {
  :root { --max: 1320px; }
  body { font-size: 18px; }
}

/* ==========================================================================
   Rich UI additions
   ========================================================================== */

/* Reading progress + header shadow once scrolled */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--accent)); z-index: 60; }
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(15,58,43,.08); }
.tb-badges { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.75); }
.tb-badges .ico { color: var(--gold); }

/* Hero decoration: slow gold rings and floating badges around the stats frame */
.hero-art { position: relative; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border: 1px solid rgba(194,155,69,.35); border-radius: 50%; pointer-events: none; }
.hero-art::before { width: 520px; height: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; animation: spin 60s linear infinite; border-style: dashed; }
.hero-art::after { width: 400px; height: 400px; left: 50%; top: 50%; margin: -200px 0 0 -200px; }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--white); color: var(--deep); font: 600 13px/1 var(--sans); letter-spacing: .06em; box-shadow: 0 14px 30px rgba(0,0,0,.22); border-left: 3px solid var(--gold); animation: float 6s ease-in-out infinite; }
.chip .ico { color: var(--accent); }
.chip-1 { top: -26px; left: -30px; }
.chip-2 { top: 120px; right: -44px; animation-delay: -2s; }
.chip-3 { bottom: -28px; left: 30px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 .line { display: block; }
.js .hero .rise { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero .rise:nth-child(2) { animation-delay: .12s; } .js .hero .rise:nth-child(3) { animation-delay: .24s; }
.js .hero .rise:nth-child(4) { animation-delay: .36s; } .js .hero .rise:nth-child(5) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Inner page hero with a photo behind the green */
.page-hero.has-photo { background: var(--deep) var(--hero-photo) center/cover no-repeat; }
.page-hero.has-photo::before { background: linear-gradient(180deg, rgba(8,36,26,.86), rgba(15,58,43,.92)), radial-gradient(ellipse at 85% 20%, rgba(6,106,58,.55), transparent 55%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* Capability marquee */
.marquee { background: var(--deep-3); color: rgba(255,255,255,.85); overflow: hidden; border-block: 1px solid rgba(194,155,69,.35); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 22px; padding: 20px 22px; font: italic 500 20px/1 var(--serif); white-space: nowrap; }
.marquee-item::after { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Service card extras */
.s-card .s-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.s-card .s-head .s-num { margin: 0; }
.s-card .s-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper-2); margin-bottom: 20px; transition: background .25s, color .25s; }
.s-card:hover .s-ico { background: var(--accent); color: #fff; }
.ind-card:hover .ind-ico { background: var(--accent); color: #fff; }
.ind-ico { transition: background .25s, color .25s; }
.ind-card { display: flex; flex-direction: column; align-items: center; }
.ind-card p { flex: 1; }

/* Photo cards (services/solutions overview) */
.photo-card { position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: #fff; background: var(--deep) center/cover no-repeat; isolation: isolate; }
.photo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,36,26,.15) 0%, rgba(8,36,26,.88) 70%); transition: background .3s; }
.photo-card::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(194,155,69,.55); pointer-events: none; }
.photo-card:hover::before { background: linear-gradient(180deg, rgba(8,36,26,.35) 0%, rgba(8,36,26,.94) 60%); }
.photo-card .pc-body { padding: 34px 32px; }
.photo-card h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.photo-card p { color: rgba(255,255,255,.82); margin: 0 0 14px; font-size: 16px; }
.photo-card .link-arrow { color: var(--gold); }
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* FAQ accordion */
details.qa { border-bottom: 1px solid var(--line); }
details.qa:first-of-type { border-top: 1px solid var(--line); }
details.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 18px 6px 18px 0; font: 600 19px/1.4 var(--serif); color: var(--deep); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; flex: none; width: 22px; text-align: center; font: 400 26px/1 var(--sans); color: var(--gold-d); transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa summary:hover { color: var(--accent); }
details.qa .ans { padding: 0 0 20px; color: var(--muted); }
details.qa .ans p { margin: 0; }

/* Testimonial fade on change */
#qBox.swap { animation: qfade .6s ease; }
@keyframes qfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stars { display: flex; justify-content: center; gap: 4px; color: var(--gold); margin-bottom: 6px; }
.stars .ico { fill: currentColor; }

/* Value cards with large numerals */
.value { position: relative; background: var(--white); border: 1px solid var(--line); padding: 40px 32px 34px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s, opacity .7s ease; overflow: hidden; }
.value:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15,58,43,.1); border-color: var(--gold); }
.value .v-num { position: absolute; right: 18px; top: 4px; font: italic 600 86px/1 var(--serif); color: var(--paper-2); z-index: 0; }
.value > * { position: relative; }
.value .f-ico { margin-bottom: 20px; }
.value h3 { font-size: 22px; }
.value p { color: var(--muted); font-size: 16px; margin: 0; }

/* Timeline of milestones (about) */
.milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--gold); }
.milestones div { padding: 26px 20px 0; position: relative; }
.milestones div::before { content: ""; position: absolute; top: -6px; left: 20px; width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); }
.milestones strong { display: block; font: 600 30px/1.1 var(--serif); color: var(--accent); margin-bottom: 6px; }
.milestones span { color: var(--muted); font-size: 15.5px; }

/* Form errors, file picker */
.f-err { display: block; color: #B3261E; font-size: 14px; margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.file-pick { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px dashed var(--gold); background: var(--paper); cursor: pointer; }
.file-pick:hover { background: #fff; }
.file-pick .ico { color: var(--accent); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-pick strong { display: block; color: var(--deep); font-size: 15.5px; }
.file-pick small { color: var(--muted); font-size: 14px; }
.f-field:focus-within .file-pick { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,155,69,.2); }

/* Map */
.map-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--paper-2); }

/* Legal table of contents */
.legal-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.legal-toc { position: sticky; top: 110px; background: var(--white); border: 1px solid var(--line); padding: 24px; font-size: 15px; }
.legal-toc h2 { font-size: 18px; margin: 0 0 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.legal-toc li { counter-increment: t; }
.legal-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 0; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }
.legal-toc a::before { content: counter(t) "."; font: italic 500 14px/1.6 var(--serif); color: var(--gold-d); }
.legal-toc a:hover { color: var(--accent); }
.legal-wrap .legal { margin: 0; }

@media (max-width: 980px) {
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-art::before, .hero-art::after { display: none; }
  .pc-grid { grid-template-columns: 1fr 1fr; }
  .milestones { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 640px) {
  .chip { display: none; }
  .pc-grid, .milestones { grid-template-columns: 1fr; }
  .marquee-item { font-size: 17px; padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero .rise { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* Popup links inside check lists */
.checks a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--gold); }
.checks a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.kicker .ico { color: var(--gold-d); }

/* Hero stat cards (glass panels over the photo) */
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: center; }
.glass { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 24px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.16); border-top: 2px solid var(--gold); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 48px rgba(0,0,0,.25); transition: transform .3s ease, background .3s ease, border-color .3s; }
.glass:nth-child(even) { margin-top: 34px; margin-bottom: -34px; }
.glass:hover { transform: translateY(-6px); background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.06)); border-color: rgba(194,155,69,.6); }
.glass-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: rgba(194,155,69,.18); color: var(--gold); }
.glass .stat-num { font: 600 44px/1 var(--serif); color: #fff; }
.glass-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.glass-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; margin-top: 34px; padding: 20px 24px; }
.glass-wide .glass-ico { margin: 0; flex: none; }
.glass-title { display: block; font: 600 19px/1.3 var(--serif); color: #fff; margin-bottom: 4px; }
.js .hero .hero-cards .rise:nth-child(1) { animation-delay: .3s; } .js .hero .hero-cards .rise:nth-child(2) { animation-delay: .42s; }
.js .hero .hero-cards .rise:nth-child(3) { animation-delay: .54s; } .js .hero .hero-cards .rise:nth-child(4) { animation-delay: .66s; }
.js .hero .hero-cards .rise:nth-child(5) { animation-delay: .78s; }
@media (max-width: 980px) { .hero-cards { max-width: 560px; width: 100%; margin-inline: auto; } }
@media (max-width: 640px) {
  .glass:nth-child(even) { margin: 0; }
  .glass-wide { margin-top: 0; }
  .glass { padding: 20px 18px; }
  .glass .stat-num { font-size: 34px; }
  .glass-label { font-size: 11.5px; letter-spacing: .1em; }
}
