/* ============================================================
   LOREON TECHNOLOGIES LIMITED
   Design system — "Meridian Plum"

   Direction: warm, premium, high-contrast bands. Deep aubergine-plum
   alternating with oyster and sand, a single ember accent, one
   geometric sans at heavy weights, and a generous radius on
   everything. Floating rounded header. Double-chevron CTAs.

   Class contract is unchanged from the previous system, so the
   markup did not need rewriting.
   ============================================================ */

/* ---------- 1. Tokens ----------
   Loreon's own palette: "Meridian Plum". Deep aubergine-ink carries the dark
   bands; warm oyster and sand carry the light ones; a single ember accent does
   all the emphasis work. Chosen to sit apart from the two clichés in this
   sector — fintech green/lime and AI violet — while staying warm enough to
   read premium rather than corporate.

   Aubergine is not "AI purple": #2a1d3a is a dark, brown-leaning neutral,
   nowhere near the bright #7c3aed violet that direction is known for.
   ---------------------------------------------------------------- */
:root {
  /* Light bands */
  --white:      #ffffff;
  --oyster:     #f8f4ef;   /* light band A */
  --sand:       #efe7dc;   /* light band B — worst-case light surface */

  /* Plum darks */
  --plum:       #1d1428;   /* deepest — footer */
  --plum-2:     #2a1d3a;   /* dark band surface */
  --plum-3:     #3a2a4e;   /* raised on dark */

  /* Ember — the one accent. Two values because a single hue cannot clear
     4.5:1 on both sand and plum: --ember on light (4.59:1 on sand),
     --ember-lit on dark (7.49:1 on plum-2). Never swap them. */
  --ember:      #af4716;
  --ember-lit:  #f0a167;

  /* Text on light. Measured on --sand:
     ink 13.85:1 · ink-2 6.87:1 · ink-3 5.09:1. Do not lighten ink-3. */
  --ink:        #201a26;
  --ink-2:      #524a5c;
  --ink-3:      #665d70;

  /* Text on plum-2: on-dark 14.36:1 · on-dark-2 8.92:1 */
  --on-dark:    #f8f4ef;
  --on-dark-2:  #c9bfd6;

  /* Categorical ramp for charts and dashboards. Every entry clears 4.5:1 on
     both light bands, so these double as label colours. */
  --viz-1: #5b3e7a;  /* plum   */
  --viz-2: #af4716;  /* ember  */
  --viz-3: #1f6e6a;  /* teal   */
  --viz-4: #83630b;  /* gold   */
  --viz-5: #a63d5a;  /* rose   */
  --viz-6: #3e5068;  /* slate  */

  /* Active surface/text pair — bands re-point these, components read them */
  --surface:    var(--white);
  --surface-2:  var(--oyster);
  --surface-3:  var(--sand);
  --text:       var(--ink);
  --text-2:     var(--ink-2);
  --text-3:     var(--ink-3);
  --accent:     var(--ember);
  --hair:       rgba(32, 26, 38, 0.13);
  --hair-2:     rgba(32, 26, 38, 0.055);

  /* Radius — the shape signature. Nothing is square except hairlines. */
  --r-pill:     999px;
  --r-xl:       28px;
  --r-lg:       22px;
  --r-md:       16px;
  --r-sm:       12px;

  /* Type */
  --ff-display: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, sans-serif;
  --ff-body:    var(--ff-display);
  --ff-mono:    var(--ff-display);

  /* Metrics */
  --gut:   clamp(1.1rem, 4vw, 3.5rem);
  --maxw:  1280px;
  --sect:  clamp(4.5rem, 9vw, 8.5rem);

  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0.36, 1);

  --shadow-soft: 0 1px 2px rgba(32, 26, 38, 0.05), 0 8px 28px rgba(32, 26, 38, 0.07);
  --shadow-lift: 0 2px 6px rgba(32, 26, 38, 0.07), 0 18px 48px rgba(32, 26, 38, 0.11);
}

/* ---------- 2. Bands ----------
   Full-bleed sections re-point the surface/text tokens. Every component
   inside adapts with no per-component overrides. */
.band--white  { --surface: var(--white);   --surface-2: var(--oyster);  --surface-3: var(--sand); background: var(--white); }
.band--sand  { --surface: var(--sand);    --surface-2: var(--white);   --surface-3: var(--sand); background: var(--sand); }

.band--plum,
.invert {
  --surface:   var(--plum-2);
  --surface-2: var(--plum);
  --surface-3: var(--plum-3);
  --text:      var(--on-dark);
  --text-2:    var(--on-dark-2);
  --text-3:    #a99fb8;
  --accent:    var(--ember-lit);
  --hair:      rgba(248, 244, 239, 0.19);
  --hair-2:    rgba(248, 244, 239, 0.095);
  background: var(--plum-2);
  color: var(--text);
}
.band--deep { --surface: var(--plum); background: var(--plum); }

/* ---------- 3. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

::selection { background: var(--ember-lit); color: var(--plum); }

:focus-visible {
  outline: 3px solid var(--ember-lit);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.band--white :focus-visible, .band--sand :focus-visible { outline-color: var(--plum-2); }

/* ---------- 4. Ambient ---------- */
/* Soft dot field, only inside plum bands */
.plot-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--hair-2) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, #000 0%, transparent 76%);
          mask-image: radial-gradient(110% 80% at 50% 0%, #000 0%, transparent 76%);
}

.bloom {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
}

/* ---------- 5. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { position: relative; padding-block: var(--sect); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--hair { border-top: 1px solid var(--hair); }

.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* ---------- 6. Type ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.display { font-size: clamp(2.7rem, 7vw, 5.6rem); }
.h1      { font-size: clamp(2.3rem, 5.6vw, 4.3rem); }
.h2      { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.07; }
.h3      { font-size: clamp(1.3rem, 2.1vw, 1.8rem); line-height: 1.2; letter-spacing: -0.022em; }

/* Emphasis words take the accent — ember-lit on plum, ember on light */
.display em, .h1 em, .h2 em { font-style: normal; color: var(--accent); }
.band--white .display em, .band--white .h1 em, .band--white .h2 em,
.band--sand .display em, .band--sand .h1 em, .band--sand .h2 em { color: var(--ember); }

.lede {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
  max-width: 46ch;
  text-wrap: pretty;
}

.body-lg { font-size: 1.06rem; color: var(--text-2); }
.muted   { color: var(--text-3); }
.text-2  { color: var(--text-2); }

/* Pill eyebrow badge */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.15em;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-2);
}
.band--plum .tag, .invert .tag { background: rgba(248, 244, 239, 0.11); color: var(--on-dark); }
.tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.tag--bare::before { display: none; }
.tag--dim { color: var(--text-3); }

.idx {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.band--white .idx, .band--sand .idx { color: var(--ember); }

/* Hand-drawn ellipse annotation */
.circled { position: relative; display: inline-block; padding: 0 0.22em; }
/* preserveAspectRatio="none" in the markup is required — with the default the
   wide viewBox letterboxes and the ellipse shrinks inside the digits. */
.circled svg {
  position: absolute;
  left: -26%; top: -32%;
  width: 152%; height: 164%;
  overflow: visible;
  pointer-events: none;
}
.circled svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
}
.circled.is-in svg path { animation: scribble 1.3s 0.25s var(--ease-io) forwards; }
@keyframes scribble { to { stroke-dashoffset: 0; } }

/* ---------- 7. Buttons ---------- */
.btn {
  --bg: var(--plum-2);
  --fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.05em 1.9em;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid var(--bg);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn .arw {
  font-size: 0.85em;
  color: var(--ember-lit);
  transition: transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:hover .arw { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

/* Primary inside forest bands is lime — the brightest thing on the page */
.band--plum .btn--solid, .invert .btn--solid {
  --bg: var(--ember-lit);
  --fg: var(--plum);
}
.band--plum .btn--solid .arw, .invert .btn--solid .arw { color: var(--plum); }
.band--plum .btn--solid:hover, .invert .btn--solid:hover { background: var(--ember-lit); border-color: var(--ember-lit); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--text);
  border-color: var(--hair);
}
.btn--ghost .arw { color: currentColor; }
.btn--ghost:hover { border-color: var(--text); background: transparent; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ember);
  padding-bottom: 0.2em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.35s var(--ease), gap 0.35s var(--ease);
}
.band--plum .tlink, .invert .tlink { color: var(--ember-lit); }
.tlink:hover { border-bottom-color: currentColor; gap: 0.85em; }

/* ---------- 8. Floating masthead ---------- */
.masthead {
  position: fixed;
  top: clamp(0.55rem, 1.2vw, 1rem);
  left: clamp(0.55rem, 1.2vw, 1rem);
  right: clamp(0.55rem, 1.2vw, 1rem);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  padding: 0.7rem 0.85rem 0.7rem clamp(1rem, 2vw, 1.75rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
          backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.masthead.is-stuck { box-shadow: var(--shadow-lift); background: rgba(255, 255, 255, 0.97); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; color: var(--ink); }
.brand-mark { width: 1.5rem; height: 1.5rem; color: var(--plum); flex: none; }
.brand-mark .tall { fill: var(--ember); transition: fill 0.35s var(--ease); }
.brand:hover .brand-mark .tall { fill: var(--ember-lit); }
.brand-word {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}
.brand-word b { color: var(--ember); font-weight: inherit; }

.nav { display: flex; align-items: center; gap: clamp(0.4rem, 1.4vw, 1.1rem); }
.nav a {
  position: relative;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0.34rem;
  width: 16px; height: 3px;
  margin-left: -8px;
  border-radius: 3px;
  background: var(--ember-lit);
}

.masthead .btn { padding: 0.78em 1.35em; font-size: 0.9rem; }

.burger {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-pill);
  background: var(--sand);
}
/* Both bars share one centre point so the open state rotates into a true X.
   Stacking them in normal flow made them rotate about separate origins, which
   read as a chevron rather than a close icon. */
.burger i {
  position: absolute;
  left: 50%; top: 50%;
  width: 1.05rem; height: 2px;
  border-radius: 2px;
  background: var(--plum);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.burger i:first-child { transform: translate(-50%, calc(-50% - 3.5px)); }
.burger i:last-child  { transform: translate(-50%, calc(-50% + 3.5px)); }
body.nav-open .burger i:first-child { transform: translate(-50%, -50%) rotate(45deg); }
body.nav-open .burger i:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(9rem, 20vh, 13rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero__bloom-a {
  width: 48rem; height: 48rem;
  top: -26rem; left: 50%; margin-left: -24rem;
  background: radial-gradient(circle, rgba(240, 161, 103, 0.20), transparent 66%);
}
.hero__bloom-b {
  width: 34rem; height: 34rem;
  bottom: -20rem; right: -8rem;
  background: radial-gradient(circle, rgba(58, 42, 78, 0.75), transparent 68%);
}
.hero__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.hero__grid > * { width: 100%; }

.hero__title { margin-block: 1.5rem 0; }
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span {
  display: block;
  animation: rise 1.05s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  from { transform: translateY(102%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.hero .lede { margin-inline: auto; }
.hero__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.2rem);
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}
.hero .btn-row { justify-content: center; }

/* Capability pills */
.dossier {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.dossier li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6em 1.15em;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  background: rgba(248, 244, 239, 0.06);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.dossier li:hover { background: rgba(248, 244, 239, 0.14); color: var(--text); transform: translateY(-2px); }
.dossier .dot { display: none; }
.dossier .idx { font-size: 0.75rem; opacity: 0.85; }

.plotline { width: min(100%, 30rem); margin: 0 auto; height: auto; overflow: visible; }
.plotline path {
  fill: none;
  stroke: var(--ember-lit);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw 2.4s 0.8s var(--ease-io) forwards;
}
.plotline circle {
  fill: var(--plum-2);
  stroke: var(--ember-lit);
  stroke-width: 2.5;
  opacity: 0;
  animation: pop 0.45s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop  { to { opacity: 1; } }

/* ---------- 10. Ticker ---------- */
.ticker {
  position: relative;
  padding-block: 1.1rem;
  overflow: hidden;
  background: var(--plum);
}
.ticker__track { display: flex; width: max-content; animation: slide 44s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track > span {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark-2);
  white-space: nowrap;
}
.ticker__track i { color: var(--ember-lit); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 11. Section heads ---------- */
.head2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 1.1rem;
  max-width: 54rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.head2__aside { display: contents; }
.head2 .lede, .head2 .body-lg { margin-inline: auto; }
.head2 .btn-row { justify-content: center; }

/* ---------- 12. Service rows ---------- */
.svcs { display: grid; gap: 0.9rem; }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 0.9fr) minmax(0, 1.5fr) 2.5rem;
  gap: clamp(0.9rem, 2.5vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 2.8vw, 2.3rem) clamp(1.25rem, 2.5vw, 2.2rem);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); background: var(--white); }
.band--sand .svc { background: var(--white); }
.band--sand .svc:hover { background: var(--white); }
.svc__num {
  display: grid;
  place-items: center;
  width: 2.7rem; height: 2.7rem;
  border-radius: var(--r-pill);
  background: var(--plum-2);
  color: var(--ember-lit);
  font-size: 0.85rem;
  font-weight: 700;
}
.svc__title { transition: color 0.35s var(--ease); }
.svc__body { color: var(--text-2); font-size: 1rem; }
.svc__arw {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--hair);
  color: var(--ember);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.svc:hover .svc__arw {
  background: var(--ember-lit);
  border-color: var(--ember-lit);
  color: var(--plum);
  transform: translateX(4px);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.chip {
  padding: 0.4em 0.85em;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
}
.band--plum .chip, .invert .chip { background: rgba(248, 244, 239, 0.13); color: var(--on-dark); }

/* ---------- 13. Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 1rem;
}
.card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.band--sand .card { background: var(--white); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card__k {
  display: inline-flex;
  margin-bottom: 1.3rem;
  padding: 0.4em 0.9em;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: 0.01em;
}
.band--plum .card__k, .invert .card__k { background: rgba(248, 244, 239, 0.13); color: var(--ember-lit); }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--text-2); font-size: 1rem; }

/* ---------- 14. Builds — saturated category tiles ---------- */
.builds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}
.build {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--on-dark);
  background: var(--plum-2);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.build:nth-child(1) { background: linear-gradient(150deg, #4a2f66, #211530 82%); }
.build:nth-child(2) { background: linear-gradient(150deg, #7a3a2a, #2c1720 82%); }
.build:nth-child(3) { background: linear-gradient(150deg, #1f4a52, #10222a 82%); }
.build:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.build__n {
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border-radius: var(--r-pill);
  background: rgba(248, 244, 239, 0.15);
  color: var(--ember-lit);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}
.build h3 { margin-block: 1.5rem 0.8rem; color: var(--on-dark); }
.build p { color: var(--on-dark-2); font-size: 1rem; }
.build .chips { margin-top: auto; padding-top: 1.6rem; }
.build .chip { background: rgba(248, 244, 239, 0.15); color: var(--on-dark); }

/* ---------- 15. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.step {
  border-radius: var(--r-xl);
  background: var(--surface-2);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.band--sand .step { background: var(--white); }
.step .idx {
  display: inline-flex;
  padding: 0.35em 0.85em;
  border-radius: var(--r-pill);
  background: var(--plum-2);
  color: var(--ember-lit);
  font-size: 0.78rem;
}
.step h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); margin-block: 1.1rem 0.6rem; }
.step p { font-size: 0.98rem; color: var(--text-2); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

/* ---------- 16. Manifesto ---------- */
.manifesto {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.manifesto p {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.manifesto cite {
  display: inline-flex;
  margin-top: 1.8rem;
  padding: 0.5em 1.15em;
  border-radius: var(--r-pill);
  background: rgba(248, 244, 239, 0.13);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.band--white .manifesto cite, .band--sand .manifesto cite { background: var(--sand); color: var(--ink-2); }

/* ---------- 17. Facts ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
}
.fact {
  border-radius: var(--r-xl);
  background: var(--surface-2);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
}
.band--sand .fact { background: var(--white); }
.fact__v {
  font-family: var(--ff-display);
  font-weight: 700;
  /* Sized for the longest value ("RC 7803910"), which overflowed at 3.1rem. */
  font-size: clamp(1.65rem, 2.7vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
.band--plum .fact__v, .invert .fact__v { color: var(--ember-lit); }
.fact__k {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-3);
  line-height: 1.45;
}

/* ---------- 18. Detail blocks ---------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.8rem, 4.5vw, 4.5rem);
  padding: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  scroll-margin-top: 7.5rem;
}
.band--sand .detail { background: var(--white); }
.detail__h { position: relative; }
@media (min-width: 62rem) { .detail__h { position: sticky; top: 8rem; align-self: start; } }
.detail__h .h2 { margin-block: 1.1rem 1.2rem; }

.deliverables { display: grid; gap: 0.5rem; }
.deliverables li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 1rem;
  color: var(--text-2);
  transition: background 0.3s var(--ease);
}
.band--sand .deliverables li { background: var(--sand); }
.deliverables li:hover { background: var(--surface-3); }
.deliverables li b { color: var(--text); font-weight: 700; display: block; margin-bottom: 0.2rem; }
.deliverables .mk { color: var(--ember); font-weight: 700; }
.band--plum .deliverables .mk, .invert .deliverables .mk { color: var(--ember-lit); }

.stack {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  padding: 1.3rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--plum-2);
  color: var(--on-dark);
}
.stack--plain { background: transparent; color: inherit; padding: 0; margin-top: 1.6rem; }
.stack__k {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ember-lit);
}
.stack--plain .stack__k { color: var(--ember); }
.stack__v { color: var(--on-dark-2); font-size: 0.95rem; line-height: 1.7; }
.stack--plain .stack__v { color: var(--text-2); }

/* ---------- 19. Page hero ---------- */
.phero {
  position: relative;
  padding-top: clamp(8.5rem, 18vh, 11.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.phero__bloom {
  width: 42rem; height: 42rem;
  top: -26rem; left: 50%; margin-left: -21rem;
  background: radial-gradient(circle, rgba(240, 161, 103, 0.17), transparent 68%);
}
.phero__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 52rem;
  margin-inline: auto;
}
.phero .h1 { margin-block: 1.3rem 0; }
.phero .lede { margin-inline: auto; }
.phero .btn-row { justify-content: center; }

/* ---------- 20. People ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}
.person {
  border-radius: var(--r-xl);
  background: var(--surface-2);
  padding: clamp(1.7rem, 3vw, 2.4rem);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.band--sand .person { background: var(--white); }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.person__mono {
  width: 3.6rem; height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--plum-2);
  color: var(--ember-lit);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.person h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.person__roles { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.person__role {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.35em 0.85em;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ember);
}
.person__roles .person__role { margin-top: 0; }
/* Secondary role — factual/corporate, held back so the primary title leads */
.person__role--alt { background: transparent; border: 1.5px solid var(--hair); color: var(--text-2); }
.person p { margin-top: 1.1rem; color: var(--text-2); font-size: 0.99rem; }

/* Lead profile — photo beside the content. Short bios left dead space in the
   earlier identity|summary split, so the photo is its own narrow column. */
.person--lead { grid-column: 1 / -1; }
@media (min-width: 46rem) {
  .person--lead {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.6rem, 3.5vw, 3rem);
    align-items: start;
  }
  .person--lead .person__photo { margin-bottom: 0; }
}
.person--lead .person__mono { width: 4.2rem; height: 4.2rem; font-size: 1.2rem; }
.person--lead h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.person--lead .person__body > p:first-of-type { margin-top: 1rem; }

/* Photo avatar — replaces the monogram where a headshot exists */
.person__photo {
  width: clamp(7rem, 13vw, 9.5rem);
  aspect-ratio: 1;
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 1.4rem;
  background: var(--surface-3);
  box-shadow: 0 0 0 1.5px var(--hair), 0 10px 30px rgba(32, 26, 38, 0.14);
}
.person__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.person__roles + p { margin-top: 1rem; }
.person__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.person__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.05em;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--hair);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.person__links a:hover { background: var(--plum-2); border-color: var(--plum-2); color: var(--on-dark); }
.person__links svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* Primary link — filled so it reads as obviously clickable */
.person__links a.is-primary {
  background: var(--plum-2);
  border-color: var(--plum-2);
  color: var(--on-dark);
}
.person__links a.is-primary:hover { background: var(--ember); border-color: var(--ember); }

/* ---------- 21. Programmes ---------- */
.prog { display: grid; gap: 0.9rem; }
.prog__row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 0.7fr);
  gap: clamp(0.9rem, 2.2vw, 2.2rem);
  align-items: start;
  padding: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1.25rem, 2.4vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.band--sand .prog__row { background: var(--white); }
.prog__row:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.prog__row > .idx {
  display: grid;
  place-items: center;
  width: 2.7rem; height: 2.7rem;
  border-radius: var(--r-pill);
  background: var(--plum-2);
  color: var(--ember-lit);
  font-size: 0.85rem;
}
.prog__row h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.prog__row p { color: var(--text-2); font-size: 0.99rem; }
.prog__meta { font-size: 0.88rem; color: var(--text-3); line-height: 1.85; }
.prog__meta b { color: var(--ember); font-weight: 700; }

/* ---------- 22. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
  text-align: left;
}
.contact-grid > div {
  padding: clamp(1.7rem, 3.2vw, 2.6rem);
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.band--sand .contact-grid > div { background: var(--white); }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--hair);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.band--sand .field input, .band--sand .field select, .band--sand .field textarea { background: var(--sand); }
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 4px rgba(175, 71, 22, 0.16);
}
.field--sel { position: relative; }
.field--sel::after {
  content: "";
  position: absolute;
  right: 1.1rem; bottom: 1.25rem;
  width: 7px; height: 7px;
  border-right: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: rotate(45deg);
  pointer-events: none;
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0 1.1rem; }
.form-note { font-size: 0.85rem; color: var(--text-3); line-height: 1.65; margin-top: 1.2rem; }

.info-list { display: grid; gap: 0.5rem; }
.info-list > div {
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--surface);
}
.band--sand .info-list > div { background: var(--sand); }
.info-list dt { font-size: 0.85rem; font-weight: 600; color: var(--text-3); margin-bottom: 0.3rem; }
/* Email addresses are unbreakable strings. Without this they forced the whole
   document 44px wider than a 320px viewport — masked by body{overflow-x:hidden}
   so it never showed up as a page-level overflow. */
.info-list dd {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.info-list dd a { color: var(--ember); border-bottom: 2px solid transparent; transition: border-color 0.3s var(--ease); }
.info-list dd a:hover { border-bottom-color: currentColor; }

/* ---------- 23. CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta__bloom {
  width: 50rem; height: 50rem;
  bottom: -34rem; left: 50%; margin-left: -25rem;
  background: radial-gradient(circle, rgba(240, 161, 103, 0.24), transparent 64%);
}
.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  max-width: 52rem;
  margin-inline: auto;
}
.cta__inner .lede, .cta__inner .body-lg { margin-inline: auto; }
.cta__inner .btn-row { justify-content: center; margin-top: 0.6rem; }

/* ---------- 24. Footer ---------- */
.footer { background: var(--plum); color: var(--on-dark); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.6fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer .brand { color: var(--on-dark); }
.footer .brand-mark { color: var(--on-dark); }
.footer .brand-mark .tall { fill: var(--ember-lit); }
.footer .brand-word b { color: var(--ember-lit); }
.footer__blurb { color: var(--on-dark-2); font-size: 0.98rem; max-width: 32ch; margin-top: 1.1rem; }
.footer h4 {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember-lit);
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 0.97rem;
  color: var(--on-dark-2);
  padding-block: 0.45rem;
  overflow-wrap: anywhere;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__col a:hover { color: var(--on-dark); transform: translateX(3px); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(248, 244, 239, 0.15);
  font-size: 0.85rem;
  color: var(--on-dark-2);
}

/* ---------- 25. Reveal ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .rv.is-in { opacity: 1; transform: none; }

.js .rv-line { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv-line.is-in { transform: scaleX(1); }

.load { animation: fade-up 0.95s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 26. Utilities ---------- */
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -140%);
  z-index: 950;
  background: var(--ember-lit);
  color: var(--plum);
  padding: 0.8rem 1.4rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.mt-l { margin-top: clamp(2.2rem, 4.5vw, 3.5rem); }
.mw-60 { max-width: 62ch; }
.mw-50 { max-width: 52ch; }

/* ---------- 27. Responsive ---------- */
@media (max-width: 74rem) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 62rem) {
  .detail, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: 3rem minmax(0, 1fr); }
  .svc__arw { display: none; }
  .svc__body { grid-column: 2; }
  .prog__row { grid-template-columns: 2.9rem minmax(0, 1fr); }
  .prog__row p, .prog__meta { grid-column: 2; }
  .prog__meta { margin-top: 0.4rem; }
}

@media (max-width: 52rem) {
  /* backdrop-filter creates a containing block for fixed-position descendants.
     With it on .masthead, the fixed .nav resolved its inset against the ~120px
     header box instead of the viewport, so the links rendered outside the panel
     frame. Dropping the filter at mobile widths restores viewport-relative
     positioning. Do not reintroduce backdrop-filter here. */
  .masthead, .masthead.is-stuck {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: var(--white);
  }

  .nav {
    position: fixed;
    inset: clamp(0.55rem, 1.2vw, 1rem);
    flex-direction: column;
    /* flex-start, not center: a centred column that overflows clips its own
       top and cannot be scrolled back into view on short viewports. */
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.3rem;
    padding: 5rem 1rem 1.5rem;
    border-radius: var(--r-lg);
    background: var(--white);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  body.nav-open .nav { opacity: 1; pointer-events: auto; transform: none; }
  /* Stop the page behind the panel scrolling while it is open */
  body.nav-open { overflow: hidden; }
  /* Keep the wordmark above the open panel — otherwise opening the menu makes
     the brand vanish, which reads as a broken page. */
  .brand { position: relative; z-index: 810; }

  .nav a {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    padding: 0.72rem 1rem;
    border-radius: var(--r-md);
    flex: none;
  }
  .nav a[aria-current="page"] { background: var(--sand); }
  .nav a[aria-current="page"]::after { display: none; }
  .burger { display: grid; z-index: 810; }
  .masthead .btn { display: none; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { flex-direction: column; }
}

/* ---------- 28. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
  .js .rv-line { transform: none; }
  .plotline path { stroke-dashoffset: 0; }
  .plotline circle { opacity: 1; }
  .circled svg path { stroke-dashoffset: 0; }
}

/* ---------- 29. Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .masthead, .cta, .ticker { display: none; }
}
