/* Medgo Licensing Procedures
   Layout: a licensing file moving forward. A full-width night hero (the logo's own ground) with the mark as a watermark;
   progress drawn as the mark's slanted blocks; light-weight type throughout; quiet reading pages elsewhere. */
/* Licensed fonts. Put the font files in assets/fonts (see README.txt there). Until then the fallbacks in --display and --body are used. */
@font-face { font-family: "Helvetica Now Display"; font-weight: 300; font-style: normal; font-display: swap; src: local("Helvetica Now Display Light"), local("HelveticaNowDisplay-Light"), url("fonts/HelveticaNowDisplay-Light.woff2") format("woff2"), url("fonts/HelveticaNowDisplay-Light.otf") format("opentype"); }
@font-face { font-family: "Helvetica Now Display"; font-weight: 400; font-style: normal; font-display: swap; src: local("Helvetica Now Display Regular"), local("HelveticaNowDisplay-Regular"), local("Helvetica Now Display"), url("fonts/HelveticaNowDisplay-Regular.woff2") format("woff2"), url("fonts/HelveticaNowDisplay-Regular.otf") format("opentype"); }
@font-face { font-family: "Helvetica Now Display"; font-weight: 500; font-style: normal; font-display: swap; src: local("Helvetica Now Display Medium"), local("HelveticaNowDisplay-Medium"), url("fonts/HelveticaNowDisplay-Medium.woff2") format("woff2"), url("fonts/HelveticaNowDisplay-Medium.otf") format("opentype"); }

:root {
  --paper: #f7f4ee;
  --surface: #fffdf9;
  --sunk: #eee9e0;
  --ink: #18161f;
  --muted: #59566a;
  --line: #ddd6ca;
  --brand: #4543bd;
  --brand-soft: #e8e6f5;
  --lilac: #8f84d2;
  --btn: #4a48c2;
  --btn-hover: #3936a3;
  --on-btn: #ffffff;
  --ok: #17754f;
  --ok-soft: #dcf1e7;
  --warn: #855000;
  --warn-soft: #f8ecd6;
  --alert: #ab2a22;
  --alert-soft: #fbe4e1;
  --shadow: rgba(24, 22, 31, 0.2);
  --night: #0d0b22;
  --night-deep: #0d0b22;
  --night-rise: #1b1845;
  --night-card: rgba(255, 255, 255, 0.045);
  --night-line: #332e6e;
  --night-glow: #6a3aa9;
  --on-night: #f4f2fd;
  --on-night-muted: #bab6d9;
  --on-night-brand: #b3b0fb;
  --on-night-ok: #6bd6a8;
  --on-night-warn: #f0c070;
  /* All text, headings included: Helvetica Now Display. Licensed font, see assets/fonts/README.txt */
  --body: "Helvetica Now Display", "HelveticaNowDisplay", "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;
  --display: var(--body);
  --w-light: 300;
  --w-text: 300;
  --w-mid: 400;
  --w-strong: 500;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #13121a; --surface: #1c1b25; --sunk: #18171f; --ink: #efece6; --muted: #aba7b6; --line: #2e2c39;
    --brand: #b3b0fb; --brand-soft: #26244a; --lilac: #8f84d2; --btn: #5553cf; --btn-hover: #6a68e0; --on-btn: #ffffff;
    --ok: #6bd6a8; --ok-soft: #12362b; --warn: #f0c070; --warn-soft: #3a2c10; --alert: #ff9a90; --alert-soft: #45191a;
    --shadow: rgba(0, 0, 0, 0.5); --night: #17143b; --night-rise: #221e55; --night-line: #3a3580;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #13121a; --surface: #1c1b25; --sunk: #18171f; --ink: #efece6; --muted: #aba7b6; --line: #2e2c39;
  --brand: #b3b0fb; --brand-soft: #26244a; --lilac: #8f84d2; --btn: #5553cf; --btn-hover: #6a68e0; --on-btn: #ffffff;
  --ok: #6bd6a8; --ok-soft: #12362b; --warn: #f0c070; --warn-soft: #3a2c10; --alert: #ff9a90; --alert-soft: #45191a;
  --shadow: rgba(0, 0, 0, 0.5); --night: #17143b; --night-rise: #221e55; --night-line: #3a3580;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--w-text) 1.0625rem/1.62 var(--body); letter-spacing: 0.005em; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--w-light); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.03; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.2; font-weight: var(--w-mid); letter-spacing: -0.005em; }
a { color: var(--brand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
strong, b { font-weight: var(--w-strong); }
button { font: inherit; }

.wrap { max-width: 74rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.band { padding-block: clamp(3.25rem, 7.5vw, 6rem); }
.band-sunk { background: var(--sunk); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.lede { font-size: clamp(1.12rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 40rem; font-weight: var(--w-light); }
.eyebrow { font: var(--w-mid) 0.76rem/1.3 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.sec-head { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 46rem; }
.sec-head p:not(.eyebrow) { color: var(--muted); }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--surface); padding: 0.6rem 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.35rem; border: 1px solid var(--btn); border-radius: 3px;
  background: var(--btn); color: var(--on-btn); font: var(--w-strong) 1rem/1.2 var(--body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--lilac); }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.on-night .btn-ghost { color: var(--on-night); border-color: var(--night-line); }
.on-night .btn-ghost:hover { background: var(--night-rise); border-color: var(--on-night-brand); }
.on-night :focus-visible { outline-color: var(--on-night); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header and navigation */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; color: var(--ink); line-height: 0; }
.logo { height: 2.2rem; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 0.25rem 1.6rem; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: var(--w-mid); padding: 0.4rem 0; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-link:hover { border-bottom-color: var(--lilac); }
.nav-link[aria-current="page"], .nav-link.current { border-bottom-color: var(--brand); color: var(--brand); }
.chev { width: 0.55rem; height: 0.55rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dd { position: relative; }
.dd.open .chev { transform: translateY(2px) rotate(-135deg); }
.dd-menu { position: absolute; top: 100%; left: -1.25rem; width: 21rem; padding-top: 0.9rem; display: none; z-index: 5; }
.dd.open .dd-menu { display: block; }
@media (hover: hover) and (min-width: 62.01rem) { .dd:hover .dd-menu { display: block; } }
.dd-card { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px var(--shadow); padding: 0.5rem; display: flex; flex-direction: column; }
.dd-card a { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.7rem 0.85rem; color: var(--ink); text-decoration: none; border-radius: 2px; }
.dd-card a:hover, .dd-card a:focus-visible { background: var(--brand-soft); }
.dd-card a[aria-current="page"] { color: var(--brand); }
.dd-card a span { font-weight: var(--w-mid); }
.dd-card a small { color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
.dd-card .all { border-top: 1px solid var(--line); margin-top: 0.35rem; padding-top: 0.85rem; color: var(--brand); font-weight: var(--w-mid); flex-direction: row; gap: 0.4rem; }
.nav-track::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.nav-toggle { display: none; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; font: var(--w-mid) 0.95rem/1 var(--body); cursor: pointer; }
.nav-toggle .bars { width: 1rem; height: 0.7rem; border-block: 1.5px solid currentColor; position: relative; }
.nav-toggle .bars::after { content: ""; position: absolute; inset-inline: 0; top: calc(50% - 0.75px); border-top: 1.5px solid currentColor; }
@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  .site-nav.open { display: flex; }
  .nav-link { padding-block: 0.85rem; border-bottom: 1px solid var(--line); justify-content: space-between; width: 100%; text-align: left; }
  .nav-link.nav-track { justify-content: flex-start; }
  .nav-link[aria-current="page"], .nav-link.current { border-bottom-color: var(--line); }
  .dd-menu { position: static; width: auto; padding-top: 0; }
  .dd-card { border: 0; box-shadow: none; background: var(--sunk); }
  .site-nav .btn { margin-top: 1rem; justify-content: center; }
}

/* File card (hero) */
.file-card { background: var(--night-card); border: 1px solid var(--night-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 1.15rem; min-width: 0;
  --r-line: var(--night-line); --r-bg: var(--night-deep); --r-ok: var(--on-night-ok); --r-now: var(--on-night-brand); --r-wait: var(--on-night-warn); --r-muted: var(--on-night-muted); --r-ink: var(--on-night); }
.file-top { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; flex-wrap: wrap; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-muted); }
.live { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--on-night-ok); }
.live::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.tag { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.18rem 0.5rem; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.file-who { font: var(--w-light) 1.5rem/1.2 var(--display); }
.file-who span { display: block; font: var(--w-text) 0.92rem/1.4 var(--body); color: var(--on-night-muted); margin-top: 0.3rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.file-foot { border-top: 1px solid var(--night-line); padding-top: 0.9rem; font-size: 0.9rem; color: var(--on-night-muted); display: flex; justify-content: space-between; gap: 0.75rem 1.5rem; flex-wrap: wrap; align-items: baseline; }
.file-foot a { color: var(--on-night-brand); white-space: nowrap; }

/* Progress drawn as the mark's slanted blocks */
.segs { display: flex; gap: 0.4rem; padding-inline: 0.35rem; --r-line: var(--line); }
.file-card .segs { --r-line: var(--night-line); }
.segs i { flex: 1 1 0; height: 0.6rem; background: var(--r-line); transform: skewX(-24deg); }
.segs i.done { background: var(--r-ok, var(--ok)); }
.segs i.now { background: var(--r-now, var(--brand)); }
.segs i.wait { background: var(--r-wait, var(--warn)); }
.segs i.act { background: var(--alert); }
@media (prefers-reduced-motion: no-preference) {
  .segs i.now, .segs i.wait { animation: seg 2.2s ease-in-out infinite; }
  @keyframes seg { 50% { opacity: 0.45; } }
}

/* Route: a file's stages */
.route { display: flex; flex-direction: column; --r-line: var(--line); --r-bg: var(--paper); --r-ok: var(--ok); --r-now: var(--brand); --r-wait: var(--warn); --r-muted: var(--muted); --r-ink: var(--ink); }
.file-card .route { --r-line: var(--night-line); --r-bg: var(--night-deep); --r-ok: var(--on-night-ok); --r-now: var(--on-night-brand); --r-wait: var(--on-night-warn); --r-muted: var(--on-night-muted); --r-ink: var(--on-night); }
.route li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.9rem; padding-bottom: 1rem; position: relative; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: ""; width: 0.7rem; height: 0.7rem; margin: 0.45rem 0 0 0.2rem; border: 1.5px solid var(--r-line); background: var(--r-bg); transform: skewX(-18deg); position: relative; z-index: 1; }
.route li::after { content: ""; position: absolute; left: 0.52rem; top: 1.15rem; bottom: -0.45rem; width: 1px; background: var(--r-line); }
.route li:last-child::after { display: none; }
.route li.done::before { background: var(--r-ok); border-color: var(--r-ok); }
.route li.done::after { background: var(--r-ok); }
.route li.now::before { background: var(--r-now); border-color: var(--r-now); }
.route li.wait::before { background: var(--r-wait); border-color: var(--r-wait); }
.route li.act::before { background: var(--alert); border-color: var(--alert); }
.route .st { font-weight: var(--w-mid); line-height: 1.35; color: var(--r-ink); display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; justify-content: space-between; align-items: baseline; }
.route .st time, .route .st .when { font-weight: var(--w-text); font-size: 0.85rem; color: var(--r-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.route .sub { display: block; font-size: 0.9rem; line-height: 1.45; color: var(--r-muted); margin-top: 0.15rem; }
.route li.done .sub b, .route li.now .sub b, .route li.wait .sub b, .route li.act .sub b { font-weight: var(--w-mid); }
.route li.done .sub b { color: var(--r-ok); }
.route li.now .sub b { color: var(--r-now); }
.route li.wait .sub b { color: var(--r-wait); }
.route li.act .sub b { color: var(--alert); }
.route li.todo .st { color: var(--r-muted); font-weight: var(--w-text); }

/* Live tracking feature (home) */
.track-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.track-feature > * { min-width: 0; }
@media (max-width: 56rem) { .track-feature { grid-template-columns: minmax(0, 1fr); } }
.jump-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.25rem, 3.5vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.jump-card h3 { font-size: 1.5rem; font-weight: var(--w-light); }
.jump-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.jump-row input { flex: 1 1 12rem; min-width: 0; }
.jump-card p { color: var(--muted); font-size: 0.95rem; }

/* Service rows (home, services overview) */
.svc { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem); padding-block: clamp(1.5rem, 3vw, 2.1rem); border-bottom: 1px solid var(--line); }
.svc-row > * { min-width: 0; }
.svc-main { display: flex; flex-direction: column; gap: 0.6rem; }
.svc-main h3 { font-size: 1.6rem; font-weight: var(--w-light); }
.svc-main h3 a { color: var(--ink); text-decoration: none; }
.svc-main h3 a:hover { color: var(--brand); }
.svc-main p { color: var(--muted); }
.svc-main .more { font-weight: var(--w-mid); align-self: flex-start; }
.kv dt { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; font-weight: var(--w-mid); }
.kv dd { font-size: 1rem; }
@media (max-width: 52rem) { .svc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .svc-main { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .svc-row { grid-template-columns: minmax(0, 1fr); } }

/* Split sections, pledges, steps */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } }
.pledges { display: flex; flex-direction: column; }
.pledges li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 1rem; padding-block: 1.2rem; border-top: 1px solid var(--line); }
.pledges li:last-child { border-bottom: 1px solid var(--line); }
.pledges li::before { content: ""; width: 0.9rem; height: 0.9rem; margin-top: 0.45rem; background: var(--brand); transform: skewX(-18deg); }
.pledges h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.pledges p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; counter-reset: step; }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1.15rem; border-top: 1px solid var(--line); position: relative; min-width: 0; }
.steps li::before { content: "Step " counter(step); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: var(--w-mid); }
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 1px; background: var(--brand); }
.steps h3 { font-size: 1.22rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 62rem) { .steps, .steps.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .steps, .steps.five { grid-template-columns: minmax(0, 1fr); } }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { border: 1px solid var(--line); background: var(--surface); padding: 0.35rem 0.8rem; font-size: 0.95rem; border-radius: 2px; }
.note { background: var(--sunk); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.band-sunk .note { background: var(--surface); }
.note .eyebrow { color: var(--muted); }
.note p { font-size: 0.99rem; }
.no-list { display: flex; flex-direction: column; gap: 0.7rem; }
.no-list li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.7rem; }
.no-list li::before { content: ""; height: 1px; background: var(--muted); margin-top: 0.85rem; }

/* Link rows: guide hub, teasers, other services */
.rows { border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.rows a { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) 1.5rem; gap: 0.4rem 2rem; align-items: baseline; padding-block: 1.25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rows a > * { min-width: 0; }
.rows h3 { font-size: 1.4rem; font-weight: var(--w-light); }
.rows p { color: var(--muted); font-size: 0.99rem; }
.rows .arr { color: var(--brand); transition: transform .15s; }
.rows a:hover h3 { color: var(--brand); }
.rows a:hover .arr { transform: translateX(4px); }
@media (max-width: 46rem) { .rows a { grid-template-columns: minmax(0, 1fr) 1.5rem; } .rows p { grid-column: 1; grid-row: 2; } .rows .arr { grid-row: 1; grid-column: 2; } }
.group-label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: var(--w-mid); margin: 2.5rem 0 0.9rem; }
.group-label:first-child { margin-top: 0; }
.teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.teasers a { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem 1.25rem 1.5rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.teasers a + a { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.teasers a:hover h3 { color: var(--brand); }
.teasers p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 52rem) { .teasers { grid-template-columns: minmax(0, 1fr); } .teasers a + a { padding-left: 0; border-left: 0; } }

/* Night panel (closing call) */
.night { background: radial-gradient(90% 120% at 100% 100%, var(--night-glow) 0%, transparent 58%), radial-gradient(70% 80% at 0% 0%, var(--night-rise) 0%, transparent 65%), var(--night);
  color: var(--on-night); border: 1px solid var(--night-line); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.6rem), calc(100% - 1.7rem) 100%, 0 100%); }
.closing { padding-block: 0 clamp(3.25rem, 7.5vw, 6rem); }
.closing.spaced { padding-top: clamp(3.25rem, 7.5vw, 6rem); }
.closing-panel { padding: clamp(1.75rem, 5vw, 3.75rem); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.closing-panel > div { display: flex; flex-direction: column; gap: 0.7rem; max-width: 38rem; min-width: 0; }
.closing-panel p { color: var(--on-night-muted); }

/* Inner page head */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-direction: column; gap: 1.1rem; }
.page-head h1 { max-width: 20ch; }
.crumbs { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: var(--w-mid); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.reviewed { font-size: 0.88rem; color: var(--muted); max-width: 44rem; }

/* About */
.name-plate { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.75rem; }
.name-plate div { flex: 1 1 11rem; padding: 1.25rem 1.4rem 1.4rem; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.name-plate .syll { font: var(--w-light) clamp(2.8rem, 7vw, 4.6rem)/0.95 var(--display); letter-spacing: -0.02em; }
.name-plate .go .syll { color: var(--brand); }
.name-plate small { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: var(--w-mid); }
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.mv > div { display: flex; flex-direction: column; gap: 0.85rem; padding-top: 1.3rem; border-top: 1px solid var(--brand); min-width: 0; }
.mv .big { font: var(--w-light) clamp(1.45rem, 2.5vw, 1.95rem)/1.25 var(--display); text-wrap: pretty; }
.mv p:not(.big):not(.eyebrow) { color: var(--muted); }
@media (max-width: 46rem) { .mv { grid-template-columns: minmax(0, 1fr); } }
.prose { display: flex; flex-direction: column; gap: 1rem; max-width: 42rem; }

/* Service pages */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 4vw, 3.5rem); }
.cols-2 > * { min-width: 0; }
@media (max-width: 40rem) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.ticks { display: flex; flex-direction: column; gap: 0.6rem; }
.ticks li { display: grid; grid-template-columns: 0.9rem minmax(0, 1fr); gap: 0.75rem; }
.ticks li::before { content: ""; width: 0.55rem; height: 0.55rem; margin-top: 0.58rem; background: var(--brand); transform: skewX(-18deg); }
.ticks.plain li::before { background: transparent; border: 1px solid var(--lilac); }
.h-label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.85rem; font-weight: var(--w-mid); }
.side-notes { display: flex; flex-direction: column; gap: 1rem; }
.faq { max-width: 46rem; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 38rem; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: var(--w-text); }
thead th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: var(--sunk); white-space: nowrap; font-weight: var(--w-mid); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: var(--w-strong); white-space: nowrap; }
tbody th span { display: block; font-weight: var(--w-text); font-size: 0.84rem; color: var(--muted); margin-top: 0.1rem; white-space: normal; }
.table-cap { font-size: 0.92rem; color: var(--muted); margin-top: 0.8rem; max-width: 46rem; }

/* Guide pages */
.guide-grid { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5.75rem); display: flex; flex-direction: column; gap: 0.9rem; }
.toc ol { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.42rem 0 0.42rem 1rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.97rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--lilac); }
.toc a[aria-current="page"] { color: var(--brand); border-left-color: var(--brand); font-weight: var(--w-mid); }
.article { display: flex; flex-direction: column; gap: 1.05rem; min-width: 0; }
.article > * { max-width: 43rem; }
.article > .table-scroll, .article > .table-cap, .article > .path, .article > .cols-2, .article > .pager { max-width: none; }
.article h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 1.4rem; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 0.7rem; font-size: 1.22rem; }
.article ul:not(.ticks):not(.links), .article ol.num { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.25rem; }
.article ul:not(.ticks):not(.links) { list-style: square; }
.article ol.num { list-style: decimal; }
.article li::marker { color: var(--brand); }
@media (max-width: 58rem) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; background: var(--sunk); padding: 1.1rem 1.25rem; order: 2; }
}
.path { display: flex; flex-direction: column; counter-reset: p; border: 1px solid var(--line); background: var(--surface); }
.path li { counter-increment: p; display: grid; grid-template-columns: 2rem minmax(0, 13rem) minmax(0, 1fr); gap: 0.25rem 1rem; align-items: baseline; padding: 0.95rem 1.1rem; border-top: 1px solid var(--line); font-size: 0.97rem; color: var(--muted); }
.path li:first-child { border-top: 0; }
.path li::before { content: counter(p, decimal-leading-zero); font-size: 0.8rem; color: var(--brand); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.path b { color: var(--ink); font: var(--w-mid) 1.08rem/1.25 var(--display); }
@media (max-width: 40rem) { .path li { grid-template-columns: 2rem minmax(0, 1fr); } .path li span { grid-column: 2; } }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; color: var(--ink); min-width: 0; }
.pager a small { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: var(--w-mid); }
.pager a span { font: var(--w-light) 1.3rem/1.25 var(--display); }
.pager a:hover span { color: var(--brand); }
.pager .next { text-align: right; grid-column: 2; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: var(--w-mid); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.8rem; font-size: 1.4rem; line-height: 1; color: var(--brand); font-weight: var(--w-light); }
details[open] summary::after { content: "\2212"; }
details > div { padding-bottom: 1.15rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.6rem; }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 2rem; }
.links li { min-width: 0; font-size: 0.98rem; }
.links span { color: var(--muted); }
@media (max-width: 34rem) { .links { grid-template-columns: minmax(0, 1fr); } }

/* Forms */
label, legend { font-weight: var(--w-mid); font-size: 0.96rem; padding: 0; }
label small, legend small { font-weight: var(--w-text); color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: var(--w-text) 1rem/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 0.75rem 0.85rem; }
textarea { min-height: 8.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--alert); }
.err { color: var(--alert); font-size: 0.9rem; font-weight: var(--w-mid); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.25rem; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.15rem, 3.5vw, 2.25rem); }
.field.full, .form > .full { grid-column: 1 / -1; }
@media (max-width: 36rem) { .form { grid-template-columns: minmax(0, 1fr); } }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checks label { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 3px; font-weight: var(--w-text); cursor: pointer; background: var(--paper); }
.checks input { accent-color: var(--btn); width: 1rem; height: 1rem; margin: 0; }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.hp { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.form-foot p { font-size: 0.92rem; color: var(--muted); flex: 1 1 14rem; min-width: 0; }
.result { grid-column: 1 / -1; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.7rem; }
.result.ok { background: var(--ok-soft); border: 1px solid var(--ok); }
.result.ok h3 { color: var(--ok); }
.result.fallback { background: var(--warn-soft); border: 1px solid var(--warn); }
.result textarea { min-height: 11rem; font-size: 0.9rem; background: var(--surface); }
.side { display: flex; flex-direction: column; gap: 1.9rem; }
.side h2 { font-size: 1.5rem; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.mail code { font: var(--w-mid) 1.05rem/1.3 var(--body); user-select: all; overflow-wrap: anywhere; }
.next { display: flex; flex-direction: column; counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.6rem; padding-block: 0.85rem; border-top: 1px solid var(--line); }
.next li::before { content: counter(n); font-size: 0.9rem; line-height: 1.9; color: var(--brand); font-variant-numeric: tabular-nums; }

/* Tracking */
.track-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.track-form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.1rem, 3vw, 1.75rem); }
.track-form .btn { height: 3.05rem; }
.track-form .err { grid-column: 1 / -1; }
@media (max-width: 46rem) { .track-form { grid-template-columns: minmax(0, 1fr); } .track-form .btn { justify-content: center; } }
#t-id { text-transform: uppercase; letter-spacing: 0.06em; }
.demo-note { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; align-items: center; justify-content: space-between; background: var(--brand-soft); border: 1px solid var(--lilac); padding: 0.9rem 1.15rem; font-size: 0.97rem; }
.demo-note p { flex: 1 1 18rem; min-width: 0; }
.t-msg { padding: 1.1rem 1.25rem; border: 1px solid var(--warn); background: var(--warn-soft); display: flex; flex-direction: column; gap: 0.35rem; }
.t-msg h2 { font-size: 1.3rem; font-weight: var(--w-mid); }
.tr { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.25rem); margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.tr-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2.5rem; align-items: start; }
.tr-head > * { min-width: 0; }
.tr-id { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 0.7rem; }
.tr-id .tag { color: var(--brand); }
.tr-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.tr-head .lede { margin-top: 0.7rem; font-size: 1.1rem; }
.tr-meta { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.tr-meta dl { display: grid; grid-template-columns: auto auto; gap: 0.25rem 1.1rem; font-size: 0.93rem; }
.tr-meta dt { color: var(--muted); }
.tr-meta dd { font-variant-numeric: tabular-nums; }
@media (max-width: 50rem) { .tr-head { grid-template-columns: minmax(0, 1fr); } }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.7rem; border-radius: 99px; font-size: 0.86rem; font-weight: var(--w-mid); white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.pill.now { background: var(--brand-soft); color: var(--brand); }
.pill.wait { background: var(--warn-soft); color: var(--warn); }
.pill.act { background: var(--alert-soft); color: var(--alert); }
.pill.todo { background: transparent; color: var(--muted); border-color: var(--line); }
.tr-progress { display: flex; flex-direction: column; gap: 0.7rem; }
.tr-progress .segs i { height: 0.75rem; }
.tr-progress p { font-size: 0.93rem; color: var(--muted); }
.tr-next { border-left: 0; }
.tr-next p:last-child { font-size: 1.08rem; }
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(1.75rem, 5vw, 4rem); align-items: start; }
.tr-grid > * { min-width: 0; display: flex; flex-direction: column; gap: 1.15rem; }
@media (max-width: 54rem) { .tr-grid { grid-template-columns: minmax(0, 1fr); } }
.tr h3 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: var(--w-mid); padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.docs { display: flex; flex-direction: column; }
.docs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 1rem; align-items: baseline; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.docs li:first-child { padding-top: 0; }
.docs .dn { font-weight: var(--w-mid); min-width: 0; }
.docs .dnote { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); }
.log { display: flex; flex-direction: column; }
.log li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.2rem 1.25rem; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.log li:first-child { padding-top: 0; }
.log time { color: var(--muted); font-size: 0.93rem; font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) { .log li { grid-template-columns: minmax(0, 1fr); } }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2rem; }
.legend li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; font-size: 0.97rem; color: var(--muted); }
.legend li > span:first-child { justify-self: start; }
@media (max-width: 50rem) { .legend { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 26rem) { .legend li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; } }

/* Footer */
.site-foot { background: var(--sunk); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.75rem) 2rem; font-size: 0.97rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); }
.foot-grid > * { min-width: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.foot-grid .logo { height: 2.1rem; }
.foot-grid p { color: var(--muted); max-width: 22rem; }
.foot-grid h2 { font: var(--w-mid) 0.74rem/1.3 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { display: flex; flex-direction: column; gap: 0.5rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.fine { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; display: flex; flex-direction: column; gap: 0.4rem; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }

.fine-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.5rem; }
.fine-row a { color: var(--ink); }
.fine-row a:hover { color: var(--brand); }

/* Photography and editorial details.
   Photos live in assets/img; swap a file for your own with the same name and it appears everywhere that photo is used. */
.btn { border-radius: 6px; }
.nav-toggle { border-radius: 6px; }
.jump-card, .form, .track-form, .table-scroll, .path, .name-plate div, .note, .demo-note, .t-msg, .result { border-radius: 8px; }
.tags li { border-radius: 99px; }
.toc { top: calc(env(safe-area-inset-top, 0px) + 5.75rem); }

/* Header: theme switch */
.site-head { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.head-row { justify-content: flex-start; }
.site-nav { margin-left: auto; }
.theme-toggle { order: 3; margin-left: 1.4rem; width: 2.5rem; height: 2.5rem; flex: none; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .3s; }
.theme-toggle:hover { border-color: var(--ink); transform: rotate(-15deg); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; display: block; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.nav-toggle { order: 4; margin-left: 0.6rem; }
@media (max-width: 62rem) {
  .head-row { column-gap: 0.5rem; }
  .site-nav { order: 5; margin-left: 0; }
  .theme-toggle { margin-left: auto; }
}
@media (max-width: 26rem) { .head-row .logo { height: 1.85rem; } }

/* Photos */
.photo { margin: 0; display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; }
.photo img, .thumb img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--sunk); }
.photo img { border-radius: 4px; }
.photo figcaption { display: flex; gap: 0.65rem; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.photo figcaption::before { content: ""; flex: 0 0 1.4rem; height: 1px; margin-top: 0.62em; background: currentColor; opacity: 0.6; }
:root[data-theme="dark"] .photo img, :root[data-theme="dark"] .thumb img { filter: brightness(0.88) saturate(0.95); }

/* Home: opening */
.opening { padding-top: clamp(2.25rem, 5vw, 4.25rem); }
.opening-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.opening-copy { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.opening-copy .eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; }
.opening-copy .eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; }
.opening-copy h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); line-height: 1; letter-spacing: -0.025em; }
.opening-copy h1 em { font-style: normal; color: var(--brand); }
.opening-copy .lede { max-width: 33rem; }
.opening-note { font-size: 0.95rem; color: var(--muted); max-width: 31rem; }
.opening { position: relative; overflow: hidden; isolation: isolate; }
.opening-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30rem 24rem at 80% 34%, rgba(69, 67, 189, 0.30), transparent 70%),
    radial-gradient(24rem 20rem at 64% 78%, rgba(226, 150, 182, 0.30), transparent 70%),
    radial-gradient(26rem 22rem at 98% 4%, rgba(143, 132, 210, 0.38), transparent 70%); }
:root[data-theme="dark"] .opening-glow {
  background:
    radial-gradient(30rem 24rem at 80% 34%, rgba(85, 83, 207, 0.38), transparent 70%),
    radial-gradient(24rem 20rem at 64% 78%, rgba(150, 70, 140, 0.30), transparent 70%),
    radial-gradient(26rem 22rem at 98% 4%, rgba(106, 58, 169, 0.40), transparent 70%); }
.opening-visual { position: relative; min-width: 0; display: grid; justify-items: center; padding-block: 2.5rem 3.4rem; }
.opening-visual .file-card { width: min(25rem, 100%); }
.file-card { background: linear-gradient(150deg, rgba(30, 27, 72, 0.93), rgba(15, 13, 40, 0.95)); color: var(--on-night); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 34px 64px -28px rgba(10, 8, 30, 0.6); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); }
.file-card .route li { padding-bottom: 0.7rem; }
.file-card .route .sub { font-size: 0.84rem; }
/* Small glass chips floating around the status card */
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.9rem; border-radius: 12px; font-size: 0.86rem; line-height: 1.25; white-space: nowrap;
  background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.chip b { font-weight: var(--w-mid); }
.chip small { display: block; color: var(--muted); font-size: 0.76rem; }
.chip i { width: 0.6rem; height: 0.6rem; flex: none; transform: skewX(-18deg); background: var(--ok); }
.chip.c2 i { background: var(--brand); }
.chip.c1 { top: 0.4rem; left: -0.5rem; }
.chip.c2 { bottom: 0; right: -0.75rem; }
@media (prefers-reduced-motion: no-preference) {
  .chip.c1 { animation: drift 6s ease-in-out infinite; }
  .chip.c2 { animation: drift 7s ease-in-out -2.5s infinite; }
  @keyframes drift { 50% { transform: translateY(-8px); } }
}
@media (max-width: 60rem) {
  .opening-grid { grid-template-columns: minmax(0, 1fr); }
  .chip.c1 { left: 0; }
  .chip.c2 { right: 0; }
}
/* Track your status: ID field in the opening */
.hero-track { display: flex; flex-direction: column; gap: 0.55rem; max-width: 31rem; }
.hero-track label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-track label::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.hero-track-row { display: flex; gap: 0.4rem; padding: 0.4rem; border-radius: 14px; background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); transition: border-color .2s, box-shadow .2s; }
.hero-track-row:focus-within { border-color: var(--brand); box-shadow: var(--glass-shadow), 0 0 0 4px var(--brand-soft); }
.hero-track-row input[type="text"] { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 0.7rem 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-track-row input[type="text"]:focus-visible { outline: none; }
.hero-track-row input::placeholder { text-transform: none; letter-spacing: normal; color: var(--muted); }
.hero-track-row .btn { border-radius: 10px; flex: none; }
.auth-strip { margin-top: clamp(2.5rem, 5vw, 4rem); border-block: 1px solid var(--line); }
.auth-strip ul { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem clamp(1rem, 2.6vw, 2.25rem); padding-block: 1.1rem; }
.auth-strip li { font-size: 0.92rem; color: var(--muted); white-space: nowrap; }
.auth-strip li b { color: var(--ink); font-weight: var(--w-mid); letter-spacing: 0.06em; margin-right: 0.35rem; }
.auth-strip .lbl { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }

/* Home: tracking photo with the shortcut card laid over it */
.track-visual { min-width: 0; }
.track-visual .photo img { aspect-ratio: 5 / 4; }
.track-visual .jump-card { position: relative; margin: -5.5rem 0 0 clamp(1rem, 7vw, 4.5rem); box-shadow: 0 22px 44px -26px var(--shadow); }

/* Service rows with a photo */
.svc-row.has-thumb { grid-template-columns: 8.5rem minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
.svc-thumb img { aspect-ratio: 1; border-radius: 4px; }
@media (max-width: 52rem) {
  .svc-row.has-thumb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-thumb { grid-column: 1 / -1; }
  .svc-thumb img { aspect-ratio: 16 / 7; }
}
@media (max-width: 30rem) { .svc-row.has-thumb { grid-template-columns: minmax(0, 1fr); } }

/* People strip: staggered portraits */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.25rem); margin-bottom: clamp(2.25rem, 5vw, 3.5rem); align-items: start; }
.people .photo img { aspect-ratio: 3 / 4; }
.people .photo:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 46rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split-photo { margin-top: 1.25rem; }
.split-photo img { aspect-ratio: 4 / 3; }

/* Thumbnails in link lists */
.thumb { display: block; overflow: hidden; border-radius: 4px; }
.thumb img { transition: transform .5s ease; }
a:hover .thumb img { transform: scale(1.04); }
.teasers .thumb { margin-bottom: 0.6rem; }
.teasers .thumb img { aspect-ratio: 3 / 2; }
.rows.with-thumbs a { grid-template-columns: 5.5rem minmax(0, 0.9fr) minmax(0, 1.4fr) 1.5rem; align-items: center; }
.rows.with-thumbs .thumb img { aspect-ratio: 4 / 3; }
@media (max-width: 46rem) {
  .rows.with-thumbs a { grid-template-columns: 4.5rem minmax(0, 1fr) 1.5rem; align-items: start; }
  .rows.with-thumbs .thumb { grid-row: 1 / 3; grid-column: 1; }
  .rows.with-thumbs h3 { grid-row: 1; grid-column: 2; }
  .rows.with-thumbs p { grid-row: 2; grid-column: 2; }
  .rows.with-thumbs .arr { grid-row: 1; grid-column: 3; }
}

/* Inner page heads with a photo */
.page-head.has-photo .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.ph-copy { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.ph-photo img { aspect-ratio: 4 / 3; }
@media (max-width: 52rem) {
  .page-head.has-photo .wrap { grid-template-columns: minmax(0, 1fr); }
  .ph-photo img { aspect-ratio: 16 / 9; }
}

/* Wide photo between sections */
.photo-band { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.photo-band .photo img { aspect-ratio: 21 / 9; }
@media (max-width: 40rem) { .photo-band .photo img { aspect-ratio: 4 / 3; } }

/* Closing panel over a photo */
.night { clip-path: none; border: 0; border-radius: 10px;
  background: linear-gradient(100deg, rgba(13, 11, 34, 0.95) 0%, rgba(13, 11, 34, 0.84) 48%, rgba(13, 11, 34, 0.4) 100%), url("img/dubai-dusk.webp") center 62% / cover no-repeat, var(--night-deep); }
@media (max-width: 46rem) { .night { background: linear-gradient(rgba(13, 11, 34, 0.86), rgba(13, 11, 34, 0.9)), url("img/dubai-dusk.webp") center / cover no-repeat, var(--night-deep); } }

/* Glass: translucent, blurred surfaces with a light top edge, over a faint colour wash */
:root {
  --glass-bg: rgba(255, 253, 249, 0.6);
  --glass-line: rgba(24, 22, 31, 0.09);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 40px -24px rgba(30, 26, 80, 0.35);
  --glass-blur: blur(18px) saturate(160%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --glass-bg: rgba(32, 31, 44, 0.55); --glass-line: rgba(255, 255, 255, 0.09); --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 44px -24px rgba(0, 0, 0, 0.75); }
}
:root[data-theme="dark"] { --glass-bg: rgba(32, 31, 44, 0.55); --glass-line: rgba(255, 255, 255, 0.09); --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 44px -24px rgba(0, 0, 0, 0.75); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root, :root[data-theme="dark"] { --glass-bg: var(--surface); } }

body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40rem 30rem at 100% 0%, rgba(143, 132, 210, 0.14), transparent 70%), radial-gradient(36rem 28rem at 0% 100%, rgba(226, 150, 182, 0.12), transparent 70%); }
.band-sunk { background: color-mix(in srgb, var(--sunk) 78%, transparent); }

.site-head { background: color-mix(in srgb, var(--paper) 68%, transparent); border-bottom-color: var(--glass-line); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.jump-card, .note, .band-sunk .note, .form, .track-form, .name-plate div, .table-scroll, .path, .theme-toggle, .nav-toggle, .btn-ghost {
  background: var(--glass-bg); border-color: var(--glass-line); box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.jump-card, .note, .form, .track-form, .name-plate div, .table-scroll, .path { border-radius: 16px; }
.tags li { background: var(--glass-bg); border-color: var(--glass-line); }

/* Dropdown: fades and slides in, links follow one after another */
.dd-card { background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: var(--glass-shadow), 0 30px 60px -30px rgba(20, 18, 60, 0.45); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); }
.dd-card a { border-radius: 10px; transition: background-color .2s, transform .25s var(--ease); }
.dd-card a:hover, .dd-card a:focus-visible { background: var(--brand-soft); transform: translateX(3px); }
.chev { transition: transform .3s var(--ease); }
@media (min-width: 62.01rem) {
  .dd-menu { display: block; visibility: hidden; opacity: 0; transform: translateY(10px) scale(0.98); transform-origin: 20% 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
  .dd.open .dd-menu { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
}
@media (hover: hover) and (min-width: 62.01rem) {
  .dd:hover .dd-menu { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .dd:hover .chev { transform: translateY(2px) rotate(-135deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .dd.open .dd-card a, .dd:hover .dd-card a { animation: rise .35s var(--ease) both; }
  .dd-card a:nth-child(2) { animation-delay: .04s !important; }
  .dd-card a:nth-child(3) { animation-delay: .08s !important; }
  .dd-card a:nth-child(4) { animation-delay: .12s !important; }
  .dd-card a:nth-child(5) { animation-delay: .16s !important; }
  .site-nav.open { animation: rise .3s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
}
@media (max-width: 62rem) { .dd-card { box-shadow: none; border-radius: 12px; } }

/* Hover animations */
.nav-link, .btn, .theme-toggle, .tags li, .svc-row, .steps li::after, .pledges li::before, .people .photo img { transition-timing-function: var(--ease); }
@media (min-width: 62.01rem) {
  .nav-link { position: relative; border-bottom-color: transparent !important; }
  .nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.current::after { transform: scaleX(1); transform-origin: left; }
}
.btn { position: relative; overflow: hidden; transition: background-color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px var(--btn); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-ghost:hover { box-shadow: var(--glass-shadow); }
.tags li { transition: background-color .2s, border-color .2s, transform .25s var(--ease); }
.tags li:hover { border-color: var(--lilac); background: var(--brand-soft); transform: translateY(-2px); }
.svc-row { transition: background-color .3s; }
.svc-thumb { overflow: hidden; border-radius: 4px; }
.svc-thumb img { transition: transform .6s var(--ease); }
.svc-row:hover .svc-thumb img { transform: scale(1.06); }
.svc-row:hover .svc-main h3 a { color: var(--brand); }
.steps li::after { transition: width .5s var(--ease); }
.steps li:hover::after { width: 100%; }
.pledges li::before { transition: transform .35s var(--ease); }
.pledges li:hover::before { transform: skewX(-18deg) scale(1.3); }
.people .photo img { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.people .photo:hover img { transform: translateY(-6px); box-shadow: 0 22px 36px -22px var(--shadow); }
.rows a { transition: background-color .25s; border-radius: 10px; margin-inline: -0.75rem; padding-inline: 0.75rem; }
.rows a:hover { background: var(--glass-bg); }
.teasers a h3, .rows h3 { transition: color .2s; }
.foot-grid a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.foot-grid a:hover { text-decoration: none; background-size: 100% 1px; }

/* Services as glass cards: photo on top, then the description, then what you send and get */
.svc { border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.svc-row, .svc-row.has-thumb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 1.1rem 1.25rem; padding: 0 1.5rem 1.6rem; overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: 18px; box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.svc-row:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 30%, transparent); box-shadow: var(--glass-shadow), 0 28px 50px -28px rgba(30, 26, 80, 0.45); }
.svc-thumb { grid-column: 1 / -1; margin-inline: -1.5rem; border-radius: 0; }
.svc-thumb img { aspect-ratio: 16 / 9; border-radius: 0; }
.svc-main { grid-column: 1 / -1; }
.svc-row .kv { padding-top: 1rem; border-top: 1px solid var(--glass-line); }
@media (max-width: 46rem) { .svc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 26rem) { .svc-row, .svc-row.has-thumb { grid-template-columns: minmax(0, 1fr); } }

/* Custom dropdowns (built by main.js on top of the real <select>, which still holds the value) */
.sel { position: relative; }
.sel-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.sel-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; text-align: left; cursor: pointer;
  font: var(--w-text) 1rem/1.4 var(--body); color: var(--ink); padding: 0.75rem 0.85rem; border-radius: 10px;
  background: var(--glass-bg); border: 1px solid var(--line); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: border-color .2s, box-shadow .2s; }
.sel-btn:hover { border-color: var(--lilac); }
.sel-btn:focus-visible, .sel.open .sel-btn { outline: none; border-color: var(--brand); box-shadow: var(--glass-shadow), 0 0 0 4px var(--brand-soft); }
.sel.is-empty .sel-value { color: var(--muted); }
.sel-chev { width: 0.5rem; height: 0.5rem; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); color: var(--muted); }
.sel.open .sel-chev { transform: translateY(2px) rotate(-135deg); color: var(--brand); }
.field.bad .sel-btn { border-color: var(--alert); }
.sel-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 0.4rem); margin: 0; padding: 0.35rem; max-height: 17rem; overflow-y: auto; overscroll-behavior: contain;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--glass-line); border-radius: 14px;
  box-shadow: var(--glass-shadow), 0 26px 50px -24px rgba(20, 18, 60, 0.45); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  visibility: hidden; opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: 50% 0;
  transition: opacity .2s var(--ease), transform .28s var(--ease), visibility 0s linear .28s; }
.sel.open .sel-list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sel-list li { position: relative; padding: 0.6rem 2.2rem 0.6rem 0.75rem; border-radius: 9px; cursor: pointer; line-height: 1.35; transition: background-color .15s, color .15s, padding-left .2s var(--ease); }
.sel-list li.active { background: var(--brand-soft); padding-left: 0.95rem; }
.sel-list li[aria-selected="true"] { color: var(--brand); font-weight: var(--w-mid); }
.sel-list li[aria-selected="true"]::after { content: ""; position: absolute; right: 0.9rem; top: 50%; width: 0.35rem; height: 0.65rem; margin-top: -0.4rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .sel.open .sel-list li { animation: rise .3s var(--ease) both; }
  .sel.open .sel-list li:nth-child(2) { animation-delay: .02s; }
  .sel.open .sel-list li:nth-child(3) { animation-delay: .04s; }
  .sel.open .sel-list li:nth-child(4) { animation-delay: .06s; }
  .sel.open .sel-list li:nth-child(5) { animation-delay: .08s; }
  .sel.open .sel-list li:nth-child(6) { animation-delay: .1s; }
  .sel.open .sel-list li:nth-child(n+7) { animation-delay: .12s; }
}

.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea { border-radius: 10px; background: var(--glass-bg); transition: border-color .2s, box-shadow .2s; }
.form input[type="text"]:hover, .form input[type="email"]:hover, .form input[type="tel"]:hover, .form textarea:hover { border-color: var(--lilac); }
.form input[type="text"]:focus-visible, .form input[type="email"]:focus-visible, .form input[type="tel"]:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* Checkboxes: drawn box with a tick that pops in */
.checks label { gap: 0.6rem; padding: 0.55rem 0.95rem 0.55rem 0.7rem; background: var(--glass-bg); border-color: var(--glass-line); transition: border-color .2s, background-color .2s, transform .25s var(--ease), box-shadow .25s; user-select: none; }
.checks label:hover { border-color: var(--lilac); transform: translateY(-2px); box-shadow: 0 10px 20px -14px var(--shadow); }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.checks input[type="checkbox"] { -webkit-appearance: none; appearance: none; display: grid; place-items: center; flex: none; width: 1.15rem; height: 1.15rem; margin: 0; cursor: pointer;
  border: 1.5px solid var(--lilac); border-radius: 5px; background: var(--surface); transition: background-color .2s, border-color .2s; }
.checks input[type="checkbox"]::after { content: ""; width: 0.3rem; height: 0.58rem; margin-top: -0.15rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.checks input[type="checkbox"]:checked { background: var(--btn); border-color: var(--btn); }
.checks input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.checks input[type="checkbox"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .checks input[type="checkbox"]:checked { animation: pop .32s var(--ease); }
  @keyframes pop { 45% { transform: scale(1.2); } }
}

/* Page loader: the Medgo mark draws itself, then the page fades in. Shown once per visit, never holds the page back. */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper);
  transition: opacity .45s var(--ease), visibility 0s linear .45s; animation: loader-off 0s linear 3s forwards; }
.loader::before { content: ""; position: absolute; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 132, 210, 0.28), transparent); }
.loader-mark { position: relative; width: 6.5rem; height: auto; overflow: visible; transition: transform .45s var(--ease); }
.loader-mark .ld-line { fill: none; stroke: var(--brand); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ld-draw .65s var(--ease) forwards; }
.loader-mark .ld-fill { opacity: 0; animation: ld-fill .35s ease .4s forwards; }
html.is-loaded .loader { opacity: 0; visibility: hidden; }
html.is-loaded .loader-mark { transform: scale(1.12); }
html.no-loader .loader { display: none; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-fill { to { opacity: 1; } }
@keyframes loader-off { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* Icons: Google Material Symbols, filled. Only the icons the site uses are downloaded (see the link in each page's <head>). */
.mi { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 1.25em; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; user-select: none; flex: none; }
.theme-toggle .mi { font-size: 1.2rem; }
.nav-toggle .mi { font-size: 1.3rem; }
.nav-toggle { gap: 0.4rem; }

/* Services dropdown: icon tile beside each service */
.dd-card a:not(.all) { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.75rem; align-items: center; }
.dd-card a:not(.all) .mi { grid-row: 1 / span 2; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; transition: transform .3s var(--ease), background-color .2s, color .2s; }
.dd-card a:not(.all):hover .mi { background: var(--btn); color: #fff; transform: rotate(-6deg) scale(1.06); }
.dd-card a:not(.all) small { grid-column: 2; }

/* Icon tiles in lists */
.svc-thumb { position: relative; }
.svc-icon { position: absolute; left: 1rem; bottom: 1rem; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 14px; font-size: 1.5rem; color: var(--brand);
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 10px 24px -12px rgba(10, 8, 30, 0.5);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); transition: transform .35s var(--ease); }
.svc-row:hover .svc-icon { transform: translateY(-3px) rotate(-6deg); }
.pledges.with-icons li { grid-template-columns: 2.75rem minmax(0, 1fr); align-items: start; }
.pledges.with-icons li::before { content: none; }
.pledges.with-icons li > .mi, .steps li > .mi { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 13px; font-size: 1.4rem;
  background: var(--brand-soft); color: var(--brand); transition: transform .35s var(--ease), background-color .25s, color .25s; }
.pledges.with-icons li:hover > .mi, .steps li:hover > .mi { background: var(--btn); color: #fff; transform: rotate(-6deg) scale(1.05); }
.steps li > .mi { order: -1; margin-bottom: 0.3rem; }
.eyebrow .mi, .group-label .mi { font-size: 1.15rem; vertical-align: -0.28em; margin-right: 0.4rem; }
.note > .eyebrow:first-child::before { content: "info"; font-family: "Material Symbols Rounded"; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20; font-feature-settings: "liga";
  font-size: 1.15rem; letter-spacing: 0; text-transform: none; vertical-align: -0.28em; margin-right: 0.4rem; color: var(--brand); }
.mail-icon { color: var(--brand); font-size: 1.3rem; }
.result h3 .mi { color: var(--ok); vertical-align: -0.22em; margin-right: 0.35rem; }

/* More rounded photos */
.photo img { border-radius: 22px; }
.thumb { border-radius: 14px; }
.teasers .thumb { border-radius: 18px; }
.rows.with-thumbs .thumb { border-radius: 12px; }
.ph-photo img, .photo-band .photo img { border-radius: clamp(20px, 3vw, 32px); }
.people .photo img { border-radius: 26px; }
.svc-row, .svc-row.has-thumb { border-radius: 24px; }
.svc-thumb, .svc-thumb img { border-radius: 0; }
.night { border-radius: clamp(20px, 3vw, 32px); }

/* Modern hero */
.opening { padding-bottom: 0; }
.opening::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(24, 22, 31, 0.13) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 72% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 70% at 72% 40%, #000 0%, transparent 75%); }
:root[data-theme="dark"] .opening::before { background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px); }
.opening-glow { inset: -12%; }
@media (prefers-reduced-motion: no-preference) {
  .opening-glow { animation: aurora 18s ease-in-out infinite alternate; }
  @keyframes aurora { 50% { transform: translate3d(-4%, 3%, 0) scale(1.06); } 100% { transform: translate3d(3%, -2%, 0) scale(0.98); } }
}
.hero-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem 0.45rem 0.75rem; border-radius: 99px; font-size: 0.86rem; color: var(--ink);
  background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.hero-badge .mi { color: var(--brand); font-size: 1.1rem; }
.hero-badge .sep { width: 1px; height: 0.95rem; background: var(--line); }
.pulse { position: relative; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ok); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .pulse::after { animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
  @keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
}
.opening-copy h1 { font-size: clamp(2.7rem, 6vw, 4.9rem); letter-spacing: -0.035em; line-height: 0.98; }
.opening-copy h1 em { background: linear-gradient(100deg, #4543bd 0%, #7a5fd0 45%, #d0709e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .opening-copy h1 em { background-image: linear-gradient(100deg, #b3b0fb 0%, #cfa8f2 50%, #f2a6c4 100%); }
.hero-track-row { align-items: center; padding-left: 0.85rem; }
.hero-track-row > .mi { color: var(--muted); font-size: 1.3rem; }
.hero-track-row:focus-within > .mi { color: var(--brand); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; padding-top: 0.4rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.93rem; color: var(--muted); }
.hero-facts .mi { color: var(--brand); font-size: 1.15rem; }
.chip .mi { font-size: 1.25rem; color: var(--ok); }
.chip.c2 .mi { color: var(--brand); }
.chip { border-radius: 14px; }
/* Status card sits slightly turned, and squares up when you point at it */
@media (min-width: 60.01rem) and (prefers-reduced-motion: no-preference) {
  .opening-visual { perspective: 1400px; }
  .opening-visual .file-card { transform: rotateY(-9deg) rotateX(5deg); transition: transform .8s var(--ease); }
  .opening-visual:hover .file-card { transform: none; }
}
.file-card { border-radius: 22px; }
/* Entrance: the opening copy rises in, after the loader on a first visit */
@media (prefers-reduced-motion: no-preference) {
  .opening-copy > *, .opening-visual { animation: hero-in .9s var(--ease) both; }
  .opening-copy > :nth-child(2) { animation-delay: .08s; }
  .opening-copy > :nth-child(3) { animation-delay: .16s; }
  .opening-copy > :nth-child(4) { animation-delay: .24s; }
  .opening-copy > :nth-child(5) { animation-delay: .32s; }
  .opening-copy > :nth-child(6) { animation-delay: .4s; }
  .opening-visual { animation-delay: .2s; }
  html:not(.no-loader) .opening-copy > *, html:not(.no-loader) .opening-visual { animation-delay: .7s; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(22px); } }
}
/* Authorities: a slow, endless strip */
.auth-strip { display: flex; align-items: center; gap: 1.5rem; }
.auth-strip .lbl { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; padding-block: 1.1rem; }
.auth-strip .lbl .mi { font-size: 1.1rem; }
.marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.auth-strip .marquee ul { display: flex; flex-wrap: nowrap; gap: 0 2.5rem; padding: 1.1rem 2.5rem 1.1rem 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 32s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .marquee-track ul[aria-hidden] { display: none; } .auth-strip .marquee ul { flex-wrap: wrap; gap: 0.5rem 1.5rem; } }
@media (max-width: 40rem) { .auth-strip { flex-direction: column; align-items: stretch; gap: 0; } .auth-strip .lbl { padding-bottom: 0; } }

/* Sections ease in as they scroll into view (main.js adds the classes, so nothing hides without it) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
