:root{
  --ink:#0F1A33;
  --navy:#16264B;
  --green:#5CA83C;
  --green-dark:#3E7A2C;
  --gold:#E4A93A;
  --paper:#F1F2EC;
  --white:#FFFFFF;
  --line: rgba(15,26,51,0.12);
  --line-onink: rgba(255,255,255,0.16);
  --maxw: 1180px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:var(--paper);
  color:var(--navy);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3, .display{
  font-family:'Space Grotesk', 'Inter', sans-serif;
  margin:0;
  letter-spacing:-0.01em;
}
a{ color:inherit; }
img{ max-width:100%; display:block; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }

/* ---------- NAV ---------- */
header.nav{
  position:absolute; top:0; left:0; right:0; z-index:20;
  padding:28px 0;
}
header.nav.nav-static{
  position:relative;
  background:var(--navy);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
}
.nav-logo{ width:200px; height:auto; }
.nav-status{
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:rgba(255,255,255,0.85);
  border:1px solid var(--line-onink);
  padding:7px 14px; border-radius:99px;
  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(6px);
}
.nav-status .dot{
  width:7px; height:7px; border-radius:50%; background:var(--green);
  box-shadow:0 0 0 3px rgba(92,168,60,0.25);
}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex; align-items:flex-end;
  overflow:hidden;
  background:var(--ink);
}
.hero-media{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns{
  from{ transform:scale(1); }
  to{ transform:scale(1.09); }
}
.hero-content{
  position:relative; z-index:2;
  width:100%;
  padding-bottom:76px;
  padding-top:220px;
}
.hero .wrap{ display:grid; grid-template-columns: 1.3fr 0.9fr; gap:48px; align-items:end; }
.eyebrow-badge{
  display:inline-flex; align-items:center; gap:9px;
  font-size:13px; color:var(--gold);
  border:1px solid rgba(228,169,58,0.4);
  background:rgba(228,169,58,0.08);
  padding:7px 14px; border-radius:99px;
  margin-bottom:22px;
  opacity:0; transform:translateY(14px);
  animation: rise 0.8s cubic-bezier(.22,1,.36,1) 0.15s forwards;
}
.eyebrow-badge .dot{ width:6px; height:6px; border-radius:50%; background:var(--gold); }
h1.hero-title{
  color:var(--white);
  font-size:clamp(34px, 5.6vw, 64px);
  line-height:1.05;
  font-weight:700;
  max-width:15ch;
}
h1.hero-title .line{
  display:block; overflow:hidden;
}
h1.hero-title .line span{
  display:block;
  opacity:0; transform:translateY(100%);
  animation: rise 0.9s cubic-bezier(.22,1,.36,1) forwards;
}
h1.hero-title .line:nth-child(1) span{ animation-delay:0.28s; }
h1.hero-title .line:nth-child(2) span{ animation-delay:0.40s; }
h1.hero-title .line:nth-child(3) span{ animation-delay:0.52s; }

@keyframes rise{ to{ opacity:1; transform:translateY(0); } }

.hero-sub{
  color:rgba(255,255,255,0.82);
  font-size:17px; line-height:1.6;
  max-width:46ch;
  margin-top:22px;
  opacity:0; transform:translateY(14px);
  animation: rise 0.9s cubic-bezier(.22,1,.36,1) 0.65s forwards;
}

.hero-form-col{
  opacity:0; transform:translateY(14px);
  animation: rise 0.9s cubic-bezier(.22,1,.36,1) 0.8s forwards;
}
.signup{
  background:rgba(255,255,255,0.07);
  border:1px solid var(--line-onink);
  backdrop-filter:blur(10px);
  border-radius:14px;
  padding:26px;
}
.signup p.label{
  color:var(--white); font-size:14px; font-weight:600; margin:0 0 4px;
}
.signup p.note{
  color:rgba(255,255,255,0.6); font-size:13px; margin:0 0 16px; line-height:1.5;
}
.signup-row{ display:flex; gap:8px; }
.signup input[type=email]{
  flex:1; min-width:0;
  background:rgba(255,255,255,0.08);
  border:1px solid var(--line-onink);
  border-radius:8px;
  padding:12px 14px;
  color:var(--white);
  font-family:'Inter', sans-serif;
  font-size:14px;
}
.signup input[type=email]::placeholder{ color:rgba(255,255,255,0.45); }
.signup input[type=email]:focus{ outline:none; border-color:var(--green); }
.btn{
  background:var(--green);
  color:var(--white);
  border:none;
  border-radius:8px;
  padding:12px 20px;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  white-space:nowrap;
  transition:background 0.18s ease, transform 0.18s ease;
}
.btn:hover{ background:var(--green-dark); transform:translateY(-1px); }
.signup-msg{
  margin-top:12px; font-size:13px; color:var(--green);
  display:none;
}
.signup-msg.show{ display:block; }

/* ---------- SECTION: PIVOT ---------- */
.pivot{ padding:96px 0; background:var(--paper); }
.pivot .wrap{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap:64px; align-items:center; }
.pivot-kicker{
  font-size:13px; color:var(--green-dark); font-weight:600; margin-bottom:14px;
}
.pivot h2{ font-size:clamp(24px,3vw,34px); font-weight:600; line-height:1.2; margin-bottom:18px; }
.pivot p{ font-size:16px; line-height:1.7; color:rgba(22,38,75,0.78); max-width:52ch; }
.pivot-media{
  position:relative; border-radius:14px; overflow:hidden;
  aspect-ratio:4/3;
}
.pivot-media img{ width:100%; height:100%; object-fit:cover; }
.pivot-media .tag{
  position:absolute; left:16px; bottom:16px;
  background:rgba(15,26,51,0.85);
  color:var(--white); font-size:12px;
  padding:6px 12px; border-radius:99px;
}

/* ---------- SECTION: GALLERY ---------- */
.gallery{ padding:96px 0; background:var(--paper); }
.gallery-head{ max-width:56ch; margin-bottom:40px; }
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap:14px;
}
.gallery-item{
  position:relative; border:none; padding:0; margin:0; cursor:pointer;
  border-radius:12px; overflow:hidden; background:var(--line);
  grid-column: span 1; grid-row: span 1;
  -webkit-tap-highlight-color:transparent;
}
.gallery-item:first-child{ grid-column: span 2; grid-row: span 2; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.gallery-item:hover img{ transform:scale(1.05); }
.gallery-item::after{
  content:'⤢'; position:absolute; right:10px; top:10px;
  width:28px; height:28px; border-radius:50%;
  background:rgba(15,26,51,0.55); color:var(--white);
  font-size:13px; display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .2s ease;
}
.gallery-item:hover::after{ opacity:1; }
.gallery-item:focus-visible::after{ opacity:1; }

@media (max-width:860px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows:160px; }
  .gallery-item:first-child{ grid-column: span 2; grid-row: span 1; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox{
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox-backdrop{ position:absolute; inset:0; background:rgba(15,26,51,0.92); border:none; padding:0; margin:0; }
.lightbox-figure{ position:relative; z-index:1; max-width:min(90vw, 1000px); max-height:86vh; margin:0; }
.lightbox-figure img{ display:block; max-width:100%; max-height:80vh; border-radius:10px; margin:0 auto; }
.lightbox-caption{ color:rgba(255,255,255,0.75); font-size:13px; text-align:center; margin-top:12px; }
.lightbox-close, .lightbox-prev, .lightbox-next{
  position:fixed; z-index:2;
  background:rgba(255,255,255,0.1); border:1px solid var(--line-onink); color:var(--white);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.lightbox-close{ top:20px; right:20px; width:40px; height:40px; border-radius:50%; font-size:18px; }
.lightbox-prev, .lightbox-next{ top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; font-size:20px; }
.lightbox-prev{ left:20px; } .lightbox-next{ right:20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background:rgba(255,255,255,0.2); }
@media (max-width:640px){
  .lightbox-prev{ left:8px; } .lightbox-next{ right:8px; } .lightbox-close{ top:12px; right:12px; }
}

/* ---------- SECTION: PILLARS ---------- */
.pillars{ background:var(--navy); padding:100px 0; }
.pillars-head{ max-width:56ch; margin-bottom:56px; }
.pillars-head .pivot-kicker{ color:var(--gold); }
.pillars-head h2{ color:var(--white); font-size:clamp(24px,3vw,34px); font-weight:600; line-height:1.2; }
.pillars-head p{ color:rgba(255,255,255,0.68); font-size:16px; line-height:1.7; margin-top:14px; }

.pillar-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:24px;
}
.pillar-card{
  background:rgba(255,255,255,0.04);
  border:1px solid var(--line-onink);
  border-radius:14px;
  padding:28px;
}
.pillar-name{
  font-family:'Space Grotesk', sans-serif;
  color:var(--white);
  font-size:19px;
  font-weight:600;
  display:flex; align-items:center; gap:12px;
}
.pillar-name a{ text-decoration:none; }
.pillar-name a:hover{ color:var(--gold); }
.pillar-name .mark{
  width:9px; height:9px; background:var(--green); flex:none;
}
.pillar-desc{ color:rgba(255,255,255,0.66); font-size:14.5px; line-height:1.6; margin-top:10px; }

.resource-label{
  font-size:11px; text-transform:uppercase; letter-spacing:0.08em;
  color:var(--gold); font-weight:600; margin-bottom:7px;
}
.resource-hero{
  display:block;
  margin-top:20px; padding-top:18px;
  border-top:1px solid var(--line-onink);
  text-decoration:none;
}
.resource-hero .resource-title{
  color:var(--white); font-weight:600; font-size:15px; line-height:1.45;
  transition:color 0.15s ease;
}
.resource-hero .resource-source{
  color:rgba(255,255,255,0.48); font-size:12px; margin-top:5px;
}
.resource-hero:hover .resource-title{ color:var(--gold); }

.related-label{
  font-size:11px; text-transform:uppercase; letter-spacing:0.08em;
  color:rgba(255,255,255,0.4); font-weight:600;
  margin-top:18px; margin-bottom:10px;
}
.related-list{ display:flex; flex-direction:column; gap:11px; }
.related-list a{ display:block; text-decoration:none; }
.related-title{
  color:rgba(255,255,255,0.82); font-size:13.5px; line-height:1.45;
  transition:color 0.15s ease;
}
.related-source{ color:rgba(255,255,255,0.4); font-size:11.5px; margin-top:2px; }
.related-list a:hover .related-title{ color:var(--gold); }

.pillar-viewall{
  display:inline-block;
  margin-top:18px;
  font-size:13px; font-weight:600;
  color:var(--green);
  text-decoration:none;
}
.pillar-viewall:hover{ color:var(--gold); }

/* ---------- SECTION: LOCAL ---------- */
.local{ position:relative; padding:0; background:var(--ink); }
.local-media{
  position:relative; min-height:520px;
  background-size:cover; background-position:center;
  display:flex; align-items:center;
}
.local-content{ max-width:44ch; padding:80px 0; }
.local-content .pivot-kicker{ color:var(--green); }
.local-content h2{ color:var(--white); font-size:clamp(22px,2.8vw,30px); font-weight:600; line-height:1.3; }
.local-content p{ color:rgba(255,255,255,0.72); font-size:15.5px; line-height:1.7; margin-top:16px; }

/* ---------- FOOTER ---------- */
footer{ background:var(--paper); padding:56px 0 40px; }
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-end;
  padding-bottom:36px; border-bottom:1px solid var(--line);
  flex-wrap:wrap; gap:24px;
}
.footer-logo{ height:30px; width:auto; }
.footer-signup{ display:flex; gap:8px; }
.footer-signup input[type=email]{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px 14px;
  font-family:'Inter', sans-serif;
  font-size:14px;
  color:var(--navy);
  min-width:220px;
}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:24px; flex-wrap:wrap; gap:12px;
}
.footer-bottom p{ font-size:13px; color:rgba(22,38,75,0.55); margin:0; }
.footer-links{ display:flex; gap:20px; }
.footer-links a{ font-size:13px; color:rgba(22,38,75,0.55); text-decoration:none; }
.footer-links a:hover{ color:var(--navy); }

@media (max-width: 860px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-content{ padding-top:150px; }
  .pivot .wrap{ grid-template-columns:1fr; gap:32px; }
  .pillar-grid{ grid-template-columns:1fr; }
  .local-content{ padding:64px 0; }
  .footer-top{ flex-direction:column; align-items:flex-start; }
  .nav-logo{ width:150px; }
}

@media (max-width: 480px){
  .nav-logo{ width:120px; }
}

@media (prefers-reduced-motion: reduce){
  .hero-media{ animation:none; }
  .eyebrow-badge, h1.hero-title .line span, .hero-sub, .hero-form-col{
    animation:none !important; opacity:1 !important; transform:none !important;
  }
}

/* ---------- PAGE HEADER (article / listing pages) ---------- */
.page-header{ background:var(--navy); padding:170px 0 64px; }
.page-header .pivot-kicker{ color:var(--gold); }
.page-header h1{ color:var(--white); font-size:clamp(26px,3.4vw,40px); font-weight:600; line-height:1.2; }
.page-header p{ color:rgba(255,255,255,0.68); font-size:16px; line-height:1.7; margin-top:14px; max-width:60ch; }

.tag-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.tag-pill{
  font-size:12px; font-weight:600; letter-spacing:0.02em;
  color:var(--white);
  border:1px solid var(--line-onink);
  background:rgba(255,255,255,0.06);
  padding:6px 13px; border-radius:99px;
  text-decoration:none;
}
.tag-pill.region{ color:var(--gold); border-color:rgba(228,169,58,0.4); background:rgba(228,169,58,0.08); }

/* ---------- LISTING GRID ---------- */
.listing{ padding:72px 0 100px; background:var(--paper); }
.article-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
@media (max-width:860px){
  .article-grid{ grid-template-columns: 1fr; }
}
.article-card{
  display:block; text-decoration:none;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.article-card:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(15,26,51,0.08); }
.article-card .resource-label{ color:var(--green-dark); }
.article-card h3{ font-size:18px; font-weight:600; line-height:1.35; margin-top:6px; color:var(--navy); }
.article-card .summary{ font-size:14px; line-height:1.6; color:rgba(22,38,75,0.7); margin-top:10px; }
.article-card .meta{ font-size:12.5px; color:rgba(22,38,75,0.5); margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }
.article-card .meta .region{ color:var(--green-dark); font-weight:600; }
.empty-state{ color:rgba(22,38,75,0.6); font-size:15px; line-height:1.7; }

.pillar-index-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
}
@media (max-width:860px){
  .pillar-index-grid{ grid-template-columns: 1fr; }
}
.pillar-index-card{
  display:block; text-decoration:none;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px;
}
.pillar-index-card:hover{ box-shadow:0 12px 28px rgba(15,26,51,0.08); }
.pillar-index-card .pillar-name{ color:var(--navy); }
.pillar-index-card .pillar-name .mark{ background:var(--green); }
.pillar-index-card .pillar-desc{ color:rgba(22,38,75,0.68); }
.pillar-index-card .count{ font-size:12.5px; color:var(--green-dark); font-weight:600; margin-top:14px; }

/* ---------- ARTICLE BODY ---------- */
.article-body{ padding:56px 0 100px; background:var(--paper); }
.article-body .wrap{ max-width:760px; }
.article-body h2{ font-size:24px; font-weight:600; margin-top:40px; margin-bottom:14px; }
.article-body h3{ font-size:19px; font-weight:600; margin-top:32px; margin-bottom:10px; }
.article-body p{ font-size:16.5px; line-height:1.8; color:rgba(22,38,75,0.85); margin:0 0 20px; }
.article-body ul, .article-body ol{ font-size:16.5px; line-height:1.8; color:rgba(22,38,75,0.85); padding-left:22px; margin:0 0 20px; }
.article-body a{ color:var(--green-dark); text-decoration-color:rgba(62,122,44,0.4); }
.article-body img{ border-radius:12px; margin:28px 0; }
.article-body blockquote{
  border-left:3px solid var(--gold);
  margin:28px 0; padding:4px 0 4px 20px;
  color:rgba(22,38,75,0.7); font-style:italic;
}
