/* ==========================================================================
   Supervisory Commission · CILC
   Single stylesheet, written by hand. Inherits the CILC "Industry" system
   (cilclegal.org): Barlow / Barlow Condensed, steel blue, blueprint corners,
   square edges. Direction B: dark navy page, light condensed display type.
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  --navy-950: #142130;
  --navy-900: #1d2d3d;
  --navy-850: #22364a;
  --navy-800: #2c455d;
  --steel-700: #416180;
  --steel-500: #5980a6;
  --steel-300: #9db8d3;
  --paper: #e9e9eb;
  --ink: #1d1f20;

  --on-dark: #e9e9eb;
  --on-dark-strong: #fff;
  --on-dark-soft: rgba(255, 255, 255, .8);
  --on-dark-muted: rgba(255, 255, 255, .66);
  --rule-dark: rgba(255, 255, 255, .16);
  --rule-light: rgba(29, 31, 32, .2);
  --ink-soft: rgba(29, 31, 32, .74);

  --font-heading: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: 24px;
  --section: 112px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0; color: var(--on-dark-strong); }
p { margin: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
dl, dd { margin: 0; }

a { color: var(--steel-300); text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--steel-300); outline-offset: 3px; }
::selection { background: rgba(157, 184, 211, .35); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--navy-900);
  padding: 10px 16px; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; transition: top .12s ease;
}
.skip-link:focus { top: 8px; color: var(--navy-900); }

.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-300); }
.eyebrow-muted { color: var(--on-dark-muted); }

/* ── Blueprint frame (same corners as cilclegal.org) ──────────────────── */
.blueprint { position: relative; border: 1px solid rgba(255, 255, 255, .2); }
.blueprint > .corner {
  position: absolute; z-index: 1; width: 11px; height: 11px;
  color: rgba(255, 255, 255, .6); pointer-events: none;
}
.blueprint > .corner::before,
.blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.corner.tl { top: -6px; left: -6px; }
.corner.tr { top: -6px; right: -6px; }
.corner.bl { bottom: -6px; left: -6px; }
.corner.br { bottom: -6px; right: -6px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 24px;
  font-family: var(--font-heading); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.btn-light { background: var(--paper); color: var(--navy-900); border-color: var(--paper); }
.btn-light:hover { background: #fff; color: var(--navy-900); }
.btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy-900); border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 54px; height: auto; flex: none; }
.brand-name {
  display: flex; flex-direction: column; line-height: 1.15;
  padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .22);
}
.brand-l1 { font-family: var(--font-heading); font-weight: 600; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.brand-l2 { font-size: 12px; color: rgba(255, 255, 255, .72); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.navlink {
  color: rgba(255, 255, 255, .82); text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.navlink:hover { color: #fff; border-bottom-color: var(--steel-300); }

/* Mobile menu without JS (same pattern as cilclegal.org) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none; margin-left: auto; cursor: pointer; flex: none;
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25);
  align-items: center; justify-content: center;
}
.nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--steel-300); outline-offset: 3px; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 20px; height: 1.5px; background: #fff;
  transition: transform .16s ease, background-color .16s ease;
}
.nav-toggle-label span { position: relative; }
.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after  { top: 6px; }
.nav-toggle:checked + .nav-toggle-label span { background: transparent; }
.nav-toggle:checked + .nav-toggle-label span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked + .nav-toggle-label span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-top: var(--section); }
.hero h1 {
  font-weight: 300; font-size: clamp(54px, 8.4vw, 96px); line-height: .96;
  letter-spacing: -.025em; max-width: 12ch; margin: 28px 0 32px;
}
.hero-lede { font-size: 19px; line-height: 1.65; color: var(--on-dark-soft); max-width: 60ch; margin-bottom: 40px; }
.facts {
  margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: 20px 64px;
}
.facts dt { margin-bottom: 6px; }
.facts dd { font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: #fff; }
.facts dd a { color: #fff; text-decoration: none; }
.facts dd a:hover { color: var(--steel-300); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: var(--section) 0; }
.section-alt { background: var(--navy-850); border-top: 1px solid rgba(255, 255, 255, .1); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper h2, .section-paper h3 { color: var(--ink); }
.section-paper .eyebrow { color: var(--steel-700); }
.section-paper a { color: var(--steel-700); }

.split { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.split-end { align-items: flex-end; }
.split-main { flex: 3 1 520px; min-width: 0; }
.split-side { flex: 2 1 360px; min-width: 0; }

.display-2 { font-weight: 300; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.015em; margin-top: 20px; }
.title-2 { font-weight: 600; font-size: clamp(36px, 4.4vw, 52px); line-height: 1; }
.title-3 { font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.04; margin: 16px 0 56px; }
.body-lg { font-size: 17px; color: var(--on-dark-soft); }

/* ── Members ──────────────────────────────────────────────────────────── */
.members-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 12px 24px; padding-bottom: 22px; margin-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.members-head .eyebrow { color: rgba(255, 255, 255, .72); }
.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 32px; }
.member-photo { aspect-ratio: 4 / 4.2; margin-bottom: 22px; background: var(--navy-950); }
.member-photo .crop { width: 100%; height: 100%; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Isaul's portrait has more headroom than the others: raise and enlarge it so
   eye line and head size match the other two cards. */
.member-photo img.portrait-raised { object-position: center 48%; transform: scale(1.1); transform-origin: 50% 40%; }
.member-role { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.member-num { font-family: var(--font-heading); color: var(--on-dark-muted); }
.member h3 { font-weight: 600; font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
.member-duties { color: var(--on-dark-soft); margin-bottom: 16px; }
.member-area { padding-top: 14px; border-top: 1px solid var(--rule-dark); font-size: 14px; }
.member-area span { color: var(--on-dark-muted); }

/* ── Functions ────────────────────────────────────────────────────────── */
.functions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
@media (max-width: 760px) { .functions { grid-template-columns: minmax(0, 1fr); } }
.function { display: flex; gap: 28px; padding: 32px 0; border-top: 1px solid var(--rule-light); }
.function-num {
  flex: none; width: 84px;
  font-family: var(--font-heading); font-weight: 300; font-size: 64px; line-height: .9; color: var(--steel-700);
}
.function h3 { font-weight: 600; font-size: 26px; line-height: 1.15; margin-bottom: 8px; }
.function p { color: var(--ink-soft); }

/* ── Policies ─────────────────────────────────────────────────────────── */
.policies { flex: 3 1 480px; min-width: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.doc {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .18);
  color: #fff; text-decoration: none;
}
.doc:hover { color: var(--steel-300); }
.doc-title { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.2; }
.doc-meta { font-size: 13px; color: var(--steel-300); white-space: nowrap; }
.policies-intro { flex: 2 1 400px; min-width: 0; }
.policies-intro h2 { font-weight: 300; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; margin: 20px 0 16px; }
.policies-intro p { max-width: 44ch; color: rgba(255, 255, 255, .78); }

/* ── Contact / footer ─────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer .contact { padding-top: 88px; padding-bottom: 64px; }
.site-footer h2 { font-weight: 600; font-size: 48px; line-height: 1; margin-bottom: 16px; }
.site-footer .contact p { max-width: 46ch; font-size: 17px; color: var(--on-dark-soft); }
.contact-list { display: flex; flex-direction: column; }
.contact-list > div { padding: 16px 0; border-top: 1px solid var(--rule-dark); }
.contact-list > div:last-child { border-bottom: 1px solid var(--rule-dark); }
.contact-list dt { margin-bottom: 4px; }
.contact-list dd { font-family: var(--font-heading); font-weight: 600; font-size: 20px; color: #fff; }
.contact-list dd a { color: #fff; }
.contact-list dd a:hover { color: var(--steel-300); }
.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px; color: var(--on-dark-muted);
}
.legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal a { color: rgba(255, 255, 255, .8); }
.legal a:hover { color: #fff; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.notfound { padding: 140px 0 160px; }
.notfound h1 { font-weight: 300; font-size: clamp(44px, 6vw, 72px); line-height: 1; margin: 20px 0 20px; }
.notfound p { color: var(--on-dark-soft); font-size: 17px; margin-bottom: 32px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --section: 80px; }
  .site-header .wrap { column-gap: 16px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand-name { min-width: 0; }
  .nav-toggle-label { display: flex; }
  .nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    margin: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .navlink { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .facts { margin-top: 64px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --section: 64px; }
  .brand img { width: 44px; }
  .brand-name { padding-left: 10px; }
  .brand-l1 { font-size: 16px; }
  .brand-l2 { font-size: 11px; }
  .hero-lede { font-size: 17px; }
  .members, .functions { grid-template-columns: minmax(0, 1fr); }
  .function { gap: 18px; }
  .function-num { width: 56px; font-size: 48px; }
  .doc { flex-direction: column; gap: 4px; }
  .site-footer .contact { padding-top: 64px; padding-bottom: 48px; }
  .site-footer h2 { font-size: 40px; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header { position: static; }
  .nav, .nav-toggle-label, .btn-row { display: none; }
}
