/* Supply Help: shared styles */

:root {
  --ink: #1d1b16;
  --ink-2: #2f2c25;
  --muted: #6b6558;
  --dark: #1f1c16;

  --brand: #f5c518;
  --brand-d: #e0ad00;
  --brand-text: #8a6500;
  --brand-l: #fff3c4;
  --tint: #fffaeb;

  --paper: #ffffff;
  --white: #ffffff;
  --line: #ece7da;
  --line-soft: #f3efe5;
  --stone: #b9af99;
  --clay: #c2562e;
  --clay-l: #fbe6dc;
  --clay-text: #8a3a1c;

  /* Text on brand fills, and the highlight colour used on dark backgrounds and video */
  --on-brand: #1d1b16;
  --accent: #f5c518;

  --on-dark: #f6f2e9;
  --on-dark-muted: #b6ad99;
  --on-dark-faint: #948b77;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(29, 27, 22, .04), 0 10px 30px rgba(29, 27, 22, .07);
  --max: 1520px;
  --gutter: clamp(20px, 4vw, 56px);
  --edge: clamp(16px, 2.2vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; border-radius: 4px; }
/* Components that set their own display must still hide when the hidden attribute is set */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
/* Highlighter stroke: keeps the accent word in ink so it stays readable on white */
em.accent {
  font-style: italic; color: var(--ink); padding: 0 .06em;
  background: linear-gradient(transparent 62%, var(--brand) 62%, var(--brand) 92%, transparent 92%) no-repeat;
  background-size: 100% 100%;
}
.js .reveal em.accent { background-size: 0% 100%; transition: background-size 1s var(--ease) .5s; }
.js .reveal.in em.accent { background-size: 100% 100%; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Edge to edge: the header and hero run to a narrow gutter, as on modscape.com.au */
.container-full { width: 100%; padding: 0 var(--edge); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-sand { background: var(--tint); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .muted { color: var(--on-dark-muted); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.section-head.split .lede { margin: 0; }
@media (max-width: 900px) { .section-head.split { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-text); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); }
.section-dark .eyebrow, .auth-side .eyebrow, .on-media .eyebrow { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-d) 28%, transparent); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
/* On dark surfaces the brand colour can be dark too, so buttons there use the accent colour */
.on-media .btn:not(.btn-outline-light), .section-dark .btn, .site-footer .btn { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.on-media .btn:not(.btn-outline-light):hover, .section-dark .btn:hover, .site-footer .btn:hover { background: color-mix(in srgb, var(--accent) 85%, var(--dark)); border-color: color-mix(in srgb, var(--accent) 85%, var(--dark)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); font-weight: 500; }
.btn-ghost:hover { background: var(--brand-l); border-color: var(--ink); box-shadow: none; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); font-weight: 500; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.link-arrow { color: var(--brand-text); font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, color .3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .96); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; position: relative; }
.nav::after { content: ""; position: absolute; left: var(--edge); right: var(--edge); bottom: 0; height: 1px; background: currentColor; opacity: .18; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; line-height: 1; font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.015em; flex: none; white-space: nowrap; }
.brand em { font-style: italic; color: var(--brand-text); }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { fill: var(--brand); stroke: none; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; }
.nav-links > a:not(.btn), .nav-menu-btn { text-decoration: none; color: inherit; position: relative; }
.nav-links > a:not(.btn):not(.nav-signin)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links > a:not(.btn):hover::after, .nav-links > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-signin { padding: .5em 1.05em; border: 1px solid currentColor; border-radius: 999px; font-size: .9rem; transition: background .25s; }
.nav-signin:hover { background: color-mix(in srgb, var(--muted) 12%, transparent); }
.nav-item { position: relative; }
.nav-menu-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font-size: .95rem; }
.nav-menu-btn svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease); }
.nav-item.current > .nav-menu-btn { box-shadow: inset 0 -2px 0 var(--brand); }
.nav-menu {
  position: absolute; top: calc(100% + 20px); left: 50%; min-width: 310px; padding: 8px; z-index: 60;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--ink) 30%, transparent);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.nav-menu a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; transition: background .2s; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--tint); }
.nav-menu b { display: block; font-weight: 600; font-size: .92rem; }
.nav-menu span { display: block; font-size: .8rem; color: var(--muted); }
@media (min-width: 1081px) {
  .has-menu:hover .nav-menu, .has-menu:focus-within .nav-menu, .nav-menu-btn[aria-expanded="true"] + .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-menu:hover .nav-menu-btn svg, .nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
}
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 22px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a:not(.btn), .nav-menu-btn { padding: 13px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; justify-content: space-between; }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-signin { border: 0; border-radius: 0; font-size: .95rem; }
  .nav-menu { position: static; transform: none; min-width: 0; border: 0; box-shadow: none; padding: 4px 0 8px; display: none; opacity: 1; visibility: visible; background: transparent; }
  .nav-menu::before { display: none; }
  .nav-menu-btn[aria-expanded="true"] + .nav-menu { display: block; }
  .nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-links .btn { margin-top: 16px; }
}

/* Header over the full-screen hero */
.has-hero .site-header { position: fixed; left: 0; right: 0; }
.has-hero .site-header:not(.scrolled):not(.menu-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.has-hero .site-header:not(.scrolled):not(.menu-open) .brand em { color: var(--accent); }
.has-hero .site-header:not(.scrolled):not(.menu-open) .nav-signin:hover { background: rgba(255, 255, 255, .14); }

/* Full-screen video hero */
.hero-video { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--dark); }
.hero-video .media, .cta-video .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dark) 62%, transparent) 0%, color-mix(in srgb, var(--dark) 18%, transparent) 30%, color-mix(in srgb, var(--dark) 55%, transparent) 62%, color-mix(in srgb, var(--dark) 90%, transparent) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(28px, 5vh, 56px); }
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vh, 32px) clamp(32px, 6vw, 96px); align-items: end; }
.hero-main h1 { grid-column: 1 / -1; }
.hero-video h1 { font-size: clamp(3.2rem, 9.2vw, 10rem); line-height: .94; letter-spacing: -.04em; margin: 0; color: #fff; }
.hero-video h1 em { font-style: italic; color: var(--accent); }
.hero-copy { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 34em; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 7vh, 72px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-stats div { font-size: .84rem; color: rgba(255, 255, 255, .72); line-height: 1.35; }
.hero-stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; letter-spacing: -.02em; margin-bottom: 2px; }
.video-toggle {
  position: absolute; z-index: 3; right: var(--edge); top: calc(var(--header-h) + 18px); width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: color-mix(in srgb, var(--dark) 30%, transparent); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.video-toggle:hover { background: color-mix(in srgb, var(--dark) 55%, transparent); }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle .i-play, .video-toggle.paused .i-pause { display: none; }
.video-toggle.paused .i-play { display: block; }
@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* Connecting line: "Connecting" stays, the next word slides in */
.connecting { background: var(--paper); border-bottom: 1px solid var(--line); }
.connecting-inner { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; padding-top: clamp(20px, 2.6vw, 32px); padding-bottom: clamp(20px, 2.6vw, 32px); }
.connecting-line { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; }
.rotator { position: relative; display: inline-block; vertical-align: bottom; height: 1.2em; overflow: hidden; font-style: italic; color: var(--brand-text); transition: width .6s var(--ease); }
.rotator > span { display: inline-block; position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(70%); transition: transform .7s var(--ease), opacity .5s var(--ease); }
.rotator > span.is-in { position: relative; opacity: 1; transform: none; }
.rotator > span.is-out { opacity: 0; transform: translateY(-70%); }
.connecting-note { margin: 0; color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.05rem); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes fadeIn { to { opacity: 1; } }

/* How it works: area detail panels (opened from the diagram) */
.route-panel .route-prompt { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; color: var(--muted); font-size: .92rem; }
.route-prompt .pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 65%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand) 0%, transparent); } }
.route-back { background: none; border: 0; padding: 0; margin: 0 0 14px; color: var(--brand-text); font-weight: 600; cursor: pointer; }
.route-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.area { outline: none; }
.area:not([hidden]) { animation: areaIn .45s var(--ease); }
@keyframes areaIn { from { opacity: 0; transform: translateY(10px); } }
.area-kicker { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); }
.area h3 { margin: 4px 0 14px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.area-stage { border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 16px; }
.area-stage svg { width: 100%; height: 100%; }
.area p { color: var(--muted); margin: 0; }

/* Shared SVG strokes for the card animations */
.hs { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hs-thin { stroke-width: 1; stroke: var(--stone); }
.hs-brand { stroke: var(--brand-d); stroke-width: 2; }
.ht { font: 600 12px var(--sans); fill: var(--ink-2); }
.ht-muted { font: 500 11px var(--sans); fill: var(--muted); }
.draw-on { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s var(--ease); }
.area.is-active .draw-on { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) var(--d, 0s); }
.pop { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .25s, transform .25s; }
.area.is-active .pop { opacity: 1; transform: none; transition: opacity .4s var(--d, 0s), transform .5s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s); }

/* 1: funding */
.fund-chip rect { fill: #fff; stroke: var(--line); transition: fill .3s, stroke .3s; }
.area.is-active .fund-chip rect { fill: var(--brand-l); stroke: var(--brand-d); transition: fill .4s var(--d, 0s), stroke .4s var(--d, 0s); }
.fund-house { fill: #fff; transition: fill .3s; }
.area.is-active .fund-house { fill: color-mix(in srgb, var(--brand) 70%, var(--paper)); transition: fill .6s 1.3s; }
.fund-pulse { fill: var(--ink); opacity: 0; }
.area.is-active .fund-pulse { animation: pulseRun 1.4s var(--ease) var(--d, 0s) 2; }
@keyframes pulseRun { 0% { opacity: 0; offset-distance: 0%; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; offset-distance: 100%; } }

/* 2: design */
.plan-room { fill: var(--brand-l); opacity: 0; transition: opacity .3s; }
.area.is-active .plan-room { opacity: 1; transition: opacity .6s var(--d, 1.4s); }
.grid-line { stroke: var(--line); stroke-width: 1; }

/* 3: procurement */
.row-bg { fill: #fff; stroke: var(--line); }
.row-bar { fill: var(--line); }
.row-sweep { fill: var(--brand); opacity: .22; transform: translateY(-40px); }
.area.is-active .row-sweep { animation: sweep 1.8s var(--ease) .1s forwards; }
@keyframes sweep { 0% { transform: translateY(-40px); } 100% { transform: translateY(200px); } }
.row-tick circle { fill: #fff; stroke: var(--line); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.area.is-active .row-tick circle { fill: var(--brand); stroke: var(--brand-d); transition: fill .3s var(--d, 0s), stroke .3s var(--d, 0s); }
.row-tick path { fill: none; stroke: var(--on-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Co-developers: two blocks join under one roof */
.join-l, .join-r { transition: transform .3s var(--ease); }
.join-l { transform: translateX(-12px); }
.join-r { transform: translateX(12px); }
.area.is-active .join-l { transform: translateX(20px); transition: transform .9s var(--ease) .2s; }
.area.is-active .join-r { transform: translateX(-20px); transition: transform .9s var(--ease) .2s; }

/* 4: delivery */
.mod-box { fill: #fff; stroke: var(--ink-2); stroke-width: 1.3; }
.mod-win { fill: var(--brand-l); stroke: var(--ink-2); stroke-width: .9; }
.mod { opacity: 0; transform: translateY(-30px); transition: opacity .2s, transform .2s; }
.area.is-active .mod { opacity: 1; transform: none; transition: opacity .3s var(--d, 0s), transform .6s cubic-bezier(.3, 1.3, .5, 1) var(--d, 0s); }
.track-bg { fill: var(--line); }
.track-fill { fill: var(--brand-d); transform: scaleX(0); transform-origin: left; transform-box: fill-box; transition: transform .3s; }
.area.is-active .track-fill { transform: scaleX(1); transition: transform 2.6s linear .2s; }
.ms { fill: #fff; stroke: var(--stone); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
.area.is-active .ms { fill: var(--brand); stroke: var(--ink); transition: fill .3s var(--d, 0s), stroke .3s var(--d, 0s); }

/* Six engagements or one: untangles on a loop */
.route-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); grid-template-areas: "intro visual" "panel visual"; gap: 0 clamp(28px, 5vw, 80px); align-items: start; }
.route-intro { grid-area: intro; }
.route-visual { grid-area: visual; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.route-panel { grid-area: panel; }
.route-layout h2 { margin-bottom: .4em; }
.route-facts { list-style: none; padding: 0; margin: 28px 0 0; }
.route-facts li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.route-facts li:last-child { border-bottom: 1px solid var(--line); }
.route-facts .val { font-family: var(--serif); font-size: 1.9rem; letter-spacing: -.02em; color: var(--muted); transition: color .4s; font-variant-numeric: tabular-nums; }
.route-facts.is-after .val { color: var(--brand-text); }
.route-facts .txt { transition: opacity .25s; }
.route-facts .txt.out { opacity: 0; }
.route-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(12px, 2vw, 24px); box-shadow: var(--shadow); }
.route-svg { width: 100%; height: auto; overflow: visible; }
.route-svg .party { cursor: pointer; outline: none; }
.route-svg .party rect { fill: var(--tint); stroke: var(--line); transition: fill .25s, stroke .25s; }
.route-svg .party:hover rect, .route-svg .party:focus-visible rect { fill: var(--brand-l); stroke: var(--brand-d); }
.route-svg .party:focus-visible rect { stroke-width: 2; }
.route-svg .party.is-open rect { fill: var(--brand); stroke: var(--ink); }
.route-svg .party.is-open text { fill: var(--on-brand); }
.route-svg .party .plus circle { fill: #fff; stroke: var(--brand-d); }
.route-svg .party .plus path { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.route-svg .party .plus { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.route-svg .party.is-open .plus { transform: rotate(45deg); }
.route-svg .rl { transition: opacity .3s; }
.route-svg.has-open .rl:not(.is-hl) { opacity: .22; }
.route-svg .rl.is-hl { stroke: var(--ink); stroke-width: 3; }
.route-svg .party text { font: 500 12px var(--sans); fill: var(--ink-2); }
.route-svg .chp circle { fill: var(--ink); }
.route-svg .chp text { fill: #fff; font: 600 12px var(--sans); }
.route-svg .rl { fill: none; stroke-linecap: round; }
.route-svg .hub circle { fill: var(--brand); stroke: var(--ink); stroke-width: 1.5; }
.route-svg .hub text { font: 700 11px var(--sans); fill: var(--on-brand); letter-spacing: .06em; }
.route-svg .dot { fill: var(--muted); }
.route-scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 18px; font-size: .86rem; }
.route-scrub button { border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--muted); font-weight: 500; transition: color .3s; }
.route-scrub button.on { color: var(--ink); font-weight: 600; }
.scrub-track { position: relative; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.scrub-fill { position: absolute; inset: 0; background: var(--brand-d); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) { .route-layout { grid-template-columns: 1fr; grid-template-areas: "intro" "visual" "panel"; } .route-visual { position: static; margin-bottom: 8px; } }

/* Two-column layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Pull quote */
.pullquote { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.3; color: #fff; border-left: 3px solid var(--accent); padding-left: 1.1em; margin: 0 0 1.2em; }

/* Segmented choices and small print (funding fit check) */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: .7em .4em; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: .9rem; transition: all .25s var(--ease); }
.seg input:checked + span { border-color: var(--brand-d); background: var(--brand); color: var(--on-brand); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.seg { grid-template-columns: repeat(3, 1fr); }
.disclaimer { font-size: .8rem; color: var(--muted); margin: 18px 0 0; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; display: flex; flex-direction: column; text-decoration: none; }
a.card:hover, .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--stone); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-l); display: grid; place-items: center; margin-bottom: 20px; }
.card .icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); }
.card ul { padding-left: 1.1em; color: var(--ink-2); margin: 0 0 1.4em; font-size: .95rem; }
.card .link-arrow { margin-top: auto; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--brand-text); margin-bottom: .7em; }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--line-soft); color: var(--muted); }
.pill.live { background: var(--brand); color: var(--on-brand); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* Programs */
.program { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; border-top: 3px solid var(--brand); }
.program .amount { font-family: var(--serif); font-size: 2rem; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.program .flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin: 14px 0 16px; }
.program .flow span { padding: 3px 9px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.program .flow i { font-style: normal; color: var(--brand-text); }
.program p { color: var(--muted); font-size: .95rem; }

/* What you get with us: a slowly turning wheel around Supply Help */
.wheel-now { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); min-height: 7.5em; }
.wheel-now h3 { margin: 4px 0 8px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.wheel-now p:last-child { color: var(--muted); margin: 0; max-width: 30em; }
.wheel { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin: 0 auto; --turn: 0deg; }
.wheel-ring { position: absolute; inset: 11%; border-radius: 50%; border: 1.5px dashed var(--stone); }
.wheel-orbit { position: absolute; inset: 0; transform: rotate(var(--turn)); }
.wheel-item {
  --a: calc(var(--i) * 60deg - 90deg);
  position: absolute; left: calc(50% + 39% * cos(var(--a))); top: calc(50% + 39% * sin(var(--a)));
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--turn)));
  padding: .62em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 600; font-size: clamp(.82rem, 1.6vw, .98rem); cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--ink) 35%, transparent); transition: background .35s, border-color .35s, box-shadow .35s, scale .35s var(--ease);
}
.wheel-item:hover, .wheel-item:focus-visible { border-color: var(--brand-d); }
.wheel-item[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--ink); scale: 1.08; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand-d) 70%, transparent); }
.wheel-hub { position: absolute; inset: 31%; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-content: center; text-align: center; gap: 4px; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 60%, transparent); }
.wheel-hub b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 2.6vw, 1.7rem); }
.wheel-hub span { font-size: clamp(.72rem, 1.3vw, .85rem); color: var(--on-dark-muted); }
#what { overflow-x: clip; }
@media (max-width: 600px) { .wheel { width: min(300px, 76%); } .wheel-item { font-size: .78rem; padding: .5em .85em; } .wheel-hub { inset: 25%; } .wheel-hub b { font-size: 1rem; white-space: nowrap; } .wheel-hub span { font-size: .62rem; white-space: nowrap; } }

/* Closing CTA over video */
.cta-video { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--dark); padding: 96px 0; }
.cta-video::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--dark) 92%, transparent) 0%, color-mix(in srgb, var(--dark) 70%, transparent) 50%, color-mix(in srgb, var(--dark) 55%, transparent) 100%); }
.cta-video > .container { position: relative; z-index: 2; }
.cta-video h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.cta-video .muted { color: rgba(255, 255, 255, .78); }

/* Connect with us */
.connect-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.form { background: var(--white); color: var(--ink); border-radius: 20px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 14px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: .75em .9em; border: 1px solid var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--tint) 40%, var(--paper)); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.form textarea { min-height: 96px; resize: vertical; }
.form .optional { font-weight: 400; color: var(--muted); }
.form-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form.sent .form-body { display: none; }
.form.sent .form-success { display: block; animation: fadeIn .6s var(--ease); }
.check-circle { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.check-circle svg { width: 26px; height: 26px; stroke: var(--on-brand); fill: none; stroke-width: 2.2; }
.connect-points { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.connect-points li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .16); color: var(--on-dark); }
.connect-points b { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .connect-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* Glass panel: the form over the closing video is frosted, so the video shows through */
.cta-video .form {
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.cta-video .form input, .cta-video .form textarea { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .32); color: #fff; }
.cta-video .form input::placeholder, .cta-video .form textarea::placeholder { color: rgba(255, 255, 255, .62); }
.cta-video .form input:focus, .cta-video .form textarea:focus { background: rgba(255, 255, 255, .14); border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent); }
.cta-video .form .optional, .cta-video .form-note, .cta-video .form-success .muted { color: rgba(255, 255, 255, .72); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cta-video .form { background: color-mix(in srgb, var(--ink) 90%, transparent); }
}

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 72px 0 36px; font-size: .9rem; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-about p { max-width: 24em; margin: 14px 0 20px; }
.site-footer .brand { color: #fff; }
.site-footer .brand em, .sidebar .brand em { color: var(--accent); }
.site-footer h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: #fff; }
.acknowledgement { padding-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; font-size: .82rem; color: var(--on-dark-faint); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 760px) { .acknowledgement { grid-template-columns: 1fr; } }

/* Page header (inner pages) */
.page-head { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.page-head h1 { max-width: 15em; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.subnav a { padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: .9rem; transition: background .2s, border-color .2s; }
.subnav a:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Audience detail (who-we-serve page) */
.audience { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.audience + .audience { margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.audience h2 { margin-bottom: .5em; }
.audience-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.audience-box.hl { background: var(--brand-l); border-color: color-mix(in srgb, var(--brand) 45%, var(--brand-l)); }
.audience-box h3 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brand-text); margin-bottom: 12px; }
.audience-box ul { margin: 0; padding-left: 1.1em; font-size: .95rem; color: var(--ink-2); display: grid; gap: 6px; }
.audience-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 900px) { .audience, .audience-cols { grid-template-columns: 1fr; } }

/* FAQs and glossary */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--sans); font-size: 1.1rem; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 46em; }
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.glossary dt { font-weight: 700; padding-top: 18px; border-top: 1px solid var(--line); }
.glossary dt span { font-weight: 400; color: var(--muted); }
.glossary dd { margin: 4px 0 18px; color: var(--muted); font-size: .95rem; }
.glossary div { break-inside: avoid; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }

/* About */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-band div { padding-top: 16px; border-top: 3px solid var(--brand); }
.stat-band b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 6px; }
.stat-band > div > span { font-size: .9rem; color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 22px; }
.person { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.person .initials { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; }
.person b { display: block; font-size: 1.05rem; }
.person span { font-size: .88rem; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.values div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.values div::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--brand); margin-bottom: 16px; }
.values h3 { font-size: 1.2rem; }
.values p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 1000px) { .stat-band, .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stat-band, .values, .people { grid-template-columns: 1fr; } }

/* Funding flow */
.flow-table { display: grid; gap: 14px; }
.flow-row { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1.3fr; align-items: center; gap: 8px; }
.flow-cell { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; font-size: .94rem; height: 100%; }
.flow-cell:first-child { border-left: 3px solid var(--brand); }
.flow-cell b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.12rem; margin-bottom: 2px; }
.flow-cell span { color: var(--muted); font-size: .85rem; }
.flow-arrow { height: 2px; background: var(--brand-d); position: relative; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); transition-delay: var(--d, .3s); }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--brand-d); border-right: 0; }
.reveal.in .flow-arrow, html:not(.js) .flow-arrow { transform: scaleX(1); }
.flow-heads { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1.3fr; gap: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.flow-heads span:nth-child(2n) { visibility: hidden; }
@media (max-width: 760px) {
  .flow-heads { display: none; }
  .flow-row { grid-template-columns: 1fr; }
  .flow-arrow { width: 2px; height: 18px; justify-self: center; transform: scaleY(0); transform-origin: top; }
  .flow-arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 8px solid var(--brand-d); border-bottom: 0; }
  .reveal.in .flow-arrow { transform: scaleY(1); }
}

/* Funding fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.fit-q { padding: clamp(22px, 3vw, 38px); border-right: 1px solid var(--line); }
.fit-r { padding: clamp(22px, 3vw, 38px); background: var(--tint); }
.q { margin-bottom: 22px; border: 0; padding: 0; }
.q legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
.q .seg { grid-template-columns: repeat(3, 1fr); }
.q select { width: 100%; padding: .7em .9em; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.fit-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--line); animation: fadeIn .4s var(--ease); }
.fit-item:first-of-type { border-top: 0; }
.fit-item h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0; }
.fit-item p { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--muted); }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; align-self: start; }
.badge-strong { background: var(--brand); color: var(--on-brand); }
.badge-possible { background: var(--brand-l); color: var(--brand-text); }
.badge-partner { background: var(--clay-l); color: var(--clay-text); }
.badge-na { background: var(--line-soft); color: var(--muted); }
.next-steps { margin-top: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.next-steps h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 8px; }
.next-steps ol { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.next-steps li { margin: 4px 0; }
@media (max-width: 900px) { .fit { grid-template-columns: 1fr; } .fit-q { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Sign in */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-form .inner { width: 100%; max-width: 400px; }
.auth-side { background: var(--dark); color: var(--on-dark); padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; }
.auth-side ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 16px; position: relative; }
.auth-side li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.auth-side li svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; margin-top: 3px; }
.auth-side li b { color: #fff; font-weight: 500; display: block; }
.auth-side .contour { position: absolute; right: -120px; bottom: -120px; width: 420px; opacity: .22; stroke: var(--accent); fill: none; }
.demo-note { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--brand-l); color: var(--brand-text); font-size: .84rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } }

/* Portal */
.portal-body { background: color-mix(in srgb, var(--tint) 50%, var(--paper)); }
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--dark); color: var(--on-dark-muted); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .brand { color: #fff; margin: 0 8px 30px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: .93rem; transition: background .2s, color .2s; }
.side-nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: var(--accent); color: var(--dark); font-weight: 600; }
.side-foot { margin-top: auto; font-size: .8rem; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.side-foot a { color: var(--accent); }
.main { padding: 0 clamp(18px, 3vw, 40px) 60px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.7rem; margin: 0; }
.topbar .who { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.demo-pill { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--brand-l); color: var(--brand-text); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.35rem; margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2rem; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); }
.stat.wide { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.stat.wide span { color: inherit; opacity: .8; }
.stat.wide b { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin: 6px 0 4px; line-height: 1.3; }
.project { padding: 18px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 4px; }
.project-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.project-top h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 0 0 2px; }
.project-top p { margin: 0; font-size: .86rem; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.chip { font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: var(--line-soft); color: var(--ink-2); white-space: nowrap; }
.chip.brand { background: var(--brand-l); color: var(--brand-text); font-weight: 600; }
.chip.clay { background: var(--clay-l); color: var(--clay-text); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stage { font-size: .74rem; color: var(--muted); }
.stage::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line-soft); margin-bottom: 6px; }
.stage.done::before { background: var(--brand); }
.stage.now::before { background: linear-gradient(90deg, var(--ink-2) var(--p, 50%), var(--line) var(--p, 50%)); }
.stage.now { color: var(--ink); font-weight: 600; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ring-wrap { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: var(--line-soft); }
.ring .fg { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 1; transition: stroke-dashoffset .6s var(--ease); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist label { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: .9rem; cursor: pointer; align-items: start; }
.checklist input { width: 17px; height: 17px; accent-color: var(--brand-d); margin-top: 3px; }
.checklist .st { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.checklist input:checked ~ .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--brand-d); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 10px 10px 0; }
.table td { padding: 12px 10px 12px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.table td small { display: block; color: var(--muted); }
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: .9rem; }
.docs svg { width: 15px; height: 15px; stroke: var(--brand-text); fill: none; stroke-width: 1.8; display: inline-block; vertical-align: -2px; margin-right: 8px; }
@media (max-width: 1100px) { .stat-row { grid-template-columns: 1fr 1fr; } .cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 18px; }
  .sidebar .brand { margin: 0; }
  .side-nav, .side-foot { display: none; }
  .table-scroll { overflow-x: auto; }
}
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr; } .stages { grid-template-columns: repeat(5, minmax(0, 1fr)); } .stage { font-size: 0; } .stage.now { font-size: .7rem; grid-column: span 2; } }

/* Admin panel */
.admin-body { background: color-mix(in srgb, var(--tint) 50%, var(--paper)); min-height: 100vh; }
.admin-bar { display: flex; align-items: center; gap: 14px; padding: 14px var(--edge); background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); padding: 4px 10px; border-radius: 999px; background: var(--brand-l); }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.admin-user b { display: block; font-weight: 600; }
.admin-user small { display: block; color: var(--muted); }
.admin-main { max-width: 1120px; margin: 0 auto; padding: 28px var(--gutter) 80px; }
.admin-status { min-height: 1.5em; margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.admin-status.is-ok { color: var(--brand-text); font-weight: 600; }
.admin-status.is-error { color: var(--clay-text); font-weight: 600; }
.admin-signin { display: grid; place-items: center; min-height: 60vh; }
.admin-card { width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); text-align: center; }
.admin-card .eyebrow { justify-content: center; }
.admin-card h1 { font-size: 2.2rem; }
.gsi { display: flex; justify-content: center; min-height: 44px; margin: 22px 0 6px; }
.admin-alert { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--clay-l); color: var(--clay-text); font-size: .9rem; text-align: left; }
.admin-note { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--brand-l); color: var(--brand-text); font-size: .88rem; text-align: left; }
.admin-tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; width: fit-content; margin-bottom: 22px; }
.admin-tabs button { border: 0; background: none; padding: .55em 1.2em; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--muted); }
.admin-tabs button[aria-selected="true"] { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.admin-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.admin-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-panel-head h2 { font-size: 1.6rem; margin-bottom: .2em; }
.admin-panel-head p { margin: 0; }
.admin-loading, .admin-empty { color: var(--muted); padding: 24px 0; }
.theme-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r-sm); background: var(--brand-l); color: var(--brand-text); font-weight: 600; }
.theme-banner span { margin-right: auto; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.theme-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.theme-card.is-live { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.theme-card.is-preview { border-color: var(--brand-d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
.theme-card h3 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.theme-card p { margin: 0; font-size: .88rem; }
.theme-badge { font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.theme-badge.is-preview { background: var(--brand); color: var(--on-brand); }
.theme-sample { border: 1px solid; border-radius: 10px; overflow: hidden; font-size: .78rem; }
.theme-sample-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 12px; }
.theme-sample-title { font-family: var(--serif); font-size: 1.05rem; }
.theme-sample-btn { padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.theme-sample-dark { display: flex; justify-content: space-between; padding: 10px 12px; font-family: var(--serif); font-style: italic; }
.theme-swatches { display: flex; gap: 4px; }
.theme-swatches span { flex: 1; height: 10px; border-radius: 3px; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.theme-actions { display: flex; gap: 8px; margin-top: auto; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.enquiry-list { list-style: none; padding: 0; margin: 0; }
.enquiry { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.enquiry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.enquiry-head a { color: var(--brand-text); }
.enquiry-head time { margin-left: auto; font-size: .82rem; color: var(--muted); }
.enquiry p { margin: 0 0 4px; white-space: pre-line; overflow-wrap: anywhere; }
.admin-add { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-add input { flex: 1 1 260px; padding: .6em .9em; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.admin-add input:focus { outline: none; border-color: var(--brand-d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.admin-list { list-style: none; padding: 0; margin: 14px 0 0; }
.admin-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.admin-list b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.admin-list small { display: block; }
@media (max-width: 640px) { .admin-user span:not(.avatar) { display: none; } }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
