/* Manifesto hero: sticky stage, flying photo tiles, scroll-driven statements */

/* ---------- type scale: six sizes for the whole page (values at 1440px, never larger) ----------
   display: the footer marquee, left as the demo draws it */
:root {
  --mh-h1: clamp(36px, 5vw, 72px);     /* manifesto statements, contact title, legal titles */
  --mh-h2: clamp(28px, 3.05vw, 44px);  /* footer statement, thank-you */
  --mh-h3: 24px;                       /* card titles: form questions, "Brussels" */
  --mh-body: 16px;                     /* running text, form fields, chips */
  --mh-caps: 11px;                     /* every small-caps label, button and overtitle */
}

.mh-title { font-size: var(--mh-h1); }

c-full-contact [data-contact="head"] h2 {
  font-size: var(--mh-h1);
  line-height: 1;
}

c-full-contact legend.text-theme-txt-22 { font-size: var(--mh-h3); }
c-full-contact legend.text-theme-h1-medium,
c-full-footer [data-footer="statement"] { font-size: var(--mh-h2); }

c-full-contact label,
c-full-contact input,
c-full-contact textarea,
c-full-contact .text-theme-txt-14,
c-full-contact .text-theme-txt-16 { font-size: var(--mh-body); }

c-full-contact .text-theme-caps-11,
c-full-footer .text-theme-caps-11,
.mh-legal .text-theme-caps-11 { font-size: var(--mh-caps); }

c-manifesto {
  display: block;
  position: relative;
  z-index: 1;
  /* the statements (--mh-hero, build.py hero_svh: 540svh for four) + 150svh for the landing */
  height: calc(var(--mh-hero, 540svh) + 150svh);
}

/* ---------- landing on the first case (Kevin, 18 Nov 2026) ----------
   The last statement parts, the first case's cover opens between its words and grows to full
   screen (manifesto.js sizes the box). The case stack starts 100svh early, under the hero, so its
   first panel is already in place, identical, when the hero lets go: no section sliding up. */
.mh-land {
  --ws-pad: calc(100px * var(--zoom, 1));
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.mh-land-box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-decoration: none;
  transform: translate(-50%, -50%);
  visibility: hidden;
}
.mh-land.is-on .mh-land-box { visibility: visible; }
.mh-land.is-full { pointer-events: auto; }
.mh-land-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14); /* the stack's photo scale (.ws-par) */
}
.mh-land-over { position: absolute; inset: 0; opacity: 0; }
@media (width < 48rem) {
  .mh-land { --ws-pad: 16px; }
}
c-workstack[data-landing] { margin-top: -100svh; }

.mh-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: clip;
  background: var(--color-theme-bg);
  color: var(--color-theme-fg);
}

/* ---------- tiles ---------- */

.mh-stage {
  position: absolute;
  inset: 0;
  perspective: 100svh;
  transform-style: preserve-3d;
}

.mh-ptr {
  position: absolute;
  /* V04: the photos larger, more present (Kevin, 20 Nov 2026, after telescope.fyi) */
  --mh-grow: 1.45;
  width: calc(var(--w) * 2vw * var(--mh-grow));
  transform-style: preserve-3d;
  will-change: transform;
}

@media (min-width: 48rem) {
  .mh-ptr { width: calc(var(--w) * 1vw * var(--mh-grow)); }
}

.mh-fly {
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 0;
}

.mh-fly img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.mh-dim {
  position: absolute;
  inset: 0;
  background: var(--color-theme-bg);
  opacity: 0;
  transition: opacity 1.2s var(--ease-reveal);
  pointer-events: none;
}

/* V04: a light veil only, the photos stay bright (telescope.fyi) */
c-manifesto[data-step]:not([data-step="0"]) .mh-dim { opacity: 0.12; }

/* light theme: white text in exclusion mode reads dark on the page and inverts over the
   photos, so every screen keeps the look of the first one and needs no dimming */
[data-theme="light"] .mh-dim { display: none; }

[data-theme="light"] .mh-screens,
[data-theme="light"] .mh-chapters {
  color: #fff;
  mix-blend-mode: exclusion;
}

[data-theme="light"] .mh-chapter p { color: #fff; }

/* ---------- statements ---------- */

.mh-screens {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 16px;
  pointer-events: none;
  z-index: 20;
}

.mh-screen {
  grid-area: 1 / 1;
  text-align: center;
}

.mh-title { margin: 0; }

/* one mask per word; manifesto.js moves the words in and fades the statement out */
.mh-w {
  display: inline-block;
  overflow: clip;
  vertical-align: top;
  /* room inside the mask for descenders, and for letters that overhang their box (y) */
  padding: 0 0.1em 0.25em;
  margin: 0 -0.1em -0.25em;
}

.mh-w > span {
  display: inline-block;
  transform: translateY(calc(100% + 0.25em));
  will-change: transform;
}

.mh-caps {
  display: block;
  font-size: var(--mh-caps);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ---------- chapter block, bottom left ---------- */

.mh-chapters {
  position: absolute;
  left: max(16px, 4.6vw);
  bottom: max(32px, 8svh);
  width: min(calc(100vw - 32px), max(300px, 28vw));
  z-index: 21;
}

.mh-chapter {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  gap: 20px;
}

.mh-chapter > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s var(--ease-reveal),
    transform 0.9s var(--ease-reveal);
}

.mh-chapter.is-active > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(350ms + var(--i, 0) * 90ms);
}

.mh-chapter p {
  margin: 0;
  font-size: var(--mh-body);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--color-theme-fg) 70%, transparent);
}

.mh-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100%, max(240px, 14.2vw));
}

.mh-list li {
  font-size: var(--mh-body);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

/* a bullet in front of each item, rather than a "+" that looks clickable */
.mh-list li::before {
  content: "•";
  margin-right: 0.5em;
  opacity: 0.6;
}

/* ---------- "scroll down" cursor over the hero ---------- */

@media (pointer: fine) {
  c-manifesto { cursor: none; }
}

.mh-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
  /* white in exclusion mode: dark on light areas, light on dark ones, like dside.group */
  color: #fff;
  mix-blend-mode: exclusion;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mh-cursor.is-on { opacity: 1; }

/* ring and label move separately: the label tracks the pointer, the ring trails behind */
.mh-cursor-ring,
.mh-cursor-label {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

/* small solid dot, as on dside.group */
.mh-cursor-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
}

/* same size as the chapter overtitles */
.mh-cursor-label {
  font-size: var(--mh-caps);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- "new website updating soon" ticker in the header bar ---------- */

/* the logo side of the bar may shrink so the ticker fits on phones */
c-full-header [data-header-bar] > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

/* the wordmark's descenders (g, y) make its box look high: nudge it down to the optical centre */
c-full-header [data-header-logo] { transform: translateY(3px); }

/* the logo and the buttons on the right keep their size; only the ticker gives way */
c-full-header [data-header-logo],
c-full-header [data-header-bar] > :last-child { flex: none; }

@media (max-width: 47.99rem) {
  c-full-header [data-header-bar] > div:first-child { gap: 20px; }
}

/* same height, corners and outline (30%) as the theme button: the red dot stays
   put on the left, only the text scrolls */
/* (V03: out of the bar, on the strip line under it, see .mh-strips) */
.mh-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 210px;
  min-width: 0;
  height: 100%;
  padding-left: 12px;
  border-radius: 5px;
  background: var(--color-theme-glass);
  backdrop-filter: blur(40px);
  color: var(--color-theme-fg);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.mh-ticker:only-child { flex: 1 1 auto; }
@media (max-width: 47.99rem) { .mh-ticker { flex-basis: 44%; } }

/* the text window fades at both ends; the frame and the dot do not */
.mh-ticker-window {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: clip;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* two identical groups: moving the track by half its width loops without a jump */
.mh-ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: mh-ticker 22s linear infinite;
}

.mh-ticker-group { display: flex; }

.mh-ticker-item {
  display: inline-flex;
  align-items: center;
  padding-right: 32px;
  font-size: 10px;
  line-height: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* right to left */
@keyframes mh-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* the blinking dot, in red */
.mh-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e6ff3b;
  animation: mh-pulse 1.6s ease-in-out infinite;
}

@keyframes mh-pulse {
  50% { opacity: 0.2; }
}


/* ---------- buttons sized like the dside factory "Talk to an expert" (hover kept) ---------- */

c-full-header a.group.rounded-tile[href$="#contact"],
c-full-footer a.group.rounded-tile {
  height: 38px;
  padding: 0 15px;
  border-radius: 5px;
  gap: 10px;
}

/* button hover: the whole word rolls up at once (as on oharchitecture.com.au), not letter by
   letter. The demo staggers each letter with an inline transition-delay; cancel it. */
[class*="group-hover:-translate-y-[1.5em]"] {
  transition-delay: 0ms !important;
  transition-duration: 0.55s;
}

/* factory keeps button text at 11px on every screen; the demo scales it up to 1.3x past 1440px */
c-full-header .text-theme-caps-11-medium,
c-full-footer .text-theme-caps-11-medium,
c-full-contact .text-theme-caps-11-medium {
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* ---------- footer, after the dside factory footer ---------- */

/* baseline marquee: more room between repeats, above and below */
/* gap after the dash = one word space, the same as before it */
c-full-footer [data-footer="marquee"] > div > span {
  display: inline-block;
  padding-right: 0.22em;
  will-change: transform;
}

c-full-footer div:has(> [data-footer="marquee"]) {
  padding-top: max(120px, 14svh);
  padding-bottom: 0.4em;
}

/* Same sizes and grid as the dside factory footer, measured at 1440px: three columns of
   170 / 170 / 190px, 20px apart, against the right edge; fixed sizes on every screen. */
/* straight edge between the marquee band and the footer, instead of the demo's curve */
c-full-footer div[class*="rounded-t-"] { border-radius: 0; }

/* factory side margins: 60px */
@media (min-width: 48rem) {
  c-full-footer .grid:has(> .mh-foot-cols) { padding-inline: 60px; }
}

c-full-footer .mh-foot-cols {
  display: grid;
  grid-template-columns: 170px 170px 190px;
  justify-content: end;
  align-self: start;
  gap: 40px 20px;
}

c-full-footer .mh-foot-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

c-full-footer .mh-foot-section > p {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 11px;
  letter-spacing: 0.66px;
  text-transform: uppercase;
}

c-full-footer .mh-foot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: normal;
}

c-full-footer .mh-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  border-top: 1px solid color-mix(in srgb, var(--color-theme-fg) 10%, transparent);
  padding: 30px 0 40px;
  font-size: 11px;
  font-weight: 500;
  line-height: 11px;
  letter-spacing: 0.66px;
  text-transform: uppercase;
}

c-full-footer .mh-foot-bottom p { margin: 0; }

c-full-footer .mh-foot-rights { margin-left: 30px; }

/* the three legal links sit under the three columns above: same widths, same 20px gaps */
c-full-footer .mh-foot-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

c-full-footer .mh-foot-bottom li { width: 170px; }
c-full-footer .mh-foot-bottom li:last-child { width: 190px; }

/* Narrower than the three columns + statement side by side: the columns move under the
   statement, left-aligned; the bottom bar stays on one line (copyright left, legal links
   right), the links no longer sized on the columns. */
/* the columns stay beside the logo down to 72rem, narrower (the footer fits one screen) */
@media (min-width: 72.01rem) and (max-width: 82rem) {
  c-full-footer .mh-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 72rem) {
  c-full-footer .mh-foot-cols {
    grid-column: 1 / -1;
    justify-content: start;
    margin-top: 72px;
  }
  c-full-footer .mh-foot-bottom li,
  c-full-footer .mh-foot-bottom li:last-child { width: auto; }
}

/* phones: two columns that share the width, legal links stacked */
@media (max-width: 40rem) {
  c-full-footer .mh-foot-cols { grid-template-columns: 1fr 1fr; }
  c-full-footer .mh-foot-bottom { flex-direction: column; gap: 20px; }
  c-full-footer .mh-foot-bottom ul { flex-direction: column; gap: 14px; }
  c-full-footer .mh-foot-bottom li,
  c-full-footer .mh-foot-bottom li:last-child { width: auto; }
}

.mh-foot-bottom a:hover { color: var(--color-theme-fg); }

/* ---------- legal pages, after the dside factory privacy page ---------- */

.mh-legal {
  min-height: 70svh;
  padding: max(160px, 18svh) 0 120px;
  background: var(--color-theme-bg);
  color: var(--color-theme-fg);
}

.mh-legal-title {
  margin: 24px 0 40px;
  font-size: var(--mh-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.mh-legal-text {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-theme-fg) 70%, transparent);
}

/* breathing room under the two contact cards */
c-full-contact .grid:has(> [data-contact="block"]) { padding-bottom: max(64px, 9svh); }

/* ---------- contact form: the three steps ---------- */

/* the question above a set of choices */
.mh-ask {
  margin: 28px 0 0;
  font-size: var(--mh-caps);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-theme-muted);
}

/* "+ Brief (PDF)": a dashed outline in the style of the chips */
.mh-brief {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border: 1px dashed color-mix(in srgb, var(--color-theme-fg) 40%, transparent);
  border-radius: var(--radius-control);
  font-size: var(--mh-caps);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.mh-brief:hover,
.mh-brief:has(:focus-visible) { border-color: var(--color-theme-fg); }

.mh-brief span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-theme-muted);
}

.mh-consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--color-theme-fg);
}

/* contact form: the message spans both columns */
#contact-message {
  grid-column: 1 / -1;
  resize: none;
}

/* contact: no info strip above the title (hidden, the demo script still reads it) */
c-full-contact [data-contact="labels"] { display: none; }

/* loader: the logo starts big in the middle; the demo script then shrinks it into the header */
c-loader div:has(> [data-loader="logo"]) {
  top: 50%;
  transform: translateY(-50%);
}

c-loader svg[data-loader="logo-word"] { height: clamp(22px, 4vw, 75px); } /* half its first size (Kevin, 18 Nov) */

/* loader (V04, Kevin, 20 Nov 2026): white, the logo and words black, whatever the theme; the
   logo takes the bar's colour while the white panel slides off the black hero (manifesto.js
   adds .mh-leaving) */
c-loader [data-loader="background"] { background: #fff; }

c-loader [data-loader="logo"] {
  color: #000;
  transition: color 0.9s ease;
}

c-loader.mh-leaving [data-loader="logo"] { color: var(--color-theme-fg); }

/* contact: a slow fade-in of the photo instead of the demo's pixel mosaic */
c-full-contact [data-contact="pixels"] { display: none; }

c-full-contact > [data-parallax="mask"] {
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1.8s ease,
    transform 2.6s var(--ease-reveal);
}

c-full-contact.mh-revealed > [data-parallax="mask"] {
  opacity: 1;
  transform: none;
}

/* header bar eases between its light and dark versions (manifesto.js toggles .theme-dark) */
c-full-header [data-header-bar] {
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* the demo nav points to sections this page does not have */
c-full-header nav[aria-label="Primary"] { display: none; }

@media (max-width:-1px) {
  c-manifesto { height: 100svh; }
  .mh-land { display: none; }
  c-workstack[data-landing] { margin-top: 0; }
  .mh-chapter > *,
  c-full-contact > [data-parallax="mask"] { transition-duration: 0.01s; transition-delay: 0s; }
  .mh-dot,
  .mh-ticker-track { animation: none; }
}

/* contact photo: a much lighter darkening (demo: 30% / 40% / 90% black) so the dark cards
   stand out from the photo behind them */
c-full-contact > .bg-linear-to-b.to-theme-bg\/90 {
  background-image: linear-gradient(rgb(0 0 0 / 0.15), rgb(0 0 0 / 0.1) 50%, rgb(0 0 0 / 0.35));
}

/* page transition: the dside agency wordmark instead of the demo's "Full" / "Lite" word.
   The label keeps its text (the demo script writes it) but shows the logo, in the text colour */
c-page-transition [data-transition-label] {
  font-size: 0;
  line-height: 0;
}
/* the transition screens show the loader's logo instead (Kevin, 19 Nov 2026): same size, its two
   words each rising out of their own mask (casetransition.js); the demo's label is hidden */
c-page-transition > span:has([data-transition-label]) { display: none; }
.pt-logo { display: flex; color: var(--color-theme-fg); }
.pt-mask { display: block; overflow: clip; }
.pt-word { display: block; transform: translateY(100%); }
.pt-svg { display: block; width: auto; height: clamp(22px, 4vw, 75px); }

c-page-transition [data-transition-label]::before {
  content: "";
  display: block;
  width: clamp(220px, 34vw, 560px);
  aspect-ratio: 155.318 / 25.625;
  background: var(--color-theme-fg);
  mask: url("/manifesto/img/wordmark.svg") center / contain no-repeat;
}

/* H2 = H1 weight (400) everywhere: the contact block's "Let's build something iconic" comes from
   the demo in medium */
c-full-contact h2 { font-weight: 400; }

/* header: hidden while scrolling down, back on scroll up (manifesto.js) */
c-full-header { transition: transform 0.5s var(--ease-reveal), opacity 0.4s ease; }
c-full-header.mh-nav-hidden { transform: translateY(calc(-100% - 24px)); opacity: 0; pointer-events: none; }

/* ---------- BEA Awards 2026 (temporary): a thin neon yellow strip under the nav bar, as on osmo.supply.
   Same width as the bar; only shown near the top of the page (manifesto.js). ---------- */
.mh-bar-wrap { display: flex; flex-direction: column; width: 100%; }
@media (min-width: 48rem) { .mh-bar-wrap { width: max-content; max-width: 100%; } }

/* the line under the bar: ticker, then the BEA strip. The scrolling text must not widen the bar:
   the line takes the bar's width, not its own */
.mh-strips {
  display: flex;
  gap: 4px;
  width: 0;
  min-width: 100%;
  height: 24px;
  margin-top: 4px;
  transition: height 0.5s var(--ease-reveal), margin 0.5s var(--ease-reveal), opacity 0.3s ease;
}

c-full-header.mh-award-off .mh-strips { height: 0; margin-top: 0; opacity: 0; overflow: clip; }

.mh-award {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: clip;
  border-radius: 5px;
  background: #e6ff3b;
  color: #111;
}

.mh-award-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: mh-ticker 40s linear infinite;
}

.mh-award:hover .mh-award-track { animation-play-state: paused; }

.mh-award-group { display: flex; }

.mh-award-item {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  line-height: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mh-award-sep { padding: 0 18px; font-size: 8px; }

@media (max-width:-1px) { .mh-award-track { animation: none; } }

/* loader sides: "Loading" left, the percentage right, level with the logo, in caps */
.mh-load-side {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #000;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.4s ease;
}

.mh-load-left { left: max(16px, 4.6vw); }
.mh-load-right { right: max(16px, 4.6vw); }

c-loader.mh-leaving .mh-load-side { opacity: 0; }
/* the three dots after "Loading", lighting up one after another, on a loop */
.mh-dots span { opacity: 0; animation: mh-dot 1.2s infinite; }
.mh-dots span:nth-child(2) { animation-delay: 0.2s; }
.mh-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mh-dot { 0% { opacity: 0; } 20%, 70% { opacity: 1; } 100% { opacity: 0; } }
/* a later load in the same tab: no "Loading" or count, only the quick logo move (build.py LOADER_QUICK) */
.mh-quick-load .mh-load-side { display: none; }

/* the eye in the award strip */
.mh-eye { width: 14px; height: 9px; margin-left: 6px; vertical-align: -1px; }

/* Burger (shown on desktop too since 18 Nov 2026): as tall as the other bar buttons (theme switch,
   "Let's create together") instead of the demo's smaller 40px tile, "Menu" next to its icon */
[data-header-bar] [data-menu-toggle] { align-self: stretch; }


/* Launching Soon V03 (Kevin, 18 Nov 2026): no browser scrollbar on the right; the page still scrolls */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.mh-menu-word { line-height: 1; }

/* ---------- phones: "Scroll to explore" at the bottom of the hero, as on About and Work
   (Kevin, 18 Nov 2026); computers keep the "Scroll down" cursor ---------- */
.mh-scroll {
  display: none;
  position: absolute;
  right: max(16px, 4.6vw);
  bottom: 28px;
  z-index: 25;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-theme-fg);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
@media (hover: none), (pointer: coarse) { .mh-scroll { display: block; } }
c-manifesto.is-scrolled .mh-scroll { opacity: 0; }
.mh-scroll-arrow { display: inline-block; width: 8px; height: 8px; margin-left: 6px; vertical-align: 0; transform: rotate(135deg); }
.mh-scroll-arrow { animation: hx-nudge 1.8s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes hx-nudge { 0%, 100% { transform: translateY(-1px) rotate(135deg); } 50% { transform: translateY(3px) rotate(135deg); } }

/* the case stack stays hidden until the hero has landed on its first panel */
html.mh-land-wait c-workstack[data-landing] { visibility: hidden; }
/* once the hero has landed, the gallery comes in front of it (the same photo underneath), so its
   words and its bar show at once instead of being uncovered as the hero scrolls away */
html:not(.mh-land-wait) c-workstack[data-landing] { z-index: 2; }

/* ---------- closing call to action (home), in the Work interludes' look ---------- */
/* two screens tall, the line held in the middle while the words light up (manifesto.js), so the
   reveal runs over a long stretch of scroll (Kevin, 18 Nov 2026: too quick to see before) */
.mh-cta {
  /* V04 (Kevin, 20 Nov 2026): always the inverse of the dark page around it, light; the theme
     colours are light-dark() pairs, so the section's colour scheme picks them */
  color-scheme: light;
  position: relative;
  height: 220svh;
  background: var(--color-theme-bg);
  color: var(--color-theme-fg);
  text-align: center;
}
.mh-cta-stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100svh;
  padding: 0 max(16px, 4.6vw);
}
/* the footer marquee in #161414, fully opaque (Kevin, 19 Nov 2026) */
c-full-footer [data-footer="marquee"] { opacity: 1; color: #161414; }

.mh-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.mh-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* the site's buttons in the page colours: filled and outlined, the arrow square in contrast */
.mh-btn-pos { background: var(--color-theme-fg); color: var(--color-theme-bg); }
.mh-btn-pos .mm-sq { background: var(--color-theme-bg); color: var(--color-theme-fg); }
.mh-btn-neg { color: var(--color-theme-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-theme-fg) 25%, transparent); }
.mh-btn-neg .mm-sq { background: var(--color-theme-fg); color: var(--color-theme-bg); }
.mh-btn-neg:hover { box-shadow: inset 0 0 0 1px var(--color-theme-fg); }
.mh-cta-link {
  margin: 0;
  display: inline-block;
  color: inherit;
  text-decoration: none;
  font-size: var(--mh-h1);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
/* "Brief us now" rolls up on hover, as the buttons' labels: a copy of it waits one line below
   (text-shadow) and takes its place */
.mh-cta-roll { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; }
.mh-cta-roll > span { display: block; text-shadow: 0 1.5em currentColor; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.mh-cta-link:is(:hover, :focus-visible) .mh-cta-roll > span { transform: translateY(-1.5em); }

/* ---------- legal pages, laid out as preymaker.com/legal (Kevin, 18 Nov 2026) ----------
   left: overtitle, title and the numbered contents list, which stays put while the text scrolls;
   right half: the numbered sections. On phones, one column. */
.lg {
  display: grid;
  gap: 48px;
  padding: max(140px, 18svh) max(16px, 4.6vw) max(96px, 14svh);
}
.lg-eyebrow,
.lg-toc a,
.lg-h {
  font-size: var(--mh-caps);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lg-eyebrow { margin: 0 0 16px; color: color-mix(in srgb, var(--color-theme-fg) 55%, transparent); }
.lg-title {
  margin: 0;
  font-size: var(--mh-h1);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.lg-toc { display: grid; gap: 10px; margin: 40px 0 0; padding: 0; list-style: none; }
.lg-toc a {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  color: color-mix(in srgb, var(--color-theme-fg) 40%, transparent);
  text-decoration: none;
  transition: color 0.3s ease;
}
.lg-toc a:hover,
.lg-toc a.is-on { color: var(--color-theme-fg); }
.lg-body { min-width: 0; }
.lg-intro {
  margin: 0;
  font-size: var(--mh-h3);
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.lg-updated {
  margin: 16px 0 0;
  font-size: var(--mh-caps);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-theme-fg) 55%, transparent);
}
.lg-article {
  padding-top: 28px;
  margin-top: 48px;
  border-top: 1px solid color-mix(in srgb, var(--color-theme-fg) 12%, transparent);
  scroll-margin-top: 140px;
}
.lg-intro + .lg-updated + .lg-article,
.lg-body > .lg-article:first-child { margin-top: 48px; }
.lg-h { display: grid; grid-template-columns: 3.2em 1fr; margin: 0 0 20px; font-weight: 500; }
.lg-h span { color: color-mix(in srgb, var(--color-theme-fg) 45%, transparent); }
.lg-article p,
.lg-list li {
  margin: 0 0 14px;
  font-size: var(--mh-body);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--color-theme-fg) 80%, transparent);
}
.lg-article a { color: var(--color-theme-fg); text-decoration: underline; text-underline-offset: 3px; }
.lg-list { margin: 0 0 14px; padding: 0; list-style: none; }
.lg-list li { position: relative; padding-left: 1.6em; }
.lg-list li::before { content: "\2014"; position: absolute; left: 0; }
@media (min-width: 48rem) {
  .lg { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
  .lg-side { grid-column: 1 / 6; position: sticky; top: max(120px, 15svh); }
  .lg-body { grid-column: 7 / 13; }
  /* the text starts level with the title, as on Preymaker */
  .lg-body { padding-top: calc(var(--mh-caps) * 1.5 + 16px); }
}

/* footer: the dside agency logo, large, in the text colour, instead of the statement */
c-full-footer .mh-foot-logo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 155.318 / 25.625;
  margin: 0;
  background: currentColor;
  -webkit-mask: url("/manifesto/img/wordmark.svg") left center / contain no-repeat;
  mask: url("/manifesto/img/wordmark.svg") left center / contain no-repeat;
}

/* the footer in one screen, marquee included (Kevin, 18 Nov 2026, ref. a "Get in touch" footer):
   less room between the marquee and the columns */
@media (min-width: 48rem) {
  c-full-footer [data-footer="inner"] > div:first-child { padding-top: 56px; }
  c-full-footer [data-footer="inner"] > .relative { margin-top: 32px; }
  c-full-footer [data-footer="inner"] > .relative > .grid { padding-top: 40px; }
}
/* footer reveal as on coffee-tech.com (Kevin, 18 Nov 2026): one flat colour from the marquee to
   the bottom (no gradient band, no curved edge), the marquee in place from the start (no rise, no
   veil). As on coffee-tech.com the page sits above the footer and lifts off it: the footer is
   uncovered underneath, never over the content (Kevin, 19 Nov 2026), and settles into place a
   little more slowly than the scroll (manifesto.js) */
main#main { position: relative; z-index: 1; background: var(--color-theme-bg); }
c-full-footer { z-index: 0; background: var(--color-theme-bg) !important; }
c-full-footer [data-footer="inner"],
c-full-footer [data-footer="marquee"] { transform: none !important; }
c-full-footer [data-footer="inner"] > .relative > [class*="rounded-t-"] { display: none; }
c-full-footer > .pointer-events-none.absolute { display: none; }

/* footer call to action (Kevin, 18 Nov 2026, after koto.com's "Say hello" card): the agency film
   looping in a rounded card under the logo, "Let's create together" over it bottom left and the
   site's arrow square bottom right; the whole card leads to the contact page */
.foot-cta {
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px; /* the whole footer, marquee included, fits one screen (Kevin, 18 Nov 2026) */
  aspect-ratio: 5 / 3;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.foot-cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.foot-cta:is(:hover, :focus-visible) .foot-cta-video { transform: scale(1.07); }
.foot-cta-label {
  position: absolute;
  left: 18px;
  /* level with the arrow square: its middle 34px from the bottom (14px + 40px / 2) */
  bottom: calc(34px - 0.75em);
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* the label's words rise out of their masks once the card has grown, as the hero's statements */
.foot-w { display: inline-block; overflow: clip; vertical-align: bottom; }
.foot-w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.foot-cta.is-in .foot-w > span { transform: none; transition-delay: calc(0.45s + var(--k, 0) * 0.08s); }
.foot-cta-sq {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.14);
  backdrop-filter: blur(10px);
}
/* the card grows out of its bottom-left corner to its size when it comes into view (.is-in set by
   the footer script), Kevin, 18 Nov 2026 */
.foot-cta {
  transform: scale(0.12);
  transform-origin: 0 100%;
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.foot-cta.is-in { transform: none; opacity: 1; }
.foot-cta-sq svg { width: 9px; height: 9px; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.foot-cta:is(:hover, :focus-visible) .foot-cta-sq svg { transform: rotate(45deg); }

/* the outlined button over the footer film, bottom left (Kevin, 19 Nov 2026) */
.foot-cta-btns { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; }
.foot-cta-btns .mm-btn { min-height: 40px; }

/* V04: photos that are not ours (Wikimedia Commons) carry a red rule (Kevin, 20 Nov 2026) */
.mh-fly.is-ext img { outline: 1px solid #ff2a1f; outline-offset: -1px; }

/* V04 (Kevin, 20 Nov 2026): the transition screens between pages are black, the logo white,
   whatever the page's theme (worktransition.js and the case reveal use the same colours) */
c-page-transition { background-color: #000 !important; color: #fff !important; }
c-page-transition .pt-logo, c-page-transition .pt-svg { color: #fff !important; }
