/* ==========================================================================
   MultiD Analyses – site styles
   Tokens come from the MultiD logo: navy, magenta and the cyan orbit.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}

:root {
  --navy: #14205a;
  --navy-deep: #0c143f;
  --magenta: #91004e;
  --magenta-dark: #6f003c;
  --cyan: #008fdf;
  --cyan-soft: #7cc9f2;
  --paper: #f4f6fa;
  --white: #ffffff;
  --line: #d8deea;
  --text: #1b2445;
  --muted: #545e78;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  --step-5: clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  font-feature-settings: "tnum" 0;
}
img, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--magenta); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--magenta-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; color: var(--navy); font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: var(--step-5); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: var(--step-4); letter-spacing: -0.025em; }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-tint { background: var(--paper); }
.section-dark { background: var(--navy); color: #dfe5f5; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a:not(.btn) { color: var(--cyan-soft); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.section-dark .lede { color: #c5cde6; }
.measure { max-width: 40rem; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; font-size: var(--step-0); line-height: 1.2;
  padding: .85em 1.35em; border-radius: var(--radius);
  background: var(--magenta); color: var(--white); border: 2px solid var(--magenta);
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.section-dark .btn-ghost, .hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-small { padding: .55em 1em; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand img { width: 119px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: .5rem .75rem; color: var(--text); text-decoration: none; font-weight: 550; border-radius: var(--radius); }
.site-nav ul a:hover { color: var(--magenta); }
.site-nav ul a[aria-current="page"] { color: var(--magenta); box-shadow: inset 0 -2px 0 var(--magenta); border-radius: 0; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem; font: inherit; font-weight: 600;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; color: var(--navy); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; gap: .75rem; }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .75rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav ul a[aria-current="page"] { box-shadow: none; }
  .site-nav .btn { align-self: flex-start; }
}

/* ---------- Hero with fragment canvas ---------- */
.hero { position: relative; background: var(--navy-deep); color: #d9e0f3; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { padding: clamp(4rem, 10vw, 8rem) 0 clamp(4.5rem, 11vw, 9rem); max-width: 40rem; }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero .lede { color: #c6cfea; }
.hero-caption { position: absolute; right: 6vw; bottom: 1.1rem; font-size: 0.8rem; line-height: 1.4; color: #8e9ac0; width: 42vw; max-width: 34rem; text-align: right; margin: 0; }
@media (max-width: 760px) {
  .hero-inner { padding-bottom: 17rem; }
  .hero-caption { left: var(--gutter); right: var(--gutter); width: auto; text-align: left; }
}

/* Inner page heading band */
.page-head { background: var(--navy-deep); color: #d2daf0; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; isolation: isolate; }
.page-head h1 { color: var(--white); font-size: var(--step-4); max-width: 20ch; }
.page-head .lede { color: #c2cbe6; }
.page-head .hero-canvas { opacity: .55; }

/* ---------- Fragment spotlight (home) ---------- */
.spotlight { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.spotlight-figure { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.spotlight-figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .75rem; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.facts li { padding-left: 1.4rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 3px; border-radius: 2px; background: var(--cyan); }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } }

/* fragment feature diagram */
.frag-diagram text { font-family: var(--font); font-size: 13px; fill: var(--muted); }
.frag-diagram .lbl-strong { fill: var(--navy); font-weight: 650; }

/* ---------- Track list (home) ---------- */
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracks li { border-bottom: 1px solid var(--line); }
.track-link { display: grid; grid-template-columns: minmax(12rem, 22rem) 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; text-decoration: none; color: var(--text); }
.track-link h3 { margin: 0; font-size: var(--step-2); transition: color .15s; }
.track-link p { margin: 0; color: var(--muted); }
.track-link .count { color: var(--muted); font-size: var(--step--1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.track-link:hover h3 { color: var(--magenta); }
.track-link:hover { color: var(--text); }
.tracks li.is-featured .track-link h3 { color: var(--magenta); }
@media (max-width: 760px) { .track-link { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- Service explorer ---------- */
.track-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.track-tab {
  font: inherit; font-weight: 600; padding: .65rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--navy);
}
.track-tab:hover { border-color: var(--navy); }
.track-tab[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.no-js .track-tabs { display: none; }

.track-panel + .track-panel { margin-top: 4rem; }
.js .track-panel[hidden] { display: none; }
.track-panel > h2 { font-size: var(--step-3); margin-bottom: .3em; }
.js .track-panel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.track-summary { color: var(--muted); font-size: var(--step-1); max-width: 44rem; margin-bottom: 2.5rem; }

.pipeline {
  --cols: 4; --progress: 0;
  list-style: none; margin: 0; padding: 0; counter-reset: stage;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0 1.5rem;
  position: relative;
}
/* the line the stations sit on; it fills to the selected stage */
.pipeline::before, .pipeline::after {
  content: ""; position: absolute; left: 0; top: 1.05rem; height: 4px; border-radius: 4px;
}
.pipeline::before { right: 0; background: var(--line); }
.pipeline::after {
  width: calc(var(--progress) * 1%); background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width .6s cubic-bezier(.3,.7,.2,1);
}
.station { position: relative; counter-increment: stage; padding-top: 3.25rem; }
.station-marker {
  position: absolute; top: 0; left: 0; width: 2.35rem; height: 2.35rem; border-radius: 50%;
  background: var(--white); border: 3px solid var(--line); z-index: 1;
  display: grid; place-items: center; font-weight: 700; font-size: var(--step--1); color: var(--muted);
  transition: border-color .3s, background-color .3s, color .3s;
}
.station-marker::before { content: counter(stage); }
.station.is-reached .station-marker { border-color: var(--cyan); color: var(--navy); }
.station.is-active .station-marker { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.station h3 { font-size: var(--step-0); margin: 0 0 .75rem; color: var(--navy); }
.station ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.svc-btn {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--cyan);
  border-radius: 4px; padding: .7rem .85rem; color: var(--text);
  transition: border-color .15s, background-color .15s;
}
.svc-btn strong { display: block; font-weight: 650; color: var(--navy); line-height: 1.3; }
.svc-btn span { display: block; font-size: var(--step--1); color: var(--muted); line-height: 1.45; margin-top: .25rem; }
.svc-btn:hover { border-color: var(--navy); border-left-color: var(--magenta); }
.svc-btn[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); border-left-color: var(--magenta); }
.svc-btn[aria-expanded="true"] strong { color: var(--white); }
.svc-btn[aria-expanded="true"] span { color: #c3cbe6; }

/* Detail panel */
.svc-detail { margin-top: 2rem; }
.js .svc-detail:empty { display: none; }
.svc-article { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem 3rem; position: relative; }
.js .svc-article { animation: detail-in .35s cubic-bezier(.3,.7,.2,1); }
@keyframes detail-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.svc-article h3 { font-size: var(--step-2); grid-column: 1 / -1; margin-bottom: 0; }
.svc-article .svc-stage { grid-column: 1 / -1; color: var(--muted); font-size: var(--step--1); margin: -0.5rem 0 0; order: -1; }
.svc-article .svc-body p { margin: 0 0 1rem; }
.svc-article .svc-get h4 { font-size: var(--step-0); margin-bottom: .5rem; }
.svc-article .svc-get ul { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: .4rem; }
.svc-article .svc-get li { padding-left: 1.3rem; position: relative; }
.svc-article .svc-get li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--cyan); }
.svc-close { position: absolute; top: .9rem; right: .9rem; font: inherit; font-size: var(--step--1); background: none; border: 0; color: var(--muted); cursor: pointer; padding: .35rem .5rem; text-decoration: underline; }
.no-js .svc-close { display: none; }
.no-js .svc-detail { display: grid; gap: 1rem; }
@media (max-width: 760px) { .svc-article { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; gap: 0; padding-left: 3.25rem; }
  .pipeline::before { left: 1.05rem; top: 0; bottom: 0; width: 4px; height: auto; right: auto; }
  .pipeline::after { left: 1.05rem; top: 0; width: 4px; height: calc(var(--progress) * 1%); transition: height .6s cubic-bezier(.3,.7,.2,1); }
  .station { padding: 0 0 2rem; }
  .station-marker { left: -3.25rem; top: -.35rem; }
  .station h3 { padding-top: .2rem; }
  .station .svc-detail { margin-top: 1rem; }
}

/* ---------- Process (fragmentomics page) ---------- */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.process li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.process li::before { content: counter(step); font-size: var(--step-3); font-weight: 750; color: var(--cyan); line-height: 1; font-variant-numeric: tabular-nums; }
.process h3 { margin-bottom: .3rem; }
.process p { margin: 0; color: var(--muted); max-width: 46rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; list-style: none; padding: 0; margin: 0; }
.feature-list h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.feature-list p { color: var(--muted); margin: 0; }
.feature-list .glyph { width: 56px; height: 28px; margin-bottom: .9rem; }

.callout { border-left: 4px solid var(--magenta); padding: .25rem 0 .25rem 1.5rem; margin: 2rem 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Customers marquee ---------- */
.customers { overflow: hidden; padding: 2rem 0 0; }
.customers-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 70s linear infinite; }
.customers:hover .customers-track { animation-play-state: paused; }
.customers-set { display: flex; gap: 3.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.customers img { height: 52px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.75rem)); } }
@media (prefers-reduced-motion: reduce) {
  .customers-track { animation: none; width: auto; }
  .customers-set { flex-wrap: wrap; justify-content: center; gap: 2rem 2.5rem; }
  .customers-set[aria-hidden="true"] { display: none; }
}

/* ---------- Why MultiD ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.why li { border-top: 3px solid var(--magenta); padding-top: 1.25rem; }
.why h3 { margin-bottom: .4rem; }
.why p { margin: 0; color: var(--muted); }
.section-dark .why p { color: #c5cde6; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Products ---------- */
.product-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; margin: 0; padding: 0; }
.product-strip a { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: center; text-decoration: none; color: var(--text); }
.product-strip img { width: 96px; }
.product-strip h3 { margin: 0 0 .2rem; transition: color .15s; }
.product-strip p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.product-strip a:hover h3 { color: var(--magenta); }
@media (max-width: 860px) { .product-strip { grid-template-columns: 1fr; } }

.product { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); padding: var(--section) 0; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.product:first-of-type { border-top: 0; }
.product-media img { width: 240px; }
.product h2 { margin-bottom: .15em; }
.product .tagline { color: var(--magenta); font-weight: 600; font-size: var(--step-1); margin-bottom: 1.25rem; }
.product-text { max-width: 44rem; }
.feature-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; }
.feature-grid li { background: var(--paper); border-radius: var(--radius); padding: 1rem; }
.feature-grid img { width: 72px; height: 72px; margin-bottom: .6rem; }
.feature-grid h3 { font-size: var(--step-0); margin: 0 0 .25rem; }
.feature-grid p { margin: 0; font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .product-media img { width: 160px; }
}

/* ---------- Resources ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; }
.video-grid figure { margin: 0; }
.video-grid video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.video-grid figcaption { margin-top: .6rem; font-weight: 600; color: var(--navy); }

.webinars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem 1.5rem; }
.webinar { display: flex; flex-direction: column; }
.webinar .frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); position: relative; }
.webinar .frame img { width: 100%; height: 100%; object-fit: cover; }
.webinar .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; font: inherit; color: var(--white);
  background: radial-gradient(circle at 30% 30%, #24357f, var(--navy-deep));
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 1rem; text-align: left;
}
.yt-play::before {
  content: ""; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--magenta);
  clip-path: none; box-shadow: 0 0 0 6px rgba(255,255,255,.12);
}
.yt-play::after {
  content: ""; position: absolute; left: calc(50% + 3px); top: 42%; transform: translate(-50%, -50%);
  border-style: solid; border-width: .6rem 0 .6rem 1rem; border-color: transparent transparent transparent var(--white);
}
.yt-play:hover::before { background: var(--magenta-dark); }
.yt-play small { color: #b8c2e3; font-size: .78rem; position: relative; }
.webinar h3 { font-size: var(--step-0); margin: .8rem 0 .2rem; }
.webinar p { margin: 0; color: var(--muted); font-size: var(--step--1); }

.pub-group + .pub-group { margin-top: 2.5rem; }
.pub-group h3 { font-size: var(--step-1); }
.pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pubs li { border-bottom: 1px solid var(--line); }
.pubs a { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: .9rem 0; text-decoration: none; color: var(--text); align-items: baseline; }
.pubs a:hover { color: var(--magenta); }
.pubs .kind { font-size: var(--step--1); color: var(--muted); white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1px solid #b9c2d6; border-radius: 4px; padding: .7rem .8rem;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: var(--step--1); margin: .35rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--muted); margin: 0; }
.notice { border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.notice h2 { font-size: var(--step-1); margin-bottom: .3rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { background: #e6f4ee; border-left: 4px solid #1d7a4f; }
.notice-ok h2 { color: #135b3a; }
.notice-error { background: #fcebea; border-left: 4px solid #b3261e; }
.notice-error h2 { color: #8c1d18; }
.contact-aside h2 { font-size: var(--step-1); margin-top: 2rem; }
.contact-aside h2:first-child { margin-top: 0; }

/* ---------- Career ---------- */
.empty-state { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 46rem; }
.empty-state h2 { font-size: var(--step-2); }
.past-roles { margin-top: 3rem; max-width: 46rem; }
.past-roles details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.past-roles summary { cursor: pointer; font-weight: 650; color: var(--navy); }
.past-roles .status { color: var(--muted); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b7c1df; padding: 4rem 0 2rem; font-size: var(--step--1); }
.site-footer a { color: #dfe5f6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { background: var(--white); padding: .5rem .75rem; border-radius: 4px; width: 140px; margin-bottom: 1rem; }
.footer-about p { max-width: 18rem; }
.footer-heading { font-size: var(--step--1); color: var(--white); font-weight: 650; margin-bottom: .6rem; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- CTA band ---------- */
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-band h2 { margin: 0 0 .3rem; font-size: var(--step-3); }
.cta-band p { margin: 0; color: #c5cde6; max-width: 36rem; }
.cta-band .btn-row { margin-top: 0; }

/* Prose pages */
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }

/* scroll targets clear the sticky header */
.station, .svc-article, [id] { scroll-margin-top: 5.5rem; }
.svc-article .svc-stage { padding-right: 4rem; }
@media (max-width: 760px) { .page-head .hero-canvas { display: none; } }
