/* ===== 4th Branch Global (light, clean, warm accent) ===== */

:root{
  /* UPDATED: warmer “paper” background (eggshell) */
  --bg: #f7f8f6;

  --ink: #111214;
  --muted: rgba(17,18,20,.72);
  --soft: rgba(17,18,20,.10);
  --card: rgba(255,255,255,.86);
  --cardBorder: rgba(17,18,20,.12);

  /* Accent: mustard (keeps a thread to the retired logo, without making it loud) */
  --accent: #c7a12a;
  --accent2: #111214;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(0,0,0,.08);

  --container: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* ===== Background rotator (site-wide) ===== */
.bg-rotator{
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-frame{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  opacity: 0;
  transition: opacity 1.6s ease;
  filter: saturate(.95) contrast(.95) brightness(1.05);
}

.bg-frame.is-visible{ opacity: 1; }

.bg-overlay{
  position:absolute;
  inset:0;
  /* UPDATED: warm wash to match eggshell background */
  background:
    radial-gradient(1200px 800px at 25% 25%, rgba(246,241,232,.92), rgba(246,241,232,.76)),
    linear-gradient(to bottom, rgba(246,241,232,.88), rgba(246,241,232,.92));
}

/* ===== Header (logo left, clickable, nav pills) ===== */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  /* UPDATED: align header tint with eggshell bg */
  background: rgba(246,241,232,.76);
  border-bottom: 1px solid var(--soft);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 18px 0;
}

/* Brand block (logo + text) */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__logo-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand__logo{
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  opacity: 0.92;
}

.brand:hover .brand__logo{ opacity: 1; }

.brand__text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand__title{
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__tag{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav .muted{ color: rgba(17,18,20,.55); }

.nav-pill{
  display:inline-flex;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--soft);
  background: rgba(255,255,255,.65);
  text-decoration: none !important;
  line-height: 1;
}

.nav-pill:hover{
  border-color: rgba(17,18,20,.18);
  background: rgba(255,255,255,.80);
}

@media (max-width: 720px){
  .header__inner{
    align-items: flex-start;
    padding: 14px 0;
  }
  .brand__logo{
    width: 52px;
    height: 52px;
  }
  .brand__tag{ display: none; }
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(17,18,20,.18);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  font-weight: 700;
  text-decoration: none !important;
}

.btn:hover{
  border-color: rgba(17,18,20,.30);
  transform: translateY(-1px);
}

.btn--small{ padding: 10px 12px; font-weight: 700; }

.link{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(17,18,20,.86);
}

/* ===== Hero (people images as background via .hero-bg layers) ===== */
.site-hero{
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: opacity 1200ms ease-in-out;
  opacity: 0;
  will-change: opacity;
  z-index: 0;
}

.hero-bg-a{ opacity: 1; }
.hero-bg-b{ opacity: 0; }

.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  /* UPDATED: slightly warmer overlay to match eggshell */
  background:
    radial-gradient(60% 60% at 35% 40%, rgba(246,241,232,0.90), rgba(246,241,232,0.58) 60%, rgba(246,241,232,0.36)),
    linear-gradient(to bottom, rgba(246,241,232,0.72), rgba(246,241,232,0.56));
}

.hero-inner{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(16px, 3vw, 28px);
}

h1{
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.6px;
}

.site-hero h1::after{
  content:"";
  display:block;
  width: 78px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--accent);
}

.lede,
.site-hero p{
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  max-width: 72ch;
}

.hero-cta-row{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hero-subtext{
  font-size: 14px;
  opacity: 0.7;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ===== About teaser (clickable block after hero) ===== */
.about-teaser{
  padding: 26px 0 8px;
}

.about-teaser__link{
  display:block;
  border-radius: var(--radius);
  border: 1px solid var(--cardBorder);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  text-decoration: none !important;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.about-teaser__link:hover{
  transform: translateY(-1px);
  border-color: rgba(17,18,20,.18);
  background: rgba(255,255,255,.82);
}

.about-teaser__text{
  margin: 0;
  padding: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(17,18,20,.82);
  line-height: 1.55;
  font-size: 16px;
  max-width: 78ch;
}

.about-teaser__text strong{
  color: rgba(17,18,20,.95);
  font-weight: 800;
}

@media (max-width: 720px){
  .about-teaser{ padding: 18px 0 4px; }
  .about-teaser__text{ padding: 16px; font-size: 15px; }
}

/* ===== Latest Section ===== */
.latest{ padding: 26px 0 60px; }

.section-head h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.3px;
}

.section-head p{
  margin: 6px 0 16px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* ===== Cards ===== */
.card{
  border-radius: var(--radius);
  border: 1px solid var(--cardBorder);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card__kicker{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(17,18,20,.60);
}

.card__title{
  margin: 10px 0 6px;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.card__meta{
  margin-bottom: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  color: rgba(17,18,20,.62);
}

.card__actions{ margin-top: 10px; }

.ratio{
  width:100%;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(17,18,20,.10);
  background: rgba(255,255,255,.55);
}

.ratio-16x9{ aspect-ratio: 16 / 9; }

.ratio iframe{
  width:100%;
  height:100%;
  display:block;
}

.audio{ padding: 10px 0 0; }

.placeholder{
  padding: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  color: rgba(17,18,20,.70);
}

/* ===== Footer (contact + legal + social) ===== */
.footer{
  padding: 28px 0 36px;
  border-top: 1px solid var(--soft);
  /* UPDATED: align footer tint with eggshell bg */
  background: rgba(246,241,232,.76);
  backdrop-filter: blur(10px);
}

.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__brand{ font-weight: 800; }

.footer__small{
  margin-top: 6px;
  color: rgba(17,18,20,.60);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
}

.footer__right{
  display:flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
}

.footer__group{
  display:flex;
  flex-direction: column;
  gap: 8px;
  min-width: 210px;
}

.footer__label{
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(17,18,20,.55);
  margin-bottom: 2px;
}

/* Footer link polish */
.footer__right a{
  color: rgba(17,18,20,.72);
  text-decoration: none;
}
.footer__right a:hover{
  color: rgba(17,18,20,.92);
  text-decoration: underline;
}

@media (max-width: 720px){
  .footer__right{ width: 100%; gap: 18px; }
  .footer__group{ width: 100%; min-width: 0; }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce){
  .hero-bg, .bg-frame{ transition: none; }
}
/* ===== Dispatch Card ===== */
.dispatch-card{
  border-radius: var(--radius);
  border: 1px solid var(--cardBorder);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispatch-kicker{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(17,18,20,.55);
}

.dispatch-title{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.dispatch-title a{
  text-decoration: none;
  color: inherit;
}

.dispatch-title a:hover{
  text-decoration: underline;
}

.dispatch-meta{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  color: rgba(17,18,20,.62);
}

.dispatch-excerpt{
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(17,18,20,.78);
  max-width: 75ch;
}

.dispatch-actions{
  margin-top: 6px;
}
/* ===== Mobile Hamburger ===== */

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span{
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .3s ease;
}

/* Mobile layout */
@media (max-width: 720px){

  .nav{
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 10px;
  }

  .nav.is-open{
    display: flex;
  }

  .nav-toggle{
    display: flex;
  }

  .header__inner{
    flex-wrap: wrap;
  }
}

/* Animate icon */
.nav-toggle.is-open span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.is-open span:nth-child(2){
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3){
  transform: rotate(-45deg) translate(5px, -5px);
}
/* ================================
   Mobile Hamburger Nav (4th Branch)
================================== */

/* Hidden on desktop */
.nav-toggle{
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--soft);
  background: rgba(255,255,255,.70);
  cursor: pointer;
  padding: 0;
}

.nav-toggle:hover{
  border-color: rgba(17,18,20,.18);
  background: rgba(255,255,255,.84);
}

.nav-toggle span{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
  position: relative;
}

.nav-toggle span:nth-child(1){ transform: translateY(-6px); }
.nav-toggle span:nth-child(2){ transform: translateY(0); }
.nav-toggle span:nth-child(3){ transform: translateY(6px); }

/* Open state (X) */
.nav-toggle.is-open span:nth-child(1){ transform: translateY(0) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(0) rotate(-45deg); }

/* Mobile behavior */
@media (max-width: 720px){
  .header__inner{
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle{
    display: inline-flex;
    margin-left: auto;
  }

  /* Nav becomes a full-width panel under header row */
  .nav{
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--cardBorder);
    background: rgba(255,255,255,.78);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
  }

  .nav.is-open{
    display: flex;
  }

  /* Make pills feel like menu rows */
  .nav-pill{
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }

  .nav .btn.btn--small{
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
}
