/* GDxUX rebrand v8, concept C "Block Party": neighborhood poster board, screen-print blocks.
   Colors: cream (neutral) + cobalt (chroma, with its dark ink shade) + signal yellow (accent, sparing). */

/* Self-hosted variable fonts (SIL OFL 1.1, OFL.txt next to each file). Ranges are the font axes,
   so the 800 headings, 75-100% widths, optical size and Onest 400/500 all come from one file each. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque/BricolageGrotesque[opsz,wdth,wght].woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest/Onest[wght].woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #FAF6EC;        /* page paper */
  --cream-2: #EFE8D6;      /* tiles, inputs (one step down) */
  --ink: #0B1A4A;          /* text, edges, hard shadows; darkest cobalt */
  --ink-2: #3B4A7A;        /* secondary text on cream */
  --cobalt: #1C44C9;       /* big color blocks, primary button */
  --cobalt-deep: #15359F;  /* primary button hover */
  --yellow: #FFCE1A;       /* accent: one underlined word, one sticker, focus */
  --scrim: rgb(11 26 74 / 0.55); /* ink, behind the menu sheet */

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --edge: 3px;
  --lift: 4px;
  --radius: 0.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 82rem;
  --head-h: 4rem;
  --stack-top: 5rem;
}
@media (min-width: 56rem) {
  :root { --head-h: 4.5rem; --stack-top: 6rem; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--cream);
  color: var(--ink);
  scrollbar-color: var(--ink) var(--cream-2);
  hanging-punctuation: first last;
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  caret-color: var(--cobalt);
}
::selection { background: var(--yellow); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-optical-sizing: auto;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, a, label, summary, [role="button"] { touch-action: manipulation; }
button, .btn, .menu-btn, .marquee-btn, .sheet-close {
  user-select: none;
  -webkit-user-select: none;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--yellow); }
a:not(.btn):not(.tile-link):not(.bill):focus-visible { background: var(--yellow); color: var(--ink); }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: 0; z-index: 100;
  padding: 0.75rem 1rem; background: var(--yellow); color: var(--ink);
  font-weight: 500; border: var(--edge) solid var(--ink);
  transform: translateY(-120%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- stamp button (thick edge + hard offset shadow) ---------- */
.btn {
  --face: var(--cream);
  --label: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  margin: 0 var(--lift) var(--lift) 0;
  border: var(--edge) solid var(--ink);
  border-radius: var(--radius);
  background-color: var(--face); /* on the element itself, so contrast tools read the real face */
  color: var(--label);
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
  font: 800 1.125rem/1.1 var(--font-display);
  font-stretch: 90%;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
/* Press: the face drops 2px onto its shadow like a rubber stamp. Only transform animates;
   the shadow shrinks by the same 2px instantly, so the shadow edge stays put on the page. */
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 90ms; }
.btn:focus-visible { outline-offset: calc(var(--lift) + 3px); }
.btn--primary { --face: var(--cobalt); --label: var(--cream); }
.btn--sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --face: var(--cobalt-deep); }
  .btn--plain:hover { --face: var(--cream-2); }
}

.text-link {
  display: inline-flex; /* standalone links only: 44px tall tap area, same look */
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: var(--cobalt); color: var(--cobalt); }
  .on-dark .text-link:hover { color: var(--cream); text-decoration-color: var(--yellow); }
}

/* ---------- header: block bar, hides on scroll down ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: var(--edge) solid var(--ink);
  transition: transform 200ms var(--ease-out);
}
.site-head.is-hidden { transform: translateY(-100%); }
.head-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  height: var(--head-h);
}
.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.brand img { width: auto; height: 2rem; }
.site-nav { display: none; }
.site-nav ul { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.site-nav li { display: flex; }
.site-nav a {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-left: var(--edge) solid var(--ink);
  font: 800 1.125rem/1 var(--font-display);
  text-decoration: none;
}
.site-nav li:last-child a { border-right: var(--edge) solid var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -6px 0 var(--cobalt); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background: var(--cobalt); color: var(--cream); }
}
.head-cta { display: flex; align-items: center; }
.head-cta .btn { margin-bottom: 0; }
.cta-more { display: none; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: var(--edge) solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font: 800 1rem/1 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.97); }
@media (min-width: 26rem) {
  .cta-more { display: inline; }
}
@media (min-width: 56rem) {
  .brand img { height: 2.25rem; }
  .site-nav { display: block; }
  .menu-btn { display: none; }
  .head-row { gap: 1.25rem; }
}

/* ---------- bottom sheet menu ---------- */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 36rem;
  max-height: min(85dvh, 34rem);
  margin: 0 auto;
  padding: 0;
  border: var(--edge) solid var(--ink);
  border-bottom: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--cream);
  color: var(--ink);
  overscroll-behavior: contain;
}
.sheet::backdrop { background: var(--scrim); }
.sheet-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.75rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.sheet-handle {
  width: 3rem;
  height: 0.375rem;
  margin: 0 auto 0.25rem;
  border-radius: 999px;
  background: var(--ink);
}
.sheet-nav { margin: 0; padding: 0; list-style: none; }
.sheet-nav li + li { border-top: var(--edge) solid var(--ink); }
.sheet-nav a {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
  font: 800 2rem/1 var(--font-display);
  text-decoration: none;
}
.sheet-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.sheet-close {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 1.125rem;
  border: var(--edge) solid var(--ink);
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink);
  font: 500 1rem/1 var(--font-body);
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.sheet-close:active { transform: scale(0.97); }
@supports (transition-behavior: allow-discrete) {
  @media (prefers-reduced-motion: no-preference) {
    .sheet {
      transform: translateY(100%);
      transition: transform 200ms var(--ease-out), display 200ms allow-discrete, overlay 200ms allow-discrete;
    }
    .sheet[open] {
      transform: translateY(0);
      transition-duration: 280ms;
      transition-timing-function: var(--ease-drawer);
    }
    @starting-style { .sheet[open] { transform: translateY(100%); } }
    .sheet::backdrop {
      opacity: 0;
      transition: opacity 200ms var(--ease-out), display 200ms allow-discrete, overlay 200ms allow-discrete;
    }
    .sheet[open]::backdrop { opacity: 1; }
    @starting-style { .sheet[open]::backdrop { opacity: 0; } }
  }
}

/* ---------- hero: the whole first screen is one poster wall ----------
   Modular grid of unequal cells. The h1 is split into two paper blocks (cream, then a cobalt block
   offset to the right); client flyers are taped/pinned into the gaps; the client marquee crosses
   the bottom as a tilted strip. Phone = a tall poster (7 cols), desktop = a wall (12 cols). */
.hero {
  overflow-x: clip;
  padding-block: clamp(0.75rem, 2svh, 1.25rem) clamp(1.25rem, 3svh, 2rem);
}
.hero-board {
  --cols: 7;   /* board columns (7 on phones so "community" fits the cobalt block at 360px) */
  --hcols: 7;  /* columns the h1 spans */
  --off: 2;    /* columns the cobalt h1 block is pushed right */
  --gx: 0.625rem;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 0.625rem var(--gx);
}
.hero-title {
  grid-column: 1 / -1;
  grid-row: 1; /* own row on small screens so flyers cannot sit on the cream headline */
  display: grid;
  align-content: start;
  gap: 0.625rem;
  /* Slightly roomier than 2.125rem/10.4vw: at 320px "Design for Seattle’s" had only ~3px to spare. */
  font-size: clamp(2rem, min(10vw, 5.4svh), 7rem);
  font-stretch: 82%;
  line-height: 0.92;
  letter-spacing: -0.015em;
  word-break: normal;
  overflow-wrap: normal;
}
.h1-a, .h1-b {
  display: block;
  padding: clamp(0.625rem, 1.4vw, 1.125rem) clamp(0.75rem, 1.6vw, 1.25rem);
  border: var(--edge) solid var(--ink);
  word-break: normal;
  overflow-wrap: normal;
}
.h1-a { background: var(--cream); }
.h1-b {
  /* Full width on small screens; the column offset returns at 64rem, once flyers sit beside it. */
  margin-left: 0;
  background: var(--cobalt);
  color: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
  rotate: -1deg;
}
/* Signature: the one yellow sticker on the page, stuck on the word "community". */
.mark {
  display: inline-block;
  padding: 0.02em 0.12em 0.06em;
  border: var(--edge) solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  line-height: 0.92;
  rotate: -3deg;
  white-space: nowrap;
}
.lede {
  max-width: 38em;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.6rem + 1vw, 1.25rem);
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}
.hero-copy { grid-column: 1 / -1; grid-row: 3; }
.hero-copy .lede { font-size: 1.0625rem; }
.hero-actions { grid-column: 1 / -1; grid-row: 4; margin-top: 0.25rem; gap: 0.75rem; }
@media (max-width: 30rem) {
  .hero-actions .btn { padding-inline: 1rem; font-size: 1.0625rem; }
}

/* flyers: real client work, taped or pinned to the wall */
.flyer {
  position: relative;
  z-index: 1;
  align-self: start;
  margin: 0;
  padding: 0.375rem;
  background: var(--cream);
  border: var(--edge) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  rotate: var(--r, 0deg);
}
.flyer img { width: 100%; height: auto; aspect-ratio: var(--ar, 3 / 4); object-fit: cover; }
.flyer .fit-contain { object-fit: contain; }
.flyer figcaption { display: none; margin-top: 0.375rem; font: 800 1rem/1.2 var(--font-display); }
.flyer::before {
  /* a strip of tape */
  content: "";
  position: absolute;
  z-index: 1;
  top: -0.7rem;
  left: 50%;
  width: 3.25rem;
  height: 1.1rem;
  margin-left: -1.625rem;
  background: var(--cream-2);
  border: 2px solid var(--ink);
  rotate: -5deg;
}
.flyer--pin::before {
  /* a push pin instead of tape */
  top: -0.45rem;
  width: 1rem;
  height: 1rem;
  margin-left: -0.5rem;
  border-radius: 50%;
  background: var(--cobalt);
}
/* On small screens the collage gets its own row under both headline blocks, so the
   tilted cards cannot cover the type. At 64rem they return to the gaps in the poster wall. */
.flyer--1 { grid-column: 1 / 5; grid-row: 2; align-self: start; justify-self: start; width: 78%; max-width: 11rem; margin: 0.5rem 0 2.5rem; --r: -4deg; }
.flyer--2 { grid-column: 3 / 7; grid-row: 2; align-self: end; justify-self: start; width: 54%; max-width: 7.5rem; margin: 3.25rem 0 0.25rem; z-index: 2; --r: 6deg; --ar: 1; }
.flyer--3 { display: none; }

@media (min-width: 64rem) {
  .hero-board { --cols: 12; --hcols: 9; --off: 3; --gx: 1rem; row-gap: 0.75rem; }
  .hero-title { grid-column: 1 / 10; grid-row: 1 / 3; font-size: clamp(3rem, min(5.3vw, 8.2svh), 7rem); gap: 0.75rem; }
  .h1-b { margin-left: calc((100% + var(--gx)) * var(--off) / var(--hcols)); }
  .flyer figcaption { display: block; }
  .flyer--1 { grid-column: 10 / 13; grid-row: 1 / 3; align-self: start; justify-self: center; width: 86%; max-width: none; margin: 0.375rem 0 0; --r: 2.5deg; }
  .flyer--2 { grid-column: 1 / 4; width: 80%; max-width: none; margin: 0; justify-self: center; --r: -3deg; --ar: 4 / 3; }
  .flyer--3 { display: block; grid-column: 10 / 13; grid-row: 3; justify-self: start; width: 56%; margin-top: -3.5rem; z-index: 2; --r: 5deg; --ar: 1; }
  .hero-copy { grid-column: 1 / 6; padding: 1rem 1.25rem; background: var(--cream-2); border: var(--edge) solid var(--ink); }
  .hero-copy .lede { font-size: 1.125rem; }
  .hero-actions { grid-column: 6 / 10; grid-row: 3; align-self: center; margin-top: 0; }
}

/* The client strip crosses the bottom of the first screen, tilted like a paper band. */
.hero .marquee {
  margin: clamp(0.75rem, 2svh, 1.25rem) -2rem 0;
  padding-inline: 2rem;
  rotate: -1.5deg;
}
@media (min-width: 64rem) { .hero .marquee { rotate: -0.8deg; } }

/* ---------- client marquee ---------- */
.marquee {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--cobalt);
  color: var(--cream);
  border-block: var(--edge) solid var(--ink);
}
.marquee-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.marquee-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  min-height: 2.75rem;
  background: var(--ink);
  color: var(--cream);
  border-right: var(--edge) solid var(--ink);
  cursor: pointer;
}
.marquee-btn svg { width: 1.25rem; height: 1.25rem; }
.marquee-btn .i-play { display: none; }
.marquee-toggle:checked + .marquee-btn .i-pause { display: none; }
.marquee-toggle:checked + .marquee-btn .i-play { display: block; }
.marquee-toggle:focus-visible + .marquee-btn { outline: 3px solid var(--yellow); outline-offset: -7px; }
.marquee-viewport { display: flex; flex: 1; min-width: 0; overflow: hidden; }
.marquee-track {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 48s linear infinite;
}
.marquee-track li {
  display: flex;
  align-items: center;
  padding-block: 0.7rem;
  font: 800 clamp(1.375rem, 1rem + 1.4vw, 2rem)/1 var(--font-display);
  font-stretch: 90%;
  white-space: nowrap;
}
.marquee-track li::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  margin-inline: 0.85em;
  background: var(--cream);
}
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-toggle:checked ~ .marquee-viewport .marquee-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .marquee-viewport:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  /* hide the whole control, checkbox included, so keyboard focus never lands on an invisible input */
  .marquee-toggle, .marquee-btn, .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-viewport { padding-inline: var(--gutter); }
  .marquee-track { flex-wrap: wrap; flex-shrink: 1; animation: none; }
  .marquee-track li { white-space: normal; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section.flush-top { padding-top: 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-title {
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  font-stretch: 85%;
  line-height: 0.95;
}
.on-dark { color: var(--cream); }
.on-dark .lede { color: var(--cream); }

/* wave divider (Ania: SVG wave as a mask, repeat-x). Static. */
.wave {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12C10 12 10 2 20 2S30 12 40 12 50 22 60 22 70 12 80 12V24H0Z'/%3E%3C/svg%3E");
  height: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: -1px;
  background: var(--wave-color, var(--ink));
  -webkit-mask: var(--wave) 0 0 / 5rem 100% repeat-x;
  mask: var(--wave) 0 0 / 5rem 100% repeat-x;
}
.wave--down { transform: scaleY(-1); margin-top: 0; margin-bottom: -1px; }
.wave--cobalt { --wave-color: var(--cobalt); }

/* ---------- selected work: color-block mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile--L, .tile--W { grid-column: span 2; }
.tile-link {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  height: 100%;
  padding: 0.625rem;
  background: var(--tile-bg, var(--cream-2));
  color: var(--tile-ink, var(--ink));
  border: var(--edge) solid var(--ink);
  text-decoration: none;
}
.t-cobalt { --tile-bg: var(--cobalt); --tile-ink: var(--cream); }
.t-ink { --tile-bg: var(--ink); --tile-ink: var(--cream); }
.t-paper { --tile-bg: var(--cream-2); --tile-ink: var(--ink); }
/* clip, not hidden: an overflow:hidden box is a scroll container, so the img's view() would track
   this box instead of the page and the 1.1→1 settle would never run. hidden stays as the fallback. */
.tile-media { overflow: hidden; overflow: clip; background: var(--cream); }
.tile-media img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tile--W .tile-media img { aspect-ratio: 16 / 9; }
.tile-name { display: block; font: 800 1.25rem/1.1 var(--font-display); }
.tile-desc { display: block; margin-top: 0.2rem; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .tile-link:hover .tile-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.15em; }
}
@media (min-width: 56rem) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 17rem; gap: 1rem; }
  .tile--L { grid-row: span 2; }
  .tile-media { flex: 1; min-height: 0; }
  .tile-media img, .tile--W .tile-media img { aspect-ratio: auto; }
  .tile-name { font-size: 1.375rem; }
}
/* Wipe reveal tied to scroll (Emil: clip-path inset). No support or reduced motion = just visible.
   Fill "backwards" so the clip is gone after the reveal and focus rings are never cut. */
/* Phone: the mosaic becomes a swipe row of flyers with scroll-snap (Ania). Keyboard Tab still
   walks every tile and the row scrolls to it. */
@media (max-width: 55.99rem) {
  .mosaic {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 22rem);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 0.25rem 1rem;
  }
  .mosaic > li { scroll-snap-align: start; }
  .tile--L, .tile--W { grid-column: auto; }
  .tile-media img, .tile--W .tile-media img { aspect-ratio: 4 / 3; }
}
/* Desktop only: on phones the tiles live in a horizontal scroller, where a block-axis view()
   timeline would have nothing to track. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 56rem) {
    .tile {
      animation: wipe-up linear backwards;
      animation-timeline: view();
      animation-range: entry 10% cover 35%;
    }
    .tile--W { animation-name: wipe-side; }
    .tile-media img {
      animation: settle linear backwards;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }
}
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-side { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.1); } to { transform: scale(1); } }

/* ---------- services: sticky stack ---------- */
.services { background: var(--ink); }
.stack {
  --n: 4;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack > li {
  position: sticky;
  top: calc(var(--stack-top) + var(--i) * 1.25rem);
}
.stack-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: clamp(14rem, 40svh, 21rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: var(--edge) solid var(--ink);
  border-radius: 1rem;
  background: var(--cobalt);
  color: var(--cream);
  transform-origin: 50% 0;
}
.stack > li:nth-child(even) .stack-card { background: var(--cream); color: var(--ink); }
.stack-card h3 {
  font-size: clamp(2rem, 1rem + 5vw, 4.5rem);
  font-stretch: 85%;
  line-height: 0.95;
}
.stack-card p { max-width: 30em; font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.375rem); line-height: 1.5; }
@supports (view-timeline-name: --a) and (animation-range: exit-crossing 0% exit-crossing 100%) {
  @media (prefers-reduced-motion: no-preference) {
    .stack { view-timeline-name: --stack; }
    .stack-card {
      animation: stack-back linear both;
      animation-timeline: --stack;
      animation-range: exit-crossing calc(var(--i) / var(--n) * 100%) exit-crossing calc((var(--i) + 1) / var(--n) * 100%);
    }
    .stack > li:last-child .stack-card { animation: none; }
  }
}
@keyframes stack-back { to { transform: scale(0.96); } }

/* ---------- community ---------- */
.community-grid { display: grid; gap: 2rem; }
.sticker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.9rem;
  border: var(--edge) solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(1rem, 0.8rem + 0.6vw, 1.25rem);
  line-height: 1.1;
  transform: rotate(-4deg);
}
.big-word {
  display: block;
  color: var(--cobalt);
  font-size: clamp(3rem, 1rem + 10vw, 9.5rem);
  font-stretch: 78%;
  line-height: 0.88;
  letter-spacing: -0.02em;
}
.community-copy { display: grid; gap: 1.25rem; align-content: start; }
.community-copy p { max-width: 34em; }
.founder {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding: 1.25rem 1.5rem;
  border: var(--edge) solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font: 800 clamp(1.5rem, 1rem + 2vw, 2.25rem)/1.1 var(--font-display);
}
@media (min-width: 56rem) {
  .community-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 3rem; }
}

/* ---------- closing ---------- */
.closing { background: var(--cobalt); }
.closing h2 {
  font-size: clamp(2.75rem, 1rem + 8vw, 8rem);
  font-stretch: 80%;
  line-height: 0.92;
  max-width: 12ch;
}
.closing .lede { margin-top: 1.25rem; }
.closing .actions { margin-top: 2rem; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 5rem) calc(2rem + env(safe-area-inset-bottom, 0px));
}
.foot-grid { display: grid; gap: 2rem; }
.foot-logo img { width: 10.5rem; height: auto; }
.foot-line { margin-top: 1rem; }
.foot-slogan {
  font: 800 clamp(2rem, 1rem + 4vw, 4rem)/1 var(--font-display);
  font-stretch: 85%;
  max-width: 14ch;
}
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.foot-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-inline-size: 2.75rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.foot-legal { padding-top: 1.25rem; border-top: var(--edge) solid var(--cream); }
@media (min-width: 56rem) {
  .foot-grid { grid-template-columns: 1fr 1fr; align-items: end; }
  .foot-legal { grid-column: 1 / -1; }
}

/* ---------- page heads (inner pages): same poster wall, smaller ----------
   Title on a cream block, the intro on an offset cobalt block, client flyers taped beside them. */
.page-head { overflow-x: clip; padding-block: clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem); }
.page-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}
.pb-title {
  grid-column: 1 / -1;
  grid-row: 1;
  padding: clamp(0.75rem, 1.6vw, 1.25rem) clamp(0.875rem, 2vw, 1.5rem);
  border: var(--edge) solid var(--ink);
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: clamp(2.5rem, 1rem + 8vw, 7.5rem);
  font-stretch: 80%;
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.pb-title--cobalt { background: var(--cobalt); color: var(--cream); }
.pb-lede {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: none;
  margin-left: 1.25rem;
  padding: 1rem 1.25rem;
  border: var(--edge) solid var(--ink);
  background: var(--cobalt);
  color: var(--cream);
  rotate: -0.6deg;
}
.pb-title--cobalt ~ .pb-lede { background: var(--cream-2); color: var(--ink); }
.page-board--flyer .pb-title { grid-column: 1 / 5; }
.page-board .flyer { grid-column: 5 / -1; grid-row: 1; margin-top: 0.75rem; --r: 4deg; }
.page-board .flyer--b { display: none; }
@media (min-width: 56rem) {
  .page-board { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
  .pb-title { grid-column: 1 / 10; }
  .pb-lede { grid-column: 4 / 13; margin-left: 0; margin-top: -0.25rem; }
  .page-board--flyer .pb-title { grid-column: 1 / 9; }
  .page-board--flyer .pb-lede { grid-column: 3 / 9; }
  .page-board .flyer { grid-column: 9 / 13; grid-row: 1 / 3; width: 80%; justify-self: center; margin-top: 0.5rem; }
  .page-board .flyer figcaption { display: block; }
  .page-board .flyer--b { display: block; grid-column: 1 / 3; grid-row: 2; width: 100%; margin-top: 0.75rem; --r: -5deg; --ar: 1; }
  /* Work has no intro paper, so a two-row flyer left a hole under the title and pushed the list
     below the fold. One row, smaller flyer beside the title, tighter gap to the list. */
  .page-head--work { padding-bottom: 1.5rem; }
  .page-head--work .page-board { align-items: center; }
  .page-head--work .flyer { grid-row: 1; width: 56%; margin-top: 0; align-self: center; }
}

/* ---------- work page: poster board ---------- */
.board {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.board > li:nth-child(odd) { transform: rotate(-0.6deg); }
.board > li:nth-child(even) { transform: rotate(0.5deg); }
.bill {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: var(--tile-bg, var(--cream-2));
  color: var(--tile-ink, var(--ink));
  border: var(--edge) solid var(--ink);
  text-decoration: none;
}
.bill-media { background: var(--cream); border: var(--edge) solid var(--ink); }
.bill-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bill-media .fit-contain { object-fit: contain; }
.bill-media.is-dark { background: var(--ink); }
.bill h2, .bill h3 { font-size: clamp(1.75rem, 1rem + 2.5vw, 2.75rem); font-stretch: 88%; }
.bill p { margin-top: 0.4rem; font-size: 1.0625rem; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .bill:hover :is(h2, h3) { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 0.12em; }
}
@media (min-width: 48rem) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- about ---------- */
.solutions {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.solutions li {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: var(--edge) solid var(--ink);
  background: var(--cream);
  color: var(--ink);
}
.solutions li:nth-child(1), .solutions li:nth-child(4) { background: var(--cobalt); color: var(--cream); }
.solutions h3 { font-size: clamp(1.75rem, 1rem + 2.5vw, 2.75rem); font-stretch: 88%; }
.solutions p { margin-top: 0.75rem; font-size: 1.125rem; }
@media (min-width: 48rem) {
  .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.belief {
  margin-top: 1.5rem;
  max-width: 22em;
  font: 800 clamp(1.5rem, 1rem + 2vw, 2.5rem)/1.15 var(--font-display);
  font-stretch: 90%;
}

/* ---------- contact: direct email block ---------- */
.ask { display: grid; gap: 1.5rem; max-width: 44rem; }
.email-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: var(--edge) solid var(--ink);
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
}
.q-label {
  display: block;
  padding: 0;
  font: 800 clamp(1.5rem, 1rem + 1.6vw, 2.25rem)/1.1 var(--font-display);
  font-stretch: 90%;
}
.email-addr { margin: 0; }
.email-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--cobalt);
  font: 800 clamp(1.75rem, 1.1rem + 2.5vw, 3rem)/1.15 var(--font-display);
  font-stretch: 88%;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
  .email-link:hover { color: var(--cobalt-deep); text-decoration-color: var(--cobalt-deep); }
}
.email-list { display: grid; gap: 0.5rem; margin: 0; padding-left: 1.25rem; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.25rem; }
@media (max-width: 30rem) {
  .form-end .btn { padding-inline: 1rem; font-size: 1.0625rem; }
}
.form-status { font-weight: 500; overflow-wrap: anywhere; }
.form-status:empty {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.form-status:not(:empty) {
  padding: 0.75rem 1rem;
  border: var(--edge) solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream-2);
}

/* ---------- privacy policy (PV1): one reading column; text keeps the body size (17px / 1.6, keep-all) ---------- */
.policy { display: grid; gap: 1rem; max-width: 44rem; }
.policy h2 { margin-top: 1.5rem; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-stretch: 90%; line-height: 1.1; }
.policy ul { display: grid; gap: 0.5rem; margin: 0; padding-left: 1.25rem; }

/* ---------- first-screen motion (all optional: without support or with reduced motion,
   everything sits still in its final place) ---------- */

/* Scroll lock while the menu sheet is open, in CSS first (site.js adds .is-locked as a fallback). */
html:has(.sheet[open]) { overflow: hidden; }

/* Progress meter: a cobalt line across the top that fills as the page scrolls. */
.scroll-meter { display: none; }

/* Enter (Emil): paper pieces settle in once, ease-out 260ms, staggered 60ms by --i.
   Visible by default; only html.js (inline head script) hides them until site.js adds .is-ready
   a frame later. @starting-style alone missed Chromium's first render on the heavier home page.
   Transitions, not keyframes, so an interrupted entrance just continues from where it is.
   The @supports guard only keeps older engines on the plain visible page. */
@supports (transition-behavior: allow-discrete) {
  @media (prefers-reduced-motion: no-preference) {
    .h1-a, .h1-b, .flyer, .hero-copy, .hero-actions, .pb-title, .pb-lede {
      transition: opacity 260ms var(--ease-out), scale 260ms var(--ease-out);
      transition-delay: calc(var(--i, 0) * 60ms);
    }
    html.js:not(.is-ready) :is(.h1-a, .h1-b, .flyer, .hero-copy, .hero-actions, .pb-title, .pb-lede) { opacity: 0; scale: 0.96; }
  }
}

/* Scroll-linked (Ania): flyers peel off the wall as you scroll away, the logo tucks in,
   the meter fills. Separate properties (translate/rotate/scale) so nothing fights the entrance. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .flyer {
      animation: peel linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70vh;
    }
    .flyer--2, .flyer--b { animation-name: peel-left; }
    .brand img {
      transform-origin: 0 50%;
      animation: head-shrink linear both;
      animation-timeline: scroll(root);
      animation-range: 0 10rem;
    }
    .scroll-meter {
      display: block;
      position: fixed;
      inset: 0 0 auto;
      z-index: 60;
      height: 4px;
      background: var(--cobalt);
      transform-origin: 0 50%;
      pointer-events: none;
      animation: meter linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes peel { to { translate: 1.25rem -3.5rem; rotate: 12deg; } }
@keyframes peel-left { to { translate: -1.25rem -2.5rem; rotate: -14deg; } }
@keyframes head-shrink { to { scale: 0.84; } }
@keyframes meter { from { scale: 0 1; } to { scale: 1 1; } }

/* ---------- reduced motion: keep state changes, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .site-head, .menu-btn, .sheet-close {
    transition-duration: 0ms !important;
  }
  .menu-btn:active, .sheet-close:active { transform: none; }
}
