/* Brew Lyfe Coffee. One long page, "Oat milk" colouring (picked Nov 26):
   warm oat and white grounds carry the page, plum sets the words and the footer,
   lime is kept to the leaf, one underline and the cup fill. Real photos lead.
   Bands: oat header, photo hero, white drinks with coffee ring stains, photo city, deep-oat follow, plum footer.
   A brand site: no shop address, hours or ordering (Nov 26).
   Colours and type follow the Brew Lyfe style guide (T. Michelle Creative, Dec 2023):
   lime #A3C250, plum #39194F; Cooper Hewitt for the logo and headings,
   DIN Alternate for subheadings (Barlow stands in, it's the closest free cut), Roboto for body text.
   Motion plays once as each part scrolls in, then stays still. Nothing loops.
   Single look on purpose (the shop's own colours), so no dark-mode swap. */
@font-face { font-family: "Cooper Hewitt"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/cooper-hewitt-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cooper Hewitt"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/cooper-hewitt-latin-700-normal.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --plum: #39194F;      /* brand plum: headings, buttons, footer */
  --plum-deep: #24102F;
  --lime: #A3C250;      /* brand lime: leaf, underline, cup fill only (2:1 on light grounds, never text there) */
  --oat: #F7F2EB;       /* main ground */
  --oat-deep: #EFE7DD;  /* second ground */
  --paper: #FFFFFF;
  --text: #2E2236;      /* body text, 14:1 on oat */
  --muted: #5F5468;     /* 6.4:1 on oat, 7.1:1 on white, 5.8:1 on deep oat */
  --on-dark: #FFFFFF;
  --on-dark-soft: #E4D9EC; /* 10.8:1 on plum */
  --hairline: #E3D9E6;  /* decorative card edges */
  --espresso: 26, 18, 25; /* #1A1219, for photo overlays */
  --focus-light: #39194F;
  --focus-dark: #A3C250;

  --display: "Cooper Hewitt", "Helvetica Neue", Arial, sans-serif;
  --sub: "Barlow", "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --soft: 0 18px 40px -24px rgba(57, 25, 79, .45);
  --r: 18px;            /* soft corners for cards and panels */
  --r-btn: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--oat);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--plum); color: var(--on-dark); padding: 12px 18px; font-weight: 700; text-decoration: none; border-radius: var(--r-btn);
}
.skip:focus { left: var(--gutter-l); top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* Focus: plum ring on light grounds, lime ring on dark ones. */
:focus-visible { outline: 3px solid var(--focus-light); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--focus-dark); }

.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sub); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.kicker .leaf { width: 22px; height: 22px; flex: none; }

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.005em;
  color: var(--plum);
}
/* One lime underline per headline, drawn once. */
.write {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .16em;
  padding-bottom: .04em;
}
/* With script on, each line of a .write word gets a painted brush stroke instead: it sweeps in from the left
   as you scroll, with dry bristle marks trailing off the end. The plain underline above is the fallback. */
.has-brush { position: relative; isolation: isolate; }
.brushes .write { background-image: none; }
.brush {
  position: absolute; z-index: -1; pointer-events: none; overflow: visible; color: var(--lime);
  --edge: calc(var(--paint, 1) * 118% - 18%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 var(--edge), transparent calc(var(--edge) + 18%));
          mask-image: linear-gradient(90deg, #000 0, #000 var(--edge), transparent calc(var(--edge) + 18%));
}

/* Links in running text: no underline at rest, semibold. */
.textlink { font-weight: 700; text-decoration: none; color: var(--plum); }
.textlink:hover, .textlink:focus-visible, .textlink:active {
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}

/* Soft buttons: rounded, a gentle shadow, a small lift on hover. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font: 700 16px/1 var(--sub); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: var(--r-btn); cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background-color 220ms var(--ease);
}
.btn-plum { background: var(--plum); color: var(--on-dark); box-shadow: 0 10px 22px -10px rgba(57, 25, 79, .6); }
.btn-soft { background: var(--paper); color: var(--plum); border: 1px solid var(--hairline); box-shadow: var(--soft); }  /* same edge as the drink cards */
.btn-lime { background: var(--lime); color: var(--plum-deep); box-shadow: 0 10px 22px -12px rgba(163, 194, 80, .7); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-plum:hover { box-shadow: 0 16px 28px -12px rgba(57, 25, 79, .65); }
  .btn-soft:hover { background: var(--oat); }
}
.btn:active { transform: translateY(0); }
.btn .arrow { width: 16px; height: 16px; }

/* Stand-in note: everything marked is waiting on the shop. */
.standin {
  display: inline-block; font-family: var(--sub); font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 10px; border: 1px dashed currentColor; border-radius: 999px;
  vertical-align: middle; white-space: nowrap;
}

/* ---------- Loader (once per visit, skipped when motion is off) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--oat); color: var(--plum);
  display: none;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 28px) var(--gutter-l);
}
.loader.on { display: grid; grid-template-rows: auto 1fr auto; }
.loader.done { opacity: 0; transition: opacity 360ms var(--ease); pointer-events: none; }
.loader-count { font-size: clamp(96px, 20vw, 220px); font-variant-numeric: tabular-nums; }
.loader-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.loader-mark { color: var(--plum); --vein: var(--oat); width: clamp(160px, 22vw, 240px); height: auto; }
.loader-cup { width: clamp(90px, 14vw, 150px); height: auto; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--oat);
}
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(247, 242, 235, .96); color: var(--plum);
  transition: box-shadow 300ms var(--ease);
}
.site-head.scrolled { box-shadow: 0 10px 30px -20px rgba(57, 25, 79, .5); }
.head-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  min-height: 76px; padding-block: 8px;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--sub); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--plum);
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
/* The logo, redrawn from the identity sheet: letters take the text colour, the leaf stays lime. */
.mark {
  display: inline-flex; align-items: center; text-decoration: none; color: var(--plum);
  min-height: 44px; --vein: var(--oat);
}
.mark svg { display: block; width: 188px; height: auto; }
.head-cta { justify-self: end; display: flex; gap: 8px; align-items: center; }
.head-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  font-family: var(--sub); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--plum);
}
.head-link svg { width: 16px; height: 16px; transition: transform 240ms var(--ease); }
.head-link:hover svg, .head-link:focus-visible svg { transform: translateX(4px); }
.head-link:hover, .head-link:focus-visible { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-btn { display: none; }
.sheet { display: none; }

@media (max-width: 760px) {
  .head-row { grid-template-columns: auto 1fr; min-height: 68px; }
  .mark { order: -1; }
  .mark svg { width: 150px; }
  .nav { display: none; }
  .head-link { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    background: transparent; color: var(--plum); border: 0; padding: 0 4px;
    font: 700 15px/1 var(--sub); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  }
  .menu-btn svg { width: 18px; height: 18px; }
  .sheet {
    position: absolute; top: calc(100% - 4px); left: var(--gutter-l); right: var(--gutter-r);
    background: var(--paper); border-radius: var(--r); padding: 10px; box-shadow: 0 24px 40px -18px rgba(57, 25, 79, .5);
  }
  .sheet.open { display: grid; }
  .sheet a { font: 700 18px/1 var(--sub); letter-spacing: .04em; text-decoration: none; color: var(--plum); padding: 16px 14px; border-radius: 12px; }
  .sheet a:hover { background: var(--oat); }
}

/* ---------- Hero: open, no boxes. The marble counter photo runs full width (its tools sit on the right),
   the cup and bag rise in once, then drift with the scroll. ---------- */
.hero { position: relative; overflow: hidden; background: var(--oat); }
.hero-photo {
  position: absolute; top: 0; right: 0; height: 100%; width: 100%; object-fit: cover; object-position: 100% 50%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* an oat veil so the words read on the marble, and a soft glow so the cup and bag stand off the tools */
  background:
    radial-gradient(22% 40% at 76% 54%, rgba(247, 242, 235, .62), rgba(247, 242, 235, 0) 100%),
    linear-gradient(90deg, rgba(247, 242, 235, .92) 0%, rgba(247, 242, 235, .8) 38%, rgba(247, 242, 235, .42) 60%, rgba(247, 242, 235, .3) 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding-block: 56px 24px; min-height: 760px;
}
.hero-text { display: grid; gap: 20px; position: relative; z-index: 3; }  /* words stay above the cup where they overlap */
.hero h1 { font-size: clamp(60px, 9vw, 124px); }
.hero-lede { max-width: 32ch; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero-art { position: relative; min-height: 720px; }
.float { position: absolute; pointer-events: none; will-change: transform; transform: translate(var(--mx, 0px), calc(var(--y, 0px) + var(--my, 0px))) rotate(calc(var(--rot, 0deg) + var(--mr, 0deg))); }
.float img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 18px rgba(46, 34, 54, .3)); }
.float.cup { width: 92%; left: -22%; bottom: -4%; z-index: 2; --rot: -5deg; }  /* twice the first size, moved left by about 20% of its width (Shahad, 26 Nov: halfway back from 40%) */
.float.bag { width: 112%; right: -16%; top: -6%; --rot: 6deg; }

.hero-foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px;
  padding-block: 18px 30px; border-top: 1px solid rgba(57, 25, 79, .22);
  font-size: 16px; color: var(--text);
}
.hero-foot .foot-link { color: var(--plum); font-weight: 700; text-decoration: none; }
.hero-foot .foot-link:hover, .hero-foot .foot-link:focus-visible, .hero-foot .foot-link:active { text-decoration: underline; text-underline-offset: 4px; }
.hero-foot b { display: block; font-family: var(--sub); color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 860px) {
  .hero-photo { object-position: 80% 50%; }
  .hero::after { background: radial-gradient(60% 26% at 50% 78%, rgba(247, 242, 235, .6), rgba(247, 242, 235, 0) 100%), linear-gradient(180deg, rgba(247, 242, 235, .94) 0%, rgba(247, 242, 235, .88) 48%, rgba(247, 242, 235, .45) 66%, rgba(247, 242, 235, .35) 100%); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px 8px; min-height: 0; }
  .hero-art { min-height: 480px; }
  .float.cup { width: 70%; left: -4%; bottom: 0; }  /* as big as a phone allows; no room to move it further left */
  .float.bag { width: 82%; right: -12%; top: 0; }
  .hero-foot { background: rgba(247, 242, 235, .94); margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
}

/* ---------- Menu ---------- */
.menu { position: relative; overflow: hidden; background: var(--paper); padding-block: 96px; }
/* Coffee ring stains (Nov 27): the marks wet cups leave on a counter, kept to the edges so
   they never sit under the words. They soak in as the drinks come up, then drift a little with the scroll. */
.stains { position: absolute; inset: 0; pointer-events: none; }
.stain {
  position: absolute; display: block; height: auto; max-width: none; opacity: var(--o, .3);
  rotate: calc(var(--r, 0deg) + var(--drift, 0) * var(--spin, 0deg));
  translate: 0 calc(var(--drift, 0) * var(--depth, 0px));
}
.stain.s1 { width: clamp(300px, 31vw, 430px); top: -15%; right: -7%; --r: 12deg; --depth: -46px; --spin: 6deg; --o: .7; }
.stain.s2 { width: clamp(260px, 27vw, 380px); top: 4%; left: -7%; --r: -30deg; --depth: 34px; --spin: -5deg; --o: .6; }
.stain.s3 { width: clamp(190px, 19vw, 270px); bottom: -7%; right: 21%; --r: 70deg; --depth: -58px; --spin: 9deg; --o: .7; }
@media (max-width: 960px) {
  .stain.s1 { top: -6%; right: -26%; }
  .stain.s2 { top: auto; bottom: -2%; left: -34%; }
  .stain.s3 { bottom: -3%; right: -12%; }
}
.menu .wrap { position: relative; }
.menu-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: end;
  margin-top: 14px;
}
.menu h2 { font-size: clamp(52px, 7.4vw, 96px); }
.menu-lede { max-width: 30ch; font-size: 17px; color: var(--muted); }
.cards {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.card {
  position: relative; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r);
  overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; min-height: 340px;
  box-shadow: var(--soft);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.card-art { background: var(--oat); display: grid; place-items: center; aspect-ratio: 1; }
.card-art img { width: 100%; height: 100%; object-fit: contain; padding: 8%; display: block; }
.card-art.photo img { object-fit: cover; padding: 0; }
.card-art .standin { position: absolute; top: 12px; right: 12px; color: var(--muted); background: rgba(255, 255, 255, .92); }
.card-row { display: grid; gap: 6px; padding: 16px 18px 18px; }
.card h3 { font-family: var(--sub); font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.card .desc { font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(57, 25, 79, .55); } }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .menu-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- City: a close-up photo under a dark espresso wash ---------- */
.city { position: relative; overflow: hidden; color: var(--on-dark); padding-block: 130px; background: rgb(var(--espresso)); }
.city-photo, .city-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.city-video { opacity: 0; transition: opacity 600ms var(--ease); }
.city-video.ready { opacity: 1; }  /* the still shows until the video can play, and stays for reduced motion */
.city::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(57, 25, 79, .55), transparent 70%),
    linear-gradient(90deg, rgba(var(--espresso), .82) 0%, rgba(var(--espresso), .6) 55%, rgba(var(--espresso), .35) 100%);
}
.city .wrap { position: relative; z-index: 2; }
.city h2 { font-size: clamp(44px, 6.4vw, 88px); max-width: 15ch; color: var(--on-dark); }
.city h2 span { color: var(--lime); }  /* 5:1 or better on the wash */
.city p { margin-top: 24px; max-width: 40ch; color: var(--on-dark-soft); }

/* ---------- Follow along (brew ticket) ---------- */
.follow { background: var(--oat-deep); color: var(--plum); padding-block: 96px; }
.follow-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 380px); gap: 40px 72px; align-items: start; justify-content: space-between;
}
.follow h2 { font-size: clamp(48px, 6.4vw, 88px); margin-top: 14px; }
.follow .lede { margin-top: 20px; max-width: 34ch; color: var(--text); }
.follow .side { display: grid; gap: 16px; justify-items: start; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(57, 25, 79, .22); }  /* under the intro, beside the receipt */
.follow .side p { color: var(--muted); max-width: 30ch; }

.printer { position: relative; filter: drop-shadow(0 24px 30px rgba(57, 25, 79, .22)); }
.printer .slot {
  height: 26px; background: var(--plum); border-radius: 14px;
  box-shadow: inset 0 -6px 0 var(--plum-deep);
}
.feed { overflow: hidden; margin-inline: 14px; }
.receipt {
  background: var(--paper); color: var(--text); padding: 20px 20px 26px;
  font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px));
}
/* Prints with the scroll: --print goes 0 to 1 as the printer comes up the screen, in small steps like a real feed. */
.js-motion .receipt { transform: translateY(calc((var(--print, 0) - 1) * 100%)); }
.receipt .r-shop { font-family: var(--sub); text-align: center; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 14px; color: var(--plum); }
.receipt hr { border: 0; border-top: 2px dashed #BDB2C4; margin: 12px 0; }
.receipt .r-logo { display: block; width: 172px; height: auto; margin: 0 auto 6px; color: var(--plum); }
.receipt .r-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--sub); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.receipt .r-meta + .r-meta { margin-top: 2px; }
.receipt .r-sub { margin-top: 0; padding-left: 1.4em; font-size: 14px; }
.receipt .r-total { color: var(--plum); font-weight: 700; font-family: var(--sub); text-transform: uppercase; letter-spacing: .08em; margin-top: 0; }
.receipt .r-photo { display: block; width: 100%; height: 168px; object-fit: contain; padding-block: 10px; background: var(--oat); border-radius: 10px; }  /* a fixed height so only a little oat shows above and below the cup */
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); margin-top: 4px; }
.receipt .r-big { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: .95; color: var(--plum); text-align: center; }
.receipt .btn { width: 100%; margin-top: 14px; }
.barcode {
  height: 34px; margin-top: 14px;
  background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 12px);
}
.receipt .r-foot { font-family: var(--sub); text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 960px) {
  .follow-grid { grid-template-columns: minmax(0, 1fr); }
  .printer { max-width: 360px; width: 100%; }
}

/* ---------- Footer: the one plum band ---------- */
.foot { background: var(--plum); color: var(--on-dark); padding-block: 72px 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot .mark { color: var(--on-dark); --vein: var(--plum); }
.foot .mark svg { width: 120px; }
.foot .tag { margin-top: 14px; color: var(--on-dark-soft); font-size: 16px; max-width: 24ch; }
.foot h3 { font-family: var(--sub); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.foot ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.foot li, .foot p { font-size: 16px; color: var(--on-dark-soft); }
.foot ul a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; color: var(--on-dark); font-weight: 700; }
.foot ul a:hover, .foot ul a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px;
  border-top: 1px solid rgba(228, 217, 236, .3); font-size: 14px; color: var(--on-dark-soft);
}
.foot-base { align-items: center; }
.foot-base .vm-credit { flex: none; white-space: nowrap; margin: -12px -4px -12px 0; }  /* the tag's own 44px tap area, kept on the line; never shrinks or breaks: "powered by" and the wordmark always share one line */
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion: each piece plays once as it scrolls in, then stays put ---------- */
.js-motion [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.js-motion [data-reveal].in { opacity: 1; transform: none; }
.js-motion .hero-photo, .js-motion .city-photo { transform: scale(1.1); transition: transform 2800ms cubic-bezier(.16, .8, .3, 1); }
.js-motion .in .hero-photo, .js-motion .in .city-photo, .js-motion .in.hero .hero-photo, .js-motion .in.city .city-photo { transform: scale(1); }
.js-motion .float { opacity: 0; transform: translate(var(--mx, 0px), calc(var(--y, 0px) + var(--my, 0px) + 70px)) rotate(calc(var(--rot, 0deg) + var(--mr, 0deg) - 8deg)); transition: opacity 900ms var(--ease), transform 1400ms cubic-bezier(.2, .9, .25, 1); }
.js-motion .float.cup { transition-delay: 250ms; }
.js-motion .hero.in .float { opacity: 1; transform: translate(var(--mx, 0px), calc(var(--y, 0px) + var(--my, 0px))) rotate(calc(var(--rot, 0deg) + var(--mr, 0deg))); }
.js-motion .hero.settled .float { transition: none; }
.js-motion .stain { opacity: 0; scale: .9; filter: blur(5px); transition: opacity 1800ms var(--ease), scale 2400ms cubic-bezier(.16, .8, .3, 1), filter 1800ms var(--ease); }
.js-motion .stain.s2 { transition-delay: 350ms; }
.js-motion .stain.s3 { transition-delay: 700ms; }
.js-motion .menu.in .stain { opacity: var(--o, .3); scale: 1; filter: none; }
.js-motion:not(.brushes) .write { background-size: 0% .16em; transition: background-size 1200ms var(--ease) 700ms; }
.js-motion:not(.brushes) .in .write { background-size: 100% .16em; }
@media (prefers-reduced-motion: no-preference) {
  .type { clip-path: inset(0 100% 0 0); animation: type 900ms steps(18, end) 400ms forwards; }
}
@keyframes type { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .nav a::after { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* 404 page (dist/404.html only): the logo, one line and the way home. */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-block: 48px; }
.lost .wrap { display: grid; justify-items: center; gap: 20px; }
.lost .lost-mark svg { display: block; width: 120px; height: auto; color: var(--plum); }
.lost .display { font-size: clamp(36px, 6vw, 64px); }
.lost p { max-width: 36ch; color: var(--muted); font-size: 18px; line-height: 1.5; }

/* ---------- verumos credit tag, dark version, copied unchanged from the verumos brand guide
   (brand/assets/credit/verumos-credit-snippet.html, v2). Don't restyle it here. ---------- */
/* verumos credit tag v2 (26 November 2026, "powered by"). Built from the official wordmark kit. */
.vm-credit {
  --_f: max(18px, var(--vm-credit-f, 18px)); /* F, the wordmark size. Never under 18px. */
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  margin: 0; border: 0; background: none; box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: calc(var(--_f) * .75); font-weight: 500; font-style: normal; line-height: 1;
  letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap;
  color: #2B3947;                      /* slate: 11.8:1 on white */
}
.vm-credit__row { display: inline-flex; align-items: baseline; gap: calc(var(--_f) / 3); }
.vm-credit__by { text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.vm-credit__mark {
  display: block; flex: none; max-width: none; overflow: visible;
  width: calc(var(--_f) * 4.1281); height: calc(var(--_f) * .6774);
  transform: translateY(calc(var(--_f) * .0107)); /* puts the wordmark's baseline on the text's */
  color: #0F1722;                      /* ink letters */
}
.vm-credit__bar { fill: #E08A2B; }     /* amber bar, never recoloured except in mono */

/* Dark footers: mist "powered by", white letters, amber bar */
.vm-credit--dark { color: #DDE4EB; }
.vm-credit--dark .vm-credit__mark { color: #FFFFFF; }

/* Mono: everything, bar included, takes the footer's own text colour */
.vm-credit--mono, .vm-credit--mono .vm-credit__mark { color: inherit; }
.vm-credit--mono .vm-credit__bar { fill: currentColor; }

/* Hover, focus and press: underline "powered by" and darken or lighten it */
.vm-credit:hover .vm-credit__by, .vm-credit:focus-visible .vm-credit__by, .vm-credit:active .vm-credit__by { text-decoration: underline; }
.vm-credit:hover, .vm-credit:focus-visible { color: #0F1722; }
.vm-credit--dark:hover, .vm-credit--dark:focus-visible { color: #FFFFFF; }
.vm-credit--mono:hover, .vm-credit--mono:focus-visible { color: inherit; }
.vm-credit:focus-visible { outline: 2px solid #0F1722; outline-offset: 2px; }
.vm-credit--dark:focus-visible { outline-color: #FFFFFF; }
.vm-credit--mono:focus-visible { outline-color: currentColor; }

/* The bar blinks like a cursor on hover only, and never for reduced motion or print */
@media (prefers-reduced-motion: no-preference) {
  .vm-credit:hover .vm-credit__bar { animation: vm-credit-blink 1.1s steps(1) infinite; }
}
@keyframes vm-credit-blink { 50% { opacity: 0; } }
@media print { .vm-credit__bar { animation: none !important; } }

/* "Increase contrast" setting and Windows high contrast */
@media (prefers-contrast: more) { .vm-credit:not(.vm-credit--dark):not(.vm-credit--mono) { color: #0F1722; } }
@media (forced-colors: active) {
  .vm-credit, .vm-credit__mark { color: LinkText; }
  .vm-credit__bar { fill: currentColor; }
}
