/* ==========================================================================
   Emmanuel Apetsi | site.css
   White ground, orange and deep-orange accents, ink black.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.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("../fonts/instrument-serif-latin.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("../fonts/instrument-serif-latin-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 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-var.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 fallback keeps layout steady while Inter loads */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand (constant in both themes) */
  --orange: #FF6A13;        /* brand orange: shapes, lines, text on dark */
  --orange-soft: #FFA05A;
  --deep: #C2410C;          /* deep orange: text accents on white (5.2:1) */

  /* Light theme */
  --bg: #FFFFFF;
  --text: #0B0B0C;
  --text-2: #333338;
  --text-3: #64646C;
  --text-4: #737379;
  --line: rgba(11, 11, 12, .11);
  --line-soft: rgba(11, 11, 12, .065);
  --rule: #0B0B0C;                    /* strong rules above tables */
  --accent: var(--deep);              /* accent text */
  --invert: #0B0B0C;                  /* solid button, toast, skip link */
  --invert-text: #FFFFFF;
  --band: #0B0B0C;                    /* thoughts + footer */
  --hover: rgba(11, 11, 12, .06);
  --nav-glass: rgba(255, 255, 255, .78);
  --nav-edge: inset 0 0 0 1px rgba(11, 11, 12, .07);
  --nav-shadow: rgba(11, 11, 12, .28);
  --menu-bg: rgba(255, 255, 255, .97);
  --art-fill: #FFFFFF;
  --art-accent: #FFF1E8;
  --shadow-strong: rgba(11, 11, 12, .6);
  color-scheme: light;

  --font-sans: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
}

/* Dark theme: chosen in the header, or the system's choice when nothing is stored */
:root[data-theme="dark"] {
  --bg: #0A0A0B;
  --text: #F3F3F4;
  --text-2: #D4D4D8;
  --text-3: #A1A1AA;
  --text-4: #8E8E97;
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .07);
  --rule: rgba(243, 243, 244, .88);
  --accent: #FF7A2E;
  --invert: #F3F3F4;
  --invert-text: #0A0A0B;
  --band: #131315;
  --hover: rgba(255, 255, 255, .08);
  --nav-glass: rgba(19, 19, 21, .76);
  --nav-edge: 0 0 0 0 transparent;
  --nav-shadow: rgba(0, 0, 0, .7);
  --menu-bg: rgba(10, 10, 11, .96);
  --art-fill: #0A0A0B;
  --art-accent: #2A1608;
  --shadow-strong: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
/* Without JavaScript, still honour a dark system setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0A0A0B; --text: #F3F3F4; --text-2: #D4D4D8; --text-3: #A1A1AA; --text-4: #8E8E97;
    --line: rgba(255, 255, 255, .12); --line-soft: rgba(255, 255, 255, .07); --rule: rgba(243, 243, 244, .88);
    --accent: #FF7A2E; --invert: #F3F3F4; --invert-text: #0A0A0B; --band: #131315; --hover: rgba(255, 255, 255, .08);
    --nav-glass: rgba(19, 19, 21, .76); --nav-edge: 0 0 0 0 transparent; --nav-shadow: rgba(0, 0, 0, .7); --menu-bg: rgba(10, 10, 11, .96);
    --art-fill: #0A0A0B; --art-accent: #2A1608;
    --shadow-strong: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  transition: background-color .4s var(--ease), color .4s var(--ease);
  font: 400 17px/1.6 var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
img, svg, picture { display: block; max-width: 100%; }
svg { stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange); color: #0B0B0C; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(96px, 12vw, 168px); }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.skip {
  position: fixed; left: 16px; top: -64px; z-index: 100;
  padding: 10px 18px; border-radius: 8px;
  background: var(--invert); color: var(--invert-text); font-size: 14px; font-weight: 500;
  transition: top .25s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow span { display: inline-flex; align-items: center; gap: 14px; margin-right: 14px; color: var(--accent); }
.eyebrow span::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow--dark { color: rgba(255, 255, 255, .6); }
.eyebrow--dark span { color: var(--orange); }

.display {
  font-size: clamp(42px, 5.8vw, 82px);
  line-height: .98;
  letter-spacing: -.048em;
  font-weight: 600;
  text-wrap: balance;
}
.display em,
.manifesto em,
.credo em,
.hero__lede em,
.footer__word em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.display em { color: var(--accent); font-size: 1.07em; letter-spacing: -.025em; padding-right: .04em; }
.display--dark { color: #fff; }
.display--dark em { color: var(--orange); }
.display--xl { font-size: clamp(50px, 8.2vw, 128px); }

.section__head {
  display: grid; gap: 22px;
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section__lede {
  max-width: 520px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--text-3);
}
.section__lede--dark { color: rgba(255, 255, 255, .62); }
@media (min-width: 1024px) {
  .section__head--split { max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; column-gap: 64px; }
  .section__head--split .eyebrow { grid-column: 1 / -1; }
  .section__head--split .section__lede { justify-self: end; padding-bottom: .55em; }
}

/* ---------- Buttons & links ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .25s var(--ease), translate .5s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; transition: transform .4s var(--ease); }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--ink {
  background: var(--invert); color: var(--invert-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 28px -14px var(--shadow-strong);
}
.btn--ink:hover { background: var(--orange); color: #0B0B0C; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 32px -14px rgba(255, 106, 19, .65); }
.btn--ink:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0 5px;
  border-bottom: 1px solid currentColor;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  color: var(--text);
  transition: color .3s var(--ease);
}
.link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; transition: transform .4s var(--ease); }
.link:hover { color: var(--accent); }
.link:hover svg { transform: translate(2px, -2px); }
.link--dark { color: #fff; }
.link--dark:hover { color: var(--orange); }

.socials { display: flex; gap: 6px; }
.socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text-2);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.socials a:hover { background: var(--invert); color: var(--invert-text); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }

/* ==========================================================================
   Navigation: flat at the top, a slim glass card once you scroll
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: 12px; }
.nav__inner { position: relative; display: flex; align-items: center; gap: 28px; height: 60px; }
.nav__inner::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(var(--gutter) - 22px);
  border-radius: 14px;
  background: var(--nav-glass);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: var(--nav-edge), 0 14px 34px -20px var(--nav-shadow);
  opacity: 0;
  transform: scale(.985, .82);
  transition: opacity .45s var(--ease), transform .6s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
  pointer-events: none;
}
.nav.is-scrolled .nav__inner::before { opacity: 1; transform: none; }

.nav__brand { display: inline-flex; color: var(--text); }
.nav__mark { width: 50px; height: 24px; transition: color .4s var(--ease), transform .6s var(--spring); }
.nav__brand:hover .nav__mark { transform: rotate(-5deg) scale(1.05); }

.nav__links { position: relative; display: flex; gap: 34px; margin-inline: auto; }
.nav__links a {
  padding: 10px 0;
  font-size: 14px; font-weight: 500; letter-spacing: -.005em;
  color: var(--text-3);
  transition: color .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__line {
  position: absolute; left: 0; bottom: 4px;
  width: 0; height: 1px;
  background: var(--text);
  opacity: 0;
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s var(--ease), background-color .4s var(--ease);
}

.nav__actions { display: flex; align-items: center; gap: 26px; }
.nav__blog { display: inline-flex; align-items: center; gap: 3px; padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--text-3); transition: color .3s var(--ease); }
.nav__blog svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.nav__blog:hover { color: var(--text); }
.nav__cta {
  position: relative; padding: 10px 0;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  color: var(--text);
  transition: color .3s var(--ease);
}
.nav__cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__cta:hover { color: var(--accent); }
/* Invisible tap areas: header controls reach the 44px touch minimum without changing the look */
.nav__cta::before { content: ""; position: absolute; inset: -1px 0; }

.nav__toggle { position: relative; display: none; width: 40px; height: 40px; margin-right: -8px; }
.nav__toggle::before { content: ""; position: absolute; inset: -2px; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; border-radius: 2px;
  background: var(--text);
  transition: transform .45s var(--ease), top .45s var(--ease), background-color .4s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Dark glass while over black sections */
html:not(.menu-open) .nav.is-dark .nav__inner::before {
  background: rgba(22, 22, 24, .74);
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .7); /* plain surface, no trim line */
}
html:not(.menu-open) .nav.is-dark .nav__brand,
html:not(.menu-open) .nav.is-dark .nav__cta { color: #fff; }
html:not(.menu-open) .nav.is-dark .nav__links a,
html:not(.menu-open) .nav.is-dark .nav__blog { color: rgba(255, 255, 255, .6); }
html:not(.menu-open) .nav.is-dark .nav__links a:hover,
html:not(.menu-open) .nav.is-dark .nav__links a.is-active,
html:not(.menu-open) .nav.is-dark .nav__blog:hover { color: #fff; }
html:not(.menu-open) .nav.is-dark .nav__line { background: #fff; }
html:not(.menu-open) .nav.is-dark .nav__cta:hover { color: var(--orange); }
html:not(.menu-open) .nav.is-dark .nav__toggle span { background: #fff; }

/* Theme switch: one icon, a moon in light mode that turns into a sun in dark mode */
.theme-toggle {
  position: relative; display: grid; place-items: center;
  width: 38px; height: 38px; margin-inline: -6px; border-radius: 50%;
  color: var(--text-2);
  transition: color .3s var(--ease), background-color .3s var(--ease), transform .2s var(--ease);
}
.theme-toggle::before { content: ""; position: absolute; inset: -3px; } /* 44px tap area */
.theme-toggle:hover { color: var(--text); background: var(--hover); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 19px; height: 19px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle g { transform-box: view-box; transform-origin: 12px 12px; transition: transform .7s var(--spring), opacity .35s var(--ease); }
.theme-toggle .ti-sun { opacity: 0; transform: rotate(-120deg) scale(.3); }
:root[data-theme="dark"] .theme-toggle .ti-moon { opacity: 0; transform: rotate(120deg) scale(.3); }
:root[data-theme="dark"] .theme-toggle .ti-sun { opacity: 1; transform: none; }
html:not(.js) .theme-toggle { display: none; }
html:not(.menu-open) .nav.is-dark .theme-toggle { color: rgba(255, 255, 255, .78); }
html:not(.menu-open) .nav.is-dark .theme-toggle:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* Theme change: the new theme spreads out in a circle from the switch (View Transitions) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Mobile sheet */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 104px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s .45s;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.menu__links { display: grid; border-top: 1px solid var(--line); }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(32px, 9vw, 52px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1;
  color: var(--text);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .7s var(--ease), color .3s;
  transition-delay: calc(var(--i) * 50ms + 60ms);
}
.menu__links a span { min-width: 2.2ch; font: 500 12px var(--font-mono); letter-spacing: .06em; color: var(--accent); }
.menu__links a svg { width: .5em; height: .5em; align-self: center; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.4; }
.menu__links a:hover { color: var(--accent); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.menu__mail { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--text); }
.menu__mail svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 96px;
  overflow: hidden;
  overflow: clip;
}
.hero__grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
}
.hero__copy {
  display: grid; justify-items: start;
  padding-bottom: clamp(56px, 9vh, 104px);
}
.hero__kicker {
  margin-bottom: 26px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.hero__title {
  display: grid;
  font-size: clamp(56px, 8.3vw, 118px);
  font-weight: 650;
  line-height: .9;
  letter-spacing: -.055em;
}
.mask { display: block; }
.hero__line { display: block; }

.hero__role {
  display: flex; align-items: center; gap: 16px;
  margin-top: 28px;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15;
  color: var(--text);
}
.hero__rule { width: 36px; height: 1.5px; background: var(--orange); flex: none; }
.roller { position: relative; display: inline-grid; overflow: hidden; padding-block: .06em; }
.roller__item {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(105%);
  transition: transform .8s var(--ease), opacity .6s var(--ease);
}
.roller__item.is-active { opacity: 1; transform: none; }
.roller__item.is-leaving { opacity: 0; transform: translateY(-105%); }

.hero__lede {
  max-width: 36ch;
  margin-top: 26px;
  font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.6; letter-spacing: -.012em;
  color: var(--text-3);
}
.hero__lede em { font-size: 1.14em; color: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 36px; }

.hero__base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding-block: 18px 22px;
  border-top: 1px solid var(--line);
}
.focus { display: flex; flex-wrap: wrap; align-items: center; }
.focus li + li { border-left: 1px solid var(--line); }
.focus a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 22px;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  color: var(--text-2);
  transition: color .3s var(--ease);
}
.focus li:first-child a { padding-left: 0; }
.focus svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.5; transition: transform .5s var(--spring); }
.focus a:hover { color: var(--text); }
.focus a:hover svg { transform: scale(1.12); }
.hero__base .socials { margin-right: -10px; }

/* ---------- Portrait: colour ASCII bust drawn on a canvas, traced by an orange outline ---------- */
.portrait {
  position: relative;
  justify-self: end;
  width: 100%; max-width: 540px;
  aspect-ratio: 810 / 890;
  translate: 0 calc(var(--hs, 0) * 48px);
}
.portrait > * { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ascii__canvas { display: block; }
.ascii__fallback { position: relative !important; height: auto !important; }
.portrait__outline {
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, #000 79%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 79%, transparent 98%);
}
.portrait__outline path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 3.6;
  stroke-linecap: round; stroke-linejoin: round;
}
/* The outline traces around the portrait once it starts decoding (JS adds .is-ready) */
.js .portrait__outline path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-in-out) .9s; }
.js .portrait.is-ready .portrait__outline path { stroke-dashoffset: 0; }

/* Hero intro: pure CSS that starts on the first paint. Text is visible from frame one
   (it rises from 20% opacity), so nothing waits for JavaScript and LCP is not delayed.
   Opacity and transform only, so it runs on the GPU. */
@keyframes rise { from { opacity: .2; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js [data-intro] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--n, 0) * 55ms); }
[data-intro="1"] { --n: 0; } [data-intro="2"] { --n: 1; } [data-intro="3"] { --n: 2; } [data-intro="4"] { --n: 3; }
[data-intro="5"] { --n: 4; } [data-intro="6"] { --n: 5; } [data-intro="7"] { --n: 7; }


/* ==========================================================================
   About
   ========================================================================== */
.eyebrow-row { margin-bottom: clamp(36px, 4.5vw, 60px); }
.manifesto {
  max-width: 1040px;
  font-size: clamp(28px, 3.7vw, 54px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.036em;
  color: var(--text);
  text-wrap: pretty;
}
.manifesto em { color: var(--accent); font-size: 1.06em; letter-spacing: -.015em; }
.js .manifesto.is-split .w { opacity: .46; transition: opacity .45s var(--ease); }
.js .manifesto.is-split em .w { opacity: .72; }
.js .manifesto.is-split .w.is-on { opacity: 1; }

.about__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(40px, 6vw, 88px);
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.credo p {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.8vw, 40px); line-height: 1.14; letter-spacing: -.012em;
  color: var(--text);
  text-wrap: balance;
}
.credo em { color: var(--accent); }
.signature { width: min(300px, 72%); height: auto; margin-top: 22px; fill: var(--text); stroke: none; }
.js .signature {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 230% 100%;
  mask-size: 230% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: -webkit-mask-position 2.4s var(--ease-in-out) .5s, mask-position 2.4s var(--ease-in-out) .5s;
}
.js .credo.is-in .signature { -webkit-mask-position: 0 0; mask-position: 0 0; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts div { display: grid; align-content: start; gap: 10px; padding: 0 22px; border-left: 1px solid var(--line); }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.facts dd { font-size: 15.5px; font-weight: 500; line-height: 1.45; letter-spacing: -.01em; color: var(--text); }

/* ==========================================================================
   Roles: four ruled columns, an icon for every role
   ========================================================================== */
.roles { padding-top: 0; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.pillar { padding: 30px 26px 0; border-left: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar__num { font: 500 12px/1 var(--font-mono); letter-spacing: .1em; color: var(--accent); }
.pillar h3 { margin-top: 22px; font-size: clamp(32px, 3vw, 42px); letter-spacing: -.045em; line-height: 1; }
.pillar__text { margin-top: 14px; min-height: 4.8em; font-size: 15px; line-height: 1.6; color: var(--text-3); }
.role-list { margin-top: 22px; border-top: 1px solid var(--line); }
.role-list li {
  display: flex; align-items: center; gap: 13px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  color: var(--text);
  transition: color .3s var(--ease);
}
.role-list li:last-child { border-bottom: 0; }
.role-list svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--text-3); stroke-width: 1.45; transition: stroke .3s var(--ease), transform .5s var(--spring); }
.role-list li:hover { color: var(--accent); }
.role-list li:hover svg { stroke: var(--accent); transform: scale(1.1); }

/* ==========================================================================
   Domains: a ruled grid, no cards
   ========================================================================== */
.domains { padding-top: 0; }
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.domain {
  display: flex; flex-direction: column;
  padding: 40px 32px 46px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.domain:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.domain:nth-child(3n) { padding-right: 0; }
.domain:nth-last-child(-n + 3) { border-bottom: 0; }
.domain__art { display: grid; place-items: center; height: 168px; margin-bottom: 34px; }
.domain__art svg { width: 100%; height: 100%; max-width: 272px; overflow: visible; }
.domain__num { font: 500 12px/1 var(--font-mono); letter-spacing: .1em; color: var(--accent); }
.domain h3 { margin-top: 14px; font-size: clamp(22px, 1.9vw, 26px); letter-spacing: -.032em; line-height: 1.15; }
.domain__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-3); }
.tags {
  display: flex; flex-wrap: wrap; row-gap: 10px;
  margin-top: auto; padding-top: 22px;
  font: 500 10.5px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-4);
}
.tags li { display: inline-flex; align-items: center; white-space: nowrap; }
.tags li:not(:last-child)::after { content: ""; width: 1px; height: 10px; margin-inline: 11px; background: var(--line); }
.domain--quote { justify-content: center; gap: 24px; }
.domain--quote p {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(28px, 2.5vw, 36px); line-height: 1.14; letter-spacing: -.012em;
  color: var(--text);
  text-wrap: balance;
}
.domain--quote figcaption, .quote figcaption {
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
}
.domain--quote figcaption::before, .quote figcaption::before { content: ""; width: 28px; height: 1px; background: var(--orange); }

/* Art: shared */
.art path, .art circle, .art rect { vector-effect: non-scaling-stroke; }
.art [pathLength] { vector-effect: none; } /* dash maths needs user-space strokes */

/* Art: neural net */
.nn__edges path { fill: none; stroke: var(--text); stroke-opacity: .13; stroke-width: 1.2; }
.nn__pulses path {
  fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: .1 2; stroke-dashoffset: .1;
  animation: pulse 3.4s var(--ease-in-out) infinite;
}
.nn__pulses path:nth-child(2) { animation-delay: .85s; }
.nn__pulses path:nth-child(3) { animation-delay: 1.7s; }
.nn__pulses path:nth-child(4) { animation-delay: 2.55s; }
@keyframes pulse { 0% { stroke-dashoffset: .1; } 62%, 100% { stroke-dashoffset: -1; } }
.nn__nodes circle { fill: var(--art-fill); stroke: var(--text); stroke-width: 1.5; }
.nn__nodes circle.is-out { stroke: var(--accent); fill: var(--art-accent); animation: node 3.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.nn__nodes circle.is-out + circle.is-out { animation-delay: 1.7s; }
@keyframes node { 0%, 50%, 100% { transform: none; } 58% { transform: scale(1.28); } }

/* Art: chain */
.art--chain path { fill: transparent; stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.chain__links path { stroke: var(--text-4); stroke-dasharray: .08 .06; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -.14; } }
.chain__block path { animation: block 4.5s var(--ease) infinite; animation-delay: calc(var(--b) * 1.5s); }
@keyframes block {
  0%, 34%, 100% { stroke: var(--text); fill: transparent; }
  8%, 24% { stroke: var(--accent); fill: rgba(255, 106, 19, .14); }
}

/* Art: shield */
.shield__ring { fill: none; stroke: var(--orange); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 3.8s var(--ease) infinite; }
.shield__ring--2 { animation-delay: 1.9s; }
@keyframes ring { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.14); opacity: 0; } }
.shield__body { fill: var(--art-fill); stroke: var(--text); stroke-width: 1.5; stroke-linejoin: round; }
.shield__scan { fill: var(--orange); opacity: .85; animation: scan 2.8s var(--ease-in-out) infinite alternate; }
@keyframes scan { to { transform: translateY(122px); } }
.shield__lock { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Art: robot arm */
.art--arm path, .art--arm circle { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art--arm circle { fill: var(--art-fill); }
.art--arm .arm__floor { stroke: var(--line); }
.arm__a { transform-origin: 110px 124px; animation: armA 5.2s var(--ease-in-out) infinite alternate; }
.arm__b { transform-origin: 82px 72px; animation: armB 5.2s var(--ease-in-out) infinite alternate; }
.arm__c { transform-origin: 138px 50px; animation: armC 5.2s var(--ease-in-out) infinite alternate; }
@keyframes armA { from { transform: rotate(-6deg); } to { transform: rotate(16deg); } }
@keyframes armB { from { transform: rotate(10deg); } to { transform: rotate(-14deg); } }
@keyframes armC { from { transform: rotate(-12deg); } to { transform: rotate(26deg); } }
.arm__box { fill: rgba(255, 106, 19, .14); stroke: var(--accent); stroke-width: 1.5; }

/* Art: sprout */
.art--sprout path { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art--sprout .sprout__leaf { stroke: var(--accent); fill: rgba(255, 106, 19, .12); }
.js .art--sprout path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-in-out); }
.js .art--sprout .sprout__leaf { fill-opacity: 0; transition: stroke-dashoffset 1.3s var(--ease-in-out), fill-opacity 1s var(--ease); }
.js .art--sprout .sprout__stem { transition-delay: .5s; }
.js .art--sprout .sprout__leaf--r { transition-delay: 1.1s, 2.1s; }
.js .art--sprout .sprout__leaf--l { transition-delay: 1.4s, 2.4s; }
.js .domain.is-in .art--sprout path { stroke-dashoffset: 0; } /* tag selector: Chrome won't re-match camelCase SVG attributes on ancestor class changes */
.js .domain.is-in .art--sprout .sprout__leaf { fill-opacity: 1; }

/* Pause illustrations while off screen */
.domain__art:not(.is-live) *, .domain__art:not(.is-live) { animation-play-state: paused !important; }

/* ==========================================================================
   Thoughts (quotes): full-bleed black band
   ========================================================================== */
.thoughts {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(96px, 12vw, 160px);
  background: var(--band);
  color: #fff;
  transition: background-color .4s var(--ease);
}
.thoughts__glow {
  position: absolute; z-index: -1;
  right: -240px; top: -320px;
  width: 960px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 106, 19, .24), rgba(255, 106, 19, 0));
  pointer-events: none;
}
.thoughts__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 104px); align-items: start; }
.thoughts__head { position: sticky; top: 128px; display: grid; justify-items: start; gap: 22px; }

.quotes { display: grid; gap: 40px; }
.quotes__stage { display: grid; gap: 64px; }
.quote { display: grid; align-content: start; gap: 30px; }
.quote::before {
  content: "\201C";
  height: .42em;
  font-family: var(--font-serif); font-size: 124px; line-height: .8;
  color: var(--orange);
}
.quote p {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 46px); line-height: 1.14; letter-spacing: -.012em;
  color: #fff;
  text-wrap: balance;
}
.quote figcaption { color: rgba(255, 255, 255, .55); }

.js .quotes__stage { gap: 0; min-height: clamp(320px, 30vw, 400px); }
.js .quote {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .9s var(--ease), visibility 0s .9s;
}
.js .quote.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .9s var(--ease) .18s, transform 1.1s var(--ease) .18s, visibility 0s;
}

.quotes__bar { display: none; }
.js .quotes__bar {
  display: flex; align-items: center; gap: 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.quotes__count { display: flex; gap: 6px; font: 500 13px var(--font-mono); color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.quotes__count b { font-weight: 500; color: #fff; }
.quotes__progress { flex: 1; height: 1px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.quotes__progress span {
  display: block; height: 100%;
  background: var(--orange);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.quotes__controls { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease);
}
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.icon-btn:hover { background: #fff; color: #0B0B0C; box-shadow: inset 0 0 0 1px #fff; }
.icon-btn:active { transform: scale(.93); }
.icon-btn--lg { width: 52px; height: 52px; }
.icon-btn--lg svg { width: 19px; height: 19px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__email {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.contact__mail {
  padding-bottom: 8px;
  font-size: clamp(26px, 4.3vw, 58px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1;
  color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color .3s var(--ease), translate .5s var(--ease);
}
.contact__mail:hover { color: var(--accent); }
.contact__email .link { font-size: 14px; color: var(--text-3); border-color: transparent; }
.contact__email .link:hover { color: var(--accent); }

.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.info { display: grid; align-content: start; gap: 6px; padding: 32px 32px 0; border-left: 1px solid var(--line); }
.info:first-child { padding-left: 0; border-left: 0; }
.info:last-child { padding-right: 0; }
.info__icon { width: 22px; height: 22px; margin-bottom: 20px; fill: none; stroke: var(--accent); stroke-width: 1.5; }
.info__label { font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.info__value { margin-top: 4px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.info__value a { transition: color .3s; }
.info__value a:hover { color: var(--accent); }
.info__meta { font-size: 14.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.avail { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--text-3); }
.avail.is-on { color: var(--accent); }
.info__links { margin-top: 6px; }
.info__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: color .3s var(--ease);
}
.info__links li:last-child a { border-bottom: 0; }
.info__links svg { width: 15px; height: 15px; fill: none; stroke: var(--text-4); transition: stroke .3s, transform .4s var(--ease); }
.info__links a:hover { color: var(--accent); }
.info__links a:hover svg { stroke: var(--accent); transform: translate(2px, -2px); }

/* ==========================================================================
   Footer: full-bleed black
   ========================================================================== */
.footer {
  padding-block: clamp(72px, 9vw, 112px) 30px;
  background: var(--band);
  color: rgba(255, 255, 255, .62);
  transition: background-color .4s var(--ease);
  overflow: hidden;
}
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .5fr)); gap: 40px; align-items: start; }
.footer__mark { width: 84px; height: 40px; color: #fff; transition: transform .6s var(--spring); }
.footer__brand a:hover .footer__mark { transform: rotate(-5deg) scale(1.04); }
.footer__brand p { max-width: 34ch; margin-top: 24px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .66); }
.footer__contact { display: grid; justify-items: start; gap: 10px; margin-top: 28px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #fff; transition: color .3s; }
.footer__contact a:hover { color: var(--orange); }
.footer__contact svg { width: 17px; height: 17px; fill: none; stroke: var(--orange); }
.footer__col { display: grid; align-content: start; justify-items: start; gap: 12px; }
.footer__label { margin-bottom: 6px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.footer__col a { font-size: 15px; font-weight: 500; color: #fff; transition: color .3s; }
.footer__col a:hover { color: var(--orange); }
.footer__word {
  margin: clamp(64px, 9vw, 120px) 0 clamp(28px, 4vw, 44px);
  font-size: clamp(54px, calc((100vw - 2 * var(--gutter)) / 4.45), 250px);
  font-weight: 650; line-height: .82; letter-spacing: -.06em;
  color: #fff;
  white-space: nowrap;
}
.footer__word em { color: var(--orange); letter-spacing: -.03em; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}
.footer__up { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: #fff; transition: color .3s; }
.footer__up svg { width: 16px; height: 16px; fill: none; stroke: currentColor; transition: transform .4s var(--ease); }
.footer__up:hover { color: var(--orange); }
.footer__up:hover svg { transform: translateY(-3px); }

/* Dark theme: the bands become a lifted surface with a hairline edge */
:root[data-theme="dark"] .thoughts,
:root[data-theme="dark"] .footer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(255, 255, 255, .04); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: var(--invert); color: var(--invert-text);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 24px 48px -20px rgba(11, 11, 12, .45);
  opacity: 0; transform: translate(-50%, 24px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .55s var(--spring);
}
.toast svg { width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 2; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links { gap: 26px; }
}
@media (max-width: 1023px) {
  .nav__links, .nav__blog { display: none; }
  .nav__toggle { display: block; }
  .nav__actions { margin-left: auto; gap: 18px; }

  .hero { padding-top: 108px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero__copy { padding-bottom: 8px; }
  .hero__title { font-size: clamp(56px, 15vw, 120px); }
  .portrait { justify-self: center; max-width: 480px; margin-top: 28px; }

  .about__foot { grid-template-columns: minmax(0, 1fr); }
  .thoughts__grid { grid-template-columns: minmax(0, 1fr); }
  .thoughts__head { position: static; }

  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { padding: 30px 24px 0; border-left: 0; }
  .pillar:nth-child(2n + 1) { padding-left: 0; }
  .pillar:nth-child(2n) { padding-right: 0; border-left: 1px solid var(--line); }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 8px; }

  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .domain, .domain:nth-child(3n + 1), .domain:nth-child(3n), .domain:nth-last-child(-n + 3) { padding: 40px 28px 46px; border-left: 0; border-bottom: 1px solid var(--line); }
  .domain:nth-child(2n + 1) { padding-left: 0; }
  .domain:nth-child(2n) { padding-right: 0; border-left: 1px solid var(--line); }
  .domain:nth-last-child(-n + 2) { border-bottom: 0; }

  .footer__top { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, auto)); gap: 32px 48px; }
}
@media (max-width: 720px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .info, .info:first-child, .info:last-child { padding: 28px 0; border-left: 0; }
  .info + .info { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div, .facts div:first-child { grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav__inner { height: 56px; }
  .nav__mark { width: 44px; height: 21px; }
  .hero__cta .btn { width: 100%; }
  .hero__base { flex-direction: column; align-items: flex-start; }
  .focus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; row-gap: 6px; }
  .focus li + li { border-left: 0; }
  .focus a, .focus li:first-child a { padding: 8px 0; }
  .hero__base .socials { margin-left: -10px; margin-right: 0; }

  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar:nth-child(2n), .pillar:nth-child(2n + 1) { padding: 30px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); margin-top: 8px; }
  .pillar__text { min-height: 0; }

  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .domain, .domain:nth-child(2n), .domain:nth-child(2n + 1), .domain:nth-last-child(-n + 2) { padding: 36px 0 40px; border-left: 0; border-bottom: 1px solid var(--line); }
  .domain:last-child { border-bottom: 0; }
  .domain__art { height: 150px; }

  .quote::before { font-size: 100px; }
  .js .quotes__bar { flex-wrap: wrap; row-gap: 18px; }
  .quotes__progress { order: 3; flex-basis: 100%; }
  .quotes__controls { margin-left: auto; }
  .contact__mail { font-size: clamp(22px, 7.2vw, 30px); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .quotes__controls .icon-btn:not(.icon-btn--lg) { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .nn__pulses { display: none; }
}

/* ---------- Print ---------- */
@media print {
  :root, :root[data-theme="dark"] { --bg: #FFFFFF; --text: #0B0B0C; --text-2: #333338; --text-3: #64646C; --text-4: #737379; --line: rgba(11, 11, 12, .11); --rule: #0B0B0C; --accent: #C2410C; --art-fill: #FFFFFF; color-scheme: light; }
  .nav, .menu, .theme-toggle, .quotes__bar, .toast, .portrait__outline, .hero__base .socials { display: none !important; }
  .thoughts, .footer { background: #fff; color: #000; }
  .quote p, .display--dark, .footer__word, .footer__col a { color: #000 !important; }
  .js [data-reveal], .js [data-intro], .js .quote { opacity: 1 !important; transform: none !important; filter: none !important; visibility: visible !important; }
}
