/* Wattle Education Consulting: shared site styles
   Concept: a stop-motion desk. A cutting mat, cut-paper artefacts
   placed by hand a frame at a time, golden wattle as the accent.
   Only the logo is fixed; the palette is the site's own. */

:root {
  --mat: #0b4a57;
  --mat-deep: #073641;
  --mat-line: rgba(255, 255, 255, 0.035);
  --mat-line-strong: rgba(255, 255, 255, 0.075);
  --ink: #07384a;
  --tide: #2fb8c6;          /* logo turquoise: focus rings only */
  --stamp: #1c8496;
  --wattle: #f4c21f;
  --wattle-hover: #f8cf45;
  --wattle-deep: #c9960a;
  --wattle-soft: #fcebb0;
  --gum: #7e9c8c;
  --gum-deep: #5e7d6a;
  --paper: #ffffff;
  --bone: #f1f4f1;
  --line: #d5ded9;
  --text: #18303a;
  --muted: #55666c;
  --on-mat: #d3e5e7;

  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --hand: "Gochi Hand", "Marker Felt", "Comic Sans MS", cursive;

  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);

  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(64px, 9vw, 128px);
  --measure: 66ch;
  --frame: 0.083s;          /* one frame at 12 fps */

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Cutting mat ---------- */

.mat {
  position: relative;
  color: var(--on-mat);
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line-strong) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
/* ruler along the top edge of the mat */
.mat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 16px;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 24px);
  background-size: 100% 16px, 100% 8px;
  background-repeat: no-repeat;
  background-position: -1px 0, -1px 0;
  pointer-events: none;
}
.mat h1,
.mat h2,
.mat h3 { color: #fff; }
.mat a:not(.button) { color: #fff; text-decoration-color: var(--wattle); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: 0.2em; }
.brand-name span {
  margin-top: 5px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font: 500 0.95rem var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { bottom: 0; }

.site-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--wattle);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
}
.site-nav .nav-cta { margin-left: 10px; }

@media (max-width: 420px) {
  .brand { gap: 9px; }
  .brand img { width: 48px; }
  .brand-name strong { font-size: 1.25rem; letter-spacing: 0.16em; }
  .brand-name span { font-size: 0.6rem; letter-spacing: 0.16em; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(7, 54, 65, 0.4);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--bone); }
  .site-nav .nav-cta { margin: 16px 0 0; }
  .site-nav .nav-cta .button { width: 100%; }
}

/* ---------- Buttons: card-stock labels that press down, no easing ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 4px;
  background: var(--wattle);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--wattle-deep);
  font: 500 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--wattle-hover); color: var(--ink); }
.button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--wattle-deep); }
.site-nav .button { min-height: 42px; padding: 8px 18px; color: var(--ink); text-decoration: none; border-bottom: 0; }

.button--quiet { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.button--quiet:hover { background: var(--bone); }
.button--quiet:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--ink); }
.mat .button--quiet { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); }
.mat .button--quiet:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- Bands ---------- */

.band { padding-block: var(--band); }
.band--bone { background: var(--bone); }
.band-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.band-head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: var(--measure); }
.mat .band-head p { color: var(--on-mat); }

/* ---------- Heroes ---------- */

.hero { padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 120px); overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { max-width: 13ch; }
.hero--page h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); max-width: 18ch; }
.lede { margin-top: 26px; max-width: 54ch; font-size: 1.1875rem; line-height: 1.6; }
.mat .lede { color: var(--on-mat); }
.hero-note { margin-top: 30px; font-size: 0.9rem; color: #a9c8cc; }

.crumbs { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.92rem; color: #a9c8cc; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.mat .crumbs a { color: #a9c8cc; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}

/* ---------- Stage: the desk where artefacts are placed ---------- */

.stage { position: relative; width: 100%; aspect-ratio: 10 / 9; container-type: inline-size; }
.stage > * { position: absolute; }

.sheet,
.screen,
.phone,
.browser { font-family: var(--sans); color: var(--text); transform: rotate(var(--r, 0deg)); }

/* paper sheet */
.sheet {
  left: 0;
  top: 3%;
  width: 60%;
  padding: 4.2cqi 4.4cqi 4.8cqi;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0.5cqi 0 rgba(0, 0, 0, 0.08), 0 2.4cqi 4cqi -1.4cqi rgba(0, 0, 0, 0.45);
  font-size: 1.85cqi;
  line-height: 1.45;
  z-index: 2;
}
.sheet-kicker { font-size: 1.6cqi; color: var(--muted); }
.sheet-title { margin-top: 0.6cqi; font-family: var(--display); font-size: 3.4cqi; line-height: 1.15; color: var(--ink); }
.sheet-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2cqi;
  margin: 2.6cqi 0 2.4cqi;
  padding-block: 1.6cqi;
  border-block: 1px solid var(--line);
}
.sheet-meta dt { font-size: 1.45cqi; color: var(--muted); }
.sheet-meta dd { margin: 0; font-weight: 500; color: var(--ink); }
.sheet-h { font-weight: 600; color: var(--ink); margin-bottom: 0.8cqi; font-size: 1.75cqi; }
.sheet ol { margin: 0 0 2.4cqi; padding: 0; list-style: none; }
.sheet li { display: flex; justify-content: space-between; gap: 2cqi; padding: 0.7cqi 0; border-bottom: 1px dashed var(--line); }
.sheet li b { font-weight: 600; color: var(--ink); margin-right: 1cqi; }
.chip {
  flex: none;
  align-self: center;
  padding: 0.2cqi 1cqi;
  border-radius: 99px;
  background: var(--bone);
  color: var(--ink);
  font-size: 1.4cqi;
  font-weight: 500;
  white-space: nowrap;
}
.sheet table { width: 100%; border-collapse: collapse; font-size: 1.65cqi; }
.sheet td { padding: 0.6cqi 0; border-bottom: 1px solid var(--bone); }
.sheet td:last-child { text-align: right; color: var(--muted); }

/* highlighter pen */
.hl {
  background: linear-gradient(rgba(244, 194, 31, 0.75), rgba(244, 194, 31, 0.75)) no-repeat 0 62% / 100% 72%;
  padding-inline: 0.3cqi;
  margin-inline: -0.3cqi;
}

/* masking tape */
.tape {
  position: absolute;
  z-index: 3;
  width: 22%;
  height: 5.2cqi;
  background: rgba(252, 235, 176, 0.82);
  box-shadow: 0 0.3cqi 0.6cqi rgba(0, 0, 0, 0.12);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 9%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 91%, 6% 100%, 0 90%);
}
.tape--l { left: -5%; top: -2.2cqi; transform: rotate(-24deg); }
.tape--r { right: -5%; top: -2.2cqi; transform: rotate(22deg); }

/* rubber stamp */
.stamp {
  position: absolute;
  z-index: 4;
  padding: 0.8cqi 1.6cqi;
  border: 0.5cqi solid var(--stamp);
  outline: 0.22cqi solid var(--stamp);
  outline-offset: 0.5cqi;
  color: var(--stamp);
  font: 600 1.75cqi/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.88;
  mix-blend-mode: multiply;
  filter: url(#rough-ink);
  transform: rotate(-10.5deg);
}
.stamp--top { right: 6%; top: 25%; }
.stamp--bottom { right: 7%; bottom: 7%; }

/* sticky note */
.sticky {
  z-index: 6;
  width: 25%;
  aspect-ratio: 1;
  padding: 2.4cqi 2.2cqi;
  background: linear-gradient(172deg, #f9d65c, var(--wattle) 55%, #eeb90f);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 3.1cqi;
  line-height: 1.12;
  box-shadow: 0 1.8cqi 2.2cqi -1.2cqi rgba(0, 0, 0, 0.5);
  transform: rotate(var(--r, 3deg));
}
.sticky svg { width: 46%; margin-top: 1.2cqi; }

/* cut-paper wattle sprig */
.sprig { z-index: 5; width: 42%; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 0.8cqi 0.8cqi rgba(0, 0, 0, 0.35)); }

/* provider system screen */
.screen {
  right: 0;
  top: 38%;
  width: 62%;
  z-index: 3;
  background: #fff;
  border-radius: 1.4cqi;
  overflow: hidden;
  box-shadow: 0 3cqi 5cqi -1.5cqi rgba(0, 0, 0, 0.55);
  font-size: 1.75cqi;
}
.screen-bar { display: flex; align-items: center; justify-content: space-between; padding: 1.5cqi 2.4cqi; background: var(--ink); color: #fff; }
.screen-bar span:first-child { font-family: var(--display); font-size: 2.3cqi; letter-spacing: 0.04em; }
.screen-bar span:last-child { font-size: 1.45cqi; color: var(--wattle-soft); }
.screen-body { padding: 2.2cqi 2.6cqi 2.8cqi; }
.screen-sub { display: flex; justify-content: space-between; color: var(--muted); font-size: 1.5cqi; margin-bottom: 1.2cqi; }
.domain { display: grid; grid-template-columns: 2.4cqi 1fr 13cqi; align-items: center; gap: 1.2cqi; padding: 0.75cqi 0; }
.domain-n { font-weight: 600; color: var(--ink); }
.domain-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 1cqi; border-radius: 1cqi; background: var(--bone); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v); background: var(--ink); border-radius: inherit; }
.meter i.is-review { background: var(--wattle); }
.screen-foot { display: flex; gap: 2.4cqi; margin-top: 1.6cqi; padding-top: 1.4cqi; border-top: 1px solid var(--line); font-size: 1.45cqi; color: var(--muted); }
.screen-foot span::before {
  content: "";
  display: inline-block;
  width: 1.2cqi;
  height: 1.2cqi;
  margin-right: 0.8cqi;
  border-radius: 50%;
  background: var(--ink);
}
.screen-foot span + span::before { background: var(--wattle); }
.screen-list { margin-top: 3cqi; }
.task { display: flex; justify-content: space-between; gap: 2cqi; padding: 1cqi 0; border-top: 1px solid var(--bone); }
.task span:last-child { color: var(--ink); font-weight: 500; }

/* phone */
.phone {
  left: 13%;
  bottom: 0;
  width: 23%;
  z-index: 4;
  aspect-ratio: 9 / 18.5;
  padding: 1.1cqi;
  background: #052a33;
  border-radius: 4.4cqi;
  box-shadow: 0 3cqi 5cqi -1.5cqi rgba(0, 0, 0, 0.6);
  font-size: 1.45cqi;
}
.phone-screen { height: 100%; border-radius: 3.4cqi; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.phone-head { padding: 3.6cqi 2.2cqi 1.6cqi; background: var(--bone); }
.phone-head small { display: block; color: var(--muted); font-size: 1.3cqi; }
.phone-head strong { display: block; margin-top: 0.3cqi; font-family: var(--display); font-weight: 400; font-size: 2.3cqi; color: var(--ink); }
.phone-list { padding: 1.4cqi 1.8cqi; display: grid; gap: 1.1cqi; }
.slot { padding: 1.1cqi 1.3cqi; border-radius: 1.2cqi; border: 1px solid var(--line); }
.slot b { display: block; font-weight: 600; color: var(--ink); }
.slot span { color: var(--muted); font-size: 1.3cqi; }
.slot.is-next { background: var(--wattle); border-color: var(--wattle); }
.phone-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 1.4cqi 0 2cqi; border-top: 1px solid var(--line); }
.phone-tabs i { width: 2.4cqi; height: 2.4cqi; border-radius: 0.7cqi; background: var(--line); }
.phone-tabs i:first-child { background: var(--ink); }

/* browser window */
.browser {
  left: 0;
  top: 5%;
  width: 82%;
  z-index: 2;
  background: #fff;
  border-radius: 1.4cqi;
  overflow: hidden;
  box-shadow: 0 3cqi 5cqi -1.5cqi rgba(0, 0, 0, 0.55);
  font-size: 2cqi;
}
.browser-bar { display: flex; align-items: center; gap: 1.6cqi; padding: 1.4cqi 2cqi; background: var(--bone); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 1.3cqi; height: 1.3cqi; border-radius: 50%; background: var(--line); }
.browser-bar span { flex: 1; margin-left: 1cqi; padding: 0.5cqi 1.6cqi; background: #fff; border-radius: 99px; color: var(--muted); font-size: 1.6cqi; }
.browser-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3cqi; padding: 4.4cqi 4cqi 3.6cqi; }
.browser-body h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 4.2cqi; line-height: 1.1; color: var(--ink); }
.browser-body p { margin-top: 1.6cqi; color: var(--muted); font-size: 1.8cqi; }
.browser-btn { display: inline-block; margin-top: 2.4cqi; padding: 1cqi 2.4cqi; border-radius: 0.6cqi; background: var(--wattle); color: var(--ink); font-size: 1.7cqi; font-weight: 500; }
.browser-art { position: relative; border-radius: 1cqi; background: var(--bone); min-height: 22cqi; overflow: hidden; }
.browser-art span { position: absolute; border-radius: 50%; background: var(--wattle); }
.browser-art span:nth-child(1) { width: 9cqi; height: 9cqi; left: 22%; top: 20%; }
.browser-art span:nth-child(2) { width: 6cqi; height: 6cqi; left: 55%; top: 46%; }
.browser-art span:nth-child(3) { width: 4cqi; height: 4cqi; left: 30%; top: 66%; background: var(--gum); }
.browser-rows { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; padding: 0 4cqi 4.4cqi; }
.browser-rows div { height: 9cqi; border-radius: 1cqi; border: 1px solid var(--line); background: #fff; transform: rotate(var(--r, 0deg)); }
.browser-rows div:nth-child(2) { background: var(--bone); }

/* stage variants for service pages */
.stage--sheet { aspect-ratio: 10 / 9; }
.stage--sheet .sheet { left: 4%; top: 6%; width: 82%; font-size: 2.45cqi; padding: 5.6cqi 6cqi 6.2cqi; }
.stage--sheet .sheet-kicker { font-size: 2.1cqi; }
.stage--sheet .sheet-title { font-size: 4.6cqi; }
.stage--sheet .sheet-meta dt { font-size: 1.95cqi; }
.stage--sheet .sheet-h { font-size: 2.35cqi; }
.stage--sheet .chip { font-size: 1.9cqi; }
.stage--sheet .sheet table { font-size: 2.2cqi; }
.stage--sheet .stamp { font-size: 2.3cqi; }
.stage--sheet .tape { height: 6.4cqi; }

.stage--screen { aspect-ratio: 10 / 10.2; }
.stage--screen .screen { left: 4%; right: auto; top: 6%; width: 92%; font-size: 2.5cqi; }
.stage--screen .screen-bar span:first-child { font-size: 3.2cqi; }
.stage--screen .screen-bar span:last-child,
.stage--screen .screen-sub,
.stage--screen .screen-foot { font-size: 2.1cqi; }
.stage--screen .domain { grid-template-columns: 3.4cqi 1fr 20cqi; }

.stage--devices { aspect-ratio: 10 / 8.6; }
.stage--devices .phone { left: auto; right: 2%; bottom: 0; width: 29%; font-size: 1.8cqi; }
.stage--devices .phone-head small { font-size: 1.6cqi; }
.stage--devices .phone-head strong { font-size: 2.8cqi; }
.stage--devices .slot span { font-size: 1.6cqi; }

/* ---------- Stop-motion ----------
   Every move is a held pose (step-end), roughly 12 frames a second,
   with small offsets as if each frame were nudged by hand. */

@keyframes sm-place {
  0%       { opacity: 0; transform: translate(var(--fx, 40px), var(--fy, -60px)) rotate(calc(var(--r, 0deg) - 9deg)); }
  14%      { opacity: 1; transform: translate(calc(var(--fx, 40px) * 0.66), calc(var(--fy, -60px) * 0.66 + 2px)) rotate(calc(var(--r, 0deg) - 6deg)); }
  28%      { transform: translate(calc(var(--fx, 40px) * 0.38 - 1px), calc(var(--fy, -60px) * 0.38)) rotate(calc(var(--r, 0deg) - 3.5deg)); }
  42%      { transform: translate(calc(var(--fx, 40px) * 0.16), calc(var(--fy, -60px) * 0.14 + 1px)) rotate(calc(var(--r, 0deg) - 1.6deg)); }
  57%      { transform: translate(calc(var(--fx, 40px) * 0.04 + 1px), calc(var(--fy, -60px) * 0.03)) rotate(calc(var(--r, 0deg) - 0.4deg)); }
  71%      { transform: translate(-1px, 1px) rotate(calc(var(--r, 0deg) + 0.4deg)); }
  85%,
  100%     { opacity: 1; transform: translate(0, 0) rotate(var(--r, 0deg)); }
}

@keyframes sm-stamp {
  0%       { opacity: 0; transform: rotate(-16deg) scale(1.7); }
  20%      { opacity: 0.6; transform: rotate(-13deg) scale(1.32); }
  40%      { opacity: 0.95; transform: rotate(-10deg) scale(0.9); }
  60%      { transform: rotate(-11deg) scale(1.04); }
  80%,
  100%     { opacity: 0.88; transform: rotate(-10.5deg) scale(1); }
}

@keyframes sm-pop {
  0%       { opacity: 0; transform: rotate(var(--r, 0deg)) scale(0.2); }
  25%      { opacity: 1; transform: rotate(calc(var(--r, 0deg) - 8deg)) scale(1.25); }
  50%      { transform: rotate(calc(var(--r, 0deg) + 3deg)) scale(0.92); }
  75%,
  100%     { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); }
}

@keyframes sm-boil {
  0%       { transform: rotate(var(--r, 0deg)) translate(0, 0); }
  33%      { transform: rotate(calc(var(--r, 0deg) + 0.6deg)) translate(0.6px, -0.5px); }
  66%      { transform: rotate(calc(var(--r, 0deg) - 0.4deg)) translate(-0.5px, 0.5px); }
}

@keyframes sm-swipe { from { background-size: 0% 72%; } to { background-size: 100% 72%; } }
@keyframes sm-fill { from { width: 0; } to { width: var(--v); } }

@media (prefers-reduced-motion: no-preference) {
  /* hero sequence plays on load */
  .stage .sm { animation: sm-place calc(var(--frame) * 9) step-end var(--d, 0s) both; }
  .stage .sm-boil { animation: sm-place calc(var(--frame) * 9) step-end var(--d, 0s) both, sm-boil calc(var(--frame) * 9) step-end calc(var(--d, 0s) + 0.75s) infinite; }
  .stage .stamp { animation: sm-stamp calc(var(--frame) * 5) step-end var(--d, 0s) both; }
  .stage .hl { animation: sm-swipe calc(var(--frame) * 6) steps(6, end) var(--d, 0s) both; }
  .stage .meter i { animation: sm-fill calc(var(--frame) * 5) steps(5, end) calc(var(--d, 0s) + 0.7s + var(--i, 0) * var(--frame)) both; }

  /* scroll-placed elements wait until they are in view */
  .sm-ready [data-sm]:not(.is-in) .sm-io,
  .sm-ready .sm-io[data-sm]:not(.is-in) { opacity: 0; }
  .sm-ready [data-sm].is-in .sm-io,
  .sm-ready .sm-io[data-sm].is-in { animation: sm-place calc(var(--frame) * 9) step-end var(--d, 0s) both; }

  .sm-ready .steps[data-sm]:not(.is-in) li::before { opacity: 0; }
  .sm-ready .steps[data-sm].is-in li::before { animation: sm-pop calc(var(--frame) * 4) step-end calc(var(--i, 0) * var(--frame) * 3) both; }
}

/* ---------- Service index (home) ---------- */

.service-index { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr) 14rem;
  gap: clamp(20px, 3.5vw, 48px);
  align-items: start;
  padding-block: clamp(32px, 4.5vw, 52px);
  border-top: 1px solid var(--line);
}
.service-row .obj { width: 120px; height: 100px; filter: drop-shadow(0 6px 6px rgba(7, 54, 65, 0.18)); transform: rotate(var(--r, 0deg)); }
.service-row h3 { font-size: var(--step-2); }
.service-row h3 a { color: inherit; text-decoration: none; }
.service-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--wattle); text-decoration-thickness: 3px; }
.service-row > div > p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.service-row ul { margin: 4px 0 0; padding: 0; list-style: none; }
.service-row li { position: relative; padding: 7px 0 7px 22px; border-bottom: 1px solid var(--line); }
.service-row li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 2px; background: var(--gum-deep); }
.service-row .text-link { justify-self: end; margin-top: 6px; white-space: nowrap; }

.text-link {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--wattle);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}
.text-link:hover { background: var(--wattle-soft); }

@media (max-width: 960px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row .obj { width: 96px; height: 80px; }
  .service-row .text-link { justify-self: start; }
}

/* ---------- Standards (definition list) ---------- */

.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.standards > div { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--line); }
.standards > div:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.standards dt { font-family: var(--display); font-size: 1.3rem; color: var(--ink); line-height: 1.25; }
.standards dt abbr { text-decoration: none; }
.standards dd { margin: 10px 0 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 900px) {
  .standards { grid-template-columns: 1fr 1fr; }
  .standards > div,
  .standards > div:not(:nth-child(3n + 1)) { padding: 22px 22px 26px 0; border-left: 0; }
  .standards > div:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .standards { grid-template-columns: 1fr; }
  .standards > div:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- Steps: numbered stickers, for true sequences only ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 70px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--wattle);
  box-shadow: 0 3px 0 var(--wattle-deep);
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  transform: rotate(var(--r, 0deg));
}
.steps li:nth-child(1) { --r: -6deg; --i: 0; }
.steps li:nth-child(2) { --r: 5deg; --i: 1; }
.steps li:nth-child(3) { --r: -3deg; --i: 2; }
.steps li:nth-child(4) { --r: 7deg; --i: 3; }
.steps li:nth-child(5) { --r: -5deg; --i: 4; }
.steps li::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 62px;
  right: -14px;
  border-top: 2px dashed var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 1rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 6px 0 0 70px; min-height: 54px; }
}

/* ---------- Taped paper cards ---------- */

.taped { position: relative; background: #fff; transform: rotate(var(--r, 0deg)); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05), 0 18px 30px -18px rgba(7, 54, 65, 0.45); }
.taped::before,
.taped::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 92px;
  height: 28px;
  background: rgba(252, 235, 176, 0.88);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 9%, 94% 0, 100% 10%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 91%, 6% 100%, 0 90%);
}
.taped::before { left: -22px; transform: rotate(-28deg); }
.taped::after { right: -22px; transform: rotate(26deg); }

/* ---------- Leadership ---------- */

.leader { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.leader-logo { padding: clamp(24px, 4vw, 48px); --r: -1.5deg; }
.leader-logo img { width: 100%; max-width: 360px; margin-inline: auto; }
.leader p { margin-top: 18px; max-width: 60ch; }
.leader .credentials { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 800px) { .leader { grid-template-columns: 1fr; } .leader-logo { max-width: 360px; margin-inline: 12px; } }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-intro { margin-top: 18px; max-width: 46ch; }
.contact-details { margin: 32px 0 0; display: grid; gap: 22px; }
.contact-details dt { font-size: 0.9rem; color: #a9c8cc; }
.contact-details dd { margin: 4px 0 0; font-size: 1.1rem; color: #fff; }

.form { padding: clamp(26px, 4vw, 42px); color: var(--text); --r: 0.8deg; }
.form h3,
.mat .form h3 { font-size: 1.6rem; color: var(--ink); }
.form > p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid #b5c6c0;
  border-radius: 4px;
  background: #fff;
  font: 400 1rem var(--sans);
  color: var(--text);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--wattle-soft); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: 0.88rem; color: #b3261e; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
.form-foot p { flex: 1 1 220px; font-size: 0.9rem; color: var(--muted); }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 4px; background: var(--wattle-soft); color: var(--ink); font-size: 0.95rem; }
.form-status[hidden] { display: none; }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Deliverable groups ---------- */

.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) clamp(32px, 5vw, 80px); }
.group h3 { font-size: 1.55rem; padding-bottom: 14px; border-bottom: 3px solid var(--wattle); }
.group > p { margin-top: 14px; color: var(--muted); }
.group ul { margin: 12px 0 0; padding: 0; list-style: none; }
.group li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); }
.group li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 2px; background: var(--gum-deep); }
@media (max-width: 800px) { .groups { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: #fff; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; }
.data-table caption { text-align: left; padding: 16px 20px; font-size: 0.92rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.data-table th,
.data-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { font-weight: 500; font-size: 0.92rem; color: #fff; background: var(--ink); }
.data-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table .chip { font-size: 0.85rem; padding: 2px 10px; margin: 2px 4px 2px 0; display: inline-block; background: var(--wattle-soft); }

/* ---------- Split section ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .band-head { margin-bottom: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.plain-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plain-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.plain-list strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--ink); }
.plain-list span { display: block; margin-top: 6px; color: var(--muted); }

.note { margin-top: 28px; padding: 18px 22px; border-left: 4px solid var(--wattle); background: #fff; color: #34464c; font-size: 0.98rem; max-width: 72ch; }

/* ---------- CTA band ---------- */

.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { max-width: 22ch; }
.cta-band p { margin-top: 12px; max-width: 56ch; }

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

.site-footer { padding-block: 56px 40px; background: var(--mat-deep); color: #a9c2c8; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.footer-brand strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.08em; color: #fff; }
.footer-brand p { margin-top: 12px; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: #fff; margin-bottom: 12px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #d5e5e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--wattle); }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
