/* NimingAI — site styles.
   Grey paper + near-black sections, one accent (cobalt). Headlines: Archivo, heavy, semi-expanded, capitals.
   Sections marked .inverse use the --inv-* tokens. Sections marked .lined draw the page grid and "+" marks. */

:root {
  --paper: #ecebe7;
  --ink: #141414;
  --cobalt: #2b45f5;

  --bg: var(--paper);
  --text: var(--ink);
  --muted: #64625d;
  --faint: #a19f99;
  --line: rgba(20, 20, 20, .1);
  --cell: rgba(20, 20, 20, .03);
  --accent: var(--cobalt);
  --accent-hover: #1d34d6;
  --on-accent: #fff;

  --inv-bg: #151515;
  --inv-text: #ecebe7;
  --inv-muted: #94928c;
  --inv-faint: #55534f;
  --inv-line: rgba(236, 235, 231, .1);
  --inv-cell: rgba(236, 235, 231, .03);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: 20px;
  --max: 1360px;
  --header: 72px;
  /* left/right edge of the content column, relative to any full-width block */
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  /* width / height of public/assets/logo.svg; build_logos.py prints it */
  --logo-ratio: 7.425;

  interpolate-size: allow-keywords;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

:root[data-theme="dark"] {
  --bg: #101010; --text: #ecebe7; --muted: #94928c; --faint: #4f4e4a; --line: rgba(236, 235, 231, .09); --cell: rgba(236, 235, 231, .03);
  --accent: #4a62ff; --accent-hover: #6176ff;
  --inv-bg: #1b1b1b; --inv-line: rgba(236, 235, 231, .09);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101010; --text: #ecebe7; --muted: #94928c; --faint: #4f4e4a; --line: rgba(236, 235, 231, .09); --cell: rgba(236, 235, 231, .03);
    --accent: #4a62ff; --accent-hover: #6176ff;
    --inv-bg: #1b1b1b; --inv-line: rgba(236, 235, 231, .09);
    color-scheme: dark;
  }
}

.inverse {
  --bg: var(--inv-bg); --text: var(--inv-text); --muted: var(--inv-muted); --faint: var(--inv-faint);
  --line: var(--inv-line); --cell: var(--inv-cell);
  background: var(--bg);
  color: var(--text);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 400; background: var(--accent); color: var(--on-accent); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- section rulers ----------
   Each .lined section starts with a hairline and a fine measuring scale along its top edge:
   the "measure first" idea, drawn. Short ticks every 16px, taller ones every 80px. */

.lined { position: relative; isolation: isolate; border-top: 1px solid var(--line); }
.lined::before {
  --tick: color-mix(in srgb, var(--muted) 55%, transparent);
  content: ""; position: absolute; top: 0; left: var(--edge); right: var(--edge); height: 10px; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 80px) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 16px) 0 0 / 100% 5px no-repeat;
}

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -0.015em;
}
.dim { color: var(--faint); }
.h1 { font-size: clamp(42px, 5.6vw, 92px); }
.h2 { font-size: clamp(34px, 4.4vw, 72px); }
.h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.1; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.label .n { color: var(--text); }

.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--muted); max-width: 34em; }
.statement { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.22; font-weight: 500; letter-spacing: -0.01em; max-width: 24em; }
.statement .dim { color: var(--faint); }
.small { font-size: 15px; color: var(--muted); }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 52px; padding: 0 22px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .3s ease;
}
.btn::after { content: "\2192"; font-family: var(--body); font-size: 16px; transition: transform .35s ease; }
.btn:hover { background: var(--accent-hover); }
.btn:hover::after { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--cell); box-shadow: inset 0 0 0 1px var(--text); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 12px; }

.link {
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s cubic-bezier(.6, 0, .2, 1);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.mail {
  font-family: var(--display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(24px, 3.4vw, 52px); letter-spacing: -0.015em; line-height: 1.1;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .5s cubic-bezier(.6, 0, .2, 1), color .3s ease;
}
.mail:hover { background-size: 100% 2px; }

/* ---------- header ---------- */

.site-header { position: relative; z-index: 50; background: var(--bg); border-top: 0; view-transition-name: site-header; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: var(--header); }
.site-header .logo { margin-right: auto; }

/* the logo is one SVG used as a mask, so it takes the text color everywhere */
.logo { display: block; color: var(--text); }
.logo__mark {
  display: block; height: 20px; aspect-ratio: var(--logo-ratio); background: currentColor;
  -webkit-mask: url(/assets/logo.svg) center / contain no-repeat;
  mask: url(/assets/logo.svg) center / contain no-repeat;
}

.site-nav ul { display: flex; gap: 30px; }
.site-nav a {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; color: var(--muted); transition: color .25s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::before { content: "+ "; color: var(--accent); }

.theme-toggle {
  display: grid; place-items: center; width: 32px; height: 32px; margin: 0 -6px;
  background: none; border: 0; padding: 0; color: var(--text); cursor: pointer;
}
.theme-toggle span {
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform .6s cubic-bezier(.6, 0, .2, 1);
}
:root[data-theme="dark"] .theme-toggle span { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle span { transform: rotate(180deg); } }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px 0; color: var(--text); cursor: pointer;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    display: none; position: fixed; inset: var(--header) 0 0 0; z-index: 49;
    background: var(--inv-bg); color: var(--inv-text); padding: 32px var(--gutter);
  }
  .menu-open .site-nav { display: block; }
  .menu-open body { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--inv-line); }
  .site-nav a {
    display: block; padding: 18px 0; color: var(--inv-text);
    font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 34px; letter-spacing: -0.01em;
  }
  .site-nav a[aria-current="page"]::before { content: "+ "; }
}

/* ---------- split hero (home + inner pages): copy left, image bleeding to the right edge ---------- */

.split-hero { display: grid; grid-template-columns: var(--edge) minmax(0, 1fr) var(--edge); }
.split-hero__copy { grid-column: 2; padding: 64px 0 56px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.split-hero .media { grid-column: 1 / -1; min-height: 70vw; }
@media (min-width: 960px) {
  .split-hero { grid-template-columns: var(--edge) minmax(0, 1.12fr) minmax(0, .88fr); min-height: min(calc(100svh - var(--header)), 900px); }
  .split-hero__copy { padding: 80px 48px 80px 0; }
  .split-hero .media { grid-column: 3; min-height: 0; }
  .page-hero .split-hero { min-height: 640px; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* headline lines slide up out of a mask on load */
.ln { display: block; overflow-x: visible; overflow-y: clip; padding-bottom: .04em; }
.ln > span { display: block; }

/* ---------- image slots ----------
   Each <figure class="media"> holds an <img> from /assets/img/. Until the file exists, the img removes
   itself and the soft placeholder below shows instead. */

.media {
  --ph-bg: #d8d6d0; --ph-hi: #f7f6f2; --ph-mid: #e9e7e1;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ph-bg);
}
.inverse .media, :root[data-theme="dark"] .media { --ph-bg: #1c1c1f; --ph-hi: #34343a; --ph-mid: #26262b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .media { --ph-bg: #1c1c1f; --ph-hi: #34343a; --ph-mid: #26262b; } }
.media::before, .media::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(50px); z-index: -1;
}
.media::before {
  width: 62%; aspect-ratio: 1; left: 12%; top: 18%;
  background: radial-gradient(circle at 40% 40%, #5a6dff, var(--cobalt) 55%, transparent 72%);
  opacity: .75;
}
.media::after {
  width: 75%; aspect-ratio: 1; right: -18%; bottom: -24%;
  background: radial-gradient(circle, var(--ph-hi) 0%, var(--ph-mid) 45%, transparent 70%);
}
.media--alt::before { left: 46%; top: 30%; width: 48%; opacity: .55; }
.media--alt::after { left: -20%; right: auto; top: -30%; bottom: auto; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .media::before { animation: drift 16s ease-in-out infinite alternate; }
  .media::after { animation: drift 20s ease-in-out infinite alternate-reverse; }
  @keyframes drift { to { transform: translate(8%, -6%) scale(1.08); } }
}


/* ---------- marquee ---------- */

.marquee { overflow: hidden; padding: 22px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 40px; padding-right: 40px; }
.marquee__track span { font-family: var(--display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.01em; }
.marquee__track i { font-style: normal; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__inner { display: inline-flex; animation: marquee 38s linear infinite; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}

/* ---------- sections ---------- */

/* padding-block only, so a .wrap.section keeps the side gutters */
.section { padding-block: 88px; }
@media (min-width: 960px) { .section { padding-block: 128px; } }
.sec-head { display: grid; gap: 22px; margin-bottom: 56px; }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: 1fr 3fr; gap: 0; margin-bottom: 72px; }
  .sec-head > .label { padding-top: 10px; align-self: start; }
  .sec-head > div { display: grid; gap: 24px; }
}

/* cells that sit on the page grid */
.cells { display: grid; border-top: 1px solid var(--line); }
.cells > * { padding: 32px 24px 36px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cells--2, .cells--4 { grid-template-columns: repeat(2, 1fr); } .cells > * { padding-right: 28px; } }
@media (min-width: 960px) { .cells--4 { grid-template-columns: repeat(4, 1fr); } }
.cell__num { display: block; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 44px; line-height: 1; color: var(--faint); margin-bottom: 40px; }
.cells h3 { margin-bottom: 12px; }
.cells p { color: var(--muted); font-size: 16px; }
.cell--head { display: flex; flex-direction: column; gap: 18px; }

/* numbered rows (research areas) */
.rows { border-top: 1px solid var(--line); }
.rows li { display: grid; gap: 8px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rows .n { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 6px; }
.rows p { color: var(--muted); font-size: 16px; max-width: 32em; }
@media (min-width: 760px) { .rows li { grid-template-columns: 64px 1fr 1.2fr; align-items: baseline; } }
.split-2 { display: grid; gap: 48px; }
.split-2 > :first-child { display: grid; gap: 20px; align-content: start; }
@media (min-width: 960px) { .split-2 { grid-template-columns: 1fr 1.25fr; gap: 64px; } .split-2 > :first-child { display: grid; gap: 24px; align-content: start; } }

/* ---------- accordions (services on home, FAQ) ---------- */

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: grid; grid-template-columns: 64px 1fr 32px; align-items: center; gap: 16px;
  padding: 26px 0; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__num { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; color: var(--faint); transition: color .3s; }
.acc__title { font-family: var(--display); font-weight: 700; font-stretch: 112%; text-transform: uppercase; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -0.005em; }
.acc--plain .acc__title { text-transform: none; font-weight: 600; font-stretch: 100%; font-size: clamp(17px, 1.5vw, 20px); }
.acc__icon { position: relative; width: 16px; height: 16px; justify-self: end; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: currentColor; transition: transform .4s ease; }
.acc__icon::after { transform: rotate(90deg); }
.acc details[open] .acc__icon::after { transform: rotate(0deg); }
.acc details[open] .acc__num, .acc summary:hover .acc__num { color: var(--accent); }
.acc__body { padding: 0 48px 30px 80px; display: grid; gap: 22px; justify-items: start; }
.acc__body p { color: var(--muted); max-width: 46em; }
@media (max-width: 639px) { .acc summary { grid-template-columns: 44px 1fr 24px; } .acc__body { padding: 0 0 26px 60px; } }
@media (prefers-reduced-motion: no-preference) {
  .acc details::details-content { block-size: 0; overflow-y: clip; transition: block-size .5s cubic-bezier(.6, 0, .2, 1), content-visibility .5s allow-discrete; }
  .acc details[open]::details-content { block-size: auto; }
}

/* ---------- services page blocks ---------- */

.svc { padding: 40px 28px 44px 0; border-bottom: 1px solid var(--line); display: grid; gap: 16px; align-content: start; scroll-margin-top: 24px; }
.svc .cell__num { margin-bottom: 18px; }
.svc p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips li { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--line); color: var(--text); }

/* ---------- contact form ----------
   Hairline fields on the page grid: mono labels, underline inputs, cobalt on focus. */

.form { display: grid; border-top: 1px solid var(--line); }
.form__row { display: grid; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, 1fr); column-gap: 28px; } }
.field { display: grid; gap: 10px; padding: 26px 0 18px; border-bottom: 1px solid var(--line); transition: border-color .3s ease; }
.field:focus-within { border-bottom-color: var(--accent); }
.field label {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.field label .n { color: var(--accent); margin-right: 8px; }
.field:has(:required) label::after { content: " *"; color: var(--accent); }
.field input, .field textarea {
  width: 100%; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: none; color: var(--text);
  font: inherit; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; resize: vertical;
}
.field textarea { min-height: 3em; field-sizing: content; }
@supports (field-sizing: content) { .field textarea { resize: none; } }
.field input:focus, .field textarea:focus { outline: none; }
.field ::placeholder { color: var(--faint); opacity: 1; }
.field.is-invalid { border-bottom-color: #d4351c; }
.field.is-invalid label { color: #d4351c; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 32px; }
.form__status { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form__status.is-ok { color: var(--accent); }
.form__status.is-error { color: #d4351c; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }

/* ---------- founder ---------- */

.founder { display: grid; gap: 32px; }

.founder__text { display: grid; gap: 18px; justify-items: start; }

/* ---------- proof (case studies, numbers): markup is ready in index.html, commented out ---------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { padding: 32px 24px 36px 0; border-bottom: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(44px, 5vw, 80px); line-height: 1; }
.stats span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.work { display: grid; gap: 24px; }
@media (min-width: 960px) { .work { grid-template-columns: repeat(2, 1fr); } }
.work a { display: grid; gap: 16px; text-decoration: none; }
.work .media { aspect-ratio: 4 / 3; }
.work .media img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.work a:hover .media img { transform: scale(1.04); }

/* ---------- call to action + footer ---------- */

.cta { padding: 120px 0; }
@media (min-width: 960px) { .cta { padding: 160px 0; } }
.cta__grid { display: grid; gap: 40px; align-items: end; }
@media (min-width: 960px) { .cta__grid { grid-template-columns: 1.4fr 1fr; } }
.cta__side { display: grid; gap: 28px; justify-items: start; }

.site-footer { padding: 72px 0 0; overflow: hidden; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__grid p { color: var(--muted); font-size: 15px; max-width: 22em; margin-top: 18px; }
.footer__grid .label { margin-bottom: 16px; }
.footer__grid ul a { font-size: 15px; line-height: 2.1; text-decoration: none; color: var(--text); transition: color .2s; }
.footer__grid ul a:hover { color: var(--accent); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 64px; padding: 22px 0; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--text); }
.footer__word { display: block; width: 100%; aspect-ratio: var(--logo-ratio); margin: 32px 0 -1px; background: var(--faint); opacity: .35;
  -webkit-mask: url(/assets/logo.svg) center / contain no-repeat; mask: url(/assets/logo.svg) center / contain no-repeat; }

/* ---------- motion ----------
   1. headline lines slide up on load   2. blocks ease in on scroll (site.js adds .sr)   3. images unveil
   4. page and theme cross-fades        All off when the visitor's system asks for reduced motion. */

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  .ln > span { animation: line-up 1s cubic-bezier(.2, .8, .2, 1) both; }
  .ln:nth-child(2) > span { animation-delay: .08s; }
  .ln:nth-child(3) > span { animation-delay: .16s; }
  .ln:nth-child(4) > span { animation-delay: .24s; }
  @keyframes line-up { from { transform: translateY(105%); } }

  .reveal { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .25s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }

  .split-hero .media { animation: unveil 1.3s cubic-bezier(.7, 0, .2, 1) both; }
  @keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

  .sr { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .sr.is-in { opacity: 1; transform: none; }

  ::view-transition-old(root) { animation: fade-out .3s ease both; }
  ::view-transition-new(root) { animation: fade-in .5s ease both; }
  :root.theme-switching::view-transition-old(root) { animation: fade-out .5s ease both; }
  :root.theme-switching::view-transition-new(root) { animation: fade-in .5s ease both; }
  @keyframes fade-out { to { opacity: 0; } }
  @keyframes fade-in { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- home hero specifics ---------- */
html, body { overflow-x: clip; }
.hero__plain { display: grid; gap: 36px; padding: 96px var(--gutter) 88px; }
@media (min-width: 960px) { .hero__plain { padding-top: 136px; padding-bottom: 120px; gap: 44px; } }
.hero__title { font-size: 9.2vw; white-space: nowrap; }
@media (min-width: 960px) { .hero__title { font-size: clamp(64px, 8.4vw, 136px); } }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px;
  padding-top: 32px; border-top: 1px solid var(--line); }
.marquee__track { font-family: var(--display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.01em; line-height: 1; }
.marquee__track span { font: inherit; }
.cta .mail { font-size: clamp(22px, 2.3vw, 36px); }
.cells .mail { font-size: clamp(20px, 2.1vw, 34px); }
@media (max-width: 959px) { .h1 { font-size: 9vw; } }
.sec-head > div { display: grid; gap: 20px; }

