/* ==========================================================================
   R2 Digital LLC - www.r2dw.com
   Light bluish-grey ground, dark navy ink, single hot accent (#d62606).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink - from the logo navy */
  --navy-900: #001A34;
  --navy-800: #002346;
  --navy-700: #073256;
  --navy-600: #124467;
  --steel:    #46688A;
  --mist:     #8CA3BB;

  /* Ground - light bluish grey */
  --bg:        #E8EEF5;
  --bg-alt:    #DEE7F1;
  --surface:   #FFFFFF;
  --surface-2: #F4F7FB;
  --border:    #CEDBE9;
  --border-strong: #B4C7DB;

  /* Action */
  --accent:       #d62606;
  --accent-hover: #B31F04;
  --accent-text:  #A81D04;   /* AA-safe for small text on --bg (6.3:1) */
  --accent-wash:  #FDECE8;

  /* Semantic */
  --text:        var(--navy-800);
  --text-muted:  var(--steel);
  --text-invert: #EAF1F9;

  /* Type */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.875rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.30rem);
  --step-2:  clamp(1.35rem, 1.23rem + 0.60vw, 1.65rem);
  --step-3:  clamp(1.60rem, 1.38rem + 1.10vw, 2.15rem);
  --step-4:  clamp(1.95rem, 1.55rem + 2.00vw, 2.90rem);
  --step-5:  clamp(2.35rem, 1.70rem + 3.25vw, 4.00rem);

  /* Space */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;  --s5: 24px;
  --s6: 32px;  --s7: 48px;  --s8: 64px;  --s9: 96px;  --s10: 128px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(0, 35, 70, .06), 0 1px 3px rgba(0, 35, 70, .05);
  --shadow-sm: 0 2px 6px rgba(0, 35, 70, .07), 0 4px 12px rgba(0, 35, 70, .05);
  --shadow-md: 0 6px 18px rgba(0, 35, 70, .10), 0 2px 6px rgba(0, 35, 70, .06);
  --shadow-lg: 0 18px 48px rgba(0, 35, 70, .16);
  --shadow-accent: 0 6px 18px rgba(214, 38, 6, .28);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --dur: 220ms;
  --ease: cubic-bezier(.2, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

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

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: var(--s3) var(--s5);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--bg-alt); }

.section--ink {
  background:
    radial-gradient(120% 90% at 50% 0%, #0B3A63 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: var(--text-invert);
}
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  font-size: var(--step-1);
  color: var(--text-muted);
  line-height: 1.6;
}
.section--ink .section-head p { color: #B9CEE4; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--ink .eyebrow { color: #FF7A5C; }
.section--ink .eyebrow::before { background: var(--accent); }

.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--navy-800); color: var(--text); }

.section--ink .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .38); }
.section--ink .btn--ghost:hover { background: rgba(255, 255, 255, .10); border-color: #fff; color: #fff; }

.btn--sm { padding: 10px 18px; font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .6; cursor: not-allowed; transform: none; box-shadow: none;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  font-size: var(--step-0);
}
.arrow-link svg { transition: transform var(--dur) var(--ease); flex: none; }
.arrow-link:hover { color: var(--accent-hover); }
.arrow-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(232, 238, 245, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
  background: rgba(232, 238, 245, .95);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.brand__mark {
  width: 46px; height: 46px;
  border-radius: 11px;
  box-shadow: var(--shadow-xs);
  flex: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: var(--s5); }
.nav__list { display: flex; align-items: center; gap: var(--s5); }
.nav__link {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding-block: 6px;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--s4) var(--gutter) var(--s6);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                visibility var(--dur);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: var(--s4) 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: var(--s5); }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 82% 12%, rgba(18, 68, 103, .55) 0%, transparent 58%),
    radial-gradient(120% 110% at 8% 96%, rgba(214, 38, 6, .16) 0%, transparent 55%),
    linear-gradient(168deg, var(--navy-700) 0%, var(--navy-800) 52%, var(--navy-900) 100%);
  color: var(--text-invert);
  padding-block: clamp(64px, 10vw, 128px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: var(--s5); }
.hero h1 .accent { color: #FF6A47; }

.hero__lede {
  font-size: var(--step-1);
  color: #C3D6E8;
  max-width: 58ch;
  margin-bottom: var(--s6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-bottom: var(--s7); }

.hero__chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: .82rem;
  font-weight: 500;
  color: #CFE0F0;
}

.hero__panel {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3.5vw, 38px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__logo {
  width: 100%;
  max-width: 260px;
  margin: 0 auto var(--s6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); text-align: center; }
.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero__stat-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93AECA;
  margin-top: 6px;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--text-muted); font-size: .965rem; }

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: var(--s5);
  flex: none;
}
.card__icon svg { width: 24px; height: 24px; }

.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s5); }
.tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Linked card - whole surface clickable via a stretched pseudo-element */
.card--link { text-decoration: none; color: inherit; }
.card--link h3 { transition: color var(--dur) var(--ease); }
.card--link:hover h3 { color: var(--accent-text); }
.card__stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s3);
}
.card__source { color: var(--accent-text); }
.card__foot {
  margin-top: auto;
  padding-top: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent-text);
}
.card__foot svg { flex: none; transition: transform var(--dur) var(--ease); }
.card:hover .card__foot svg { transform: translateX(4px); }

/* Numbered process steps */
.step { position: relative; padding-top: var(--s5); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .28;
  display: block;
  margin-bottom: var(--s3);
}
.step h3 { font-size: var(--step-1); margin-bottom: var(--s2); }
.step p { color: var(--text-muted); font-size: .94rem; }
.section--ink .step p { color: #A9C2DA; }
.section--ink .step__num { color: #FF6A47; opacity: .45; }

/* --------------------------------------------------------------------------
   8. Insights (own publications)
   -------------------------------------------------------------------------- */
.insight-card { padding: var(--s6); }
.insight-card__kicker {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s3);
}
.insight-card h3 { font-size: var(--step-1); line-height: 1.22; }

/* --------------------------------------------------------------------------
   9. Industry Pulse (news)
   -------------------------------------------------------------------------- */
.news-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); }

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--s5);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-height: 210px;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.news-card h3 {
  font-size: 1.02rem;
  line-height: 1.32;
  letter-spacing: -.01em;
  margin-bottom: var(--s3);
  transition: color var(--dur) var(--ease);
}
.news-card:hover h3 { color: var(--accent-text); }
.news-card p {
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: var(--s4);
}
.news-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--s3);
}
.news-card__ext { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); }
.news-card__ext svg { transition: transform var(--dur) var(--ease); }
.news-card:hover .news-card__ext svg { transform: translate(2px, -2px); }

.news-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s8) var(--s5);
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.news-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: var(--s6);
}
.news-updated { font-size: .82rem; color: var(--text-muted); }

/* Skeletons */
.sk { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--border-strong);
      border-radius: var(--radius-md); padding: var(--s5); min-height: 210px; }
.sk__line { height: 11px; border-radius: 6px; background: linear-gradient(90deg, #E4EBF3 25%, #F0F5FA 50%, #E4EBF3 75%);
            background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; margin-bottom: 10px; }
.sk__line:nth-child(1) { width: 45%; }
.sk__line:nth-child(2) { width: 96%; height: 15px; }
.sk__line:nth-child(3) { width: 80%; height: 15px; margin-bottom: 20px; }
.sk__line:nth-child(4) { width: 100%; }
.sk__line:nth-child(5) { width: 70%; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   10. Archive page
   -------------------------------------------------------------------------- */
.page-head {
  background: linear-gradient(168deg, var(--navy-700) 0%, var(--navy-800) 60%, var(--navy-900) 100%);
  color: var(--text-invert);
  padding-block: clamp(48px, 7vw, 84px);
}
.page-head h1 { color: #fff; font-size: var(--step-4); }
.page-head p { color: #B9CEE4; font-size: var(--step-1); max-width: 62ch; }

.breadcrumb { display: flex; gap: var(--s2); font-size: .84rem; color: #93AECA; margin-bottom: var(--s5); }
.breadcrumb a { color: #C3D6E8; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--s7);
}
.filters__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-right: var(--s2);
}
.filter-chip {
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filter-chip:hover { border-color: var(--navy-800); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.search-field { margin-left: auto; position: relative; min-width: 220px; flex: 1 1 220px; max-width: 320px; }
.search-field input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--surface-2);
}
.search-field input:focus { outline: 3px solid var(--accent); outline-offset: 1px; background: var(--surface); }
.search-field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.archive-group { margin-bottom: var(--s8); }
.archive-group__date {
  display: flex; align-items: center; gap: var(--s4);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s5);
}
.archive-group__date::after {
  content: ""; flex: 1; height: 1px; background: var(--border-strong);
}
.archive-group__count {
  font-family: var(--font-body); font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px;
}

.archive-list { display: flex; flex-direction: column; gap: var(--s3); }
.archive-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3) var(--s5);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--s5);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.archive-item:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
  color: inherit;
}
.archive-item h3 { font-size: 1.05rem; line-height: 1.34; margin-bottom: 6px; transition: color var(--dur) var(--ease); }
.archive-item:hover h3 { color: var(--accent-text); }
.archive-item p { font-size: .885rem; color: var(--text-muted); margin: 0; }
.archive-item__side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}
@media (max-width: 640px) {
  .archive-item { grid-template-columns: 1fr; }
  .archive-item__side { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
.archive-item__cat {
  background: var(--accent-wash); color: var(--accent-text);
  border-radius: 999px; padding: 3px 10px; letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   11. Profile / about
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }

.profile__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.profile__initials {
  width: 96px; height: 96px;
  margin: 0 auto var(--s5);
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #C6D4E3 38%, var(--navy-800) 100%);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  box-shadow: var(--shadow-md);
}
.profile__name { font-size: var(--step-2); margin-bottom: var(--s1); }
.profile__role {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: var(--s5);
}
.profile__facts { display: grid; gap: var(--s3); margin-bottom: var(--s6); text-align: left; }
.profile__fact {
  display: flex; gap: var(--s3); align-items: baseline;
  padding-bottom: var(--s3); border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.profile__fact:last-child { border-bottom: 0; padding-bottom: 0; }
.profile__fact dt {
  flex: none; width: 90px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.profile__fact dd { margin: 0; color: var(--text); font-weight: 500; }

.checklist { display: grid; gap: var(--s4); margin: var(--s6) 0; }
.checklist li { display: flex; gap: var(--s4); align-items: flex-start; }
.checklist svg { flex: none; margin-top: 3px; color: var(--accent); }
.checklist strong { display: block; font-weight: 600; margin-bottom: 2px; }
.checklist span { color: var(--text-muted); font-size: .94rem; }

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 58ch; margin-inline: auto; color: #B9CEE4; font-size: var(--step-1); }
.cta-band__actions {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  justify-content: center; margin-top: var(--s6);
}
.cta-band__note { margin-top: var(--s5); font-size: .86rem; color: #93AECA; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #A9C2DA;
  padding-block: var(--s8) var(--s6);
  font-size: .92rem;
}
.site-footer a { color: #C3D6E8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s7) var(--s5);
  padding-bottom: var(--s7);
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}
.footer-brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.footer-brand img { width: 44px; height: 44px; border-radius: 10px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; letter-spacing: -.02em; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: #fff; margin-bottom: var(--s4);
}
.footer-col li { margin-bottom: var(--s3); line-height: 1.45; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s4);
  align-items: center; justify-content: space-between;
  padding-top: var(--s5); font-size: .84rem; color: #7E99B5;
}

/* --------------------------------------------------------------------------
   14. Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: var(--s5);
  background: rgba(0, 16, 34, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
  overflow-y: auto;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__panel {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 42px);
  transform: translateY(16px) scale(.985);
  transition: transform var(--dur) var(--ease);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }

.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s5); margin-bottom: var(--s5);
}
.modal__head h2 { font-size: var(--step-2); margin-bottom: var(--s2); }
.modal__head p { color: var(--text-muted); font-size: .94rem; margin: 0; }

.modal__close {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.modal__close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   15. Form
   -------------------------------------------------------------------------- */
.field { margin-bottom: var(--s5); }
.field label {
  display: block;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  margin-bottom: var(--s2); color: var(--text);
}
.field .req { color: var(--accent); }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .96rem;
  line-height: 1.5;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #93A9BF; }
.field input:focus, .field textarea:focus {
  outline: 3px solid rgba(214, 38, 6, .35);
  outline-offset: 0;
  border-color: var(--accent);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 148px; }

.field__foot {
  display: flex; justify-content: space-between; gap: var(--s4);
  margin-top: 6px; font-size: .78rem; color: var(--text-muted);
}
.counter.is-warn { color: var(--accent-text); font-weight: 600; }
.counter.is-over { color: #fff; background: var(--accent); padding: 1px 8px; border-radius: 999px; font-weight: 600; }

.field-error {
  display: none;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-text);
}
.field.has-error input, .field.has-error textarea { border-color: var(--accent); background: var(--accent-wash); }
.field.has-error .field-error { display: block; }

.form-note { font-size: .8rem; color: var(--text-muted); margin-top: var(--s4); line-height: 1.5; }

.form-alert {
  display: none;
  padding: var(--s4);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: var(--s5);
  border: 1px solid;
}
.form-alert.is-shown { display: block; }
.form-alert--error { background: var(--accent-wash); border-color: var(--accent); color: #7E1603; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   16. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: var(--s4);
  max-width: min(560px, calc(100vw - 32px));
  padding: 15px 20px;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.45;
  transition: transform 380ms cubic-bezier(.2, .8, .25, 1);
  border-left: 4px solid #2FBF71;
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast--error { border-left-color: var(--accent); }
.toast__icon { flex: none; display: grid; place-items: center; color: #2FBF71; }
.toast--error .toast__icon { color: #FF7A5C; }
.toast__close {
  flex: none; margin-left: auto;
  background: transparent; border: 0; color: #A9C2DA;
  cursor: pointer; padding: 4px; border-radius: 4px; line-height: 0;
}
.toast__close:hover { color: #fff; }
.toast__bar {
  position: absolute; left: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, .5);
  border-radius: 0 0 0 var(--radius-md);
  width: 100%;
  transform-origin: left;
}
.toast.is-visible .toast__bar { animation: toastbar 10s linear forwards; }
@keyframes toastbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

body.modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   17. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover, .news-card:hover, .btn:hover, .archive-item:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .modal, .toast, .cta-band__actions, .nav-toggle, .filters { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section--ink, .page-head { background: #fff !important; color: #000 !important; }
  .hero h1, .section--ink h2, .page-head h1 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}
