:root {
  --ink: #0b3a5b;
  --ink-deep: #062536;
  --paper: #f4f8fa;
  --paper-2: #e8f1f4;
  --accent: #2a9bb5;
  --accent-hot: #1f7f96;
  --mute: #4a6575;
  --line: rgba(11, 58, 91, 0.14);
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --radius: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(42, 155, 181, 0.12), transparent 55%),
    linear-gradient(180deg, #eef5f8 0%, var(--paper) 40%, var(--paper-2) 100%);
  line-height: 1.6;
}

a { color: inherit; }

/* —— Nav —— */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 5vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  background: linear-gradient(180deg, rgba(6, 37, 54, 0.55) 0%, transparent 100%);
  border-bottom: 1px solid transparent;
  color: #f4fafc;
}
.top.is-solid {
  background: rgba(244, 248, 250, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.top.is-solid .brand { color: var(--ink); }
.top.is-solid nav a { color: var(--mute); }
.top.is-solid nav a:hover,
.top.is-solid nav a[aria-current="page"] { color: var(--ink); }

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: #f4fafc;
}
nav { display: flex; gap: 1.15rem; flex-wrap: nowrap; }
nav a {
  white-space: nowrap;
  text-decoration: none;
  color: rgba(244, 250, 252, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}
nav a:hover,
nav a[aria-current="page"] { color: #fff; }

/* Inner pages: nav always solid */
body.inner .top {
  background: rgba(244, 248, 250, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  color: var(--ink);
  position: sticky;
}
body.inner .brand { color: var(--ink); }
body.inner nav a { color: var(--mute); }
body.inner nav a:hover,
body.inner nav a[aria-current="page"] { color: var(--ink); }

/* —— Full-bleed hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4fafc;
}
.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 18%;
  display: block;
  transform: scale(1.04);
  animation: ken 18s ease-in-out alternate infinite;
  filter: saturate(0.95) contrast(1.04);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 37, 54, 0.55) 0%, transparent 32%, rgba(6, 37, 54, 0.35) 58%, rgba(6, 37, 54, 0.88) 100%),
    linear-gradient(90deg, rgba(6, 37, 54, 0.82) 0%, rgba(6, 37, 54, 0.4) 42%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 7rem 5vw 4.5rem;
  max-width: 38rem;
  animation: rise 0.9s var(--ease) both;
}
.hero-inner .lede {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  line-height: 0.95;
  margin: 0 0 0.65rem;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-tagline {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(180, 230, 220, 0.95);
  margin: 0 0 1rem;
  max-width: 34rem;
  line-height: 1.35;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 34rem;
  color: rgba(244, 250, 252, 0.95);
  margin: 0 0 1.75rem;
  font-weight: 400;
}
.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: var(--accent-hot); }
.btn.ghost {
  border: 1px solid rgba(244, 250, 252, 0.55);
  color: #f4fafc;
  background: rgba(6, 37, 54, 0.45);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover { border-color: #fff; background: rgba(6, 37, 54, 0.65); }

/* Inner CTAs on light bg */
body.inner .btn.primary { background: var(--ink); color: #fff; }
body.inner .btn.primary:hover { background: var(--accent); }
body.inner .btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

/* —— Content —— */
.block {
  padding: 4.5rem 5vw;
  max-width: 44rem;
}
.block.wide { max-width: 52rem; }
.block.alt {
  max-width: none;
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}
.block.alt > * { max-width: 44rem; }
.block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.block p { margin: 0 0 1rem; max-width: 40rem; color: var(--mute); }
.block ul:not(.pillars):not(.social) {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--mute);
  max-width: 40rem;
}
.block ul:not(.pillars):not(.social) li { margin-bottom: 0.45rem; }

.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.pillars li {
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
}
.pillars li strong { color: var(--ink); display: block; margin-bottom: 0.2rem; font-family: var(--font-display); }

.text-link {
  color: var(--accent-hot);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.page-hero {
  padding: 5.5rem 5vw 1.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: start;
}
.side-photo {
  margin: 0;
  overflow: hidden;
  max-width: 280px;
  justify-self: end;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.side-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}
.social {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.social a { font-weight: 600; text-decoration: none; color: var(--accent-hot); }
.note { font-size: 0.9rem; color: var(--mute); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.list-plain li strong { color: var(--ink); }
.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
}
.article-byline img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 2px solid var(--line);
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}
.article-body p { margin: 0 0 1rem; color: var(--mute); max-width: 42rem; }
.article-body li { color: var(--mute); }
.lead-text { font-size: 1.15rem; color: var(--mute); max-width: 40rem; }

footer {
  padding: 1.75rem 5vw 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.4);
}
footer a { color: var(--ink); font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .hero {
    align-items: end;
    min-height: 100svh;
  }
  .hero-inner {
    padding: 5.5rem 5vw 2.75rem;
    max-width: none;
    width: 100%;
    background: linear-gradient(180deg, transparent, rgba(6, 37, 54, 0.92) 28%);
  }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .lede { font-size: 1.02rem; }
  .about-grid { grid-template-columns: 1fr; }
  .side-photo { justify-self: start; max-width: 220px; }
  .top {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-bottom: 0.85rem;
  }
  nav { gap: 0.7rem; row-gap: 0.35rem; }
  .hero-media img { object-position: 70% 12%; }
}
