/* ==========================================================================
   Sidryn . Design System
   Identity: Sidryn, home energy technology.
   Type: IBM Plex Sans (voice) + IBM Plex Mono (instrumentation labels).
   Motif: hairline circuit rails, indexed sections, square-cornered surfaces.
   ========================================================================== */

/* ---------- 0. Self hosted type ----------
   IBM Plex is served from this site rather than from a font CDN, so no visitor
   IP address is disclosed to a third party in order to render the page.
   IBM Plex is licensed under the SIL Open Font License 1.1. The licence text is
   kept alongside the files at assets/fonts/OFL.txt. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- 1. Tokens ---------- */
:root {
  /* Core palette */
  --ink:          #0B1220;   /* near-black blue, primary surface for dark bands */
  --ink-2:        #131E33;   /* raised surface on dark */
  --ink-3:        #1D2B45;   /* border on dark */
  --paper:        #FFFFFF;
  --paper-2:      #F5F7FA;   /* light band */
  --paper-3:      #EDF1F6;   /* light raised */

  --text:         #0B1220;
  --text-muted:   #55627A;
  --text-faint:   #636E80;   /* 5.16:1 on white, 4.80:1 on the pale band */
  --text-on-dark: #E9EDF4;
  --text-on-dark-muted: #97A3B8;

  --line:         #DCE3EC;
  --line-strong:  #C3CDDB;
  --field-line:   #838FA4;   /* form control boundary, 3.27:1 on white */

  /* Accents: used sparingly. Teal reads as live current. */
  --current:      #00726D;   /* 5.79:1 on white, 5.39:1 on the pale band */
  --current-lift: #2FD4C4;   /* on dark only */
  --load:         #C2762A;   /* energy/heat states in diagrams only */
  --load-lift:    #E9A94E;

  /* Type scale, fluid */
  --fs-micro:  0.6875rem;
  --fs-sm:     0.8125rem;
  --fs-base:   1.0625rem;
  --fs-lead:   clamp(1.125rem, 0.4vw + 1.05rem, 1.3125rem);
  --fs-h4:     clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --fs-h3:     clamp(1.3125rem, 0.8vw + 1.1rem, 1.6875rem);
  --fs-h2:     clamp(1.6rem, 1.5vw + 1.15rem, 2.45rem);
  --fs-h1:     clamp(2.15rem, 2.9vw + 1.15rem, 3.6rem);

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;     --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;
  --band: clamp(3.75rem, 7vw, 7.5rem);   /* vertical band rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1240px;
  --measure: 66ch;

  --radius: 3px;              /* deliberately sharp, technical */
  --radius-lg: 5px;
  --dur: 620ms;
  --ease: cubic-bezier(.22,.68,.32,1);
}

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -0.012em; }

p { margin: 0 0 var(--sp-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; max-width: var(--measure); }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--current);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--current-lift); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--ink); color: var(--text-on-dark);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; }

.band { padding-block: var(--band); position: relative; }
.band-tight { padding-block: calc(var(--band) * 0.62); }
.band-paper2 { background: var(--paper-2); }

.band-dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--text-on-dark); }
.band-dark .lead, .band-dark p { color: var(--text-on-dark-muted); }
.band-dark .eyebrow { color: var(--current-lift); }

.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 720px)  { .g-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .g-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .g-4 { grid-template-columns: repeat(4, 1fr); } }

/* Split: text column beside a figure */
.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(3rem, 5vw, 5.5rem); }
  .split-reverse > :first-child { order: 2; }
}

.stack > * + * { margin-top: var(--sp-5); }

/* ---------- 4. Section furniture ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--current);
  margin: 0 0 var(--sp-4);
}
.eyebrow .idx { color: var(--text-faint); font-weight: 400; }
.band-dark .eyebrow .idx { color: var(--text-on-dark-muted); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: -0.012em;
  max-width: 62ch;
}

.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head h2 + .lead { margin-top: var(--sp-4); }

/* Hairline circuit rail motif */
.rail {
  height: 1px; background: var(--line); border: 0; margin: 0;
  position: relative;
}
.rail::after {
  content: ""; position: absolute; left: 0; top: -2px;
  width: 5px; height: 5px; background: var(--current); border-radius: 50%;
}
.band-dark .rail { background: var(--ink-3); }
.band-dark .rail::after { background: var(--current-lift); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.82rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease),
              color 220ms var(--ease), transform 220ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn .arw { transition: transform 220ms var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn-primary { background: var(--current); color: #fff; }
.btn-primary:hover { background: #005B56; }
.band-dark .btn-primary,
.hero .btn-primary,
.page-head .btn-primary { background: var(--current-lift); color: var(--ink); }
.band-dark .btn-primary:hover,
.hero .btn-primary:hover,
.page-head .btn-primary:hover { background: #56E3D5; }

.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); background: var(--paper-2); }
.band-dark .btn-ghost,
.hero .btn-ghost,
.page-head .btn-ghost,
.site-header .btn-ghost { border-color: var(--ink-3); color: var(--text-on-dark); background: transparent; }
.band-dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.page-head .btn-ghost:hover { border-color: var(--text-on-dark); background: rgba(255,255,255,0.05); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Text link with moving arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: var(--fs-sm); font-weight: 500; color: var(--current);
  text-decoration: none; letter-spacing: 0.005em;
}
.tlink::after { content: "\2192"; transition: transform 220ms var(--ease); }
.tlink:hover::after { transform: translateX(4px); }
.tlink:hover { text-decoration: underline; }
.band-dark .tlink, .hero .tlink, .page-head .tlink { color: var(--current-lift); }

/* ---------- 6. Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2vw, 2rem);
  position: relative;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3, .card h4 { margin-bottom: var(--sp-3); }
.card h3, .aud-head h3 { font-size: var(--fs-h4); letter-spacing: -0.012em; }
.card p { color: var(--text-muted); font-size: 1rem; }
.card .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--fs-micro); letter-spacing: 0.12em;
  color: var(--current); display: block; margin-bottom: var(--sp-4);
}
.band-paper2 .card { background: var(--paper); }
.band-dark .card { background: var(--ink-2); border-color: var(--ink-3); }
.band-dark .card:hover { border-color: #2C3E5D; }
.band-dark .card p { color: var(--text-on-dark-muted); }
.band-dark .card .num { color: var(--current-lift); }

/* Card whose action should sit on the base line regardless of copy length */
.card-cta { display: flex; flex-direction: column; }
.card-cta .card-action { margin-top: auto; padding-top: var(--sp-5); }

/* Card with an accent top edge on hover */
.card-rail::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 2px;
  background: var(--current); transform: scaleX(0); transform-origin: left;
  transition: transform 340ms var(--ease);
}
.card-rail:hover::before { transform: scaleX(1); }
.band-dark .card-rail::before { background: var(--current-lift); }

/* Feature list with tick rails */
.speclist { list-style: none; padding: 0; margin: 0; max-width: none; }
.speclist li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.7rem 0; border-top: 1px solid var(--line);
  font-size: 1rem; color: var(--text-muted); margin: 0;
}
.speclist li:first-child { border-top: 0; padding-top: 0; }
.speclist li strong { color: var(--text); font-weight: 600; }
.speclist .dot {
  flex: none; width: 6px; height: 6px; margin-top: 0.62rem;
  background: var(--current); border-radius: 50%;
}
.band-dark .speclist li { border-color: var(--ink-3); color: var(--text-on-dark-muted); }
.band-dark .speclist li strong { color: var(--text-on-dark); }
.band-dark .speclist .dot { background: var(--current-lift); }

/* ---------- 7. Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,18,32,0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  color: var(--text-on-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.62rem; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name { font-weight: 600; letter-spacing: -0.02em; font-size: 1.02rem; }
.brand-name .sub { color: var(--text-on-dark-muted); font-weight: 400; }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.1rem); list-style: none; margin: 0; padding: 0; max-width: none; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 0.5rem 0.15rem; text-decoration: none;
  font-size: 0.875rem; color: var(--text-on-dark-muted);
  position: relative; transition: color 200ms var(--ease); white-space: nowrap;
}
.nav a:hover { color: var(--text-on-dark); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--current-lift); transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text-on-dark); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: transparent; cursor: pointer;
  border: 1px solid var(--ink-3); border-radius: var(--radius); color: inherit;
}
.nav-toggle span { position: relative; width: 17px; height: 1.5px; background: currentColor; display: block; transition: background-color 160ms; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor;
  transition: transform 260ms var(--ease), top 200ms var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top:  5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 68px 0 0; z-index: 99;
  background: var(--ink); border-top: 1px solid var(--ink-3);
  padding: var(--sp-6) var(--gutter) var(--sp-8);
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  /* visibility, not just opacity: a closed menu must not be reachable by the
     keyboard. Without this the links stay in the tab order while invisible. */
  visibility: hidden;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 0s linear 240ms;
}
@media (min-width: 1000px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mobile-nav ul { list-style: none; margin: 0 0 var(--sp-6); padding: 0; max-width: none; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--ink-3); }
.mobile-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; text-decoration: none; color: var(--text-on-dark);
  font-size: 1.18rem; letter-spacing: -0.015em;
}
.mobile-nav a[aria-current="page"] { color: var(--current-lift); }
@media (min-width: 1000px) { .mobile-nav { display: none; } }
body.nav-open { overflow: hidden; }


/* ---------- 7b. Grouped navigation ---------- */
.nav .has-menu { position: relative; }

.nav-parent {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: inherit; font-size: 0.875rem; color: var(--text-on-dark-muted);
  background: none; border: 0; padding: 0.5rem 0.15rem; margin: 0;
  cursor: pointer; position: relative;
  transition: color 200ms var(--ease);
}
.nav-parent:hover, .has-menu:hover .nav-parent { color: var(--text-on-dark); }
.nav-parent::after {
  content: ""; position: absolute; left: 0; right: 16px; bottom: 2px; height: 1px;
  background: var(--current-lift); transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav-parent:hover::after, .has-menu:hover .nav-parent::after { transform: scaleX(1); }
.nav-parent.is-active { color: var(--text-on-dark); }
.nav-parent.is-active::after { transform: scaleX(1); }
.nav-parent .chev { transition: transform 240ms var(--ease); opacity: 0.75; }
.nav-parent[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(370px, calc(100vw - 2rem));
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0,0,0,0.42);
  padding: 0.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  z-index: 120;
}
.dropdown::before {   /* keeps the pointer inside the group while travelling down */
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.has-menu:hover .dropdown,
.dropdown.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown[hidden] { display: block; }   /* animated, so visibility is driven by opacity */

.dropdown a {
  display: block; text-decoration: none;
  padding: 0.8rem 0.9rem; border-radius: var(--radius);
  transition: background-color 180ms var(--ease);
}
.dropdown a:hover { background: rgba(255,255,255,0.05); }
.dropdown a .t {
  display: block; font-size: 0.95rem; font-weight: 500; color: var(--text-on-dark);
  letter-spacing: -0.01em;
}
.dropdown a .d {
  display: block; margin-top: 0.2rem;
  font-size: 0.8125rem; line-height: 1.45; color: var(--text-on-dark-muted);
}
.dropdown a[aria-current="page"] .t { color: var(--current-lift); }

@media (prefers-reduced-motion: reduce) {
  .dropdown { transition: none; transform: translateX(-50%); }
  .has-menu:hover .dropdown, .dropdown.open { transform: translateX(-50%); }
  .nav-parent .chev { transition: none; }
}

/* Mobile: the same group, expandable */
.mobile-nav .m-group { border-bottom: 1px solid var(--ink-3); }
.mobile-nav .m-parent {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  width: 100%; padding: 1rem 0; margin: 0;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.18rem; letter-spacing: -0.015em;
  color: var(--text-on-dark); text-align: left;
}
.mobile-nav .m-parent.is-active { color: var(--current-lift); }
.mobile-nav .plus {
  position: relative; width: 14px; height: 14px; flex: none;
}
.mobile-nav .plus::before, .mobile-nav .plus::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}
.mobile-nav .plus::before { left: 0; top: 6px; width: 14px; height: 1.6px; }
.mobile-nav .plus::after  { top: 0; left: 6px; width: 1.6px; height: 14px; }
.mobile-nav .m-parent[aria-expanded="true"] .plus::after { transform: rotate(90deg); opacity: 0; }

.mobile-nav .m-sub { list-style: none; margin: 0 0 0.5rem; padding: 0 0 0.35rem 0; }
.mobile-nav .m-sub li { border-bottom: 0; }
.mobile-nav .m-sub a {
  font-size: 1rem; padding: 0.6rem 0 0.6rem 1.1rem;
  color: var(--text-on-dark-muted); position: relative;
}
.mobile-nav .m-sub a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 1px;
  background: var(--ink-3);
}
.mobile-nav .m-sub a[aria-current="page"] { color: var(--current-lift); }
.mobile-nav .m-sub a[aria-current="page"]::before { background: var(--current-lift); }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav .plus::before, .mobile-nav .plus::after { transition: none; }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--text-on-dark);
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero::before {
  /* faint engineering grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 25%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 25%, #000 20%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; width: 780px; height: 780px;
  right: -230px; top: -290px; pointer-events: none;
  background: radial-gradient(circle, rgba(47,212,196,0.13), transparent 62%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: clamp(2.75rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.02fr); } }

.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.hero h1 .accent { color: var(--current-lift); }
.hero .lead { color: var(--text-on-dark-muted); max-width: 54ch; }
.hero .eyebrow, .page-head .eyebrow { color: var(--current-lift); }
.hero .eyebrow .idx, .page-head .eyebrow .idx { color: var(--text-on-dark-muted); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: var(--sp-5); border-top: 1px solid var(--ink-3);
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--current-lift); }

/* Page header for interior pages */
.page-head {
  background: var(--ink); color: var(--text-on-dark);
  padding-block: clamp(3rem, 6.5vw, 5.5rem) clamp(2.75rem, 5.5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; width: 560px; height: 560px;
  right: -180px; bottom: -300px;
  background: radial-gradient(circle, rgba(47,212,196,0.10), transparent 65%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head .lead { color: var(--text-on-dark-muted); margin-top: var(--sp-5); }

/* Breadcrumb */
.crumb {
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-on-dark-muted); margin-bottom: var(--sp-5);
}
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--current-lift); }
.crumb .sep { opacity: 0.5; margin-inline: 0.5rem; }

/* ---------- 9. Figures and diagrams ---------- */
.figure {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); padding: clamp(1rem, 2.2vw, 1.75rem);
  overflow: hidden;
}
.band-dark .figure, .hero .figure {
  border-color: var(--ink-3);
  background: linear-gradient(180deg, #101A2C, #0C1424);
}
.figure figcaption {
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
}
.band-dark .figure figcaption, .hero .figure figcaption {
  border-color: var(--ink-3); color: var(--text-on-dark-muted);
}
.figure svg { width: 100%; height: auto; }

/* Borderless: for a hero illustration that should sit on the page, not in a box */
.figure-bare {
  border: 0 !important; background: none !important; padding: 0 !important;
}
.figure-bare figcaption { display: none; }

/* Diagram stroke animation */
.dash { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.in-view .dash { animation: draw 1500ms var(--ease) forwards; }
.in-view .dash.d2 { animation-delay: 180ms; }
.in-view .dash.d3 { animation-delay: 360ms; }
.in-view .dash.d4 { animation-delay: 540ms; }
.in-view .dash.d5 { animation-delay: 720ms; }
.in-view .dash.d6 { animation-delay: 900ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Travelling current pulse */
.pulse { animation: flow 3.1s linear infinite; }
.pulse.p2 { animation-delay: 0.5s; }
.pulse.p3 { animation-delay: 1.0s; }
.pulse.p4 { animation-delay: 1.5s; }
.pulse.p5 { animation-delay: 2.0s; }
.pulse.p6 { animation-delay: 2.5s; }
@keyframes flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -300; } }

.blink { animation: blink 2.6s ease-in-out infinite; }
.blink.b2 { animation-delay: 0.65s; }
.blink.b3 { animation-delay: 1.3s; }
@keyframes blink { 0%,100% { opacity: 0.25; } 45% { opacity: 1; } }

/* ---------- 10. Comparison ---------- */
.compare { display: grid; gap: var(--sp-5); }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
.compare-col {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 2.1rem); background: var(--paper);
}
.compare-col.is-sidryn { border-color: var(--current); box-shadow: 0 0 0 1px var(--current); }
.compare-tag {
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: var(--sp-4); display: block;
}
.is-sidryn .compare-tag { color: var(--current); }
.chain { list-style: none; padding: 0; margin: 0; max-width: none; }
.chain li {
  display: flex; align-items: center; gap: 0.7rem; margin: 0;
  padding: 0.6rem 0; font-size: 0.98rem; color: var(--text-muted);
}
.chain li .stepdot {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; color: var(--text-faint);
}
.is-sidryn .chain li .stepdot { border-color: var(--current); color: var(--current); }
.is-sidryn .chain li { color: var(--text); }

/* ---------- 11. Process / loop steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; gap: var(--sp-3); padding: clamp(1.35rem,2.4vw,1.9rem) 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) {
  .step { grid-template-columns: 86px minmax(0,1fr) minmax(0,1.25fr); gap: var(--sp-6); align-items: start; }
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .sn {
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.14em; color: var(--current); padding-top: 0.35rem;
}
.step h3 { font-size: var(--fs-h4); }
.step p { color: var(--text-muted); font-size: 1rem; margin: 0; }
.band-dark .step, .band-dark .step:last-child { border-color: var(--ink-3); }
.band-dark .step .sn { color: var(--current-lift); }
.band-dark .step p { color: var(--text-on-dark-muted); }

/* ---------- 12. Stats ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--paper); padding: clamp(1.3rem,2.4vw,1.9rem); }
.stat .v {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.05; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat .k { font-size: 0.95rem; color: var(--text-muted); margin-top: var(--sp-2); }
.band-dark .stats { background: var(--ink-3); border-color: var(--ink-3); }
.band-dark .stat { background: var(--ink-2); }
.band-dark .stat .v { color: #fff; }
.band-dark .stat .k { color: var(--text-on-dark-muted); }

.source-note {
  font-size: var(--fs-sm); color: var(--text-faint);
  margin-top: var(--sp-4); max-width: var(--measure);
}
.band-dark .source-note { color: var(--text-on-dark-muted); }

/* ---------- 13. Audience cards ---------- */
.aud { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.aud-head { padding: clamp(1.35rem,2.4vw,1.9rem); border-bottom: 1px solid var(--line); }
.aud-head h3 { margin-bottom: var(--sp-2); }
.aud-head .role {
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--current);
  display: block; margin-bottom: var(--sp-3);
}
.aud-body { padding: clamp(1.35rem,2.4vw,1.9rem); }

/* ---------- 14. Forms ---------- */
.form { display: grid; gap: var(--sp-5); }
@media (min-width: 720px) { .form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.005em; }
.field .hint { font-size: var(--fs-sm); color: var(--text-faint); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--field-line);
  border-radius: var(--radius); padding: 0.78rem 0.9rem; width: 100%;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--current); box-shadow: 0 0 0 3px rgba(0,114,109,0.18);
}
.field textarea { min-height: 148px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2355627A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.3rem; }
.form-status {
  border: 1px solid var(--current); background: rgba(0,114,109,0.06);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
  font-size: 0.98rem;
}
.form-error { font-size: var(--fs-sm); color: #B4372B; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B4372B; box-shadow: inset 0 0 0 1px #B4372B; }

/* ---------- 14b. Disclosure ---------- */
.disclose {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); overflow: hidden;
}
.disclose > summary {
  list-style: none; cursor: pointer;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.2rem, 2.2vw, 1.75rem);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  font-weight: 500; font-size: 1rem;
  transition: background-color 200ms var(--ease);
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary:hover { background: var(--paper-2); }
.disclose > summary .sig {
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--current);
  display: flex; align-items: center; gap: 0.6rem; flex: none;
}
.disclose > summary .sig::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 240ms var(--ease);
}
.disclose[open] > summary .sig::after { transform: rotate(-135deg) translate(-2px, -2px); }
.disclose-body {
  padding: 0 clamp(1.2rem, 2.2vw, 1.75rem) clamp(1.2rem, 2.2vw, 1.75rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.2rem, 2.2vw, 1.5rem);
}
.spectable { display: grid; gap: 0; }
.spectable div {
  display: grid; gap: 0.25rem 1.5rem; padding: 0.72rem 0;
  border-bottom: 1px solid var(--line); font-size: 0.98rem;
}
@media (min-width: 660px) { .spectable div { grid-template-columns: 210px minmax(0, 1fr); } }
.spectable div:last-child { border-bottom: 0; }
.spectable dt, .spectable .k { font-weight: 500; color: var(--text); margin: 0; }
.spectable dd, .spectable .v { color: var(--text-muted); margin: 0; }
.band-dark .disclose { background: var(--ink-2); border-color: var(--ink-3); }
.band-dark .disclose > summary:hover { background: #17233B; }
.band-dark .disclose-body, .band-dark .spectable div { border-color: var(--ink-3); }
.band-dark .spectable dt, .band-dark .spectable .k { color: var(--text-on-dark); }
.band-dark .spectable dd, .band-dark .spectable .v { color: var(--text-on-dark-muted); }
@media (prefers-reduced-motion: reduce) { .disclose > summary .sig::after { transition: none; } }

/* ---------- 14c. Timeline ---------- */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 1px;
  background: var(--line);
}
.band-dark .timeline::before { background: var(--ink-3); }
.tl-item { position: relative; padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2.4rem; top: 6px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--line-strong);
}
.tl-item::after {
  content: ""; position: absolute; left: calc(-2.4rem + 6px); top: 12px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong);
}
.tl-item.is-live::before { border-color: var(--current); }
.tl-item.is-live::after { background: var(--current); }
.band-dark .tl-item::before { background: var(--ink); border-color: var(--ink-3); }
.band-dark .tl-item::after { background: var(--ink-3); }
.band-dark .tl-item.is-live::before { border-color: var(--current-lift); }
.band-dark .tl-item.is-live::after { background: var(--current-lift); }
.tl-item .stage {
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--current);
  display: block; margin-bottom: 0.4rem;
}
.band-dark .tl-item .stage { color: var(--current-lift); }
.tl-item h3 { font-size: var(--fs-h4); margin-bottom: 0.45rem; }
.tl-item p { color: var(--text-muted); font-size: 1rem; max-width: 56ch; }
.band-dark .tl-item p { color: var(--text-on-dark-muted); }

/* ---------- 14d. Pull quote ---------- */
.quote {
  border-left: 3px solid var(--current);
  padding: 0.25rem 0 0.25rem clamp(1.25rem, 3vw, 2.25rem);
  margin: 0;
}
.band-dark .quote { border-left-color: var(--current-lift); }
.quote p {
  font-size: clamp(1.3rem, 1.4vw + 1.05rem, 1.85rem);
  line-height: 1.4; letter-spacing: -0.022em; color: var(--text);
  font-weight: 500; max-width: 30ch; margin: 0;
}
.band-dark .quote p { color: var(--text-on-dark); }
.quote footer {
  margin-top: var(--sp-5);
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-faint);
}
.band-dark .quote footer { color: var(--text-on-dark-muted); }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--text-on-dark);
  padding-block: clamp(3rem,5.5vw,4.75rem) var(--sp-6);
  border-top: 1px solid var(--ink-3);
}
.footer-top { display: grid; gap: var(--sp-7); padding-bottom: var(--sp-7); border-bottom: 1px solid var(--ink-3); }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,0.85fr)); gap: var(--sp-6); } }
.footer-top h2 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.footer-brand p { color: var(--text-on-dark-muted); font-size: 0.98rem; max-width: 34ch; margin-top: var(--sp-4); }
.fcol h3 {
  font-family: "IBM Plex Mono", monospace; font-size: var(--fs-micro);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-on-dark-muted); font-weight: 500; margin-bottom: var(--sp-4);
}
.fcol ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.fcol li { margin-bottom: 0.65rem; }
.fcol a { color: var(--text-on-dark); text-decoration: none; font-size: 0.95rem; }
.fcol a:hover { color: var(--current-lift); text-decoration: underline; }
.fcol .placeholder { color: var(--text-on-dark-muted); font-size: 0.95rem; }

.footer-bot {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between; align-items: center;
  padding-top: var(--sp-6);
  font-size: var(--fs-sm); color: var(--text-on-dark-muted);
}
.footer-bot ul { display: flex; flex-wrap: wrap; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; max-width: none; }
.footer-bot li { margin: 0; }
.footer-bot a { color: inherit; text-decoration: none; }
.footer-bot a:hover { color: var(--text-on-dark); text-decoration: underline; }

/* ---------- 16. Final CTA ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::after {
  content: ""; position: absolute; width: 700px; height: 700px;
  left: -180px; bottom: -420px; pointer-events: none;
  background: radial-gradient(circle, rgba(47,212,196,0.12), transparent 62%);
}
.cta-final .wrap { position: relative; z-index: 1; }
.cta-final h2 { max-width: 22ch; }

/* ---------- 17. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in-view { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal[data-delay="1"].in-view { transition-delay: 90ms; }
.reveal[data-delay="2"].in-view { transition-delay: 180ms; }
.reveal[data-delay="3"].in-view { transition-delay: 270ms; }
.reveal[data-delay="4"].in-view { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view { opacity: 1; transform: none; transition: none; }
  .dash { stroke-dashoffset: 0 !important; animation: none !important; }
  .pulse, .blink { animation: none !important; }
  .pulse { opacity: 0.8; }
  .blink { opacity: 1; }
  .btn:hover, .card:hover { transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 18. Print ---------- */
@media print {
  .site-header, .mobile-nav, .nav-toggle, .cta-final, .site-footer { display: none; }
  body { color: #000; background: #fff; }
  .band, .hero, .page-head { padding-block: 1.5rem; background: #fff !important; color: #000 !important; }
  .hero h1, .page-head h1 { color: #000 !important; }
}

/* ==========================================================================
   20. Compliance and accessibility additions
   Consent control, error summary, status disclosure and legal prose.
   ========================================================================== */

/* ---------- 20a. Consent checkbox ----------
   A real checkbox, unticked by default, sized to a comfortable target and
   given a boundary that meets the three to one non text contrast rule. */
.field-consent {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem;
  align-items: start;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); padding: var(--sp-4) var(--sp-5);
}
.field-consent input[type="checkbox"] {
  width: 22px; height: 22px; margin: 2px 0 0; flex: none;
  accent-color: var(--current);
  border: 1px solid var(--field-line); border-radius: 2px;
  cursor: pointer;
}
.field-consent label { font-size: 0.95rem; font-weight: 400; line-height: 1.55; cursor: pointer; }
.field-consent .form-error { grid-column: 1 / -1; margin: 0; }
.field-consent:has(input[aria-invalid="true"]) { border-color: #B4372B; }

/* ---------- 20b. Error summary ----------
   Announced on failed submission and focused, so a screen reader user is told
   what went wrong rather than being dropped silently into the first bad field. */
.form-summary {
  border: 1px solid #B4372B; border-left-width: 3px;
  background: rgba(180,55,43,0.05);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
}
.form-summary h2 { font-size: var(--fs-h4); margin: 0 0 var(--sp-3); color: #8E2A20; }
.form-summary ul { margin: 0; padding-left: 1.15rem; }
.form-summary li { margin-bottom: 0.35rem; }
.form-summary a { color: #8E2A20; }

/* ---------- 20c. Development status disclosure ----------
   Sits above the fold on every page. The product is not yet available, and
   that has to be visible without the visitor going looking for it. */
.status-strip {
  background: var(--ink-2); border-bottom: 1px solid var(--ink-3);
  color: var(--text-on-dark-muted);
}
.status-strip .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem;
  padding-block: 0.7rem; font-size: var(--fs-sm); line-height: 1.5;
}
.status-strip strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--current-lift); font-weight: 500;
}
.status-strip a { color: var(--text-on-dark); text-underline-offset: 3px; }

/* An in page version, for use beside a specific claim. */
.status-note {
  border-left: 2px solid var(--current); background: var(--paper-2);
  padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem; color: var(--text-muted); max-width: var(--measure);
}
.band-dark .status-note {
  border-left-color: var(--current-lift); background: var(--ink-2);
  color: var(--text-on-dark-muted);
}
.status-note strong { color: var(--text); }
.band-dark .status-note strong { color: var(--text-on-dark); }

/* ---------- 20d. Legal prose ----------
   Long form policy text. Readable measure, real headings, real lists. */
.legal { max-width: 72ch; }
.legal h2 {
  font-size: var(--fs-h3); margin: var(--sp-8) 0 var(--sp-4);
  scroll-margin-top: 90px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: var(--fs-h4); margin: var(--sp-6) 0 var(--sp-3); }
.legal p, .legal li { color: var(--text-muted); }
.legal ul, .legal ol { max-width: none; }
.legal li { margin-bottom: var(--sp-3); }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--current); }

.legal-table { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0 var(--sp-6); font-size: 0.95rem; }
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.legal-table th { color: var(--text); font-weight: 500; border-bottom-color: var(--line-strong); }
.legal-table td { color: var(--text-muted); }
.legal-table caption { text-align: left; color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.legal-scroll { overflow-x: auto; }

/* Contents list at the top of a policy. */
.legal-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); background: var(--paper-2); }
.legal-toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 var(--sp-3); font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; }
.legal-toc ol { margin: 0; padding-left: 1.25rem; }
.legal-toc li { margin-bottom: 0.3rem; }

/* A field the build fills in before launch. Deliberately conspicuous. */
.tbc {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.9em;
  background: rgba(194,118,42,0.12); border-bottom: 1px dashed #9A5C1F;
  color: #7A4917; padding: 0.1em 0.35em; border-radius: 2px;
}
.band-dark .tbc, .status-strip .tbc, .site-footer .tbc, .footer-legal .tbc {
  background: rgba(233,169,78,0.16); border-bottom-color: #E9A94E; color: #F3CE9C;
}

/* ---------- 20e. Footer business details ---------- */
.footer-legal {
  border-top: 1px solid var(--ink-3); margin-top: var(--sp-6); padding-top: var(--sp-5);
  font-size: var(--fs-sm); color: var(--text-on-dark-muted); line-height: 1.65;
}
.footer-legal p { margin: 0 0 var(--sp-2); max-width: 78ch; color: inherit; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal a { color: var(--text-on-dark); }

/* ==========================================================================
   Sidryn additions: logo, product renders, gallery
   ========================================================================== */
.logo { display: block; height: 26px; width: auto; }
.footer-brand .logo { height: 24px; }
.render { margin: 0; }
.render picture { display: block; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--ink-3); }
.render img { display: block; width: 100%; height: auto; }
.render figcaption { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--text-faint); }
.hero .render figcaption, .band-dark .render figcaption { color: var(--text-on-dark-muted); }
.band:not(.band-dark) .render picture { border-color: var(--line); }
.gallery { display: grid; gap: var(--sp-5); }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.caption-note { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-on-dark-muted); }
.split-top { align-items: start; }
.cta-final h2 { max-width: 20ch; }
.email-link { color: var(--current); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; word-break: break-word; }
