/* =============================================================
   Cosmo Textile — main stylesheet
   Plain CSS, design-token driven. No build step.
   Sections: tokens · reset · type · layout · header · footer
   buttons · sections · cards · marquee · forms · motion · utils
   ============================================================= */

/* ---------- tokens ---------- */
:root {
  --navy: #0a2a4a;
  --navy-700: #0f3a63;
  --navy-deep: #071e37;
  --cyan: #00a0e3;
  --cyan-ink: #0077ab;
  --ochre: #c9a227;
  --ochre-deep: #a3801c;
  --ochre-ink: #806414;   /* gold for small text on paper: 4.6:1+ on both paper tones (ochre-deep is large/display only) */
  --paper: #faf8ef;
  --paper-warm: #f2e9d0;
  --card: #ffffff;
  --ink: #16202b;
  --ink-soft: #45535f;
  --line: #e2dbcd;
  --line-strong: #d3c9b5;

  --maxw: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --radius: 22px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(7, 30, 55, .06), 0 6px 18px rgba(7, 30, 55, .06);
  --shadow-md: 0 12px 40px rgba(7, 30, 55, .12);
  --shadow-lg: 0 30px 80px rgba(7, 30, 55, .18);

  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.82rem, .78rem + .2vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2: clamp(1.4rem, 1.24rem + .8vw, 1.95rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.15rem, 1.7rem + 2.2vw, 3.5rem);
  --step-5: clamp(2.5rem, 1.9rem + 3vw, 4.3rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .7s;

  --header-h: 78px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
/* native smooth-scroll only when Lenis is NOT driving (reduced-motion / no JS) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* ---------- Lenis smooth-scroll (v1.1.14 ships no CSS of its own) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ochre); color: #fff; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { max-width: 68ch; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ochre-ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }
.text-serif { font-family: var(--font-display); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* large desktop monitors: use more of the screen instead of a narrow centre column */
@media (min-width: 1600px) { :root { --maxw: 1360px; } }
.wrap--narrow { max-width: 880px; }
.section { padding-block: clamp(3.5rem, 7vw, 6.25rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper-warm { background: var(--paper-warm); }
.section--navy { background: var(--navy); color: #eaf1f7; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy .lede { color: #b7c6d4; }
.section--navy .eyebrow { color: var(--ochre); }

.grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .grid--3.grid--keep2, .grid--4.grid--keep2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3.grid--keep2, .grid--4.grid--keep2 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split > *, .grid > *, .hero__inner > *, .footer-grid > * { min-width: 0; }
.split--media-first .split__media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--media-first .split__media { order: 0; } }

.stack > * + * { margin-top: 1.15rem; }
.stack-sm > * + * { margin-top: .55rem; }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* thread motif divider */
.threadline { height: 2px; border: 0; background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 14px, transparent 14px 26px); opacity: .8; }

/* grain overlay — no mix-blend-mode: a full-viewport blended fixed layer forces the
   browser to re-composite the whole screen on every scroll frame (scroll jank). */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .45s var(--ease), background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header--solid {
  background: rgba(250, 248, 239, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1.5px 0 var(--ochre), 0 10px 30px rgba(7, 30, 55, .07);
}
.site-header--hidden { transform: translateY(-102%); }

.brand { display: flex; align-items: center; flex-shrink: 0; color: #073865; }
.brand__mark { height: 34px; width: auto; flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav a {
  font-size: .95rem; font-weight: 500; color: var(--navy);
  position: relative; padding-block: .4rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--ochre);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ochre-ink); }
.nav__more { display: none; }
@media (max-width: 1000px) { .nav__more { display: block; } }

.header-cta { display: flex; align-items: center; gap: .9rem; }
.header-cta .btn { white-space: nowrap; }
@media (max-width: 480px) { .header-cta { gap: .6rem; } .header-cta .btn { padding: .7rem 1.05rem; font-size: .88rem; } }
/* smallest phones: logo + button + menu don't fit; the quote link stays in the hero and the menu */
@media (max-width: 360px) { .header-cta .btn { display: none; } }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--line-strong);
  border-radius: 50%; background: var(--card); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s ease;
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: 90;
    flex-direction: column; justify-content: center;
    gap: 1.4rem;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    padding: 6rem var(--gutter) 3rem;
  }
  .nav a { font-size: 1.5rem; font-family: var(--font-display); }
  body.menu-open .nav { transform: translateX(0); }
  /* logo and the open/close button stay above the full-screen menu */
  .site-header .brand, .header-cta { position: relative; z-index: 95; }
  /* an open menu needs the header in place: transform or backdrop-filter would trap the fixed .nav inside the header strip */
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { transform: none; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-cta .btn--ghost { display: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9bccb; padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; }
.site-footer a { color: #d7e2ec; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li + li { margin-top: .6rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand__mark { height: 46px; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8ba0b1; }
/* keep the last line clear of the fixed back-to-top button on phones */
@media (max-width: 560px) { .footer-bottom { padding-right: 4rem; } }

.footer-marquee { border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; padding-block: 1.1rem; margin-bottom: 3rem; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: var(--radius-pill);
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }
/* fine-lined gold: an outline, not a fill — border carries the accent */
.btn--accent, .btn--cyan { --bg: transparent; --fg: var(--ochre-ink); border-color: var(--ochre); border-width: 1.5px; }
.btn--accent:hover, .btn--cyan:hover { background: rgba(201, 162, 39, .08); }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.section--navy .btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.35); }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy); }
.section--navy .btn--accent, .section--navy .btn--cyan { --fg: var(--ochre); }
.section--navy .btn--accent:hover, .section--navy .btn--cyan:hover { background: rgba(201, 162, 39, .14); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.02rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ochre-ink); }
.link-arrow svg { width: 1.1em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(1.5rem, 5vw, 3.5rem)); padding-bottom: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--step-5); font-weight: 500; line-height: 1.04; max-width: 15ch; }
@media (min-width: 1600px) { .hero h1 { font-size: 4.9rem; } }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--ochre-deep); }
.hero__media { position: relative; }
/* shadow on the wrapper, not the transformed <img>, so parallax doesn't repaint the blur */
.hero__media [data-parallax] { border-radius: var(--radius); box-shadow: var(--shadow-lg); will-change: transform; }
.hero__media img { border-radius: var(--radius); width: 100%; object-fit: cover; object-position: center 72%; aspect-ratio: 4 / 5; }
@media (max-width: 960px) { .hero__media img { aspect-ratio: 16 / 11; } }
.hero__media picture { display: block; border-radius: var(--radius); overflow: hidden; }
.hero__media::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none; background: linear-gradient(180deg, rgba(10, 42, 74, .16), transparent 26%, transparent 62%, rgba(10, 42, 74, .14)); transition: opacity .9s var(--ease); }
/* hide the tint overlay until the photo has unrolled (set by main.js) */
.hero__media.is-revealing::after { opacity: 0; }
/* pre-paint state, set by an inline script in index.html <head> so the photo never flashes before main.js runs */
.hero-pending .hero__media picture { clip-path: inset(0% 0% 100% 0% round 22px); }
.hero-pending .hero__media [data-parallax] { box-shadow: none; }
.hero-pending .hero__media::after,
.hero-pending .hero__badge { opacity: 0; }
.hero__badge {
  position: absolute; left: -6%; bottom: 6%;
  background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: .95rem 1.15rem;
  display: flex; align-items: center; gap: .9rem; max-width: 268px;
}
.hero__badge b { font-family: var(--font-display); font-size: 1.9rem; color: var(--ochre-deep); line-height: 1; flex-shrink: 0; }
.hero__badge span { font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }
@media (max-width: 1180px) { .hero__badge { left: 3%; } }
@media (max-width: 480px) { .hero__badge { position: static; margin-top: 1rem; max-width: none; } }

.hero__marks { display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; margin-top: 2.4rem; align-items: center; }
.hero__marks span { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--ink-soft), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }
/* stacked hero on tablet/phone: the cue would sit on the photo badge */
@media (max-width: 960px) { .scroll-cue { display: none; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border-top: 2px solid var(--navy); padding-top: 1rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.stat__num .unit { font-size: .5em; color: var(--ochre); }
.stat__label { margin-top: .55rem; font-size: .9rem; color: var(--ink-soft); }
.section--navy .stat { border-color: var(--ochre); }
.section--navy .stat__num { color: #fff; }
.section--navy .stat__label { color: #a9c1d3; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid rgba(201, 162, 39, .35);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.1rem);
  height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ochre); }
.card__k { font-family: var(--font-display); font-size: 1.05rem; color: var(--ochre-ink); }
.card h3 { font-size: var(--step-1); margin: .6rem 0 .5rem; }
.card p { font-size: .96rem; color: var(--ink-soft); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-warm); display: grid; place-items: center; margin-bottom: 1rem; color: var(--navy); }
.card__icon svg { width: 24px; height: 24px; }

/* media card (products/capabilities) */
.mcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); display: block; }
.mcard img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.mcard:hover img { transform: scale(1.06); }
.mcard__body { position: absolute; inset: auto 0 0 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(7, 20, 37, .82)); color: #fff; }
.mcard__body h3 { color: #fff; font-size: var(--step-1); }
.mcard__body p { color: #cdd9e4; font-size: .9rem; margin-top: .3rem; }
.mcard__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.92); color: var(--navy); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; border-radius: var(--radius-pill); }

/* figure with rounded frame */
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: relative; background: var(--paper-warm); }
.figure img { width: 100%; object-fit: cover; }
.figure--tall img { aspect-ratio: 4 / 5; }
/* once stacked, a portrait photo would fill more than a screen before the text */
@media (max-width: 900px) { .figure--tall img { aspect-ratio: 4 / 3; } }
.figure--wide img { aspect-ratio: 16 / 10; }
.figure__cap { position: absolute; left: 1rem; bottom: 1rem; background: rgba(247,244,239,.94); color: var(--navy); font-size: .8rem; font-weight: 600; padding: .4rem .8rem; border-radius: var(--radius-pill); }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { border: 1px solid rgba(201, 162, 39, .4); border-radius: var(--radius-pill); padding: .5rem 1rem; font-size: .9rem; background: var(--card); color: var(--ink-soft); }
.section--navy .pill { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18); color: #d3e0ea; }

/* definition rows */
.deflist { border-top: 1px solid var(--line); }
.deflist div { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 600; color: var(--navy); }
.deflist dd { color: var(--ink-soft); }
@media (max-width: 620px) { .deflist div { grid-template-columns: 1fr; gap: .2rem; } }

/* numbered steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step-row { padding: 1.5rem 1.6rem 1.7rem; background: var(--card); border: 1px solid rgba(201, 162, 39, .35); border-radius: var(--radius); }
.step-row::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--ochre-deep); line-height: 1; display: block; margin-bottom: .6rem; }
.step-row h3 { font-size: var(--step-1); }
.step-row p { font-size: .93rem; color: var(--ink-soft); margin-top: .35rem; }

/* ---------- process: vertical scrollytelling ---------- */
.proc { position: relative; }
.proc__track { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.proc__panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.proc__panel:nth-child(even) .figure { order: 2; }
@media (max-width: 800px) { .proc__panel { grid-template-columns: 1fr; } .proc__panel:nth-child(even) .figure { order: 0; } }
.proc__panel .figure img { aspect-ratio: 4 / 3; }
.proc__step { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--ochre-ink); }
.proc__panel h3 { font-size: var(--step-2); margin: .15rem 0 .5rem; }
.proc__panel p { font-size: 1rem; color: var(--ink-soft); max-width: 46ch; }
.proc__num { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); color: var(--line-strong); line-height: 1; display: block; margin-bottom: .3rem; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 3.5rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee--slow .marquee__row { animation-duration: 55s; }
.marquee--rev .marquee__row { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__row { animation: none; flex-wrap: wrap; justify-content: center; } }
.marquee__row span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--navy); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee__row span::after { content: "✳"; color: var(--ochre); font-size: .6em; }
.footer-marquee .marquee__row span { color: #cfe0ec; }
.footer-marquee .marquee__row span::after { color: var(--ochre); }

/* client logo strip */
/* Spacing is a trailing margin (not flex gap) so every repeated set is exactly
   the same width and the -50% loop lands seamlessly; main.js repeats the set
   until one half spans the strip and sets the duration for a steady speed. */
.logos { display: flex; align-items: center; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .logos { animation-play-state: paused; }
.logos img {
  height: 44px; width: auto; box-sizing: content-box; flex: none;
  padding: 14px 26px; margin-right: 1.5rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .logos { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 1.5rem; }
  .logos img { margin-right: 0; }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .85rem 1rem; background: var(--card); width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 4px rgba(201, 162, 39, .14); }
.form__note { font-size: .82rem; color: var(--ink-soft); }
.form-success { background: #ecf7ee; border: 1px solid #bfe3c6; color: #1f6b33; padding: 1rem 1.2rem; border-radius: var(--radius-sm); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 95; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s var(--ease);
  border: none; cursor: pointer;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- page intro ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-head h1 { font-size: var(--step-4); max-width: 16ch; }
.breadcrumb { font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em; margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: var(--ochre-ink); }

/* ---------- world map (markets) ---------- */
.map-wrap { position: relative; background: var(--navy); border-radius: var(--radius); overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); }
.map-wrap svg { width: 100%; height: auto; }
/* country outlines: fine lines that stay ~1px however the map scales */
.map-land path { fill: rgba(255, 255, 255, .05); stroke: rgba(207, 224, 238, .32); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-land--target path { fill: rgba(201, 162, 39, .14); stroke: var(--ochre); stroke-width: 1.25; }
.map-land--live path { fill: rgba(0, 160, 227, .2); stroke: var(--cyan); stroke-width: 1.5; }
.map-labels { fill: #eaf2f9; font-weight: 600; paint-order: stroke; stroke: var(--navy); stroke-width: 4px; stroke-linejoin: round; }
.map-dot { fill: var(--cyan); }
.map-dot--target { fill: var(--ochre); }
.map-arc { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map-arc--target { stroke: var(--ochre); stroke-width: 1.5; stroke-dasharray: 6 6; }
.map-arc--live { stroke-width: 2.5; }
.map-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .85rem; color: #b7c6d4; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .5rem; }

/* ---------- motion / reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s var(--ease); }
[data-reveal][data-reveal="fade"] { transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s var(--ease); }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .1s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .16s; }

.clip-reveal { clip-path: inset(0 100% 0 0); }
.clip-reveal.is-in { clip-path: inset(0 0 0 0); transition: clip-path .8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .reveal-stagger > *, .clip-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
/* failsafe: if scripting is unavailable, never hide content */
@media (scripting: none) {
  [data-reveal], .reveal-stagger > *, .clip-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- utilities ---------- */
.u-mt-0 { margin-top: 0; }
.u-center { text-align: center; }
.u-hide { display: none !important; }
.text-ochre { color: var(--ochre-ink); }
.bg-swatch { background-image: linear-gradient(135deg, var(--paper-warm) 25%, transparent 25%), linear-gradient(225deg, var(--paper-warm) 25%, transparent 25%), linear-gradient(45deg, var(--paper-warm) 25%, transparent 25%), linear-gradient(315deg, var(--paper-warm) 25%, transparent 25%); background-size: 22px 22px; }
.aspect-ratio-note { font-size: .78rem; color: var(--ink-soft); }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
