/* ==========================================================================
   Kubla — Education Consultancy. Concept stylesheet.
   Palette: deep ink-green + parchment + antique brass. Deliberately no blue.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --serif: "Newsreader", "Sitka Display", "Sitka Text", "Iowan Old Style",
           "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI Variable Display", "Segoe UI", -apple-system,
          BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;

  --bg:        #F2F2EB;   /* limestone — green-biased stone, not cream */
  --surface:   #F9F9F4;   /* card / raised */
  --surface-2: #EAEBE1;
  --fg:        #1A2B24;   /* ink green-black */
  --fg-soft:   #56655E;
  --line:      rgba(26, 43, 36, 0.14);
  --line-soft: rgba(26, 43, 36, 0.08);
  --rule:      rgba(26, 43, 36, 0.032);  /* ruled-ledger texture */

  --band:      #10231C;   /* dark bands */
  --band-2:    #16352B;
  --band-fg:   #EDE7DA;
  --band-soft: #A8B8AF;
  --band-line: rgba(237, 231, 218, 0.16);

  --brass:     #A5854A;   /* rules, numerals, large marks */
  --brass-ink: #7C6130;   /* small text on limestone (AA) */
  --brass-lt:  #D2B47E;   /* on dark bands */

  /* Solid brass fills carry text, so they get their own pair. Light theme uses
     a deep brass under white; dark theme flips to bright brass under ink. */
  --brass-solid:   #8A6D39;
  --brass-solid-h: #6F572C;
  --on-brass:      #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(16, 35, 28, 0.05);
  --shadow-md: 0 18px 40px -22px rgba(16, 35, 28, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(16, 35, 28, 0.45);

  --pad: clamp(1.25rem, 5vw, 3rem);
  --sec: clamp(4.5rem, 11vh, 8.5rem);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* Dark theme. The layout's rhythm is an alternation between pale sections and
   dark bands, so the dark palette keeps that gap open — mid-green sections
   against near-black bands — rather than flattening everything to one tone. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #142B23; --surface: #1A342B; --surface-2: #214036;
    --fg: #EDE7DA; --fg-soft: #A8B8AF;
    --line: rgba(237,231,218,0.15); --line-soft: rgba(237,231,218,0.08);
    --rule: rgba(237,231,218,0.035);
    --band: #08150F; --band-2: #0D2019;
    --brass: #C9A76A; --brass-ink: #D8BC86;
    --brass-solid: #C9A76A; --brass-solid-h: #DBBC85; --on-brass: #10231C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #142B23; --surface: #1A342B; --surface-2: #214036;
  --fg: #EDE7DA; --fg-soft: #A8B8AF;
  --line: rgba(237,231,218,0.15); --line-soft: rgba(237,231,218,0.08);
  --rule: rgba(237,231,218,0.035);
  --band: #08150F; --band-2: #0D2019;
  --brass: #C9A76A; --brass-ink: #D8BC86;
  --brass-solid: #C9A76A; --brass-solid-h: #DBBC85; --on-brass: #10231C;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F2F2EB; --surface: #F9F9F4; --surface-2: #EAEBE1;
  --fg: #1A2B24; --fg-soft: #56655E;
  --line: rgba(26,43,36,0.14); --line-soft: rgba(26,43,36,0.08);
  --rule: rgba(26,43,36,0.032);
  --band: #10231C; --band-2: #16352B;
  --brass: #A5854A; --brass-ink: #7C6130;
  --brass-solid: #8A6D39; --brass-solid-h: #6F572C; --on-brass: #FFFFFF;
  color-scheme: light;
}

/* ---- Base -------------------------------------------------------------- */
*, *::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;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4, .pull, .fig, .num {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variant-ligatures: common-ligatures;
}
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.021em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brass-solid); color: var(--on-brass); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--band); color: var(--band-fg);
  padding: 0.75rem 1.25rem; font-size: 0.85rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---- Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); position: relative; }

/* Ruled-ledger texture — the school register / minute book.
   Carries the "no images" pages without decoration. Dark bands opt out. */
.section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 48px);
}
.section.band::before { content: none; }
.section > .wrap { position: relative; z-index: 1; }
.measure { max-width: 60ch; }
.measure-wide { max-width: 72ch; }

.eyebrow {
  display: flex; align-items: center; gap: 0.85rem;
  font-family: var(--sans);
  font-size: 0.688rem; font-weight: 600;
  letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--brass-ink);
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px; background: var(--brass); flex: none;
}
.on-dark .eyebrow { color: var(--brass-lt); }
.on-dark .eyebrow::before { background: var(--brass-lt); }

.h-display { font-size: clamp(2.5rem, 6.4vw, 4.55rem); letter-spacing: -0.031em; }
.h-1       { font-size: clamp(2rem, 4.3vw, 3.1rem); }
.h-2       { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.014em; }
.h-3       { font-size: 1.16rem; letter-spacing: -0.006em; line-height: 1.35; }

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
  line-height: 1.66;
  color: var(--fg-soft);
}
.on-dark .lede { color: var(--band-soft); }

/* ---- Ornament ---------------------------------------------------------- */
.ornament { display: flex; align-items: center; gap: 0.9rem; margin: 2.6rem 0; }
.ornament::before, .ornament::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.ornament i {
  width: 6px; height: 6px; background: var(--brass);
  transform: rotate(45deg); flex: none; display: block;
}
.on-dark .ornament::before, .on-dark .ornament::after { background: var(--band-line); }
.on-dark .ornament i { background: var(--brass-lt); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none;
  padding: 0.95rem 1.6rem; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: all 0.3s var(--ease);
  background: none; white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(3px); }

.btn-brass { background: var(--brass-solid); color: var(--on-brass); border-color: var(--brass-solid); }
.btn-brass:hover { background: var(--brass-solid-h); border-color: var(--brass-solid-h); box-shadow: var(--shadow-md); }

.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }

/* On a dark ground, a solid brass fill reads better bright with ink text than
   deep with white — and the contrast is far stronger (≈9:1 vs ≈4:1). */
.on-dark .btn-brass, .hdr-top .btn-brass {
  background: var(--brass-lt); color: var(--band); border-color: var(--brass-lt);
}
.on-dark .btn-brass:hover, .hdr-top .btn-brass:hover {
  background: #E4CD9F; border-color: #E4CD9F;
}

.on-dark .btn-ghost { border-color: var(--band-line); color: var(--band-fg); }
.on-dark .btn-ghost:hover { background: var(--band-fg); color: var(--band); border-color: var(--band-fg); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--brass-ink); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.link-arrow:hover { border-bottom-color: var(--brass); }
.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--brass-lt); }
.on-dark .link-arrow:hover { border-bottom-color: var(--brass-lt); }

/* ---- Header ------------------------------------------------------------ */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr-in {
  display: flex; align-items: center; gap: 2rem;
  height: 84px; transition: height 0.4s var(--ease);
}
/* The pale bar may only appear once the header has left the hero. While
   .hdr-top is still set the text is light for the dark hero behind it, and
   pairing that with a limestone background renders it invisible. */
.hdr.is-stuck:not(.hdr-top) {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.hdr.is-stuck .hdr-in { height: 68px; }

.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; margin-right: auto; }
.brand .mark { width: 34px; height: 34px; flex: none; color: var(--brass); }
.hdr-top .brand .mark { color: var(--brass-lt); }
.brand .name {
  font-family: var(--serif); font-size: 1.16rem; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.05; color: var(--fg);
}
.brand .sub {
  display: block; font-family: var(--sans);
  font-size: 0.594rem; font-weight: 600; letter-spacing: 0.145em;
  text-transform: uppercase; color: var(--fg-soft); margin-top: 3px;
}
.hdr-top .brand .name { color: var(--band-fg); }
.hdr-top .brand .sub { color: var(--band-soft); }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: 0.844rem; font-weight: 500; letter-spacing: 0.012em;
  text-decoration: none; color: var(--fg-soft);
  position: relative; padding: 0.4rem 0;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr-top .nav a { color: var(--band-soft); }
.hdr-top .nav a:hover { color: var(--band-fg); }
.hdr-top .nav a::after { background: var(--brass-lt); }

.hdr .btn-brass { padding: 0.72rem 1.25rem; font-size: 0.813rem; }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: none; cursor: pointer; border-radius: 2px; padding: 0;
  align-items: center; justify-content: center; color: var(--fg);
}
.hdr-top .burger { border-color: var(--band-line); color: var(--band-fg); }
.burger span { display: block; width: 17px; height: 1.5px; background: currentColor; position: relative; transition: 0.3s var(--ease); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px;
  background: currentColor; transition: 0.3s var(--ease);
}
.burger span::before { top: -5.5px; } .burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mnav {
  display: none; background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--pad) 1.5rem;
}
.mnav.open { display: block; }
.mnav a {
  display: block; padding: 0.9rem 0; text-decoration: none;
  font-family: var(--serif); font-size: 1.24rem; color: var(--fg);
  border-bottom: 1px solid var(--line-soft);
}
.mnav .btn { width: 100%; justify-content: center; margin-top: 1.25rem; }

/* Five nav items plus the button need ~1050px to sit comfortably; below that
   the row starts compressing its gaps, so hand over to the burger earlier. */
@media (max-width: 1050px) {
  .nav, .hdr-in > .btn { display: none; }
  .burger { display: flex; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, #0E2019 0%, #16352B 52%, #0F241D 100%);
  background-color: var(--band);
  color: var(--band-fg);
  padding-block: clamp(9rem, 20vh, 13rem) clamp(5rem, 11vh, 8rem);
  isolation: isolate;
}
/* Photograph layer. Sits furthest back; the scrim above it does the work of
   keeping the headline legible. Desktop gets the 1536 file, phones the 1100. */
.hero-photo {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-image: url("hero-school-sm.jpg");
  background-size: cover;
  background-position: 62% 42%;
}
@media (min-width: 760.02px) {
  .hero-photo { background-image: url("hero-school.jpg"); }
}

/* Scrim. The copy runs down the left, which is the brightest part of the
   photograph (mist and backlit trees), so the gradient is weighted hard to the
   left and a flat wash underpins the whole thing. Tuned against measured
   contrast, not by eye. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg,
      rgba(9, 20, 16, 0.95) 0%,
      rgba(9, 20, 16, 0.91) 36%,
      rgba(9, 20, 16, 0.76) 60%,
      rgba(9, 20, 16, 0.28) 74%,
      rgba(9, 20, 16, 0.04) 100%),
    linear-gradient(to bottom, rgba(9,20,16,0.30), rgba(9,20,16,0.10) 45%, rgba(9,20,16,0.44)),
    radial-gradient(60% 55% at 78% 12%, rgba(210, 180, 126, 0.10), transparent 62%);
}
/* On a phone the copy spans the full width, so overlaying it on the photograph
   needs ~85% scrim to stay legible — which hides the photograph entirely. The
   picture is worth more below the copy at full strength than behind it as a
   texture, so it drops out of the background and becomes its own band. */
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; padding-bottom: 0; }
  .hero > .wrap { order: 1; }
  .hero-photo {
    order: 2; position: static; z-index: 0;
    width: 100%; aspect-ratio: 16 / 10; margin-top: clamp(2.5rem, 7vw, 3.5rem);
    background-position: 58% 50%;
  }
  .hero::before {
    background:
      radial-gradient(70% 55% at 80% 8%, rgba(210,180,126,0.14), transparent 62%),
      radial-gradient(80% 60% at 5% 60%, rgba(31,68,56,0.55), transparent 62%);
  }
  .hero-mark { display: none; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--noise); background-size: 180px; opacity: 0.035;
}
.hero-mark {
  position: absolute; right: -4%; bottom: -14%; width: min(46vw, 560px);
  color: var(--brass-lt); opacity: 0.07; z-index: -1; pointer-events: none;
}
@media (max-width: 800px) { .hero-mark { right: -22%; bottom: -8%; width: 88vw; opacity: 0.05; } }

.hero .h-display { color: #FFFDF8; max-width: 17ch; }
.hero .lede { max-width: 54ch; margin-top: 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.6rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.4rem;
  margin-top: 3.6rem; padding-top: 1.9rem;
  border-top: 1px solid var(--band-line);
  font-size: 0.813rem; letter-spacing: 0.055em; text-transform: uppercase;
  color: var(--band-soft); font-weight: 500;
}
.hero-facts span { display: flex; align-items: center; gap: 0.6rem; }
.hero-facts span::before {
  content: ""; width: 4px; height: 4px; background: var(--brass-lt);
  transform: rotate(45deg); flex: none;
}

/* ---- Alert strip ------------------------------------------------------- */
.strip {
  background: var(--brass-solid); color: var(--on-brass);
  padding: 0.9rem 0; font-size: 0.844rem; letter-spacing: 0.015em;
}
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.strip strong { font-weight: 700; }
.strip a { color: var(--on-brass); text-underline-offset: 3px; }

/* ---- Challenge cards --------------------------------------------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3.4rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); padding: 2.2rem 1.7rem 2.4rem;
  transition: background 0.4s var(--ease);
}
.card:hover { background: var(--surface-2); }
.card .ico { color: var(--brass); margin-bottom: 1.4rem; display: block; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.938rem; line-height: 1.65; color: var(--fg-soft); }

/* ---- Process ----------------------------------------------------------- */
/* Numbered because the content genuinely is a sequence — a school moves through
   visit, analysis, options in order. The numeral spans both rows so the title
   and its paragraph stack in one column; the steps sit inside a narrow grid
   column, and a three-across split crushes the prose to a ribbon. */
.steps { margin-top: 3.4rem; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 4.4rem 1fr; column-gap: 1.5rem;
  padding: 2.1rem 0; border-bottom: 1px solid var(--line);
}
.step .num {
  grid-row: 1 / span 2; font-size: 2.1rem; line-height: 1.05;
  color: var(--brass); letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--fg-soft); font-size: 0.969rem; margin: 0; max-width: 58ch; }
@media (max-width: 560px) {
  .step { grid-template-columns: 3.2rem 1fr; column-gap: 1rem; padding: 1.8rem 0; }
  .step .num { font-size: 1.7rem; }
}

/* ---- Dark band --------------------------------------------------------- */
.band {
  background: var(--band); color: var(--band-fg);
  position: relative; isolation: isolate; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--noise); background-size: 180px; opacity: 0.03;
}
.band .h-1, .band .h-2, .band .h-3 { color: #FFFDF8; }
.band p { color: var(--band-soft); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3.4rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 2rem; } }
.stat { border-top: 1px solid var(--band-line); padding-top: 1.5rem; }
.stat .fig {
  font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.5rem);
  line-height: 1; color: var(--brass-lt); letter-spacing: -0.03em;
  display: block; margin-bottom: 0.65rem;
}
.stat .fig small { font-size: 0.42em; letter-spacing: 0.04em; margin-left: 0.15em; }
.stat h3 { font-family: var(--sans); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.155em; text-transform: uppercase; color: #FFFDF8; margin-bottom: 0.5rem; }
.stat p { font-size: 0.906rem; line-height: 1.62; }

/* ---- Two column -------------------------------------------------------- */
.two {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start;
}
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 2.5rem; } }
.sticky { position: sticky; top: 110px; }
@media (max-width: 860px) { .sticky { position: static; } }

/* ---- Terms list -------------------------------------------------------- */
.terms { border-top: 1px solid var(--line); }
.terms li { list-style: none; }
.terms { margin: 0; padding: 0; }
.term {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.4rem;
  padding: 1.85rem 0; border-bottom: 1px solid var(--line);
}
.term .tick { color: var(--brass); margin-top: 0.25rem; }
.term h3 { margin-bottom: 0.4rem; }
.term p { font-size: 0.938rem; color: var(--fg-soft); margin: 0; }

/* ---- Pull quote -------------------------------------------------------- */
.pull {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.1vw, 2.35rem);
  line-height: 1.32; letter-spacing: -0.02em; color: #FFFDF8;
  max-width: 22ch; margin: 0;
}
.pull-attr {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--band-line);
  font-size: 0.781rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-lt); font-weight: 600;
}

/* ---- Partner ----------------------------------------------------------- */
.partner {
  border: 1px solid var(--line); background: var(--surface);
  padding: clamp(1.9rem, 4vw, 2.8rem);
  display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; align-items: center;
}
@media (max-width: 620px) { .partner { grid-template-columns: 1fr; gap: 1.2rem; } }
.partner .pmark {
  width: 58px; height: 58px; border: 1px solid var(--brass); border-radius: 50%;
  display: grid; place-items: center; color: var(--brass); flex: none;
}
.partner p { font-size: 0.969rem; color: var(--fg-soft); margin: 0.35rem 0 0; }
.partner strong { color: var(--fg); font-weight: 600; }

/* ---- Contact ----------------------------------------------------------- */
.contact-lines { margin-top: 2.6rem; }
.cline {
  display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.35rem 0; border-top: 1px solid var(--band-line);
}
.cline .ico { color: var(--brass-lt); margin-top: 0.3rem; flex: none; }
.cline .k {
  font-size: 0.688rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--band-soft); font-weight: 600; display: block; margin-bottom: 0.3rem;
}
.cline .v { font-family: var(--serif); font-size: 1.28rem; color: #FFFDF8; text-decoration: none; }
a.v:hover { color: var(--brass-lt); }
.cline .note { font-size: 0.844rem; color: var(--band-soft); display: block; margin-top: 0.25rem; }

.form {
  background: rgba(237, 231, 218, 0.035);
  border: 1px solid var(--band-line);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: 0.688rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--band-soft); margin-bottom: 0.55rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: rgba(8, 20, 17, 0.45);
  border: 1px solid var(--band-line); border-radius: 2px;
  color: var(--band-fg); font-family: var(--sans); font-size: 0.938rem;
  padding: 0.8rem 0.95rem; transition: border-color 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brass-lt); outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(168, 184, 175, 0.55); }
.field select option { background: #10231C; color: var(--band-fg); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form .fine { font-size: 0.781rem; color: var(--band-soft); margin-top: 1rem; line-height: 1.6; }
.form-ok {
  display: none; text-align: center; padding: 2rem 0;
  font-family: var(--serif); font-size: 1.16rem; color: #FFFDF8;
}
.form.sent .form-body { display: none; }
.form.sent .form-ok { display: block; }

/* ---- Footer ------------------------------------------------------------ */
.ftr { background: var(--band); color: var(--band-soft); padding-block: 4rem 2.5rem;
  border-top: 1px solid var(--band-line); font-size: 0.875rem; }
.ftr-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 760px) { .ftr-top { grid-template-columns: 1fr; gap: 2rem; } }
.ftr h4 { font-family: var(--sans); font-size: 0.688rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #FFFDF8; margin-bottom: 1.1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 0.6rem; }
.ftr a { text-decoration: none; transition: color 0.25s var(--ease); }
.ftr a:hover { color: var(--brass-lt); }
.ftr-bot { border-top: 1px solid var(--band-line); padding-top: 1.9rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between;
  font-size: 0.781rem; }
.ftr .brand .name { color: #FFFDF8; }
.ftr .brand .sub { color: var(--band-soft); }
.ftr .brand .mark { color: var(--brass-lt); }
.ftr p { line-height: 1.7; }

/* Visually hidden, but still in the accessibility tree and the document
   outline. Used where a section's heading is dropped for visual reasons but
   the page would otherwise have a section with no heading at all. */
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Opening paragraph where a section leads with body copy instead of a
   headline — carries a little more weight so the section still has an anchor. */
.lede-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.45; color: var(--fg); margin-top: 0;
}
.on-dark .lede-lead { color: #FFFDF8; }

/* ---- Email list -------------------------------------------------------- */
/* One column. The addresses now carry the full domain and no longer have
   labels, so a two-column grid wrapped most of them onto a second line —
   which looks like a mistake on an email address. */
.emails { list-style: none; margin: 0.15rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.emails li { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.emails a {
  font-family: var(--serif); font-size: 1.03rem; color: #FFFDF8;
  text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease);
  align-self: start;
}
.emails a:hover { border-bottom-color: var(--brass-lt); }
.emails span {
  font-family: var(--sans); font-size: 0.75rem; color: var(--band-soft);
}

/* A value still awaiting real content — visibly provisional, so it cannot be
   mistaken for a working number. */
.v-pending { opacity: 0.75; font-style: italic; }

/* ---- Single-stat row --------------------------------------------------- */
/* Two of the three figures were dropped; one stat stranded in a three-column
   grid reads as a layout fault, so it takes the full measure instead. */
.stats-one { grid-template-columns: 1fr; max-width: 46ch; }
.stats-one .fig { font-size: clamp(3rem, 6vw, 4.2rem); }

/* ---- Wordmark ---------------------------------------------------------- */
/* "Kubla" is short, so it can carry more presence than the old long name.
   Letter-spaced rather than enlarged, to stay quiet next to the mark. */
.brand .wordmark {
  font-size: 1.44rem; letter-spacing: 0.06em; font-weight: 500;
  text-transform: uppercase; line-height: 1;
}
.brand .wordmark .sub {
  letter-spacing: 0.16em; font-size: 0.563rem; margin-top: 5px;
}
@media (max-width: 420px) { .brand .wordmark { font-size: 1.25rem; } }

/* ---- What we advise on ------------------------------------------------- */
.adv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-top: 3.4rem;
}
@media (max-width: 900px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .adv-grid { grid-template-columns: 1fr; } }
.adv {
  background: var(--bg); padding: 2.1rem 1.8rem 2.3rem;
  transition: background 0.4s var(--ease);
}
.adv:hover { background: var(--surface-2); }
.adv .k {
  display: block; font-family: var(--sans); font-size: 0.688rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--brass-ink); margin-bottom: 1.1rem;
}
.adv h3 { margin-bottom: 0.55rem; }
.adv p { font-size: 0.938rem; line-height: 1.65; color: var(--fg-soft); margin: 0; }

/* ---- Full-width image band --------------------------------------------- */
/* A breather between two dense sections. Purely atmospheric, so it carries no
   text and is hidden from assistive tech. */
.imgband { position: relative; overflow: hidden; }
.imgband-photo {
  height: clamp(220px, 34vh, 420px);
  background-size: cover; background-position: 50% 58%;
}

/* Image sources are plain classes, not custom properties. A relative URL held
   in a custom property resolves against the stylesheet that substitutes it,
   not the HTML that declared it — so an inline `url('assets/x.jpg')` here
   became `assets/assets/x.jpg`. Declaring them in this file keeps the paths
   relative to this file, which is what they look like. */
.img-grounds { background-image: url("img-grounds-sm.jpg"); }
.img-hall    { background-image: url("img-hall-sm.jpg"); }
.img-library { background-image: url("img-library-sm.jpg"); }
@media (min-width: 760.02px) {
  .img-grounds { background-image: url("img-grounds.jpg"); }
  .img-hall    { background-image: url("img-hall.jpg"); }
  .img-library { background-image: url("img-library.jpg"); }
}

/* ---- People ------------------------------------------------------------ */
.people { display: grid; gap: 1.5rem; margin-top: 3.4rem; }
.person {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--band-line); align-items: stretch;
}
/* A card with no photograph collapses to one column rather than leaving a hole
   where an image would be. */
.person:not(:has(.person-photo)) { grid-template-columns: 1fr; }
/* Alternate which side the picture sits on, so the pair reads as a spread
   rather than two identical rows. These panels are where the real portraits
   of Graham and Jane will go. */
.person-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.person-flip .person-photo { order: 2; }
.person-flip .person-body { order: 1; }
@media (max-width: 780px) {
  .person, .person-flip { grid-template-columns: 1fr; gap: 0; }
  /* Keep the picture above the text on both cards when stacked. */
  .person-flip .person-photo { order: 1; }
  .person-flip .person-body { order: 2; }
}

.person-photo {
  background-size: cover; background-position: 55% 50%;
  min-height: 260px;
}
.person-body { padding: clamp(1.6rem, 3.5vw, 2.4rem); }
.person-body h3 { color: #FFFDF8; margin-bottom: 0.3rem; }
.person-body .role {
  font-family: var(--sans); font-size: 0.688rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-lt); margin-bottom: 1.1rem;
}
.person-body p { font-size: 0.969rem; line-height: 1.7; color: var(--band-soft); }

/* ---- Kublai Creative --------------------------------------------------- */
/* An associated company, sharing the mark but sitting clearly apart from the
   advisory work above it. Kept on a pale ground so it does not merge into the
   dark contact band that follows. */
.kc {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.kc-head {
  display: flex; align-items: center; gap: 0.85rem;
  padding-bottom: 2.2rem; margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.kc-head .mark { width: 38px; height: 38px; flex: none; color: var(--brass); }
.kc-name {
  display: block; font-family: var(--serif); font-size: 1.44rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; color: var(--fg);
}
.kc-sub {
  display: block; font-family: var(--sans); font-size: 0.594rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); margin-top: 5px;
}

.kc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-top: 3.2rem; }
@media (max-width: 900px) { .kc-grid { grid-template-columns: 1fr; } }
.kc-card { background: var(--bg); padding: 2rem 1.7rem 2.2rem; }
.kc-card h3 { margin-bottom: 1.2rem; }
.kc-note {
  font-family: var(--sans); font-size: 0.688rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-ink); margin: -0.7rem 0 1.1rem;
}
.kc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.kc-list li { font-size: 0.938rem; line-height: 1.62; color: var(--fg-soft); }
.kc-list .when {
  display: block; font-family: var(--sans); font-size: 0.688rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg); margin-bottom: 0.35rem;
}
/* Plain variants are simple enumerations, so they take a discreet marker
   rather than the dated headings used by the tour list. */
.kc-list-plain { gap: 0.85rem; }
.kc-list-plain li { padding-left: 1.1rem; position: relative; }
.kc-list-plain li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg);
}
.kc-list em { font-style: italic; color: var(--fg); }

/* ---- Reveal ------------------------------------------------------------ */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- Concept banner (demo only) ---------------------------------------- */
.demo-note {
  background: var(--surface-2); border-top: 1px solid var(--line);
  padding: 1.1rem 0; font-size: 0.781rem; color: var(--fg-soft); text-align: center;
}
.demo-note strong { color: var(--fg); font-weight: 600; }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, but almost all of them fill this one in. */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Form error message. Announced to screen readers via role="alert" in the JS. */
.form-err:empty { display: none; }
.form-err {
  margin-top: 0.9rem; font-size: 0.875rem; line-height: 1.55;
  color: #FFD9CF; background: rgba(168, 66, 58, 0.22);
  border-left: 2px solid #E8958A; padding: 0.7rem 0.9rem;
}
