/* einfobytes technologies — site styles
   Tokens first; components below. Everything follows the logo: logo navy (#103077),
   Ubuntu type (the logo's letterforms), and the logo's rounded bar (assets/img/bar.svg),
   which is the shape of every "bit" on the site. */

:root {
  --paper: #F5F7FC;
  --paper-2: #E8EDF8;
  --navy: #103077;        /* logo colour */
  --navy-2: #22449A;      /* lines and "off" bits on navy */
  --navy-deep: #0A1F52;   /* footer */
  --electric: #2A62F0;    /* highlight on light backgrounds */
  --accent: #8DB8FF;      /* highlight on navy backgrounds */
  --mist: #B8C5E0;
  --ink: #0E1A38;
  --muted: #4A5675;
  --line: #D5DCEC;

  --bar: url("../img/bar.svg");

  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Classic scale: 12 14 16 18 21 24 36 48 60 72 */
  --t-12: 0.75rem;
  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-21: 1.3125rem;
  --t-24: 1.5rem;
  --t-36: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
  --t-48: clamp(2.125rem, 1.4rem + 3vw, 3rem);
  --t-72: clamp(2.6rem, 1.2rem + 5.6vw, 4.75rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --max: 1200px;
  --radius-s: 4px;
  --radius-m: 12px;
  --radius-l: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-18);
  line-height: 1.55;
  font-feature-settings: "ss01", "kern";
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
  border-radius: var(--radius-s);
}
.skip:focus { top: 1rem; }

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

/* ---------- Logo bar shape ---------- */

/* Anything with .barshape is clipped to the rounded bar from the logo. */
.barshape,
.byte i,
.bit,
.bars i {
  -webkit-mask: var(--bar) center / 100% 100% no-repeat;
  mask: var(--bar) center / 100% 100% no-repeat;
}

/* Eyebrow: the three logo bars, small, then a label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-14);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.bars { display: inline-grid; gap: 2px; flex: none; }
.bars i { display: block; width: 22px; height: 8px; background: var(--navy); }
.bars i:nth-child(1) { margin-left: 5px; }
.bars i:nth-child(3) { margin-left: 6px; }

/* ---------- Byte glyph (service marks): 8 bits as 4 rows of 2 logo bars ---------- */

.byte {
  display: inline-grid;
  grid-template-columns: repeat(2, calc(var(--b, 7px) * 1.5));
  gap: calc(var(--b, 7px) / 5);
  flex: none;
}
.byte i {
  width: calc(var(--b, 7px) * 1.5);
  height: calc(var(--b, 7px) * 0.56);
  background: var(--mist);
}
.byte i.on { background: var(--navy); }
.on-dark .byte i { background: var(--navy-2); }
.on-dark .byte i.on { background: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand .logo { height: 40px; width: auto; }
@media (max-width: 480px) { .brand .logo { height: 34px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-size: var(--t-16);
  font-weight: 500;
  border-radius: var(--radius-s);
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--navy);
  border-radius: 0;
}

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 700;
  font-size: var(--t-16);
  background: none;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; font-size: var(--t-18); border-radius: 0; }
  .nav-links a:hover { background: none; }
  .nav-links a[aria-current="page"] { box-shadow: none; text-decoration: underline; }
  .nav-links .btn { margin-top: 0.5rem; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  font-size: var(--t-16);
  line-height: 1;
  padding: 1rem 1.5rem;
  border-radius: 999px; /* rounded like the logo bars */
  border: 2px solid var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--electric); border-color: var(--electric); }
.on-dark .btn-primary { background: #fff; border-color: #fff; color: var(--navy); }
.on-dark .btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.nav-links .btn { padding: 0.7rem 1.1rem; margin-left: 0.5rem; color: #fff; }
.nav-links .btn:hover { background: var(--electric); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-dark + .section,
.section + .section-dark { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.section-head h2 { font-size: var(--t-48); }
.section-head p { color: var(--muted); max-width: 52ch; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
}

.section-dark {
  background: var(--navy) radial-gradient(120% 140% at 100% 0%, #1D4299 0%, transparent 60%);
  color: var(--paper);
}
.section-dark .muted, .section-dark .section-head p { color: var(--mist); }

.lede { font-size: var(--t-21); line-height: 1.5; color: var(--muted); max-width: 46ch; }

/* ---------- Hero (home) ---------- */

.hero {
  padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 7rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--t-72);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 1.75rem;
  max-width: 13ch;
  color: var(--navy);
}
.hero .lede { margin-bottom: 2.25rem; }

.bitfield {
  justify-self: end;
  width: min(100%, 440px);
}
.bitfield-grid {
  display: grid;
  gap: 9px;
}
.bitrow {
  display: grid;
  grid-template-columns: repeat(8, 1fr) 1.4fr;
  gap: 4px;
  align-items: center;
}
/* Each bit is one logo bar: pale when 0, navy when 1. */
.bit {
  aspect-ratio: 124 / 46;
  border: 0;
  padding: 0;
  background: #DCE3F2;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
}
.bit:hover { background: var(--mist); }
.bit:active { transform: scale(0.9); }
.bit.on { background: var(--navy); }
.bit.on:hover { background: #24479E; }
.bitrow.changed .bit.on { background: var(--electric); }
.bitchar {
  font-weight: 700;
  font-size: clamp(1.1rem, 0.8rem + 1.2vw, 1.6rem);
  line-height: 1;
  padding-left: 0.4rem;
  color: var(--navy);
  min-width: 1.5ch;
}
.bitfield-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
  font-size: var(--t-14);
  color: var(--muted);
}
.bitfield-foot button {
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.bitfield-foot button[hidden] { display: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bitfield { justify-self: start; width: min(100%, 380px); }
}

/* ---------- Services list (rows, not cards) ---------- */

.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.service {
  display: grid;
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 1.25rem 2.5rem;
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service .byte { --b: 18px; margin-top: 0.35rem; }
.service h3 { font-size: var(--t-36); color: var(--navy); }
.service h3 a { text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.service p { color: var(--muted); }
.service ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t-16);
  font-weight: 500;
}
.service ul li { padding-block: 0.2rem; }
.service ul li::before {
  content: "";
  display: inline-block;
  width: 16px; height: 6px;
  margin-right: 0.6rem;
  background: var(--navy);
  vertical-align: middle;
  -webkit-mask: var(--bar) center / 100% 100% no-repeat;
  mask: var(--bar) center / 100% 100% no-repeat;
}
@media (max-width: 960px) {
  .service { grid-template-columns: 52px 1fr; }
  .service > :nth-child(n+3) { grid-column: 2; }
}

/* ---------- Process (a real sequence, so it is numbered) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 0 1.75rem 0 0;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 4rem; height: 1.5rem;
  -webkit-mask: var(--bar) center / 100% 100% no-repeat; /* the step number sits in a logo bar */
  mask: var(--bar) center / 100% 100% no-repeat;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  font-size: var(--t-14);
  line-height: 1;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 4.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--navy-2);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--t-24); margin-bottom: 0.6rem; letter-spacing: -0.015em; }
.steps p { font-size: var(--t-16); color: var(--mist); max-width: 30ch; }
.steps .dur { display: block; margin-top: 0.9rem; font-size: var(--t-14); font-weight: 700; color: var(--accent); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps li { padding: 0 0 0 5rem; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { top: 2rem; bottom: -1.5rem; left: 1.95rem; width: 2px; height: auto; right: auto; }
  .steps h3 { padding-top: 0; }
}

/* ---------- Fit / who we work with ---------- */

.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 4rem;
}
.fit h3 { font-size: var(--t-24); margin-bottom: 1rem; letter-spacing: -0.015em; }
.fit ul { margin: 0; padding-left: 1.2rem; }
.fit li { margin-bottom: 0.6rem; max-width: 52ch; }
.fit li::marker { color: var(--navy); }
.fit .not li::marker { color: var(--muted); }
.fit .not { color: var(--muted); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* ---------- Engagement table ---------- */

.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--navy);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.model { padding: 2rem; }
.model + .model { border-left: 1px solid var(--line); }
.model.featured { background: var(--navy); color: #fff; }
.model.featured p, .model.featured li { color: var(--mist); }
.model h3 { font-size: var(--t-24); margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.model .for { font-weight: 700; font-size: var(--t-16); margin-bottom: 1.25rem; }
.model.featured .for { color: var(--accent); }
.model p { color: var(--muted); font-size: var(--t-16); margin-bottom: 1rem; }
.model ul { margin: 0; padding-left: 1.1rem; font-size: var(--t-16); }
.model li { margin-bottom: 0.35rem; }
@media (max-width: 900px) {
  .models { grid-template-columns: 1fr; }
  .model + .model { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- CTA band ---------- */

.cta-band {
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* The logo mark, oversized and faint, behind the call to action */
.deco-mark {
  position: absolute;
  z-index: -1;
  right: -4rem;
  top: 50%;
  height: 150%;
  width: auto;
  transform: translateY(-50%);
  filter: brightness(0) invert(1);
  opacity: 0.07;
  pointer-events: none;
}
@media (max-width: 760px) { .deco-mark { right: -8rem; height: 110%; } }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: end;
}
.cta-band h2 { font-size: var(--t-48); max-width: 18ch; margin-bottom: 1rem; }
.cta-band p { color: var(--mist); max-width: 50ch; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */

.page-head { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.page-head h1 {
  font-size: var(--t-72);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--navy);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

/* ---------- Service detail (services page) ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2rem 4rem;
  scroll-margin-top: 90px;
}
.detail-title { position: sticky; top: 110px; align-self: start; }
.detail-title .byte { --b: 24px; margin-bottom: 1.5rem; }
.detail-title h2 { font-size: var(--t-48); margin-bottom: 1rem; color: var(--navy); }
.detail-title .code { font-size: var(--t-14); color: var(--muted); }
.detail-body > p { font-size: var(--t-21); line-height: 1.5; margin-bottom: 2.5rem; max-width: 50ch; }
.detail-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}
.detail-cols h3 { font-size: var(--t-18); letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.detail-cols ul { margin: 0; padding-left: 1.1rem; font-size: var(--t-16); color: var(--muted); }
.detail-cols li { margin-bottom: 0.4rem; }
.detail-cols li::marker { color: var(--navy); }
.stack { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0 !important; }
.stack li {
  font-size: var(--t-14);
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin: 0 !important;
}
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .detail-title { position: static; }
}
@media (max-width: 560px) { .detail-cols { grid-template-columns: 1fr; } }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--t-16);
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
}
.jump a:hover { background: var(--navy); color: #fff; }
.jump a:hover .byte i { background: var(--navy-2); }
.jump a:hover .byte i.on { background: var(--accent); }
.jump .byte { --b: 8px; }

/* ---------- About ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 2rem 4rem;
}
.story h2 { font-size: var(--t-36); }
.prose p { margin-bottom: 1.25rem; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

.beliefs { display: grid; gap: 0; border-top: 2px solid var(--paper); }
.belief {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem 4rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--navy-2);
}
.belief h3 { font-size: var(--t-24); letter-spacing: -0.015em; }
.belief p { color: var(--mist); max-width: 56ch; }
@media (max-width: 760px) {
  .story, .belief { grid-template-columns: 1fr; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--navy);
}
.fact { padding: 1.5rem 1.5rem 0 0; }
.fact dt { font-size: var(--t-14); color: var(--muted); margin-bottom: 0.4rem; }
.fact dd { margin: 0; color: var(--navy); font-weight: 700; font-size: var(--t-24); letter-spacing: -0.02em; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; } }

.roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem;
}
.roles h3 { font-size: var(--t-21); letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.roles p { color: var(--muted); font-size: var(--t-16); }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3rem 5rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field label,
.field legend {
  display: block;
  font-weight: 700;
  font-size: var(--t-16);
  margin-bottom: 0.5rem;
  padding: 0;
}
.field .hint { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--t-16);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius-m);
  padding: 0.85rem 0.95rem;
  transition: border-color 0.15s;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px #C9DAFF;
}
.field [aria-invalid="true"] { border-color: #B3261E; }
.field .error { color: #B3261E; font-size: var(--t-14); font-weight: 500; margin-top: 0.4rem; }
.field .error:empty { display: none; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  font-size: var(--t-16);
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  border: 1.5px solid var(--mist);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.chip span:hover { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--electric); outline-offset: 2px; }

.form-status {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-s);
  background: var(--paper-2);
  border-left: 4px solid var(--navy);
  font-size: var(--t-16);
}
.form-status[hidden] { display: none; }

.aside { display: grid; gap: 2rem; }
.aside h2 { font-size: var(--t-21); letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.aside p, .aside address { color: var(--muted); font-style: normal; font-size: var(--t-16); }
.aside a { color: var(--ink); font-weight: 700; }
.aside .big { font-size: var(--t-24); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; }
.aside .big:hover { text-decoration: underline; }
.aside ol { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: var(--t-16); }
.aside ol li { margin-bottom: 0.5rem; }
.aside ol li::marker { color: var(--navy); font-weight: 700; }

/* ---------- FAQ ---------- */

.faq { border-top: 2px solid var(--navy); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-weight: 700;
  font-size: var(--t-21);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2.5px 100% no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; color: var(--muted); max-width: 64ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--mist);
  padding-block: 4rem 2rem;
  font-size: var(--t-16);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer .brand { margin-bottom: 1.25rem; }
.site-footer .logo { filter: brightness(0) invert(1); } /* white logo on navy */
.site-footer h2 { font-size: var(--t-16); color: #fff; font-weight: 700; letter-spacing: 0; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-2);
  font-size: var(--t-14);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .byte { --b: 40px; margin-bottom: 2rem; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
