/* Unique to You — site stylesheet
   Brand: the jigsaw logo. Red / yellow / blue pieces with a thick ink outline.
   The UI borrows that outline: 3px ink borders and a hard offset shadow. */

/* ---------- Fonts (self-hosted would be faster; Google Fonts for now) ---------- */

:root {
  --ink: #14171C;
  --ink-soft: #474D58;
  --paper: #FFFFFF;
  --panel: #F4F7F9;

  --blue: #05A5D8;
  --blue-dark: #036F94;      /* link/text blue: 5.6:1 on white */
  --blue-tint: #E3F5FB;
  --yellow: #FBED24;
  --yellow-tint: #FFF9C7;
  --red: #D1252A;
  --red-tint: #FCE6E6;

  --line: 3px solid var(--ink);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);

  --font-display: 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px base: easier reading for every visitor */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .4em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.25rem; line-height: 1.25; }

:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.measure { max-width: 65ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  padding: 12px 18px; border: var(--line); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

/* Small label above a heading. Used sparingly. */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--ink); background: var(--yellow);
  border: var(--line); border-radius: 999px;
  padding: 2px 16px 0; margin-bottom: 20px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 26px 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--yellow);
  border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: var(--paper); }
.btn--ghost:hover { background: var(--blue-tint); }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px;
}
.brand { display: block; flex: none; }
.brand img { height: 56px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-list a:hover { background: var(--blue-tint); }
.nav-list a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { min-height: 46px; padding: 11px 20px 7px; font-size: 1.05rem; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 16px 6px;
  font: 700 1.05rem var(--font-display); color: var(--ink);
  background: var(--paper); border: var(--line); border-radius: 999px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: var(--line);
    padding: 12px var(--gutter) 24px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-list a { padding: 14px 16px; font-size: 1.2rem; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 54px; }
  .brand img { height: 48px; }
}
/* No-JS fallback: show nav links inline under the header */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { position: static; display: block; border: 0; padding: 0 0 12px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding: 0 .08em;
}
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 540px); }

/* Hero logo animation. Each piece image is the full logo canvas with that piece in
   its final place, so stacking them rebuilds the logo; each wrapper slides its piece
   in, and the image inside "waddles" while it walks. */
.pieces-stage { position: relative; aspect-ratio: 1000 / 459; transform-origin: 50% 100%; }
/* Hide pieces left of the logo area so red never walks across the headline;
   above, below and to the right stay open (the hero section clips the rest). */
.hero-art { clip-path: inset(-100vh -100vw -100vh -10%); }
.piece-walk { position: absolute; inset: 0; }
.piece-walk img { width: 100%; height: 100%; transform-origin: 50% 95%; }
.piece-walk--yellow { z-index: 1; }   /* the others' tabs overlap the middle piece */
.piece-walk--red, .piece-walk--blue { z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .piece-walk--yellow { animation: piece-drop 1s cubic-bezier(.3, .7, .4, 1) .2s both; }
  .piece-walk--red    { animation: piece-in-left 2.7s cubic-bezier(.25, .6, .35, 1) .3s both; }
  .piece-walk--blue   { animation: piece-in-right 2.7s cubic-bezier(.25, .6, .35, 1) .3s both; }
  .piece-walk--red img, .piece-walk--blue img { animation: piece-waddle .5s ease-in-out .3s 4; }
  .pieces-stage { animation: pieces-hop .6s ease-out 3.15s both; }
  .hero-wordmark { animation: wordmark-in .6s cubic-bezier(.3, 1.4, .5, 1) 3.65s both; }
}

@keyframes piece-drop {
  0%   { transform: translateY(-160%); }
  60%  { transform: translateY(3%); }
  78%  { transform: translateY(-4%); }
  100% { transform: translateY(0); }
}
@keyframes piece-in-left {               /* walk in, stop just short, then click in */
  0%   { transform: translateX(-110%); }
  74%  { transform: translateX(-8%); }
  86%  { transform: translateX(-8%); }
  100% { transform: translateX(0); }
}
@keyframes piece-in-right {
  0%   { transform: translateX(110%); }
  74%  { transform: translateX(8%); }
  86%  { transform: translateX(8%); }
  100% { transform: translateX(0); }
}
@keyframes piece-waddle {
  0%, 50%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-5%) rotate(-4deg); }
  75% { transform: translateY(-5%) rotate(4deg); }
}
/* The name, sized and spaced as in the logo: same width as the characters,
   with the same gap beneath them */
.hero-wordmark { display: block; width: 100%; height: auto; margin-top: 5.5%; }
@keyframes wordmark-in {
  0%   { opacity: 0; transform: translateY(30%) scale(.9); }
  100% { opacity: 1; transform: none; }
}
@keyframes pieces-hop {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-7%) scale(1.02); }
  70% { transform: translateY(1%) scale(.99, 1.01); }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 440px); }
}

/* ---------- Trust bar ---------- */

.trust { border-top: var(--line); border-bottom: var(--line); background: var(--panel); }
.trust .wrap {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px 32px; align-items: center;
  padding-top: 24px; padding-bottom: 24px;
}
.trust-item { display: flex; align-items: center; gap: 14px; font-weight: 700; line-height: 1.3; }
.trust-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border: var(--line); border-radius: 14px; background: var(--paper);
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-item:nth-child(1) .trust-icon { background: var(--red); color: #fff; }
.trust-item:nth-child(2) .trust-icon { background: var(--yellow); }
.trust-item:nth-child(3) .trust-icon { background: var(--blue); }
@media (max-width: 760px) { .trust .wrap { grid-template-columns: 1fr; justify-content: start; } }

/* ---------- Puzzle strip (signature element: the logo's three pieces) ---------- */

.puzzle { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.piece {
  position: relative; padding: 40px 36px 44px;
  border: var(--line); margin-left: -3px;
}
.piece:first-child { margin-left: 0; border-radius: var(--radius) 0 0 var(--radius); }
.piece:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.piece--red { background: var(--red); color: #fff; }
.piece--red h3 { color: #fff; }
.piece--yellow { background: var(--yellow); }
.piece--blue { background: var(--blue); }
/* The jigsaw tab: a circle bulging into the next piece */
.piece:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2;
  right: -26px; top: 40px; width: 46px; height: 46px;
  border: var(--line); border-radius: 50%;
  background: inherit;
  clip-path: inset(-4px -4px -4px 22px);
}
.piece-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  font: 800 1.3rem/1 var(--font-display); padding-top: 3px;
  background: var(--paper); color: var(--ink); border: var(--line); border-radius: 50%;
}
.piece p { font-size: 1.1rem; }
.piece--red p { color: #fff; }

@media (max-width: 860px) {
  .puzzle { grid-template-columns: 1fr; }
  .piece { margin-left: 0; margin-top: -3px; padding: 32px 28px 40px; }
  .piece:first-child { border-radius: var(--radius) var(--radius) 0 0; margin-top: 0; }
  .piece:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .piece:not(:last-child)::after {
    right: auto; left: 50%; top: auto; bottom: -26px; margin: 0 0 0 -23px;
    clip-path: inset(22px -4px -4px -4px);
  }
}

/* ---------- UNIQUE values ---------- */

.values { background: var(--blue-tint); border-top: var(--line); border-bottom: var(--line); }
.values .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.values-intro { position: sticky; top: 120px; }
.values-word {
  display: flex; gap: 6px; margin-top: 28px; flex-wrap: wrap;
}
.values-word span {
  display: grid; place-items: center; width: 56px; height: 64px; padding-top: 6px;
  font: 800 2.2rem/1 var(--font-display);
  border: var(--line); border-radius: var(--radius-sm); background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.values-word span:nth-child(3n+1) { background: var(--red); color: #fff; }
.values-word span:nth-child(3n+2) { background: var(--yellow); }
.values-word span:nth-child(3n+3) { background: var(--blue); }

.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.value {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  background: var(--paper); border: var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.value-letter {
  display: grid; place-items: center; width: 64px; height: 64px; padding-top: 6px;
  font: 800 2.3rem/1 var(--font-display);
  border: var(--line); border-radius: 16px;
}
.value:nth-child(3n+1) .value-letter { background: var(--red); color: #fff; }
.value:nth-child(3n+2) .value-letter { background: var(--yellow); }
.value:nth-child(3n+3) .value-letter { background: var(--blue); }
.value h3 { margin: 4px 0 4px; }
.value p { color: var(--ink-soft); }

@media (max-width: 860px) {
  .values .wrap { grid-template-columns: 1fr; }
  .values-intro { position: static; }
  .value { grid-template-columns: 52px 1fr; padding: 18px; gap: 16px; }
  .value-letter { width: 52px; height: 52px; font-size: 1.9rem; }
  .values-word span { width: 46px; height: 54px; font-size: 1.8rem; }
}

/* ---------- What we offer ---------- */

.offer { border-top: var(--line); }
.offer-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.offer-intro h3 { margin: 32px 0 14px; }
.support-card {
  background: var(--blue-tint); border: var(--line); border-radius: var(--radius);
  padding: 28px 28px 30px;
}
.support-card h3 { margin: 0 0 18px; }

.sessions-title { margin: clamp(56px, 7vw, 88px) 0 24px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.session-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.session {
  display: flex; flex-direction: column;
  border: var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper);
}
.session img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: var(--line); background: var(--paper); }
.session span {
  display: block; padding: 14px 18px 12px;
  font: 700 1.2rem/1.2 var(--font-display);
}
.session span { background: var(--paper); }
/* Lead tile spans two columns so 11 tiles fill exactly 12 cells at 4, 3 or 2 columns */
.session:first-child { grid-column: span 2; }
.session:first-child img { flex: 1 1 0px; aspect-ratio: auto; min-height: 0; height: auto; }
.session:first-child span { font-size: 1.5rem; padding: 18px 22px 14px; }
.session img[src*="offer-accredited"] { object-fit: contain; padding: 10px; }
/* Wide word-art photos: show the whole image, sat on the label bar, with the photo's
   own top colour filling the space above so it doesn't read as a frame */
.session img[src*="offer-life-skills"],
.session img[src*="offer-safety"] { object-fit: contain; object-position: 50% 100%; }
.session img[src*="offer-life-skills"] { background: #FFFFFF; }
.session img[src*="offer-safety"] { background: #DCF1FA; }

.approach { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; margin-top: clamp(64px, 8vw, 104px); }
.approach-photo {
  margin: 0; position: sticky; top: 120px;
  border: var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 8px 8px 0 var(--yellow); transform: rotate(-1.5deg);
}
.approach-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.approach-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 20px; }
.approach-item { border-left: 6px solid var(--red); padding: 4px 0 4px 22px; margin-bottom: 28px; }
.approach-item:nth-of-type(2) { border-color: var(--yellow); }
.approach-item:nth-of-type(3) { border-color: var(--blue); }
.approach-item h4 { font-size: 1.4rem; margin-bottom: 8px; }
.approach-item p { color: var(--ink-soft); }

@media (max-width: 1000px) {
  .session-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .offer-intro, .approach { grid-template-columns: 1fr; }
  .approach-photo { position: static; max-width: 420px; }
}
@media (max-width: 700px) {
  .session-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .session:first-child img { flex: none; height: auto; aspect-ratio: 2 / 1; }
  .session span { font-size: 1.05rem; padding: 10px 12px 8px; }
  .session:first-child span { font-size: 1.25rem; }
}

/* ---------- Founder ---------- */

.founder { border-top: var(--line); }

.founder .wrap { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder-card {
  background: var(--yellow); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; transform: rotate(-1.5deg);
}
.founder-card img {
  width: 100%; height: auto;
  border: var(--line); border-radius: var(--radius-sm);
}
.founder-card figcaption { padding: 14px 4px 2px; font: 700 1.25rem/1.2 var(--font-display); }
.founder-card figcaption span { display: block; font: 400 1rem var(--font-body); color: var(--ink); }
.founder-text p { color: var(--ink-soft); }
@media (max-width: 860px) {
  .founder .wrap { grid-template-columns: 1fr; }
  .founder-card { max-width: 340px; }
}

/* ---------- Quotes ---------- */

.quotes { background: var(--ink); color: var(--paper); }
.quotes h2 { color: var(--paper); }
.quote-wall { columns: 3 300px; column-gap: 24px; margin-top: 40px; }
.quote {
  break-inside: avoid; margin: 0 0 24px; padding: 28px 28px 24px;
  border: 3px solid var(--paper); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 18px;
  color: var(--ink); background: var(--paper);
}
.quote:nth-child(3n+1) { background: var(--yellow); }
.quote:nth-child(3n+2) { background: var(--blue); }
.quote::before {
  content: "\201C"; display: block; height: .5em;
  font: 800 5rem/1 var(--font-display); color: var(--ink);
}
.quote blockquote { margin: 0; }
.quote blockquote p { font: 600 clamp(1.15rem, 1.5vw, 1.3rem)/1.45 var(--font-display); }
.quote figcaption { font-weight: 700; }

/* ---------- FAQ ---------- */

.faq .wrap { max-width: 860px; }
.faq-list { margin-top: 36px; display: grid; gap: 14px; }
.faq details {
  border: var(--line); border-radius: var(--radius); background: var(--paper);
  transition: box-shadow .18s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); background: var(--yellow-tint); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; min-height: 64px;
  font: 700 1.25rem/1.25 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px;
  border: var(--line); border-radius: 50%; background: var(--yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314171C' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-soft); max-width: 65ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Referrals ---------- */

[id] { scroll-margin-top: 96px; }

.refer { border-top: var(--line); }
.refer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.refer h3 { margin-top: 36px; margin-bottom: 14px; }
.refer-intro p:not(.lede) { color: var(--ink-soft); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 40px; line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px;
  border: var(--line); border-radius: 8px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314171C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checklist li:nth-child(3n+1)::before { background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.checklist li:nth-child(3n+3)::before { background-color: var(--blue); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 8px 18px 5px; border: var(--line); border-radius: 999px; background: var(--blue-tint);
}

.form-card {
  background: var(--paper); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.form-card-head { background: var(--yellow); border-bottom: var(--line); padding: 24px 28px 20px; }
.form-card-head h3 { margin: 0 0 6px; }
.form-card-head p { font-size: 1.05rem; }
.form-embed { display: block; width: 100%; border: 0; padding: 12px clamp(12px, 3vw, 24px) 0; }  /* height set per form in index.php, sized to the rendered Tally form plus room for error messages */
.form-placeholder {
  margin: 28px; padding: 40px 24px; text-align: center;
  border: 3px dashed #9AA3AD; border-radius: var(--radius-sm); color: var(--ink-soft);
}
@media (max-width: 860px) { .refer .wrap { grid-template-columns: 1fr; } }

/* Contact links (footer + Refer section) */
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-links a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.contact-links a:hover { text-decoration: underline; }
.contact-links svg { width: 22px; height: 22px; flex: none; }
.talk-card {
  margin-top: 32px; padding: 22px 24px; background: var(--yellow-tint);
  border: var(--line); border-radius: var(--radius);
}
.talk-card h3 { margin: 0 0 4px; }
.talk-card p { margin-bottom: 10px; }
.talk-card .contact-links a { font-size: 1.15rem; }

/* ---------- Join the team ---------- */

.join { background: var(--blue-tint); border-top: var(--line); border-bottom: var(--line); }
.join-top {
  display: grid; grid-template-columns: 360px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  margin-bottom: 48px;
}
.join-photo {
  margin: 0; border: var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 8px 8px 0 var(--red); transform: rotate(-2deg); background: var(--paper);
}
.join-photo img { width: 100%; aspect-ratio: 528 / 360; object-fit: cover; }
.form-card--wide { max-width: 860px; margin: 0 auto; }
@media (max-width: 860px) {
  .join-top { grid-template-columns: 1fr; }
  .join-photo { max-width: 360px; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: var(--line); background: var(--panel); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand img { width: 180px; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-soft); max-width: 36ch; font-size: 1rem; }
.site-footer h2 { font-size: 1.25rem; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-base {
  margin-top: 40px; padding-top: 20px; border-top: 2px solid #D6DCE1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .95rem; color: var(--ink-soft);
}
.footer-base a { color: var(--ink-soft); }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (only when JS has run and motion is OK) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Content pages (privacy policy) ---------- */

.page-hero { background: var(--blue-tint); border-bottom: var(--line); padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero .lede { margin: 0; }
.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 56px 0 16px; padding-top: 24px;
  border-top: 3px solid var(--ink);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.4rem; margin: 36px 0 10px; }
.legal-body h4 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body strong { color: var(--ink); }
.legal-body ul { padding-left: 1.3em; margin: 0 0 1.2em; display: grid; gap: 10px; }
.legal-body li::marker { color: var(--blue-dark); }
.legal-body li p { margin-bottom: .4em; }
.legal-body a { overflow-wrap: anywhere; }

/* ---------- 404 ---------- */

.notfound { text-align: center; }
.notfound .lede { margin: 0 auto 32px; }
.notfound .hero-actions { justify-content: center; }
.notfound-art { width: min(320px, 70%); margin: 0 auto 24px; }

/* ---------- Staff area ---------- */

.staff { background: var(--blue-tint); min-height: 100vh; }
.staff-top { background: var(--paper); border-bottom: var(--line); }
.staff-top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.staff-top .brand img { height: 52px; }
.staff-tag {
  font: 700 1rem var(--font-display); padding: 4px 14px 2px;
  border: var(--line); border-radius: 999px; background: var(--yellow);
}
.staff-main { padding: clamp(32px, 6vw, 72px) 0; }

.login-card {
  width: min(100% - 32px, 440px); margin: 0 auto;
  background: var(--paper); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px clamp(20px, 5vw, 36px);
}
.login-card h1 { font-size: 2.2rem; }
.login-card form { display: grid; gap: 18px; margin-top: 8px; }
.login-card .btn { justify-self: start; }
.login-back { margin-top: 20px; font-size: 1rem; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input {
  font: inherit; color: var(--ink); background: var(--paper);
  min-height: 52px; padding: 10px 14px;
  border: var(--line); border-radius: var(--radius-sm);
}
.field input:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }

.form-error {
  background: var(--red-tint); border: 3px solid var(--red); border-radius: var(--radius-sm);
  padding: 12px 16px; font-weight: 700; color: #8E1418;
}
.notice {
  background: var(--yellow-tint); border: 3px solid var(--ink); border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.portal-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px;
  margin-bottom: 32px;
}
.portal-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 4px; }
.portal-links {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.portal-link {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 20px 22px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: var(--line); border-radius: var(--radius);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.portal-link strong { font: 700 1.25rem/1.2 var(--font-display); }
.portal-link span { color: var(--ink-soft); font-size: 1rem; }
a.portal-link:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.portal-link.is-unset { border-style: dashed; border-color: #9AA3AD; background: transparent; }
@media (prefers-reduced-motion: reduce) { .portal-link { transition: none; } a.portal-link:hover { transform: none; } }

/* ---------- Staff area: menu, admin pages ---------- */

.staff-top .wrap { gap: 20px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.staff-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.staff-nav a, .linklike {
  display: block; padding: 10px 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: 600 1.05rem var(--font-display); color: var(--ink); text-decoration: none;
}
.staff-nav a:hover, .linklike:hover { background: var(--blue-tint); }
.staff-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.staff-nav form { margin: 0; }

.stack { display: grid; gap: 18px; }
.login-card .stack .btn { justify-self: start; }
.help { margin: 2px 0 0; font-size: .95rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-weight: 400; }
.field select {
  font: inherit; color: var(--ink); background: var(--paper);
  min-height: 52px; padding: 10px 14px; border: var(--line); border-radius: var(--radius-sm);
}

.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 6px; }
.page-head p { color: var(--ink-soft); max-width: 65ch; }
.page-foot { margin-top: 24px; }
.staff-main h2 { font-size: 1.6rem; margin: 0 0 16px; }

.flash {
  border: 3px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 16px;
  margin-bottom: 20px; font-weight: 700; background: #E5F6E8;
}
.flash--error { background: var(--red-tint); border-color: var(--red); color: #8E1418; }

.panel {
  background: var(--paper); border: var(--line); border-radius: var(--radius);
  padding: 24px clamp(18px, 3vw, 28px); margin-bottom: 36px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; align-items: start; }
.form-row .btn { align-self: end; margin-bottom: 26px; justify-self: start; }
.form-row .field--wide { grid-column: span 2; }
@media (max-width: 560px) { .form-row .field--wide { grid-column: auto; } }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--paper); border: var(--line); border-radius: var(--radius); padding: 16px 20px;
}
.row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-width: 0; }
.row-main strong { font: 700 1.2rem var(--font-display); }
.row-main a.muted { overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; }
.row-actions form { margin: 0; }

.badge {
  display: inline-block; padding: 2px 10px 0; border: 2px solid var(--ink); border-radius: 999px;
  font: 700 .85rem/1.6 var(--font-display);
}
.badge--admin { background: var(--yellow); }
.badge--staff { background: var(--blue-tint); }
.badge--wait { background: var(--panel); border-style: dashed; }

.btn--small { min-height: 40px; padding: 9px 16px 6px; font-size: .98rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--icon { min-width: 44px; padding-left: 10px; padding-right: 10px; }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { color: #fff; }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

.confirm { position: relative; }
.confirm summary { list-style: none; }
.confirm summary::-webkit-details-marker { display: none; }
.confirm[open] > form {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(320px, 80vw);
  background: var(--paper); border: var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 16px;
}
.confirm[open] > form p { margin-bottom: 12px; }
.confirm--edit[open] > form { width: min(420px, 88vw); }

.reveal-box {
  background: var(--yellow-tint); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 28px; margin-bottom: 36px;
}
.reveal-box dl { display: grid; gap: 10px; margin: 16px 0 0; }
.reveal-box dl div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.reveal-box dt { font-weight: 700; }
.reveal-box dd { margin: 0; overflow-wrap: anywhere; }
.temp-pw {
  font-size: 1.35rem; font-weight: 700; letter-spacing: .04em;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 10px;
}
@media (max-width: 560px) { .reveal-box dl div { grid-template-columns: 1fr; gap: 2px; } }

.empty {
  border: 3px dashed #9AA3AD; border-radius: var(--radius); padding: 32px 24px; text-align: center;
}
.portal-link small { margin-top: auto; padding-top: 8px; color: var(--blue-dark); font-size: .9rem; }
@media (max-width: 600px) {
  .confirm[open] { flex-basis: 100%; }
  .confirm[open] > form { position: static; width: auto; margin-top: 8px; }
  .staff-nav a, .linklike { padding: 8px 10px; font-size: 1rem; }
}
.footer-links.contact-links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
