/* ==========================================================================
   Editorial hero — homepage only.

   Loaded last so it settles the earlier hero layers (brand.css,
   screenshot-alignment.css, african-brand.css, no-image-hero.css) and the
   global heading rules in content-alignment.css.

   Scope notes
   - The section keeps .brand-hero so site.js still excludes it from the
     scroll-reveal observer (main>section:not(.brand-hero)); .hero-editorial
     carries the design and every child class is its own, so no legacy rule
     reaches inside the hero.
   - content-alignment.css uses `body:not(:has(.admin-portal)) h1`, which
     scores (0,1,2) because the class inside :has() counts. Hero rules use two
     classes so they outrank it without !important.
   - Deep navy ground so the firm's opening statement lands with authority. It
     runs straight into the navy contact strip below, so the top of the page
     reads as one confident block; gold carries the accents and the action.
   ========================================================================== */

.hero-editorial{
  --hero-navy:#0d1628;
  --hero-navy-raised:#15213a;
  --hero-gold:#d4a24c;           /* gold on navy — 8.1:1 */
  --hero-gold-deep:#b8862f;      /* hover state for the gold button */
  --hero-ivory:#f8f4ea;
  --hero-ivory-soft:rgba(248,244,234,.74);
  --hero-rule:rgba(248,244,234,.12);
  --hero-serif:"Instrument Serif",Georgia,"Times New Roman",serif;
  --hero-sans:"DM Sans",Inter,system-ui,-apple-system,sans-serif;
}

/* --------------------------------------------------------------- section -- */

.brand-hero.hero-editorial{
  position:relative;
  display:block;                 /* legacy: flex + align-items:center */
  min-height:0;
  /* african-brand.css reserves 330px/280px of top padding at its small
     breakpoints for a hero photograph that no-image-hero.css later dropped. */
  padding:0;
  background:var(--hero-navy)!important;
  color:var(--hero-ivory);
  overflow:hidden;
  isolation:isolate;
}

/* A low, warm glow behind the headline gives the navy depth without a gradient
   wash across the whole section. */
.hero-editorial:before{
  content:"";position:absolute;z-index:0;pointer-events:none;
  inset:-20% auto auto -10%;width:60%;height:120%;
  border:0;box-shadow:none;border-radius:50%;
  background:radial-gradient(closest-side,rgba(212,162,76,.10),transparent 70%);
  -webkit-mask-image:none;mask-image:none;
}

/* Hairline where the hero meets the contact strip. Resets the 620px bordered ring
   no-image-hero.css draws on this same pseudo-element. */
.hero-editorial:after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  inset:auto 0 0 0;width:auto;height:1px;
  border:0;box-shadow:none;border-radius:0;
  background:var(--hero-rule);
}

.hero-editorial .hero-frame{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:clamp(40px,4.5vw,72px);
  align-items:center;
  width:min(1140px,calc(100% - 40px));
  margin-inline:auto;
  padding:clamp(48px,4.6vw,68px) 0 clamp(40px,3.6vw,52px);
}

/* ------------------------------------------------------------ statement -- */

.hero-editorial .hero-statement{
  position:relative;
  display:block;
  padding-block:0;
}

.hero-editorial .hero-eyebrow{
  display:flex;align-items:center;gap:14px;
  margin:0 0 clamp(18px,1.8vw,24px);
  color:var(--hero-gold);
  font:600 11.5px/1.2 var(--hero-sans);
  letter-spacing:.24em;text-transform:uppercase;
}
.hero-editorial .hero-eyebrow:before{
  content:"";flex:none;width:40px;height:2px;background:currentColor;
}

.hero-editorial .hero-headline{
  margin:0 0 clamp(18px,1.8vw,26px);
  color:var(--hero-ivory);
  font:400 clamp(50px,6vw,90px)/.98 var(--hero-serif);
  letter-spacing:-.02em;
  text-wrap:balance;
}
.hero-editorial .hero-accent{
  color:var(--hero-gold);
  font-style:italic;
}

.hero-editorial .hero-lede{
  max-width:34rem;margin:0;
  color:var(--hero-ivory-soft);
  font:400 clamp(16px,1.15vw,18px)/1.65 var(--hero-sans);
}

.hero-editorial .hero-cta-row{
  display:flex;align-items:center;flex-wrap:wrap;
  gap:14px 16px;
  margin-top:clamp(26px,2.6vw,36px);
}

.hero-editorial .hero-cta,
.hero-editorial .hero-jump{
  display:inline-flex;align-items:center;gap:12px;
  padding:17px 28px;
  border:1px solid transparent;border-radius:2px;
  text-decoration:none;
  font:700 14.5px/1 var(--hero-sans);letter-spacing:.02em;
  transition:background .22s ease,color .22s ease,border-color .22s ease,transform .22s ease;
}
.hero-editorial .hero-cta{
  background:var(--hero-gold);border-color:var(--hero-gold);
  color:var(--hero-navy);
  box-shadow:0 10px 28px -12px rgba(212,162,76,.55);
}
.hero-editorial .hero-cta:hover{background:var(--hero-gold-deep);border-color:var(--hero-gold-deep);transform:translateY(-1px)}
.hero-editorial .hero-jump{
  border-color:rgba(248,244,234,.34);
  color:var(--hero-ivory);
  font-weight:600;
}
.hero-editorial .hero-jump:hover{border-color:var(--hero-ivory);background:rgba(248,244,234,.06)}
.hero-editorial .hero-cta span,
.hero-editorial .hero-jump span{transition:transform .22s ease}
.hero-editorial .hero-cta:hover span{transform:translateX(4px)}
.hero-editorial .hero-jump:hover span{transform:translateY(3px)}

.hero-editorial a:focus-visible{outline:2px solid var(--hero-gold);outline-offset:4px}

/* --------------------------------------------------------------- figure -- */

.hero-editorial .hero-figure{
  position:relative;
  margin:0 0 clamp(18px,1.6vw,24px);   /* room for the credential to overhang */
  aspect-ratio:1/1.02;
  max-height:540px;
}
/* Gold offset frame behind the photograph: a single confident brand device. It steps
   down and to the left, into the column gap, so the photo keeps the page's right edge. */
.hero-editorial .hero-figure:before{
  content:"";position:absolute;z-index:0;
  inset:clamp(14px,1.4vw,20px) clamp(14px,1.4vw,20px) calc(-1 * clamp(14px,1.4vw,20px)) calc(-1 * clamp(14px,1.4vw,20px));
  border:1px solid rgba(212,162,76,.55);
  pointer-events:none;
}
.hero-editorial .hero-figure img{
  position:relative;z-index:1;
  display:block;
  width:100%;height:100%;
  object-fit:cover;
  object-position:50% 30%;
  box-shadow:0 30px 60px -30px rgba(0,0,0,.6);
}

/* Solid gold credential overlapping the foot of the photograph. */
.hero-editorial .hero-credential{
  position:absolute;left:calc(-1 * clamp(14px,1.4vw,20px));bottom:calc(-1 * clamp(18px,1.6vw,24px));z-index:2;
  display:flex;align-items:center;gap:clamp(14px,1.4vw,18px);
  margin:0;
  padding:clamp(18px,1.7vw,24px) clamp(22px,2vw,28px);
  background:var(--hero-gold);
  color:var(--hero-navy);
  max-width:min(88%,400px);
  box-shadow:0 18px 40px -18px rgba(0,0,0,.55);
}
.hero-editorial .hero-credential strong{
  color:var(--hero-navy);
  font:400 clamp(48px,4.4vw,64px)/.86 var(--hero-serif);
  letter-spacing:-.03em;
}
.hero-editorial .hero-credential span{
  color:var(--hero-navy);
  font:700 10.5px/1.55 var(--hero-sans);
  letter-spacing:.16em;text-transform:uppercase;
}

/* ------------------------------------------------------- principles strip -- */

.hero-editorial .hero-principles{
  grid-column:1/-1;
  position:relative;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(20px,2.6vw,40px);
  list-style:none;
  margin:clamp(8px,1vw,16px) 0 0;
  padding:clamp(20px,2vw,26px) 0 0;
  border-top:1px solid var(--hero-rule);
}
.hero-editorial .hero-principles li{
  position:relative;
  display:flex;align-items:baseline;gap:14px;
}
.hero-editorial .principle-index{
  color:var(--hero-gold);
  font:600 11px/1 var(--hero-sans);
  letter-spacing:.2em;font-variant-numeric:tabular-nums;
}
.hero-editorial .principle-name{
  color:var(--hero-ivory);
  font:400 clamp(21px,1.7vw,26px)/1.15 var(--hero-serif);
  letter-spacing:-.01em;
}

/* ------------------------------------------------------------- movement -- */
/* Restrained reveals, 240–400ms, opacity and small offsets only. */

@media (prefers-reduced-motion:no-preference){
  .hero-editorial .hero-statement>*{animation:hero-enter .45s ease both}
  .hero-editorial .hero-statement>*:nth-child(2){animation-delay:.06s}
  .hero-editorial .hero-statement>*:nth-child(3){animation-delay:.12s}
  .hero-editorial .hero-statement>*:nth-child(4){animation-delay:.18s}

  .hero-editorial .hero-figure{animation:hero-enter .5s .1s ease both}
  .hero-editorial .hero-credential{animation:hero-enter .4s .34s ease both}

  .hero-editorial .hero-principles li>*{animation:hero-item .34s ease both}
  .hero-editorial .hero-principles li:nth-child(1)>*{animation-delay:.36s}
  .hero-editorial .hero-principles li:nth-child(2)>*{animation-delay:.44s}
  .hero-editorial .hero-principles li:nth-child(3)>*{animation-delay:.52s}
}

@keyframes hero-enter{from{opacity:0;transform:translateY(12px)}}
@keyframes hero-item{from{opacity:0;transform:translateY(8px)}}

/* ----------------------------------------------------------- responsive -- */

/* Tablet — two columns retained, everything eased down proportionally */
@media (max-width:1120px){
  .hero-editorial .hero-frame{
    grid-template-columns:minmax(0,1fr) minmax(0,.9fr);
    gap:clamp(32px,4vw,52px);
  }
}

/* Mobile — stack, photograph below the headline and CTAs */
@media (max-width:820px){
  .hero-editorial:before{width:120%;height:70%;inset:-10% auto auto -30%}
  .hero-editorial .hero-frame{
    grid-template-columns:1fr;
    gap:clamp(34px,7vw,48px);
    width:min(calc(100% - 40px),620px);
    padding:clamp(40px,8vw,56px) 0 clamp(36px,7vw,48px);
  }
  .hero-editorial .hero-headline{font-size:clamp(42px,10vw,60px)}
  .hero-editorial .hero-lede{max-width:38rem}
  .hero-editorial .hero-figure{aspect-ratio:4/3;max-height:none;margin-left:clamp(14px,3vw,20px)}
  .hero-editorial .hero-principles{
    grid-template-columns:1fr;
    gap:0;
    margin-top:clamp(8px,2vw,16px);
    padding-top:0;
    border-top:0;
  }
  .hero-editorial .hero-principles li{padding:14px 0;border-top:1px solid var(--hero-rule)}
}

@media (max-width:520px){
  .hero-editorial .hero-eyebrow{gap:11px;font-size:10.5px;letter-spacing:.18em}
  .hero-editorial .hero-eyebrow:before{width:26px}
  .hero-editorial .hero-headline{font-size:clamp(40px,11.5vw,50px);line-height:1}
  .hero-editorial .hero-cta-row{align-items:stretch;flex-direction:column;gap:12px}
  .hero-editorial .hero-cta,
  .hero-editorial .hero-jump{justify-content:center}
  .hero-editorial .principle-name{font-size:21px}
  .hero-editorial .hero-credential{gap:14px}
  .hero-editorial .hero-credential strong{font-size:48px}
}

/* -------------------------------------------------------------- header --- */
/* Spacing and alignment only — the header keeps its existing design. */

.site-header .nav-wrap{gap:32px}
.site-header nav{gap:clamp(20px,2.2vw,32px)}
.site-header nav a:not(.nav-contact):not(.nav-admin){
  position:relative;
  font-family:var(--content-body);
  font-size:13.5px;font-weight:500;letter-spacing:.01em;
}
.site-header nav a:not(.nav-contact):not(.nav-admin):after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:1px;
  background:#8a6620;
  transform:scaleX(0);transform-origin:left;
  transition:transform .24s ease;
}
.site-header nav a:not(.nav-contact):not(.nav-admin):hover:after,
.site-header nav a:not(.nav-contact):not(.nav-admin):focus-visible:after{transform:scaleX(1)}
