/* Generated by build.py from fonts.css and main.css. Do not edit. */
/* Self-hosted fonts, latin subset. All three families are under the SIL Open Font License. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/fonts/inter-tight.woff2) format("woff2"); 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: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/instrument-serif.woff2) format("woff2"); 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: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../assets/fonts/instrument-serif-italic.woff2) format("woff2"); 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: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../assets/fonts/jetbrains-mono.woff2) format("woff2"); 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; }

/* Metric-matched fallbacks. size-adjust = width of the web font / width of the local font,
   measured on the site's own texts (all pages, each weight group). They only show while a web font loads. */
@font-face { font-family: "Inter Tight Fallback"; font-weight: 400 500; src: local("Arial"), local("ArialMT"), local("Roboto"), local("Helvetica Neue"); size-adjust: 96.7%; }
@font-face { font-family: "Inter Tight Fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"), local("Helvetica Neue Bold"); size-adjust: 93.9%; }
@font-face { font-family: "Instrument Serif Fallback"; font-style: normal; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Noto Serif"); size-adjust: 83.3%; }
@font-face { font-family: "Instrument Serif Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Noto Serif Italic"); size-adjust: 90%; }

/* =========================================================
   Globaltex DMCC — prototype styles
   Logical properties throughout so the RTL (Persian) version
   only needs dir="rtl" plus a font swap.
   ========================================================= */

:root {
  /* brand */
  --ink: #04122A;
  --navy-900: #061B36;
  --navy: #082A50;
  --navy-600: #123E70;
  --paper: #F4F0E8;
  --paper-2: #E7E0D2;
  /* dye accents */
  --cyan: #22C7D6;
  --magenta: #E5247F;
  --saffron: #F6A81C;
  /* semantic */
  --bg: var(--navy-900);
  --text: #EEF2F7;
  --muted: #A3B3C8;
  --line: rgba(238, 242, 247, .16);
  --text-light: #0A1E38;
  --muted-light: #46566C;
  --line-light: rgba(10, 30, 56, .18);
  /* type */
  /* The "Fallback" families (css/fonts.css) are local fonts scaled to the web fonts' width,
     so text does not re-wrap when the web font arrives. Courier New already matches JetBrains Mono. */
  --sans: "Inter Tight", "Inter Tight Fallback", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "Courier New", ui-monospace, Consolas, monospace;
  /* layout */
  --gutter: clamp(20px, 4.4vw, 72px);
  --header-h: 76px;
  --section: clamp(88px, 13vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  /* z scale */
  --z-thread: 1;
  --z-content: 2;
  --z-pin: 3;
  --z-header: 50;
  --z-menu: 40;
  --z-curtain: 90;
  --z-cursor: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--saffron); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: var(--z-content); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200; padding: 12px 18px; background: var(--paper); color: var(--text-light); border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

.label, .eyebrow { font: 500 .75rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.h2 { font-size: clamp(2.5rem, 6.2vw, 6.25rem); line-height: .98; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.h2 em { font-size: 1.06em; }

/* word-split helpers (created by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block-end: .14em; margin-block-end: -.14em; padding-inline-end: .08em; margin-inline-end: -.08em; }
.wi { display: inline-block; will-change: transform; }
[tabindex="-1"]:focus { outline: none; }

/* Hero intro: CSS only, so the first paint (and the LCP element) never waits for JavaScript.
   The lede and the hero image move but never start transparent: they count as painted at once. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .wi { animation: gt-word 1.3s var(--ease) both; animation-delay: calc(.1s + var(--i, 0) * .055s); }
  .hero__eyebrow, .cat__num { animation: gt-fade 1s var(--ease) .1s both; }
  .hero__lede { animation: gt-slide 1.1s var(--ease) both; }
  .hero__cta, .hero__foot { animation: gt-fade 1.1s var(--ease) .45s both; }
  .hero__media img { animation: gt-zoom 2.4s var(--ease) both; }
  /* Scroll reveals are hidden before the first paint (no flash). The inline head script
     removes .anim again if the main script has not taken over within 3 s. */
  html.anim [data-reveal] { opacity: 0; }
}
@keyframes gt-word { from { transform: translateY(118%); } }
@keyframes gt-fade { from { opacity: 0; transform: translateY(24px); } }
@keyframes gt-slide { from { transform: translateY(24px); } }
@keyframes gt-zoom { from { transform: scale(1.18); } }

/* ---------- logo (SVG used as mask so it takes currentColor) ---------- */
.logo {
  display: block; inline-size: 140px; aspect-ratio: 404.742 / 92.701; background: currentColor; flex: none;
  -webkit-mask: url(../assets/logo.svg) center / contain no-repeat; mask: url(../assets/logo.svg) center / contain no-repeat;
}
.logo--lg { inline-size: min(280px, 70vw); }

/* ---------- buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; min-block-size: 54px; padding: 0 26px;
  border-radius: 999px; font: 500 1rem/1 var(--sans); letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--primary { background: var(--paper); color: var(--text-light); padding-inline-end: 8px; }
.btn--primary::before { background: var(--saffron); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--text-light); border-color: var(--paper); }
.btn__arrow { inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--navy); flex: none; position: relative; transition: transform .5s var(--ease); }
.btn__arrow::after { content: ""; position: absolute; inset: 0; background: var(--paper); -webkit-mask: var(--arrow) center / 16px no-repeat; mask: var(--arrow) center / 16px no-repeat; }
.btn:hover .btn__arrow { transform: rotate(-45deg); }
[dir="rtl"] .btn__arrow { scale: -1 1; }
.btn--xl { min-block-size: 72px; padding-inline-start: 36px; font-size: 1.125rem; }
.btn--xl .btn__arrow { inline-size: 56px; block-size: 56px; }
:root { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-block-size: 44px; font-weight: 500; border-block-end: 1px solid currentColor; padding-block-end: 2px; cursor: pointer; transition: gap .4s var(--ease), color .3s; }
.link-arrow::after { content: ""; inline-size: 16px; block-size: 16px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
[dir="rtl"] .link-arrow::after { scale: -1 1; }
.link-arrow:hover { gap: 18px; }

/* ---------- header ---------- */
.header { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: var(--z-header); block-size: var(--header-h); display: flex; align-items: center; transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s; }
.header.is-scrolled { background: rgba(6, 27, 54, .72); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 32px; }
.nav { display: none; gap: 34px; margin-inline-start: auto; font-size: .9375rem; font-weight: 500; }
.nav a { position: relative; padding-block: 12px; color: var(--text); opacity: .86; transition: opacity .3s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 6px; block-size: 1px; background: currentColor; transform: scaleX(0); transform-origin: var(--origin-end, right); transition: transform .5s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: var(--origin-start, left); }
.nav a[aria-current="page"], .nav a.is-parent { opacity: 1; }
.nav { align-items: center; }
.nav__group { position: relative; }
.nav__group > a { display: inline-flex; align-items: center; gap: 8px; }
.nav__caret { inline-size: 7px; block-size: 7px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .4s var(--ease); }
.nav__group:hover .nav__caret, .nav__group:focus-within .nav__caret { transform: translateY(2px) rotate(225deg); }
.nav__drop { position: absolute; inset-block-start: 100%; inset-inline-start: -16px; min-inline-size: 210px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(6, 27, 54, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .3s; }
.nav__group:hover .nav__drop, .nav__group:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__drop a { display: flex; align-items: center; min-block-size: 44px; padding: 10px 14px; border-radius: 10px; opacity: 1; }
.nav__drop a::after { display: none; }
.nav__drop a:hover, .nav__drop a[aria-current="page"] { background: rgba(238, 242, 247, .1); }
.header__cta { display: none; min-block-size: 46px; padding-inline: 22px; font-size: .9375rem; }
.burger { margin-inline-start: auto; inline-size: 48px; block-size: 48px; display: grid; place-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 50%; }
.burger span { display: block; inline-size: 18px; block-size: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.nav-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav, .header__cta { display: flex; }
  .burger { display: none; }
}

.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--ink); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--header-h) + 24px) var(--gutter) 48px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
@media (min-width: 960px) { .menu { display: none; } }
.nav-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
/* margin auto keeps the list at the bottom when there is room and lets it scroll when there is not */
.menu__nav { display: grid; gap: 4px; inline-size: 100%; margin-block-start: auto; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding-block: 10px; font-size: clamp(2.25rem, 11vw, 4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; border-block-end: 1px solid var(--line); }
.menu__sub { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-block: 8px; padding-inline-start: 34px; border-block-end: 1px solid var(--line); }
.menu__nav .menu__sub a { min-block-size: 44px; align-items: center; padding: 0; border: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
.menu__nav small { font: 500 .75rem var(--mono); color: var(--muted); letter-spacing: .1em; }

/* ---------- thread ---------- */
main { position: relative; }
/* .thread-box is a fixed frame; .thread-clip is the cut-off that main.js slides down while the
   svg inside slides up by the same amount (see initThread). Transforms are set from JS only,
   so without JS or with reduced motion no layers are created. */
.thread-box { position: absolute; inset: 0; z-index: var(--z-thread); pointer-events: none; }
.thread-clip { position: absolute; inset: 0; overflow: hidden; }
.thread { position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: 100%; display: block; }
.thread__path { stroke-opacity: .9; }
.thread__tip { position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: var(--z-thread); inline-size: 12px; block-size: 12px; margin: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 0 28px 6px rgba(34, 199, 214, .65); pointer-events: none; opacity: 0; will-change: transform; }
html:not(.js) .thread-box, html:not(.js) .thread__tip { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-block-size: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-block: calc(var(--header-h) + 48px) 0; background: radial-gradient(90% 80% at 80% 30%, #0f5c8a 0%, transparent 60%), radial-gradient(60% 60% at 70% 80%, #7a1552 0%, transparent 65%), var(--ink); overflow: clip; }
.hero__canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__canvas.is-on { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, var(--navy-900) 0%, rgba(6, 27, 54, .55) 22%, transparent 55%), linear-gradient(to right, rgba(4, 18, 42, .78) 0%, rgba(4, 18, 42, .42) 45%, transparent 85%); }
[dir="rtl"] .hero__shade { scale: -1 1; }
.hero__inner { padding-block-end: clamp(28px, 5vw, 64px); }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; color: var(--text); margin-block-end: clamp(20px, 3vw, 36px); }
.eyebrow__dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 5px rgba(246, 168, 28, .2); }
/* Widths of text boxes are in em, not ch: "ch" is measured on whichever font is in use, so a
   box would be narrower in the stand-in font and the text would wrap differently until the
   web font arrives (a visible jump on slow connections). As a guide, 1ch of Inter Tight is
   0.578em at weight 400, 0.604em at 500 and 0.63em at 600. */
/* the first font-size is for browsers that do not know the svh unit */
.hero__title { font-size: clamp(2.9rem, 8.6vw, 9rem); font-size: clamp(2.9rem, min(8.6vw, 15svh), 9rem); line-height: .93; letter-spacing: -.04em; font-weight: 600; max-inline-size: 9.448em; text-wrap: balance; }
.hero__title em { font-size: 1.07em; letter-spacing: -.02em; }
@media (min-width: 960px) and (max-height: 820px) {
  .hero { padding-block-start: calc(var(--header-h) + 20px); }
  .hero__inner { padding-block-end: 28px; }
  .hero__eyebrow { margin-block-end: 20px; }
}
@media (min-width: 960px) and (max-height: 700px) {
  .hero__title { font-size: clamp(2.9rem, min(8.6vw, 13svh), 9rem); }
  /* home hero only (the one without a page or category class); the selectors are written
     this way so they outrank the base rules further down */
  .hero:not(.hero--page):not(.hero--cat) .hero__row { margin-block-start: 28px; }
  .hero .hero__foot { padding-block: 16px; }
}
@media (min-width: 960px) and (max-height: 600px) {
  .hero__title { font-size: clamp(2.9rem, min(8.6vw, 12svh), 9rem); }
}
/* a phone held sideways: keep the whole headline inside the first screen */
@media (orientation: landscape) and (max-height: 480px) {
  .hero { padding-block-start: calc(var(--header-h) + 12px); }
  .hero__title { font-size: min(8.6vw, 17svh); }
  .hero.hero--page .hero__title { font-size: min(7.2vw, 16svh); }
  .hero .hero__title--xl { font-size: min(15.5vw, 34svh); }
}
.hero__row { display: grid; gap: 28px; margin-block-start: clamp(28px, 4vw, 56px); }
.hero__lede { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.5; max-inline-size: 26.594em; color: #D9E2EE; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) {
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-block-start: 1px solid var(--line); }
.hero__cats { display: flex; gap: clamp(18px, 4vw, 56px); font-weight: 500; }
.hero__cats a { display: inline-flex; align-items: baseline; gap: 8px; min-block-size: 44px; align-items: center; opacity: .9; transition: opacity .3s; }
.hero__cats a:hover { opacity: 1; }
.hero__cats small { font: 500 .6875rem var(--mono); color: var(--muted); }
.scroll-hint { display: none; align-items: center; gap: 12px; font: 500 .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { inline-size: 56px; block-size: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--text); animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@media (min-width: 720px) { .scroll-hint { display: inline-flex; } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: var(--z-content); overflow: clip; padding-block: clamp(28px, 4vw, 56px); border-block-end: 1px solid var(--line); background: var(--navy-900); }
.marquee__track { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); inline-size: max-content; animation: marquee 38s linear infinite; font-size: clamp(3rem, 8vw, 8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }
.marquee__track .outline { color: transparent; -webkit-text-stroke: 1px rgba(238, 242, 247, .55); }
.marquee__track i { inline-size: .22em; block-size: .22em; border-radius: 50%; flex: none; }
.marquee .c1 { background: var(--cyan); } .marquee .c2 { background: var(--magenta); } .marquee .c3 { background: var(--saffron); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-direction: reverse; }

/* ---------- statement ---------- */
.statement { padding-block: var(--section); }
.statement__grid { display: grid; gap: 28px; }
.statement__text { font-size: clamp(1.75rem, 4.1vw, 4rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; max-inline-size: 14.496em; margin-block-end: clamp(32px, 4vw, 56px); }
.statement__text em { color: var(--cyan); }
.statement__text em:nth-of-type(2) { color: var(--magenta); filter: brightness(1.25); }
.statement__text em:nth-of-type(3) { color: var(--saffron); }
@media (min-width: 960px) {
  .statement__grid { grid-template-columns: minmax(180px, 1fr) minmax(0, 3.2fr); }
  .statement__text { max-inline-size: 13.288em; }
}

/* ---------- pillars ---------- */
.pillars { position: relative; z-index: var(--z-pin); background: var(--ink); overflow: clip; }
.pillars__head { padding-block: 40px 18px; }
.pillars__track { display: flex; flex-direction: column; }
.pillar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); color: var(--text); border-block-end: 1px solid var(--line); }
.pillar__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.6; order: -1; }
.pillar__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.pillar__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 0%, transparent 45%); }
.pillar__body { position: relative; padding: 8px var(--gutter) 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pillar__num { font: 500 .8125rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pillar__title { font-size: clamp(3.5rem, 12vw, 11rem); line-height: .88; letter-spacing: -.05em; font-weight: 600; }
.pillar__text { max-inline-size: 23.125em; color: #D4DDE9; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; color: var(--text); }
.pillar .link-arrow { color: var(--accent); margin-block-start: 8px; }
.pillars__progress { display: none; }

/* horizontal mode (class added by JS on desktop when motion is allowed) */
.pillars.is-horizontal { block-size: 100svh; }
/* The pinned section is full-bleed: its label and progress strip follow the panels to the
   edge of the window instead of the centred page column (matters above 1560px). */
.pillars.is-horizontal .pillars__head { position: absolute; inset-block-start: calc(var(--header-h) + 8px); inset-inline: 0; padding-block: 0; max-inline-size: none; }
/* the label stays put while the photos slide underneath it: brighter, with a soft dark halo */
.pillars.is-horizontal .pillars__head .label { color: var(--text); text-shadow: 0 0 3px rgba(4, 18, 42, .9), 0 0 14px rgba(4, 18, 42, .85); }
.pillars.is-horizontal .pillars__track { flex-direction: row; inline-size: max-content; block-size: 100%; will-change: transform; }
.pillars.is-horizontal .pillar { inline-size: 100vw; block-size: 100%; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 0; }
/* Same split, but the picture column is a whole number of pixels wide. With a fractional edge
   the picture and the gradient over it are snapped to different pixels and a one-pixel bright
   seam shows down the picture's left side. (Browsers without round() keep the rule above.) */
@supports (width: round(down, 1.5px, 1px)) {
  .pillars.is-horizontal .pillar { grid-template-columns: minmax(0, 1fr) round(down, 48.78vw, 1px); }
}
/* Belt and braces for the same seam: the text column, which sits above the picture, lays three
   pixels of the background colour over the picture's edge, where the gradient is solid anyway. */
.pillars.is-horizontal .pillar__body { box-shadow: 3px 0 0 var(--ink); }
.pillars.is-horizontal .pillar__body { justify-content: center; padding: calc(var(--header-h) + 40px) var(--gutter) 110px; gap: 26px; z-index: 1; }
/* ...and the picture gives up its first pixel column, the one that can end up on the wrong
   side of the split on screens where the column edge falls between two device pixels. */
.pillars.is-horizontal .pillar__media { order: 0; aspect-ratio: auto; block-size: 100%; clip-path: inset(0 0 0 1px); }
.pillars.is-horizontal .pillar__media img { inline-size: 116%; max-inline-size: none; margin-inline-start: -8%; }
.pillars.is-horizontal .pillar__media::after { background: linear-gradient(to bottom, rgba(4, 18, 42, .55) 0, transparent 150px), linear-gradient(to right, var(--ink) 0%, rgba(4, 18, 42, .35) 28%, transparent 60%), linear-gradient(to top, rgba(4, 18, 42, .7) 0%, transparent 30%); }
[dir="rtl"] .pillars.is-horizontal .pillar__media::after { scale: -1 1; }
.pillars.is-horizontal .pillars__progress { position: absolute; inset-block-end: 28px; inset-inline: 0; max-inline-size: none; display: flex; align-items: center; gap: 28px; font: 500 .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pillars__progress span { transition: color .4s; }
.pillars__progress span.is-active { color: var(--text); }
.pillars__bar { flex: 1; block-size: 1px; background: var(--line); }
.pillars__bar i { display: block; block-size: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--saffron)); transform: scaleX(0); transform-origin: left; }
/* the progress strip is decoration: never let it take a click meant for the link above it */
.pillars__progress { pointer-events: none; }
/* short laptop screens (1366x768 and similar): tighten the panel so the last link clears the strip */
@media (min-width: 960px) and (max-height: 760px) {
  .pillars.is-horizontal .pillar__body { padding-block: calc(var(--header-h) + 28px) 92px; gap: 16px; }
  .pillars.is-horizontal .pillar__title { font-size: min(12vw, 18svh); }
  .pillars.is-horizontal .tags li { padding-block: 5px; }
}

/* ---------- process (light) ---------- */
.process, .light { background: var(--paper); color: var(--text-light); padding-block: var(--section); }
.process .label, .light .label { color: var(--muted-light); }
.section-head { display: grid; gap: 22px; margin-block-end: clamp(48px, 7vw, 110px); }
.steps { display: grid; gap: 0; counter-reset: step; }
.step { padding-block: 28px 36px; border-block-start: 1px solid var(--line-light); display: grid; gap: 10px; align-content: start; }
.step__n { font: 500 .75rem var(--mono); letter-spacing: .14em; color: var(--muted-light); }
.step h3 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); letter-spacing: -.03em; line-height: 1.05; font-weight: 600; }
.step p { color: var(--muted-light); max-inline-size: 19.656em; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
@media (min-width: 1180px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
  .step { padding-block-end: 0; gap: 14px; }
  .step__n { margin-block-end: clamp(40px, 6vw, 96px); }
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- reach ---------- */
.reach { padding-block: var(--section); overflow: clip; }
.reach__grid { display: grid; gap: 48px; align-items: center; }
.reach__copy { display: grid; gap: 26px; justify-items: start; }
.reach__text { max-inline-size: 25.438em; color: #D4DDE9; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; }
.specs { display: grid; inline-size: 100%; max-inline-size: 520px; margin-block-start: 12px; }
.specs > div { display: flex; justify-content: space-between; gap: 24px; padding-block: 16px; border-block-start: 1px solid var(--line); }
.specs > div:last-child { border-block-end: 1px solid var(--line); }
.specs dt { font: 500 .75rem/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specs dd { font-weight: 500; text-align: end; }
/* narrow phones: "Product groups | Fibers · Dyes · Chemicals" stays on one line */
@media (max-width: 380px) { .specs > div { gap: 12px; } .specs dt { letter-spacing: .08em; } }
.reach__globe { position: relative; aspect-ratio: 1; inline-size: min(100%, 680px); margin-inline: auto; }
.reach__globe::before { content: ""; position: absolute; inset: 39.5%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(34, 199, 214, .22), transparent 60%), radial-gradient(circle at 70% 75%, rgba(229, 36, 127, .18), transparent 60%); filter: blur(7.5px); transform: scale(4); }
/* ^ the glow is blurred small and scaled up 4x: the same picture for a sixteenth of the blur work */
.globe { position: relative; inline-size: 100%; block-size: 100%; }
@media (min-width: 960px) { .reach__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

/* ---------- band ---------- */
.band { position: relative; z-index: var(--z-pin); min-block-size: min(86svh, 820px); display: flex; align-items: flex-end; overflow: clip; background: var(--ink); }
.band__img { position: absolute; inset-inline: 0; inset-block-start: -12%; inline-size: 100%; block-size: 124%; max-inline-size: none; object-fit: cover; will-change: transform; }
.band__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 18, 42, .92) 0%, rgba(4, 18, 42, .35) 55%, rgba(4, 18, 42, .5) 100%); }
.band__quote { padding-block: clamp(48px, 8vw, 120px); font-size: clamp(2.25rem, 5.6vw, 5.5rem); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.band__quote em { color: var(--saffron); }

/* ---------- CTA ---------- */
.cta { padding-block: var(--section); text-align: center; }
.cta__inner { display: grid; justify-items: center; gap: 28px; }
.cta__title { font-size: clamp(3.25rem, 11.5vw, 12.5rem); line-height: .9; letter-spacing: -.05em; font-weight: 600; }
.cta__title em { font-size: 1.06em; }
.cta__title em, .cta__title em .wi { background: linear-gradient(90deg, var(--cyan), #ff5aa5 55%, var(--saffron)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline-end: .08em; }
.cta__text { max-inline-size: 25.438em; color: #D4DDE9; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: var(--z-pin); background: var(--ink); border-block-start: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) 28px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.footer nav { display: grid; gap: 4px; align-content: start; justify-items: start; }
.footer nav a { min-block-size: 40px; display: inline-flex; align-items: center; opacity: .88; transition: opacity .3s; }
.footer nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer .label { margin-block-end: 12px; }
.footer__tag { margin-block-start: 20px; color: var(--muted); max-inline-size: 16.188em; }
.footer__addr { line-height: 1.7; }
.footer__addr + .footer__addr { margin-block-start: 10px; }
.footer__addr a, .specs dd a { display: inline-block; padding-block: 6px; text-decoration: underline; text-decoration-color: rgba(238, 242, 247, .4); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.footer__addr a:hover, .specs dd a:hover { text-decoration-color: currentColor; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-block-start: clamp(48px, 6vw, 88px); padding-block-start: 22px; border-block-start: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.footer__base a { min-block-size: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1561px) {
  .hero__foot, .footer__base { border-block-start-color: transparent; }
  .hero__foot::before, .footer__base::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline: var(--gutter); border-block-start: 1px solid var(--line); }
}
.footer__base a:hover { color: var(--text); }
/* the last column is as wide as the address needs, so its lines break where they were written */
@media (min-width: 860px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr minmax(0, max-content); } }

/* =========================================================
   Inner pages
   ========================================================= */

/* ---------- page heroes ---------- */
.hero--page { min-block-size: min(80svh, 780px); }
.hero--page .hero__title { font-size: clamp(2.6rem, 7.2vw, 7.5rem); max-inline-size: 10.708em; }
.hero--page .hero__inner, .hero--cat .hero__inner { padding-block-end: clamp(44px, 6vw, 96px); }
.hero--short { min-block-size: min(64svh, 620px); }
.hero--full { min-block-size: 100svh; }
.crumbs { gap: 10px; }
.crumbs a { display: inline-flex; align-items: center; min-block-size: 44px; opacity: .75; transition: opacity .3s; }
.crumbs a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.crumbs span[aria-hidden] { opacity: .4; }

.hero--cat { background: var(--ink); min-block-size: min(92svh, 900px); }
.hero__media { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 100%; overflow: hidden; z-index: 0; }
.hero__media img { inline-size: 100%; block-size: 100%; object-fit: cover; opacity: .55; }
.hero--cat .hero__shade { background: linear-gradient(to top, var(--navy-900) 0%, rgba(4, 18, 42, .7) 35%, rgba(4, 18, 42, .3) 75%), linear-gradient(to right, var(--ink) 0%, rgba(4, 18, 42, .5) 55%, transparent 90%); }
@media (min-width: 960px) {
  .hero__media { inline-size: 56%; }
  .hero__media img { opacity: 1; }
  .hero--cat .hero__shade { background: linear-gradient(to bottom, rgba(4, 18, 42, .62) 0, transparent 170px), linear-gradient(to top, var(--navy-900) 0%, transparent 34%), linear-gradient(to right, var(--ink) 44%, rgba(4, 18, 42, .5) 62%, transparent 86%); }
}
.cat__num { font: 500 .8125rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-block-end: 14px; }
.hero__title--xl { font-size: clamp(4rem, 15.5vw, 15rem); line-height: .86; letter-spacing: -.055em; max-inline-size: none; }

/* ---------- range rows ---------- */
.range { padding-block: var(--section); }
.rows { border-block-end: 1px solid var(--line); }
.row { display: grid; gap: 6px 32px; padding-block: 26px; border-block-start: 1px solid var(--line); }
.row__n { font: 500 .75rem var(--mono); letter-spacing: .14em; color: var(--accent); }
.row__t { font-size: clamp(1.75rem, 3.4vw, 3.25rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; transition: transform .5s var(--ease), color .3s; }
.row__d { color: #D4DDE9; max-inline-size: 26.594em; font-size: clamp(1rem, 1.2vw, 1.1875rem); text-wrap: pretty; }
@media (min-width: 860px) {
  .row { grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr); align-items: baseline; padding-block: 34px; }
  .row:hover .row__t { transform: translateX(14px); color: var(--accent); }
}

/* groups inside a range: "Natural fibers", "Sizing chemicals"... each with its own short list */
.group + .group { margin-block-start: clamp(48px, 7vw, 104px); }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding-block-end: 18px; }
.group__title { font: 500 .8125rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.group__note { font-size: .9375rem; color: var(--muted); }
.group__count { margin-inline-start: auto; font: 500 .75rem/1.5 var(--mono); letter-spacing: .14em; color: var(--muted); }

/* ---------- docs / at a glance ---------- */
.docs { padding-block: var(--section); }
.docs__grid { display: grid; gap: 40px; align-items: start; }
.docs__grid > div:first-child { display: grid; gap: 22px; }
.h2--sm { font-size: clamp(2.25rem, 4.6vw, 4.5rem); }
.docs .specs, .contact .specs { max-inline-size: none; margin-block-start: 0; }
@media (min-width: 960px) { .docs__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- next category ---------- */
.next { position: relative; z-index: var(--z-pin); display: block; background: var(--ink); border-block-start: 1px solid var(--line); padding-block: clamp(48px, 8vw, 120px); cursor: pointer; overflow: clip; }
.next::before { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateY(101%); transition: transform .7s var(--ease); }
.next:hover::before, .next:focus-visible::before { transform: none; }
.next__inner { display: grid; gap: 14px; transition: color .4s; }
.next__title { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: clamp(3.25rem, 12vw, 11rem); font-weight: 600; letter-spacing: -.05em; line-height: .9; }
.next:hover .next__inner, .next:focus-visible .next__inner { color: var(--text-light); }
.next:hover .label, .next:focus-visible .label { color: var(--muted-light); }
.next .btn__arrow { inline-size: clamp(56px, 8vw, 110px); block-size: clamp(56px, 8vw, 110px); background: var(--paper); transition: transform .6s var(--ease), background-color .4s; }
.next .btn__arrow::after { background: var(--navy); -webkit-mask-size: 34%; mask-size: 34%; }
.next:hover .btn__arrow, .next:focus-visible .btn__arrow { background: var(--navy); transform: rotate(-45deg); }
.next:hover .btn__arrow::after, .next:focus-visible .btn__arrow::after { background: var(--paper); }
/* the narrowest phones: the longest name ("Chemicals") and its arrow stay inside the gutter */
@media (max-width: 345px) { .next__title { gap: 12px; } .next .btn__arrow { inline-size: 44px; block-size: 44px; } }

/* ---------- products overview ---------- */
.cats { position: relative; z-index: var(--z-pin); background: var(--ink); border-block-start: 1px solid var(--line); }
.cat { display: block; border-block-end: 1px solid var(--line); cursor: pointer; }
.cat__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 32px; padding-block: clamp(28px, 4vw, 56px); align-items: center; }
.cat__n { font: 500 .8125rem var(--mono); letter-spacing: .14em; color: var(--accent); }
.cat__title { font-size: clamp(3.25rem, 11vw, 10rem); font-weight: 600; letter-spacing: -.05em; line-height: .9; transition: transform .6s var(--ease), color .3s; }
.cat__text { color: #D4DDE9; max-inline-size: 19.656em; font-size: clamp(1rem, 1.25vw, 1.1875rem); }
.cat__media { display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; margin-block-start: 12px; }
.cat__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover .cat__media img, .cat:focus-visible .cat__media img { transform: scale(1.08); }
@media (min-width: 960px) {
  .cat__inner { grid-template-columns: 70px minmax(0, 1.5fr) minmax(0, 1fr) clamp(180px, 20vw, 320px); }
  .cat__media { aspect-ratio: 4 / 3; margin: 0; }
  /* sized so the longest title ("Chemicals") stays clear of the text column beside it */
  .cat__title { font-size: clamp(3.25rem, 7.6vw, 7.5rem); }
  .cat:hover .cat__title, .cat:focus-visible .cat__title { color: var(--accent); transform: translateX(16px); }
}

.cat__full { display: block; margin-block-end: 8px; font: 500 .75rem/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* the company's full category list, each line a link to the page that covers it */
.index { padding-block: var(--section); }
.index__list { display: grid; column-gap: clamp(32px, 5vw, 80px); border-block-end: 1px solid var(--line); }
.index__list a { display: flex; align-items: center; gap: 20px; min-block-size: 76px; padding-block: 16px; border-block-start: 1px solid var(--line); cursor: pointer; }
.index__n { flex: none; inline-size: 2.2em; font: 500 .75rem var(--mono); letter-spacing: .14em; color: var(--muted); }
.index__t { font-size: clamp(1.1875rem, 1.9vw, 1.625rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; transition: transform .5s var(--ease); }
.index__arrow { flex: none; margin-inline-start: auto; inline-size: 18px; block-size: 18px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; opacity: .45; transition: opacity .3s, transform .5s var(--ease); }
.index__list a:hover .index__t, .index__list a:focus-visible .index__t { transform: translateX(10px); }
.index__list a:hover .index__arrow, .index__list a:focus-visible .index__arrow { opacity: 1; transform: translateX(4px); }
@media (min-width: 860px) {
  /* two columns that read downwards: 01 to 05 on the left, 06 to 10 on the right */
  .index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 5), auto); grid-auto-flow: column; }
}

/* ---------- about ---------- */
.story { padding-block: 0 var(--section); }
.story__grid { display: grid; gap: 28px; }
.story__body { display: grid; gap: 28px; max-inline-size: 35.844em; font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); line-height: 1.55; color: #D9E2EE; }
@media (min-width: 960px) { .story__grid { grid-template-columns: minmax(180px, 1fr) minmax(0, 3.2fr); } }
.placeholder { display: grid; gap: 8px; padding: 20px 22px; border: 1px dashed rgba(238, 242, 247, .4); border-radius: 14px; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.placeholder .label { color: var(--saffron); }

/* ---------- contact ---------- */
.contact { padding-block: clamp(56px, 8vw, 120px) var(--section); }
.contact__grid { display: grid; gap: 56px; }
.contact__info { display: grid; gap: 24px; align-content: start; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 80px; } }
.form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: rgba(4, 18, 42, .7); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: .9375rem; font-weight: 500; }
.field label span { color: var(--saffron); }
.field input, .field select, .field textarea { inline-size: 100%; min-block-size: 54px; padding: 14px 16px; font: 400 1rem/1.4 var(--sans); color: var(--text); background-color: rgba(238, 242, 247, .05); border: 1px solid rgba(238, 242, 247, .42); border-radius: 12px; transition: border-color .25s, background-color .25s; }
.field textarea { resize: vertical; min-block-size: 140px; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-inline-end: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%23EEF2F7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.field select option { color: #0A1E38; background: #fff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(238, 242, 247, .65); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; background-color: rgba(238, 242, 247, .08); }
.field [aria-invalid="true"] { border-color: #FF8FA3; }
.field__hint { font-size: .875rem; color: var(--muted); }
.field__err { font-size: .875rem; color: #FFA3B4; }
.field__err:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-block-start: 8px; }
.form__status { color: var(--saffron); font-size: .9375rem; padding: 12px 14px; border: 1px solid currentColor; border-radius: 12px; }
.form__status:empty { display: none; }

.form__status--ok { color: #7CE7B5; }
.form { scroll-margin-block-start: calc(var(--header-h) + 24px); }
/* groups and items can be jumped to from the category index on the Products page */
.group[id], .row[id] { scroll-margin-block-start: calc(var(--header-h) + 28px); }
.hp { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- long-form content (generic pages, posts, editor text) ---------- */
.prose { padding-block: clamp(56px, 8vw, 120px) var(--section); }
.prose__body { display: grid; gap: 1.2em; max-inline-size: 40.469em; font-size: 1.125rem; line-height: 1.7; color: #D9E2EE; }
.prose__body h2 { margin-block-start: .8em; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; color: var(--text); }
.prose__body h3 { margin-block-start: .6em; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
.prose__body a, .story__body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose__body ul { list-style: disc; padding-inline-start: 1.3em; }
.prose__body ol { list-style: decimal; padding-inline-start: 1.3em; }
.prose__body img { block-size: auto; border-radius: 14px; }
.row__t a:hover { text-decoration: underline; text-underline-offset: 6px; }
.pager { margin-block-start: 40px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding-inline: 12px; border: 1px solid var(--line); border-radius: 999px; }
.pager .page-numbers.current { background: var(--paper); color: var(--text-light); }

/* ---------- WordPress admin bar offset ---------- */
.admin-bar .header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .header { inset-block-start: 46px; } }

/* ---------- page transition: the dye curtain ----------
   Leaving a page, three dye-coloured waves and a navy sheet rise from the bottom; the next
   page starts covered and the sheets lift off the top. Each sheet is a plain block with an
   elliptical cap on its leading edge that swells mid-flight, which gives the liquid curve.
   Everything is transform/opacity only. The enter half is pure CSS (class set in <head>),
   so a page can never stay covered because a script failed. */
.curtain { position: fixed; inset: 0; z-index: var(--z-curtain); pointer-events: none; overflow: clip; visibility: hidden; }
.curtain i { position: absolute; inset: 0; transform: translateY(101%); }
/* Order matters: magenta, cyan, saffron, ink steps the brightness up and then down once,
   so even two transitions back to back stay under three flashes a second (WCAG 2.3.1). */
.curtain i:nth-child(1) { background: var(--magenta); }
.curtain i:nth-child(2) { background: var(--cyan); }
.curtain i:nth-child(3) { background: var(--saffron); }
.curtain i:nth-child(4) { background: var(--ink); }
.curtain i::before, .curtain i::after { content: ""; position: absolute; inset-inline: -15%; block-size: 30vh; border-radius: 50%; background: inherit; transform: scaleY(0); }
.curtain i::before { inset-block-start: -15vh; }
.curtain i::after { inset-block-end: -15vh; }
.curtain__logo { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: min(300px, 56vw); aspect-ratio: 404.742 / 92.701; background: var(--paper); -webkit-mask: url(../assets/logo.svg) center / contain no-repeat; mask: url(../assets/logo.svg) center / contain no-repeat; transform: translate(-50%, -50%); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.is-leaving .curtain, html.is-entering .curtain { visibility: visible; }
  /* while it covers the page, clicks and taps stop here instead of reaching links underneath */
  html.is-leaving .curtain { pointer-events: auto; }
  html.is-leaving .curtain i { animation: gt-curtain-in .62s var(--ease-io) both; animation-delay: calc(var(--n) * 70ms); }
  html.is-leaving .curtain i::before { animation: gt-curtain-cap .62s var(--ease-io) both; animation-delay: calc(var(--n) * 70ms); }
  html.is-leaving .curtain__logo { animation: gt-logo-in .32s ease .52s both; }
  html.is-entering .curtain i { animation: gt-curtain-out .72s var(--ease-io) both; animation-delay: calc(.14s + (3 - var(--n)) * 70ms); }
  html.is-entering .curtain i::after { animation: gt-curtain-cap .72s var(--ease-io) both; animation-delay: calc(.14s + (3 - var(--n)) * 70ms); }
  html.is-entering .curtain__logo { animation: gt-logo-out .3s ease .05s both; }
  /* once the sheets are gone, take the (now empty) full-screen layer out of the picture */
  html.is-entering .curtain { animation: gt-curtain-off 1ms linear 1.2s forwards; }
  /* hold the hero intro until the curtain is lifting, so it is seen */
  html.is-entering .hero__title .wi { animation-delay: calc(.6s + var(--i, 0) * .055s); }
  html.is-entering .hero__eyebrow, html.is-entering .cat__num { animation-delay: .6s; }
  html.is-entering .hero__lede { animation-delay: .5s; }
  html.is-entering .hero__cta, html.is-entering .hero__foot { animation-delay: .95s; }
  html.is-entering .hero__media img { animation-delay: .35s; }
}
@keyframes gt-curtain-in { from { transform: translateY(101%); } to { transform: translateY(0); } }
@keyframes gt-curtain-out { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes gt-curtain-cap { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }
@keyframes gt-logo-in { from { opacity: 0; transform: translate(-50%, -38%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes gt-logo-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes gt-curtain-off { to { visibility: hidden; } }


/* ---------- custom cursor (fine pointers only, enabled by JS) ---------- */
.cursor { position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: var(--z-cursor); inline-size: 14px; block-size: 14px; margin: -7px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: inline-size .35s var(--ease), block-size .35s var(--ease), margin .35s var(--ease), opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { inline-size: 64px; block-size: 64px; margin: -32px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .scroll-hint i::after { animation: none; }
  .btn::before, .btn__arrow, .link-arrow, .header, .menu { transition: none; }
  .cursor, .thread__tip { display: none; }
}
