/* YEDU Partners — matched to yedu.coffee
 * Fonts are served from this site (no call to a font host on any page). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* brand colours, sampled from yedu.coffee */
  --sand:      #eadfc6;   /* page cream (the site's theme colour) */
  --sand-lit:  #f3ecdc;   /* lighter cream: the lit window */
  --sand-deep: #ddd1ae;   /* the origin strip (Ethiopia · Kenya · Rwanda) */
  --green:     #4d5a3d;   /* olive: wordmark, banners, buttons */
  --green-2:   #5c6a4a;
  --olive-soft:#616d49;   /* small mono labels */
  --brown:     #8a603c;   /* ".Coffee" in the wordmark, "ours." */
  --ink:       #22190e;
  --ink-soft:  #5a4e3e;
  --ember:     #a3462a;   /* errors and a window that has stopped serving */
  --paper:     #f7f1e4;
  --line:      rgba(34, 25, 14, .16);

  --wide: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--wide); font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.on-green :focus-visible, .wall :focus-visible { outline-color: var(--sand-lit); }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- wordmark & top bar ---------- */
.wordmark { font-weight: 800; letter-spacing: -.01em; text-decoration: none; color: var(--green); font-size: 24px; display: inline-flex; align-items: baseline; gap: .55em; }
.wordmark b { font-weight: 800; }
.wordmark b i { font-style: normal; color: var(--brown); }
.wordmark span { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--olive-soft); }
.wall .wordmark { color: var(--sand-lit); }
.wall .wordmark b i { color: #d9b48e; }
.wall .wordmark span { color: rgba(243, 236, 220, .7); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.topbar a.signin { font-weight: 600; font-size: 15px; color: inherit; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 22px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: var(--sand-lit); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-2); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: rgba(77, 90, 61, .08); }
.btn.light { background: var(--sand-lit); color: var(--green); border-color: var(--sand-lit); }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--ember); border-color: var(--ember); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(77, 90, 61, .18); }
.field { margin-bottom: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }

.flash { border-radius: 8px; padding: 12px 16px; margin: 0 0 20px; font-weight: 500; background: rgba(77, 90, 61, .1); border-left: 4px solid var(--green); }
.flash.error { background: rgba(180, 68, 31, .1); border-left-color: var(--ember); }

/* =========================================================
   The landing page. One idea: the hero is the window itself —
   a lit opening in a green wall, with a sill underneath.
   ========================================================= */
.wall { background: var(--green); color: var(--sand-lit); }
.wall .topbar { color: var(--sand-lit); }

.hatch-stage { padding-top: clamp(28px, 5vw, 56px); }
.site-head { background: var(--sand); border-bottom: 1px solid var(--line); }
.site-head .topbar a.signin { background: var(--green); color: var(--sand-lit); text-decoration: none; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.site-head .topbar a.signin:hover { background: var(--green-2); }
@media (max-width: 420px) { .wordmark span { display: none; } .wordmark { font-size: 22px; } }
.hatch {
  position: relative; background: var(--sand-lit); color: var(--ink);
  border-radius: 22px 22px 0 0; padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 72px) clamp(32px, 5vw, 56px);
  box-shadow: inset 0 14px 30px -18px rgba(34, 25, 14, .45);   /* depth: the reveal of the opening */
}
.hatch .eyebrow { font-family: var(--mono); font-weight: 400; color: var(--olive-soft); margin-bottom: 18px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; display: flex; align-items: center; gap: 16px; }
.hatch .eyebrow::before { content: ""; width: 56px; height: 2px; background: currentColor; }
.hatch h1 {
  font-size: clamp(40px, 11.5vw, 128px); font-weight: 800;
  line-height: .95; letter-spacing: -.04em; max-width: 10ch; margin-bottom: 24px; color: var(--green);
}
.hatch .lead { font-size: clamp(19px, 2.4vw, 24px); max-width: 34ch; line-height: 1.4; }
.hatch .lead p:last-child { margin-bottom: 32px; }
.sill:empty { padding: 0; height: 18px; }
.hatch .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* the sill: wider than the opening, carries the facts like things set on a counter */
.sill {
  background: var(--sand-deep); color: var(--ink);
  margin: 0 calc(-1 * clamp(8px, 2vw, 22px)); border-radius: 6px;
  padding: 14px clamp(20px, 6vw, 72px);
  box-shadow: 0 10px 0 -4px rgba(0, 0, 0, .18);
  display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: baseline;
}
.sill .fact { display: flex; gap: 10px; align-items: baseline; }
.sill .fact b { font-size: 22px; font-weight: 800; color: var(--green); }
.sill .fact span { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-soft); }
.sill .where { margin-left: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-soft); }
@media (max-width: 640px) { .sill .where { margin-left: 0; width: 100%; } }
.below-sill { height: clamp(40px, 6vw, 72px); }

section.band { padding: clamp(56px, 8vw, 104px) 0; }
section.band + section.band { padding-top: 0; }
.band h2 { font-size: clamp(30px, 4.4vw, 52px); color: var(--green); max-width: 20ch; }
.band .intro { font-size: 19px; max-width: 58ch; margin-bottom: 36px; }

/* Zürich */
.proof { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.proof .body { font-size: 19px; max-width: 58ch; }
@media (max-width: 820px) { .proof { grid-template-columns: 1fr; } }

/* ---------- the fork ---------- */
.fork-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 28px; }
.fork-head h2 { margin: 0; }
.fork-head p { margin: 0; max-width: 40ch; color: var(--olive-soft); font-family: var(--mono); font-size: 14px; }
.routes-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 2px solid var(--green); }
.route-tab {
  font: inherit; text-align: left; cursor: pointer; border: 0; background: transparent; color: var(--ink);
  padding: 18px 20px 16px; border-radius: 14px 14px 0 0; font-size: clamp(17px, 2.2vw, 22px); font-weight: 800;
  display: flex; align-items: center; gap: 12px;
}
.route-tab .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; flex: none; position: relative; }
.route-tab[aria-selected="true"] { background: var(--green); color: var(--sand-lit); }
.route-tab[aria-selected="true"] .mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: currentColor; }
.route-tab:not([aria-selected="true"]):hover { background: rgba(77, 90, 61, .08); }
.route-panel {
  background: var(--green); color: var(--sand-lit); border-radius: 0 0 22px 22px;
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 64px);
}
.route-panel[hidden] { display: none; }
.route-panel h3 { font-size: clamp(26px, 3.4vw, 40px); color: var(--sand-lit); }
.route-panel .for { font-size: 18px; opacity: .9; }
.route-panel dl { margin: 0; }
.route-panel dt { font-weight: 800; font-size: 19px; margin-top: 22px; }
.route-panel dt:first-child { margin-top: 0; }
.route-panel dd { margin: 4px 0 0; opacity: .88; }
.route-panel .btn { margin-top: 10px; }
@media (max-width: 820px) { .route-panel { grid-template-columns: 1fr; } }
/* without JavaScript: both routes, one under the other */
.no-js .routes-tabs { display: none; }
.no-js .route-panel { border-radius: 22px; margin-bottom: 16px; }
.no-js .route-panel[hidden] { display: grid; }

/* ---------- shared: supplies / asks ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
@media (max-width: 820px) { .pair { grid-template-columns: 1fr; } }
.pair h2 { font-size: clamp(26px, 3.2vw, 36px); }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--green); }
.ledger li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 16px; }
.ledger b { font-weight: 800; }
@media (max-width: 480px) { .ledger li { grid-template-columns: 1fr; gap: 2px; } }

.money { background: var(--sand-lit); border-radius: 22px; padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px 56px; }
.money h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); }
.money .body { font-size: 18px; }
.money .body p:last-child { margin: 0; }
@media (max-width: 820px) { .money { grid-template-columns: 1fr; } }

/* the steps really are a sequence, so they are numbered */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: s; padding: 0 20px 0 0; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--sand-lit); font-weight: 800; margin-bottom: 14px; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 2px; background: var(--green); opacity: .3; }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-weight: 800; font-size: 19px; margin-bottom: 4px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { padding: 0 0 0 64px; min-height: 44px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps li::after { left: 21px; top: 44px; bottom: -22px; right: auto; width: 2px; height: auto; }
}

/* ---------- the enquiry form: back out on the wall ---------- */
.enquire { padding: clamp(56px, 8vw, 104px) 0; }
.enquire h2 { color: var(--sand-lit); font-size: clamp(32px, 5vw, 60px); }
.enquire .intro { color: var(--sand-lit); opacity: .9; }
.enquire-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .enquire-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--sand-lit); color: var(--ink); border-radius: 22px; padding: clamp(22px, 4vw, 40px); }
.whoami { border: 0; margin: 0 0 22px; padding: 0; }
.whoami legend { font-weight: 800; font-size: 19px; margin-bottom: 12px; padding: 0; }
.whoami .opts { display: grid; gap: 10px; }
.whoami label {
  display: flex; gap: 12px; align-items: center; margin: 0; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 14px 16px; font-weight: 600;
}
.whoami input { width: 20px; height: 20px; accent-color: var(--green); flex: none; margin: 0; }
.whoami label:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); background: #fbf6ea; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { text-align: left; }
.thanks h3 { font-size: 30px; color: var(--green); }

.site-foot { background: var(--green); color: var(--sand); padding: 28px 0 32px; font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.site-foot a { color: var(--sand-lit); }
.version { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; opacity: .75; }
.version a { color: inherit; }

/* ---------- small public pages: sign-in, link sent ---------- */
.solo { min-height: 100vh; display: flex; flex-direction: column; }
.solo main { flex: 1; display: grid; place-items: start center; padding: clamp(24px, 8vh, 96px) var(--gutter); }
.solo .card { width: 100%; max-width: 460px; background: var(--sand-lit); border-radius: 22px 22px 6px 6px; padding: clamp(24px, 5vw, 40px); color: var(--ink);
  box-shadow: inset 0 14px 30px -20px rgba(34, 25, 14, .45); }
.solo .card h1 { font-size: clamp(28px, 6vw, 38px); color: var(--green); }
.solo .card .btn { width: 100%; }
.big-link { word-break: break-all; background: var(--paper); border-radius: 8px; padding: 12px; font-size: 14px; }

/* =========================================================
   The portal (signed in). Quieter: the same palette, more paper.
   ========================================================= */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-bar { background: var(--sand); color: var(--ink); border-bottom: 1px solid var(--line); }
.app-bar .wrap { display: flex; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.app-bar .who { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.app-bar .who form { margin: 0; }
.app-bar .who button { font: inherit; font-size: 14px; background: none; border: 1.5px solid var(--green); color: var(--green); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.nav { background: var(--green); }
.nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--sand-lit); text-decoration: none; padding: 12px 14px; font-size: 15px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; opacity: .82; }
.nav a:hover { opacity: 1; }
.nav a.on { border-bottom-color: var(--sand); opacity: 1; }
.nav .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--sand); color: var(--green); font-size: 12px; text-align: center; line-height: 20px; }
.app main { flex: 1; padding: 32px 0 56px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); margin: 0; color: var(--green); }
.page-head p { margin: 4px 0 0; color: var(--ink-soft); }

.panel { background: var(--paper); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; border: 1px solid var(--line); }
.panel h2 { font-size: 21px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stats a { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink); }
.stats b { display: block; font-size: 30px; font-weight: 800; color: var(--green); line-height: 1.1; }
.stats span { font-size: 14px; color: var(--ink-soft); }
.stats a.warn b { color: var(--ember); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-family: var(--mono); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-soft); font-size: 11px; padding: 8px 10px; border-bottom: 2px solid var(--line); }
table.list td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr.off td { opacity: .5; }
table.list a.rowlink { font-weight: 600; text-decoration: none; }
table.list a.rowlink:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; margin: 0 -4px; }
@media (max-width: 700px) {
  table.list.stack thead { display: none; }
  table.list.stack, table.list.stack tbody, table.list.stack tr, table.list.stack td { display: block; width: 100%; }
  table.list.stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.list.stack td { border: 0; padding: 2px 0; }
}

.pill { display: inline-block; font-family: var(--mono); letter-spacing: .04em; font-size: 12px; font-weight: 400; padding: 3px 9px; border-radius: 999px; background: rgba(77, 90, 61, .12); color: var(--green); white-space: nowrap; }
.pill.new, .pill.open { background: var(--green); color: var(--sand-lit); }
.pill.waiting, .pill.talking, .pill.onboarding { background: var(--sand-deep); color: var(--ink); }
.pill.closed, .pill.inactive, .pill.logged { background: rgba(34, 25, 14, .1); color: var(--ink-soft); }
.pill.paused, .pill.failed { background: var(--ember); color: #fff; }
.pill.partner, .pill.trading, .pill.sent { background: rgba(77, 90, 61, .14); color: var(--green); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filters a { padding: 7px 13px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(34, 25, 14, .06); }
.filters a.on { background: var(--green); color: var(--sand-lit); }

.notice { border-left: 4px solid var(--green); padding: 2px 0 2px 16px; margin-bottom: 20px; }
.notice h3 { font-size: 18px; margin-bottom: 4px; }
.notice p { margin: 0 0 4px; white-space: pre-line; }

.thread { display: grid; gap: 14px; margin-bottom: 24px; }
.msg { max-width: 640px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.msg.yedu { margin-left: auto; background: var(--green); color: var(--sand-lit); border-color: var(--green); }
.msg .meta { font-size: 13px; opacity: .75; margin-bottom: 6px; }
.msg .text { white-space: pre-wrap; overflow-wrap: anywhere; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

details.add { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; }
details.add > summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
details.add > summary::before { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--sand-lit); font-weight: 800; }
details.add[open] > summary::before { content: "–"; }
details.add > div { padding: 0 20px 20px; }

.content-group { margin-bottom: 28px; }
.content-group h2 { font-size: 20px; border-bottom: 2px solid var(--green); padding-bottom: 8px; }
.content-field { margin-bottom: 16px; }
.content-field .tag { font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-left: 6px; }
.content-field .changed { color: var(--green); font-weight: 700; }
.sticky-save { position: sticky; bottom: 0; background: var(--sand); padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.app-foot { padding: 18px 0 24px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.app-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.empty { padding: 28px; text-align: center; color: var(--ink-soft); }
.inline-form { display: inline; margin: 0; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- v1.1: the short page ---------- */
h2.label { font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--olive-soft); display: flex; align-items: center; gap: 16px; margin-bottom: 28px; max-width: none; }
h2.label::before { content: ""; width: 56px; height: 2px; background: currentColor; }
.deal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.deal li { border-top: 3px solid var(--green); padding-top: 18px; }
.deal b { display: block; font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--green); margin-bottom: 10px; }
.deal li:nth-child(3) b { color: var(--brown); }
.deal span { font-size: 19px; line-height: 1.4; }
@media (max-width: 760px) { .deal { grid-template-columns: 1fr; } }
.steps { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.enquire h2 { max-width: 14ch; }
.enquire .intro { font-size: 20px; }

/* =========================================================
   v1.2 — alive: one moment on arrival, two quiet loops.
   ========================================================= */

/* 1. The shutter rolls up and the window lights, once, on arrival. */
.hero .hatch { overflow: hidden; animation: lights-on 1.6s ease-out .2s both; }
@keyframes lights-on { from { background: #d9ccae; } to { background: var(--sand-lit); } }
.shutter {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, #5a6847 0 22px, #46523a 22px 24px, #6a7856 24px 26px);
  animation: shutter-up 1.15s cubic-bezier(.7, 0, .2, 1) .45s forwards;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.shutter span { position: absolute; left: 50%; bottom: 14px; width: 64px; height: 8px; margin-left: -32px; border-radius: 4px; background: #2f3826; }
@keyframes shutter-up { to { transform: translateY(-101%); } }

/* 2. A cup on the counter, steaming. */
.hatch-stage { position: relative; }
.cup { position: absolute; z-index: 3; width: clamp(76px, 9vw, 116px); right: calc(var(--gutter) + clamp(16px, 5vw, 64px)); bottom: calc(clamp(40px, 6vw, 72px) + 14px); overflow: visible; }
.cup-body { fill: var(--sand-lit); stroke: var(--ink); stroke-width: 4; }
.cup-band { fill: var(--brown); }
.steam path { stroke: rgba(77, 90, 61, .7); stroke-dasharray: 34 140; animation: steam 3.2s linear infinite; opacity: 0; }
.steam path:nth-child(2) { animation-delay: 1.05s; }
.steam path:nth-child(3) { animation-delay: 2.1s; }
@keyframes steam {
  0%   { stroke-dashoffset: 0;    opacity: 0; }
  20%  { opacity: 1; }
  100% { stroke-dashoffset: -150; opacity: 0; }
}
/* the steam waits until the shutter is up */
.hero .steam { animation: fade-in .6s ease 1.5s both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 3. Where the coffee comes from, drifting past — like on yedu.coffee. */
.origins { background: var(--sand-deep); border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.origins .track { display: flex; width: max-content; animation: drift 40s linear infinite; }
.origins span { font-family: var(--mono); font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.origins span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brown); margin-left: 28px; }
@keyframes drift { to { transform: translateX(-50%); } }
.origins:hover .track { animation-play-state: paused; }

/* Buttons answer the hand. */
.btn { transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.deal li { transition: border-color .2s ease; }
.deal li:hover { border-top-color: var(--brown); }

/* 4. Responsive: on phones the call to action stays within reach. */
.dock {
  position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
  display: none; text-align: center; font-weight: 700; font-size: 17px; text-decoration: none;
  background: var(--green); color: var(--sand-lit); padding: 16px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(34, 25, 14, .28);
  transform: translateY(140%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 760px) { .dock { display: block; } .dock.show { transform: none; } }

@media (max-width: 760px) {
  .hatch { padding-bottom: 96px; }               /* room for the cup beside the button */
  .hatch .btn { width: auto; }
  .band { padding-block: 48px; }
  section.band + section.band { padding-top: 0; }
  .deal b { font-size: 34px; }
  .enquire h2 { font-size: 40px; }
  .site-foot { padding-bottom: 96px; }           /* the dock never covers the footer */
}
@media (max-width: 360px) {
  .site-head .topbar a.signin { padding: 8px 12px; font-size: 14px; }
  .wordmark { font-size: 20px; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .enquire-grid { grid-template-columns: 1fr; }
  .enquire h2 { max-width: 18ch; }
}

@media (prefers-reduced-motion: reduce) {
  .shutter, .steam { display: none; }
  .origins .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero .hatch { animation: none; }
}
