/* ============================================================
   Delta — The Impact
   Same standalone system as Real Stories / Take Action.
   Palette sampled from the approved comps.
   ============================================================ */

:root{
  --bg:          #FBEBDA;
  --bg-warm:     #F7E2CC;
  --card:        #FCEFE2;
  --card-2:      #F8E7D4;   /* impact panel fill */
  --bar:         #EADEDD;   /* drawer toggle bar */
  --bar-hover:   #E3D4D3;

  --ink:         #2B1539;
  --purple:      #382450;
  --ink-soft:    rgba(43,21,57,.76);
  --ink-mute:    rgba(43,21,57,.54);

  --orange:      #CB4805;
  --orange-lit:  #DD6A20;

  --sage:        #C3CBA8;
  --sage-deep:   #A3AE83;
  --tan:         #E7CFAE;
  --peach:       #F4D8C0;

  --line:        rgba(43,21,57,.13);
  --line-soft:   rgba(43,21,57,.08);
  --dash:        rgba(43,21,57,.16);

  --serif: "Playfair Display", Georgia, serif;
  --quote: "Newsreader", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(20px, 3.2vw, 56px);

  --gap:   clamp(14px, 2.1vw, 44px);
  --node:  clamp(30px, 2.7vw, 46px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0; min-height:100%;
  background:
    radial-gradient(120% 80% at 50% 0%, #FDF1E4 0%, var(--bg) 55%, var(--bg-warm) 100%);
  color:var(--ink); font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
}

svg{ fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

.grain{
  position:fixed; inset:0; z-index:9000; pointer-events:none;
  opacity:.48; mix-blend-mode:multiply;
  background-image:
    radial-gradient(rgba(43,21,57,.05) .6px, transparent .7px),
    radial-gradient(rgba(150,85,30,.04) .6px, transparent .7px);
  background-size:3px 3px, 5px 5px; background-position:0 0, 2px 1px;
}

/* ---------- Header ---------- */

.site-header{
  position:relative; z-index:20;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:clamp(18px,2.2vw,34px) var(--pad-x);
}
.brand{ display:flex; align-items:center; gap:clamp(12px,1.3vw,22px); }
.brand__home{ display:inline-flex; align-items:center; border-radius:6px; }
.brand__home:focus-visible{ outline:3px solid var(--orange); outline-offset:4px; }

.brand__logo{ height:clamp(30px,2.7vw,48px); width:auto; display:block; }
.brand__wordmark{
  font-family:var(--serif); font-style:italic; font-weight:700;
  font-size:clamp(30px,2.7vw,48px); line-height:1; color:var(--ink); letter-spacing:-.02em;
}
.brand__rule{ width:1px; height:clamp(24px,2vw,36px); background:var(--line); }
.brand__tag{ margin:0; font-size:clamp(13px,1.05vw,18px); font-weight:500; letter-spacing:-.005em; }

.site-nav{ display:flex; align-items:center; gap:clamp(14px,1.9vw,38px); }
.site-nav a{
  position:relative; color:var(--ink); text-decoration:none;
  font-size:clamp(13px,.95vw,16px); font-weight:600; letter-spacing:-.005em;
  padding-bottom:6px; transition:color .25s var(--ease);
}
.site-nav a:not(.btn-share):hover{ color:var(--orange); }
.site-nav a.is-current::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:2.5px; border-radius:2px; background:var(--orange);
}
.btn-share{
  border:1.5px solid var(--orange); color:var(--orange) !important;
  border-radius:999px; padding:.62em 1.35em;
  transition:background .3s var(--ease), color .3s var(--ease);
}
.btn-share:hover{ background:var(--orange); color:var(--card) !important; }

/* ---------- Layout ---------- */

/* the flow line runs past the cards on both sides by design; clip keeps it
   from generating a horizontal scrollbar without making a scroll container */
.im{ padding:0 var(--pad-x) clamp(28px,3vw,48px); overflow-x:clip; }

.im-grid{
  display:grid;
  grid-template-columns:minmax(300px, 1fr) minmax(0, 2.72fr);
  gap:clamp(24px,3vw,58px);
  align-items:start;
  padding-top:clamp(16px,2.4vw,44px);
}

/* ---------- Intro ---------- */

.im-title{
  margin:0; font-family:var(--serif); font-weight:700;
  font-size:clamp(40px,3.7vw,72px); line-height:.98;
  letter-spacing:-.028em; white-space:nowrap;
}
.im-rule{
  display:block; width:66px; height:3px; border-radius:2px; background:var(--orange);
  margin:clamp(14px,1.5vw,24px) 0 clamp(16px,1.6vw,26px);
}
.im-lede{ margin:0; font-size:clamp(15px,1.15vw,20px); line-height:1.62; max-width:30ch; }

.im-note{ display:flex; align-items:flex-start; gap:clamp(12px,1.1vw,20px); margin-top:clamp(26px,3vw,56px); }
.im-note__icon{
  flex:none; display:grid; place-items:center;
  width:clamp(42px,3.4vw,58px); aspect-ratio:1; border-radius:50%;
  border:1.6px solid var(--orange); color:var(--orange);
}
.im-note__icon svg{ width:54%; height:54%; stroke-width:1.5; }
.im-note__hd{ margin:0 0 8px; font-size:clamp(14px,1.05vw,18px); font-weight:700; line-height:1.35; letter-spacing:-.01em; }
.im-note__copy{ margin:0; font-size:clamp(13px,.95vw,16px); line-height:1.6; color:var(--ink-soft); max-width:28ch; }

/* ---------- Chain ---------- */

.im-cards{
  position:relative;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:var(--gap);
  /* start, not stretch: a grid row stretches every item together, so opening
     one drawer would grow all three cards. Collapsed heights are matched with
     a min-height written by impact.js instead, which only the opened card
     then exceeds. */
  align-items:start;
}

.im-card{
  position:relative; z-index:2;
  display:flex; flex-direction:column;
  background:var(--card); border-radius:20px;
  padding:clamp(18px,1.5vw,26px) clamp(16px,1.35vw,24px) clamp(16px,1.3vw,22px);
  box-shadow:0 24px 46px -30px rgba(90,52,20,.46), 0 2px 6px -3px rgba(90,52,20,.10);
}

.im-card__num{
  position:absolute; z-index:5;
  top:clamp(14px,1.2vw,22px); left:clamp(14px,1.2vw,22px);
  display:grid; place-items:center;
  width:clamp(28px,2.4vw,40px); aspect-ratio:1; border-radius:50%;
  background:var(--purple); color:var(--card);
  font-size:clamp(12px,.95vw,16px); font-weight:600;
}

.im-card__art{
  position:relative; margin-bottom:clamp(10px,1vw,18px);
  aspect-ratio:320/235;
}
/* The three illustrations have different native aspect ratios, so each is
   contained within a shared block rather than stretched to fill it.
   Taken out of flow deliberately: aspect-ratio yields to content, so an
   in-flow image taller than the block would stretch it and the headings
   below would stop lining up across the three cards. */
.im-card__art img{
  position:absolute; inset:0; margin:auto;
  display:block; max-width:100%; max-height:100%;
  width:auto; height:auto; object-fit:contain;
}

.im-card__hd{
  margin:0; font-family:var(--serif); font-weight:700;
  font-size:clamp(24px,2.1vw,38px); line-height:1.05;
  letter-spacing:-.025em;
}
.im-card__rule{
  display:block; width:34px; height:2.5px; border-radius:2px; background:var(--orange);
  margin:clamp(10px,.9vw,15px) 0 clamp(12px,1.1vw,18px);
}

.im-list{ margin:0 0 clamp(14px,1.3vw,22px); padding:0; list-style:none; display:grid; gap:clamp(7px,.6vw,11px); align-content:start; }
.im-list li{
  position:relative; padding-left:1.15em;
  font-size:clamp(12.5px,.96vw,16px); line-height:1.45; color:var(--ink-soft);
}
.im-list li::before{
  content:""; position:absolute; left:0; top:.52em;
  width:5px; height:5px; border-radius:50%; background:var(--orange);
}

.im-impact{
  display:flex; align-items:flex-start; gap:clamp(9px,.85vw,15px);
  margin-top:auto; padding-top:clamp(14px,1.3vw,22px);
  padding:clamp(12px,1.05vw,18px) clamp(12px,1.05vw,18px);
  background:var(--card-2); border-radius:14px;
}
.im-impact__icon{
  flex:none; display:grid; place-items:center;
  width:clamp(32px,2.7vw,46px); aspect-ratio:1; border-radius:50%;
  border:1.4px solid var(--line); color:var(--purple);
}
.im-impact__icon svg{ width:54%; height:54%; stroke-width:1.5; }
.im-impact__hd{ margin:0 0 3px; font-size:clamp(12px,.92vw,15px); font-weight:700; letter-spacing:-.008em; }
.im-impact__copy{ margin:0; font-size:clamp(11.5px,.86vw,14px); line-height:1.42; color:var(--ink-soft); }

/* ---------- Drawer ---------- */

.im-drawer{ margin-top:clamp(12px,1.1vw,20px); }

.im-drawer__toggle{
  width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
  position:relative;
  background:var(--bar); border:0; border-radius:10px; cursor:pointer;
  padding:clamp(10px,.85vw,14px) clamp(30px,2.4vw,42px);
  font-family:var(--sans); font-size:clamp(10px,.75vw,12.5px); font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; color:var(--ink);
  transition:background .28s var(--ease);
}
.im-drawer__toggle:hover{ background:var(--bar-hover); }
.im-drawer__toggle:focus-visible{ outline:3px solid var(--orange); outline-offset:3px; }
.im-chev{
  position:absolute; right:clamp(11px,.95vw,16px);
  width:clamp(15px,1.15vw,19px); height:auto; stroke-width:2;
  transition:transform .42s var(--ease);
}
.im-drawer__toggle[aria-expanded="true"]{ border-radius:10px 10px 0 0; }
.im-drawer__toggle[aria-expanded="true"] .im-chev{ transform:rotate(180deg); }

/* 0fr → 1fr animates to the panel's natural height without measuring it */
.im-drawer__wrap{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .46s var(--ease);
}
.im-drawer__wrap.is-open{ grid-template-rows:1fr; }
.im-drawer__inner{ overflow:hidden; min-height:0; }

.im-detail{ margin:0; padding:0 2px; list-style:none; }
.im-detail li{
  display:flex; align-items:center; gap:clamp(9px,.85vw,14px);
  padding:clamp(9px,.85vw,14px) 2px;
  border-bottom:1px dashed var(--dash);
  font-size:clamp(11.5px,.9vw,15px); line-height:1.4; color:var(--ink-soft);
}
.im-detail li:last-child{ border-bottom:1px dashed var(--dash); }
.im-detail__icon{ flex:none; color:var(--purple); width:clamp(16px,1.35vw,22px); }
.im-detail__icon svg{ width:100%; height:auto; stroke-width:1.55; }

/* ---------- Flow line + rippling connector nodes ---------- */

.im-flow{
  position:absolute; left:-14%; right:-10%; width:124%;
  top:var(--flowY, 44%); transform:translateY(-50%);
  height:clamp(70px,7vw,120px); z-index:3; pointer-events:none;
  color:var(--orange);
}
.im-flow path{ stroke:currentColor; stroke-width:2.2; fill:none; vector-effect:non-scaling-stroke; }

.im-node{
  position:absolute; z-index:4; pointer-events:none;
  top:var(--flowY, 44%); left:var(--nodeX, 50%);
  transform:translate(-50%,-50%);
  width:var(--node); height:var(--node);
  display:grid; place-items:center;
}

.im-node__dot{
  position:relative; z-index:2;
  width:100%; height:100%; border-radius:50%;
  background:var(--orange); color:#FDF1E4;
  display:grid; place-items:center;
  box-shadow:0 6px 16px -6px rgba(160,60,10,.55);
}
.im-node__dot svg{ width:52%; height:52%; stroke-width:2.4; }

/* Three rings leaving the arrow on a stagger. The node sits at the seam
   between two cards, so the ripple reads as the disruption travelling
   from one link of the chain to the next. */
.im-ripple{
  position:absolute; top:50%; left:50%; z-index:1;
  width:100%; height:100%; margin:-50% 0 0 -50%;
  border-radius:50%;
  border:1.5px solid var(--orange);
  opacity:0;
  animation:imRipple 3.6s cubic-bezier(0.16, 0.72, 0.34, 1) infinite;
}
.im-ripple:nth-child(2){ animation-delay:1.2s; }
.im-ripple:nth-child(3){ animation-delay:2.4s; }

@keyframes imRipple{
  0%   { transform:scale(1);   opacity:.38; }
  55%  { opacity:.16; }
  100% { transform:scale(4.2); opacity:0; }
}

/* ---------- Footer band ---------- */

.im-band{
  display:flex; align-items:center; gap:clamp(14px,1.6vw,30px); flex-wrap:wrap;
  margin-top:clamp(22px,2.4vw,40px);
  padding:clamp(14px,1.3vw,22px) clamp(18px,1.7vw,30px);
  border:1px solid var(--line-soft); border-radius:18px;
  /* opaque: the page texture would otherwise read straight through */
  background:#FDF4EA;
}
.im-band__mark{
  flex:none; display:grid; place-items:center;
  width:clamp(40px,3.4vw,58px); aspect-ratio:1; border-radius:50%;
  background:var(--peach); color:var(--orange);
}
.im-band__mark svg{ width:52%; height:52%; stroke-width:1.5; }
.im-band__hd{
  margin:0; font-family:var(--serif); font-weight:700;
  font-size:clamp(18px,1.75vw,31px); letter-spacing:-.025em; line-height:1.1;
}
.im-band__div{ width:1px; align-self:stretch; min-height:34px; background:var(--line); }
.im-band__copy{ margin:0; flex:1 1 260px; font-size:clamp(12.5px,.95vw,16px); line-height:1.5; color:var(--ink-soft); }
.im-band__btn{
  flex:none; display:inline-flex; align-items:center; gap:.9em;
  background:var(--purple); color:var(--card); text-decoration:none;
  border-radius:999px; padding:clamp(12px,1.05vw,18px) clamp(20px,1.6vw,30px);
  font-size:clamp(12.5px,.95vw,16px); font-weight:600;
  transition:background .28s var(--ease);
}
.im-band__btn svg{ width:1.25em; height:1.25em; stroke-width:1.9; transition:transform .3s var(--ease); }
.im-band__btn:hover{ background:#48305F; }
.im-band__btn:hover svg{ transform:translateX(4px); }

/* ---------- Responsive ---------- */

@media (max-width:1180px){
  .im-grid{ grid-template-columns:1fr; gap:clamp(22px,3vw,38px); }
  .im-lede{ max-width:54ch; }
  .im-note__copy{ max-width:46ch; }
}

@media (max-width:900px){
  .im-cards{ grid-template-columns:1fr; gap:clamp(18px,3vw,30px); }
  .im-flow, .im-node{ display:none; }   /* the chain reads vertically here */
  .im-title{ white-space:normal; }
  .brand__tag, .brand__rule{ display:none; }
  .btn-share{ white-space:nowrap; padding:.55em 1.05em; font-size:12.5px; }

  .im-card__art{ aspect-ratio:320/210; }
  .im-band__div{ display:none; }
  .im-band__copy{ flex:1 1 100%; }
  .im-band__btn{ width:100%; justify-content:center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  /* rings hold as static concentric outlines rather than pulsing */
  .im-ripple{ animation:none; opacity:.30; }
  .im-ripple:nth-child(2){ transform:scale(2.1); opacity:.18; }
  .im-ripple:nth-child(3){ transform:scale(3.2); opacity:.10; }
  .im-drawer__wrap{ transition-duration:.01ms; }
  .im-chev, .im-band__btn svg{ transition-duration:.01ms; }
}
