/* NevaBot — public site. Mobile first. World: the sun-path chart a solar engineer reads every day. */

@font-face { font-family: "Clash Grotesk"; src: url("../fonts/clash-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/clash-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("../fonts/clash-grotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #f2f3ef;
  --paper-2: #e6e8e2;
  --ink: #11161c;
  --ink-soft: #444c56;
  --cobalt: #1f4fbf;
  --cobalt-ink: #f4f6fb;
  --cobalt-soft: #c9d3ec;
  --sun: #f4b400;
  --sun-ink: #11161c;
  --night: #11161c;
  --night-2: #1b222b;
  --night-ink: #eef0ea;
  --night-soft: #a9b0b8;
  --error: #b42318;

  --font: "Clash Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step-small: 0.875rem;                                   /* 14 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);  /* 17–19 */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);    /* 20–26 */
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);           /* 32–64 */
  --step-mark: clamp(5.5rem, 21vw, 12.5rem);                /* the name */

  --gutter: 16px;
  --section: clamp(96px, 12vw, 200px);
  --radius: 0;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-weight: 400;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
::selection { background: var(--cobalt); color: var(--cobalt-ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
html { scrollbar-color: var(--ink-soft) var(--paper-2); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* ---------- Buttons: square, flat, one fill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn:hover { background: var(--cobalt); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--sun { background: var(--sun); color: var(--sun-ink); }
.btn--sun:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--sun); color: var(--sun-ink); }
.btn--quiet { background: var(--paper-2); color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-arrow { display: inline-flex; gap: .4em; align-items: baseline; font-weight: 500; }
.link-arrow::after { content: ""; width: .7em; height: .7em; background: currentColor; mask: url("../img/arrow.svg") center / contain no-repeat; -webkit-mask: url("../img/arrow.svg") center / contain no-repeat; transition: transform var(--t-hover) var(--ease-out); align-self: center; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.bar {
  position: relative; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
}
.bar__mark { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
.bar__mark img { height: 32px; width: auto; }
.nav { display: none; }
.bar__tools { display: flex; align-items: center; gap: 8px; }
.langs { display: flex; gap: 2px; }
.langs a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 6px; text-decoration: none; font-size: var(--step-small); font-weight: 500; color: var(--ink-soft); }
.langs a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.langs a:hover { color: var(--ink); }
.menu-btn { min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; background: var(--ink); color: var(--paper); font-weight: 500; cursor: pointer; }
.bar .btn { min-height: 44px; padding: 0 16px; }
.bar .btn--store { display: none; }

.is-home .bar { position: absolute; inset: 0 0 auto 0; }
.is-home .bar > .bar__mark { visibility: hidden; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: 14px var(--gutter) 40px; overflow-y: auto; display: none; }
.drawer.is-open { display: block; animation: drawer-in var(--t-ui) var(--ease-out); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.drawer__list > li { padding: 6px 0; }
.drawer__list a, .drawer__list .sub-toggle { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; }
.drawer__list ul { padding: 4px 0 12px 16px; }
.drawer__list ul a { font-size: 1.25rem; }
.drawer__list [aria-current="page"] { color: var(--cobalt); }
.drawer__foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 0; cursor: pointer; gap: 10px; }
.sub-toggle::after { content: ""; width: 12px; height: 12px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--t-ui) var(--ease-out); }
.sub-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translate(-3px, -3px); }
.sub[hidden] { display: none; }

@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .bar .btn--store { display: inline-flex; }
  .nav { display: block; }
  .nav > ul { display: flex; gap: 4px; align-items: center; }
  .nav > ul > li { position: relative; }
  .nav a, .nav .sub-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
  .nav a:hover, .nav .sub-toggle:hover { text-decoration: underline; text-decoration-thickness: 2px; }
  .nav [aria-current="page"], .nav .is-active > a, .nav .is-active > .sub-toggle { text-decoration: underline; text-decoration-thickness: 2px; }
  .nav .sub-toggle::after { width: 7px; height: 7px; border-width: 0 1.5px 1.5px 0; }
  .nav .sub { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--paper); padding: 8px 0; box-shadow: 0 18px 40px -12px rgba(17, 22, 28, .28); } /* taste-skill-ignore: menu overlay */
  .nav .sub a { display: flex; min-height: 44px; padding: 0 18px; font-weight: 400; }
  .nav .sub .sub { left: 100%; top: 0; }
}

/* ---------- Stage (home first chapter + split pages) ---------- */
.stage { position: relative; }
.stage__frame { position: relative; margin: 12px 12px 0; height: 58svh; overflow: hidden; background: var(--night); }
.stage__col { position: relative; }

@media (min-width: 1024px) {
  .stage { display: grid; grid-template-columns: 47% 53%; align-items: start; }
  .stage__frame { position: sticky; top: 20px; margin: 20px 0 20px 20px; height: calc(100svh - 40px); }
}

/* slider */
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease-soft), visibility 0s linear 1.1s; }
.slide.is-current { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease-soft); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s var(--ease-soft); }
.slide.is-current img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to bottom, rgba(17, 22, 28, 0), rgba(17, 22, 28, .62)); pointer-events: none; } /* taste-skill-ignore: neutral scrim on photo */
.slide__cap { position: absolute; left: 20px; bottom: 76px; right: 20px; z-index: 2; color: var(--night-ink); max-width: 30rem; }
.slide__title { font-size: var(--step-lead); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.slide__text { margin-top: 6px; font-size: var(--step-small); line-height: 1.45; }
.slide__cta { margin-top: 14px; min-height: 44px; }
.slider-ctl { position: absolute; left: 20px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 4px; color: var(--night-ink); }
.slider-ctl button { width: 44px; height: 44px; border: 0; background: rgba(17, 22, 28, .55); color: var(--night-ink); cursor: pointer; display: grid; place-items: center; transition: background-color var(--t-hover) ease; }
.slider-ctl button:hover { background: var(--sun); color: var(--sun-ink); }
.slider-ctl svg { width: 18px; height: 18px; }
.slider-ctl__count { margin-left: 10px; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.no-js .slider-ctl { display: none; }
.frame-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.frame-empty svg { width: 70%; height: auto; }

/* hero */
.hero { position: relative; min-height: 0; padding: 28px var(--gutter) 0; display: flex; flex-direction: column; }
.hero__sentence { font-size: var(--step-body); line-height: 1.4; max-width: 30ch; }
.hero__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.mark { position: relative; font-size: var(--step-mark); font-weight: 400; letter-spacing: -0.045em; line-height: .8; margin-top: 28px; white-space: nowrap; }
.mark__ghost { display: none; }
@media (max-width: 1023px) {
  .mark { order: -1; margin: -0.18em 0 22px; }
  .is-home .mark { position: relative; z-index: 2; }
}
@media (min-width: 1024px) {
  .hero { min-height: 100svh; padding: 0 var(--gutter) 40px 0; justify-content: flex-end; }
  .hero__sentence { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%); width: min(26ch, 80%); font-size: 1.5rem; line-height: 1.3; }
  .hero .hero__actions { position: absolute; top: calc(44% + 7.5rem); left: 50%; transform: translateX(-50%); width: min(26ch, 80%); margin: 0; }
  .mark { font-size: clamp(120px, 12vw, 200px); margin: 0 0 0 -10vw; z-index: 4; transform-origin: 30% 100%; }
  .mark__ghost { display: block; position: absolute; inset: 0; color: var(--night-ink); clip-path: inset(0 calc(100% - 10vw) 0 0); pointer-events: none; }
}
@supports (animation-timeline: scroll()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .mark { animation: mark-settle linear both; animation-timeline: scroll(root); animation-range: 0 90svh; }
    @keyframes mark-settle { to { scale: .93; } }
  }
}

/* intro: narrow column on the ground */
.intro { padding: 72px var(--gutter) 96px; }
.intro__col { max-width: 78%; font-size: var(--step-body); }
.intro__col p:first-child { font-weight: 500; }
.intro__col p + p { color: var(--ink-soft); }
@media (min-width: 1024px) { .intro { padding: 120px 0 160px 15%; } .intro__col { max-width: 340px; } }

/* how it works */
.how { background: var(--cobalt); color: var(--cobalt-ink); padding: 72px var(--gutter) 88px; }
.how__head h2 { font-size: var(--step-head); }
.how__head p { margin-top: 20px; max-width: 30ch; }
@media (min-width: 1024px) {
  .how { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 120px var(--gutter) 140px 48px; margin-top: 20px; }
}
@media (min-width: 1280px) { .how { grid-template-columns: 5fr 7fr; } }

/* ---------- Swarm (live thing) ---------- */
.swarm { background: var(--night); color: var(--night-ink); padding: var(--section) var(--gutter); }
.swarm__grid { display: grid; gap: 32px; }
.swarm__plate { position: relative; aspect-ratio: 1; background: var(--night-2); }
.swarm__plate canvas { width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }
.swarm__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--night-soft); }
.js .swarm__fallback { display: none; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--night-soft); font-size: 1.125rem; cursor: pointer; text-decoration: none; transition: color var(--t-hover) ease; }
.tabs button[aria-pressed="true"] { color: var(--night-ink); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.tabs button:hover { color: var(--night-ink); }
.swarm h2 { font-size: var(--step-head); }
.swarm__text { margin-top: 24px; max-width: 34ch; color: var(--night-ink); }
.swarm__status { margin-top: 20px; font-size: var(--step-small); color: var(--night-soft); min-height: 3em; font-variant-numeric: tabular-nums; }
.swarm__actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.swarm__actions button { min-height: 60px; border: 0; text-align: left; padding: 0 20px; font-weight: 500; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.swarm__actions button:active { transform: scale(.985); }
.swarm__actions .act-charge { background: var(--sun); color: var(--sun-ink); }
.swarm__actions .act-charge:hover { background: var(--night-ink); color: var(--ink); }
.swarm__actions .act-add { background: var(--night-2); color: var(--night-ink); }
.swarm__actions .act-add:hover { background: var(--cobalt); }
@media (min-width: 900px) {
  .swarm__grid { grid-template-columns: 1fr 1fr; gap: 0; min-height: 88svh; align-items: center; }
  .swarm__plate { margin-right: 40px; }
  .swarm__actions { grid-template-columns: 1fr 1fr; }
  .swarm__actions button { min-height: 72px; }
}

/* ---------- Work index: big names, fixed preview ---------- */
.work { padding: var(--section) var(--gutter); }
.work__head { font-size: 1.75rem; margin-bottom: 48px; }
.work__grid { display: grid; gap: 40px; }
.work__list li + li { margin-top: 40px; }
.work__item { display: block; text-decoration: none; }
.work__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 14px; background: var(--paper-2); }
.work__name { display: block; font-size: 9.5vw; line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.work__meta { display: block; margin-top: 8px; font-size: var(--step-small); color: var(--ink-soft); }
.work__frame { display: none; }
.work__more { margin-top: 56px; }
@media (min-width: 1024px) {
  .work__grid { grid-template-columns: 8fr 4fr; gap: 32px; align-items: start; }
  .work__list li + li { margin-top: 0; }
  .work__item { display: flex; align-items: baseline; gap: 24px; padding: 10px 0; }
  .work__item img { display: none; }
  .work__name { font-size: clamp(44px, 5.4vw, 80px); color: var(--ink-soft); transition: color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
  .work__item.is-active .work__name, .work__item:focus-visible .work__name { color: var(--ink); transform: translateX(8px); }
  .work__meta { margin: 0; white-space: nowrap; }
  .work__frame { display: block; position: sticky; top: 15vh; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
  .work__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 260ms ease; }
  .work__frame img.is-active { opacity: 1; }
}

/* ---------- Letter ---------- */
.letter { background: var(--paper-2); padding: var(--section) var(--gutter); }
.letter__col { max-width: 520px; margin: 0 auto; }
.letter__portrait { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--cobalt); color: var(--cobalt-ink); display: grid; place-items: center; font-size: .9rem; font-weight: 500; }
.letter__body { margin-top: 28px; line-height: 1.55; }
.letter__body mark { background: var(--sun); color: var(--sun-ink); padding: 0 .15em; }
.letter__sign { margin-top: 36px; }
.letter__name { font-size: 1.375rem; font-weight: 500; }
.letter__role { font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- News: sticky photo + active list ---------- */
.newsband { padding: var(--section) var(--gutter); }
.newsband h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 40px; }
.newsband__grid { display: grid; gap: 32px; }
.newsband__photo { display: none; }
.nrow { display: block; text-decoration: none; padding: 18px 0; }
.nrow img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; background: var(--paper-2); }
.nrow__top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.nrow__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.nrow__date { font-size: var(--step-small); color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nrow__sum { margin-top: 8px; color: var(--ink-soft); max-width: 40ch; }
.newsband__more { margin-top: 32px; }
@media (min-width: 1024px) {
  .newsband__grid { grid-template-columns: 5fr 1fr 5fr; gap: 0; align-items: start; }
  .newsband__photo { display: block; position: sticky; top: 12vh; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
  .newsband__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms ease; }
  .newsband__photo img.is-active { opacity: 1; }
  .newsband__list { grid-column: 3; }
  .nrow img { display: none; }
  .nrow { padding: 16px 0; }
  .nrow__title { color: var(--ink-soft); transition: color var(--t-hover) ease; }
  .nrow.is-active .nrow__title { color: var(--ink); }
  .nrow__sum { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-ui) var(--ease-out), margin var(--t-ui) var(--ease-out); margin-top: 0; }
  .nrow__sum > span { overflow: hidden; }
  .nrow.is-active .nrow__sum { grid-template-rows: 1fr; margin-top: 8px; }
  .no-js .nrow__sum { grid-template-rows: 1fr; margin-top: 8px; }
}

/* ---------- Videos ---------- */
.videos { background: var(--cobalt); color: var(--cobalt-ink); padding: var(--section) var(--gutter); }
.videos h2 { font-size: var(--step-head); margin-bottom: 40px; }
.videos__grid { display: grid; gap: 24px; }
.vplayer { position: relative; aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vplayer__btn { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; color: var(--night-ink); }
.vplayer__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-soft); }
.vplayer__btn:hover img { transform: scale(1.03); }
.vplayer__play { position: absolute; left: 20px; bottom: 20px; width: 72px; height: 72px; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out); }
.vplayer__btn:hover .vplayer__play { transform: scale(1.06); }
.vplayer__play svg { width: 26px; height: 26px; }
.vplayer__drawn { position: absolute; inset: 0; width: 100%; height: 100%; }
.vmeta { margin-top: 14px; }
.vmeta h3 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.vmeta p { margin-top: 6px; font-size: var(--step-small); }
.vmeta a { font-size: var(--step-small); }
.videos .vmeta p, .videos .vmeta a { color: var(--cobalt-ink); }
.videos__side .vitem + .vitem { margin-top: 28px; }
@media (min-width: 1024px) { .videos__grid { grid-template-columns: 8fr 4fr; gap: 32px; } }

/* ---------- Proof: names in columns ---------- */
.proof { padding: var(--section) var(--gutter); }
.proof__grid { display: grid; gap: 28px; }
.proof h2 { font-size: 1.75rem; }
.proof__cols { columns: 2; column-gap: 20px; font-size: 1.0625rem; line-height: 1.5; }
.proof__group { break-inside: avoid; margin-bottom: 32px; }
.proof__group > p { color: var(--ink-soft); }
.proof__group li a { text-decoration: none; }
.proof__group li a:hover { text-decoration: underline; }
.proof__note { display: block; font-size: var(--step-small); color: var(--ink-soft); }
@media (min-width: 1024px) {
  .proof__grid { grid-template-columns: 3fr 1fr 8fr; gap: 0; }
  .proof__cols { grid-column: 3; columns: 3; column-gap: 32px; font-size: 1.3125rem; }
}

/* ---------- Contact band ---------- */
.contactband { background: var(--paper-2); padding: var(--section) var(--gutter) 120px; }
.contactband__grid { display: grid; gap: 28px; }
.contactband__sentence { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; }
.contactband__mid { display: flex; gap: 20px; align-items: flex-start; }
.contactband__photo { width: 96px; height: 96px; object-fit: cover; flex: none; }
.contactband__q { font-size: 1.125rem; font-weight: 500; }
.contactband__links { margin-top: 14px; display: grid; gap: 8px; font-size: 1.125rem; }
.contactband__links a { overflow-wrap: anywhere; }
.contactband__city { font-size: var(--step-small); color: var(--ink-soft); }
@media (min-width: 1024px) {
  .contactband__grid { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: start; }
  .contactband__sentence { grid-column: 1 / 6; }
  .contactband__mid { grid-column: 8 / 13; }
  .contactband__photo { width: 168px; height: 168px; }
  .contactband__city { grid-column: 8 / 13; margin-top: -8px; }
}

/* ---------- Footer: photo half, menu half ---------- */
.foot { background: var(--night); color: var(--night-ink); display: grid; }
.foot__photo { position: relative; min-height: 50svh; overflow: hidden; }
.foot__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foot__body { padding: 48px var(--gutter) 28px; display: flex; flex-direction: column; gap: 40px; }
.foot__mark { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.04em; }
.foot__menu a { display: inline-flex; min-height: 44px; align-items: center; font-size: 8vw; font-weight: 500; letter-spacing: -0.03em; text-decoration: none; transition: transform var(--t-ui) var(--ease-out), color var(--t-hover) ease; }
.foot__menu li + li { margin-top: 4px; }
.foot__menu:hover a { color: var(--night-soft); }
.foot__menu a:hover, .foot__menu a:focus-visible { color: var(--night-ink); transform: translateX(12px); }
.foot__blocks { display: grid; gap: 28px; font-size: 0.9375rem; }
.foot__blocks h2 { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: var(--night-soft); margin-bottom: 8px; }
.foot__blocks a { overflow-wrap: anywhere; }
.social { display: flex; gap: 6px; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; background: var(--night-2); color: var(--night-ink); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.social a:hover { background: var(--sun); color: var(--sun-ink); }
.social svg { width: 20px; height: 20px; }
.foot__legal { font-size: var(--step-small); color: var(--night-soft); display: grid; gap: 6px; }
.foot__legal a { color: var(--night-soft); }
@media (min-width: 1024px) {
  .foot { grid-template-columns: 1fr 1fr; min-height: 100svh; }
  .foot__photo { min-height: 0; }
  .foot__body { padding: 80px var(--gutter) 28px 8%; justify-content: space-between; }
  .foot__menu a { font-size: 2.6vw; }
  .foot__menu li + li { margin-top: 12px; }
  .foot__blocks { grid-template-columns: 1fr 1fr; }
}

/* ---------- Inner pages ---------- */
.page-head { padding: 40px var(--gutter) 48px; }
.page-head h1 { font-size: var(--step-head); max-width: 18ch; }
.page-head p { margin-top: 20px; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
.crumbs { font-size: var(--step-small); margin-bottom: 20px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.notice { margin: 0 var(--gutter) 24px; padding: 14px 18px; background: var(--paper-2); font-size: var(--step-small); max-width: 60ch; }
.split { display: grid; gap: 0; }
.split__media { position: relative; margin: 0 12px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: 40px var(--gutter) var(--section); }
.split__body h1 { font-size: var(--step-head); }
.split__meta { margin-top: 16px; font-size: var(--step-small); color: var(--ink-soft); display: flex; gap: 16px; flex-wrap: wrap; }
.split__lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 47% 53%; align-items: start; }
  .split__media { position: sticky; top: 20px; margin: 0 0 20px 20px; aspect-ratio: auto; height: calc(100svh - 104px); }
  .split__body { padding: 8px 56px var(--section) 56px; }
}
.single { padding: 0 var(--gutter) var(--section); }
.single > * { max-width: 46rem; }

/* prose */
.prose { margin-top: 40px; max-width: 46rem; line-height: 1.6; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; letter-spacing: -0.01em; }
.prose ul { list-style: square; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.6em 0; padding: 20px 24px; font-size: var(--step-lead); line-height: 1.35; background: var(--paper-2); }
.prose a { color: var(--cobalt); }
.prose img { margin: 1.6em 0; }
.prose figcaption { font-size: var(--step-small); color: var(--ink-soft); margin-top: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step-small); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--paper-2); }
.prose hr { border: 0; height: 2px; background: var(--paper-2); }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--paper-2); padding: 0 .25em; }

/* children pages list */
.children { margin-top: 56px; }
.children h2 { font-size: 1.5rem; margin-bottom: 16px; }
.children a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; font-size: 1.25rem; font-weight: 500; }
.children a:hover { color: var(--cobalt); }

/* news list (ledger) */
.ledger { padding: 0 var(--gutter) var(--section); }
.ledger__row { display: grid; gap: 14px; padding: 28px 0; text-decoration: none; }
.ledger__row:nth-child(even) { background: var(--paper-2); margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.ledger__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.ledger__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.ledger__row:hover .ledger__img img { transform: scale(1.035); }
.ledger__date { font-size: var(--step-small); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ledger__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
.ledger__row:hover .ledger__title { color: var(--cobalt); }
.ledger__sum { color: var(--ink-soft); max-width: 46ch; margin-top: 10px; }
@media (min-width: 1024px) {
  .ledger__row { grid-template-columns: 2fr 6fr 4fr; gap: 32px; align-items: start; padding: 36px 0; }
  .ledger__img { order: 3; }
}
.pager { display: flex; gap: 8px; align-items: center; padding: 0 var(--gutter) var(--section); flex-wrap: wrap; }
.pager a, .pager span { min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; padding: 0 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pager a { background: var(--paper-2); }
.pager a:hover { background: var(--ink); color: var(--paper); }
.pager [aria-current="page"] { background: var(--ink); color: var(--paper); }
.empty { padding: 0 var(--gutter) var(--section); font-size: var(--step-lead); color: var(--ink-soft); }

/* gallery list */
.glist { padding: 0 var(--gutter) var(--section); display: grid; gap: 40px 32px; }
.gitem { display: block; text-decoration: none; }
.gitem__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.gitem__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.gitem:hover .gitem__img img { transform: scale(1.04); }
.gitem__title { margin-top: 14px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.gitem__meta { margin-top: 4px; font-size: var(--step-small); color: var(--ink-soft); }
@media (min-width: 768px) { .glist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .glist { grid-template-columns: repeat(12, 1fr); }
  .gitem { grid-column: span 4; }
  .gitem:first-child { grid-column: span 8; grid-row: span 2; }
  .gitem:first-child .gitem__img { aspect-ratio: 16 / 11; }
  .gitem:first-child .gitem__title { font-size: var(--step-head); }
}

/* image grid + lightbox */
.pics { margin-top: 64px; }
.pics h2 { font-size: 1.5rem; margin-bottom: 20px; }
.pics__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pics__grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.pics__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft), opacity var(--t-hover) ease; }
.pics__grid a:hover img { transform: scale(1.05); }
.pics__grid figure { margin: 0; }
.pics__grid figcaption { font-size: var(--step-small); color: var(--ink-soft); margin-top: 6px; }
@media (min-width: 768px) { .pics__grid { grid-template-columns: repeat(3, 1fr); } }
.pics--wide { padding: 0 var(--gutter) var(--section); margin-top: 0; }
@media (min-width: 1024px) { .pics--wide .pics__grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100svh; max-width: none; max-height: none; background: var(--night); color: var(--night-ink); }
.lightbox::backdrop { background: var(--night); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: drawer-in var(--t-ui) var(--ease-out); }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gutter); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__cap { padding: 12px var(--gutter) 20px; font-size: var(--step-small); color: var(--night-soft); min-height: 48px; }
.lightbox button { min-width: 48px; min-height: 48px; border: 0; background: var(--night-2); color: var(--night-ink); cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--sun); color: var(--sun-ink); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: var(--gutter); }
.lightbox__next { right: var(--gutter); }
.lightbox svg { width: 20px; height: 20px; }

/* products page */
.plist { padding: 0 var(--gutter) var(--section); }

/* contact page */
.cinfo { margin-top: 36px; display: grid; gap: 18px; font-size: var(--step-body); }
.cinfo dt { font-size: var(--step-small); color: var(--ink-soft); }
.cinfo dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.form { margin-top: 56px; max-width: 40rem; display: grid; gap: 22px; }
.form h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.field label { display: block; font-weight: 500; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius);
  background: #fff; transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); } /* taste-skill-ignore: form field focus ring */
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.field__err { color: var(--error); font-size: var(--step-small); margin-top: 6px; font-weight: 500; }
.field__hint { color: var(--ink-soft); font-size: var(--step-small); margin-top: 6px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: visually hidden honeypot field */
.alert { padding: 16px 18px; font-weight: 500; }
.alert--ok { background: var(--cobalt); color: var(--cobalt-ink); }
.alert--err { background: #fbe4e1; color: var(--error); }

/* error page */
.err { min-height: 70svh; display: grid; align-content: center; padding: var(--gutter); }
.err__code { font-size: var(--step-mark); letter-spacing: -0.045em; line-height: .85; color: var(--cobalt); }
.err h1 { margin-top: 24px; font-size: var(--step-head); }
.err p { margin-top: 16px; font-size: var(--step-lead); max-width: 34ch; }
.err .btn { margin-top: 32px; justify-self: start; }

/* ---------- Reveal choreography (content is visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > * { opacity: 0; transform: translateY(24px); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo); }
  .js [data-reveal].is-in > *:nth-child(2) { transition-delay: 80ms; }
  .js [data-reveal].is-in > *:nth-child(3) { transition-delay: 160ms; }
  .js [data-reveal].is-in > *:nth-child(4) { transition-delay: 240ms; }
  .js [data-reveal].is-in > *:nth-child(n+5) { transition-delay: 320ms; }
  .js [data-reveal="rows"] > * { transform: translateY(16px); }
  .js .mark[data-rise] > span:first-child { display: inline-block; opacity: 0; transform: translateY(30%); animation: rise 1.1s var(--ease-expo) 120ms forwards; }
  .js .mark[data-rise] .mark__ghost { opacity: 0; transform: translateY(30%); animation: rise 1.1s var(--ease-expo) 120ms forwards; }
  @keyframes rise { to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
.foot__nav { margin-top: 24px; }
.foot__lines { margin-top: 8px; }
.slide { margin: 0; }
@media (min-width: 1024px) { .is-home .bar { left: 47%; padding-left: 40px; } }

/* --- look round 1 fixes --- */
@media (min-width: 1024px) {
  .nav > ul > li { display: flex; align-items: center; }
  .nav > ul > li > .sub-toggle { padding: 0 8px 0 0; min-width: 28px; }
  .nav a + .sub-toggle { margin-left: -8px; }
}
.slide::after { inset: 30% 0 0 0; background: linear-gradient(to bottom, rgba(17, 22, 28, 0), rgba(17, 22, 28, .82) 70%); } /* taste-skill-ignore: neutral scrim on photo */
.slide__text { font-size: 1rem; max-width: 34ch; }
.how__head h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
@media (min-width: 1024px) { .intro { padding: 120px 0 120px 15%; } }
@media (min-width: 1024px) {
  .is-home .bar { justify-content: flex-end; gap: 8px; }
  .is-home .bar > .bar__mark { display: none; }
  .nav a, .nav .sub-toggle { padding: 0 10px; }
}

/* --- look round 1: inspector fixes --- */
.work__meta { font-size: var(--step-body); }
.work__list li + li { margin-top: 56px; }
@media (min-width: 1024px) { .work__list li + li { margin-top: 0; } }
@media (max-width: 1023px) {
  .contactband__sentence { font-size: 1.375rem; }
  .hero__sentence { font-size: var(--step-lead); line-height: 1.3; }
  .stage__frame { height: 46svh; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .contactband__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .contactband__sentence { max-width: none; }
}
.foot__legal p { max-width: 70ch; }
/* type scale consolidation: small 14 · body 17–19 · lead 20–26 · head 32–64 · mark */
.nav a, .nav .sub-toggle { font-size: var(--step-small); }
.tabs button, .contactband__q, .contactband__links, .proof__cols, .slide__text { font-size: var(--step-body); }
.nrow__title, .work__head, .proof h2, .children h2, .pics h2, .foot__mark, .letter__name, .slide__title, .gitem__title { font-size: var(--step-lead); }
.foot__blocks, .foot__blocks h2, .letter__portrait { font-size: var(--step-small); }
.newsband h2, .how__head h2 { font-size: var(--step-head); }
@media (min-width: 1024px) {
  .proof__cols { font-size: var(--step-lead); }
  .how { grid-template-columns: 1fr; gap: 48px; }
  .how__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
  .how__head p { margin-top: 0; }
}
/* --- inner pages: inspector fixes --- */
.split__body h1 { font-size: clamp(2rem, 1.2rem + 2vw, 3.25rem); }
.backlink { margin-top: 56px; }
.foot__blocks, .foot__legal { font-size: 1rem; }
.foot__legal p { max-width: 60ch; }
@media (min-width: 1024px) { .split__body { padding-right: 20px; } .split__body > * { max-width: 46rem; } }
.actions-row { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1023px) {
  .slider-ctl__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mark { margin: 20px 0 18px; }
}
@media (min-width: 1024px) {
  .work__item { flex-wrap: wrap; column-gap: 24px; row-gap: 0; }
  .work__name { font-size: clamp(40px, 4.4vw, 64px); white-space: nowrap; }
}
@media (min-width: 1024px) { .split__body > .split__lead { max-width: 34ch; } }

/* ===== finish review fixes ===== */
/* type: the world sets headings regular, large and light; one h2 scale */
h1, h2, h3, h4, .work__name, .foot__menu a, .nrow__title, .letter__name { font-weight: 400; }
.how__head h2, .swarm h2, .newsband h2, .videos h2, .work__head, .proof h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.work__head { margin-bottom: 40px; }
.letter__portrait { border-radius: 0; }

/* the sun-path plot lives on the fold */
.hero__plot { display: none; }
@media (min-width: 1024px) {
  .hero__plot { display: block; position: absolute; top: 9%; left: 50%; transform: translateX(-50%); width: min(260px, 20vw); }
  .hero .hero__sentence { top: 52%; }
  .hero .hero__actions { top: calc(52% + 7.5rem); }
}

/* how it works: a plotted axis on the cobalt field, not a paper slip */
.flow { margin-top: 40px; max-width: 520px; position: relative; padding-left: 28px; }
.flow::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--cobalt-ink); } /* taste-skill-ignore: chart axis of the plotted flow */
.flow__stage { position: relative; }
.flow__stage + .flow__stage { margin-top: 32px; }
.flow__stage::before { content: ""; position: absolute; left: -28px; top: .62em; width: 18px; height: 2px; background: var(--cobalt-ink); } /* taste-skill-ignore: hour tick on the axis */
.flow h3 { font-size: var(--step-lead); letter-spacing: -0.01em; }
.flow dl { margin: 10px 0 0; display: grid; gap: 6px; }
.flow__row { display: flex; justify-content: space-between; gap: 16px; }
.flow__row dt { font-weight: 400; }
.flow__row dd { margin: 0; text-align: right; color: var(--cobalt-soft); font-variant-numeric: tabular-nums; }
.flow__result { position: relative; margin-top: 36px; font-size: var(--step-lead); line-height: 1.25; }
.flow__result::before { content: ""; position: absolute; left: -37px; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--sun); }
@media (min-width: 1024px) { .flow { margin-top: 0; } }

/* swarm: plotted on chart paper, controls grouped with the plate */
.swarm { background: var(--paper-2); color: var(--ink); }
.swarm__plate { background: var(--paper); }
.swarm__fallback { color: var(--ink-soft); }
.swarm__text { color: var(--ink); }
.swarm__status { color: var(--ink-soft); }
.swarm__grid { grid-template-areas: "head" "plate" "controls"; }
.swarm__head { grid-area: head; }
.swarm__plate { grid-area: plate; }
.swarm__controls { grid-area: controls; display: grid; gap: 16px; align-content: start; }
.tabs button { color: var(--ink-soft); }
.tabs button[aria-pressed="true"], .tabs button:hover { color: var(--ink); }
.swarm__actions .act-charge:hover { background: var(--ink); color: var(--paper); }
.swarm__actions .act-add { background: var(--ink); color: var(--paper); }
.swarm__actions .act-add:hover { background: var(--cobalt); }
@media (min-width: 900px) {
  .swarm__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "plate head" "plate controls"; column-gap: 56px; row-gap: 32px; min-height: 0; align-items: start; }
  .swarm__plate { margin-right: 0; }
  .swarm__head { align-self: end; }
}
/* documenter drift fixes: visible focus on every ground, remaining titles at regular weight */
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.how :focus-visible, .videos :focus-visible, .foot :focus-visible, .slides :focus-visible, .slider-ctl :focus-visible, .lightbox :focus-visible { outline-color: var(--sun); }
.ledger__title, .gitem__title, .slide__title, .drawer__list a, .drawer__list .sub-toggle, .children a { font-weight: 400; }
.alert--err { background: var(--paper-2); }

/* product images: fit (whole image) or fill (crop), chosen in Settings → General */
@media (min-width: 1024px) { .work__frame { aspect-ratio: 1 / 1; } }
.fit-contain .work__frame, .fit-contain .work__item img, .split__media.fit-contain { background: var(--paper-2); }
.fit-contain .work__frame img, .split__media.fit-contain img { object-fit: contain; }
.fit-contain .work__item img { aspect-ratio: auto; height: auto; max-height: 70svh; object-fit: contain; }
@media (min-width: 1024px) { .split__media.fit-contain img { padding: 24px; } }

/* news images follow the same fit setting */
.newsband.fit-contain .newsband__photo, .newsband.fit-contain .nrow img { background: var(--paper-2); }
.newsband.fit-contain .newsband__photo img { object-fit: contain; }
.newsband.fit-contain .nrow img { aspect-ratio: auto; height: auto; max-height: 70svh; object-fit: contain; }
@media (min-width: 1024px) { .newsband.fit-contain .newsband__photo { aspect-ratio: 1 / 1; } }
