/*==================================================
COMPLIANCEATLAS
HOME.CSS
The landing page (index.html) only. Shared reset,
footer base and back-to-top button come from main.css.
Editorial palette: paper, ink navy, library gold.
==================================================*/

body.home{
  --paper:#f6f1e7;
  --paper-2:#fbf8f1;
  --ink:#14233d;
  --ink-2:#2b3a52;
  --navy:#132a4c;
  --navy-deep:#0c1d36;
  --gold:#c4a052;
  --gold-deep:#a8843a;
  --rule:#d8cdb8;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;

  background:var(--paper);
  background-image:radial-gradient(ellipse at top,#fbf8f1 0%,rgba(246,241,231,0) 70%);
  color:var(--ink);
  font-family:var(--serif);
  font-optical-sizing:auto;
  overflow-x:hidden;
}

.home a{ color:inherit; text-decoration:none; }

.home :focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

.home-skip{
  position:absolute; left:12px; top:-60px; z-index:2000;
  padding:10px 16px; background:var(--navy); color:#fff !important; font-family:var(--sans);
}
.home-skip:focus{ top:12px; }

.home-wrap,
.home-masthead,
.home-nav-inner,
.home-main{
  width:min(1480px, 100% - 48px);
  margin-inline:auto;
}


/*==================================================
MASTHEAD
==================================================*/

.home-masthead{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:28px;
  padding:22px 0 18px;
}

.home-motto{
  font-style:italic;
  font-size:1.18rem;
  color:var(--ink-2);
  line-height:1.35;
  padding-bottom:14px;
  border-bottom:1px solid var(--ink-2);
}
.home-motto-right{ text-align:right; font-size:1.02rem; }

.home-brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--navy) !important;
}

/* The brand is the page's <h1>; it keeps the brand's own look. */
.home-title{ margin:0; font:inherit; line-height:inherit; }

.home-compass{ width:86px; height:86px; flex:none; color:var(--navy); }

.home-brand-text{ display:flex; flex-direction:column; align-items:center; }

.home-brand-name{
  font-size:clamp(2.4rem, 4.4vw, 4.1rem);
  font-weight:700;
  font-variation-settings:"opsz" 60;
  letter-spacing:-.025em;
  line-height:1;
  color:var(--navy);
}

.home-brand-sub{
  margin-top:10px;
  font-family:var(--sans);
  font-size:clamp(.68rem, .95vw, .9rem);
  font-weight:600;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--ink);
}


/*==================================================
NAVIGATION
==================================================*/

.home-nav{
  background:var(--navy);
  color:#fff;
  border-top:1px solid var(--navy-deep);
  box-shadow:0 2px 0 var(--gold) inset, 0 6px 18px rgba(12,29,54,.18);
  position:relative;
  z-index:50;
}

.home-nav-inner{
  display:flex;
  align-items:center;
  min-height:56px;
  gap:4px;
}

.home-nav-home{
  display:flex; align-items:center; justify-content:center;
  width:48px; height:40px;
  margin-right:6px;
  border-right:1px solid rgba(255,255,255,.22);
  color:#fff !important;
}
.home-nav-home:hover{ color:var(--gold) !important; }

.home-menu{
  display:flex;
  align-items:center;
  list-style:none;
  flex:1;
}

.home-menu > li{ position:relative; }

.home-menu > li + li::before{
  content:""; position:absolute; left:0; top:50%; height:22px; margin-top:-11px;
  border-left:1px solid rgba(255,255,255,.22);
}

.home-menu-btn,
.home-menu-link{
  display:flex; align-items:center; gap:8px;
  padding:16px clamp(12px, 1.6vw, 26px);
  font:400 clamp(1rem, 1.25vw, 1.2rem)/1.2 var(--serif);
  color:#fff;
  background:none; border:0; cursor:pointer;
  white-space:nowrap;
}

.home-menu-btn::after{
  content:""; width:7px; height:7px; margin-top:-4px;
  border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor;
  transform:rotate(45deg); transition:transform .2s ease;
}

.home-menu-btn:hover,
.home-menu-link:hover,
.home-menu-btn[aria-expanded="true"]{ color:var(--gold); }

.home-sub{
  position:absolute; top:100%; left:8px;
  min-width:270px;
  list-style:none;
  padding:8px 0;
  background:var(--paper-2);
  border-top:3px solid var(--gold);
  box-shadow:0 18px 40px rgba(12,29,54,.25);
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s;
}
.home-sub-end{ left:auto; right:0; }

.has-sub.is-open .home-sub{ opacity:1; visibility:visible; transform:none; }
.has-sub.is-open .home-menu-btn::after{ transform:rotate(225deg); margin-top:4px; }

@media (hover:hover) and (min-width:961px){
  .has-sub:hover .home-sub{ opacity:1; visibility:visible; transform:none; }
}

.home-sub a{
  display:block;
  padding:10px 20px;
  font-size:1.02rem;
  color:var(--ink) !important;
  line-height:1.3;
}
.home-sub a small{
  display:block; margin-top:2px;
  font-family:var(--sans); font-size:.78rem; color:#6a6457;
}
.home-sub a:hover,
.home-sub a:focus-visible{ background:#efe7d6; }

.home-nav-follow{
  display:flex; align-items:center; gap:9px;
  margin-left:auto;
  padding:9px 16px;
  background:var(--paper-2);
  color:var(--ink) !important;
  font-family:var(--sans); font-size:.9rem; font-weight:600;
  border-radius:2px;
  white-space:nowrap;
}
.home-nav-follow:hover{ background:#fff; }

.home-toggle{ display:none; }


/*==================================================
FEATURED + HEADLINES
==================================================*/

.home-main{ padding:4px 0 0; }

.home-top{
  display:grid;
  grid-template-columns:minmax(0, 3.1fr) minmax(300px, 1fr);
  gap:0;
  background:var(--paper-2);
  box-shadow:0 1px 0 var(--rule), 0 10px 30px rgba(20,35,61,.08);
}

.home-feature{
  position:relative;
  min-height:clamp(440px, 36vw, 560px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:var(--navy-deep);
  color:#fff;
}

.home-feature-media,
.home-feature-media img{
  position:absolute; inset:0;
  width:100%; height:100%;
}
.home-feature-media img{ object-fit:cover; object-position:70% 40%; }

.home-feature::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(10,24,46,.94) 0%, rgba(10,24,46,.82) 34%, rgba(10,24,46,.35) 60%, rgba(10,24,46,0) 78%),
    linear-gradient(0deg, rgba(10,24,46,.55) 0%, rgba(10,24,46,0) 40%);
}

.home-feature-text{
  position:relative; z-index:1;
  width:min(640px, 58%);
  padding:clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px);
}

.home-feature-kicker{
  display:flex; align-items:center; gap:14px;
  font-family:var(--sans); font-size:.86rem; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold);
}
.home-feature-kicker{ white-space:nowrap; }
.home-feature-kicker::after{ content:""; width:clamp(28px, 6vw, 90px); border-top:1px solid var(--gold); }
.home-feature-kicker span{
  order:3; padding:2px 8px; border:1px solid rgba(196,160,82,.6);
  font-size:.7rem; letter-spacing:.14em;
}

.home-feature-title{
  margin:16px 0 0;
  font-size:clamp(1.9rem, 3.3vw, 3.25rem);
  font-weight:700;
  font-variation-settings:"opsz" 60;
  line-height:1.06;
  letter-spacing:-.015em;
  color:#fff;
  text-wrap:balance;
}
.home-feature-title a{ color:#fff !important; }
.home-feature-title a:hover{ text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:6px; text-decoration-thickness:2px; }

.home-feature-dek{
  margin-top:16px;
  font-size:clamp(1.02rem, 1.25vw, 1.2rem);
  line-height:1.45;
  color:#e9e4d8;
}

.home-feature-btn{
  display:inline-flex; align-items:center; gap:10px;
  margin-top:24px;
  padding:12px 22px;
  background:var(--gold);
  color:var(--navy-deep) !important;
  font-size:1.08rem; font-weight:600;
  border-radius:2px;
  transition:background .2s ease;
}
.home-feature-btn:hover{ background:#d6b468; }

.home-feature-meta{
  margin-top:18px;
  font-family:var(--sans); font-size:.82rem; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase;
  color:#e2ddd1;
}

.home-dot{ margin:0 .6em; color:var(--gold); }

.home-headlines{
  padding:30px 26px 22px;
  display:flex; flex-direction:column;
}

.home-label{
  font-family:var(--sans);
  font-size:.95rem; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--ink);
  padding-bottom:10px;
  border-bottom:2px solid transparent;
  border-image:linear-gradient(90deg, var(--gold), rgba(196,160,82,.25)) 1;
}
.home-label-center{ text-align:center; border:0; }

.home-headline-list{ list-style:none; flex:1; }

.home-headline-list li{
  padding:15px 0 13px;
  border-bottom:1px solid var(--rule);
}

.home-headline-list a{
  display:block;
  font-size:1.08rem; line-height:1.28;
  color:var(--ink) !important;
}
.home-headline-list a:hover{ color:var(--navy) !important; text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:3px; }

.home-headline-meta{
  margin-top:6px;
  font-family:var(--sans); font-size:.74rem; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase;
  color:#4a5568;
}
.home-date{ color:var(--gold-deep); }

.home-headlines-foot{
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:6px 14px;
  padding-top:14px;
  font-family:var(--sans); font-size:.8rem;
}
.home-headlines-updated{ color:#6a6457; }
.home-headlines-foot a{ font-weight:600; color:var(--navy) !important; }
.home-headlines-foot a:hover{ text-decoration:underline; }


/*==================================================
SPONSORED — one quiet, labelled placement
==================================================*/

.home-sponsored{
  display:flex; align-items:center; justify-content:center; gap:22px;
  margin:26px 0 0;
  padding:14px 0;
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
}

.home-sponsored-label{
  font-family:var(--sans); font-size:.7rem; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:#857d6c;
}

.home-sponsored-cards{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }

.home-sponsored-card{
  display:block; width:200px;
  border:1px solid var(--rule); background:#fff;
  transition:box-shadow .2s ease;
}
.home-sponsored-card:hover{ box-shadow:0 6px 16px rgba(20,35,61,.12); }
.home-sponsored-card img{ display:block; width:100%; height:auto; }

/* Evolv: its artwork is 5:3, the others 1659:948 — crop the black
   margin so all three cards are the same size. The favicon sits in the
   empty space to the right of the wordmark. */
.home-sponsored-card--evolv{ position:relative; overflow:hidden; background:#000; }
.home-sponsored-card--evolv > img:first-child{ aspect-ratio:1659 / 948; object-fit:cover; }
.home-sponsored-card .home-sponsored-logo{
  position:absolute; left:85%; top:52%; transform:translateY(-50%);
  width:11%; height:auto; border-radius:18%;
}


/*==================================================
RESEARCH CARDS
==================================================*/

.home-research{ padding:30px 0 10px; }

.home-cards{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:clamp(14px, 1.4vw, 22px);
  margin-top:14px;
}

.home-card{
  position:relative;
  display:flex; flex-direction:column;
  background:var(--paper-2);
  border:1px solid var(--rule);
  box-shadow:0 4px 14px rgba(20,35,61,.08);
  transition:transform .25s ease, box-shadow .25s ease;
}
.home-card:hover,
.home-card:focus-within{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(20,35,61,.16); }

.home-card > img{
  display:block; width:100%; height:auto;
  aspect-ratio:16 / 7.6; object-fit:cover;
  border-bottom:3px solid var(--navy);
}

.home-card-body{ padding:18px 22px 20px; display:flex; flex-direction:column; flex:1; }

.home-card h3{
  font-size:clamp(1.45rem, 1.8vw, 1.75rem);
  font-weight:600; line-height:1.15; color:var(--navy);
}

/* The heading link covers the whole card. */
.home-card-link{ color:var(--navy) !important; }
.home-card-link::after{ content:""; position:absolute; inset:0; z-index:1; }

.home-card-body > p{
  margin-top:6px; font-size:1.04rem; line-height:1.4; color:var(--ink-2);
}

.home-card-cta{
  margin-top:auto; padding-top:12px;
  font-size:1rem; font-weight:600; color:var(--navy);
}
.home-card:hover .home-card-cta{ text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:4px; }

.home-card-more{
  position:relative; z-index:2;
  margin-top:8px !important;
  font-family:var(--sans); font-size:.8rem !important; color:#6a6457 !important;
}
.home-card-more a{ color:var(--navy) !important; text-decoration:underline; text-decoration-color:var(--rule); text-underline-offset:3px; }
.home-card-more a:hover{ text-decoration-color:var(--gold); }


/*==================================================
ABOUT
==================================================*/

.home-about{ padding:42px 0 10px; }

.home-about-cols{
  display:grid; grid-template-columns:1fr 1.4fr; gap:40px;
  margin-top:18px;
}

.home-about-lead{
  font-size:clamp(1.3rem, 1.8vw, 1.6rem); line-height:1.35; font-style:italic; color:var(--navy);
}

.home-about-cols div p{ font-size:1.05rem; line-height:1.6; color:var(--ink-2); }
.home-about-cols div p + p{ margin-top:12px; }
.home-about-cols a{ color:var(--navy) !important; text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:3px; }


/*==================================================
FOOTER (extends .site-footer in main.css)
==================================================*/

.home-footer{
  margin-top:56px;
  padding:0 0 34px;
  background:var(--navy-deep);
  border-top:3px solid var(--gold);
  color:#c9cfdb;
  font-family:var(--sans);
}

.home-footer-motto{
  display:flex !important; align-items:center; gap:28px;
  max-width:1100px !important;
  padding:24px 20px;
  margin-bottom:18px !important;
  font-family:var(--serif); font-style:italic;
  font-size:clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing:.06em;
  color:#ece6d8;
}
.home-footer-motto::before,
.home-footer-motto::after{ content:""; flex:1; border-top:1px solid rgba(236,230,216,.35); }


/*==================================================
RESPONSIVE
==================================================*/

@media (max-width:1280px){
  .home-nav-follow span{ display:none; }
  .home-nav-follow{ padding:9px 11px; }
}

@media (max-width:1100px){
  .home-top{ grid-template-columns:1fr; }
  .home-feature-text{ width:min(680px, 74%); }
  .home-feature::after{
    background:
      linear-gradient(90deg, rgba(10,24,46,.95) 0%, rgba(10,24,46,.9) 50%, rgba(10,24,46,.55) 78%, rgba(10,24,46,.2) 100%),
      linear-gradient(0deg, rgba(10,24,46,.55) 0%, rgba(10,24,46,0) 40%);
  }
  .home-headline-list{ display:grid; grid-template-columns:1fr 1fr; column-gap:28px; }
  .home-cards{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

/* Masthead and nav collapse. main.js toggles .show on #navLinks. */
@media (max-width:960px){
  .home-masthead{ grid-template-columns:1fr; justify-items:center; gap:10px; padding:18px 0 14px; }
  .home-motto{ display:none; }
  .home-compass{ width:64px; height:64px; }

  .home-nav-inner{ flex-wrap:wrap; min-height:52px; }
  .home-toggle{ display:flex; order:3; margin-left:12px; }
  .home-toggle span{ background:#fff; }
  .home-nav-follow{ order:2; }

  .home-menu{
    order:4; flex-basis:100%;
    display:none; flex-direction:column; align-items:stretch;
    position:static !important;
    padding:4px 0 10px;
    border-top:1px solid rgba(255,255,255,.16);
  }
  .home-menu.show{ display:flex; }
  .home-menu > li + li::before{ display:none; }
  .home-menu > li{ border-bottom:1px solid rgba(255,255,255,.1); }
  .home-menu-btn,
  .home-menu-link{ width:100%; justify-content:space-between; padding:14px 6px; font-size:1.12rem; }

  .home-sub{
    position:static; display:none; min-width:0;
    opacity:1; visibility:visible; transform:none;
    box-shadow:none; border-top:0;
    margin:0 0 10px; padding:4px 0;
    background:rgba(255,255,255,.06);
  }
  .has-sub.is-open .home-sub{ display:block; }
  .home-sub a{ color:#fff !important; padding:10px 16px; }
  .home-sub a small{ color:#b9c3d4; }
  .home-sub a:hover{ background:rgba(255,255,255,.08); }
}

/* Photograph on top, story below: no text over a busy image. */
@media (max-width:860px){
  .home-feature{ display:block; min-height:0; overflow:visible; }
  .home-feature-media{ position:relative; inset:auto; display:block; height:auto; aspect-ratio:16 / 9; overflow:hidden; }
  .home-feature-media img{ position:absolute; inset:0; }
  .home-feature::after{ display:none; }
  .home-feature-text{ width:100%; background:var(--navy-deep); }
}

@media (max-width:720px){
  .home-masthead,
  .home-nav-inner,
  .home-main{ width:calc(100% - 28px); }

  .home-brand{ gap:10px; }
  .home-compass{ width:50px; height:50px; }
  .home-brand-name{ font-size:clamp(1.9rem, 9vw, 2.6rem); }
  .home-brand-sub{ font-size:.58rem; letter-spacing:.16em; margin-top:6px; }

  .home-main{ width:100%; }
  .home-top{ box-shadow:none; }
  .home-feature-text{ padding:22px 18px 26px; }
  .home-feature-title{ font-size:clamp(1.65rem, 7vw, 2.1rem); }

  .home-headlines{ padding:24px 18px 18px; }
  .home-headline-list{ display:block; }

  .home-sponsored,
  .home-research,
  .home-about{ margin-inline:14px; }
  .home-sponsored{ flex-direction:column; gap:10px; }
  .home-sponsored-card{ width:min(160px, 42vw); }

  .home-cards{ grid-template-columns:1fr; }
  .home-card > img{ aspect-ratio:16 / 6.5; }

  .home-about-cols{ grid-template-columns:1fr; gap:14px; }
}

@media (prefers-reduced-motion:reduce){
  .home-card, .home-sub, .home-menu-btn::after{ transition:none; }
  .home-card:hover, .home-card:focus-within{ transform:none; }
}
