/* @font-face rules live in fonts.css (linked once, in each page head), so the second global.css link inside the page template does not make the browser load the fonts again and blink the J (21 Nov 2026) */
/* tailwind removed — utilities shimmed in shim.css */

/* ── design tokens ── */
:root {
  --color-bg: #1f262a;
  --color-panel: #141418;
  --color-panel-2: #1b1b1f;
  --color-hairline: #2c2d31;
  --color-text: #f8fafc;
  --color-body: #cbd5e1;
  --color-muted: #7c8ba1;
  --color-dim: #64748b;
  --color-cyan: #67c7d4;
  --color-cyan-bright: #8fdbe6;
  --color-amber: #d9a441;

  --font-sans: 'Alliance No 2', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Alliance No 1', sans-serif;
  --font-mono: 'JourneyDesign Tech', 'Chakra Petch', ui-sans-serif, sans-serif;
}

/* ── font faces ── */
/* Chakra Petch (SIL OFL), self-hosted latin subset — was Google Fonts, which swapped in late */
/* Wordmark-only copy of the Mix faces with font-display:block, so the J and
   "ourneyMRO" appear together in their real fonts: no fallback J, and no
   vertical jump when the fallback's taller line box is swapped out */
/* 'Alliance No 2 Mix' = No.2 Light, except lowercase y, which comes from
   Saira 300 at 104% (SIL OFL; subset to the single glyph) — No.2's own y is
   too square, No.1's too soft */

/* ── css custom properties (used by canvas JS & complex selectors) ── */
:root {
  --bg: #1f262a;                          /* lighter, neutral charcoal base (tiles unchanged) */
  --panel: #141418;
  --panel-2: #1b1b1f;
  /* Elevation scale — one desaturated near-navy field, lifted into a comfortable
     mid-dark band; surfaces step up by just enough to read as distinct, no more.
     cyan stays the only real colour. base → raised (tiles) → overlay. */
  --raise-1: #141417;                     /* tiles — dark neutral charcoal (darker than base) */
  --raise-1-hover: #1a1a1d;               /* tile hover — subtle neutral lift */
  --raise-2: #17171a;                     /* overlay: dialogs, flip info, popovers — dark neutral */
  --raise-hi: rgba(255, 255, 255, 0.04);  /* 1px inner top highlight = cheap depth */
  --hairline: #2c2d31;
  --hairline-faint: rgba(44, 45, 49, 0.55);
  --frame: rgba(255, 255, 255, 0.17); /* brighter than --hairline: page frame rails, header/footer rules, notch arrows */
  --text: #f8fafc;
  --body: #cbd5e1;
  --muted: #7c8ba1;
  --dim: #64748b;
  --cyan: #67c7d4;
  --cyan-bright: #8fdbe6;
  --amber: #d9a441;
  --alert: #e0796a;                       /* form errors; sits beside --amber */
  /* The tile at rest. Named because tiles that must NOT light on hover hold
     these rather than re-stating a literal that then drifts per theme. */
  --tile-bg: transparent;                 /* flush with the base */
  --tile-border: #2c2d31;
  --tile-border-hover: rgba(103, 199, 212, 0.18);
  /* Phone screen transitions (service detail, contact). SLIDE_MS in
     ServicesShell.astro and CONTACT_SLIDE_MS in ContactDialog.astro mirror
     this — keep them in step. */
  --screen-slide: 0.52s;
  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

/* ── light mode (experimental) ──
   The site palette is entirely token-driven, so the theme is mostly a token
   swap. The handful of rules below are the surfaces that hardcode a dark rgba
   rather than reading a token. Tailwind `stone` throughout.

   NOTE: only the Master Data Audit tile has been adapted internally. Every other
   teaser draws its own dark palette (the walkthroughs alone carry ~480 colour
   literals and the criticality clips depend on mix-blend-mode: screen, which
   needs a dark backdrop) so they will read wrong here until ported. */
html[data-theme='light'] {
  --bg: #f5f5f4;             /* stone-100 */
  --panel: #fafaf9;          /* stone-50  */
  --panel-2: #e7e5e4;        /* stone-200 */
  --hairline: #bfbbb7;       /* stone-300, darkened for a visible frame rail */
  --frame: rgba(41, 37, 36, 0.28); /* page frame rails / rules / notches (light) */
  --hairline-faint: rgba(87, 83, 78, 0.32);
  --text: #0c0a09;           /* stone-950 */
  --body: #292524;           /* stone-800 */
  --muted: #57534e;          /* stone-600 */
  --dim: #78716c;            /* stone-500 */
  --cyan: #0e7490;           /* cyan-700 — the dark-mode cyan fails contrast here */
  --cyan-bright: #155e75;
  --amber: #b45309;
  --alert: #b91c1c;          /* red-700 — the dark-mode alert fails contrast here */
  --tile-bg: rgba(255, 255, 255, 0.55);
  --tile-border: #d6d3d1;    /* stone-300 */
  --tile-border-hover: #1c1917;              /* stone-900 */
}
html[data-theme='light'] body { background: var(--bg); color: var(--body); }
html[data-theme='light'] .nav { background: #f9f9f8; } /* = old 82% stone-50 over the stone-100 page */
html[data-theme='light'] .hero-footer { background: rgba(250, 250, 249, 0.82); }
html[data-theme='light'] .lang-popover { background: #fafaf9; }
/* .svc7-card's dark resting border and pale cyan hover read backwards on stone —
   the resting tiles looked selected. The rest state comes from --tile-bg /
   --tile-border (set per theme above); the hover is inverted below.
   The visual's own border needs restating: .svc7-flip-anim leaves it at
   currentColor, so on a flip tile the token on .svc7-card-visual alone loses. */
html[data-theme='light'] .svc7-card-visual { border-bottom-color: var(--tile-border); }
html[data-theme='light'] .svc7-card:hover,
html[data-theme='light'] .svc7-card.is-anim-active {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--tile-border-hover);  /* stone-900 when hovered/selected */
}
html[data-theme='light'] .svc7-card:hover .svc7-card-visual,
html[data-theme='light'] .svc7-card.is-anim-active .svc7-card-visual {
  border-bottom-color: #1c1917;
}
html[data-theme='light'] .svc7-card.is-nav-target { border-color: #0e7490; }
html[data-theme='light'] .svc7-card-visual {
  background: repeating-linear-gradient(-45deg, rgba(120, 113, 108, 0.16) 0 1px, transparent 1px 12px);
}
html[data-theme='light'] .svc7-card.is-anim-idle .svc7-card-visual::after {
  background: rgba(245, 245, 244, 0.66);
}
html[data-theme='light'] .svc7-card-blurb { color: #57534e; }   /* hardcoded #8ea0b5 otherwise */
html[data-theme='light'] .svc7-arrow { background: rgba(120, 113, 108, 0.06); }
html[data-theme='light'] .svc7-arrow:hover { background: rgba(120, 113, 108, 0.11); }
html[data-theme='light'] .svc7-overlay-dim { background: rgba(28, 25, 23, 0.45); }
html[data-theme='light'] .svc7-dialog { background: var(--panel); }

/* Master Data Audit — the one tile ported so far. Its markup renders into a
   shadow root whose own :root block matches nothing, so the palette is set on
   the host and inherits across the shadow boundary. */
html[data-theme='light'] .svc7-report-root {
  --report-fg: #0c0a09;
  --bg: #f5f5f4;
  --surface: #fafaf9;
  --border: #78716c;
  /* Every font in the report resolves through these three (23 uses of
     --text-dim, 22 of --text, 11 of --text-muted), so they are all dark. */
  --text: #0c0a09;           /* stone-950 */
  --text-muted: #1c1917;     /* stone-900 */
  --text-dim: #292524;       /* stone-800 — was the low-contrast one */
  --accent: #155e75;         /* cyan-800 */
  --danger: #991b1b;         /* red-800  */
  --warning: #854d0e;        /* yellow-800 */
  --hairline: rgba(41, 37, 36, 0.45);
  --row-divider: rgba(41, 37, 36, 0.28);
  --rule-bright: rgba(41, 37, 36, 0.65);
  /* the report draws these two bars in white — invisible on stone */
  --lt-axis: rgba(68, 64, 60, 0.45);
  --lt-over: rgba(68, 64, 60, 0.3);
  /* score/magnitude tracks: the report declares --surface-2 under :root, which
     never matches inside the shadow tree, so the tracks had no fill at all */
  --surface-2: #d6d3d1;
  /* SVG chart palette — see the attribute rules in ReportTeaser.astro */
  --viz-ececef: #0c0a09;
  --viz-a3a3a8: #292524;
  --viz-6b6b71: #44403c;
  --viz-0b0b0d: #0c0a09;
  --viz-6ee7d6: #155e75;
  --viz-e6b864: #854d0e;
  --viz-ef6e6e: #991b1b;
  --viz-rgba-255-255-255-0-05: rgba(41, 37, 36, 0.10);
  --viz-rgba-255-255-255-0-08: rgba(41, 37, 36, 0.15);
  --viz-rgba-255-255-255-0-15: rgba(41, 37, 36, 0.24);
  --viz-rgba-255-255-255-0-25: rgba(41, 37, 36, 0.36);
  --viz-rgba-255-255-255-0-35: rgba(41, 37, 36, 0.48);
  --viz-rgba-255-255-255-0-55: rgba(41, 37, 36, 0.68);
  --viz-rgba-239-110-110-0-5: rgba(153, 27, 27, 0.62);
  --viz-rgba-110-231-214-0-10: rgba(21, 94, 117, 0.13);
  --viz-rgba-110-231-214-0-14: rgba(21, 94, 117, 0.18200000000000002);
  --viz-rgba-110-231-214-0-18: rgba(21, 94, 117, 0.23399999999999999);
  --viz-rgba-110-231-214-0-22: rgba(21, 94, 117, 0.28600000000000003);
  --viz-rgba-110-231-214-0-24: rgba(21, 94, 117, 0.312);
  --viz-rgba-110-231-214-0-30: rgba(21, 94, 117, 0.39);
  --viz-rgba-110-231-214-0-38: rgba(21, 94, 117, 0.49400000000000005);
  --viz-rgba-110-231-214-0-4: rgba(21, 94, 117, 0.52);
  --viz-rgba-110-231-214-0-5: rgba(21, 94, 117, 0.65);
  --viz-rgba-110-231-214-0-55: rgba(21, 94, 117, 0.7150000000000001);
  --viz-rgba-230-184-100-0-30: rgba(133, 77, 14, 0.39);
  --viz-rgba-230-184-100-0-45: rgba(133, 77, 14, 0.5850000000000001);
  --viz-rgba-230-184-100-0-5: rgba(133, 77, 14, 0.65);
}

/* ── base reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* A swipe on a phone must not drag the page. Every screen here is sized to the
   viewport and has nothing to scroll, so the only motion a vertical swipe could
   produce is the rubber-band — which slides the header and the footer bar with
   it and exposes the backdrop behind them. This turns that off (and pull-to-
   refresh with it); pages that really do scroll, like an article, are unaffected
   because the rule only suppresses overscroll past their ends. */
@media (max-width: 999px) {
  html, body { overscroll-behavior: none; }
}
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(103, 199, 212, 0.22); color: #fff; }
a { color: inherit; text-decoration: none; }

/* ── shared utility classes ── */
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono-idx { color: var(--cyan); }

/* ── layout shell ── */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  border-left: 1px solid var(--frame);
  border-right: 1px solid var(--frame);
}
.hero-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 64px;
  padding: 0 clamp(1.25rem, 4vw, 2.8rem);
  border-left: 1px solid var(--frame);
  border-right: 1px solid var(--frame);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
/* mobile-only shortcut to Contact; hidden on desktop where the footer bar
   carries only the copyright line */
.foot-send { display: none; }
@media (max-width: 999px) {
  .hero-footer { justify-content: space-between; }
  .foot-send {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan, #67c7d4);
    text-decoration: none;
    border: 1px solid rgba(103, 199, 212, 0.35);
    padding: 0.4rem 0.75rem;
    -webkit-tap-highlight-color: transparent;
  }
  .foot-send:active { background: rgba(103, 199, 212, 0.1); }
  /* Neither half of the bar may wrap: it is a fixed 64px and a second line
     pushes the page past the viewport. Japanese is the binding case — its
     Send Message runs to seven characters. */
  .hero-footer { gap: 0.75rem; }
  .foot-copy,
  .foot-send { white-space: nowrap; }
  .foot-copy { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* Narrow handsets: at 320px the bar is 40px shy of holding both at full size. */
@media (max-width: 360px) {
  .foot-copy { font-size: 0.68rem; letter-spacing: 0.06em; }
  .foot-send { font-size: 0.66rem; letter-spacing: 0.06em; padding: 0.4rem 0.55rem; }
}
.page-rule { border-top: 1px solid var(--frame); position: relative; z-index: 1; }
.section { position: relative; padding: 0 var(--gutter); }
.rule { border-top: 1px solid var(--frame); }

/* ── grid background ── */
/* Language-switch fade: a full-screen scrim in the page background colour.
   The switch fades it in, navigates, and the next page fades it back out. */
#langFade {
  position: fixed;
  inset: 0;
  background: var(--bg, #1f262a);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.24s ease;
}
html.lang-fading #langFade { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { #langFade { transition: none; } }

/* ── Japanese type adjustments ──
   Kanji lose stroke detail at the smallest sizes and CJK reads denser, so the
   smallest prose is nudged up and given more line-height. The uppercase mono
   labels are rendered in English for ja (see tLabel), so their Latin
   letter-spacing is correct and untouched here. */
html[lang='ja'] .svc7-engine-step-note,
html[lang='ja'] .svc7-engine-chip,
/* Japanese tile captions stay on a single row like the English ones — the
   copy is kept short enough to fit, so they inherit the base nowrap/ellipsis. */
html[lang='ja'] .svc7-card-blurb { font-size: 0.92rem; }
html[lang='ja'] .svc7-engine-blurb,
html[lang='ja'] .svc7-spec-block p,
html[lang='ja'] .svc7-spec-list li,
html[lang='ja'] .svc7-custom-block p { line-height: 1.8; }
html[lang='ja'] .svc7-engine-step-note { line-height: 1.65; }
/* Japanese taglines run longer than the one-line English; let them wrap inside
   the dialog rather than overflow it (English keeps nowrap). */
html[lang='ja'] .svc7-engine-tagline { white-space: normal; }
/* Spanish step notes run a line longer than English on some tabs (e.g. the
   JourneyCast first note), so reserve extra cell height for every engine tab —
   this keeps the POWERS strip and its dividers at the same Y across all tabs. */
html[lang='es'] .svc7-engine-step { min-height: 8.6rem; }
/* Any CJK that still sits in an uppercase mono label shouldn't be tracked out
   like Latin caps. */
html[lang='ja'] .svc7-engine-cat,
html[lang='ja'] .svc7-dialog-kicker,
html[lang='ja'] .svc7-spec-block h4,
html[lang='ja'] .svc7-powered-label,
html[lang='ja'] .svc7-engine-powers-label { letter-spacing: 0.02em; }

/* Bilingual label wrapper (English + Japanese under). inline-block so the block
   sub-line stacks under the English in any parent, incl. flex/centred buttons. */
.bilabel { display: inline-block; }
/* Japanese sub-line under an English UI label (see components/L.astro). Resets
   the uppercase / wide-tracking / weight meant for the Latin label above it. */
.ja-sub {
  display: block;
  /* Japanese is unreadable below ~14px, so floor it regardless of the parent. */
  font-size: max(0.8em, 14px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.82;
  margin-top: 0.18em;
  line-height: 1.35;
}
/* Inline variant: Japanese on the same row as the English (tile names). Kept a
   distinct, brighter colour than the caption below, and floored at 14px. */
.ja-inline {
  font-weight: 400;
  font-size: max(0.9em, 14px);
  letter-spacing: 0;
  color: var(--text, #f8fafc);
  opacity: 0.78;
  margin-left: 0.5em;
  white-space: nowrap;
}
/* Japanese-only kicker (e.g. the engines-dialog title): the Latin kicker styling
   is tiny caps with wide tracking, which is unreadable for kana — reset it and
   floor at 14px so the Japanese title reads at a sensible size. */
.svc7-kicker-ja {
  font-size: max(0.62rem, 14px);
  letter-spacing: 0.02em;
  text-transform: none;
}
/* In kicker-style labels the inline Japanese should share the English label's
   colour (cyan/grey), not the brighter tile-name white the .ja-inline default
   carries. */
.svc7-engine-cat .ja-inline,
.svc7-engine-powers-label .ja-inline,
.svc7-dialog-kicker .ja-inline { color: inherit; opacity: 1; letter-spacing: 0.02em; }

/* Hover-swap label (tabs + nav): English by default, crossfade to Japanese when
   the tab / nav item is hovered. The Japanese is absolutely stacked over the
   English so the control keeps its width. */
.swap-label { position: relative; display: inline-block; }
.swap-label .sw-en,
.swap-label .sw-ja { transition: opacity 0.22s ease; }
.swap-label .sw-ja { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; }
.svc7-tab:hover .swap-label .sw-en,
.nav-menu-select:hover .swap-label .sw-en,
.nav-mega-col:hover .swap-label .sw-en { opacity: 0; }
.svc7-tab:hover .swap-label .sw-ja,
.nav-menu-select:hover .swap-label .sw-ja,
.nav-mega-col:hover .swap-label .sw-ja { opacity: 1; }
/* keep the nav item bright while its area (and the Japanese swap) is active */
.nav-menu-select:hover .lang-select-trigger { color: var(--text); }

/* Services mega-menu in Japanese: every head/item carries an English label with
   a Japanese line under it, so the popover needs more room per row. */
html[lang='ja'] .nav-mega-col { padding: 1.05rem 1.05rem 1.2rem; }
html[lang='ja'] .nav-mega-head { align-items: flex-start; padding-bottom: 0.85rem; }
html[lang='ja'] .nav-mega-head-name { white-space: normal; }
html[lang='ja'] .nav-mega-item {
  white-space: normal;
  padding-top: 0.5rem;
  padding-bottom: 0.62rem;
  line-height: 1.25;
}
html[lang='ja'] .nav-mega-item .ja-sub,
html[lang='ja'] .nav-mega-head-name .ja-sub { margin-top: 0.12em; }

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hairline-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-faint) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 120% 75% at 50% 0%, #000 38%, transparent 80%);
          mask-image: radial-gradient(ellipse 120% 75% at 50% 0%, #000 38%, transparent 80%);
  opacity: 0.5;
}

/* ── reticle decorators ── */
.reticle {
  position: absolute;
  width: 11px;
  height: 11px;
  z-index: 3;
  pointer-events: none;
}
.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  opacity: 0.65;
}
.reticle::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-0.5px); }
.reticle::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-0.5px); }
.reticle.tl { left: -6px; top: -6px; }
.reticle.tr { right: -6px; top: -6px; }

/* ── btn ── */
.btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--cyan);
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: var(--cyan-bright); border-color: var(--cyan-bright); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); background: transparent; }

/* ── nav ── */
header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  /* solid, no backdrop blur: Chrome re-samples a blurred fixed header as
     reveal-animated content passes under it, which flashes a frame */
  background: #1f262a;
  border-bottom: 1px solid var(--frame);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.8rem);
  height: 64px;
  border-left: 1px solid var(--frame);
  border-right: 1px solid var(--frame);
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  /* baseline, not center: "MRO" is a heavier span with no descenders, so
     centering each flex item by its own box height lifts it off the line */
  align-items: baseline;
  gap: 0;
}
.wordmark .mark-j {
  display: inline-block;
  clip-path: inset(0 0 8% 0);
}
.wordmark .mark-name { font-weight: 400; color: var(--cyan); letter-spacing: -0.01em; }
/* wordmark set in Alliance No.2 Light — the face only ships 300, so "MRO" is
   distinguished by colour alone rather than weight */
.nav .wordmark,
.nav .wordmark .mark-name {
  font-family: 'JM Wordmark', 'Alliance No 2 Mix', 'Alliance No 2', var(--font-heading);
  font-weight: 300;
}
/* the Oxanium J needs no descender trim */
.nav .wordmark .mark-j { clip-path: none; }
.wordmark .mark-desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  padding-left: 0.7rem;
  margin-left: 0.6rem;
  border-left: 1px solid var(--hairline);
  align-self: center;
}
@media (max-width: 900px) { .wordmark .mark-desc { display: none; } }

/* ── services breadcrumb ──
   Takes the wordmark's slot on /services at phone width. Desktop keeps the
   wordmark: it has the tab strip and counter to say where you are. */
.svc-crumb { display: none; }
@media (max-width: 999px) {
  .nav-svc .wordmark { display: none; }
  /* Centred, not baseline-aligned. On a baseline the 28px back button is the
     tallest item, so the row's baseline is its baseline and the two text spans
     were dragged ~5px above the optical centre of the header — visibly out of
     line with the chevron beside them and the menu icon opposite. The two text
     sizes differ by 0.02rem, so centring costs nothing between them. */
  .svc-crumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-family: var(--font-heading);
    font-weight: 300;
    text-transform: uppercase;
  }
  /* 28px box around a 17px glyph: a real touch target without the icon
     out-weighing the text crumbs beside it. */
  .svc-crumb-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -0.35rem;
    color: var(--muted, #64748b);
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s;
  }
  .svc-crumb-home:active { color: var(--cyan, #67c7d4); }
  .svc-crumb-home svg { width: 17px; height: 17px; display: block; }
  .svc-crumb-root {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    text-transform: inherit;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    color: var(--muted, #64748b);
    cursor: pointer;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
  }
  .svc-crumb-sep { font-size: 0.74rem; color: var(--dim, #475569); flex: 0 0 auto; }
  /* the leaf is the only part that can be long, so it is the part that gives */
  .svc-crumb-leaf {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--text, #f8fafc);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .svc-crumb-leaf[hidden],
  .svc-crumb-sep[hidden] { display: none; }
}

.nav-right { display: flex; align-items: center; gap: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-text:hover { color: var(--text); }
.nav-text.active { color: var(--cyan); }
.nav-cta {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--cyan);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--cyan-bright); border-color: var(--cyan-bright); }
.lang-select {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 0.45rem;
  margin: 0 -0.45rem;
}
.lang-select::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 10rem;
  height: 0.3rem;
}
.lang-select-trigger {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0.35rem 0.15rem;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color 0.2s;
}
.lang-select-trigger:hover {
  color: var(--text);
}
.lang-select-trigger[aria-expanded="true"] { color: var(--text); }
.lang-icon {
  width: 0.82rem;
  height: 0.82rem;
  stroke: var(--muted);
  stroke-width: 1.2;
  fill: none;
  transform: translateY(-0.5px);
  opacity: 0.95;
}
.lang-caret {
  font-size: 0.62rem;
  color: var(--dim);
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}
.lang-select:hover .lang-caret,
.lang-select:focus-within .lang-caret { transform: translateY(-1px) rotate(180deg); }
.lang-popover {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  min-width: 13.25rem;
  border: 1px solid var(--hairline);
  /* Overlay tier (translucent so the blur still reads) — matches --raise-2. */
  background: #212125;
  box-shadow: inset 0 1px 0 var(--raise-hi);
  padding: 0.42rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 60;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}
.lang-select:hover .lang-popover,
.lang-select:focus-within .lang-popover { display: flex; }
.nav-menu-select { height: 64px; }
.nav-menu-select::after {
  left: 0;
  right: auto;
  width: 100%;
  height: 0.4rem;
}
.nav-menu-trigger {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-menu-trigger.active { color: var(--cyan); }
.nav-menu-popover {
  right: auto;
  left: 0;
  min-width: 14.5rem;
}
.nav-popover-divider {
  display: block;
  height: 1px;
  background: var(--hairline, #2c2d31);
  margin: 0.25rem 0.5rem;
}
.nav-popover-prefix {
  flex: 0 0 1.75rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(150, 170, 190, 0.72);
  line-height: 1;
}
.nav-popover-prefix-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 1.75rem;
  height: 1.1rem;
  color: rgba(130, 150, 170, 0.58);
}
.nav-popover-prefix-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}
.lang-option:hover .nav-popover-prefix,
.lang-option:hover .nav-popover-prefix-icon,
.lang-option.active .nav-popover-prefix,
.lang-option.active .nav-popover-prefix-icon {
  color: rgba(180, 200, 215, 0.9);
}
.lang-option:hover .nav-popover-prefix-icon,
.lang-option.active .nav-popover-prefix-icon {
  color: rgba(155, 175, 195, 0.78);
}
#contactSelect .nav-menu-popover {
  left: auto;
  right: 0;
}
#langSelect::after {
  width: 100%;
  right: 0;
}
.lang-option {
  border: none;
  background: transparent;
  color: var(--body);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.62rem 0.72rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
/* Same idiom as the services mega-menu: brighter text under a cyan hairline,
   no tinted band. The rule sits on the label so the number/icon prefix is not
   dragged into the underline. */
.lang-option:hover,
.lang-option.active {
  color: var(--text);
}
.lang-option:hover .lang-label,
.lang-option.active .lang-label {
  text-decoration: underline;
  text-decoration-color: rgba(103, 199, 212, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.lang-label { white-space: nowrap; }

/* ── services mega-menu ──
   Lists every tile, one column per tab. Docked to the frame rails rather than
   to its trigger: six columns are far wider than the Services item, so a
   trigger-anchored popover would overflow the viewport on one side. */
.nav-mega {
  right: 0;
  left: auto;
  min-width: 0;
  width: max-content;
  display: none;
  /* two columns, filled across: 01 02 / 03 04 / 05 06 */
  grid-auto-flow: row;
  grid-template-columns: repeat(2, max-content);
  gap: 0;
  padding: 0;
}
.lang-select:hover .nav-mega,
.lang-select:focus-within .nav-mega { display: grid; }
.nav-mega-col {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.7rem 0.95rem;
}
/* one continuous vertical rule between the two columns */
.nav-mega-col:nth-child(even) {
  border-left: 1px solid var(--hairline);
}
/* and a rule between each row of groups */
.nav-mega-col:nth-child(n + 3) {
  border-top: 1px solid var(--hairline);
}
.nav-mega-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150, 170, 190, 0.72);
  transition: color 0.2s;
}
.nav-mega-head:hover { color: var(--text); }
.nav-mega-idx {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.nav-mega-head-name { white-space: nowrap; }
.nav-mega-item {
  display: block;
  padding: 0.55rem 0.95rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--body);
  border-left: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
/* Underline the service itself rather than washing the whole row: a hairline
   under the words, which is the site's own idiom, instead of a tinted band
   plus an edge bar. */
.nav-mega-item:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(103, 199, 212, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
/* The current service is marked the same way, just held rather than hovered. */
.nav-mega-item.active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(103, 199, 212, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
@media (max-width: 760px) {
  .nav-mega {
    position: static;
    width: auto;
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-mega-col {
    border-left: none !important;
    border-top: 1px solid var(--hairline);
    padding: 0.5rem 0;
  }
  .nav-mega-col:first-child { border-top: none; }
}

/* the tile a nav menu click landed on */
/* Transient cue when a tile is reached from the nav menu — cleared after a
   moment by highlightCard(). Kept softer than the hover border so it reads as
   a hint rather than a selection. */
.svc7-card.is-nav-target {
  border-color: rgba(103, 199, 212, 0.28);
  box-shadow: 0 0 14px rgba(103, 199, 212, 0.05);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

/* ── theme toggle ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-left: 0.55rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.theme-toggle:hover { color: var(--text); }
.theme-icon { width: 1rem; height: 1rem; display: block; }
.theme-icon-moon { display: none; }
html[data-theme='light'] .theme-icon-sun { display: none; }
html[data-theme='light'] .theme-icon-moon { display: block; }

/* ── Custom tile: hover chrome sits on the animation area, not the whole tile ──
   The nav strip is chrome, so lighting a tile-wide border round it read as one
   big embed. The border lives on .custom-teaser-frame instead, and each nav tab
   lights on its own.

   So the tile itself takes no hover or selected chrome: it holds its resting
   surface in both states and both themes — flush with the base, on its resting
   border. (It used to take a navy wash no other surface still uses, and in light
   it kept the full tile-wide hover treatment this rule exists to suppress.)
   Hover and selection coincide here — hovering is what plays the animation — so
   both are listed. */
.svc7-card.svc7-card-quiet:hover,
.svc7-card.svc7-card-quiet.is-anim-active,
html[data-theme='light'] .svc7-card.svc7-card-quiet:hover,
html[data-theme='light'] .svc7-card.svc7-card-quiet.is-anim-active {
  background: var(--tile-bg);
  border-color: var(--tile-border);
}
.svc7-card.svc7-card-quiet:hover .svc7-card-visual,
.svc7-card.svc7-card-quiet.is-anim-active .svc7-card-visual,
html[data-theme='light'] .svc7-card.svc7-card-quiet:hover .svc7-card-visual,
html[data-theme='light'] .svc7-card.svc7-card-quiet.is-anim-active .svc7-card-visual {
  border-bottom-color: var(--tile-border);
}
/* This frame IS the Custom tile's hover border — just drawn below the nav strip
   instead of round the whole tile — so it takes the same colour an ordinary
   tile's border takes on hover, rather than the stronger cyan it used to. */
.svc7-card.svc7-card-quiet:hover .custom-teaser-frame {
  border-color: var(--tile-border-hover);
}
/* a tab hover owns the highlight — don't light both at once */
.custom-teaser:has(.jmr-pano .tab:hover) .custom-teaser-frame {
  border-color: transparent;
}
/* pop-out icon drops below the strip, onto the animation area */
.svc7-card-quiet .svc7-card-indicator {
  top: calc(var(--custom-strip-h, 80px) + 0.6rem);
}

.nav-toggle { display: none; }

/* ── hero ── */
.hero {
  position: relative;
  /* fills the first screen; the nested industries band + chevron sit at the
     bottom (hero-copy flexes to fill above them) */
  min-height: calc(100vh - 64px - 1px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4rem;
  padding-bottom: 1.25rem;
  padding-right: clamp(2rem, 6vw, 6rem);
}
.hero-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.hero-eyebrow .line { height: 1px; width: 2.5rem; background: var(--cyan); opacity: 0.7; }
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
}
/* Desktop: natural height, top-aligned. The industries block follows the lede
   with a fixed gap (below), so it sits in the lower-middle rather than being
   pushed to the hero's bottom edge. Mobile keeps natural stacking. */
@media (min-width: 1000px) {
  .hero-copy { flex: 0 0 auto; min-height: 0; max-width: min(64rem, 100%); }
  /* the single-line title is wider than the 44rem copy measure — let it run to
     the hero's own width rather than breaking mid-phrase */
  .hero-slogan { width: max-content; max-width: 100%; }
  .hero-slogan .sl-line { white-space: nowrap; }
}
.hero-slogan {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* title set in Alliance No.2 Light, matching the wordmark */
.hero-slogan, .hero-slogan .sl-line { font-family: 'Alliance No 2 Mix', 'Alliance No 2', var(--font-heading); font-weight: 300; }
.hero-slogan .sl-line { display: block; margin-bottom: 0.15em; }
/* background-clip:text only paints inside the line box; at line-height 1.08 the
   descender of y/p sits outside it and gets cut. Pad the box down, then take
   the same space back so the layout doesn't move. */
.hero-slogan .sl-glow { padding-bottom: 0.2em; margin-bottom: -0.05em; }
.sl-glow {
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--cyan-bright) 18%,
    var(--cyan) 32%,
    var(--text) 52%,
    var(--text) 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow-sweep 2s cubic-bezier(0.22, 0.6, 0.36, 1) 0.05s forwards;
}
@keyframes glow-sweep {
  0%   { background-position: 100% 0; text-shadow: none; }
  40%  { text-shadow: 0 0 18px rgba(103, 199, 212, 0.3); }
  100% { background-position: -20% 0; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-glow { animation: none; background: none; -webkit-text-fill-color: var(--text); }
}
.hero h1.hero-slogan em { font-style: normal; color: var(--text); }
.hero-lede {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-top: 1.5rem;
  max-width: 46ch;
  line-height: 1.65;
}
.hero-chartnote { margin-top: 1.4rem; max-width: 44ch; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.hero-chartnote b { color: var(--body); font-weight: 400; }
.hero-cta {
  position: relative;
  z-index: 3;   /* it used to inherit this from .hero-copy, which it has left */
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 5rem;
}
.hero-btn {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--cyan);
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.hero-btn:hover { background: var(--cyan-bright); border-color: var(--cyan-bright); }
.hero-chart,
.hero-chart-scrim {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  pointer-events: none;
}
/* lift the plot's bottom clear of the scroll chevron — a shorter sawtooth */
.hero-chart { z-index: 0; bottom: 4.5rem; }
.hero-chart canvas { display: block; width: 100%; height: 100%; }
.hero-chart-scrim {
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(31,38,42,0.9) 0%,
    rgba(31,38,42,0.55) 34%,
    rgba(31,38,42,0.05) 64%,
    rgba(31,38,42,0) 100%);
}
/* ── the sawtooth at phone width ──
   As a backdrop it did not survive the move: the left scrim covers the part
   that carries the meaning and what is left reads as noise behind the slogan.
   So below the nav breakpoint it stops being a backdrop and becomes a band
   under the copy — out of the text's way, and with the scrim dropped, since
   there is no longer any text to hold off.

   Dimensions are the desktop ones: the band carries the hero's own aspect on a
   desktop (~1320 × 770), and the canvas scales its paddings and step pitch to
   match (see Hero.astro), so this is the desktop chart shrunk rather than the
   desktop chart squashed into a phone-shaped box. */
@media (max-width: 999px) {
  .hero-chart-scrim { display: none; }
  /* The band sits between the slogan and the lede, which means those two can no
     longer share a wrapper: display:contents dissolves .hero-copy so its two
     children become flex items of .hero alongside the canvas, and the four
     blocks are then ordered directly. Desktop keeps the wrapper. */
  .hero-copy { display: contents; }
  .hero-slogan { order: 1; }
  .hero-chart {
    position: static;
    order: 2;
    width: 100%;
    aspect-ratio: 1320 / 770;
    /* shrink before overflowing on a short handset — the frame clips */
    flex: 0 1 auto;
    min-height: 0;
    /* Two auto margins — here and above the button — so the hero's spare height
       is split between them rather than all pooling under the lede. The band
       sits lower for it, and a taller handset drops it further still. Both
       collapse to zero when there is no slack, which is what keeps a short
       screen working; the minimum gap to the slogan is that block's own
       margin-bottom. */
    margin-top: auto;
    /* The top of the plot dissolves rather than starting on a hard edge, so the
       sawtooth reads as coming out from under the slogan instead of sitting in
       a box below it. */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 16%, #000 42%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 16%, #000 42%, #000 100%);
  }
  .hero-lede { order: 3; margin-top: clamp(0.6rem, 1.8vh, 1.2rem); }
  /* takes the leftover height, so the button is pushed down the hero — the gap
     to the footer bar below is .hero's own padding-bottom */
  .hero-cta { order: 4; margin-top: auto; }
  /* Learn more carries both languages on one row here rather than stacking
     them: the hero is height-bound at this width, and a two-line button is the
     one element in it that can give that height back. .ja-sub is the stacked
     markup BiLabel renders (the inline variant is a different element), so the
     sub-line is turned back into an inline run — and the 14px floor it carries
     for prose is dropped, since it sits beside 0.78rem caps here. */
  .hero-btn .ja-sub {
    display: inline;
    font-size: 0.92em;
    margin-top: 0;
    margin-left: 0.5em;
    opacity: 0.9;
  }
  /* display:contents on .hero-copy floats the slogan/lede up as hero flex items;
     the industries grid is a direct hero child. Without an order it defaults to
     0 and jumps above the slogan — pin it to the tail. (The chevron is absolute,
     so it needs none.) */
  .industries-band.in-hero { order: 6; margin-top: clamp(1.4rem, 3vh, 2.2rem); }
}
.hud { position: absolute; z-index: 3; pointer-events: none; }
.hud .mono { font-size: 0.75rem; letter-spacing: 0.16em; color: var(--muted); }
.hud-fig {
  top: 4.75rem;
  right: 3.0rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.hud-legend { display: flex; gap: 1.2rem; }
.hud-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hud-foot {
  left: 0; right: 0; bottom: 1.2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hud-foot .mono { font-size: 0.58rem; letter-spacing: 0.12em; color: var(--dim); }
.hud-foot .mono:first-child { display: inline-flex; align-items: center; gap: 0.5rem; }
.hud-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(103,199,212,0.14);
}
.lg-real { width: 14px; height: 0; border-top: 1.5px solid var(--cyan); box-shadow: 0 0 4px var(--cyan); }
.lg-ghost { width: 14px; height: 0; border-top: 1px dashed var(--dim); }
/* ── the landing page is one screen on a phone ──
   86vh + 130px of chrome overran the viewport, so the footer (and with it the
   Send Message shortcut) sat under iOS Safari's URL bar. Pin the hero to what
   is actually visible instead: 130px of chrome is the 65px header (64 + its
   bottom hairline), the 1px page rule and the 64px footer bar — the same sum
   the services navigator uses. dvh, not vh: on iOS vh is the URL-bar-hidden
   height, which is exactly the measurement that buried the footer. */
@media (max-width: 999px) {
  .hero {
    min-height: calc(100dvh - 130px);
    max-height: calc(100dvh - 130px);
    overflow: hidden;
    padding-top: clamp(1.2rem, 3.4vh, 2.2rem);
    /* this is the clearance under the button: enough that it does not read as
       jammed against the footer bar below it */
    padding-bottom: clamp(1.5rem, 4vh, 2.6rem);
    /* the desktop right inset kept the slogan clear of the backdrop chart;
       the chart is a band below the slogan here, so it only costs width */
    padding-right: var(--gutter);
  }
  .hero-slogan,
  .hero-lede { flex: 0 0 auto; max-width: none; }
  .hero-slogan { margin-bottom: clamp(0.2rem, 1vh, 0.7rem); }
  .hero-cta { flex: 0 0 auto; }
}
/* Short handsets. The hero is height-bound here, and at the clamp floors above
   the copy alone left the chart band too little room to hold its desktop
   aspect. Ease the type down rather than let the sawtooth squash — the same
   trade the services navigator makes at this height. */
@media (max-width: 999px) and (max-height: 700px) {
  .hero { padding-top: 1.1rem; }
  .hero-slogan { font-size: clamp(1.6rem, 4.6vh, 2.3rem); }
  .hero-lede { font-size: clamp(0.86rem, 2.5vh, 1rem); margin-top: 0.6rem; }
  .hero-btn { padding: 0.38rem 0.8rem; }
}

/* ── section heads ── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}
.section-head h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 26ch;
  text-wrap: balance;
}

/* ── services (master-detail) ── */
.services { padding-top: 3.8rem; padding-bottom: 3.8rem; }
.svc-intro { max-width: 58ch; color: var(--body); margin-bottom: 2rem; font-size: 1rem; line-height: 1.7; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); border: 1px solid var(--hairline); }
.svc-list { border-right: 1px solid var(--hairline); }
.svc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.2s;
}
.svc-item:last-child { border-bottom: none; }
.svc-item:hover { background: var(--panel); }
.svc-item.active { background: var(--panel); }
.si-left { display: flex; align-items: baseline; gap: 0.9rem; min-width: 0; }
.si-idx { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--dim); flex-shrink: 0; }
.si-name { font-family: var(--font-heading); font-weight: 400; font-size: 1.02rem; color: var(--body); }
.svc-item.active .si-name { color: var(--text); }
.si-arrow { font-family: var(--font-mono); color: var(--dim); opacity: 0; transition: opacity 0.2s, color 0.2s; flex-shrink: 0; }
.svc-item:hover .si-arrow,
.svc-item.active .si-arrow { opacity: 1; color: var(--cyan); }
.svc-detail { padding: 1.9rem 1.9rem 2rem; position: relative; min-width: 0; }
.sd-idx { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--cyan); }
.sd-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0.55rem 0 0.85rem;
  line-height: 1.15;
}
.sd-tag { font-size: 1rem; color: var(--body); line-height: 1.65; max-width: 50ch; }
.sd-rows { margin-top: 1.7rem; border-top: 1px solid var(--hairline); }
.sd-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--hairline); }
.sd-row .k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-top: 0.2rem; }
.sd-row .v { color: var(--body); font-size: 0.92rem; line-height: 1.55; }
.sd-row.notfor .k { color: var(--amber); }
.sd-row.notfor .v { color: var(--muted); }
.sd-deliver-label { display: block; margin: 1.4rem 0 0.7rem; }
.sd-deliver { display: flex; flex-direction: column; gap: 0.5rem; }
.sd-deliver li {
  list-style: none;
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--body);
  line-height: 1.5;
}
.sd-deliver li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}
.sd-cta { margin-top: 1.7rem; }
.prod-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  gap: 0.5rem;
  transition: gap 0.2s, color 0.2s;
}
.prod-link:hover { gap: 0.85rem; color: var(--cyan-bright); }

/* ── contact ── */
.contact { padding-top: 4rem; padding-bottom: 4.5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-note {
  border: 1px solid var(--hairline);
  background: rgba(11,17,32,0.4);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.contact-note p {
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.7;
}
.contact-lead h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 16ch;
  text-wrap: balance;
}
.contact-lead p { margin-top: 1.2rem; max-width: 42ch; color: var(--body); }
.contact-direct { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-direct .cd-item { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-direct .cd-item .mono { font-size: 0.6rem; }
.contact-direct .cd-item a { color: var(--text); font-size: 1rem; transition: color 0.2s; }
.contact-direct .cd-item a:hover { color: var(--cyan); }

/* ── message page ── */
.msg-main {
  min-height: calc(100vh - 64px - 1px - 64px);
  max-height: calc(100vh - 64px - 1px - 64px);
  display: flex;
  flex-direction: column;
  padding-left: clamp(1.25rem, 4vw, 2.8rem);
  padding-right: clamp(1.25rem, 4vw, 2.8rem);
  padding-top: clamp(1rem, 2.5vh, 1.8rem);
  padding-bottom: clamp(1rem, 4vh, 2.5rem);
  overflow: hidden;
}
.msg-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1rem;
  flex-shrink: 0;
}
.msg-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: clamp(1rem, 2.4vh, 1.6rem);
}
.msg-body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.msg-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
}
.msg-panel.active { display: flex; }
.msg-panel.slide-out-left,
.msg-panel.slide-out-right,
.msg-panel.slide-in-right,
.msg-panel.slide-in-left {
  position: absolute;
  inset: 0;
  display: flex !important;
}
.msg-panel.slide-out-left { animation: svc7SlideOutLeft 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.msg-panel.slide-out-right { animation: svc7SlideOutRight 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.msg-panel.slide-in-right { animation: svc7SlideInRight 0.42s cubic-bezier(0.4, 0, 0.2, 1) both; }
.msg-panel.slide-in-left { animation: svc7SlideInLeft 0.42s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* ── Form layout ── */
.msg-form-wrap {
  width: min(38rem, 90vw);
  min-height: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}
/* Shown in place of the form once a call is provisionally booked. */
.msg-confirm { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.5rem 0; }
.msg-confirm[hidden] { display: none; }
.msg-confirm-head {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.msg-confirm-body { font-size: 0.98rem; line-height: 1.6; color: var(--body); max-width: 48ch; }
.msg-form {
  height: min(30rem, 68vh);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 22rem;
}
.msg-identity-row {
  display: flex;
  gap: 0.5rem;
}
.msg-identity-row .msg-input { flex: 1; }
/* Email on the left, opt-in on the right; the email sits a little taller. */
.msg-email-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.msg-email-row .msg-input { flex: 1 1 auto; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.msg-email-row .msg-optin { flex: 0 0 auto; margin: 0; }
.msg-email-row .msg-optin-text { white-space: nowrap; }
.msg-input-phone[hidden] { display: none !important; }
.msg-input {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f1f5f9;
  background: rgba(9, 9, 11, 0.35);
  border: 1px solid var(--hairline, #2c2d31);
  padding: 0.55rem 0.8rem;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
  caret-color: var(--cyan, #67c7d4);
  transition: border-color 0.2s;
}
.msg-input::placeholder { color: #8ea0b5; }
.msg-input:focus { outline: none; border-color: rgba(103, 199, 212, 0.45); }
.msg-input:-webkit-autofill,
.msg-input:-webkit-autofill:hover,
.msg-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f1f5f9;
  box-shadow: 0 0 0 1000px #1f262a inset;
  -webkit-box-shadow: 0 0 0 1000px #1f262a inset;
  background-color: #1f262a !important;
  border-color: rgba(103, 199, 212, 0.45) !important;
  outline: none !important;
  transition: background-color 9999s ease-out 0s;
}
.msg-textarea {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  line-height: 1.55;
  color: #f1f5f9;
  background: rgba(9, 9, 11, 0.35);
  border: 1px solid var(--hairline, #2c2d31);
  padding: 0.6rem 0.8rem;
  width: 100%;
  flex: 1;
  min-height: 10rem;
  max-height: 14rem;
  resize: none;
  caret-color: var(--cyan, #67c7d4);
  transition: border-color 0.2s;
}
.msg-textarea::placeholder { color: #8ea0b5; }
.msg-textarea:focus { outline: none; border-color: rgba(103, 199, 212, 0.45); }

/* Marketing opt-in: a custom check to match the dark form, with the native
   input visually hidden but still driving :checked / focus / a11y. */
.msg-optin {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.65rem 0 0.15rem;
  cursor: pointer;
  user-select: none;
}
.msg-optin input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.msg-optin-box {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.06rem;
  border: 1px solid var(--hairline, #334155);
  border-radius: 3px;
  background: rgba(9, 9, 11, 0.35);
  color: #141418;
  transition: border-color 0.18s, background 0.18s;
}
.msg-optin-box svg { width: 0.8rem; height: 0.8rem; opacity: 0; transition: opacity 0.15s; }
.msg-optin:hover .msg-optin-box { border-color: rgba(103, 199, 212, 0.6); }
.msg-optin input:checked + .msg-optin-box {
  background: var(--cyan, #67c7d4);
  border-color: var(--cyan, #67c7d4);
}
.msg-optin input:checked + .msg-optin-box svg { opacity: 1; }
.msg-optin input:focus-visible + .msg-optin-box { outline: 2px solid rgba(103, 199, 212, 0.6); outline-offset: 2px; }
.msg-optin-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--body, #cbd5e1);
}
html[lang='ja'] .msg-optin-text { font-size: max(0.85rem, 14px); }

/* Chat summary badge */
/* Footer buttons */
.msg-foot-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}
/* Not scoped to .active: the outgoing panel loses .active at the same moment it
   starts sliding, and hanging the centring off it made the form snap to the top
   for the length of the transition. The panel is display:none when inactive, so
   there is nothing to gain by qualifying this. */
.msg-panel-compose {
  justify-content: center;
}
.msg-request-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #e2e8f0;
  background: none;
  border: 1px solid var(--hairline, #2c2d31);
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-request-btn:hover {
  color: var(--cyan, #67c7d4);
  border-color: rgba(103, 199, 212, 0.35);
}
.msg-request-btn.has-request {
  font-size: 0.95rem;
  color: #c5d4e0;
  border-style: dashed;
  border-color: rgba(103, 199, 212, 0.3);
  background: rgba(103, 199, 212, 0.03);
}
.msg-request-state {
  color: #64748b;
}
.msg-request-state-detail {
  color: #c5d4e0;
}
.msg-request-btn.has-request:hover {
  border-color: rgba(103, 199, 212, 0.5);
}
.msg-request-optional {
  color: #64748b;
  margin-left: 0.45rem;
}
.msg-request-btn-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
.msg-request-btn-icon-cal { display: none; }
.msg-request-btn.has-request .msg-request-btn-icon-plus { display: none; }
.msg-request-btn.has-request .msg-request-btn-icon-cal { display: inline-block; }
.msg-request-btn-icon[hidden] { display: none !important; }
.msg-send {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #b8eaf0;
  background: rgba(103, 199, 212, 0.1);
  border: 1px solid rgba(103, 199, 212, 0.42);
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.msg-send:hover {
  color: #e4f8fb;
  border-color: rgba(103, 199, 212, 0.62);
  background: rgba(103, 199, 212, 0.16);
}
.msg-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Scheduler dialog ── */
.svc7-dialog-scheduler {
  width: min(56rem, 94vw);
  height: min(45rem, 90vh);
  display: flex;
  flex-direction: column;
}
.msg-sched-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 1.4rem 1.2rem;
  overflow: hidden;
}
.msg-sched-title-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--cyan, #67c7d4);
}
.msg-sched-duration {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.78rem;
  color: #8ea0b5;
}

/* Two-column layout */
.msg-sched-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.msg-sched-left {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
}
.msg-sched-right {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
  overflow: hidden;
}

/* Heading for right column */

/* Channel pills */
.msg-sched-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.msg-sched-ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.85rem;
  color: #94a8bc;
  background: rgba(9, 9, 11, 0.4);
  border: 1px solid var(--hairline, #2c2d31);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.msg-sched-ch svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.msg-sched-ch:hover { color: var(--cyan, #67c7d4); border-color: rgba(103, 199, 212, 0.35); }
.msg-sched-ch:focus { outline: none; }
.msg-sched-ch.active {
  color: var(--cyan, #67c7d4);
  border-color: rgba(103, 199, 212, 0.5);
  background: rgba(103, 199, 212, 0.06);
}

.svc7-dialog-scheduler *:focus,
.svc7-dialog-scheduler *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.svc7-dialog-scheduler .msg-input:focus,
.svc7-dialog-scheduler .msg-tz-input:focus {
  border-color: var(--hairline, #2c2d31);
}

/* Timezone city picker */
.msg-tz-section { position: relative; }
.msg-tz-search {
  display: flex;
  align-items: stretch;
}
.msg-tz-search .msg-tz-input { flex: 1; min-width: 0; border-right: none; }
.msg-tz-badge {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.82rem;
  color: #94a8bc;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.55rem 0.8rem;
  background: rgba(11, 17, 32, 0.5);
  border: 1px solid var(--hairline, #2c2d31);
  border-left: none;
}
.msg-tz-badge:empty { display: none; }
.msg-tz-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: #141418;
  border: 1px solid var(--hairline, #2c2d31);
  max-height: 16rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.msg-tz-dropdown[hidden] { display: none; }
.msg-tz-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #d5dee9;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(44, 45, 49, 0.5);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.msg-tz-option:hover { background: rgba(103, 199, 212, 0.06); }
.msg-tz-option:last-child { border-bottom: none; }
.msg-tz-option-city { color: #f1f5f9; }
.msg-tz-option-tz { font-size: 0.75rem; color: #8ea0b5; white-space: nowrap; }

/* Calendar in left column */
.msg-sched-cal {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--hairline, #2c2d31);
  background: rgba(9, 9, 11, 0.28);
  padding: 0.6rem 0.7rem;
  display: flex;
}

/* Footer */
.msg-sched-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--hairline, #2c2d31);
  padding-top: 0.7rem;
  margin-top: 0.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.msg-sched-confirm {
  width: 100%;
  padding: 0.65rem 1rem;
}
.msg-sched-confirm svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
.msg-sched-confirm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.msg-sched-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #e2e8f0;
  background: none;
  border: 1px solid var(--hairline, #2c2d31);
  padding: 0.65rem 1rem;
  width: 100%;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.msg-sched-remove svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
.msg-sched-remove:hover { color: var(--cyan, #67c7d4); border-color: rgba(103, 199, 212, 0.45); background: rgba(103, 199, 212, 0.06); }
.msg-sched-remove:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Calendar (reused) */
.msg-cal {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
}
.msg-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.msg-cal-month {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.9rem;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}
.msg-cal-nav-btn {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  line-height: 1;
  color: #94a8bc;
  background: none;
  border: 1px solid transparent;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.msg-cal-nav-btn:hover { color: var(--cyan, #67c7d4); border-color: var(--hairline, #2c2d31); }
.msg-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  text-align: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea0b5;
}
.msg-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  flex: 1;
  align-content: start;
}
.msg-cal-cell {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.85rem;
  aspect-ratio: 1;
  min-height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d5dee9;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.msg-cal-blank { pointer-events: none; }
.msg-cal-cell:hover:not(:disabled) { border-color: var(--hairline, #2c2d31); color: #f8fafc; }
.msg-cal-cell.is-today .msg-cal-num { color: var(--cyan, #67c7d4); }
.msg-cal-cell.is-selected { border-color: rgba(103, 199, 212, 0.45); background: rgba(103, 199, 212, 0.06); color: var(--cyan, #67c7d4); }
.msg-cal-check { position: absolute; top: 1px; right: 2px; font-size: 0.5rem; line-height: 1; color: var(--cyan, #67c7d4); }
.msg-cal-cell.is-past, .msg-cal-cell:disabled { color: #4b5c70; cursor: default; }

/* Slots (reused) */
.msg-slots-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline, #2c2d31);
  background: rgba(9, 9, 11, 0.28);
  padding: 0.55rem;
  overflow-y: auto;
  position: relative;
}
.msg-slots-tools { position: absolute; top: 0.4rem; right: 0.55rem; z-index: 1; }
.msg-slot-clear {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.78rem;
  color: #94a8bc;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, border-color 0.2s;
}
.msg-slot-clear:hover { color: var(--cyan, #67c7d4); border-bottom-color: var(--cyan, #67c7d4); }
.msg-slot-list { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; min-height: 0; }
.msg-slot-group { display: flex; flex-direction: column; gap: 0.25rem; }
.msg-slot-group-head { font-family: var(--font-heading); font-weight: 300; font-size: 0.82rem; color: #94a8bc; padding: 0 0.1rem; }
.msg-slot-day-empty { font-family: var(--font-heading); font-weight: 300; font-size: 0.82rem; color: #64748b; padding: 0.2rem 0.45rem; }
.msg-slot-empty { font-family: var(--font-heading); font-weight: 300; font-size: 0.82rem; color: #64748b; text-align: center; padding: 1rem; }
.msg-slot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.88rem;
  text-align: left;
  color: #d5dee9;
  background: transparent;
  border: 1px solid var(--hairline, #2c2d31);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.msg-slot:hover { border-color: rgba(103, 199, 212, 0.35); color: #f8fafc; }
.msg-slot.is-selected { border-color: rgba(103, 199, 212, 0.45); background: rgba(103, 199, 212, 0.05); color: var(--cyan, #67c7d4); }
.msg-slot-check { width: 0.8rem; flex-shrink: 0; color: var(--cyan, #67c7d4); font-size: 0.7rem; }

@media (max-width: 999px) {
  .msg-main { max-height: none; overflow-y: auto; }
  .msg-form-wrap { max-width: 100%; }
  .msg-sched-columns { grid-template-columns: 1fr; }
  .svc7-dialog-scheduler { width: min(96vw, 56rem); max-height: 92vh; }
}

.msg-about-split {
  max-width: min(78rem, 92vw);
  display: grid;
  /* Both tracks size to content and the pair is centred as a unit. With the
     text on 1fr it took the whole remaining column, but its own measure cap is
     narrower than that, so it sat left inside a too-wide track and pushed the
     venn off to the left of the panel. */
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: clamp(2.75rem, 6vw, 6.5rem);
  /* The panel stacks its children from the top, which left the figure floating
     near the tab strip. Centre the split in whatever height the panel has. */
  margin: auto 0;
}
.msg-about {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  /* matches the widest of the lede/body ch caps, so the track is the text */
  max-width: 28rem;
  /* was nudged down to clear the old heading; the heading is gone */
  padding-top: 0;
}

/* ── MRO ∩ AI venn ──
   --d is the circle diameter, --ov how far the two overlap. Every other figure
   here derives from those two, so resizing is a one-line change. */
.venn {
  /* Tracks the viewport all the way down rather than sitting on a floor: the
     figure is 1.83 * --d wide, so 49vw keeps it inside 90vw at any width. */
  --d: min(14rem, 49vw);
  /* A fraction of --d, so the label keeps its proportion as the figure scales.
     With the captions gone the only thing that must clear the lens is "MRO",
     which is why this can sit so much higher relative to --d than before. */
  --venn-name-size: max(1rem, calc(var(--d) * 0.135));
  --ov: calc(var(--d) * 0.17);
  position: relative;
  width: calc(var(--d) * 2 - var(--ov));
  height: var(--d);
  flex: 0 0 auto;
}
.venn-circle {
  position: absolute;
  top: 0;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  border: 1px solid var(--hairline, #2c2d31);
}
.venn-mro { left: 0; }
.venn-ai { left: calc(var(--d) - var(--ov)); }
/* Both layers span the whole figure, so the two clip circles share one
   coordinate system and their centres are just the circles' own centres. */
.venn-lens,
.venn-lens > i {
  position: absolute;
  inset: 0;
  display: block;
}
.venn-lens {
  clip-path: circle(calc(var(--d) / 2) at calc(var(--d) / 2) calc(var(--d) / 2));
}
.venn-lens > i {
  clip-path: circle(calc(var(--d) / 2) at calc(var(--d) * 1.5 - var(--ov)) calc(var(--d) / 2));
  /* the service tiles' hatch, verbatim */
  background: repeating-linear-gradient(-45deg, rgba(44, 45, 49, 0.35) 0 1px, transparent 1px 12px);
}
/* Each label is centred on its own circle, well inside the span that clears
   the lens on both sides. */
.venn-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
}
.venn-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: var(--venn-name-size);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text, #f8fafc);
}
/* Mixed case as written, so this is body type rather than the mono label
   treatment: no uppercasing, and only enough tracking to keep it calm. */
/* Side by side needs venn (410) + gap (~72) + text (448) = ~930px of content
   box, which 92vw only clears past ~1015. Below that, stack. */
@media (max-width: 1015px) {
  .msg-about-split {
    grid-template-columns: auto;
    justify-items: center;
    gap: 2.5rem;
  }
}
.msg-about-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--text, #f8fafc);
  line-height: 1.15;
}
.msg-about-lede {
  font-size: 1.32rem;
  line-height: 1.5;
  color: var(--body, #cbd5e1);
  max-width: 34ch;
}
.msg-about-body {
  font-size: 1.08rem;
  line-height: 1.62;
  color: #8ea0b5;
  max-width: 42ch;
}
.msg-about-direct {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.msg-about-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.msg-about-label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}
.msg-about-item a {
  color: var(--text, #f8fafc);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  align-self: flex-start;
}
.msg-about-item a:hover {
  color: var(--cyan, #67c7d4);
  border-bottom-color: var(--cyan, #67c7d4);
}
form.lead-form {
  border: 1px solid var(--hairline);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: rgba(11,17,32,0.4);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.field input[type=text],
.field input[type=email] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.2s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { border-bottom-color: var(--cyan); }
.opt-in {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.5rem 0;
  cursor: pointer;
}
.opt-in input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--hairline);
  background: transparent;
  margin-top: 0.15rem;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
}
.opt-in input:checked { border-color: var(--cyan); }
.opt-in input:checked::after { content: ""; position: absolute; inset: 3px; background: var(--cyan); }
.opt-in span { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.form-submit { width: 100%; justify-content: center; }
.form-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
  text-align: center;
}
.form-success { display: none; padding: 1.2rem 0; text-align: center; }
.form-success.show { display: block; }
.form-success .mono { color: var(--cyan); }
form.lead-form.sent .field,
form.lead-form.sent .opt-in,
form.lead-form.sent .form-submit,
form.lead-form.sent .form-note { display: none; }

/* ── footer ── */
footer.foot {
  border-top: 1px solid var(--hairline);
  position: relative;
  z-index: 1;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.6rem var(--gutter);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-brand {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}
.foot-brand + p { font-size: 0.82rem; color: var(--muted); max-width: 34ch; }
.foot-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.foot-col .mono { display: block; margin-bottom: 1rem; }
.foot-col a { display: block; font-size: 0.86rem; color: var(--muted); padding: 0.22rem 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.2rem var(--gutter);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-end;
}
.foot-copy {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.draft-flag {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 60;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(217,164,65,0.35);
  background: #09090b;
  padding: 0.4rem 0.7rem;
}

/* ── responsive ── */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero h1 { max-width: 20ch; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-list { border-right: none; border-bottom: 1px solid var(--hairline); }
}
/* The nav drawer replaced the .open flyout; nav-links / nav-toggle are handled
   in the drawer block at 820px. */
@media (max-width: 680px) {
  .art-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .art-meta { justify-content: flex-start; }
}

/* ── page footer rule ── */
.shell-foot-rule {
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  height: 3rem;
}

@keyframes rowIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

.svc-index {
  padding-top: 0;
  padding-bottom: 0;
  min-height: calc(100vh - 64px - 1px - 64px);
  display: flex;
  flex-direction: column;
}
.svc-row {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  transition: background 0.5s;
  animation: rowIn 0.6s cubic-bezier(0.22, 0.6, 0.36, 1) both;
}
.svc-row:nth-child(1) { animation-delay: 0.06s; }
.svc-row:nth-child(2) { animation-delay: 0.13s; }
.svc-row:nth-child(3) { animation-delay: 0.20s; }
.svc-row:nth-child(4) { animation-delay: 0.27s; }
.svc-row:nth-child(5) { animation-delay: 0.34s; }
.svc-row:nth-child(6) { animation-delay: 0.41s; }
.svc-row.active { background: rgba(11, 17, 32, 0.55); }

.svc-row-ghost {
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  top: -2.2rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(6rem, 11vw, 10rem);
  line-height: 1;
  color: rgba(103, 199, 212, 0.05);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.6s;
}
.svc-row.active .svc-row-ghost { opacity: 1; }

.svc-row-head {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: clamp(3rem, 6vw, 5.5rem) 1fr auto;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: clamp(0.85rem, 1.8vh, 1.3rem) clamp(1.25rem, 4vw, 4rem);
  font-family: var(--font-sans);
  transition: padding-left 0.3s;
}
.svc-row-head:hover { padding-left: clamp(1.8rem, 4.6vw, 4.8rem); }

.svc-row-idx {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--dim);
  transition: color 0.4s;
}
.svc-row.active .svc-row-idx { color: var(--cyan); }

.svc-row-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #8ea0b5;
  transition: color 0.4s;
  text-wrap: balance;
}
.svc-row.active .svc-row-name { color: var(--text); }

.svc-row-plus {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dim);
  transform: rotate(0deg);
  transition: transform 0.45s cubic-bezier(0.22, 0.6, 0.36, 1), color 0.4s;
  line-height: 1;
}
.svc-row.active .svc-row-plus { color: var(--cyan); transform: rotate(45deg); }

.svc-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s cubic-bezier(0.22, 0.6, 0.36, 1);
}
.svc-row.active .svc-row-body { grid-template-rows: 1fr; }
.svc-row-body-inner { overflow: hidden; min-height: 0; }

.svc-row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0.3rem clamp(1.25rem, 4vw, 4rem) clamp(1.2rem, 2.4vh, 1.8rem)
    calc(clamp(1.25rem, 4vw, 4rem) + clamp(3rem, 6vw, 5.5rem) + 1rem);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s 0.15s, transform 0.5s 0.15s;
}
.svc-row.active .svc-row-grid { opacity: 1; transform: translateY(0); }

.svc-row-copy { display: flex; flex-direction: column; gap: 0.8rem; }
.svc-row-blurb { font-size: 1rem; line-height: 1.55; color: var(--body); max-width: 44ch; }
.svc-row-fit { font-size: 0.9rem; line-height: 1.6; color: var(--muted); max-width: 48ch; }

.svc-row-outputs { display: flex; flex-direction: column; gap: 0; align-self: start; }
.svc-row-outputs .mono { padding-bottom: 0.8rem; }
.svc-row-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--hairline);
  padding: 0.55rem 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 300;
}
.svc-row-output-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--cyan);
  opacity: 0.8;
}

.svc-row-underline {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), rgba(103, 199, 212, 0));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.22, 0.6, 0.36, 1);
}
.svc-row.active .svc-row-underline { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .svc-row { animation: none; }
}

@media (max-width: 680px) {
  .svc-row-grid { grid-template-columns: 1fr; padding-left: clamp(1.25rem, 4vw, 4rem); }
}

/* ── services v7 redesign ── */
@keyframes sv7FadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sv7PopIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sv7GridA { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sv7GridB { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sv7DlgIn { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sv7DimIn { from { opacity: 0; } to { opacity: 1; } }

.sv7-popover-backdrop[hidden] { display: none; }
.sv7-popover-backdrop { position: fixed; inset: 0; z-index: 45; }

.sv7-nav-services-btn {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
}
.sv7-nav-caret { font-size: 0.6rem; transition: transform 0.3s; display: inline-block; }
.sv7-nav-services-btn[aria-expanded="true"] .sv7-nav-caret { transform: rotate(180deg); }
.sv7-nav-popover {
  position: absolute;
  top: calc(100% + 1.35rem);
  left: 50%;
  transform: translateX(-62%);
  background: #040a1a;
  border: 1px solid var(--hairline);
  min-width: 19rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  display: none;
  z-index: 50;
}
.sv7-nav-popover.open { display: block; animation: sv7PopIn 0.25s cubic-bezier(0.22,0.6,0.36,1) both; }
.sv7-nav-row {
  width: 100%;
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  transition: background 0.25s;
}
.sv7-nav-row:last-child { border-bottom: none; }
.sv7-nav-row:hover { background: rgba(103,199,212,0.07); }
.sv7-nav-row.active { background: rgba(103,199,212,0.08); }
.sv7-nav-row-idx {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--dim);
}
.sv7-nav-row.active .sv7-nav-row-idx { color: var(--cyan); }
.sv7-nav-row-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #8ea0b5;
}
.sv7-nav-row.active .sv7-nav-row-name { color: var(--text); }
.sv7-nav-row-arrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.25s;
}
.sv7-nav-row.active .sv7-nav-row-arrow { opacity: 1; }

.sv7-page {
  flex: 1;
  min-height: calc(100vh - 64px - 1px - 64px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(1.4rem, 3.5vh, 2.6rem) clamp(1.25rem, 4vw, 4rem);
}
.sv7-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  animation: sv7FadeUp 0.55s cubic-bezier(0.22,0.6,0.36,1) both;
}
.sv7-head-set { display: none; flex-direction: column; gap: 0.4rem; }
.sv7-head-set.active { display: flex; }
.sv7-idx {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.sv7-head h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.sv7-ticks { display: flex; gap: 0.55rem; padding-top: 0.4rem; }
.sv7-tick {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  width: clamp(2.6rem, 4vw, 3.8rem);
}
.sv7-tick::before {
  content: "";
  width: 100%;
  height: 3px;
  background: var(--hairline);
  transition: background 0.3s;
}
.sv7-tick.active::before { background: var(--cyan); }

.sv7-grid-holder {
  flex: 1;
  min-height: 0;
  margin-top: clamp(1.2rem, 2.8vh, 2rem);
  position: relative;
}
.sv7-grid {
  position: absolute;
  inset: 0;
  display: none;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
}
.sv7-grid.active { display: grid; }
.sv7-grid.anim-a { animation: sv7GridA 0.55s cubic-bezier(0.22,0.6,0.36,1) 0.08s both; }
.sv7-grid.anim-b { animation: sv7GridB 0.55s cubic-bezier(0.22,0.6,0.36,1) 0.08s both; }
.sv7-card {
  border: 1px solid var(--hairline);
  background: rgba(11,17,32,0.4);
  display: grid;
  grid-template-rows: minmax(0,1fr) 10.5rem;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: var(--font-sans);
  transition: border-color 0.3s, background 0.3s;
}
.sv7-card:hover { border-color: rgba(103,199,212,0.45); background: rgba(11,17,32,0.6); }
.sv7-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--hairline);
  background: repeating-linear-gradient(-45deg, rgba(44,45,49,0.35) 0 1px, transparent 1px 12px);
  min-height: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #475569;
  padding: 0 1rem;
  text-align: center;
}
.sv7-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(0.9rem,2vh,1.3rem) clamp(0.9rem,1.6vw,1.3rem);
  min-height: 0;
}
.sv7-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.sv7-card-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.05rem,1.5vw,1.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.sv7-card-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.75;
  flex-shrink: 0;
  white-space: nowrap;
}
.sv7-card-blurb {
  display: block;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #8ea0b5;
}

.sv7-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1rem,2.4vh,1.7rem);
  animation: sv7FadeUp 0.55s cubic-bezier(0.22,0.6,0.36,1) both;
}
.sv7-engines { display: flex; align-items: center; gap: 0.6rem; }
.sv7-engines-label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.sv7-engine {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: none;
  border: 1px solid rgba(103,199,212,0.35);
  padding: 0.22rem 0.55rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.sv7-engine:hover { background: rgba(103,199,212,0.1); border-color: var(--cyan); }
.sv7-discuss {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  display: inline-flex;
  gap: 0.55rem;
  transition: background 0.2s, gap 0.2s;
}
.sv7-discuss:hover { background: var(--cyan-bright); gap: 0.9rem; }

.sv7-overlay[hidden] { display: none; }
.sv7-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem,4vh,3rem);
}
.sv7-dim {
  position: absolute;
  inset: 0;
  background: rgba(9,9,11,0.78);
  backdrop-filter: blur(6px);
  animation: sv7DimIn 0.25s both;
}
.sv7-dialog,
.sv7-engine-dialog {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  box-shadow: 0 32px 90px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  animation: sv7DlgIn 0.35s cubic-bezier(0.22,0.6,0.36,1) both;
}
.sv7-dialog { width: min(58rem,94vw); height: min(46rem,88vh); }
.sv7-engine-dialog { width: min(34rem,94vw); }
.sv7-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.sv7-dialog-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.sv7-dialog-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-left: 0.8rem;
  margin-right: auto;
}
.sv7-close {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--muted);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
}
.sv7-close:hover { color: var(--text); border-color: var(--cyan); }

.sv7-dialog-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem,3vh,2.2rem);
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(103,199,212,0.05), transparent 70%);
}
.sv7-page-preview {
  height: 100%;
  aspect-ratio: 8.5/11;
  max-width: 100%;
  background: #f6f7f9;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  padding: 6.5% 7%;
}
.sv7-page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #d3d8e0;
  padding-bottom: 0.7rem;
  color: #141418;
}
.sv7-page-head span:first-child { font-family: var(--font-heading); font-weight: 300; font-size: 0.95rem; letter-spacing: -0.02em; }
.sv7-page-head span:last-child { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a94a3; }
.sv7-page-fill { flex: 1; }
.sv7-page-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #d3d8e0;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  color: #8a94a3;
  text-transform: uppercase;
}
.sv7-engine-copy { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.sv7-engine-copy h3 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.sv7-engine-copy p { font-size: 0.92rem; line-height: 1.65; color: #8ea0b5; }

@media (prefers-reduced-motion: reduce) {
  .sv7-head, .sv7-grid, .sv7-foot, .sv7-dialog, .sv7-engine-dialog, .sv7-dim { animation: none !important; }
}
@media (max-width: 980px) {
  .sv7-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .sv7-page { min-height: auto; }
  .sv7-grid-holder { position: static; }
  .sv7-grid,
  .sv7-grid.active { position: static; display: grid; grid-template-columns: 1fr; }
  .sv7-ticks { width: 100%; justify-content: space-between; }
  .sv7-foot { flex-direction: column; align-items: flex-start; }
}

@keyframes svc7FadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes svc7Grid   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes svc7DlgIn  { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes svc7DimIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes svc7DlgOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(10px) scale(0.985); } }
@keyframes svc7DimOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes svc7SlideOutLeft  { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-105%); opacity: 0; } }
@keyframes svc7SlideInRight  { from { transform: translateX(105%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes svc7SlideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(105%); opacity: 0; } }
@keyframes svc7SlideInLeft   { from { transform: translateX(-105%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@keyframes pageSwipeOut  { to { transform: translateX(-100%); } }
@keyframes pageSwipeOutR { to { transform: translateX(100%); } }
@keyframes pageSwipeIn   { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes pageSwipeInL  { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.shell.swipe-out > *   { animation: pageSwipeOut 0.32s ease-in forwards; }
.shell.swipe-out-r > * { animation: pageSwipeOutR 0.32s ease-in forwards; }
.shell.swipe-in > *    { animation: pageSwipeIn 0.32s ease-out both; }
.shell.swipe-in-l > *  { animation: pageSwipeInL 0.32s ease-out both; }
.shell.swipe-out, .shell.swipe-out-r, .shell.swipe-in, .shell.swipe-in-l { overflow: hidden; }

.svc7-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--frame);
  color: rgba(210, 216, 224, 0.65);
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}
.svc7-arrow[hidden] {
  display: none !important;
}
.svc7-arrow:hover {
  color: var(--cyan, #67c7d4);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(103, 199, 212, 0.5);
}
/* brief flash when the turn is triggered by the left/right arrow keys */
.svc7-arrow.is-key-active {
  color: var(--cyan, #67c7d4);
  background: rgba(103, 199, 212, 0.16);
  border-color: rgba(103, 199, 212, 0.5);
  filter: drop-shadow(0 0 8px rgba(103, 199, 212, 0.55));
  transition: color 0.08s, background 0.08s, border-color 0.08s;
}
.svc7-arrow svg { width: 24px; height: 24px; }
.svc7-arrow-breathe {
  animation: svc7ArrowBreathe 3.2s ease-in-out infinite;
}
.svc7-arrow-breathe:hover {
  animation: none;
  color: var(--cyan, #67c7d4);
  filter: drop-shadow(0 0 8px rgba(103, 199, 212, 0.55));
}
@keyframes svc7ArrowBreathe {
  0%, 100% {
    color: rgba(120, 145, 165, 0.5);
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    color: var(--cyan, #67c7d4);
    filter: drop-shadow(0 0 10px rgba(103, 199, 212, 0.65));
  }
}
@media (prefers-reduced-motion: reduce) {
  .svc7-arrow-breathe { animation: none; }
}
.svc7-arrow-left {
  right: calc(50% + var(--maxw) / 2 - 1px);
  border-right: none;
  border-radius: 3px 0 0 3px;
}
.svc7-arrow-right {
  left: calc(50% + var(--maxw) / 2 - 1px);
  border-left: none;
  border-radius: 0 3px 3px 0;
}
@media (max-width: 760px) {
  .svc7-arrow { display: none; }
}

.svc7-main {
  min-height: calc(100vh - 64px - 1px - 64px);
  max-height: calc(100vh - 64px - 1px - 64px);
  display: flex;
  flex-direction: column;
  padding-left: clamp(1.25rem, 4vw, 2.8rem);
  padding-right: clamp(1.25rem, 4vw, 2.8rem);
  padding-top: clamp(1rem, 2.5vh, 1.8rem);
  padding-bottom: clamp(1rem, 4vh, 2.5rem);
  overflow: hidden;
}

.svc7-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.svc7-head-left { display: flex; flex-direction: column; gap: 0.25rem; }
.svc7-counter {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(103, 199, 212, 0.2);
}
.svc7-counter #svc7Idx { color: rgba(103, 199, 212, 0.45); }
.svc7-tabs { display: flex; align-items: center; gap: 1.4rem; }
.svc7-tab {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.65vw, 1.25rem);
  letter-spacing: -0.01em;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted, #64748b);
  opacity: 0.5;
  cursor: pointer;
  padding: 0.2rem 0 0.3rem;
  transition: opacity 0.25s, color 0.25s, border-color 0.25s;
}
.svc7-tab:hover { opacity: 1; color: var(--text); }
/*
 * No browser focus ring on the page-chrome controls. A tab keeps focus after
 * you click it, and the ring only appears once you touch the keyboard — which
 * the arrow-key page turns make easy to trigger. State is already carried by
 * .active / :hover.
 */
.svc7-tab:focus,
.svc7-tab:focus-visible,
.svc7-card:focus,
.svc7-card:focus-visible,
.svc7-arrow:focus,
.svc7-arrow:focus-visible,
.svc7-engine-badge:focus,
.svc7-engine-badge:focus-visible,
.svc7-dialog-close:focus,
.svc7-dialog-close:focus-visible {
  outline: none;
  box-shadow: none;
}
.svc7-tab.active {
  opacity: 1;
  color: var(--cyan, #67c7d4);
  border-bottom-color: var(--cyan, #67c7d4);
}

.svc7-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: clamp(1rem, 2.4vh, 1.6rem);
}
.svc7-grid {
  display: none;
  position: absolute;
  inset: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
}
.svc7-grid.active {
  display: grid;
}
.svc7-grid.svc7-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Custom is a single tile spanning the full width */
.svc7-grid.svc7-grid-1 {
  grid-template-columns: minmax(0, 1fr);
}
.svc7-grid.slide-out-left {
  display: grid !important;
  animation: svc7SlideOutLeft 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.svc7-grid.slide-out-right {
  display: grid !important;
  animation: svc7SlideOutRight 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.svc7-grid.slide-in-right {
  animation: svc7SlideInRight 0.42s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.svc7-grid.slide-in-left {
  animation: svc7SlideInLeft 0.42s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.svc7-card {
  border: 1px solid var(--tile-border);
  /* Unselected tiles sit flush with the page — transparent so the base shows
     through, defined by the border alone. (The flipped info face supplies its own
     --raise-2 surface.) */
  background: var(--tile-bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: var(--font-sans);
  transition: border-color 0.3s, background 0.3s;
}
/* Tile stays flush on hover (the animation un-dims to signal it); the border just
   warms very slightly. */
.svc7-card:hover { border-color: var(--tile-border-hover); }

.svc7-card-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--tile-border);
  background: repeating-linear-gradient(-45deg, rgba(44, 45, 49, 0.35) 0 1px, transparent 1px 12px);
  flex: 1 1 0;
  min-height: 0;
}
/* The diagonal hatch stays painted in every state. Stripping it on idle left the
   un-hovered card as a flat fill, so a transparent teaser read as opaque until
   you hovered it — the dim below is what marks a card as idle, not the hatch. */
/* The un-focused tile recedes behind a scrim. This sits on the tile rather than
   on each teaser root: the old rule enumerated four roots by name, so capex, woi,
   dashboard, quarterly, vendor and va tiles never dimmed at all, and the Custom
   tab — whose tiles have no animation to dim — could not be covered either. */
.svc7-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: rgba(12, 12, 14, 0);
  transition: background 0.35s ease;
}
.svc7-card.is-anim-idle .svc7-card-visual::after {
  /* Tiles sit flush with the base; a resting tile recedes with only a whisper of
     darkening so it stays essentially the base colour. */
  background: rgba(12, 12, 14, 0.18);
}
.svc7-card.is-anim-idle .svc7-card-indicator {
  opacity: 0.35;
}
.svc7-card-indicator {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--cyan, #67c7d4);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.2s;
}
.svc7-card:hover .svc7-card-indicator { opacity: 1; }
.svc7-card-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.svc7-stockout-root,
.svc7-minmax-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.svc7-report-root {
  position: absolute;
  /* Match shared teaser-frame inset — report teaser doesn't use that frame */
  inset: 1.2rem 1.85rem 1.65rem;
  overflow: hidden;
  pointer-events: none;
}
.svc7-crit-root {
  position: absolute;
  inset: 1.2rem 1.85rem 1.65rem;
  overflow: hidden;
  pointer-events: none;
}

/* Shared teaser frame — meta/hud/foot in CSS; stage hosts scaled animation */
.svc7-teaser-frame {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.2rem 0.55rem;
  padding: 1.2rem 1.85rem 1.65rem;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
  font-family: var(--font-heading);
}
.svc7-teaser-frame.has-hud {
  grid-template-columns: minmax(0, 1fr) auto;
}
.svc7-teaser-frame.has-foot {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.svc7-teaser-meta {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  min-width: 0;
}
.svc7-teaser-meta-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(230, 245, 250, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc7-teaser-meta-sub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.6rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: rgba(160, 185, 205, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svc7-teaser-meta-sub em {
  font-style: normal;
  color: rgba(200, 225, 235, 0.85);
}
.svc7-teaser-meta-sep {
  opacity: 0.4;
  flex-shrink: 0;
}
.svc7-teaser-hud {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 8.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.svc7-teaser-stage {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.svc7-teaser-foot {
  grid-column: 1 / -1;
  grid-row: 3;
  z-index: 2;
  min-width: 0;
}

.svc7-minmax-teaser-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 840px;
  height: 520px;
  transform-origin: top left;
  font-family: var(--font-heading);
}
.svc7-minmax-teaser-saw {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.55rem;
  bottom: 0.55rem;
  z-index: 1;
  border: none;
  background: transparent;
  overflow: hidden;
  transition: opacity 0.35s ease;
}
.svc7-minmax-teaser-saw.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.svc7-minmax-teaser-saw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.svc7-minmax-teaser-saw-side {
  display: none;
}
.svc7-minmax-teaser-run {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: rgba(99, 216, 230, 0.85);
  text-align: right;
  margin-top: 4px;
  white-space: nowrap;
}
.svc7-minmax-teaser-bartrack {
  height: 4px;
  border: 1px solid rgba(99, 216, 230, 0.4);
  background: rgba(99, 216, 230, 0.06);
}
.svc7-minmax-teaser-bar {
  height: 100%;
  width: 0%;
  background: rgba(99, 216, 230, 0.85);
  box-shadow: 0 0 8px rgba(99, 216, 230, 0.6);
}
.svc7-minmax-teaser-ticks {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}
.svc7-minmax-teaser-tick {
  flex: 1;
  height: 3px;
  background: rgba(99, 216, 230, 0.1);
  border: 1px solid rgba(99, 216, 230, 0.25);
}
.svc7-minmax-teaser-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.35s ease;
}
.svc7-minmax-teaser-canvas.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.svc7-minmax-teaser-axisvals {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.svc7-minmax-teaser-axisval {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: -0.01em;
  opacity: 0;
  white-space: nowrap;
}
.svc7-minmax-teaser-axisval.is-current {
  color: rgba(226, 162, 74, 0.95);
}
.svc7-minmax-teaser-axisval.is-optimal {
  color: var(--cyan, #67c7d4);
}
.svc7-minmax-teaser-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.svc7-minmax-teaser-cell {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  padding: 0.28rem 0.4rem;
  border: 1px solid rgba(120, 170, 195, 0.2);
  background: rgba(8, 16, 27, 0.55);
  opacity: 1;
}
.svc7-minmax-teaser-cell.is-current {
  opacity: 1;
}
.svc7-minmax-teaser-cell.is-optimal {
  border-color: rgba(103, 199, 212, 0.35);
}
.svc7-minmax-teaser-cell.is-savings {
  border-color: rgba(103, 199, 212, 0.4);
  background: rgba(103, 199, 212, 0.07);
}
.svc7-minmax-teaser-cell-tag {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160, 185, 205, 0.6);
}
.svc7-minmax-teaser-cell.is-current .svc7-minmax-teaser-cell-tag {
  color: rgba(226, 162, 74, 0.9);
}
.svc7-minmax-teaser-cell.is-optimal .svc7-minmax-teaser-cell-tag {
  color: rgba(99, 216, 230, 0.95);
}
.svc7-minmax-teaser-cell.is-savings .svc7-minmax-teaser-cell-tag {
  color: rgba(167, 227, 235, 0.9);
}
.svc7-minmax-teaser-cell-policy {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(160, 185, 205, 0.5);
}
.svc7-minmax-teaser-cell-val {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
  color: rgba(230, 245, 250, 0.92);
}
.svc7-minmax-teaser-cell.is-optimal .svc7-minmax-teaser-cell-val {
  color: var(--cyan, #67c7d4);
}
.svc7-minmax-teaser-cell.is-savings .svc7-minmax-teaser-cell-val {
  color: #a7e3eb;
}
.svc7-card-visual-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #475569;
  padding: 0 1rem;
  text-align: center;
}
.svc7-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem clamp(0.8rem, 1.4vw, 1.1rem);
  flex: 0 0 auto;
  height: 5.25rem;
  overflow: hidden;
}
.svc7-card-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text, #f8fafc);
  text-wrap: balance;
}
.svc7-card-blurb {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #8ea0b5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.svc7-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1rem, 3vh, 1.8rem);
}
.svc7-powered { display: flex; align-items: center; gap: 0.6rem; }
.svc7-powered-label {
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}
.svc7-engine-badge {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  letter-spacing: -0.025em;
  color: var(--text, #f8fafc);
  /* Same flat treatment as the Get-in-touch CTA: subtle neutral fill, no border,
     matched height. */
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 0 0.85rem;
  height: 2.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}
.svc7-engine-badge[hidden] { display: none; }
.svc7-engine-badge:hover { background: rgba(103, 199, 212, 0.14); }
.svc7-engine-wordmark { font-weight: 300; display: inline-flex; gap: 0; align-items: baseline; }
.svc7-engine-wordmark-accent { font-weight: 400; color: var(--cyan, #67c7d4); letter-spacing: -0.01em; }
.svc7-cta {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--cyan, #67c7d4);
  background: none;
  border: 1px solid rgba(103, 199, 212, 0.3);
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-flex;
  gap: 0.45rem;
  transition: border-color 0.2s, color 0.2s, gap 0.2s;
}
.svc7-cta:hover { border-color: var(--cyan); color: #a7e3eb; gap: 0.7rem; }
.svc7-cta-accent { font-style: normal; color: #f0f6f8; }

.svc7-tab-divider {
  width: 1px;
  height: 1rem;
  background: var(--hairline);
  margin: 0 0.2rem;
}

.svc7-contact-panel,
.svc7-custom-panel {
  display: flex !important;
  align-items: center;
  justify-content: center;
  grid-template-columns: unset !important;
}
.svc7-contact-panel:not(.active),
.svc7-custom-panel:not(.active) { display: none !important; }
.svc7-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 30rem;
}
.svc7-form-input {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text);
  background: rgba(4, 10, 22, 0.8);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.svc7-form-input::placeholder { color: rgba(140, 160, 180, 0.55); }
.svc7-form-input:focus { border-color: var(--cyan); }
.svc7-form-textarea { resize: vertical; min-height: 6rem; }
.svc7-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.2rem;
}
.svc7-form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}
.svc7-form-check input[type="checkbox"] {
  accent-color: var(--cyan);
  width: 15px;
  height: 15px;
}
.svc7-form-submit {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 3px;
  padding: 0.6rem 1.8rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.svc7-form-submit:hover { background: var(--cyan-bright); border-color: var(--cyan-bright); }

.svc7-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vh, 3rem);
}
.svc7-overlay[hidden] { display: none; }
.svc7-overlay-dim {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(6px);
  animation: svc7DimIn 0.5s ease both;
}
.svc7-dialog {
  position: relative;
  /* Overlay tier — every dialog (spec, Custom pano, engine, contact, scheduler)
     floats over the dimmed page, so it sits at the top of the elevation scale. */
  background: var(--raise-2);
  border: 1px solid #2c2d31;
  box-shadow: inset 0 1px 0 var(--raise-hi), 0 32px 90px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  animation: svc7DlgIn 0.55s cubic-bezier(0.22, 0.6, 0.36, 1) both;
}
.svc7-dialog-report { width: min(58rem, 94vw); height: min(46rem, 88vh); }
.svc7-dialog-engine { width: min(41rem, 94vw); }
/* Spanish taglines run longer than English; give the engine dialog more room so
   the hero line keeps a comfortable margin from the edge. */
html[lang='es'] .svc7-dialog-engine { width: min(46rem, 94vw); }
.svc7-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #2c2d31;
  flex-shrink: 0;
}
.svc7-dialog-titles { display: flex; align-items: baseline; gap: 0.8rem; min-width: 0; }
.svc7-dialog-kicker { font-weight: 400; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan, #67c7d4); white-space: nowrap; }
.svc7-dialog-title { font-family: var(--font-heading); font-weight: 300; font-size: 1.05rem; color: var(--text, #f8fafc); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc7-dialog-close {
  background: none;
  border: 1px solid #2c2d31;
  color: #7c8ba1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.svc7-dialog-close:hover { color: var(--text, #f8fafc); border-color: var(--cyan, #67c7d4); }

.svc7-report-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 3vh, 2.2rem);
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(103, 199, 212, 0.05), transparent 70%);
}
.svc7-report-page {
  height: 100%;
  aspect-ratio: 8.5 / 11;
  max-width: 100%;
  background: #f6f7f9;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 6.5% 7%;
}
.svc7-report-letterhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #d3d8e0;
  padding-bottom: 0.7rem;
}
.svc7-report-logo { font-family: var(--font-heading); font-weight: 300; font-size: 0.95rem; letter-spacing: -0.02em; color: #141418; }
.svc7-report-logo span { font-weight: 400; color: #3d99a6; }
.svc7-report-doc { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a94a3; }
.svc7-report-empty { flex: 1; }
.svc7-report-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #d3d8e0;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a94a3;
}

/* ── service detail dialog ──
   Same six blocks for every offering, so services read as comparable rather
   than as ten separate pitches. Rules run *between* sections and columns, never
   around them — the frame already supplies the outer edge. */
/* Wider so the lists wrap less — the cheapest height saving there is. The
   max-height stays as a floor for very short viewports, but the layout is
   sized to fit without it. */
.svc7-dialog-spec { width: min(72rem, 95vw); max-height: 92vh; overflow-y: auto; }
.svc7-spec-titlebar { display: flex; align-items: baseline; gap: 0.6rem; min-width: 0; }
.svc7-spec-wordmark {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.svc7-spec-wordmark span { font-weight: 400; color: var(--cyan); letter-spacing: -0.01em; }
.svc7-spec-body { padding: 0 1.9rem 1.6rem; }
.svc7-spec-question {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
  padding: 1.2rem 0 1.25rem;
}
.svc7-spec-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}
.svc7-spec-block { padding: 1.1rem 1.7rem 1.15rem 0; }
/* the only vertical rule: between the two columns of a row. Specificity has to
   beat .svc7-spec-block, whose shorthand sets padding-left to 0 and which comes
   later in this sheet — otherwise the second column's text sits on the rule. */
.svc7-spec-row > .svc7-spec-block + .svc7-spec-block {
  border-left: 1px solid var(--hairline);
  padding-left: 1.9rem;
}
.svc7-spec-wide { grid-column: 1 / -1; padding-right: 0; }
/* last row stretches so Typical shape can run down toward the dialog floor */
.svc7-spec-row-last { align-items: stretch; }
/* the button needs room beneath it, or it reads as jammed into the frame */
.svc7-spec-row-last .svc7-spec-block { padding-bottom: 1.25rem; }
/* Button sits beside the copy rather than under it: shorter, and it fills the
   dead space this cell otherwise leaves. */
.svc7-spec-next-row { display: flex; align-items: center; gap: 1.4rem; }
.svc7-spec-next-row p { flex: 1 1 auto; min-width: 0; }
.svc7-spec-next .svc7-spec-cta { margin-top: 0; flex: 0 0 auto; white-space: nowrap; }
.svc7-spec-block h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.svc7-spec-block p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--body);
}
.svc7-spec-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.svc7-spec-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--body);
}
.svc7-spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 0.6rem;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}
.svc7-spec-cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--body);
  border: 1px solid var(--hairline);
  padding: 0.6rem 1.15rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.svc7-spec-cta:hover {
  color: var(--text);
  border-color: rgba(103, 199, 212, 0.5);
  background: rgba(103, 199, 212, 0.06);
}
@media (max-width: 640px) {
  .svc7-spec-row { grid-template-columns: minmax(0, 1fr); }
  .svc7-spec-row > .svc7-spec-block + .svc7-spec-block {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding-left: 0;
  }
  .svc7-spec-block { padding-right: 0; }
  /* too narrow for the button to sit beside the copy */
  .svc7-spec-next-row { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
}

/* ── engines dialog ──
   One tabbed panel for JourneySim / JourneyCast / JourneyAI. The tab row mirrors
   the page's function tabs (cyan active underline); each panel echoes the spec
   dialog's structure — category kicker, tagline headline, blurb, a how-it-works
   strip with rules between, and chips back to the offerings it powers. */
.svc7-engine-tabs {
  display: flex;
  gap: 1.6rem;
  padding: 0 1.6rem;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.svc7-engine-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.9rem 0 0.75rem;
  cursor: pointer;
  opacity: 0.55;
  color: var(--muted);
  transition: opacity 0.25s, color 0.25s, border-color 0.25s;
}
.svc7-engine-tab:hover { opacity: 0.85; }
.svc7-engine-tab .svc7-engine-wordmark { font-size: 1.06rem; }
.svc7-engine-tab.active { opacity: 1; color: var(--text); border-bottom-color: var(--cyan); }
.svc7-engine-tab:focus,
.svc7-engine-tab:focus-visible { outline: none; box-shadow: none; }

/* Closing runs an out animation before the overlay is hidden, so the dialog
   eases away instead of vanishing. Only the engines overlay takes this class. */
.svc7-overlay.is-closing .svc7-dialog { animation: svc7DlgOut 0.42s cubic-bezier(0.4, 0, 0.2, 1) both; }
.svc7-overlay.is-closing .svc7-overlay-dim { animation: svc7DimOut 0.42s ease both; }

/* Panels are stacked in one box whose height is locked to the tallest engine on
   open (JS). Switching tabs crossfades opacity in place — the frame never
   resizes and the change eases rather than flashing. */
.svc7-engine-panels { position: relative; }
.svc7-engine-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem 1.6rem 1.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.svc7-engine-panel.is-active { opacity: 1; pointer-events: auto; }
.svc7-engine-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
/* Each region below reserves a fixed height, so the tagline, blurb, the
   step-strip rule and the POWERS rule land at the same Y on every tab — the
   frame is genuinely identical, only the words crossfade. Taglines are written
   to fit one line; blurbs to two. */
.svc7-engine-tagline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.45rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  margin-top: -0.25rem;
}
.svc7-engine-blurb {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--body);
  min-height: 3.14rem; /* two lines, so the strip below never shifts */
}

.svc7-engine-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  margin-top: 0.3rem;
}
.svc7-engine-step {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 1.2rem 1.05rem 0;
  min-height: 6.5rem; /* reserve on the cell so heads/notes and the dividers
                         between them land identically on every tab */
}
.svc7-engine-step + .svc7-engine-step {
  border-left: 1px solid var(--hairline);
  padding-left: 1.2rem;
}
.svc7-engine-step-head {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.svc7-engine-step-note { font-size: 0.9rem; line-height: 1.5; color: var(--body); }

/* Label on its own line with the chips stacked beneath it, so every tab reads
   the same and each chip left-aligns under the title — no inline-vs-wrapped
   difference between the 3-chip and 4-chip engines. */
.svc7-engine-powers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.2rem;
}
.svc7-engine-powers-label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.svc7-engine-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
/* Static labels, not links: they say what the engine backs without pulling the
   reader out of this dialog into a different one. */
.svc7-engine-chip {
  font-size: 0.86rem;
  letter-spacing: -0.005em;
  color: var(--body);
  background: rgba(103, 199, 212, 0.06);
  border: 1px solid var(--hairline);
  padding: 0.34rem 0.65rem;
}

@media (max-width: 560px) {
  /* Narrow screens can't hold the tagline on one line or three steps across, so
     the fixed-height reservations are released and content flows. */
  .svc7-engine-tagline { white-space: normal; }
  .svc7-engine-blurb { min-height: 0; }
  .svc7-engine-steps { grid-template-columns: 1fr; }
  .svc7-engine-step { padding-right: 0; min-height: 0; }
  .svc7-engine-step + .svc7-engine-step {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc7-main *, .svc7-dialog, .svc7-overlay-dim { animation: none !important; transition: none !important; }
}

@media (max-width: 760px) {
  .svc7-main { max-height: none; overflow: visible; }
  .svc7-grid.active { grid-template-columns: 1fr; }
  .svc7-grid.svc7-grid-2 { max-width: 100%; }
  .svc7-card { min-height: 13rem; }
}

/* ── research ───────────────────────────────────────────────────────────────── */
/* Same viewport-locked frame as the other pages — sides and footer stay put,
   the article scrolls inside .research-scroll. */
.research-main {
  /* prose needs more contrast than the page chrome: --muted is 5.8:1 and --dim
     only 4.2:1 on our background, which is under the 4.5:1 minimum */
  --research-ink: #dde5ef;
  --research-ink-2: #9fb0c4;
  /* one reading column, centred — the frame is 1320px wide and a 44rem column
     pinned to its left edge just reads as a layout that failed to finish */
  --research-measure: 44rem;
  min-height: calc(100vh - 64px - 1px - 64px);
  max-height: calc(100vh - 64px - 1px - 64px);
  display: flex;
  flex-direction: column;
  padding-left: clamp(1.25rem, 4vw, 2.8rem);
  padding-right: clamp(1.25rem, 4vw, 2.8rem);
  padding-top: clamp(1rem, 2.5vh, 1.8rem);
  padding-bottom: 0;
  overflow: hidden;
}
.research-head {
  flex: 0 0 auto;
  padding-bottom: clamp(0.9rem, 2.2vh, 1.5rem);
  border-bottom: 1px solid var(--hairline);
}
.research-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--research-ink-2);
}
.research-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0.5rem;
}
.research-intro {
  margin-top: 0.6rem;
  color: var(--research-ink-2);
  font-size: 1.08rem;
  line-height: 1.7;
}
/* the hairline stays full-bleed like the rest of the site's rules; only the
   content inside it aligns to the reading column */
.research-head-inner {
  max-width: var(--research-measure);
  margin: 0 auto;
}
.research-head-article .research-head-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.research-back {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--research-ink-2);
  transition: color 0.2s;
}
.research-back:hover { color: var(--cyan); }
.research-article-meta,
.research-item-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--research-ink-2);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.research-dot { opacity: 0.5; }

/* the scroll surface */
.research-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 168, 188, 0.25) transparent;
}
.research-scroll:focus,
.research-scroll:focus-visible { outline: none; }
.research-scroll::-webkit-scrollbar { width: 8px; }
.research-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 168, 188, 0.22);
  border-radius: 4px;
}
.research-scroll::-webkit-scrollbar-thumb:hover { background: rgba(103, 199, 212, 0.4); }

/* ── index list ── */
.research-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--research-measure);
}
.research-item { border-bottom: 1px solid var(--hairline); }
.research-item-link {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(1.4rem, 3.5vh, 2.2rem) 0;
  transition: background 0.25s;
}
.research-item-link:hover { background: rgba(11, 17, 32, 0.5); }
.research-item-index {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--research-ink-2);
  padding-top: 0.3rem;
}
.research-item-body { display: block; }
.research-item-title {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s;
}
.research-item-link:hover .research-item-title { color: var(--cyan); }
.research-item-standfirst {
  display: block;
  margin-top: 0.6rem;
  color: var(--research-ink-2);
  font-size: 1.08rem;
  line-height: 1.7;
}
.research-item-more {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ── article ── */
.research-article {
  max-width: var(--research-measure);
  margin: 0 auto;
  padding: clamp(1.6rem, 4vh, 2.6rem) 0 clamp(3rem, 8vh, 5rem);
  color: var(--research-ink);
  font-size: 1.08rem;
}
.research-article h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}
.research-standfirst {
  margin-top: 1.1rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--research-ink-2);
}
.research-article h2 {
  margin-top: 2.6rem;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.research-article p { margin-top: 1.15rem; line-height: 1.8; }
.research-article strong { color: var(--text); font-weight: 400; }
.research-article em { color: var(--text); font-style: italic; }

.research-pull {
  margin: 2.4rem 0 0;
  padding: 1.4rem 0 1.4rem 1.5rem;
  border-left: 2px solid var(--cyan);
}
.research-pull blockquote {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
}

.research-loop {
  margin-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.research-loop-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
}
.research-loop dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-top: 0.15rem;
}
.research-loop dd { margin: 0; line-height: 1.75; }

.research-bullets { margin-top: 1.2rem; padding-left: 0; list-style: none; }
.research-bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.9rem;
  line-height: 1.75;
}
.research-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

.research-end {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.research-end-mark { color: var(--cyan); font-size: 0.7rem; }
.research-end p { color: var(--research-ink-2); font-size: 1.02rem; line-height: 1.7; }
.research-cta {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--hairline);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  transition: border-color 0.25s, background 0.25s;
}
.research-cta:hover { border-color: var(--cyan); background: rgba(103, 199, 212, 0.08); }

@media (max-width: 760px) {
  .research-main { max-height: none; overflow: visible; }
  .research-scroll { overflow: visible; }
  .research-head-article { flex-direction: column; gap: 0.5rem; }
  .research-item-link { grid-template-columns: 1fr; gap: 0.35rem; }
  .research-item-index { padding-top: 0; }
  .research-loop-row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* ══ mobile services ══
   The walkthroughs are fixed-pixel stages driven by transform: scale(). On a
   375px phone that resolves to ~0.27, putting their largest type at ~6px and
   their labels at ~2px, so they carry no information at all. Below this
   breakpoint the stage is dropped entirely and the catalogue becomes a plain
   vertical list: one long scroll, grouped by function, no tabs. */
.svc7-mlist { display: none; }

@media (max-width: 999px) {
  /* The stage stays a fixed viewport-height frame here rather than becoming a
     document: the navigator below is meant to be read in one look, never
     scrolled. dvh, not vh, so a phone's collapsing URL bar cannot push the
     last group under the fold. */
  /* 130px of chrome: 65px header (64 + its bottom hairline), the 1px page rule
     and the 64px footer bar */
  .svc7-main {
    min-height: calc(100dvh - 130px);
    max-height: calc(100dvh - 130px);
    overflow: hidden;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .svc7-stage,
  .svc7-tabs,
  .svc7-counter,
  .svc7-arrow { display: none; }
  .svc7-head { display: block; }

  /* The navigator. The function label sits between the rows as its own band,
     full width, rather than in a left rail — the rail cost the offerings the
     horizontal room that keeps their names on one line, and read as detached
     from the rows it named. The height that pays for the bands comes from the
     powered-by bar, which does not run at this width at all. The
     question-captions the rows used to carry live on the detail screen, which
     is where they get read. */
  .svc7-mlist {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    transition: transform var(--screen-slide) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--screen-slide) ease;
    /* Safety net only — every size we target fits without it. On some unknown
       smaller device, scrolling the list beats the alternative: the frame
       clips and the group bands overrun the rows they belong to. */
    overflow-y: auto;
  }
  /* parallax under the incoming detail screen, so the pair reads as one swipe */
  .svc7-mlist.is-behind { transform: translateX(-16%); opacity: 0; }

  .svc7-mgroup {
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* grow by offering count, so spare height on a tall handset widens every
       row equally instead of pooling under the last group */
    flex: 2 1 auto;
  }
  .svc7-mgroup:last-child { flex: 1 1 auto; }
  .svc7-mgroup-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--hairline, #2c2d31);
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(0.6rem, 1.45vh, 0.7rem);
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(150, 170, 190, 0.72);
    white-space: nowrap;
  }
  /* the band needs air above it, but not above the first one */
  .svc7-mgroup + .svc7-mgroup .svc7-mgroup-head { margin-top: clamp(0.5rem, 1.5vh, 1.1rem); }
  .svc7-mgroup-idx { color: var(--dim, #475569); }

  .svc7-mgrid {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
  }

  .svc7-mrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    flex: 1 1 0;
    min-height: clamp(2.1rem, 4.4vh, 3rem);
    padding: 0.3rem 0.15rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .svc7-mrow + .svc7-mrow { border-top: 1px solid rgba(44, 45, 49, 0.55); }
  .svc7-mrow:active { background: rgba(103, 199, 212, 0.07); }
  .svc7-mrow:active .svc7-mrow-chev { color: var(--cyan, #67c7d4); }
  .svc7-mrow-name {
    font-family: var(--font-heading);
    font-weight: 300;
    /* Sized off width as well as height so the longest name still sits on one
       line on a 320px handset. */
    font-size: clamp(0.78rem, min(2.05vh, 4.4vw), 1.02rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--text, #f8fafc);
    min-width: 0;
    /* the point of the single column: every name on one line */
    white-space: nowrap;
  }
  /* Spanish names run longest — "Herramienta de selección de proveedores" is 39
     characters against 25 for the longest English — and they are the full
     desktop names, not shortened. They overrun the shared 4.4vw by up to 8% on
     a 320-375px handset, so Spanish sizes off a slightly tighter width. Same
     mechanism, same one-line rule, ~10% smaller type on the narrowest phones. */
  html[lang='es'] .svc7-mrow-name {
    font-size: clamp(0.72rem, min(2.05vh, 3.95vw), 1.02rem);
  }
  /* In Japanese the row carries both languages side by side, so the reading has
     to live inside the same line budget: the global .ja-inline floors at 14px,
     which is wider than the English beside it and blows the row at 320px. */
  .svc7-mrow-name .ja-inline {
    font-size: max(0.88em, 11.5px);
    margin-left: 0.45em;
  }
  .svc7-mrow-chev {
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.95rem;
    color: var(--muted, #64748b);
    transition: color 0.2s;
  }

  /* The desktop "powered by" strip is a hover/dialog affordance with nowhere to
     go on a touch screen, and the navigator needs the height for its six bands. */
  .svc7-foot { display: none; }

  /* Short handsets: the clamp floors above are what bind at this height, and
     eleven rows plus six bands against them overran the frame — which clips
     rather than scrolls. Ease the floors instead of losing the one-screen
     rule. */
  @media (max-height: 700px) {
    .svc7-main { padding-top: 0.6rem; padding-bottom: 0.6rem; }
    .svc7-mrow { min-height: 1.85rem; }
    .svc7-mgroup + .svc7-mgroup .svc7-mgroup-head { margin-top: 0.45rem; }
  }
  /* the shortest handsets still in use (568px tall) need one tier tighter */
  @media (max-height: 600px) {
    .svc7-mrow { min-height: 1.6rem; }
    .svc7-mgroup + .svc7-mgroup .svc7-mgroup-head { margin-top: 0.3rem; }
  }

  /* ── the spec stops being a dialog and becomes a screen ──
     Same markup as the desktop overlay, but docked under the site header and
     slid in from the right: chosen from the navigator it reads as the next
     page across, not as something floating on top of it. Single-column too —
     the desktop layout is a 2-up grid with vertical dividers, which cannot
     survive this width. */
  .svc7-spec-overlay {
    display: block;
    /* Docked between the two bars: 65px clears the header and its bottom
       hairline, 65px at the foot leaves the page rule and the footer bar
       showing, so Send Message stays on screen while a detail is open. That is
       what pays for dropping the per-screen Get-in-touch button. */
    inset: 65px 0 65px 0;
    padding: 0;
    z-index: 55;
    overflow: hidden;
    /* off-screen for the length of the slide-out; the panel takes its own taps */
    pointer-events: none;
  }
  .svc7-spec-overlay .svc7-overlay-dim { display: none; }
  .svc7-dialog.svc7-dialog-spec {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    /* the dialog's pop-in is replaced by a transform we drive from the class */
    animation: none;
    transform: translateX(100%);
    transition: transform var(--screen-slide) cubic-bezier(0.4, 0, 0.2, 1);
  }
  .svc7-spec-overlay.is-open .svc7-dialog-spec { transform: translateX(0); }

  body.svc7-detail-open { overflow: hidden; }

  /* The panel keeps no title bar of its own: the header breadcrumb directly
     above already reads Services / <this offering>, and repeating the name
     here cost a band of height for nothing. */
  .svc7-dialog-spec .svc7-dialog-bar { display: none; }

  .svc7-dialog-spec .svc7-spec-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--gutter, 1.25rem) 1.6rem;
  }
  .svc7-dialog-spec .svc7-spec-row {
    display: block;
  }
  /* the divider becomes horizontal, and the 2-up padding-left is dropped */
  .svc7-dialog-spec .svc7-spec-row > .svc7-spec-block + .svc7-spec-block {
    border-left: none;
    padding-left: 0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline, #2c2d31);
  }
  .svc7-dialog-spec .svc7-spec-next-row {
    display: block;
  }
  .svc7-dialog-spec .svc7-spec-next .svc7-spec-cta {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  /* The engine dialog is a desktop affordance — there is no badge left to open
     it here, but belt and braces so a deep link cannot surface it either. */
  #svc7EngineOverlay { display: none !important; }

  /* The contact screen owns the viewport while it is open. */
  body.contact-screen-open { overflow: hidden; }

  /* ── the condensed spec sheet, stacked for one column ──
     Same content as the desktop tile's info face (see MOBILE_FLIP_FNS in
     ServicesShell.astro), but the tile's 8.5rem label column and its
     nowrap/ellipsis items both assume a wide, fixed-height box. Here the
     label sits above its list and the items wrap, because there is room to
     read them in full. */
  .svc7-mspec-sec {
    display: block;
    padding: 1.2rem 0 1.25rem;
    border-top: 1px solid var(--hairline, #2c2d31);
  }
  .svc7-mspec-lbl {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin: 0 0 0.75rem;
  }
  .svc7-mspec-lbl .lbl {
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan, #67c7d4);
  }
  .svc7-mspec-lbl .cap {
    font-size: 0.92rem;
    line-height: 1.3;
    color: var(--muted, #8ea0b5);
  }
  .svc7-mspec-list { list-style: none; margin: 0; padding: 0; }
  .svc7-mspec-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--body, #cbd5e1);
  }
  .svc7-mspec-list li + li { margin-top: 0.55rem; }
  /* optical: the icon reads centred on the first line, not on its cap height */
  .svc7-mspec-list .svc7-mda-ico { margin-top: 0.18rem; }

  /* .svc7-dialog-custom's own width is declared after this block, so it needs
     the extra class here to lose to it and fill the screen like every other
     detail panel */
  .svc7-dialog.svc7-dialog-spec.svc7-dialog-custom { width: 100%; }

  /* Custom builds its blocks from .svc7-custom-row, not .svc7-spec-row, so it
     needs the same treatment: side-by-side strengths/weaknesses leave a ~20ch
     measure at this width. */
  .svc7-dialog-custom .svc7-custom-row.is-split { display: block; }
  .svc7-dialog-custom .svc7-custom-row.is-split > .svc7-custom-block:first-child {
    padding-right: 0;
  }
  .svc7-dialog-custom .svc7-custom-row.is-split > .svc7-custom-block + .svc7-custom-block {
    border-left: none;
    padding-left: 0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline, #2c2d31);
  }
}

/* The services mega-menu is six columns docked to the frame rails and opens on
   hover, so on a touch device it either never opens or opens and traps. The
   trigger is a real link to /services, which is the right behaviour here. */
@media (max-width: 999px) {
  .nav-mega { display: none !important; }
  #servicesSelect .lang-caret { display: none; }
}

/* ══ mobile nav drawer ══
   Sits under the fixed 64px header and fills the rest of the viewport. Two
   pages ride one track: the root section list, and whichever section has been
   opened. Choosing a section slides the track left rather than opening a
   nested popover, and the breadcrumb in the top pane names where you are. */
.nav-drawer { display: none; }

@media (max-width: 999px) {
  .nav-right { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 44px square: the touch-target floor, and it keeps the icon optically
       centred against the wordmark on the other rail */
    width: 44px;
    height: 44px;
    margin-right: -0.5rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--text, #f8fafc);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle svg { width: 22px; height: 22px; display: block; }
  .nav-toggle .nav-toggle-x { display: none; }
  .nav-toggle.open .nav-toggle-bars { display: none; }
  .nav-toggle.open .nav-toggle-x { display: block; }

  body.nav-drawer-open { overflow: hidden; }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--bg, #141418);
    border-top: 1px solid var(--hairline, #2c2d31);
  }
  .nav-drawer[hidden] { display: none; }

  .nav-drawer-page {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem var(--gutter, 1.25rem) 2rem;
  }

  .nav-drawer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.15rem 0;
    border: none;
    border-bottom: 1px solid rgba(44, 45, 49, 0.55);
    background: none;
    text-align: left;
    color: var(--text, #f8fafc);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-drawer-row:active { color: var(--cyan, #67c7d4); }
  .nav-drawer-row-label {
    flex: 1;
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
  }

  /* Language sits in the menu itself: a labelled group of three, picked in
     place. It was a fourth row that slid to a pane of its own, which is a lot
     of travel for a three-way switch. */
  .nav-drawer-langs { padding-top: 1.6rem; }
  .nav-drawer-langs-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(150, 170, 190, 0.72);
    margin-bottom: 0.7rem;
  }
  .nav-drawer-langs-row { display: flex; flex-direction: column; }
  .nav-drawer-lang {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.85rem 0;
    border: none;
    border-bottom: 1px solid rgba(44, 45, 49, 0.4);
    background: none;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    color: var(--body, #cbd5e1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-drawer-lang:active { color: var(--text, #f8fafc); }
  .nav-drawer-lang-code {
    flex: 0 0 2rem;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--muted, #64748b);
  }
  .nav-drawer-lang.active {
    color: var(--text, #f8fafc);
    text-decoration: underline;
    text-decoration-color: rgba(103, 199, 212, 0.7);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
  }
  .nav-drawer-lang.active .nav-drawer-lang-code { color: var(--cyan, #67c7d4); }
}

/* ══ Custom dialog ══
   Deliberately not the six-block spec. There is no fixed deliverable to list,
   so this is short prose with no bullets: an invitation to a conversation
   rather than a scoped product. Narrower and roughly half the height. */
.svc7-dialog.svc7-dialog-custom {
  /* wider than the six-block spec: strengths and weaknesses sit side by side,
     which is what keeps the whole thing off a scrollbar */
  width: min(94vw, 64rem);
}
.svc7-custom-row {
  padding: 1.05rem 0;
}
/* The lede runs to two lines at this width and the dialog is height-bound, so
   it is a touch smaller and tighter here than in the six-block spec. */
.svc7-dialog-custom .svc7-spec-question {
  font-size: 1.28rem;
  padding: 0.9rem 0 0.95rem;
}
.svc7-custom-row + .svc7-custom-row {
  border-top: 1px solid var(--hairline, #2c2d31);
}
.svc7-custom-row.is-split {
  display: grid;
  /* No gap, and the inset is split evenly either side of the rule instead. A
     gap plus padding-left on the second block only made the columns equal
     boxes with unequal text measures. */
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
/* +1px so the two text measures match exactly: the rule below is drawn inside
   the second column's box and would otherwise take a pixel off its content. */
.svc7-custom-row.is-split > .svc7-custom-block:first-child { padding-right: calc(1.9rem + 1px); }
/* inside borders only, as everywhere else on the site */
.svc7-custom-row.is-split > .svc7-custom-block + .svc7-custom-block {
  border-left: 1px solid var(--hairline, #2c2d31);
  padding-left: 1.9rem;
}
/* the 62ch cap is for a full-width block and would not bind here anyway, but
   make it explicit that the column governs the measure */
.svc7-custom-row.is-split .svc7-custom-block p { max-width: none; }
/* Hard right, not just after the text: the paragraph carries a ch-based measure
   cap, so without this the button sits wherever the copy happens to end. */
.svc7-dialog-custom .svc7-spec-next-row .svc7-spec-cta { margin-left: auto; }
.svc7-dialog-custom .svc7-spec-next-row p { max-width: 58ch; }
.svc7-custom-block h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}
.svc7-custom-block p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body, #cbd5e1);
  max-width: 62ch;
}
.svc7-custom-block p + p { margin-top: 0.85rem; }
/* the closing block keeps the shared next-step layout: text left, CTA right */
.svc7-custom-block.svc7-spec-next { padding-bottom: 0.25rem; }

/* ─────────────────────────────────────────────────────────────────────────
   PROTOTYPE — flip-in-place tiles (Master Data Audit + Criticality)
   ───────────────────────────────────────────────────────────────────────── */
/* Title/caption sit on top of the tile. */
.svc7-card-toptext .svc7-card-body { order: -1; border-bottom: 1px solid #2c2d31; }
.svc7-card-toptext .svc7-card-visual { border-bottom: none; }

/* The header holds the title/caption on the left and the (hidden until flipped)
   close on the right. */
.svc7-card-flip { cursor: pointer; }
/* Stay a pointer while flipped — the whole tile is clickable to return to the
   animation. */
.svc7-card-flip.is-flipped { cursor: pointer; }
.svc7-card-flip .svc7-card-body {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.svc7-card-head-text { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
/* Anchor the absolutely-placed Get-in-touch CTA (see .svc7-flip-cta). */
.svc7-card-flip .svc7-card-body { position: relative; }
.svc7-flip-close {
  display: none;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline, #2c2d31);
  background: rgba(9, 9, 11, 0.5);
  color: var(--body, #cbd5e1);
  cursor: pointer;
  border-radius: 2px;
}
.svc7-flip-close:hover { color: var(--text, #f8fafc); border-color: rgba(103, 199, 212, 0.5); }
.svc7-card-flip.is-flipped .svc7-flip-close { display: flex; }

/* Stage crossfades the animation face for the info face — same footprint. */
.svc7-card-flip-stage { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; }
.svc7-flip-anim,
.svc7-flip-info {
  position: absolute;
  inset: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.svc7-flip-anim { opacity: 1; }
.svc7-flip-info {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  overflow-y: auto;
  padding: clamp(0.9rem, 1.8vw, 1.5rem) clamp(1rem, 2vw, 1.7rem) clamp(1.1rem, 2vh, 1.7rem);
  background: var(--raise-2); /* overlay step above the raised tile */
}
.svc7-card-flip.is-flipped .svc7-flip-anim { opacity: 0; pointer-events: none; }
.svc7-card-flip.is-flipped .svc7-flip-info { opacity: 1; transform: none; pointer-events: auto; }

.svc7-flip-specgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 1.6vw, 1.35rem);
  margin-top: 0.9rem;
}

/* ── MDA experiment: no caption, header-right Get-in-touch, no-scroll info ── */
/* Get-in-touch lives at the header right; it fades in on tile hover or while
   the info is open. */
.svc7-flip-cta {
  /* Absolutely placed at the header's right edge so it reserves NO width while
     hidden — the (bilingual) title then uses the full row and never wraps. It
     fades in on flip; the JA half of the name hides then so they don't collide. */
  position: absolute;
  top: 50%;
  right: 0.52rem;
  transform: translateY(-50%);
  height: 2.1rem;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.2s, color 0.2s;
  font-family: var(--font-heading);
  font-size: 0.96rem; /* 15.36px */
  letter-spacing: 0.01em;
  color: var(--cyan, #67c7d4);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 1.1rem;
}
.svc7-flip-cta:hover { color: var(--text, #f8fafc); background: rgba(255, 255, 255, 0.1); }
/* Only visible once the tile is flipped (details shown); it fades in and gives a
   brief bright glow over the first ~3s to draw the eye, then settles. */
.svc7-card-flip-mda.is-flipped .svc7-flip-cta {
  opacity: 1;
  pointer-events: auto;
  animation: mdaCtaGlow 3s ease-out both;
}
@keyframes mdaCtaGlow {
  0%   { opacity: 0; background: rgba(255, 255, 255, 0.06); }
  25%  { opacity: 1; background: rgba(103, 199, 212, 0.16); }
  60%  { background: rgba(103, 199, 212, 0.11); }
  100% { opacity: 1; background: rgba(255, 255, 255, 0.06); }
}
@media (prefers-reduced-motion: reduce) {
  .svc7-card-flip-mda.is-flipped .svc7-flip-cta { animation: none; }
}
/* Once flipped, the Get-in-touch CTA claims header width. In Japanese the inline
   name (English + JA reading) can then wrap to two rows — so on flip drop the JA
   half and keep the English heading alone. Only affects ja (.ja-inline is JA-only). */
.svc7-card-flip.is-flipped .svc7-card-name .ja-inline { visibility: hidden; }

/* No caption in the header, so it needn't reserve caption height. */
.svc7-card-flip-mda .svc7-card-body { height: auto; min-height: 3.2rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }

/* Condensed info as a spec sheet: label/caption on the left, items on the right,
   hairline-divided bands, vertically centred so it fills the tile. Body ~14.5px;
   the all-caps kickers keep their smaller size. */
/* Hero pinned at the top; the bands below each take an equal share of the
   remaining height and centre their content within it, so the dividers sit
   centred between bands and the top/bottom stay balanced. */
.svc7-flip-info-fit {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.2rem, 2.6vh, 2rem) clamp(1.3rem, 2.6vw, 2.2rem) clamp(0.7rem, 1.5vh, 1.2rem);
}
.svc7-flip-info-fit .svc7-spec-question {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
  padding: 0.4rem 0 0.9rem;
  flex: 0 0 auto;
}
/* Fixed label column so every band's items start at the same x; kept tight so
   the bullet texts get the most width. */
.svc7-mda-sec {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
  align-items: start;
  /* Equal top/bottom padding gives each divider the same space on both sides,
     independent of how many items a band has; sized to help fill the tile. */
  padding: clamp(0.8rem, 1.9vh, 1.5rem) 0;
}
.svc7-mda-sec + .svc7-mda-sec { border-top: 1px solid var(--hairline, #2c2d31); }
/* Typical-shape footer row — label + clock/chat-bulleted lines. */
.svc7-mda-shape-row { align-items: start; }
.svc7-mda-shape-row .svc7-mda-lbl { padding-top: 0.12rem; }
.svc7-mda-lbl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  margin: 0;
  padding-top: 0.12rem;
}
.svc7-mda-lbl .lbl {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan, #67c7d4);
}
.svc7-mda-lbl .cap { font-size: 0.9rem; line-height: 1.28; color: #8ea0b5; }
.svc7-mda-list { list-style: none; margin: 0; padding: 0; }
.svc7-mda-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.906rem;
  line-height: 1.35;
  color: var(--body, #cbd5e1);
  white-space: nowrap;
  overflow: hidden;
}
.svc7-mda-list li + li { margin-top: 0.4rem; }
/* Let the text shrink within its column so it truncates with … at the right
   padding rather than running to (or clipping at) the tile edge. */
.svc7-mda-list li span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.svc7-mda-ico { flex: 0 0 auto; width: 1rem; height: 1rem; color: var(--cyan, #67c7d4); }

/* ============================================================================
   Services — vertical scroll (svcv)
   Replaces the fixed-viewport tab/grid/flip layout (svc7). One row per service,
   top to bottom: a wide browser-chrome frame holding the animation on one half,
   description copy on the other, frame side alternating down the page. The old
   .svc7-* rules above are dormant (no svc7 markup renders on this page anymore).
   ============================================================================ */
.svcv {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 6rem);
}
.svcv-intro {
  padding: clamp(1rem, 3vh, 2.5rem) 0 clamp(1.5rem, 4vh, 3rem);
}
.svcv-intro-title {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin: 0;
}

.svcv-rows {
  display: flex;
  flex-direction: column;
  /* Rows are separated by each row's top rule + padding, not a flex gap. */
  gap: clamp(2.25rem, 5.5vh, 3.75rem);
}

/* Datasheet row: a smaller framed demo on the left, its spec on the right,
   ruled like a drawing sheet — a horizontal rule between rows and vertical
   rules between the frame and the copy, and between Outputs and Inputs. */
.svcv-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  border-top: 1px solid var(--frame);
  padding-top: clamp(2.25rem, 5.5vh, 3.75rem);
}
.svcv-frame { grid-column: 1; }
.svcv-copy {
  grid-column: 2;
  /* vertical rule between the frame and its spec */
  border-left: 1px solid var(--frame);
  padding-left: clamp(1.75rem, 4vw, 3.5rem);
}
/* Outputs | Inputs side by side, split by a vertical rule. */
.svcv-spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: 1.4rem;
  margin-top: 0.4rem;
}
.svcv-spec-col { min-width: 0; }
.svcv-spec-col + .svcv-spec-col {
  border-left: 1px solid var(--frame);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
/* Definition-grid variant (Criticality experiment): OUTPUTS (list) then single
   aligned rows for INPUTS / METHOD / TYPICAL SHAPE. A fixed label column lines
   every value up at the same x; the single-value rows don't wrap. */
.svcv-defgrid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.4rem 0 0;
}
.svcv-defrow {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  align-items: start;
}
.svcv-def-label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.12rem;
}
.svcv-def-val {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--body);
  white-space: nowrap;
}
.svcv-def-val.svcv-def-muted { color: var(--muted); }
/* OUTPUTS in the def grid: plain lines, no icons, so every value's text starts
   at the same x as the single-line rows. Wraps if needed. */
.svcv-def-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.svcv-def-list li { white-space: normal; }
/* Inputs read as "what you hand over": arrow glyph, quieter than the cyan
   Outputs checks. */
.svcv-copy-list-inputs .svcv-copy-ico { color: var(--muted); }
.svcv-rule-plus { display: none; }

/* ── Prose (narrative) service layout — Master Data Audit ──
   Intro/outro paragraphs read as argument; the INPUTS/OUTPUTS block between
   them is the datasheet, boxed off by hairlines so it reads as spec. */
.svcv-narr { margin-top: 0.2rem; }
.svcv-narr-p {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--body);
  margin: 0 0 0.95rem;
}
.svcv-narr-p:last-child { margin-bottom: 0; }
/* Inputs reads as one more sentence of the argument — a labelled line in the
   prose flow, not a boxed datasheet block. */
.svcv-narr-io {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--body);
  margin: 0 0 0.95rem;
}
.svcv-narr-io-label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.6rem;
}
/* key deliverables emphasised inline in the prose — brighter, not link-cyan */
.svcv-narr-hl { color: var(--text); font-weight: 500; }

/* ── Browser-chrome frame ── */
.svcv-frame {
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55);
}
.svcv-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 2.3rem;
  padding: 0 0.85rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--tile-border);
}
.svcv-frame-dots { display: inline-flex; gap: 0.4rem; flex-shrink: 0; }
.svcv-frame-dots i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--tile-border);
}
.svcv-frame-url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.svcv-frame-body {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg, #0c0c0e);
}
html[data-theme='light'] .svcv-frame-body { background: #f4f4f2; }
/* Square-edged frame variant — drawing-sheet corners rather than app chrome. */
.svcv-frame-square { border-radius: 0; }
.svcv-frame-square .svcv-frame-url { border-radius: 0; }
/* Teasers position themselves absolutely with baked-in rem insets meant for the
   old tile; inside the frame body they should fill it edge to edge so the frame
   body's aspect-ratio governs the fit with no letterbox. !important beats each
   component's own scoped inset (equal specificity, and source order is unreliable
   across the Astro style bundle). */
.svcv-frame-body > .svc7-crit-root,
.svcv-frame-body > .svc7-minmax-root,
.svcv-frame-body > .svc7-capex-root,
.svcv-frame-body > .svc7-vendor-root {
  /* Tools: canvas fills the frame edge to edge so width-scaling never overflows
     the 16:9 height; the wall gap is the component's own internal padding. */
  inset: 0 !important;
}
/* Reports scroll vertically. Top/left/right match the tools' wall gap (~the
   benchmark 3%/2.5% at desktop width); the bottom is flush (0) so the scrolling
   content runs to the frame edge — the sidebar keeps its own bottom gap via
   padding-bottom inside each teaser. */
.svcv-frame-body > .svc7-report-root,
.svcv-frame-body > .svc7-qr-root {
  inset: 15px 18px 0 18px !important;
}

/* ── Description column ── */
.svcv-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.svcv-copy-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
}
.svcv-copy-idx {
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.svcv-copy-kind {
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.svcv-copy-name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}
/* Title number: a recessed, distinctly darker prefix (02 Criticality …). */
.svcv-copy-num {
  color: #52535c;
  margin-right: 0.5em;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
html[data-theme='light'] .svcv-copy-num { color: #b4afa8; }
.svcv-copy-lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
  white-space: nowrap;
}
.svcv-copy-deliver { margin-top: 0.35rem; }
.svcv-copy-deliver-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.svcv-copy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.svcv-copy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--body);
}
.svcv-copy-ico {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--cyan);
}
.svcv-copy-shape {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0.4rem 0 0;
  white-space: nowrap;
}
.svcv-copy-shape span {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  margin-right: 0.4rem;
}

/* ── Engines strip (static, no dialog) ── */
.svcv-engines {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: clamp(3rem, 8vh, 6rem);
  padding-top: clamp(1.5rem, 4vh, 2.5rem);
  border-top: 1px solid var(--tile-border);
}
.svcv-engines-label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.svcv-engine {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--body);
}
.svcv-engine-accent { color: var(--cyan); }

/* ── Stacked below the split breakpoint ── */
@media (max-width: 999px) {
  /* Frame on top, copy beneath; the vertical rules collapse — only the
     horizontal row rule remains. Outputs/Inputs stack. */
  .svcv-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding-top: 1.75rem;
  }
  .svcv-frame,
  .svcv-copy { grid-column: 1; }
  .svcv-copy { border-left: none; padding-left: 0; }
  .svcv-spec { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .svcv-spec-col + .svcv-spec-col { border-left: none; padding-left: 0; }
  .svcv-copy-lead,
  .svcv-copy-shape { white-space: normal; }
}

/* ============================================================================
   One-pager (hero + services rows + contact CTA on a single landing page)
   ============================================================================ */
/* NOTE: no `html { scroll-behavior: smooth }` here, deliberately. The teasers
   write scrollTop on their inner scrollers every animation frame, and Chromium
   cancels any in-flight smooth window scroll when that happens — so CSS-smooth
   anchor jumps (and even scrollTo with behavior:'auto') silently die at ~0px.
   Same-page anchor clicks are animated by the rAF scroller in HomeShell
   instead, which drives every frame itself and cannot be cancelled. */
/* Anchored sections clear the fixed 64px header when jumped to. */
#services, .svcv-row[id], .svcv-cta { scroll-margin-top: 84px; }

.svcv-sections {
  padding: clamp(3rem, 7vh, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4.5rem);
}

.svcv-kicker {
  display: block;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.svcv-sechead { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.svcv-sechead-title {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin: 0.7rem 0 0;
  max-width: none;
  /* One line at desktop — the column is wide enough, so no early wrap. Below
     that the heading is allowed to break rather than overflow. */
  white-space: nowrap;
}
@media (max-width: 900px) {
  .svcv-sechead-title { white-space: normal; text-wrap: balance; }
}

/* Reports carry the warm accent; tools stay cyan. A quiet second colour so the
   two kinds read apart at a glance down the page. */
.svcv-copy-kind[data-kind='report'] {
  color: rgba(230, 184, 100, 0.9);
  border-color: rgba(230, 184, 100, 0.35);
}
html[data-theme='light'] .svcv-copy-kind[data-kind='report'] {
  color: #92600f;
  border-color: rgba(146, 96, 15, 0.4);
}

/* ── closing contact CTA ── */
.svcv-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: clamp(3.5rem, 9vh, 7rem) var(--gutter) clamp(4rem, 10vh, 7.5rem);
  border-top: 1px solid var(--frame);
}
.svcv-cta-title {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
  margin: 0;
}
.svcv-cta-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
  max-width: 40rem;
}
.svcv-cta-btn { margin-top: 1.1rem; }

/* ── scroll reveal (class added by ServicesSections' script; never applied
      under prefers-reduced-motion, so content stays visible there) ── */
.svcv-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.svcv-reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* ── hero scroll cue ── */
.hero-scroll-cue {
  /* centred at the hero's bottom edge (the corner industries grid sits to its
     left, so it stays decoupled) */
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  width: 3.4rem;
  height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.7;
  transition: color 0.25s, opacity 0.25s;
  animation: heroCueDrift 3s ease-in-out infinite;
}
.hero-scroll-cue:hover { color: var(--cyan); opacity: 1; }
.hero-scroll-cue svg { width: 2.4rem; height: 2.4rem; }

/* Desktop: the enlarged scroll cue is the "continue" affordance, so the
   Learn More button is redundant. (Kept on mobile, where the cue is small.) */
@media (min-width: 1000px) {
  .hero-cta { display: none; }
}
@keyframes heroCueDrift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; }
}

/* ── drawing-sheet hairline rules (shared by hero proof strip + rows + proc) ── */
.svcv-rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.svcv-rule-idx {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.svcv-rule-line {
  flex: 1;
  border-top: 1px solid var(--frame);
  min-width: 2rem;
}
.svcv-rule-plus {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--muted);
  opacity: 0.55;
  flex-shrink: 0;
}
/* the rule draws in once its section reveals */
.svcv-reveal .svcv-rule-line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
}
.svcv-reveal.is-inview .svcv-rule-line { transform: scaleX(1); }

/* ── hero proof strip ── */
.hero-stats {
  margin-top: auto;
  padding-top: clamp(1.4rem, 3vh, 2.2rem);
  padding-bottom: 2.6rem;
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.5vh, 1.7rem);
  position: relative;
  z-index: 2;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}
.hero-stat { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.hero-stat-num {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero-stat-cap {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 17rem;
}
@media (max-width: 999px) {
  .hero-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── how an engagement runs ── */
.svcv-proc {
  margin-top: clamp(3.5rem, 9vh, 6.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3.5vh, 2.4rem);
}
.svcv-proc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.8rem);
}
.svcv-proc-step {
  border-top: 1px solid var(--frame);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.svcv-proc-num {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.svcv-proc-head {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.svcv-proc-note {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}
.svcv-trust {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 60rem;
}
@media (max-width: 999px) {
  .svcv-proc-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ── CTA drawing-frame box ── */
.svcv-cta-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--frame);
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 52rem;
  width: 100%;
}
.svcv-corner {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--muted);
  opacity: 0.7;
  /* the register mark sits centred on the box corner */
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #0c0c0e);
}
html[data-theme='light'] .svcv-corner { background: var(--panel); }
.svcv-corner.tl { top: -0.5em; left: -0.5em; }
.svcv-corner.tr { top: -0.5em; right: -0.5em; }
.svcv-corner.bl { bottom: -0.5em; left: -0.5em; }
.svcv-corner.br { bottom: -0.5em; right: -0.5em; }

/* ── section rail ── */
.page-rail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: calc(50% - var(--maxw) / 2 - 3.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  z-index: 40;
}
.page-rail::before {
  content: '';
  position: absolute;
  top: -1.1rem;
  bottom: -1.1rem;
  left: 4px;
  width: 1px;
  background: var(--frame);
}
.rail-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.75;
  transition: color 0.25s, opacity 0.25s;
}
.rail-tick {
  display: block;
  width: 9px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s, height 0.25s;
}
.rail-label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.22s, transform 0.22s;
}
.rail-node:hover { color: var(--text); opacity: 1; }
.rail-node:hover .rail-label { opacity: 1; transform: none; }
.rail-node.active { color: var(--cyan); opacity: 1; }
.rail-node.active .rail-tick { width: 14px; height: 2px; }
.rail-node.active .rail-label { opacity: 1; transform: none; }
@media (max-width: 1400px) { .page-rail { display: none; } }

/* ── frame hover: the screen lifts to meet the pointer ── */
.svcv-frame {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.35s, box-shadow 0.35s;
}
.svcv-frame:hover {
  transform: translateY(-3px);
  border-color: var(--tile-border-hover);
  box-shadow: 0 26px 54px -26px rgba(0, 0, 0, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .svcv-frame, .svcv-frame:hover { transform: none; }
}

/* Hero bottom block — a single grid holding the Powered-by row and the
   industries grid, so both share the same columns: Claude Code lines up under
   column 1 (Mining/Utilities), OpenAI Codex under column 2. Pushed low. */
/* Powered-by pinned to the hero's bottom-left (margin-top:auto pushes it down;
   hero-copy fills the hero height on desktop). */
.hero-powered {
  margin: auto 0 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.hero-powered-label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-powered-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.hero-powered-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--body);
  white-space: nowrap;
}
.hero-powered-ico {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--muted);
}

/* ── industries band (full-width, between hero and services) ── */
.industries-band {
  border-top: 1px solid var(--frame);
  border-bottom: 1px solid var(--frame);
  padding: clamp(1.6rem, 3.6vh, 2.6rem) clamp(1.25rem, 4vw, 3rem);
}
.ib-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.ib-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 0.2rem clamp(0.5rem, 1.5vw, 1.25rem);
}
.ib-item + .ib-item { border-left: 1px solid var(--frame); }
.ib-ico {
  width: clamp(1.7rem, 2.4vw, 2.2rem);
  height: clamp(1.7rem, 2.4vw, 2.2rem);
  color: var(--cyan);
}
.ib-label {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(0.98rem, 1.3vw, 1.15rem);
  letter-spacing: -0.01em;
  color: var(--body);
}
@media (max-width: 999px) {
  .ib-list { grid-template-columns: repeat(3, 1fr); }
  .ib-item:nth-child(3n + 1) { border-left: none; }
  .ib-item:nth-child(n + 4) {
    border-top: 1px solid var(--frame);
    padding-top: clamp(1.2rem, 3vh, 1.8rem);
  }
  .ib-item:nth-child(-n + 3) { padding-bottom: clamp(1.2rem, 3vh, 1.8rem); }
}

/* In the hero's bottom-left corner: a simple vertical list — icon left, label
   right — over the chart (transparent, the sawtooth runs behind). No gridlines. */
.industries-band.in-hero {
  position: relative;
  z-index: 2;
  align-self: flex-start;   /* left, not full width */
  margin: clamp(2.5rem, 7vh, 4.5rem) 0 0;   /* gap below the lede — sits lower-middle */
  border: none;
  background: transparent;
  padding: 0;
  width: max-content;
  max-width: 100%;
}
.industries-band.in-hero .ib-list {
  display: grid;
  /* fixed tracks, shared with the tools strip above, so the two lists' columns
     line up despite different label widths */
  grid-template-columns: 12rem 12rem;
  gap: 1.15rem 2.4rem;   /* generous row / column spacing */
}
.industries-band.in-hero .ib-item {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 0;
  border: none;
  text-align: left;
}
.industries-band.in-hero .ib-item + .ib-item { border-left: none; }
.industries-band.in-hero .ib-ico {
  width: 1.55rem;
  height: 1.55rem;
  flex: none;
  /* cyan, softened toward grey so it reads without shouting */
  color: color-mix(in srgb, var(--cyan) 72%, var(--muted));
}
.industries-band.in-hero .ib-label {
  font-size: 1.08rem;
  font-family: 'Alliance No 2 Mix', 'Alliance No 2', var(--font-heading);
  font-weight: 300;
}

/* The tools strip sits above the industries list in the same vocabulary — same
   icon+label row, one column, with a hairline rule separating the two groups. */
.industries-band.in-hero.ib-tools { padding-bottom: 0; }
.industries-band.in-hero.ib-tools + .industries-band.in-hero { margin-top: clamp(1.5rem, 3.4vh, 2.2rem); }
.ib-head {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}
.ib-label .ib-label-em { color: var(--cyan); }

/* run counter, baseline-aligned with the Learn more button at the hero's right edge */
.hero-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; align-self: stretch; width: 100%; }
.hero-trial {
  margin-left: auto;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.hero-trial-n {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

/* ── type polish: a touch more scale on the row titles ── */
.svcv-copy-name { font-size: clamp(1.55rem, 3.1vw, 2.5rem); }

/* footer © line: one size on every page and width, a step up (20 Nov 2026) */
html .hero-footer .foot-copy, html .foot-copy { font-size: 0.86rem !important; letter-spacing: 0.12em !important; }

/* Japanese: body copy stays Light (300); the 400 step-up is for Latin text only (20 Nov 2026) */
html[lang='ja'] body,
html[lang='ja'] .svcv-narr-p, html[lang='ja'] .svc-prose .svcv-narr-p:first-child, html[lang='ja'] .pr-para, html[lang='ja'] .pr-bio, html[lang='ja'] .pr-cols p:not(.pr-role), html[lang='ja'] .contact-lead, html[lang='ja'] .contact-include li, html[lang='ja'] .hero-chartnote,
html[lang='ja'] .research-article p:not(.research-standfirst), html[lang='ja'] .research-article li, html[lang='ja'] .research-article td, html[lang='ja'] .research-article figcaption { font-weight: 300 !important; }

/* language switcher: Japanese named in its own script (日本語), set in a Japanese face, no caps tracking (21 Nov 2026) */
html button[data-lang="ja"], html .lang-option[data-lang="ja"] .nav-popover-prefix, html .nav-drawer-lang[data-lang="ja"] .nav-drawer-lang-code {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Noto Sans JP', sans-serif !important;
  letter-spacing: 0.06em !important; text-transform: none !important; font-size-adjust: none !important; font-weight: 400 !important;
}
html .d-langs .m-lang[data-lang="ja"], html .r-langs .r-lang[data-lang="ja"], html .m-swap-langs .m-lang[data-lang="ja"] { white-space: nowrap !important; flex: none !important; font-size: 0.8rem !important; width: auto !important; min-width: 0 !important; padding: 0 0.425rem !important; }

/* light mode preview switch: without it (every visitor) the DARK / LIGHT control is not shown (21 Nov 2026) */
html:not(.jm-light-on) #themeToggle, html:not(.jm-light-on) .jm-tpair { display: none !important; }
/* desktop nav spacing (21 Nov 2026): EN and 日本語 closer as a pair; Research and Contact closer to them */
@media (min-width: 1000px) {
  html header.nav .d-langs .m-lang[data-lang="en"], html header.nav .r-langs .r-lang[data-lang="en"] { padding-right: 0.15rem !important; }
  html header.nav .d-langs .m-lang[data-lang="ja"], html header.nav .r-langs .r-lang[data-lang="ja"] { padding-left: 0.3rem !important; }
  html .nav-right #researchSelect { margin-right: -0.3rem !important; }
  html:not(.jm-light-on) .nav-right .d-langs { margin-right: 0.12rem; }
}
/* phone-ground:start (generated, see phoneground.py) */
@media (max-width: 999px){
:root{--color-bg: #1c2024}
:root{--bg: #1c2024}
#langFade{background: var(--bg, #1c2024)}
header.nav{/* solid, no backdrop blur: Chrome re-samples a blurred fixed header as
     reveal-animated content passes under it, which flashes a frame */
  background: #1c2024}
.hero-chart-scrim{background: linear-gradient(90deg,
    rgba(28, 32, 36,0.9) 0%,
    rgba(28, 32, 36,0.55) 34%,
    rgba(28, 32, 36,0.05) 64%,
    rgba(28, 32, 36,0) 100%)}
.msg-input:-webkit-autofill,
.msg-input:-webkit-autofill:hover,
.msg-input:-webkit-autofill:focus{box-shadow: 0 0 0 1000px #1c2024 inset;-webkit-box-shadow: 0 0 0 1000px #1c2024 inset;background-color: #1c2024 !important}
}
/* phone-ground:end */
/* ── Logo, 22 Nov 2026 ──
   JOURNEYMRO in all caps, set in 'JM Logo': Chakra Petch Regular with its cut corners softened and a straight-leg R,
   plus the original J thickened to match. The page text stays "JourneyMRO"; CSS capitalises it.
   The J on its own (Research, articles, reviews) uses the same font and size. */
html .nav .wordmark, html .nav .wordmark .mark-j, html .nav .wordmark .mark-tail, html .nav .wordmark .mark-name {
  font-family: 'JM Logo', 'JM Wordmark', 'Alliance No 2 Mix', 'Alliance No 2', sans-serif; font-weight: 400; letter-spacing: 0.10em; }
html .nav .wordmark { font-size: 1.3rem; }
html .wordmark .mark-tail { text-transform: uppercase; }

/* ── Phones, tablets and any touch screen: the page body is NOT given its own picture for a page change (22 Nov 2026) ──
   An element with a view-transition-name is photographed whole. The article and the reviews are 8,000 to 10,000 px tall: at an iPhone's 3x
   that is a 24,000 to 29,000 px image, more than the graphics system can hold, and it blacked out the whole phone (iPhone Air).
   Left unnamed, the body is part of the page picture, which is only ever the size of the screen.
   Never name a tall element for a transition on these devices. iPads in landscape are 1000px or wider, hence the touch-screen test. */
@media (max-width: 999px), (hover: none) and (pointer: coarse) {
  html:root .shell, html:root [style*="jm-page"] { view-transition-name: none !important; }
}

/* ── Phones and tablets: changing page (22 Nov 2026) ──
   The top bar keeps its ground and hairline, the J never moves or blinks, and the rest changes around it:
   leaving Home, OURNEYMRO fades away beside the J and RESEARCH fades in; EN / 日本語 stay where they are.
   Home has the reverse (the wordmark fades back in beside the J), set in index.html. */
@media (max-width: 999px) {
  /* the logo a little smaller on phones and tablets: 1.15rem against 1.3rem on desktop; the J on the other pages matches */
  html .nav .wordmark { font-size: 1.15rem; }
  html:root::view-transition-group(jm-nav) { z-index: 4; background: linear-gradient(to bottom, #1c2024 calc(100% - 1px), #424548 0); }
  html:root::view-transition-old(jm-nav) { animation: jm-ph-out 0.14s ease both; }
  html:root::view-transition-new(jm-nav) { animation: jm-ph-in 0.18s ease 0.06s both; }
  /* the page itself: the old page stays on screen until the new one has rendered (html.jm-vt-live, set by the script in each page's head, 3 s at most), and the new page is then shown live.
     Without this the old page faded to an empty dark screen while the new one was still being built. */
  html:root::view-transition-old(jm-page), html:root::view-transition-old(root) { animation: jm-ph-out 0.25s ease both; }
  html:root::view-transition-new(jm-page), html:root::view-transition-new(root) { animation: jm-ph-in 0.3s ease both; }
  html.jm-vt-live:root::view-transition-old(jm-page), html.jm-vt-live:root::view-transition-old(root) { animation: jm-ph-keep 3.2s linear both; }
  html.jm-vt-live:root::view-transition-new(jm-page), html.jm-vt-live:root::view-transition-new(root) { animation: jm-ph-hide 3.2s linear both; }
  /* each page ends the change itself as soon as it has rendered (script in the page head), so the cross-fade above is only the fallback */
  html:root::view-transition-group(jm-j), html:root::view-transition-group(jm-r), html:root::view-transition-group(jm-crumbs), html:root::view-transition-group(jm-langs) { z-index: 6; animation-duration: 0.24s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  /* only one J is drawn at a time (two overlapping made it look bold): the new J is there from the start, and the old picture has its J cut off
     (0.8rem), so only OURNEYMRO fades away. Fades, not wipes: a fade keeps running smoothly while the new page is being rendered, a wipe freezes. */
  html:root::view-transition-new(jm-j) { animation: none; opacity: 1; mix-blend-mode: normal; }
  html:root::view-transition-old(jm-j) { clip-path: inset(0 0 0 0.8rem); animation: jm-ph-out 0.18s ease both; mix-blend-mode: normal; }
  html:root::view-transition-new(jm-r):only-child, html:root::view-transition-new(jm-crumbs):only-child { animation: jm-ph-in 0.16s ease 0.1s both; }
  html:root::view-transition-old(jm-r):only-child, html:root::view-transition-old(jm-crumbs):only-child { animation: jm-ph-out 0.1s ease both; }
  html:root::view-transition-new(jm-langs):only-child { animation: jm-ph-in 0.18s ease 0.06s both; }
  html:root::view-transition-old(jm-langs):only-child { animation: jm-ph-out 0.15s ease both; }
}
@keyframes jm-ph-out { to { opacity: 0; } }
@keyframes jm-ph-keep { from { opacity: 1; } to { opacity: 1; } }
@keyframes jm-ph-hide { from { opacity: 0; } to { opacity: 0; } }
@keyframes jm-ph-in { from { opacity: 0; } }
@media (max-width: 999px) and (prefers-reduced-motion: reduce) { html:root::view-transition-group(*), html:root::view-transition-old(*), html:root::view-transition-new(*) { animation: none !important; } }
