/* ============================================================
   DDT INTEGRATIONS — Design System
   Inherits the structural conventions of the Clarke House Care
   system (token block, .wrap, section rhythm, reveal-on-scroll)
   but flips to a dark "hall of agents" identity.

   Per-agent accent hue is injected as --h on any scoped element,
   so every agent surface recolours from one number.
   ============================================================ */

:root {
  /* ── wall & surfaces ── */
  --void:       #05070E;
  --wall:       #0A0E1A;
  --wall-2:     #10162A;
  --plaque:     #161E33;
  --plaque-2:   #1D2740;

  /* ── brass plaque hardware ── */
  --brass:      #C9A227;
  --brass-lt:   #F2DA96;
  --brass-dk:   #7E6210;

  /* ── brand ── */
  --accent:     #4EA8FF;
  --accent-2:   #7C5CFF;

  /* ── type ── */
  --text:       #EAF0FF;
  --text-mid:   #A4B1CE;
  --text-soft:  #6C7A99;
  --line:       rgba(160, 185, 255, 0.13);

  --radius:     18px;
  --radius-sm:  11px;
  --shadow:     0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:  0 26px 70px rgba(0, 0, 0, 0.6);

  --font-head:  'Poppins', system-ui, sans-serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --font-mono:  ui-monospace, 'SF Mono', Menlo, monospace;

  --nav-h:      72px;
  --h:          210;   /* default accent hue, overridden per agent */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

/* overflow-x lives on <html> only — putting it on <body> makes body a
   scroll container and breaks position:sticky on the nav. */
body {
  font-family: var(--font-body);
  background: var(--wall);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 700;
}

a { color: hsl(var(--h) 90% 70%); text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 5%; }
section { padding: 92px 0; position: relative; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #04070F; padding: 12px 20px;
  border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid hsl(var(--h) 95% 62%);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════
   WALL TEXTURE
   A single fixed layer behind everything —
   vignette + faint plaster grain + accent bloom.
   ══════════════════════════════════════════ */
.wall-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 18% -8%,  rgba(78,168,255,0.14), transparent 62%),
    radial-gradient(760px 560px at 84% 12%,  rgba(124,92,255,0.13), transparent 60%),
    radial-gradient(1100px 800px at 50% 108%, rgba(201,162,39,0.09), transparent 62%),
    linear-gradient(180deg, var(--wall) 0%, var(--void) 100%);
}
.wall-bg::after {
  content: ''; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg,   rgba(255,255,255,0.014) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,  rgba(255,255,255,0.014) 0 1px, transparent 1px 3px);
}

/* ══════════════════════════════════════════
   TOP BAR + NAV
   ══════════════════════════════════════════ */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  padding: 7px 5%;
  background: var(--void);
  border-bottom: 1px solid var(--line);
  font-size: 0.79rem; color: var(--text-soft);
  letter-spacing: 0.02em;
}
.topbar a { color: var(--text-mid); }
.topbar a:hover { color: var(--accent); }
.topbar .live {
  display: inline-flex; align-items: center; gap: 7px;
  color: #6FE39B; font-weight: 600;
}
.topbar .live i {
  width: 7px; height: 7px; border-radius: 50%; background: #6FE39B;
  box-shadow: 0 0 0 0 rgba(111,227,155,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(111,227,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,227,155,0); }
}

nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 5%;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
nav.scrolled { box-shadow: 0 10px 34px rgba(0,0,0,0.5); }

/* The logo is a single raster lockup (wordmark + circuit trace), so it sets its
   own height and lets width follow the 1005:399 aspect. The dark-ground
   variant is generated by build/make_logo.py — the supplied master's wordmark
   is near-black and would vanish against this background. */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img {
  height: 50px; width: auto;
  transition: opacity 0.25s ease;
}
.nav-logo:hover img { opacity: 0.82; }

footer .nav-logo img { height: 54px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-mid); font-size: 0.92rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.28s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }

/* The two service pages sit as pills so they read as things you can buy,
   not just places you can go. The underline sweep is suppressed on these —
   a pill with a growing underline under it looks like a mistake. */
.nav-links a.nav-pill {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.nav-links a.nav-pill::after { display: none; }
.nav-links a.nav-pill:hover {
  background: hsl(var(--h) 70% 55% / 0.16);
  border-color: hsl(var(--h) 70% 60% / 0.5);
  transform: translateY(-2px);
}
.nav-links a.nav-pill.active {
  background: hsl(var(--h) 70% 55% / 0.2);
  border-color: hsl(var(--h) 80% 62% / 0.62);
  color: hsl(var(--h) 95% 84%);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px; border-radius: 2px; background: var(--text);
  transition: 0.3s;
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
  background: var(--wall-2); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.34s cubic-bezier(.4,0,.2,1);
  z-index: 400; padding: 26px 24px; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer ul { list-style: none; margin-top: 26px; }
.drawer li { border-bottom: 1px solid var(--line); }
.drawer a { display: block; padding: 14px 2px; color: var(--text); font-weight: 500; }
.drawer .close {
  background: none; border: 0; color: var(--text-mid);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.scrim {
  position: fixed; inset: 0; background: rgba(2,4,9,0.66);
  backdrop-filter: blur(3px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s; z-index: 380;
}
.scrim.open { opacity: 1; pointer-events: auto; }

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  border: 0; cursor: pointer; text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, hsl(var(--h) 92% 62%), hsl(calc(var(--h) + 26) 88% 58%));
  color: #04070F;
  box-shadow: 0 10px 30px hsl(var(--h) 92% 50% / 0.34);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px hsl(var(--h) 92% 50% / 0.46); }
.btn-ghost {
  background: rgba(255,255,255,0.045); color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); }
.btn-brass {
  background: linear-gradient(160deg, var(--brass-lt), var(--brass) 55%, var(--brass-dk));
  color: #14100A;
  box-shadow: 0 10px 28px rgba(201,162,39,0.3);
}
.btn-brass:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(201,162,39,0.42); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ══════════════════════════════════════════
   SHARED BITS
   ══════════════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: hsl(var(--h) 85% 70%);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, hsl(var(--h) 90% 60%), transparent);
}
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-head p { color: var(--text-mid); font-size: 1.05rem; }

.lede { color: var(--text-mid); font-size: 1.12rem; max-width: 62ch; }

/* ══════════════════════════════════════════
   MOTION SYSTEM
   The site is the sales pitch for the site, so
   movement is a feature here, not decoration.
   Everything below is disabled wholesale under
   prefers-reduced-motion at the end of the file.
   ══════════════════════════════════════════ */

/* reveal on scroll — a shared easing so nothing feels out of step */
.reveal, .reveal-left, .reveal-right, .reveal-zoom {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.16,.8,.3,1),
              transform .75s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
.reveal       { transform: translateY(30px); }
.reveal-left  { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-zoom  { transform: scale(.94); }
.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-zoom.in {
  opacity: 1; transform: none;
}

/* scroll progress — thin, top of viewport, tracks the whole document */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--brass));
  z-index: 500; pointer-events: none;
}

/* the wall drifts slightly against the page for depth. Overscanned top and
   bottom so the translate can never expose an edge. */
.wall-bg { inset: -14% 0; will-change: transform; }

/* plaques lean toward the pointer */
.plaque-grid { perspective: 1400px; }
.plaque { transform-style: preserve-3d; }

/* ── animated bars: the "sliding bars" demo ── */
.bars { display: grid; gap: 15px; margin-top: 20px; }
.bar-row { display: grid; gap: 7px; }
.bar-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.78rem; color: var(--text-soft); letter-spacing: 0.04em;
}
.bar-label b {
  font-family: var(--font-head); font-size: 0.88rem;
  color: hsl(var(--h) 92% 76%); font-variant-numeric: tabular-nums;
}
.bar-track {
  height: 8px; border-radius: 99px; overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}
.bar-fill {
  /* it is a <span>: without this it stays inline, width never applies, and the
     bar sits permanently empty */
  display: block;
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, hsl(var(--h) 92% 58%), hsl(calc(var(--h) + 30) 88% 62%));
  box-shadow: 0 0 14px hsl(var(--h) 92% 55% / 0.5);
  transition: width 1.5s cubic-bezier(.16,.8,.3,1);
}

/* Four "how" cards in an auto-fit grid land 3 + 1, leaving an orphan beside a
   gap. Two even rows read better and give the full-width motion card below
   something square to sit under. */
@media (min-width: 760px) {
  .card-grid.how-grid { grid-template-columns: repeat(2, 1fr); }
}

/* the motion card carries its own demo, so it spans wider than a normal card */
.card.card-motion {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: center;
  border-color: hsl(var(--h) 70% 55% / 0.34);
  background:
    radial-gradient(120% 140% at 100% 0%, hsl(var(--h) 62% 40% / 0.16), transparent 62%),
    linear-gradient(170deg, var(--plaque), var(--wall-2));
}
@media (max-width: 760px) {
  .card.card-motion { grid-template-columns: 1fr; gap: 22px; }
}

/* ══════════════════════════════════════════
   MASTHEAD
   ══════════════════════════════════════════ */
.masthead { padding: 96px 0 72px; text-align: center; }
.masthead h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.5rem);
  margin-bottom: 22px; letter-spacing: -0.04em;
}
.masthead h1 .grad {
  background: linear-gradient(115deg, var(--accent), var(--accent-2) 52%, var(--brass));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.masthead .lede { margin: 0 auto 34px; font-size: 1.16rem; }
.masthead .cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

.trust-strip {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 44px;
}
.trust-strip span {
  font-size: 0.82rem; color: var(--text-soft);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.026);
}

/* ══════════════════════════════════════════
   THE HALL — plaque wall
   ══════════════════════════════════════════ */
.hall { padding-top: 34px; }

/* the mounting rail the plaques hang from */
.hall-rail {
  height: 1px; background: linear-gradient(90deg, transparent, var(--line) 14%, var(--line) 86%, transparent);
  margin-bottom: 62px;
}

.plaque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 46px 34px;
}

/* ── the plaque itself ── */
.plaque {
  --h: 210;
  position: relative;
  display: flex; flex-direction: column;
  padding: 15px;
  border-radius: 22px;
  /* brass frame: layered gradient border reading as a bevelled edge */
  background:
    linear-gradient(var(--plaque), var(--plaque)) padding-box,
    linear-gradient(150deg, var(--brass-lt) 0%, var(--brass-dk) 26%, var(--brass) 50%, var(--brass-dk) 74%, var(--brass-lt) 100%) border-box;
  border: 2.5px solid transparent;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease;
}
.plaque:hover { transform: translateY(-9px); }
.plaque:hover .bust-glow { opacity: 1; }
.plaque:hover .portrait { transform: scale(1.035); }

/* two mounting screws, top corners */
.plaque::before, .plaque::after {
  content: ''; position: absolute; top: 12px;
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--brass-lt), var(--brass-dk) 72%);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.5);
  z-index: 3;
}
.plaque::before { left: 12px; }
.plaque::after  { right: 12px; }

/* ── portrait: shoulders and above ── */
.portrait {
  position: relative;
  border-radius: 14px 14px 4px 4px;
  overflow: hidden;
  background:
    radial-gradient(120% 96% at 50% 4%, hsl(var(--h) 62% 22%) 0%, hsl(var(--h) 58% 11%) 46%, #070B14 100%);
  aspect-ratio: 1 / 0.94;
  display: grid; place-items: end center;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
  border: 1px solid rgba(255,255,255,0.07);
}
/* spotlight cone from above, like a lit exhibit */
.portrait::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(58% 46% at 50% -6%, hsl(var(--h) 96% 74% / 0.30), transparent 70%),
    linear-gradient(180deg, transparent 52%, rgba(3,5,11,0.72) 100%);
  pointer-events: none; z-index: 2;
}
.portrait svg { width: 100%; height: 100%; }

.bust-glow {
  position: absolute; left: 50%; top: 46%;
  width: 70%; aspect-ratio: 1; transform: translate(-50%,-50%);
  background: radial-gradient(circle, hsl(var(--h) 96% 62% / 0.34), transparent 66%);
  filter: blur(22px); opacity: 0.55; transition: opacity .45s ease;
  pointer-events: none;
}

/* rank chip, top-left of portrait */
.rank {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 10px; border-radius: 7px;
  color: hsl(var(--h) 92% 78%);
  background: hsl(var(--h) 60% 12% / 0.82);
  border: 1px solid hsl(var(--h) 70% 46% / 0.42);
  backdrop-filter: blur(6px);
}
/* status chip, top-right */
.status {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 11px; border-radius: 999px;
  color: #8DF0B4; background: rgba(10,40,24,0.78);
  border: 1px solid rgba(111,227,155,0.32);
  backdrop-filter: blur(6px);
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: #6FE39B; }

/* ── engraved nameplate ── */
.nameplate {
  position: relative;
  margin-top: 13px; padding: 15px 16px 14px;
  border-radius: 4px 4px 11px 11px;
  background: linear-gradient(178deg, #22283A 0%, #171D2C 58%, #12172333 100%),
              linear-gradient(#191F2E, #191F2E);
  border: 1px solid rgba(242,218,150,0.19);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -2px 6px rgba(0,0,0,0.45);
  text-align: center;
}
.nameplate h3 {
  font-size: 1.42rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass-lt);
  /* engraved: dark below, faint light above */
  text-shadow: 0 1px 0 rgba(0,0,0,0.85), 0 -1px 0 rgba(255,255,255,0.14);
  margin-bottom: 5px;
}
.nameplate .role {
  font-size: 0.71rem; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--text-soft); font-weight: 600;
}
.nameplate .rule {
  width: 46px; height: 1px; margin: 11px auto;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.nameplate .power {
  font-size: 0.93rem; color: var(--text-mid); line-height: 1.55;
}

/* ── stat strip ── */
.plaque-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 13px;
  background: var(--line); border-radius: 11px; overflow: hidden;
}
.plaque-stats div {
  background: var(--plaque-2); padding: 11px 6px; text-align: center;
}
.plaque-stats b {
  display: block; font-family: var(--font-head); font-size: 1.02rem;
  color: hsl(var(--h) 90% 74%); letter-spacing: -0.02em;
}
.plaque-stats span {
  font-size: 0.63rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--text-soft);
}

.plaque .btn { margin-top: 14px; width: 100%; }

/* ══════════════════════════════════════════
   THE THREE OFFERINGS
   Equal columns, equal weight — none of the
   three is the headline act.
   ══════════════════════════════════════════ */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.service-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 34px 30px 30px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--plaque), var(--wall-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: hsl(var(--h) 70% 55% / 0.46);
}
.service-card:hover .service-glow { opacity: 1; transform: scale(1.15); }

/* accent bloom in the top corner, brightening on hover */
.service-glow {
  position: absolute; top: -70px; right: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--h) 92% 58% / 0.34), transparent 68%);
  filter: blur(26px); opacity: 0.62;
  transition: opacity .4s ease, transform .5s ease;
  pointer-events: none;
}
.service-card h3 {
  font-size: 1.42rem; margin-bottom: 12px;
  color: hsl(var(--h) 94% 80%);
}
.service-card > p {
  color: var(--text-mid); font-size: 0.97rem; margin-bottom: 20px;
}
.service-card .tick-list { margin-bottom: 26px; }
.service-card .tick-list li { font-size: 0.92rem; }
/* push the button to the bottom so all three line up regardless of copy length */
.service-card .btn { margin-top: auto; width: 100%; }

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ══════════════════════════════════════════
   HOW WE WORK / VALUE
   ══════════════════════════════════════════ */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: linear-gradient(170deg, var(--plaque), var(--wall-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: hsl(var(--h) 70% 50% / 0.4); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: 16px;
  background: hsl(var(--h) 70% 50% / 0.14);
  border: 1px solid hsl(var(--h) 70% 55% / 0.3);
}
.card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.card p { color: var(--text-mid); font-size: 0.95rem; }

.steps { counter-reset: s; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,0.028); border: 1px solid var(--line);
}
.step .n {
  counter-increment: s;
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: #04070F;
  background: linear-gradient(140deg, hsl(var(--h) 92% 64%), hsl(calc(var(--h) + 28) 88% 58%));
}
.step .n::before { content: counter(s); }
.step h3 { font-size: 1.08rem; margin-bottom: 5px; }
.step p { color: var(--text-mid); font-size: 0.95rem; }

/* metric band */
.band {
  background: linear-gradient(120deg, rgba(78,168,255,0.09), rgba(124,92,255,0.09));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px; text-align: center;
}
.band-grid b {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.03em;
}
.band-grid span {
  font-size: 0.82rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--text-soft);
}

/* ══════════════════════════════════════════
   SHOWCASE — screenshot galleries
   (Super Websites / Custom Dashboards)
   ══════════════════════════════════════════ */
.showcase-head { padding: 78px 0 54px; }
.showcase-head h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); margin-bottom: 20px; }
.showcase-head .lede { margin: 0 auto 30px; }

.shot-grid { display: grid; gap: 62px; }

.shot-card {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 42px; align-items: center;
}
/* alternate sides so a long gallery doesn't read as a list */
.shot-card:nth-child(even) .shot { order: 2; }

/* ── browser frame ── */
.shot {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--wall-2);
  box-shadow: var(--shadow-lg);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), border-color .4s ease;
}
.shot-card:hover .shot {
  transform: translateY(-6px);
  border-color: hsl(var(--h) 70% 55% / 0.42);
}
.shot-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line);
}
.shot-bar .dots { display: flex; gap: 6px; flex-shrink: 0; }
.shot-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2C3752; }
.shot-bar .dots i:first-child { background: #FF5F57; }
.shot-bar .dots i:nth-child(2) { background: #FEBC2E; }
.shot-bar .dots i:nth-child(3) { background: #28C840; }
.shot-url {
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Fixed 16:10 well, so cards keep their rhythm whether the screenshot has
   arrived or not — no layout shift when an image drops in. */
.shot-frame { position: relative; aspect-ratio: 16 / 10; background: var(--void); }
.shot-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.shot-frame img[hidden] { display: none; }

/* placeholder shown until a real screenshot exists */
.shot-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-soft);
  background:
    radial-gradient(70% 70% at 50% 30%, hsl(var(--h) 60% 46% / 0.13), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.018) 0 12px, transparent 12px 24px);
}
.shot-frame img:not([hidden]) ~ .shot-empty { display: none; }
.shot-empty-mark {
  width: 62px; height: 62px; border-radius: 17px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: hsl(var(--h) 92% 76%);
  background: hsl(var(--h) 60% 50% / 0.14);
  border: 1px solid hsl(var(--h) 65% 55% / 0.32);
}

/* ── Super Site vs traditional comparison ── */
.vs {
  width: 100%; border-collapse: separate; border-spacing: 0;
  min-width: 640px;
}
.vs th, .vs td { padding: 16px 20px; text-align: left; vertical-align: top; }
.vs thead th {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
  color: var(--text-mid); letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
}
/* row labels */
.vs tbody th {
  font-family: var(--font-body); font-weight: 600; font-size: 0.86rem;
  color: var(--text-soft); width: 20%;
  border-bottom: 1px solid rgba(160,185,255,0.07);
}
.vs tbody td {
  color: var(--text-mid); font-size: 0.94rem;
  border-bottom: 1px solid rgba(160,185,255,0.07);
}
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }

/* the winning column is tinted top to bottom so the eye tracks one side */
.vs .vs-win {
  background: hsl(var(--h) 62% 46% / 0.09);
  color: var(--text);
  border-left: 1px solid hsl(var(--h) 70% 55% / 0.28);
  border-right: 1px solid hsl(var(--h) 70% 55% / 0.28);
}
.vs thead .vs-win {
  color: hsl(var(--h) 95% 80%);
  border-top: 1px solid hsl(var(--h) 70% 55% / 0.28);
  border-radius: 12px 12px 0 0;
}
.vs tbody tr:last-child .vs-win {
  border-bottom: 1px solid hsl(var(--h) 70% 55% / 0.28);
  border-radius: 0 0 12px 12px;
}
.vs tbody .vs-win::before {
  content: '\2713'; color: hsl(var(--h) 92% 74%);
  font-weight: 700; margin-right: 9px;
}

.shot-sector {
  display: block; font-size: 0.72rem; letter-spacing: 0.17em;
  text-transform: uppercase; color: hsl(var(--h) 85% 72%);
  font-weight: 700; margin-bottom: 10px;
}
.shot-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 13px; }
.shot-body p { color: var(--text-mid); font-size: 1rem; margin-bottom: 20px; }

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: start;
}
.contact-list { list-style: none; display: grid; gap: 20px; margin-top: 26px; }
.contact-list li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; }
.contact-list .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: hsl(var(--h) 70% 50% / 0.14); border: 1px solid hsl(var(--h) 70% 55% / 0.3);
}
.contact-list strong { display: block; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-soft); }
.contact-list a, .contact-list p { color: var(--text); font-size: 1rem; }

form.enquiry {
  background: linear-gradient(170deg, var(--plaque), var(--wall-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-mid); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  background: rgba(6,9,17,0.66); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.96rem;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: hsl(var(--h) 90% 60%);
  box-shadow: 0 0 0 3px hsl(var(--h) 90% 60% / 0.16);
}
.field .err { color: #FF8A8A; font-size: 0.8rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #FF8A8A; }
.form-note { font-size: 0.82rem; color: var(--text-soft); margin-top: 14px; text-align: center; }
.form-ok {
  display: none; padding: 16px; border-radius: var(--radius-sm);
  background: rgba(111,227,155,0.1); border: 1px solid rgba(111,227,155,0.32);
  color: #8DF0B4; font-size: 0.94rem; margin-bottom: 18px;
}
.form-ok.show { display: block; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--void); border-top: 1px solid var(--line);
  padding: 58px 0 26px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.foot-grid h4 {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 16px;
}
.foot-grid p { color: var(--text-soft); font-size: 0.9rem; }
.foot-grid ul { list-style: none; display: grid; gap: 9px; }
.foot-grid ul a { color: var(--text-soft); font-size: 0.9rem; }
.foot-grid ul a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line);
  text-align: center; color: var(--text-soft); font-size: 0.84rem;
}

/* ══════════════════════════════════════════
   AGENT DEMO PAGES
   ══════════════════════════════════════════ */
.agent-hero { padding: 66px 0 76px; }
.agent-hero-grid {
  display: grid; grid-template-columns: 400px 1fr; gap: 56px; align-items: center;
}
.agent-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin-bottom: 8px; }
.agent-hero .role-line {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: hsl(var(--h) 88% 72%); font-weight: 700; margin-bottom: 22px;
}
.agent-hero .lede { margin-bottom: 28px; }
.agent-hero .cta-row { display: flex; gap: 13px; flex-wrap: wrap; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-soft); font-size: 0.88rem; margin-bottom: 26px;
}
.back-link:hover { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chips span {
  font-size: 0.79rem; padding: 7px 14px; border-radius: 999px;
  background: hsl(var(--h) 60% 50% / 0.11);
  border: 1px solid hsl(var(--h) 65% 55% / 0.26);
  color: hsl(var(--h) 80% 82%);
}

/* ── recorded walkthrough ── */
/* Starts [hidden]; main.js unhides it only once the source loads, so a page
   with no video file yet shows the playback console alone rather than a
   broken player. */
.video-demo {
  max-width: 880px; margin: 0 auto 46px;
  background: linear-gradient(172deg, #0D1424, #070B15);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.video-demo[hidden] { display: none; }
.video-demo video {
  width: 100%; height: auto; display: block;
  background: #05070E; aspect-ratio: 16 / 9;
}
.video-demo figcaption {
  padding: 13px 18px; font-size: 0.85rem; color: var(--text-soft);
  border-top: 1px solid var(--line); text-align: center;
}

/* ── demo console ── */
.console {
  background: linear-gradient(172deg, #0D1424, #070B15);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  max-width: 780px; margin: 0 auto;
}
.console-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(255,255,255,0.032);
  border-bottom: 1px solid var(--line);
}
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2C3752; }
.console-bar .dots i:first-child { background: #FF5F57; }
.console-bar .dots i:nth-child(2) { background: #FEBC2E; }
.console-bar .dots i:nth-child(3) { background: #28C840; }
.console-bar .title {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft);
  margin-left: 6px;
}
.console-bar .btn { margin-left: auto; }

.console-body { padding: 22px; min-height: 330px; }

/* chat / transcript bubbles */
.turn { display: flex; gap: 11px; margin-bottom: 15px; align-items: flex-end; }
.turn.right { flex-direction: row-reverse; }
.turn .av {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
  font-family: var(--font-head);
}
.turn.left .av  { background: hsl(var(--h) 70% 50% / 0.2); color: hsl(var(--h) 90% 78%); border: 1px solid hsl(var(--h) 70% 55% / 0.34); }
.turn.right .av { background: rgba(255,255,255,0.07); color: var(--text-mid); border: 1px solid var(--line); }
.bubble {
  max-width: 76%; padding: 11px 15px; border-radius: 15px;
  font-size: 0.93rem; line-height: 1.55;
}
.turn.left  .bubble { background: hsl(var(--h) 62% 26% / 0.4); border: 1px solid hsl(var(--h) 65% 50% / 0.26); border-bottom-left-radius: 5px; }
.turn.right .bubble { background: rgba(255,255,255,0.055); border: 1px solid var(--line); border-bottom-right-radius: 5px; }
.bubble .who {
  display: block; font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 4px;
}

.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-soft);
  animation: blink 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%,60%,100% { opacity: 0.25; } 30% { opacity: 1; } }

/* log / terminal rows */
.logline {
  font-family: var(--font-mono); font-size: 0.82rem;
  padding: 7px 11px; margin-bottom: 6px; border-radius: 7px;
  background: rgba(255,255,255,0.03); border-left: 2px solid hsl(var(--h) 80% 55%);
  color: var(--text-mid); display: flex; gap: 11px;
}
.logline .t { color: var(--text-soft); flex-shrink: 0; }
.logline .ok { color: #8DF0B4; }
.logline .warn { color: #FFCE73; }

/* data table */
.dtable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dtable th {
  text-align: left; padding: 10px 12px; font-size: 0.68rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-soft);
  border-bottom: 1px solid var(--line); font-weight: 600;
}
.dtable td { padding: 11px 12px; border-bottom: 1px solid rgba(160,185,255,0.07); color: var(--text-mid); }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td b { color: var(--text); font-weight: 600; }
.dtable .pos { color: #8DF0B4; }
.dtable .neg { color: #FF9A9A; }
/* a coloured cell must win over the generic bold-cell colour above,
   otherwise a <b> inside it silently reverts to body text */
.dtable .pos b, .dtable .neg b { color: inherit; }
.dtable .tag {
  font-size: 0.72rem; padding: 3px 9px; border-radius: 999px;
  background: hsl(var(--h) 60% 50% / 0.16); color: hsl(var(--h) 88% 80%);
  border: 1px solid hsl(var(--h) 65% 55% / 0.3);
}
.table-scroll { overflow-x: auto; }

/* honest-numbers callout */
.honest {
  border-radius: var(--radius); padding: 26px 28px;
  background: rgba(255,206,115,0.07); border: 1px solid rgba(255,206,115,0.28);
}
.honest h3 { color: #FFCE73; font-size: 1.1rem; margin-bottom: 10px; display: flex; gap: 9px; align-items: center; }
.honest p { color: var(--text-mid); font-size: 0.95rem; }
.honest p + p { margin-top: 10px; }

/* two-column feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.tick-list { list-style: none; display: grid; gap: 13px; }
.tick-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-mid); font-size: 0.97rem; }
.tick-list li::before {
  content: '✓'; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 700;
  background: hsl(var(--h) 70% 50% / 0.18); color: hsl(var(--h) 90% 76%);
}

/* prev/next agent nav */
.agent-nav {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 34px; margin-top: 12px;
}
.agent-nav a { color: var(--text-mid); font-size: 0.92rem; }
.agent-nav a:hover { color: var(--text); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1000px) {
  .agent-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .agent-hero-grid .portrait-wrap { max-width: 340px; margin: 0 auto; }
  .contact-grid, .split { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* Drawer takes over at 1080px. Three service pills plus the CTA need the room;
   below this they wrapped onto a second line and overlapped the logo. */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  /* the CTA wraps to two lines and crowds the logo at narrow widths —
     the drawer already carries Contact, so drop it here */
  .nav-cta { display: none; }
  section { padding: 64px 0; }
  .masthead { padding: 66px 0 46px; }
}
@media (max-width: 560px) {
  .plaque-grid { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid { grid-template-columns: 1fr; }
  .topbar { justify-content: center; text-align: center; font-size: 0.74rem; }
  .console-body { padding: 15px; }
  .bubble { max-width: 84%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  /* every motion variant lands in its finished state, never mid-transition */
  .reveal, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1 !important; transform: none !important; }
  .bar-fill { transition: none !important; }
  .scroll-progress { display: none; }
  .wall-bg { transform: none !important; }
  .plaque { transform: none !important; }
}

@media print {
  nav, .drawer, .scrim, .topbar, .wall-bg { display: none; }
  body { background: #fff; color: #000; }
}
