/* zizo.css: "The Menu in the Chat"
   On / and /products/college-platform every section is a pair: the mess colleges described (a flat
   group chat, their own words as italic callouts) on the left, and where it lives instead (the
   college's own app, a flat white panel) on the right, joined by one 2px ink connector.
   Every other public page (products, services, about, privacy, 404) uses the "Reading pages"
   section at the end: ruled rows on the same paper. The /for/ previews keep landing.css.
   See DESIGN.md. */

/* ---------- Font: Archivo variable, width 75 to 100, weight 400 to 800 ---------- */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 75% 100%; font-display: swap;
  src: url("/fonts/archivo-roman.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: italic; font-weight: 400 800; font-stretch: 75% 100%; font-display: swap;
  src: url("/fonts/archivo-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* The world, as the direction contract names it */
  --paper: #f4f1ea;          /* warm paper ground */
  --ink: #141a1f;
  --thread: #e4e5e8;         /* the chat thread */
  --bubble: #ffffff;
  --snap: #fffc00;           /* Snapchat yellow: only ever behind ink text */
  --panel: #ffffff;          /* the college's app */
  --panel-rule: #d9d6cf;
  --college-green: #1d5c3f;

  /* Derived */
  --muted: #565c62;          /* 5.9:1 on paper, 6.6:1 on white, 4.9:1 on thread */
  --leader: #8a8f94;         /* callout leader lines: decorative */
  --row-rule: #e6e2d8;

  /* Swatchable: "Try it in your colours" rewrites these three */
  --crest-field: var(--college-green);
  --rsvp: var(--college-green);
  --primary: var(--college-green);

  --focus: var(--ink);

  /* One rhythm: 8px steps */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem; --s8: 8rem;
  --gutter: clamp(1rem, 4.5vw, 4rem);

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-chat: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Swatches without JavaScript (zizo.js sets the same values inline) */
:root:has(#sw-maroon:checked) { --crest-field: #7b1e30; --rsvp: #7b1e30; --primary: #7b1e30; }
:root:has(#sw-royal:checked)  { --crest-field: #1f4b99; --rsvp: #1f4b99; --primary: #1f4b99; }
:root:has(#sw-purple:checked) { --crest-field: #4b2a7b; --rsvp: #4b2a7b; --primary: #4b2a7b; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-weight: 400; font-stretch: 100%;
  font-size: 1.125rem; line-height: 1.55;
  caret-color: var(--primary);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
b, strong { font-weight: 600; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: 1440px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only {
  position: absolute !important; 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: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; font-weight: 600; }
.skip:focus { top: 0.5rem; }

/* ---------- Type roles ---------- */
.h-display {
  font-weight: 780; font-stretch: 75%;
  font-size: clamp(2.75rem, 1.3rem + 4vw, 4.5rem); line-height: 0.97; letter-spacing: -0.012em;
  text-wrap: balance;
}
.h-sec {
  font-weight: 780; font-stretch: 75%;
  font-size: clamp(2.125rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1; letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-pair {
  font-weight: 760; font-stretch: 75%;
  font-size: clamp(1.875rem, 1.35rem + 1.6vw, 2.625rem); line-height: 1.02; letter-spacing: -0.008em;
  text-wrap: balance;
}
.h-small { font-weight: 700; font-stretch: 87.5%; font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.4375rem); line-height: 1.2; text-wrap: balance; }
.lede { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.4; }
.muted { color: var(--muted); }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: var(--s2); }
.lab { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.625rem;
  font-family: var(--f); font-weight: 650; font-stretch: 87.5%; font-size: 1.0625rem; line-height: 1.15;
  text-decoration: none; text-align: center; border: 1.5px solid var(--ink); border-radius: 0;
  color: var(--ink); background: transparent; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; padding: 0 1.875rem; }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 78%, #000); border-color: color-mix(in srgb, var(--primary) 78%, #000); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Crest ---------- */
.crest { color: var(--crest-field); flex: none; width: 40px; height: 46px; }
.crest-sm { width: 28px; height: 32px; }

/* ---------- Nav ---------- */
.site-nav { border-bottom: 1px solid var(--panel-rule); }
.nav-inner { display: flex; align-items: center; gap: var(--s4); min-height: 3.5rem; }
.wordmark {
  font-weight: 760; font-stretch: 75%; font-size: 1.3125rem; letter-spacing: -0.005em;
  text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-right: auto;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.625rem; font-weight: 500; font-size: 1rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; }
.nav-links a[aria-current="page"] { text-decoration-thickness: 2px; }
.nav-inner .btn { min-height: 2.75rem; padding: 0 1.125rem; font-size: 1rem; }

/* =========================================================
   The pair: chat (left) · callouts (gutter) · app (right)
   ========================================================= */
.linked { position: relative; }
.duo {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(250px, 1fr) minmax(400px, 556px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "chat call app" ". . app";
  column-gap: 32px;
  align-items: start;
}
.duo > .chat, .duo > .inbox-wrap, .duo > .pillar-list { grid-area: chat; }
.duo > .calls { grid-area: call; }
.duo > .app { grid-area: app; }

/* The hero is a duo with a headline over the chat and the actions under it */
.hero { padding-top: clamp(1rem, 1.8vh, 2.5rem); padding-bottom: 0.75rem; }
.hero .duo {
  grid-template-areas:
    "head head app"
    "chat call app"
    "act  act  .";
  grid-template-rows: auto auto auto;
}
.hero-head { grid-area: head; padding-bottom: 0.75rem; }
.hero-head .lede { margin-top: 0.5rem; }
.hero .app { align-self: stretch; }
.hero-act { grid-area: act; padding-top: 0.75rem; }
.proof-line { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); text-wrap: balance; }
/* Pencil: the same ink italic as the callouts, for honest notes about the drawings */
.pencil { margin-top: 0.75rem; font-style: italic; font-weight: 500; font-stretch: 87.5%; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.hero-act .pencil { margin-top: 0.25rem; margin-bottom: 1rem; font-size: 0.875rem; text-wrap: balance; }
.fold .pencil { margin-bottom: 1rem; }

/* ---------- The chat, drawn flat ---------- */
.chat {
  background: var(--thread); border-radius: 6px; overflow: hidden;
  font-family: var(--f-chat); font-size: 14px; line-height: 1.4; color: var(--ink);
  width: 100%;
}
.chat-head {
  min-height: 44px; background: #f8f8f9; border-bottom: 1px solid #d5d7db;
  display: flex; align-items: center; gap: 10px; padding: 6px 14px;
}
.avatars { display: flex; flex: none; }
.avatars i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #f8f8f9; margin-left: -7px; display: block; }
.avatars i:first-child { margin-left: 0; }
.chat-head div b { font-size: 13px; display: block; }
.chat-head div span { font-size: 12px; color: var(--muted); display: block; }
.thread { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 14px 14px; }

.msg {
  position: relative; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px;
  max-width: 100%; min-height: 32px; padding: 6px 11px; margin: 0;
  background: var(--bubble); border: 0; border-radius: 3px 12px 12px 12px;
  font-family: var(--f-chat); font-size: 14px; line-height: 20px; text-align: left; color: var(--ink);
  cursor: pointer;
}
button.msg::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
button.msg:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.msg.is-on { box-shadow: 0 0 0 2px var(--ink); }
.msg b { font-weight: 600; }
.msg time, .msg .t { font-size: 12px; color: var(--muted); margin-left: 4px; }
.n1 { color: #b0457a; } .n2 { color: #2f7d6a; } .n3 { color: #8a5a1e; } .n4 { color: #2f6db0; } .n5 { color: #6a4fa3; }

.snapchip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px 0 8px;
  background: var(--snap); color: var(--ink); border-radius: 14px; font-size: 13px; font-weight: 600;
}
.snapchip i { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 2px; display: block; }
.sys { align-self: center; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.55); padding: 3px 10px; border-radius: 10px; }
.day-break { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); }

/* The forwarded photo of the printed menu.
   REPLACE WHEN SUPPLIED: this is an honest flat drawing standing in for a photo. When the owner
   supplies a real phone photo of a printed college menu, put an <img> (with its provenance noted)
   inside .menu-photo in index.html and delete the .sheet and .note drawing and its rules below. */
.msg.photo { display: block; width: 296px; max-width: 100%; padding: 0 0 4px; }
.fwd { display: block; font-size: 12px; color: var(--muted); font-style: italic; padding: 6px 10px 0; }
.fwd b { font-style: normal; color: #2f6db0; margin-right: 6px; }
.menu-photo { position: relative; display: block; margin: 4px 8px 0; height: 128px; border-radius: 6px; overflow: hidden; background: #d8cfc0; }
.menu-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sheet {
  position: absolute; left: 22px; top: 8px; width: 196px; height: 150px;
  background: #fff; border: 1px solid var(--panel-rule); transform: rotate(-3deg);
  padding: 8px 9px 0; color: var(--ink); font-family: var(--f);
}
.sheet .ph { display: block; margin-bottom: 4px; font-weight: 800; font-stretch: 75%; font-size: 11px; line-height: 1.1; letter-spacing: 0.03em; text-align: center; }
.mrow { display: block; border-top: 1px solid var(--panel-rule); padding: 2px 0; font-weight: 500; font-stretch: 75%; font-size: 11px; line-height: 12px; }
.mrow b { font-weight: 800; margin-right: 2px; }
.blu { position: absolute; left: -7px; top: -6px; width: 22px; height: 12px; background: #8fb7ea; border-radius: 55% 45% 60% 40% / 60% 50% 50% 40%; transform: rotate(-14deg); }
.note { position: absolute; left: 216px; top: 18px; width: 50px; height: 48px; background: #f3df6a; transform: rotate(5deg); }
.ptime { display: block; font-size: 12px; color: var(--muted); text-align: right; padding: 3px 10px 0; }

/* A flat inbox, for the email nobody read */
.inbox { background: var(--bubble); border-radius: 6px; overflow: hidden; font-family: var(--f-chat); font-size: 14px; line-height: 1.35; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 6px 14px; background: #f8f8f9; border-bottom: 1px solid #d5d7db; }
.inbox-head b { font-size: 13px; }
.inbox-head span { font-size: 12px; color: var(--muted); }
.mail {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline;
  width: 100%; min-height: 56px; padding: 10px 14px; border: 0; border-bottom: 1px solid #ecedef;
  background: transparent; text-align: left; font-family: var(--f-chat); font-size: 14px; color: var(--ink);
}
button.mail { cursor: pointer; }
button.mail:hover { background: #f3f4f6; }
.mail.is-on { box-shadow: inset 0 0 0 2px var(--ink); }
.mail .dot { width: 8px; height: 8px; border-radius: 50%; background: #2f6db0; align-self: center; }
.mail .dot.read { background: transparent; }
.mail .from { font-weight: 600; grid-column: 2; }
.mail .subj { grid-column: 2 / 4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .when { grid-column: 3; grid-row: 1; font-size: 12px; color: var(--muted); }
.inbox-wrap { display: grid; gap: 12px; }
.inbox-wrap .chat .thread { padding-top: 10px; padding-bottom: 10px; }

/* A flat list of group chats */
.chatlist .row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 0 10px; align-items: center;
  width: 100%; min-height: 58px; padding: 8px 14px; border: 0; border-bottom: 1px solid #d5d7db;
  background: var(--bubble); text-align: left; font-family: var(--f-chat); font-size: 14px; color: var(--ink); cursor: pointer;
}
.chatlist .row:hover { background: #f6f7f8; }
.chatlist .row.is-on { box-shadow: inset 0 0 0 2px var(--ink); }
.chatlist .av { width: 36px; height: 36px; border-radius: 50%; display: block; }
.chatlist .nm { font-weight: 600; display: block; }
.chatlist .last { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatlist .ct { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }

/* ---------- Callouts: the college's own words, unattributed ---------- */
.calls { position: relative; z-index: 3; align-self: stretch; transition: opacity 200ms ease-out; }
/* Last resort when no clean route exists: the callouts step back while that line shows. */
.linked.is-crossing .calls { opacity: 0.3; }
.call {
  font-style: italic; font-weight: 500; font-stretch: 87.5%; font-size: 1.0625rem; line-height: 1.3;
  color: var(--ink);
}
.duo .call { position: absolute; left: 0; right: 0; top: var(--y, 0); }
.duo .call::before {
  content: ""; position: absolute; top: 0.65em; right: calc(100% + 8px);
  width: var(--reach, 24px); height: 1px; background: var(--leader);
}
.duo .call::after {
  content: ""; position: absolute; top: calc(0.65em - 2px); right: calc(100% + 6px + var(--reach, 24px));
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink);
}
.duo .call.no-dot::after { display: none; }
.bracket {
  position: absolute; left: -24px; width: 10px; top: var(--y, 0); height: var(--h, 100px);
  border: 1px solid var(--ink); border-left: 0;
}
.bracket::after { content: ""; position: absolute; left: 100%; top: 50%; width: 14px; height: 1px; background: var(--ink); }
/* Every callout is measured onto the message it quotes (zizo.js); the inline --y and --reach are the
   no-JavaScript placement. In the pairs the callouts stand 40px into the gutter, which leaves the
   connector room to curve around them. */
.duo .call > span { background: var(--paper); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 2px; }
.pair .duo .call { left: 40px; right: auto; max-width: 12rem; }
.linked > .points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s5); max-width: none; border-bottom: 0; margin-top: var(--s5); }

/* ---------- The college's app, drawn flat ---------- */
.app {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-rule);
  box-shadow: 0 18px 40px -24px rgba(20, 26, 31, 0.35);
  font-family: var(--f); color: var(--ink);
}
.app-head { min-height: 88px; display: flex; align-items: center; gap: 14px; padding: 12px 26px; border-bottom: 1px solid var(--row-rule); }
.app-head b { font-weight: 700; font-stretch: 87.5%; font-size: 1.75rem; line-height: 1.1; }
.app-body { padding: 22px 26px 18px; flex: 1; }
.app-day { font-weight: 700; font-stretch: 87.5%; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.1; margin-bottom: 14px; }
.app-row { border-top: 1px solid var(--row-rule); padding: 14px 8px; margin-inline: -8px; background-color: transparent; transition: background-color 600ms ease-out; }
.app-row:first-of-type { border-top: 0; }
.app-day + .app-row { border-top: 0; }
/* The highlight is the contract's brief paper tint on the target row, one row at a time, fading; nothing is lit at rest.
   The menu times keep their own rounded paper card as material, so a lit menu row reads as the card's ground widening. */
.tabs span { background-color: transparent; transition: background-color 600ms ease-out; }
.app-row.is-lit, .tabs .is-lit { background-color: var(--paper); transition-duration: 0ms; }
.big { font-weight: 600; font-stretch: 87.5%; font-size: clamp(1.3125rem, 1.1rem + 0.6vw, 1.5625rem); line-height: 1.15; }
.app-row .big { margin-top: 6px; }
.app-row .sub { display: block; font-size: 0.9375rem; color: var(--muted); margin-top: 2px; }
.meals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: var(--paper); border-radius: 10px; padding: 14px 16px; margin-top: 8px; }
.meals .lab { letter-spacing: 0.02em; text-transform: none; font-size: 0.8125rem; }
.meals .big { margin-top: 0; }
.line2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 18px; border-radius: 999px;
  background: var(--rsvp); color: #fff; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--panel-rule); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tier {
  display: inline-block; padding: 2px 8px; border: 1px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.tier.secret { background: var(--ink); color: #fff; }
.call-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--rsvp); color: #fff; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.call-btn svg { width: 14px; height: 14px; }
.pushed { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--college-green); color: var(--college-green); border-radius: 999px; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.2em; }
.field { display: block; border: 1px solid var(--panel-rule); padding: 8px 12px; margin-top: 6px; font-size: 1rem; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch i { width: 40px; height: 22px; border-radius: 11px; background: var(--rsvp); position: relative; flex: none; }
.switch i::after { content: ""; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.tabs {
  display: flex; justify-content: space-around; align-items: center; min-height: 52px; margin-top: auto; padding: 0.5rem 0.25rem;
  border-top: 1px solid var(--row-rule); font-weight: 600; font-size: 0.75rem; color: var(--muted);
}
.tabs span { padding: 0 4px; }
.tabs .on { color: var(--college-green); }

/* ---------- Connectors ---------- */
.links { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.links path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.links .start { fill: var(--ink); }
.links .end { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }

/* The static menu connector: shown only without JavaScript, placed by CSS anchors */
.static-link { display: none; }
@supports (anchor-name: --a) {
  @media (min-width: 1280px) {
    html:not(.js) [data-anchor="menu-photo"] { anchor-name: --menu-photo; }
    html:not(.js) [data-anchor="menu-row"] { anchor-name: --menu-row; }
    html:not(.js) .static-link {
      display: block; position: absolute; z-index: 2; pointer-events: none;
      left: anchor(--menu-photo right); right: anchor(--menu-row left);
      top: anchor(--menu-row center); bottom: calc(anchor(--menu-photo bottom) + 104px);
    }
    .static-link svg { width: 100%; height: 100%; overflow: visible; }
    .static-link path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
    .static-link::before, .static-link::after { content: ""; position: absolute; border-radius: 50%; }
    .static-link::before { left: -4.5px; bottom: -4.5px; width: 9px; height: 9px; background: var(--ink); }
    .static-link::after { right: -5px; top: -5px; width: 10px; height: 10px; background: var(--paper); border: 2px solid var(--ink); }
  }
}

/* ---------- Sections ---------- */
.section { padding-top: var(--s7); padding-bottom: var(--s7); }
.section-tight { padding-top: var(--s6); padding-bottom: var(--s6); }
.fold { padding-top: 0.5rem; }
.fold > .wrap > .rule-top { border-top: 1px solid var(--ink); padding-top: 1rem; }
.sec-head { max-width: 52rem; }
.sec-head .lede { margin-top: var(--s2); }
.pair { padding-top: var(--s6); padding-bottom: var(--s5); }
.pair + .pair { border-top: 1px solid var(--panel-rule); }
.pair-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2) var(--s6); align-items: end; margin-bottom: var(--s5); }
.pair-head p { max-width: 58ch; }
.ruled { border-top: 1px solid var(--ink); }

/* StarRez beside the college */
.beside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5) var(--s6); margin-top: var(--s5); }
.ledger { border-top: 2px solid var(--ink); }
.ledger-name { display: flex; align-items: center; gap: 12px; min-height: 56px; font-weight: 700; font-stretch: 87.5%; font-size: 1.5rem; }
.ledger-say { font-weight: 780; font-stretch: 75%; font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); line-height: 1; margin-top: var(--s1); }
.ledger ul { margin-top: var(--s3); border-top: 1px solid var(--panel-rule); }
.ledger li { padding: 0.625rem 0; border-bottom: 1px solid var(--panel-rule); }
.ledger dl { margin-top: var(--s3); display: grid; gap: var(--s2); }
.ledger dt { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ledger dd { margin-top: 0.25rem; max-width: 44ch; }
.beside-foot { margin-top: var(--s5); max-width: 60rem; }

/* Try it in your colours */
.colours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 556px); gap: var(--s5) var(--s6); align-items: start; }
.swatches { border: 0; padding: 0; margin-top: var(--s4); min-width: 0; }
.swatches legend { padding: 0; font-weight: 600; margin-bottom: 0.75rem; }
.swatch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.swatch { position: relative; display: block; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.swatch-face { display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0.5rem 0.875rem; border: 1px solid var(--panel-rule); background: var(--panel); font-weight: 500; }
.swatch-face i { width: 26px; height: 26px; border-radius: 50%; flex: none; display: block; }
.swatch:hover .swatch-face { border-color: var(--ink); }
.swatch input:checked + .swatch-face { border: 2px solid var(--ink); padding: calc(0.5rem - 1px) calc(0.875rem - 1px); font-weight: 600; }
.swatch input:focus-visible + .swatch-face { outline: 3px solid var(--focus); outline-offset: 3px; }
.colours-cta { margin-top: var(--s4); }

/* The close */
.close { padding-top: var(--s7); padding-bottom: var(--s7); border-top: 1px solid var(--ink); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s4) var(--s6); align-items: end; }
.close .btn-row { margin-top: var(--s4); }

/* Studio band and footer */
.studio { padding-top: var(--s6); padding-bottom: var(--s6); border-top: 1px solid var(--panel-rule); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s4) var(--s6); }
.studio .lede { margin-top: 0.75rem; font-size: 1.0625rem; color: var(--muted); }
.studio-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2) var(--s4); }
.studio-links li { border-top: 1px solid var(--ink); padding-top: 0.5rem; }
.studio-links a { font-weight: 700; font-stretch: 87.5%; font-size: 1.375rem; display: inline-flex; min-height: 44px; align-items: center; }
.studio-links p { color: var(--muted); font-size: 1rem; }
.site-foot { border-top: 1px solid var(--ink); font-size: 1rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem var(--s4); padding-top: var(--s3); padding-bottom: var(--s3); }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.site-foot .wordmark { margin-right: auto; font-size: 1.125rem; }
.site-foot span { color: var(--muted); }

/* ---------- College Platform page ---------- */
.problems { margin-top: var(--s5); border-bottom: 1px solid var(--panel-rule); }
.problems li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2) var(--s6); padding: var(--s4) 0; border-top: 1px solid var(--panel-rule); align-items: start; }
.problems .h-small { margin-bottom: 0.375rem; }
.problems p { color: var(--muted); max-width: 54ch; }
.problems blockquote { position: relative; padding-left: 44px; }
.problems blockquote::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 32px; height: 1px; background: var(--leader); }
.problems blockquote .call + .call { margin-top: 0.75rem; }
.problem-foot { margin-top: var(--s5); font-weight: 760; font-stretch: 75%; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.05; max-width: 30ch; text-wrap: balance; }

.points { margin-top: var(--s4); border-bottom: 1px solid var(--panel-rule); max-width: 42rem; }
.points li { border-top: 1px solid var(--panel-rule); padding: 1rem 0 1.125rem; }
.points b { display: block; font-weight: 700; font-stretch: 87.5%; font-size: 1.1875rem; line-height: 1.2; margin-bottom: 0.25rem; }
.points span { color: var(--muted); }

.pillar-list { display: grid; gap: 22px; }
.pillar-list li { display: grid; gap: 6px; justify-items: start; }
.pillar-list p { color: var(--muted); font-family: var(--f); font-size: 1rem; line-height: 1.45; max-width: 44ch; }
.pillar-list .chat-strip { display: inline-flex; max-width: 100%; background: var(--thread); border-radius: 6px; padding: 8px 10px; }

.proof-say { font-weight: 780; font-stretch: 75%; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem); line-height: 0.98; letter-spacing: -0.012em; max-width: 20ch; text-wrap: balance; }
.proof-facts { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 500; }
.proof-facts li + li::before { content: ""; display: inline-block; width: 1px; height: 1em; background: var(--panel-rule); margin-right: 1.5rem; vertical-align: -0.12em; }
.proof-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s5); margin-top: var(--s5); }
.proof-notes li { border-top: 1px solid var(--ink); padding-top: var(--s2); }
.proof-notes p { color: var(--muted); margin-top: 0.5rem; }

.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s5); border-top: 1px solid var(--ink); }
.outcomes > li { padding: var(--s3) var(--s4) var(--s3) 0; }
.outcomes > li + li { border-left: 1px solid var(--panel-rule); padding-left: var(--s4); }
.outcomes ul { margin-top: var(--s2); }
.outcomes ul li { padding: 0.5rem 0; border-top: 1px solid var(--panel-rule); }

.timetable { margin-top: var(--s5); border-bottom: 1px solid var(--panel-rule); }
.timetable li { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: var(--s1) var(--s5); padding: var(--s3) 0; border-top: 1px solid var(--panel-rule); align-items: baseline; }
.timetable .when { font-weight: 780; font-stretch: 75%; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.02; }
.timetable p { color: var(--muted); margin-top: 0.375rem; max-width: 58ch; }

.faq { margin-top: var(--s5); border-bottom: 1px solid var(--ink); max-width: 60rem; }
.faq details { border-top: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 3.5rem; padding: 1.125rem 0;
  font-weight: 700; font-stretch: 87.5%; font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; }
.faq details[open] summary .v { display: none; }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.faq details p { padding-bottom: var(--s3); max-width: 62ch; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); grid-template-rows: auto 1fr; grid-template-areas: "chat app" "call app"; row-gap: var(--s3); }
  .hero .duo { grid-template-rows: auto auto 1fr auto; }
  .hero .duo { grid-template-areas: "head app" "chat app" "call app" "act act"; }
  .duo > .chat, .duo > .inbox-wrap, .duo > .pillar-list { max-width: 460px; }
  .calls { display: grid; gap: 0.75rem; align-self: start; }
  .pair .duo .call { left: 0; max-width: none; }
  .duo .call { position: relative; top: auto; padding-left: 40px; }
  .duo .call::before { right: auto; left: 0; width: 28px; }
  .duo .call::after { display: none; }
  .bracket { display: none; }
  .calls { padding-right: 2rem; }
  .msg { white-space: normal; }
}
@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .close-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .duo, .hero .duo { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--s3); }
  .duo { grid-template-areas: "chat" "call" "app"; }
  .hero .duo { grid-template-areas: "head" "act" "chat" "call" "app"; }
  .hero-act { padding-top: 0; }
  .duo > .chat, .duo > .inbox-wrap, .duo > .pillar-list { max-width: none; }
  .pair-head, .beside, .colours, .proof-notes, .outcomes, .problems li { grid-template-columns: minmax(0, 1fr); }
  .outcomes > li, .outcomes > li + li { padding: var(--s3) 0; border-left: 0; }
  .outcomes > li + li { border-top: 1px solid var(--panel-rule); }
  .timetable li { grid-template-columns: minmax(0, 1fr); }
  .linked > .points { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--panel-rule); }
}
@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; gap: 0 var(--s2); padding-top: 0.25rem; padding-bottom: 0.25rem; }
  .nav-links { order: 3; width: 100%; flex-wrap: wrap; gap: 0; margin-left: -0.625rem; }
  .nav-links a { font-size: 0.9375rem; }
  .section { padding-top: var(--s6); padding-bottom: var(--s6); }
  .pair { padding-top: var(--s5); padding-bottom: var(--s4); }
  .pair-head { margin-bottom: var(--s4); }
  .app-head { min-height: 68px; padding: 10px 18px; }
  .app-head b { font-size: 1.5rem; }
  .app-body { padding: 18px 18px 14px; }
  .meals { padding: 12px; gap: 6px; }
  .meals .big { font-size: 1.125rem; font-stretch: 75%; }
  .studio-links, .swatch-list { grid-template-columns: minmax(0, 1fr); }
  .hero-act .btn { flex: 1 1 13rem; }
}
@media (max-width: 400px) {
  .nav-inner .btn { padding: 0 0.75rem; font-size: 0.9375rem; }
  .tabs { font-size: 0.6875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .app-row, .tabs span { transition: none; }
}

/* =========================================================
   Reading pages
   /products, /products/<slug> (all but college-platform), /services, /about, /privacy, /404.
   Quiet pages in the same world as / and /products/college-platform: the same nav, footer,
   type, buttons and rules; a plain page head, then ruled sections and rows on the paper.
   No chat-and-app pairs (those belong to the platform pages), no cards, no tiles.
   ========================================================= */

/* Products stays marked as the current section on a product's own page */
.nav-links a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Page head: one heading, a lede, at most one primary action */
.page-head { padding-top: clamp(3rem, 1.6rem + 4.5vw, 6rem); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.page-head .h-display { max-width: 17ch; }
.page-head .lede { margin-top: var(--s3); max-width: 44rem; }
.page-head .btn-row { margin-top: var(--s4); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s5) var(--s6); align-items: end; }
.page-404 { min-height: calc(100vh - 12rem); min-height: calc(100svh - 12rem); }

/* Drawn icons beside link text: one 1.75 stroke, round ends */
.ico { width: 1.05em; height: 1.05em; flex: none; }
.text-link .ico, .btn .ico { margin-left: 0.45em; }
.text-link .ico-lead { margin-left: 0; margin-right: 0.45em; }
.text-link:hover .ico:not(.ico-lead) { transform: translateX(2px); }
.text-link:hover .ico-lead { transform: translateX(-2px); }
.text-link .ico { transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }

/* A ruled section: its heading on the left, the reading on the right */
.rsec { padding-top: var(--s6); padding-bottom: var(--s6); border-top: 1px solid var(--ink); }
.rsec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: var(--s3) var(--s6); align-items: start; }
.rsec-grid > h2 { max-width: 15ch; }
.rsec-body > * + * { margin-top: var(--s4); }
.rsec-body > .lede { max-width: 44rem; }
.close-lede { margin-top: var(--s2); max-width: 44rem; }

/* Ruled rows: a label column and the reading */
.rows { border-bottom: 1px solid var(--panel-rule); }
.rows > li {
  display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: var(--s1) var(--s4);
  padding: var(--s3) 0; border-top: 1px solid var(--panel-rule); align-items: baseline;
}
.rows .role { font-weight: 600; font-size: 1rem; color: var(--muted); }
.rows p:not(.role) { color: var(--muted); max-width: 58ch; }
.rows h3 + p { margin-top: 0.375rem; }
/* Name and line side by side */
.rows-split > li { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
.rows-split h3 + p { margin-top: 0; }
/* Services: what it is on the left, the three things it means on the right */
.rows-svc > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2) var(--s5); align-items: start; }
.ticks li { padding: 0.5rem 0; border-top: 1px solid var(--panel-rule); }
.ticks li:first-child { border-top: 0; padding-top: 0; }

/* Facts: a ruled label and value, never a tile */
.facts { border-top: 1px solid var(--ink); }
.facts > div {
  display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 0.125rem var(--s3);
  padding: 0.75rem 0; border-bottom: 1px solid var(--panel-rule);
}
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; }

/* The product index: one ruled row per product; the College Platform leads */
.index-sec { padding-bottom: var(--s7); }
.index { border-bottom: 1px solid var(--ink); }
.index > li {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 9rem) minmax(0, 17.5rem);
  gap: var(--s1) var(--s4); align-items: baseline; padding: var(--s3) 0; border-top: 1px solid var(--panel-rule);
}
.index > li.lead { border-top: 2px solid var(--ink); padding: var(--s4) 0 var(--s5); align-items: start; }
.index .name { font-weight: 760; font-stretch: 75%; font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem); line-height: 1.02; letter-spacing: -0.006em; text-wrap: balance; }
.index .lead .name { font-size: clamp(2.125rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1; }
.index .desc { color: var(--muted); max-width: 58ch; }
.index .lead .desc { color: var(--ink); font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.4; }
.index .meta { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.index .lead .meta { padding-top: 0.3em; }
.index .go { justify-self: end; text-align: right; }
.index .go .text-link { margin-top: -0.6rem; }
.index .go .btn { white-space: nowrap; }

/* Back to the index, from a product's own page */
.back-row { border-top: 1px solid var(--panel-rule); padding-top: var(--s2); padding-bottom: var(--s2); }

/* A quiet door back to the College Platform, on the studio pages */
.door { padding-top: var(--s5); padding-bottom: var(--s5); border-top: 1px solid var(--panel-rule); }
.door-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem var(--s4); }
.door p { color: var(--muted); margin-right: auto; }

/* Privacy: one reading column */
.legal-sec { padding-bottom: var(--s7); }
.legal-sec > .wrap > .legal { border-top: 1px solid var(--ink); padding-top: var(--s4); }
.legal { max-width: 46rem; }
.legal p { max-width: 64ch; }
.legal p + p { margin-top: var(--s2); }
.legal h2 { margin-top: var(--s5); margin-bottom: var(--s1); }
.legal a { font-weight: 600; }
.legal-aside { margin-top: var(--s5) !important; padding-top: var(--s3); border-top: 1px solid var(--panel-rule); color: var(--muted); font-size: 1rem; }

@media (max-width: 1100px) {
  .index > li { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) minmax(0, 17.5rem); }
  .index .meta { grid-column: 2; grid-row: 2; }
  .index .go { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 900px) {
  .page-head-grid, .rsec-grid, .rows-svc > li { grid-template-columns: minmax(0, 1fr); }
  .rsec-grid > h2 { max-width: 22ch; }
  .rows-svc .ticks li:first-child { border-top: 1px solid var(--panel-rule); padding-top: 0.5rem; }
}
@media (max-width: 760px) {
  .rsec { padding-top: var(--s5); padding-bottom: var(--s5); }
  .index > li, .index > li.lead { grid-template-columns: minmax(0, 1fr); gap: 0.375rem; }
  .index .meta, .index .go { grid-column: auto; grid-row: auto; justify-self: start; text-align: left; }
  .index .go .text-link { margin-top: 0; }
  .index .lead .go { margin-top: var(--s2); }
  .rows > li, .rows-split > li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .facts > div { grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .text-link .ico { transition: none; }
}
