/* ===== 4th Branch Global (light, clean, warm accent) ===== */

:root{
  --bg: #fbfbf9;
  --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;     /* mustard */
  --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;
  background:
    radial-gradient(1200px 800px at 25% 25%, rgba(255,255,255,.92), rgba(255,255,255,.76)),
    linear-gradient(to bottom, rgba(255,255,255,.88), rgba(255,255,255,.92));
}

/* ===== Header (logo left, clickable, nav pills) ===== */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(251,251,249,.72);
  border-bottom: 1px solid var(--soft);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 18px 0; /* UPDATED (was 14px): more presence */
}

/* Brand block (logo + text) */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Clickable logo link wrapper */
.brand__logo-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand__logo{
  width: 58px;  /* UPDATED (was 48px) */
  height: 58px; /* UPDATED (was 48px) */
  object-fit: contain;
  display: block;
  opacity: 0.92;
}

.brand:hover .brand__logo{ opacity: 1; }

/* Title/tag */
.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; /* UPDATED (was 18px) */
  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 pills */
.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; /* UPDATED: still bigger than before but mobile-safe */
  }
  .brand__logo{
    width: 52px;  /* UPDATED: mobile size */
    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);
}

/* Background layers for crossfade */
.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;
}

/* Default show A first (JS will take over after) */
.hero-bg-a{ opacity: 1; }
.hero-bg-b{ opacity: 0; }

/* Light overlay for readability */
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 60% at 35% 40%, rgba(255,255,255,0.88), rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.35)),
    linear-gradient(to bottom, rgba(255,255,255,0.70), rgba(255,255,255,0.55));
}

.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;
}

/* Accent underline “thread” (hero only) */
.site-hero h1::after{
  content:"";
  display:block;
  width: 78px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--accent);
}

/* Used in hero text */
.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;
}

/* Pills (still usable elsewhere if you want) */
.pill-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill{
  display:inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--soft);
  background: rgba(255,255,255,.70);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
}

.pill--muted{ color: rgba(17,18,20,.58); }

/* ===== 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; }

/* 16:9 iframe wrapper */
.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) ===== */
.footer{
  padding: 28px 0 36px;
  border-top: 1px solid var(--soft);
  background: rgba(251,251,249,.72);
  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; }
}
