/* Poliform. Design system 6 of 10, source of truth: DESIGN.md.
   Sand page, cocoa blocks with a curved edge, one asymmetric drop radius, capsule controls.
   Mobile first: every block is laid out at 360 and widened, never the other way round. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }   /* nothing scrolls the page sideways, ever */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  overflow-x: hidden;            /* RULE section 4: no horizontal scroll at any width */
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - var(--margin) * 2, var(--container)); margin-inline: auto; }
.vh { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: var(--pill); background: var(--cocoa); color: var(--on-cocoa);
  transition: top var(--t-fast) var(--ease-in);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */
.d-xl {
  font-family: var(--display);
  font-size: clamp(38px, 11vw, 116px);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.02em;
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 120;
}
.d-xl em { font-style: normal; color: var(--accent); }
.h-lg { font-family: var(--display); font-size: clamp(27px, 5.2vw, 54px); line-height: 1.08; font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 72; }
.h-md { font-family: var(--display); font-size: clamp(22px, 3.4vw, 32px); line-height: 1.16; font-weight: 500; }
.body-lg { font-size: clamp(18px, 2vw, 19px); line-height: 1.65; }
.kicker { font-size: 15px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.d-it { font-family: var(--display); font-size: clamp(19px, 2.6vw, 26px); line-height: 1.4; }
.accent { font-family: var(--display); font-size: 21px; color: var(--accent); }
.prose p { max-width: var(--text-col); }
.updated { color: var(--muted); font-size: 14px; }

/* ---------- links and buttons ---------- */
/* link: a bullet rides in from the left and the word steps aside */
.lnk { position: relative; display: inline-block; text-decoration: none; padding-left: 0; transition: padding-left var(--t-mid) var(--ease-in), color var(--t-mid) var(--ease-in); }
.lnk::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--accent); opacity: 0; transform: translateX(-6px);
  transition: opacity var(--t-mid) var(--ease-in), transform var(--t-mid) var(--ease-in);
}
.lnk:hover, .lnk:focus-visible { padding-left: 16px; color: var(--accent); }
.lnk:hover::before, .lnk:focus-visible::before { opacity: 1; transform: translateX(0); }
.more { font-weight: 500; }
.lnk-row { margin-top: 18px; }

.btn {
  --btn-pad: 22px;
  position: relative;            /* holds the visually hidden label inside the button */
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px var(--btn-pad);
  border: 0; border-radius: var(--pill);
  background: var(--cocoa); color: var(--on-primary);
  font: 500 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: padding var(--t-mid) var(--ease-in), background var(--t-mid) var(--ease-in);
}
.btn:hover, .btn:focus-visible { --btn-pad: 30px; }
.btn__arrow {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor;
  position: relative; flex: none;
  transition: transform var(--t-mid) var(--ease-in);
}
.btn__arrow::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, 1px);
}
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: rotate(45deg); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; border: 1px solid var(--outline-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 22px; }

/* ---------- header: floating capsule ---------- */
.hd { position: sticky; top: 0; z-index: var(--z-head); padding: 10px 0; background: transparent; }
.hd::before {
  content: ''; position: absolute; inset: 0; background: var(--bg); opacity: 0;
  transition: opacity var(--t-mid) var(--ease-in);
}
.hd.is-stuck::before { opacity: .96; }
.hd__row { display: flex; align-items: center; gap: 14px; min-height: var(--head-h); position: relative; }
.hd__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.hd__mark { width: 26px; height: 26px; color: var(--cocoa); }
.hd__word { width: 118px; height: auto; color: var(--ink); }

.pill {
  display: none; margin-inline: auto;
  padding: 7px 10px; border-radius: var(--pill);
  background: var(--cream); box-shadow: var(--drop-card);
  transition: padding var(--t-mid) var(--ease-in), box-shadow var(--t-mid) var(--ease-in);
}
.is-stuck .pill { padding: 5px 6px; box-shadow: 0 8px 20px rgba(59, 36, 22, .14); }
.pill__link {
  display: inline-block; padding: 10px 16px; border: 0; background: none;
  border-radius: var(--pill); color: inherit; font: 500 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease-in), color var(--t-fast) var(--ease-in);
}
.pill__link:hover, .pill__link:focus-visible, .pill__link[aria-current='page'] { background: var(--bg); color: var(--accent); }
.hd__ask { display: none; }
.hd__menu {
  margin-left: auto; min-height: 44px; padding: 11px 20px;
  border: 0; border-radius: var(--pill); background: var(--cocoa); color: var(--on-primary);
  font: 500 15px/1 var(--text); cursor: pointer;
}
@media (min-width: 900px) {
  .pill, .hd__ask { display: flex; }
  .hd__menu { display: none; }
}

/* mega panel */
.mega {
  position: absolute; left: 0; right: 0; top: calc(100% - 4px);
  background: var(--cream); border-radius: 0 0 var(--drop-lg) var(--drop-lg);
  box-shadow: var(--drop-card); padding: 34px 0 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-mid) var(--ease-in), transform var(--t-mid) var(--ease-in), visibility var(--t-mid);
  z-index: var(--z-mega);
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
/* below 900 the mega panel is not used at all: the capsule menu replaces it. Left in the flow
   it would lay out five columns at 360 and push the page sideways. */
.mega { display: none; }
@media (min-width: 900px) { .mega { display: block; } }
.mega__in { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 28px; }
.mega__col h2 { font-family: var(--text); font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.mega__col h2 a { text-decoration: none; }
.mega__col li + li { margin-top: 7px; }
.mega__col a { text-decoration: none; }
.mega__col a:hover { color: var(--accent); }
.mega__frame { border-radius: var(--drop); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg); }
.mega__frame img { width: 100%; height: 100%; object-fit: cover; }
.mega__foot { grid-column: 1 / -1; display: flex; gap: 26px; padding-top: 14px; border-top: 1px solid var(--outline); }

/* ---------- mobile sheet: a stack of capsules riding in from the right ---------- */
.scrim {
  position: fixed; inset: 0; background: var(--scrim); opacity: 0; visibility: hidden;
  transition: opacity var(--t-mid) var(--ease-in), visibility var(--t-mid); z-index: calc(var(--z-sheet) - 1);
}
.scrim.is-open { opacity: 1; visibility: visible; }
/* the dock clips the closed panel: parked off screen it would otherwise stretch the page
   sideways, and a page that scrolls horizontally fails RULE section 4 */
.sheet-dock { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: var(--z-sheet); }
.sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 420px); pointer-events: auto;
  background: var(--cocoa); color: var(--on-cocoa);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--t-slow) var(--ease-in), visibility var(--t-slow);
}
.sheet.is-open { transform: translateX(0); visibility: visible; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet__title { font-family: var(--display); font-size: 22px; }
.sheet__close { min-height: 44px; padding: 10px 18px; border: 1px solid var(--outline-cocoa); border-radius: var(--pill); background: none; color: inherit; font: 500 15px/1 var(--text); cursor: pointer; }
.sheet__stack { display: flex; flex-direction: column; gap: 10px; }
.cap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 14px 22px; border-radius: var(--pill);
  background: rgba(237, 227, 214, .08); color: inherit; text-decoration: none;
  font-family: var(--display); font-size: 21px;
}
.cap__n { font-family: var(--text); font-size: 14px; color: var(--on-cocoa-muted); }
.cap:hover, .cap:focus-visible { background: rgba(237, 227, 214, .16); }
.sheet__contact { margin-top: auto; color: var(--on-cocoa-muted); font-size: 15px; }
.sheet__contact a { color: var(--accent-on-cocoa); }
.sheet__ask { align-self: flex-start; background: var(--cream); color: var(--ink); }
.html-lock { overflow: hidden; }

/* stack animation: each capsule rides in after the one above it */
.mo .sheet .cap { opacity: 0; transform: translateX(28px); }
.mo .sheet.is-open .cap { animation: cap-in 420ms var(--ease-in) forwards; }
.mo .sheet.is-open .cap:nth-child(2) { animation-delay: 45ms; }
.mo .sheet.is-open .cap:nth-child(3) { animation-delay: 90ms; }
.mo .sheet.is-open .cap:nth-child(4) { animation-delay: 135ms; }
.mo .sheet.is-open .cap:nth-child(5) { animation-delay: 180ms; }
.mo .sheet.is-open .cap:nth-child(6) { animation-delay: 225ms; }
.mo .sheet.is-open .cap:nth-child(n+7) { animation-delay: 270ms; }
.mo-off .sheet .cap { opacity: 1; transform: none; }
@keyframes cap-in { to { opacity: 1; transform: translateX(0); } }

/* content never scrolls the page sideways: clip does not create a scroll container,
   so sticky positioning in the header keeps working */
main { overflow-x: clip; }

/* ---------- sections ---------- */
/* grid items default to min-width: auto, so one wide child (a table with a min width,
   a long word, an svg) stretches the whole track and the page starts scrolling sideways.
   Every grid in this system opts out of that. */
.split > *, .drop__grid > *, .req__grid > *, .cards > *, .gal > *, .hero__stage > *,
.form__grid > *, .ft__grid > *, .mega__in > * { min-width: 0; }
.tbl-wrap { max-width: 100%; }

.sec { padding: var(--section) 0; }
.sec--tight { padding-top: calc(var(--section) * .55); }
.shead { max-width: var(--text-col); margin-bottom: 40px; }
.shead p { color: var(--muted); }
.split { display: grid; gap: 40px; }
.split--flip .split__a { order: 2; }
@media (min-width: 900px) {
  .split { grid-template-columns: 3fr 2fr; gap: 64px; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--flip .split__a { order: 0; }
  .split--flip .split__b { order: -1; }
}

/* the cocoa drop block: its top and bottom edges are arcs, not straight lines */
.drop { position: relative; background: var(--cocoa); color: var(--on-cocoa); margin-block: var(--arc); }
.drop::before, .drop::after {
  content: ''; position: absolute; left: 0; right: 0; height: var(--arc); background: var(--cocoa);
}
.drop::before { top: calc(var(--arc) * -1 + 1px); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.drop::after { bottom: calc(var(--arc) * -1 + 1px); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.drop .h-lg, .drop .h-md { color: var(--on-cocoa); }
.drop p { color: var(--on-cocoa-muted); }
.drop .lnk:hover, .drop .lnk:focus-visible { color: var(--accent-on-cocoa); }
.drop .lnk::before { background: var(--accent-on-cocoa); }
.drop__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .drop__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* ---------- hero: text on sand, photograph crossing the cocoa arc ----------
   Дуга живёт внутри собственной коробки блока, а не вытянута наверх псевдоэлементом:
   так она не может перекрыть заголовок, что и случилось на первой сборке. */
.hero { position: relative; padding-top: 24px; }
.hero__head { max-width: 42rem; padding-bottom: 28px; }
.hero__head .d-xl { max-width: 12ch; }
.hero__lead { max-width: 46ch; margin-top: 18px; color: var(--muted); }
.hero__band {
  position: relative;
  padding: var(--arc) 0 var(--section);
  background: var(--cocoa);
  border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0;
}
.hero__stage { position: relative; margin-top: calc(var(--arc) * -0.55); }
.hero__piece { width: 46%; margin: -14% 0 0 auto; position: relative; }
@media (min-width: 1024px) {
  .hero { padding-top: 40px; }
  .hero__head {
    max-width: none; display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 16px 56px; align-items: end; padding-bottom: 40px;
  }
  .hero__head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
  .hero__head .d-xl { grid-row: 2; max-width: 11ch; }
  .hero__lead { grid-row: 2; margin-top: 0; margin-bottom: 10px; }
  .hero__head .btn-row { grid-column: 2; grid-row: 3; margin-top: 0; }
  .hero__stage { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: end; }
  .hero__piece { width: auto; margin: 0 0 6% 0; }
}

/* ---------- shot: photo in a drop frame, floating tag on hover ---------- */
.shot { margin: 0; position: relative; }
.shot__frame { position: relative; border-radius: var(--drop); overflow: hidden; background: var(--cream); }
.shot--flip .shot__frame { border-radius: var(--drop-flip); }
.shot--studio .shot__frame { background: var(--cream); }
.shot__frame img { width: 100%; height: auto; }
.shot--hero .shot__frame { aspect-ratio: 4 / 3; }
.shot--hero .shot__frame picture, .shot--hero .shot__frame img { height: 100%; }
.shot--hero .shot__frame img { width: 100%; object-fit: cover; }
.tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center;
  padding: 14px 18px; border-radius: var(--drop-sm) var(--drop-lg) var(--drop-sm) var(--drop-lg);
  background: var(--cream); box-shadow: var(--drop-card);
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--t-mid) var(--ease-in), transform var(--t-mid) var(--ease-in);
}
.shot:hover .tag, .shot:focus-within .tag { opacity: 1; transform: translateY(0); }
.tag__name { font-family: var(--display); font-size: 18px; }
.tag__line { grid-column: 1; font-size: 13px; color: var(--muted); }
.tag__arrow { grid-row: 1 / span 2; grid-column: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--outline-strong); position: relative; }
.tag__arrow::before { content: ''; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, 1px); }
@media (hover: none) { .tag { opacity: 1; transform: none; } }

/* ---------- cards: the long radius jumps diagonal on hover ---------- */
.cards { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards--tight { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.card { display: block; text-decoration: none; }
.card__frame {
  border-radius: var(--drop); overflow: hidden; background: var(--cream); aspect-ratio: 4 / 3;
  transition: border-radius var(--t-slow) var(--ease-in);
}
.card__frame picture { height: 100%; }
.card__frame img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__frame, .card:focus-visible .card__frame { border-radius: var(--drop-flip); }
.card__body { display: block; padding: 16px 4px 0; }
.card__name { display: block; font-family: var(--display); font-size: 21px; }
.card__line { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.card__ask { display: block; font-size: 14px; color: var(--accent); margin-top: 2px; }

/* ---------- medallion rail ---------- */
.rail { margin-top: 8px; }
.rail__track {
  display: flex; gap: 22px; padding: 6px var(--margin) 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail__item { scroll-snap-align: center; }
.med { display: grid; justify-items: center; gap: 10px; width: 108px; text-decoration: none; }
.med__ring {
  display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--outline); background: var(--cream);
  transition: transform var(--t-mid) var(--ease-in), border-color var(--t-mid) var(--ease-in);
}
.med__ring picture { display: block; height: 100%; }
.med__ring img { width: 100%; height: 100%; object-fit: cover; }
.med__name { font-size: 14px; text-align: center; }
.med:hover .med__ring, .med:focus-visible .med__ring { transform: scale(1.06); border-color: var(--accent); }

/* A to Z row on the collections index: a wrapping line of names, each letter marked.
   Without min-width: 0 and wrapping, a long name pushes the row past the screen edge. */
.azrow { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 36px; }
.azrow > span { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; min-width: 0; max-width: 100%; }
.azrow b { font-family: var(--display); font-size: 15px; color: var(--accent); }
.azrow a { text-decoration: none; font-size: 15px; word-break: break-word; }
.azrow a:hover { color: var(--accent); }

/* ---------- editorial rows ---------- */
.dips { display: grid; gap: 56px; }
.dip { display: grid; gap: 20px; }
.dip__name a { text-decoration: none; }
@media (min-width: 900px) {
  .dip { grid-template-columns: 3fr 2fr; gap: 40px; align-items: center; }
  .dip:nth-child(even) .dip__pic { order: 2; }
}
.dlist li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--outline); }
.dlist a { font-family: var(--display); font-size: 20px; text-decoration: none; }
.dlist span { font-size: 14px; color: var(--muted); }
.plist li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--outline-cocoa); }
.plist span { font-size: 14px; color: var(--on-cocoa-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { padding: 8px 16px; border-radius: var(--pill); background: var(--cream); font-size: 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 24px 0 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.crumbs { padding: 18px 0 0; font-size: 14px; color: var(--muted); width: min(100% - var(--margin) * 2, var(--container)); margin-inline: auto; }
.crumbs ol { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.crumbs span[aria-hidden] { margin: 0 8px; }
.crumbs a { text-decoration: none; }

/* ---------- gallery ---------- */
.gal { display: grid; gap: 22px; }
@media (min-width: 900px) { .gal { grid-template-columns: 1fr 1fr; } .gal__cell--1 { grid-column: 1 / -1; } }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }              /* on a phone the table scrolls inside itself */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.tbl caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 12px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--outline); vertical-align: top; }
.tbl th { font-weight: 500; color: var(--muted); }
.tbl td.n { font-variant-numeric: tabular-nums; }
.tbl a { text-decoration: none; color: var(--accent); }

/* ---------- infographic: the layered section ---------- */
.infographic { margin: 0; }
.infographic figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 44ch; }
.layers { background: var(--cream); border-radius: var(--drop); padding: 18px 12px; }
.drop .layers { background: rgba(237, 227, 214, .08); }
.layers svg { width: 100%; height: auto; }
.l-band { fill: #C9B49C; }
.l-band--1 { fill: #B99E80; }
.l-band--2 { fill: #A88A6A; }
.l-lead, .l-brace { stroke: var(--ink); stroke-width: 1; opacity: .5; }
.l-name { font: 500 13px var(--text); fill: var(--ink); }
.l-of, .l-total { font: 400 12px var(--text); fill: var(--muted); }
.drop .l-name { fill: var(--on-cocoa); }
.drop .l-of, .drop .l-total { fill: var(--on-cocoa-muted); }
.drop .l-lead, .drop .l-brace { stroke: var(--on-cocoa); }
.y-axis { stroke: var(--outline-strong); stroke-width: 1; }
.y-dot { fill: var(--accent); }
.y-year { font: 500 13px var(--text); fill: var(--muted); font-variant-numeric: tabular-nums; }
.y-name { font: 400 14px var(--text); fill: var(--ink); }

/* ---------- request form ---------- */
.req { background: var(--cream); padding: var(--section) 0; }
.req__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .req__grid { grid-template-columns: 2fr 3fr; gap: 64px; align-items: start; } }
.req__after { border-radius: var(--drop-sm); background: var(--bg); padding: 18px 20px; font-size: 15px; }
.req__after b { display: block; margin-bottom: 6px; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .wide { grid-column: 1 / -1; } }
.field { display: flex; align-items: center; gap: 12px; padding: 4px 8px 4px 22px; border-radius: var(--pill); background: var(--bg); }
.field--area { flex-direction: column; align-items: stretch; border-radius: 28px; padding: 14px 18px; }
.field--area .field__label { padding-top: 0; }
textarea.field__input { resize: vertical; max-width: 100%; padding-left: 0; }
.field__label { flex: none; font-size: 14px; color: var(--muted); }

.field__label i { color: var(--accent); font-style: normal; }
.field > *, .form__foot > * { min-width: 0; }
.field__input {
  flex: 1 1 auto; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px;
  border: 0; background: transparent; color: var(--ink); font: 400 16px/1.5 var(--text);
}
.field__input:focus { outline: none; }
.field:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.field__err { flex-basis: 100%; color: var(--error); font-size: 13px; }
.field.is-bad { box-shadow: 0 0 0 2px var(--error); }
.form__hint, .form__status { font-size: 14px; color: var(--muted); }
.form__foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 18px; }
.ts { min-height: 65px; min-width: min(300px, 100%); }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.ft { position: relative; background: var(--cocoa); color: var(--on-cocoa); margin-top: var(--arc); padding: 40px 0 28px; }
.ft__arc { position: absolute; left: 0; right: 0; top: calc(var(--arc) * -1 + 1px); height: var(--arc); background: var(--cocoa); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.ft__grid { position: relative; display: grid; gap: 36px; }
@media (min-width: 900px) { .ft__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ft__mark { width: 34px; height: 34px; color: var(--accent-on-cocoa); }
.ft__word { width: 180px; height: auto; margin: 18px 0 14px; color: var(--on-cocoa); }
.ft__phrase { font-family: var(--display); font-size: 24px; max-width: 22ch; color: var(--on-cocoa); }
.ft__nav { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-bottom: 26px; }
.ft__nav a { text-decoration: none; }
.ft__facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
.ft__facts dt { color: var(--on-cocoa-muted); }
.ft__facts dd { margin: 0; }
.ft__facts a { color: var(--accent-on-cocoa); }
.ft__legal { position: relative; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--outline-cocoa); font-size: 13px; color: var(--on-cocoa-muted); }
.ft__legal a { text-decoration: none; }

/* ---------- motion initial states (only while the script is expected) ---------- */
.mo [data-cell] { opacity: 0; }
.mo-off [data-cell], .mo-go [data-cell] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-cell] { opacity: 1 !important; }
}
