/* ==========================================================================
   Copperbelly — design system
   Palette, type and glow are taken from the CAI platform's own theme
   (~/cbai/theme.json, "landing"), so the website and the product read as one
   company. See 32-phase2-brief.md.
   ========================================================================== */

/* --- fonts: self-hosted. A company selling "your data never leaves the
       building" should not phone a font CDN on every page load. Both files
       are variable, so one file covers every weight. ------------------- */
@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel-var.woff2') format('woff2-variations');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-var.woff2') format('woff2-variations');
  font-weight: 100 700; font-style: normal; font-display: swap;
}

:root {
  /* ground + surfaces */
  --bg:        #000000;
  --surface:   #0c0a08;
  --surface2:  #141008;
  --border:    #1e1608;
  --border2:   #2e2010;

  /* copper — the primary */
  --copper:       #c17f3a;
  --copper-light: #e8a84a;
  --copper-dark:  #7a4e1e;

  /* verdigris — the secondary. Aged-copper patina; carries Home/consumer. */
  --verdigris:      #7ab5a0;
  --verdigris-dim:  #4d7a6c;

  --text:     #d4b896;   /* warm parchment, never pure white */
  --text-hi:  #f0dcc0;
  --text-dim: #a98861;
  --text-mut: #7d6446;

  --glow: rgba(193,127,58,0.38);
  --radius: 3px;

  /* PAGE ACCENT. Every interior-page component below is drawn in --accent
     rather than a hard-coded colour, so a page re-themes itself with one
     class on <body>. Default is copper (business/primary); `.page--home`
     swaps the trio to verdigris. Rule 3 of the design system, made
     mechanical. --accent-ink is the text colour that sits ON an accent fill;
     both pass AA. */
  --accent:      var(--copper);
  --accent-dim:  var(--copper-dark);
  --accent-ink:  #180e03;

  --font-head: 'Cinzel', 'Iowan Old Style', Palatino, Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shell: 1180px;
}

/* --- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-light); text-decoration: none; }
a:hover { color: var(--text-hi); }

/* Visible focus for keyboard users — the old site had none at all. */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper-light);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--text-hi);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4.15rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.6rem); }
h3 { font-size: clamp(1.13rem, 1.04rem + 0.4vw, 1.3rem); }
p  { margin: 0 0 1.15em; max-width: var(--measure); }

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }

/* The header is sticky, so an in-page jump (#install, #contact) would land
   with its heading hidden underneath it. Offset every anchorable element by
   the header's height plus breathing room. */
[id] { scroll-margin-top: 88px; }

/* Section eyebrow — small caps label above a heading. */
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.735rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 1rem;
}
.eyebrow--verdigris { color: var(--verdigris); }

.lede { font-size: clamp(1.06rem, 1rem + 0.4vw, 1.24rem); color: var(--text-dim); }

/* --- skip link --------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--copper); color: #150d04; padding: 0.7rem 1.2rem;
  font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* --- header ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-head__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
  width: 100%;
  padding-inline: clamp(1rem, 2.2vw, 1.5rem);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand img.brand__mark { width: 34px; }
.brand img.brand__type { width: 154px; }

.nav { display: flex; align-items: center; gap: 8px; }

/* Nav items match the CAI platform's topbar buttons exactly
   (`.cb-topbar-btn` in ~/cbai/landing/index.html) so the site header and the
   product header read as the same system: boxed, uppercase, letter-spaced.
   Scoped with `>` so the links INSIDE the services panel are not affected. */
.nav > a,
.nav__btn {
  height: 36px;
  min-width: 84px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nav > a:hover,
.nav__btn:hover,
.nav__group:hover .nav__btn,
.nav__btn[aria-expanded="true"] {
  border-color: var(--copper);
  color: var(--copper-light);
  background: rgba(188,121,95,0.08);
}

/* The one emphasised nav item. Same geometry as its siblings so it stays in
   the family — only the fill changes. This mirrors how the platform itself
   promotes a button (`.del-btn-confirm`: filled background + lighter border +
   a coloured glow), in copper instead of danger red.
   Dark text on copper, not white: #180e03 on #c17f3a is 5.7:1 and passes
   WCAG AA for 13px text; white would be 3.3:1 and fail. */
.nav > a.is-cta {
  background: linear-gradient(180deg, var(--copper-light), var(--copper));
  border-color: var(--copper-light);
  color: #180e03;
  box-shadow: 0 3px 14px rgba(193,127,58,0.24);
}
.nav > a.is-cta:hover {
  background: linear-gradient(180deg, #f3b85b, var(--copper-light));
  border-color: #f3b85b;
  color: #180e03;
  box-shadow: 0 5px 20px rgba(193,127,58,0.40);
}

.nav-toggle {
  display: none;
  height: 36px; min-width: 84px; padding: 0 16px;
  align-items: center; justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--text-dim);
  font-family: inherit; font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] {
  border-color: var(--copper); color: var(--copper-light);
  background: rgba(188,121,95,0.08);
}


/* --- services dropdown --------------------------------------------------
   Built on a real <button> with aria-expanded, not a hover-only CSS menu:
   hover menus are unreachable by keyboard and unusable on touch. Hover opens
   it on pointer devices as a convenience; click/Enter/Space/Escape all work
   regardless. */
.nav__group { position: relative; }

.nav__chev { transition: transform 0.2s ease; opacity: 0.8; margin-right: -2px; }
.nav__btn[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 9px); left: 0;
  width: 330px; padding: 0.45rem;
  background: var(--surface2);
  border: 1px solid var(--border2); border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0,0,0,0.72);
  z-index: 120;
}
.nav__menu[hidden] { display: none; }

.nav__menu a {
  display: block; padding: 0.62rem 0.7rem; border-radius: var(--radius);
  color: var(--text); transition: background 0.15s ease;
}
.nav__menu a:hover, .nav__menu a:focus-visible { background: rgba(193,127,58,0.10); }
.nav__menu a strong {
  display: block; font-size: 0.9rem; font-weight: 600;
  color: var(--text-hi); margin-bottom: 0.12rem;
}
.nav__menu a span {
  display: block; font-size: 0.795rem; line-height: 1.45; color: var(--text-mut);
}
/* --- hero -------------------------------------------------------------- */
.hero { position: relative; padding: clamp(0.85rem, 2.1vh, 1.35rem) 0 clamp(2.6rem, 6vh, 4.2rem); overflow: hidden; }
.hero__in { position: relative; z-index: 2; text-align: center; }
.hero__mark { width: clamp(320px, 44vw, 530px); margin: 0 auto 0.3rem; position: relative; z-index: 2; }
.hero h1 { margin-bottom: 0.24em; }
.hero h1 .accent {
  color: var(--copper);
  display: block;
}
.hero__tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.14rem, 1.02rem + 0.62vw, 1.5rem);
  letter-spacing: 0.008em;
  color: var(--text);
  max-width: 34ch;
  margin: 0 auto 0.9rem;
}
.hero__sub {
  font-size: clamp(1rem, 0.95rem + 0.34vw, 1.14rem);
  color: var(--text-dim);
  max-width: 60ch; margin: 0 auto 1.75rem;
}

/* The flame. Carried over from the original site — the one piece of real
   craft it had — with its stops retuned from ember orange to copper so the
   homepage and the CAI hub read as the same brand.
   Four layers on independent cycles (11s/6s/4s/7s) so they never visibly sync.
   Opacity only, promoted to the compositor: cheap to animate. */
.flame { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.flame::before {                      /* L0 — room wash */
  content: ''; position: absolute; top: -10%; left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: min(1480px, 100vw); height: 88%;
  background: radial-gradient(ellipse at 50% 30%,
      rgba(193,127,58,0.10)  0%,
      rgba(122,78,30,0.035) 42%,
      transparent           68%);
  filter: blur(50px);
  animation: flame-pulse 11s ease-in-out infinite;
}
.flame__core { position: absolute; top: -7%; left: 50%; transform: translateX(-50%); width: min(880px, 97vw); height: 640px; }
.flame__core::before {                /* L1 — wide halo */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 46%,
      rgba(232,168,74,0.26)  0%,
      rgba(193,127,58,0.13) 32%,
      rgba(122,78,30,0.04)  58%,
      transparent           76%);
  border-radius: 50%; filter: blur(44px);
  transform: translateZ(0);
  animation: flame-breathe 6s ease-in-out infinite;
}
.flame__core::after {                 /* L2 — hot inner core */
  content: ''; position: absolute; top: 12%; left: 26%; width: 48%; height: 52%;
  background: radial-gradient(ellipse at 50% 50%,
      rgba(255,214,150,0.30)  0%,
      rgba(232,168,74,0.18)  28%,
      rgba(193,127,58,0.05)  55%,
      transparent            75%);
  border-radius: 50%; filter: blur(26px);
  transform: translateZ(0);
  animation: flame-breathe 7s ease-in-out infinite reverse;
}
.flame__lick {                        /* L3 — mid flame, offset + irregular */
  position: absolute; top: -6%; left: 16%; width: 68%; height: 96%;
  background: radial-gradient(ellipse at 50% 62%,
      rgba(232,168,74,0.20)  0%,
      rgba(193,127,58,0.11) 38%,
      transparent           76%);
  border-radius: 45% 45% 50% 50% / 55% 55% 45% 45%;
  filter: blur(36px); transform: translateZ(0);
  animation: flame-lick 4s ease-in-out infinite;
}
@keyframes flame-breathe { 0%,100% { opacity: 0.66; } 50% { opacity: 1; } }
@keyframes flame-lick    { 0%,100% { opacity: 0.9; } 50% { opacity: 0.42; } }
@keyframes flame-pulse   { 0%,100% { opacity: 0.30; } 50% { opacity: 0.62; } }

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.955rem;
  padding: 0.78rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.17s ease, border-color 0.17s ease,
              color 0.17s ease, transform 0.17s ease;
}
.btn--primary {
  background: linear-gradient(180deg, var(--copper-light), var(--copper));
  color: #180e03;
  box-shadow: 0 0 0 rgba(193,127,58,0);
}
.btn--primary:hover {
  color: #180e03; transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(193,127,58,0.30);
}
.btn--ghost { border-color: var(--border2); color: var(--text); }
.btn--ghost:hover { border-color: var(--copper); color: var(--text-hi); background: rgba(193,127,58,0.07); }
.hero__actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* --- section scaffolding ----------------------------------------------- */
.section { padding: clamp(3.4rem, 8vh, 6rem) 0; }
.section--rule { border-top: 1px solid var(--border); }
.section__head { max-width: 62ch; margin-bottom: 2.6rem; }
.section__head p { color: var(--text-dim); margin-bottom: 0; }
/* A secondary heading partway down a section — e.g. "How a project runs"
   under the installation copy. Tighter than a full section head. */
.section__head--sub { margin-top: clamp(2.4rem, 5vw, 3.2rem); margin-bottom: 1.6rem; }
.section__head--sub h3 {
  font-family: var(--font-head); font-size: clamp(1.2rem, 1.06rem + 0.6vw, 1.5rem);
  color: var(--text-hi); margin: 0;
}

/* --- the three cards ---------------------------------------------------
   Business leads: it is the primary market, so it gets the wider column and
   the copper treatment. Home and Free stay plainly clickable, never demoted. */
.paths {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1.34fr 1fr 1fr;
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--surface2), var(--surface));
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
/* top hairline that lights up on hover */
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-c, var(--copper)), transparent);
  opacity: 0.45; transition: opacity 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-c, var(--copper));
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
}
.card:hover::before { opacity: 1; }
.card--home {
  --accent-c: var(--verdigris);
  background: linear-gradient(165deg, #0e1512, var(--surface));
  border-color: #24352f;
}
.card--home:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(122,181,160,0.12); }
.card--free { --accent-c: var(--copper-light); }

.card__tag {
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-c, var(--copper)); margin-bottom: 0.95rem;
}
.card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.32;
  letter-spacing: -0.005em;
  margin-bottom: 0.55rem;
  color: var(--text-hi);
}
.card--business h3 { font-size: clamp(1.24rem, 1.08rem + 0.7vw, 1.48rem); }
.card p { color: var(--text-dim); font-size: 0.945rem; margin-bottom: 1.3rem; }
.card__list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.card__list li {
  position: relative; padding-left: 1.15rem; margin-bottom: 0.42rem;
  font-size: 0.895rem; color: var(--text-dim);
}
.card__list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-c, var(--copper)); opacity: 0.85;
}
.card--free { background: none; border-style: dashed; }
.card--free:hover { background: linear-gradient(165deg, var(--surface2), var(--surface)); border-style: solid; }

.card__go {
  margin-top: auto; font-weight: 600; font-size: 0.925rem;
  color: var(--accent-c, var(--copper));
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.card__arrow { transition: transform 0.2s ease; }
.card:hover .card__arrow { transform: translateX(4px); }

/* The quote that makes the Home card concrete. */
.card__quote {
  font-family: var(--font-body); font-size: 1.0rem; font-style: italic;
  font-weight: 500; color: var(--verdigris); line-height: 1.45;
  border-left: 2px solid var(--verdigris-dim);
  padding-left: 0.85rem; margin: 0 0 1.1rem;
}

/* --- proof strip -------------------------------------------------------- */
.proof { display: grid; gap: 1.6rem 2.4rem; grid-template-columns: repeat(4, 1fr); }
.proof__item { border-top: 1px solid var(--border2); padding-top: 1.1rem; }
.proof__item h3 {
  font-family: var(--font-body); font-size: 0.945rem; font-weight: 600;
  color: var(--text-hi); margin-bottom: 0.3rem;
}
.proof__item p { font-size: 0.87rem; color: var(--text-mut); margin: 0; }

/* --- services ----------------------------------------------------------- */
.svc { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, 1fr); }
.svc__item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; background: var(--surface);
  transition: border-color 0.2s ease;
}
.svc__item:hover { border-color: var(--border2); }
.svc__item h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 1.06rem; letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
}
.svc__item p { font-size: 0.91rem; color: var(--text-dim); margin: 0; }

/* --- closing CTA -------------------------------------------------------- */
.cta { text-align: center; }
.cta h2 { margin-bottom: 0.4em; }
.cta p { margin-inline: auto; }

/* --- footer ------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--border); padding: 2.8rem 0 2rem; margin-top: 1rem; }
.foot__grid { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between; }
.foot__brand img { width: 132px; opacity: 0.85; margin-bottom: 0.75rem; }
.foot__brand p { font-size: 0.86rem; color: var(--text-mut); margin: 0; max-width: 34ch; }
.foot__links { display: flex; gap: 3rem; flex-wrap: wrap; }
.foot__col h4 {
  font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--copper); margin: 0 0 0.8rem; font-weight: 700;
}
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col li { margin-bottom: 0.42rem; }
.foot__col a { color: var(--text-dim); font-size: 0.885rem; }
.foot__col a:hover { color: var(--text-hi); }

.social { display: flex; gap: 0.35rem; margin-top: 1.2rem; }
.social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.social a img { width: 16px; height: 16px; opacity: 0.75; }
.social a:hover { border-color: var(--copper); transform: translateY(-2px); }
.social a:hover img { opacity: 1; }
/* Placeholders for accounts that don't exist yet (GitHub / Facebook / X).
   Kept per decision — future growth — but visibly distinct from live links,
   so the footer doesn't read as broken. Drop in a real href to promote one. */
.social a.is-soon { opacity: 0.36; }
.social a.is-soon:hover { opacity: 0.6; border-color: var(--border2); transform: none; }

.foot__base {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between;
  border-top: 1px solid var(--border); margin-top: 2.4rem; padding-top: 1.4rem;
  font-size: 0.83rem; color: var(--text-mut);
}
.foot__base a { color: var(--text-dim); }

/* ==========================================================================
   INTERIOR PAGES
   Everything below is the shared template for every page that is not the
   homepage. The homepage keeps its own hero (big mark + flame); interior
   pages get `.phero` instead and then compose the blocks below.
   All of it draws in --accent, so `.page--home` on <body> turns the whole
   page verdigris without touching a single component rule.
   ========================================================================== */

/* Page accent overrides. One class on <body>, per audience.
   Verdigris ink is very dark green rather than dark brown so a filled
   verdigris button doesn't read as a copper button that lost its colour. */
.page--home,
.accent-home {
  --accent:     var(--verdigris);
  --accent-dim: var(--verdigris-dim);
  --accent-ink: #06140f;
}

/* --- interior hero ------------------------------------------------------
   Same flame, no logo: the mark belongs to the homepage. Left-aligned,
   because interior pages are read rather than landed on. */
.phero { position: relative; overflow: hidden; padding: clamp(2.6rem, 7vh, 4.6rem) 0 clamp(2.2rem, 5vh, 3.4rem); }
.phero__in { position: relative; z-index: 2; }
.phero h1 { font-size: clamp(1.9rem, 1.4rem + 2.5vw, 3.5rem); margin-bottom: 0.3em; max-width: 30ch; }
.phero h1 .accent { color: var(--accent); display: block; }
.phero .lede { max-width: 58ch; margin-bottom: 1.9rem; }

/* The flame is tuned for the homepage's 470px mark. On an interior hero
   there is nothing that size to sit behind, so it drops back to a wash
   biased to the left, under the headline. */
.phero .flame__core { left: 34%; width: min(760px, 92vw); height: 470px; top: -14%; }

/* Facts under the hero. Deliberately not a card — it reads as a caption
   strip, so it can carry claims without looking like a feature list. */
.meta-row {
  display: flex; flex-wrap: wrap; gap: 0.55rem 2.2rem;
  max-width: none;                       /* overrides the global p measure */
  border-top: 1px solid var(--border2); padding-top: 1.1rem;
  font-size: 0.865rem; color: var(--text-mut);
}
.meta-row b { color: var(--text); font-weight: 600; }

/* --- the install cards --------------------------------------------------
   Six-up on desktop, three-up at tablet, stacked on phones. Same visual
   grammar as the homepage `.card` (gradient, hairline, hover lift) at a
   smaller scale, because there are six of them rather than three. */
.tiles { display: grid; gap: 1.05rem; grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative; overflow: hidden;
  color: inherit;                        /* so an <a class="tile"> isn't copper */
  background: linear-gradient(165deg, var(--surface2), var(--surface));
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 1.5rem 1.55rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4; transition: opacity 0.2s ease;
}
.tile:hover {
  transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
}
.tile:hover::before { opacity: 1; }
.tile .tile__tag {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-head); font-size: 0.685rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.85rem;
}
/* The number is the only monospaced thing on the page — it keeps the six
   tags optically aligned when the labels are different lengths. */
.tile .tile__num {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.7rem; letter-spacing: 0.04em; color: var(--text-mut);
  border: 1px solid var(--border2); border-radius: 2px;
  padding: 0.1rem 0.34rem; line-height: 1.4;
}
.tile h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 1.06rem; line-height: 1.32; letter-spacing: -0.005em;
  margin-bottom: 0.42rem;
}
.tile p { font-size: 0.9rem; color: var(--text-dim); margin: 0 0 0.9rem; }
.tile p:last-child { margin-bottom: 0; }

/* Two-up comparison. The whole point of this block is that one side is copper
   and the other verdigris — put `.accent-home` on the home column and every
   accent inside it flips, with no per-element rules. */
.compare { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
.compare .tile { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.4vw, 2.1rem); }
.compare .tile h3 { font-size: clamp(1.16rem, 1.05rem + 0.5vw, 1.34rem); margin-bottom: 0.5rem; }
.tile__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.tile__list li {
  position: relative; padding-left: 1.15rem; margin-bottom: 0.42rem;
  font-size: 0.895rem; color: var(--text-dim);
}
.tile__list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.85;
}
.tile__go {
  margin-top: auto; font-weight: 600; font-size: 0.925rem;
  color: var(--accent); display: inline-flex; align-items: center; gap: 0.45rem;
}
.tile__arrow { transition: transform 0.2s ease; }
.tile:hover .tile__arrow { transform: translateX(4px); }

/* --- split: prose beside a panel ---------------------------------------- */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); grid-template-columns: 1.15fr 1fr; align-items: start; }
.split--wide { grid-template-columns: 1fr 1fr; }
.split--below { margin-top: clamp(2rem, 4vw, 2.8rem); }

/* Arrow-marked claim list. Heavier than `.card__list` because these are the
   argument, not the specification. */
.claims { list-style: none; margin: 0 0 0.7rem; padding: 0; }
.claims li {
  position: relative; padding-left: 1.7rem; margin-bottom: 1.05rem;
  color: var(--text-dim); font-size: 0.945rem; max-width: var(--measure);
}
.claims li::before {
  content: '\2192'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-size: 1rem; line-height: 1.6;
}
.claims b { color: var(--text-hi); font-weight: 600; }

/* --- spec panel ---------------------------------------------------------
   A key/value readout, monospaced. It says the same thing as the claim list
   next to it in the language of a config file — which is the audience this
   page is arguing to. */
.spec {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.815rem; line-height: 2.05;
  overflow-x: auto;
}
.spec__row { display: flex; gap: 1rem; justify-content: space-between; white-space: nowrap; }
.spec__k { color: var(--text-mut); }
.spec__v { color: var(--accent); }
.spec__rule { border-top: 1px solid var(--border); margin: 0.7rem 0; }
.spec__dot { color: var(--verdigris); }

/* --- numbered process --------------------------------------------------- */
.steps { display: grid; gap: 1.4rem 1.6rem; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { border-top: 1px solid var(--border2); padding-top: 1.15rem; }
.step .step__num {
  font-family: var(--font-head); font-weight: 700; font-size: 1.55rem;
  line-height: 1; color: var(--accent); opacity: 0.55; margin-bottom: 0.55rem;
}
.step h3 {
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  margin-bottom: 0.3rem;
}
.step p { font-size: 0.885rem; color: var(--text-mut); margin: 0; }

/* --- pull quote ---------------------------------------------------------
   IBM Plex, not Cinzel: Cinzel has no true lowercase and a spoken sentence
   set in small caps reads as a monument, not as speech. */
.pull {
  font-family: var(--font-body); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.4; color: var(--accent);
  border-left: 2px solid var(--accent-dim);
  padding-left: clamp(0.9rem, 2vw, 1.4rem);
  margin: 0 0 1.4rem; max-width: 24ch;
}
.pull small { display: block; font-style: normal; font-size: 0.5em; color: var(--text-mut); margin-top: 0.7rem; letter-spacing: 0.02em; }

/* --- tag row ------------------------------------------------------------ */
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.tags li {
  border: 1px solid var(--border2); border-radius: 100px;
  padding: 0.32rem 0.85rem; font-size: 0.815rem; color: var(--text-dim);
}

/* --- contact card ------------------------------------------------------- */
.contact-card {
  background: linear-gradient(165deg, var(--surface2), var(--surface));
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
}
.contact-card h3 {
  font-family: var(--font-body); font-weight: 600; font-size: 1.16rem;
  margin-bottom: 0.5rem;
}
.contact-card > p { font-size: 0.925rem; color: var(--text-dim); margin-bottom: 1.4rem; }
.contact-row {
  display: flex; gap: 1rem; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border); padding: 0.7rem 0; font-size: 0.9rem;
}
.contact-row > span:first-child { color: var(--text-mut); font-size: 0.815rem; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-row a { color: var(--accent); word-break: break-word; }
.contact-row a:hover { color: var(--text-hi); }

/* --- accent button ------------------------------------------------------
   `.btn--primary` is hard-copper on purpose (it is the site-wide CTA fill).
   This one follows the page accent, for the CTA that belongs to the page
   rather than to the site. */
.btn--accent {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent));
  color: var(--accent-ink);
}
.btn--accent:hover {
  color: var(--accent-ink); transform: translateY(-1px);
  box-shadow: 0 6px 26px color-mix(in srgb, var(--accent) 34%, transparent);
}

/* Left-aligned action row, for interior pages. `.hero__actions` centres. */
.actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Cross-link back out of a page to its sibling. */
.aside-note {
  border-left: 2px solid var(--border2); padding-left: 1rem;
  font-size: 0.9rem; color: var(--text-mut); margin-top: 2.2rem;
}

/* --- the schematic ------------------------------------------------------
   A drawing of the stack: gateway → PoE switch → Wi-Fi / CAI / cameras →
   the things people actually touch. Redrawn from scratch for this palette,
   not carried over: orthogonal elbow routing rather than diagonals, because
   a right-angled run reads as a wiring diagram and a diagonal reads as a
   network graph — and this is the former.

   Draw order matters. Traces, then pulses, then nodes on top, so a pulse
   travels the run and passes BEHIND each box rather than over it.
   Everything draws in --accent, so the same drawing serves a copper
   business page and a verdigris home page. ------------------------------ */
.schematic { width: 100%; max-width: 460px; margin-inline: auto; overflow: visible; }

.schematic__trace {
  fill: none;
  stroke: var(--border2);
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* The travelling packet. `pathLength="100"` normalises every run to the
   same 0-100 scale, so one dash pattern works on all five regardless of
   their real lengths — no per-path dasharray arithmetic. */
.schematic__pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 5 95;
  animation: sch-run 4.4s linear infinite;
  filter: drop-shadow(0 0 3px var(--accent));
}
@keyframes sch-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* Five runs on co-prime-ish durations and offset starts, so they never fall
   into step — the same trick the flame uses. */
.schematic__pulse--1 { animation-duration: 3.9s; animation-delay: 0s;    }
.schematic__pulse--2 { animation-duration: 5.3s; animation-delay: -1.1s; }
.schematic__pulse--3 { animation-duration: 4.6s; animation-delay: -2.3s; }
.schematic__pulse--4 { animation-duration: 6.1s; animation-delay: -3.2s; }
.schematic__pulse--5 { animation-duration: 5.7s; animation-delay: -4.4s; }

.schematic__node {
  fill: var(--surface);
  stroke: var(--border2);
  stroke-width: 1.1;
}
.schematic__dot { fill: var(--accent); opacity: 0.9; }
.schematic__dot--sm { opacity: 0.4; }

/* The node the page is actually selling. Accent stroke, tinted fill and a
   slow breath, so the eye lands on it without anything else moving. */
.schematic__node--key {
  stroke: var(--accent);
  fill: color-mix(in srgb, var(--accent) 11%, var(--surface));
  animation: sch-breathe 5.5s ease-in-out infinite;
}
@keyframes sch-breathe {
  0%, 100% { filter: drop-shadow(0 0 2px transparent); }
  50%      { filter: drop-shadow(0 0 7px var(--accent)); }
}

.schematic__label {
  fill: var(--text-mut);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 7.6px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.schematic__label--key { fill: var(--accent); }
/* Set inside the box rather than beneath it, so it needs to be a touch
   larger and tighter than the labels that float on the background. */
.schematic__label--in { font-size: 9.5px; letter-spacing: 0.08em; }

/* Boundary variant. The wiring schematic answers "what did you install";
   this one answers "where does the data go", which is the only question the
   business page is really arguing about. Same primitives — traces, pulses,
   nodes, labels — different geometry, so it costs one rect and two rules. */
.schematic__bound {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 5 4;
  opacity: 0.42;
}
/* The stub leaving the building, and the mark across it. Muted, never accent:
   accent is the thing that works, and this is the thing that doesn't. */
.schematic__blocked {
  fill: none;
  stroke: var(--text-mut);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: 0.55;
}
.schematic__label--edge { fill: var(--accent); opacity: 0.7; }
.schematic__label--lg { font-size: 13px; letter-spacing: 0.06em; }

/* --- hero with artwork beside it ---------------------------------------
   `.phero__grid` splits the hero; the fact strip stays outside it so it
   still spans the full width underneath both columns. */
.phero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: center;
}
.phero__art { position: relative; }


/* --- responsive --------------------------------------------------------- */
@media (max-width: 940px) {
  .paths { grid-template-columns: 1fr; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .phero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .schematic { max-width: 350px; }
  /* The SVG scales with its viewBox, so a label sized for the 460px
     drawing lands at ~6.5px once it shrinks. Size labels up in user
     units to hold their rendered size roughly steady. */
  .schematic__label { font-size: 10px; letter-spacing: 0.08em; }
  .schematic__label--in { font-size: 11px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-head__in.is-open { flex-wrap: wrap; padding-bottom: 0.8rem; }
  .site-head__in.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 6px; order: 3;
  }
  .site-head__in.is-open .nav > a { width: 100%; height: 40px; }
  .site-head__in.is-open .nav__group { width: 100%; }
  .site-head__in.is-open .nav__btn { width: 100%; height: 40px; justify-content: space-between; }
  .site-head__in.is-open .nav__menu {
    position: static; width: 100%; box-shadow: none;
    background: var(--surface); margin: 0.2rem 0 0.4rem;
  }
  .site-head__in.is-open .nav__menu a span { display: none; }

}
@media (max-width: 620px) {
  .svc { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .meta-row { gap: 0.4rem 1.4rem; }
  .brand img.brand__type { width: 122px; }
  .foot__links { gap: 1.8rem; }
}

/* --- reduced motion ----------------------------------------------------
   The original ran four infinite animations unconditionally. */
@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;
  }
  .flame::before, .flame__core::before, .flame__core::after, .flame__lick { opacity: 0.7; }
  /* A frozen pulse is just a stray dash sitting on the wire, so remove it
     entirely rather than pausing it. The traces and nodes still read. */
  .schematic__pulse { display: none; }
  .schematic__node--key { filter: drop-shadow(0 0 5px var(--accent)); }
}
