/* ==========================================================================
   Layout: page regions. Header, hero, section bands, footer.
   ========================================================================== */

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg {
  flex: none;
  width: 1.625rem;
  height: 1.625rem;
  transition: transform var(--ease);
}

.brand:hover svg {
  transform: translateY(-2px);
}

/* Mobile: the menu is a panel under the header. It only collapses once the
   small inline script has confirmed JavaScript runs, so without JS the links
   stay visible as a plain list. */
.site-nav {
  order: 4;
  flex-basis: 100%;
  padding-bottom: 0.5rem;
}

@media (max-width: 47.99rem) {
  html:not(.js) .site-header {
    position: static;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
  }
}

.js .site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 0.5rem var(--gutter) 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px -16px rgb(24 75 45 / 0.25);
}

.js .site-nav.is-open {
  display: block;
  animation: menu-in var(--ease);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-nav li:last-child a {
  border-bottom: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.js .menu-toggle {
  display: inline-flex;
}

.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--ease);
}

.menu-toggle__bars {
  transform: translateY(-3px);
}

.menu-toggle__bars::before {
  content: "";
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: rotate(-90deg);
}

@media (min-width: 48rem) {
  .site-header__inner {
    gap: 1rem;
    min-height: 4.5rem;
  }

  :root {
    --header-h: 4.5rem;
  }

  .site-nav,
  .js .site-nav {
    position: static;
    order: 0;
    display: block;
    flex-basis: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    gap: clamp(0.25rem, 1.2vw, 1rem);
  }

  .site-nav a {
    position: relative;
    min-height: 2.75rem;
    padding-inline: 0.5rem;
    font-size: var(--text-sm);
    border-bottom: 0;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.375rem;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current]::after {
    transform: scaleX(1);
  }

  .js .menu-toggle {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   Narrow screens read like a business card: name, then portrait beside the
   role and location, then the introduction and actions.
   Wider screens give the portrait its own full-height column.
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(1rem, 3vw, 2.5rem) var(--section-y);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
  grid-template-areas:
    "head head"
    "portrait meta"
    "intro intro"
    "more more"
    "actions actions";
  column-gap: clamp(1rem, 4vw, 1.5rem);
}

.hero__head {
  grid-area: head;
  margin-bottom: 1.5rem;
}

.hero__portrait {
  grid-area: portrait;
}

.hero__meta {
  grid-area: meta;
  align-self: center;
}

.hero__intro {
  grid-area: intro;
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* The second paragraph continues the introduction, so it follows it directly
   and the buttons close the story. */
.hero__more {
  grid-area: more;
  max-width: 34rem;
  margin-top: 0.875rem;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-muted);
}

.hero__actions {
  grid-area: actions;
  margin-top: 1.75rem;
}

.hero__name {
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-text);
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero__location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  font-size: var(--text-sm);
  line-height: 1.3;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-strong);
}

.hero__location .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent-text);
}

@media (min-width: 46rem) {
  .hero {
    padding-top: clamp(2rem, 5vw, 4.5rem);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: 1fr auto auto auto auto auto 1fr;
    grid-template-areas:
      ". portrait"
      "head portrait"
      "meta portrait"
      "intro portrait"
      "more portrait"
      "actions portrait"
      ". portrait";
    column-gap: clamp(2.5rem, 6vw, 5.5rem);
  }

  .hero__head {
    margin-bottom: 1.25rem;
  }

  .hero__name {
    font-size: var(--text-base);
    margin-bottom: 0.75rem;
  }

  .hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1.25rem;
  }

  .hero__location {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .hero__location .icon {
    align-self: center;
  }

  /* Beside the portrait the extra paragraph follows the intro directly. */
  .hero__more {
    margin-top: 0.875rem;
  }

  .hero__actions {
    margin-top: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Section bands
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section__head h2,
.split__head h2 {
  font-size: var(--text-2xl);
}

.section__lead {
  margin-top: 0.875rem;
  color: var(--ink-muted);
}

/* Editorial split: a heading column beside the content column. */
.split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .split__head--sticky {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

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

.site-footer {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 1.5rem;
}

.site-footer__top {
  display: grid;
  gap: 1.25rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.site-footer__tagline {
  margin-top: 0.375rem;
  text-wrap: balance;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .site-footer__top {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
