/* =========================================================================
   AchievementStories — Theme stylesheet  ·  CHARCOAL / CREAM / RED edition
   Serious editorial gravitas (Forbes-style). Playfair Display + Archivo.
   Red (#E24B4A) = Get Featured CTA + article hyperlinks/accents (per brief).
   Fonts are loaded via <link rel="preconnect"> in each page head for speed.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root{
  /* brand */
  --char:        #2C2C2A;   /* charcoal — brand + text */
  --char-800:    #232321;
  --char-900:    #161614;
  --red:         #E24B4A;   /* RESERVED: Get Featured CTA only */
  --red-700:     #c93b3a;

  /* neutrals */
  --ink:         #2C2C2A;
  --ink-soft:    #4a4a47;
  --muted:       #7a7a74;
  --line:        #e3e0d6;
  --line-soft:   #ece9df;
  --bg:          #FFFFFF;   /* white background */
  --surface:     #F1EFE8;   /* cream surfaces for bands/cards */
  --surface-2:   #e9e6dc;
  --card:        #FFFFFF;

  /* type */
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* shape — flatter, more serious */
  --r-sm: 4px;
  --r:    6px;
  --r-lg: 8px;
  --shadow:    0 1px 2px rgba(20,20,18,.04), 0 10px 30px -16px rgba(20,20,18,.22);
  --shadow-lg: 0 2px 4px rgba(20,20,18,.05), 0 28px 56px -24px rgba(20,20,18,.32);

  /* layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 60px);
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.62;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ margin:0; font-family:var(--display); font-weight:700; line-height:1.08; letter-spacing:-.01em; color:var(--ink); }
p{ margin:0 0 1em; text-wrap:pretty; }
ul{ margin:0; padding:0; list-style:none; }

/* ---------- Layout helpers ---------- */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block:clamp(48px,7vw,90px); }
.section--tight{ padding-block:clamp(32px,4vw,54px); }
.bg-surface{ background:var(--surface); }
.bg-char{ background:var(--char); color:#fff; }
.center{ text-align:center; }
.flow > * + *{ margin-top:1rem; }

/* ---------- Section headers ---------- */
.eyebrow{
  font-family:var(--sans);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--char);
  margin:0 0 .85rem;
  display:inline-flex; align-items:center; gap:9px;
}
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--char); display:inline-block; }
.bg-char .eyebrow, .page-hero .eyebrow{ color:#fff; }
.bg-char .eyebrow::before, .page-hero .eyebrow::before{ background:#fff; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:clamp(24px,3vw,40px); border-top:2px solid var(--char); padding-top:18px; }
.section-head h2{ font-size:clamp(1.7rem,3vw,2.5rem); }
.section-head .link-more{ font-family:var(--sans); font-size:.86rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--char); white-space:nowrap; display:inline-flex; align-items:center; gap:6px; padding-bottom:3px; border-bottom:2px solid transparent; transition:border-color .2s; }
.section-head .link-more:hover{ border-color:var(--char); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--sans); font-weight:700; font-size:.92rem; letter-spacing:.02em; line-height:1;
  padding:14px 24px; border-radius:var(--r-sm); border:1.5px solid transparent;
  transition:transform .15s ease, background .2s, color .2s, border-color .2s;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
/* RED — Get Featured ONLY */
.btn--feature{ background:var(--red); color:#fff; }
.btn--feature:hover{ background:var(--red-700); }
/* charcoal primary (everything else) */
.btn--primary{ background:var(--char); color:#fff; }
.btn--primary:hover{ background:var(--char-800); }
.btn--ghost{ background:transparent; color:var(--char); border-color:var(--char); }
.btn--ghost:hover{ background:var(--char); color:#fff; }
.btn--light{ background:#fff; color:var(--char); }
.btn--light:hover{ background:var(--surface); }
.btn--lg{ padding:17px 32px; font-size:1rem; }
.btn--block{ width:100%; }

/* ---------- Tags / chips ---------- */
.tag{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--sans); font-size:.68rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--char); background:transparent; padding:5px 0; border:none;
}
.tag--solid{ background:var(--char); color:#fff; padding:5px 11px; border-radius:var(--r-sm); }
.tag--ondark{ background:rgba(255,255,255,.16); color:#fff; padding:5px 11px; border-radius:var(--r-sm); }
.tag--brand{ color:var(--char); border:1px solid var(--char); padding:4px 10px; border-radius:var(--r-sm); }

/* ---------- Images ---------- */
.ph{
  position:relative; overflow:hidden; background:var(--surface);
  background-image:repeating-linear-gradient(135deg, rgba(44,44,42,.05) 0 2px, transparent 2px 11px);
  border-radius:inherit;
}
.ph img{ width:100%; height:100%; object-fit:cover; display:block; filter:grayscale(.12) contrast(1.04); }
.ph::after{
  content:attr(data-ph);
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:ui-monospace,"SF Mono",Menlo,monospace; font-size:.7rem; letter-spacing:.08em;
  color:rgba(44,44,42,.4); text-transform:uppercase; pointer-events:none;
}
.ph:has(img)::after{ content:none; }
.ph--portrait{ aspect-ratio:4/5; }
.ph--feature{ aspect-ratio:16/10; }
.ph--wide{ aspect-ratio:16/7; }
.ph--square{ aspect-ratio:1/1; }
.ph--avatar{ border-radius:999px; aspect-ratio:1/1; }
.ph--avatar img{ filter:grayscale(.2) contrast(1.05); }

/* ---------- Story cards ---------- */
.card{
  background:var(--card); border-radius:var(--r); overflow:hidden;
  box-shadow:var(--shadow); border:1px solid var(--line-soft);
  display:flex; flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease;
}
a.card:hover, .card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.card .ph{ border-radius:0; }
.card__body{ padding:20px 22px 24px; display:flex; flex-direction:column; gap:9px; flex:1; }
.card__cat{ font-family:var(--sans); font-size:.68rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.card__title{ font-size:1.32rem; line-height:1.16; }
.card a.card__title:hover, .card__title a:hover{ text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.card__excerpt{ font-size:.95rem; color:var(--ink-soft); margin:0; }
.card__meta{ margin-top:auto; padding-top:6px; display:flex; align-items:center; gap:10px; font-size:.8rem; color:var(--muted); font-weight:500; }
.card__meta .dot{ width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.6; }

/* compact horizontal card */
.card-h{ display:grid; grid-template-columns:110px 1fr; gap:16px; align-items:center; }
.card-h .ph{ border-radius:var(--r-sm); aspect-ratio:1/1; }
.card-h h3{ font-size:1.08rem; line-height:1.18; }
.card-h .card__meta{ margin-top:6px; }

/* ---------- Byline ---------- */
.byline{ display:flex; align-items:center; gap:12px; }
.byline .ph--avatar{ width:44px; height:44px; flex:none; }
.byline__name{ font-family:var(--sans); font-weight:700; font-size:.9rem; color:var(--ink); }
.byline__meta{ font-size:.8rem; color:var(--muted); }

/* ---------- Grids ---------- */
.grid{ display:grid; gap:clamp(20px,2.4vw,30px); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

/* horizontal scroll rail */
.rail{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(290px,1fr); gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:12px; margin-inline:calc(var(--gutter)*-1); padding-inline:var(--gutter); }
.rail > *{ scroll-snap-align:start; }
.rail::-webkit-scrollbar{ height:8px; }
.rail::-webkit-scrollbar-thumb{ background:var(--line); border-radius:999px; }

/* ---------- Bands ---------- */
.band{ border-radius:var(--r-lg); padding:clamp(32px,5vw,64px); position:relative; overflow:hidden; }
.band--char{ background:var(--char); color:#fff; }
.band--char h2{ color:#fff; }
.cta-band{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-band h2{ font-size:clamp(1.8rem,3.4vw,2.7rem); max-width:18ch; }
.cta-band p{ color:rgba(255,255,255,.76); max-width:48ch; margin:.6rem 0 0; }

/* ---------- Newsletter ---------- */
.news-form{ display:flex; gap:10px; flex-wrap:wrap; }
.news-form input[type=email]{ flex:1; min-width:220px; }
.input{
  font-family:var(--sans); font-size:1rem; color:var(--ink);
  background:#fff; border:1.5px solid var(--line); border-radius:var(--r-sm);
  padding:14px 16px; width:100%; transition:border-color .2s, box-shadow .2s;
}
.input:focus{ outline:none; border-color:var(--char); box-shadow:0 0 0 3px rgba(44,44,42,.12); }
.band--char .input{ background:#fff; border-color:transparent; }

/* ---------- Forms ---------- */
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom:18px; }
.field label{ font-family:var(--sans); font-weight:700; font-size:.82rem; letter-spacing:.02em; color:var(--ink); }
.field textarea{ font-family:var(--sans); font-size:1rem; background:#fff; border:1.5px solid var(--line); border-radius:var(--r-sm); padding:13px 16px; resize:vertical; min-height:130px; transition:border-color .2s, box-shadow .2s; }
.field textarea:focus,.field select:focus{ outline:none; border-color:var(--char); box-shadow:0 0 0 3px rgba(44,44,42,.12); }
.field select{ font-family:var(--sans); font-size:1rem; background:#fff; border:1.5px solid var(--line); border-radius:var(--r-sm); padding:14px 16px; appearance:none; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }

/* ---------- Stat cards ---------- */
.stat{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:28px 26px; box-shadow:var(--shadow); }
.stat__num{ font-family:var(--display); font-weight:800; font-size:clamp(2.2rem,4vw,3.1rem); color:var(--char); line-height:1; }
.stat__label{ font-size:.88rem; color:var(--muted); margin-top:8px; font-weight:500; }

/* ---------- Pricing ---------- */
.price-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:start; }
.price{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:32px 28px; display:flex; flex-direction:column; gap:18px; position:relative; }
.price--feat{ border:2px solid var(--char); box-shadow:var(--shadow-lg); }
.price__badge{ position:absolute; top:-13px; left:28px; background:var(--char); color:#fff; font-family:var(--sans); font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:5px 12px; border-radius:var(--r-sm); }
.price__name{ font-family:var(--sans); font-weight:700; letter-spacing:.06em; text-transform:uppercase; font-size:.84rem; color:var(--muted); }
.price__amt{ font-family:var(--display); font-size:2.7rem; font-weight:800; color:var(--ink); line-height:1; }
.price__amt span{ font-family:var(--sans); font-size:.88rem; font-weight:500; color:var(--muted); }
.price ul{ display:flex; flex-direction:column; gap:11px; }
.price li{ display:flex; gap:10px; font-size:.93rem; color:var(--ink-soft); }
.price li svg{ flex:none; margin-top:3px; color:var(--char); }

/* ---------- Steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.step{ position:relative; padding-top:20px; border-top:2px solid var(--char); }
.step__num{ font-family:var(--display); font-size:1.4rem; font-weight:800; color:var(--char); margin-bottom:12px; }
.step h3{ font-size:1.18rem; margin-bottom:6px; }
.step p{ font-size:.92rem; color:var(--muted); margin:0; }

/* ---------- Benefit blocks ---------- */
.benefit{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:28px 26px; box-shadow:var(--shadow); }
.benefit__icon{ width:48px;height:48px;border-radius:var(--r-sm); background:var(--surface); color:var(--char); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.benefit h3{ font-size:1.22rem; margin-bottom:8px; }
.benefit p{ font-size:.93rem; color:var(--ink-soft); margin:0; }

/* ---------- Accordion / FAQ ---------- */
.acc{ border-top:2px solid var(--char); }
.acc__item{ border-bottom:1px solid var(--line); }
.acc__q{ width:100%; background:none; border:none; text-align:left; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:22px 4px; font-family:var(--display); font-size:1.22rem; font-weight:700; color:var(--ink); }
.acc__q .ic{ flex:none; transition:transform .25s; color:var(--char); }
.acc__item.open .acc__q .ic{ transform:rotate(45deg); }
.acc__a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.acc__a p{ padding:0 4px 22px; color:var(--ink-soft); font-size:.97rem; margin:0; max-width:72ch; }

/* ---------- Testimonials ---------- */
.quote-card{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:30px 28px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:18px; }
.quote-card p{ font-family:var(--display); font-size:1.18rem; line-height:1.42; color:var(--ink); margin:0; font-style:italic; }
.quote-card .byline__name{ font-size:.86rem; }

/* ---------- Breadcrumb ---------- */
.crumb{ font-size:.8rem; color:var(--muted); display:flex; gap:8px; flex-wrap:wrap; align-items:center; font-weight:500; }
.crumb a:hover{ color:var(--char); text-decoration:underline; }
.crumb .sep{ opacity:.5; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header{ position:sticky; top:0; z-index:60; background:rgba(255,255,255,.9); backdrop-filter:saturate(140%) blur(10px); border-bottom:1px solid var(--line); transition:box-shadow .25s, border-color .25s; }
.site-header.scrolled{ box-shadow:0 6px 24px -18px rgba(20,20,18,.4); }
.header-inner{ height:var(--header-h); display:flex; align-items:center; gap:28px; }

/* logo */
.brand{ display:flex; align-items:center; gap:11px; flex:none; }
.brand__mark{ width:34px; height:34px; background:var(--char); border-radius:3px; display:flex; align-items:center; justify-content:center; }
.brand__mark::before{ content:"A"; font-family:var(--display); font-weight:800; font-size:1.2rem; color:#fff; line-height:1; }
.brand__name{ font-family:var(--display); font-weight:800; font-size:1.4rem; letter-spacing:-.02em; color:var(--char); line-height:1; }
.brand__name span{ display:block; font-family:var(--sans); font-weight:700; font-size:.58rem; letter-spacing:.32em; color:var(--muted); text-transform:uppercase; margin-top:3px; }

/* nav */
.nav{ display:flex; align-items:center; gap:2px; margin-left:6px; }
.nav a, .nav button.nav__link{ font-family:var(--sans); font-weight:600; font-size:.92rem; color:var(--ink-soft); padding:9px 13px; border-radius:var(--r-sm); background:none; border:none; display:inline-flex; align-items:center; gap:5px; transition:color .2s, background .2s; }
.nav a:hover, .nav button.nav__link:hover{ color:var(--char); background:var(--surface); }
.nav__spacer{ flex:1; }
.header-actions{ display:flex; align-items:center; gap:10px; flex:none; }
.icon-btn{ width:42px;height:42px; border-radius:var(--r-sm); border:1.5px solid var(--line); background:#fff; color:var(--ink); display:flex; align-items:center; justify-content:center; transition:border-color .2s, color .2s; }
.icon-btn:hover{ border-color:var(--char); color:var(--char); }

/* dropdown mega menu */
.has-drop{ position:relative; }
.drop{
  position:absolute; top:calc(100% + 10px); left:0; min-width:330px;
  background:#fff; border:1px solid var(--line); border-radius:var(--r); box-shadow:var(--shadow-lg);
  padding:10px; opacity:0; visibility:hidden; transform:translateY(-6px); transition:.18s;
}
.has-drop.open .drop{ opacity:1; visibility:visible; transform:translateY(0); }
.drop a{ display:flex; flex-direction:column; gap:1px; padding:11px 14px; border-radius:var(--r-sm); }
.drop a:hover{ background:var(--surface); }
.drop a strong{ font-family:var(--sans); font-weight:700; font-size:.93rem; color:var(--ink); }
.drop a small{ font-size:.78rem; color:var(--muted); }

.hamburger{ display:none; }
.mobile-panel{ display:none; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer{ background:var(--char-900); color:rgba(255,255,255,.7); padding-block:clamp(48px,6vw,74px) 30px; margin-top:0; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-brand .brand__name{ color:#fff; }
.footer-brand .brand__mark{ background:#fff; }
.footer-brand .brand__mark::before{ color:var(--char); }
.footer-brand p{ font-size:.92rem; max-width:34ch; margin-top:16px; }
.foot-col h4{ font-family:var(--sans); font-weight:700; font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color:#fff; margin-bottom:16px; }
.foot-col li{ margin-bottom:11px; }
.foot-col a{ font-size:.91rem; color:rgba(255,255,255,.7); transition:color .2s; }
.foot-col a:hover{ color:#fff; text-decoration:underline; text-underline-offset:3px; }
.footer-news{ margin-top:22px; }
.footer-news .input{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); color:#fff; }
.footer-news .input::placeholder{ color:rgba(255,255,255,.5); }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:24px; font-size:.83rem; flex-wrap:wrap; }
.social{ display:flex; gap:10px; }
.social a{ width:40px;height:40px;border-radius:var(--r-sm); border:1px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.8); transition:.2s; }
.social a:hover{ background:#fff; border-color:#fff; color:var(--char-900); }

/* =========================================================================
   HERO (homepage)
   ========================================================================= */
.hero{ padding-top:clamp(26px,4vw,44px); }
.hero-grid{ display:grid; grid-template-columns:1.32fr 1fr; gap:clamp(24px,3vw,44px); align-items:stretch; }
.hero-lead{ position:relative; border-radius:var(--r); overflow:hidden; min-height:480px; display:flex; align-items:flex-end; box-shadow:var(--shadow-lg); }
.hero-lead .ph{ position:absolute; inset:0; border-radius:0; }
.hero-lead .ph--feature{ aspect-ratio:auto; }
.hero-lead__scrim{ position:relative; width:100%; padding:clamp(28px,4vw,48px); background:linear-gradient(to top, rgba(22,22,20,.94) 0%, rgba(22,22,20,.55) 45%, rgba(22,22,20,0) 100%); color:#fff; }
.hero-lead__scrim h1{ color:#fff; font-size:clamp(2rem,3.6vw,3.3rem); margin:14px 0; max-width:18ch; }
.hero-lead__scrim .byline__name{ color:#fff; }
.hero-lead__scrim .byline__meta{ color:rgba(255,255,255,.7); }
.hero-lead__scrim .tag--ondark{ color:#fff; }
.hero-side{ display:flex; flex-direction:column; gap:18px; }
.hero-side__head{ display:flex; align-items:center; justify-content:space-between; border-top:2px solid var(--char); padding-top:14px; }
.hero-side__head h2{ font-size:1.18rem; }
.hero-side .card-h{ padding-bottom:18px; border-bottom:1px solid var(--line); }
.hero-side .card-h:last-child{ border-bottom:none; padding-bottom:0; }

/* =========================================================================
   ARTICLE
   ========================================================================= */
.article{ max-width:760px; margin-inline:auto; }
.article__header{ max-width:760px; margin-inline:auto; }
.article h1{ font-size:clamp(2.1rem,4.6vw,3.4rem); line-height:1.06; margin:14px 0 18px; }
.standfirst{ font-family:var(--display); font-size:1.34rem; line-height:1.46; color:var(--ink-soft); font-weight:500; font-style:italic; margin-bottom:26px; }
.article-hero{ margin:0 0 14px; border-radius:var(--r); overflow:hidden; box-shadow:var(--shadow); }
.article-hero .ph{ border-radius:0; }
.caption{ font-size:.8rem; color:var(--muted); margin:0 0 32px; }
.prose{ font-size:1.12rem; line-height:1.76; color:var(--ink-soft); }
.prose p{ margin:0 0 1.3em; }
.prose h2{ font-family:var(--display); font-size:1.75rem; margin:1.6em 0 .5em; color:var(--ink); }
.prose h3{ font-family:var(--display); font-size:1.34rem; margin:1.4em 0 .4em; color:var(--ink); }
.prose a{ color:var(--char); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1.5px; }
.prose strong{ color:var(--ink); }
.pullquote{ font-family:var(--display); font-size:1.7rem; line-height:1.34; color:var(--char); border-left:3px solid var(--char); padding:6px 0 6px 26px; margin:1.4em 0; font-weight:600; font-style:italic; }
.prose figure{ margin:1.6em 0; }
.prose figure .ph{ border-radius:var(--r); }

.share{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.share span{ font-family:var(--sans); font-weight:700; font-size:.8rem; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin-right:4px; }
.share a{ width:42px;height:42px;border-radius:var(--r-sm);border:1.5px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--ink-soft); transition:.2s; background:#fff; }
.share a:hover{ border-color:var(--char); color:var(--char); }

.author-box{ display:flex; gap:18px; align-items:flex-start; background:var(--surface); border-radius:var(--r); padding:24px 26px; }
.author-box .ph--avatar{ width:64px;height:64px;flex:none; }
.author-box h4{ font-family:var(--sans); font-size:1rem; margin-bottom:4px; }
.author-box p{ font-size:.91rem; color:var(--muted); margin:0; }

/* =========================================================================
   PAGE HERO (interior pages)
   ========================================================================= */
.page-hero{ background:var(--char); color:#fff; padding-block:clamp(50px,7vw,96px); }
.page-hero h1{ color:#fff; font-size:clamp(2.3rem,4.8vw,3.8rem); max-width:20ch; }
.page-hero p{ color:rgba(255,255,255,.78); font-size:1.14rem; max-width:56ch; margin-top:16px; }

/* =========================================================================
   SIDEBAR layout (category)
   ========================================================================= */
.with-sidebar{ display:grid; grid-template-columns:1fr 320px; gap:clamp(28px,4vw,52px); align-items:start; }
.sidebar{ position:sticky; top:calc(var(--header-h) + 24px); display:flex; flex-direction:column; gap:22px; }
.side-card{ background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:26px 24px; box-shadow:var(--shadow); }
.side-card h3{ font-size:1.28rem; margin-bottom:10px; }
.side-card p{ font-size:.91rem; color:var(--ink-soft); }
.side-card--char{ background:var(--char); color:#fff; border-color:var(--char); }
.side-card--char h3{ color:#fff; }
.side-card--char p{ color:rgba(255,255,255,.78); }

.pagination{ display:flex; gap:8px; justify-content:center; margin-top:48px; }
.pagination a, .pagination span{ min-width:44px; height:44px; padding:0 12px; border-radius:var(--r-sm); border:1px solid var(--line); background:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--sans); font-size:.92rem; font-weight:700; color:var(--ink-soft); transition:.2s; }
.pagination a:hover{ border-color:var(--char); color:var(--char); }
.pagination .current{ background:var(--char); color:#fff; border-color:var(--char); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width:1024px){
  .footer-top{ grid-template-columns:1fr 1fr; gap:32px; }
  .with-sidebar{ grid-template-columns:1fr; }
  .sidebar{ position:static; flex-direction:row; flex-wrap:wrap; }
  .sidebar > *{ flex:1; min-width:260px; }
}
@media (max-width:880px){
  .nav{ display:none; }
  .hamburger{ display:flex; }
  .hero-grid{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .price-grid{ grid-template-columns:1fr; max-width:440px; margin-inline:auto; }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .cta-band{ flex-direction:column; align-items:flex-start; }
}
@media (max-width:600px){
  body{ font-size:16px; }
  .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
  .steps{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:10px; }
  .hero-lead{ min-height:400px; }
}

/* ---------- Mobile menu mechanics ---------- */
.mobile-panel{
  position:fixed; inset:var(--header-h) 0 0 0; z-index:55; background:var(--bg);
  padding:24px var(--gutter) 40px; flex-direction:column; gap:6px; overflow-y:auto;
  transform:translateX(100%); transition:transform .3s ease; display:flex;
}
.mobile-panel.open{ transform:translateX(0); }
.mobile-panel a{ font-family:var(--display); font-size:1.2rem; font-weight:700; padding:14px 4px; border-bottom:1px solid var(--line); color:var(--ink); }
.mobile-panel .mob-cat{ font-family:var(--sans); font-size:.95rem; font-weight:500; color:var(--muted); padding-left:16px; }
body.menu-open{ overflow:hidden; }

@media (min-width:881px){ .mobile-panel{ display:none !important; } }

/* =========================================================================
   HOMEPAGE — advanced sections (ticker, filters, spotlight, stats, tiles)
   ========================================================================= */

/* scroll reveal (no-JS safe: only hides once body.reveal-ready is set) */
.reveal{ transition:opacity .6s ease, transform .6s ease; }
body.reveal-ready .reveal{ opacity:0; transform:translateY(20px); }
body.reveal-ready .reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ body.reveal-ready .reveal{ opacity:1; transform:none; } }

/* trending ticker */
.ticker{ background:var(--char); color:#fff; overflow:hidden; }
.ticker__inner{ display:flex; align-items:center; gap:0; }
.ticker__tag{ flex:none; background:var(--red); color:#fff; font-family:var(--sans); font-weight:800; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; padding:13px 18px; display:inline-flex; align-items:center; gap:8px; z-index:2; }
.ticker__tag .pulse{ width:8px; height:8px; border-radius:50%; background:#fff; animation:as-pulse 1.4s infinite; }
@keyframes as-pulse{ 0%,100%{ opacity:1 } 50%{ opacity:.25 } }
.ticker__track{ overflow:hidden; flex:1; -webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent); }
.ticker__move{ display:inline-flex; gap:36px; white-space:nowrap; padding-left:36px; animation:as-marquee 38s linear infinite; }
.ticker:hover .ticker__move{ animation-play-state:paused; }
.ticker__move a{ font-family:var(--sans); font-size:.86rem; font-weight:500; color:rgba(255,255,255,.85); display:inline-flex; align-items:center; gap:14px; }
.ticker__move a::before{ content:"›"; color:var(--red); font-weight:800; }
.ticker__move a:hover{ color:#fff; }
@keyframes as-marquee{ from{ transform:translateX(0) } to{ transform:translateX(-50%) } }

/* category filter pills */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:clamp(22px,3vw,34px); }
.filter-bar.scrollx{ flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; -webkit-overflow-scrolling:touch; }
.pill{ flex:none; font-family:var(--sans); font-weight:700; font-size:.86rem; color:var(--ink); background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:9px 18px; cursor:pointer; transition:.18s; white-space:nowrap; }
.pill:hover{ border-color:var(--char); }
.pill.active{ background:var(--char); color:#fff; border-color:var(--char); }
.filter-grid .card{ animation:as-fade .4s ease both; }
@keyframes as-fade{ from{ opacity:0; transform:scale(.98) } to{ opacity:1; transform:none } }

/* spotlight — Story of the Week */
.spotlight{ display:grid; grid-template-columns:1.15fr .85fr; gap:0; background:var(--char); color:#fff; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-lg); }
.spotlight__media{ position:relative; min-height:380px; }
.spotlight__media .ph{ position:absolute; inset:0; border-radius:0; }
.spotlight__badge{ position:absolute; top:20px; left:20px; z-index:2; background:var(--red); color:#fff; font-family:var(--sans); font-weight:800; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; padding:7px 14px; border-radius:var(--r-sm); }
.spotlight__body{ padding:clamp(28px,3.5vw,52px); display:flex; flex-direction:column; justify-content:center; gap:16px; }
.spotlight__body .eyebrow{ color:var(--red); }
.spotlight__body .eyebrow::before{ background:var(--red); }
.spotlight__body h2{ color:#fff; font-size:clamp(1.8rem,3vw,2.7rem); line-height:1.08; }
.spotlight__body p{ color:rgba(255,255,255,.78); font-size:1.05rem; margin:0; max-width:46ch; }
.spotlight__meta{ display:flex; align-items:center; gap:12px; color:rgba(255,255,255,.7); font-size:.85rem; margin-top:4px; }

/* big editorial quote band */
.quote-band{ text-align:center; max-width:1000px; margin-inline:auto; }
.quote-band .mark{ font-family:var(--display); font-weight:800; font-size:5rem; line-height:.6; color:var(--red); }
.quote-band blockquote{ font-family:var(--display); font-weight:600; font-style:italic; font-size:clamp(1.5rem,3.4vw,2.5rem); line-height:1.28; color:var(--ink); margin:14px 0 22px; text-wrap:balance; }
.quote-band cite{ font-style:normal; font-family:var(--sans); font-weight:700; font-size:.95rem; color:var(--ink); }
.quote-band cite span{ display:block; color:var(--muted); font-weight:500; font-size:.85rem; margin-top:2px; }

/* animated by-the-numbers band */
.numbers{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(20px,3vw,40px); }
.numbers .n{ text-align:center; }
.numbers .n b{ display:block; font-family:var(--display); font-weight:800; font-size:clamp(2.4rem,5vw,3.6rem); color:#fff; line-height:1; }
.numbers .n span{ font-family:var(--sans); font-size:.86rem; font-weight:500; color:rgba(255,255,255,.7); margin-top:8px; display:block; }
.numbers .n em{ color:var(--red); font-style:normal; }

/* browse-by-topic tiles */
.topic-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.topic-tile{ position:relative; border-radius:var(--r); overflow:hidden; min-height:170px; display:flex; align-items:flex-end; padding:20px; color:#fff; box-shadow:var(--shadow); transition:transform .2s ease, box-shadow .2s ease; }
.topic-tile:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.topic-tile .ph{ position:absolute; inset:0; border-radius:0; }
.topic-tile::after{ content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(22,22,20,.86), rgba(22,22,20,.2)); }
.topic-tile b{ position:relative; z-index:2; font-family:var(--display); font-weight:700; font-size:1.3rem; line-height:1.1; }
.topic-tile small{ position:relative; z-index:2; display:block; font-family:var(--sans); font-size:.76rem; color:rgba(255,255,255,.8); margin-top:3px; }

/* most-read numbered list */
.mostread{ display:flex; flex-direction:column; }
.mostread a{ display:flex; gap:18px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }
.mostread a:last-child{ border-bottom:none; }
.mostread .rank{ font-family:var(--display); font-weight:800; font-size:2rem; color:var(--line); line-height:1; flex:none; width:46px; transition:color .2s; }
.mostread a:hover .rank{ color:var(--red); }
.mostread h3{ font-size:1.12rem; line-height:1.2; }
.mostread .m{ font-size:.78rem; color:var(--muted); font-weight:500; margin-top:4px; }

@media (max-width:880px){
  .spotlight{ grid-template-columns:1fr; }
  .spotlight__media{ min-height:240px; }
  .numbers{ grid-template-columns:repeat(2,1fr); gap:28px 20px; }
  .topic-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .filter-bar{ flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; margin-inline:calc(var(--gutter)*-1); padding-inline:var(--gutter); }
  .topic-grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .topic-tile{ min-height:130px; padding:14px; }
  .topic-tile b{ font-size:1.05rem; }
  .quote-band .mark{ font-size:3.4rem; }
}

/* =========================================================================
   ARTICLE DETAIL — AI Story / YourStory editorial layout
   ========================================================================= */
.article-detail{ padding-top:clamp(26px,4vw,42px); }
.article-detail .crumb{ justify-content:center; }

/* centered header */
.art-head{ max-width:820px; margin-inline:auto; text-align:center; }
.art-tag{
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--sans); font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--red); border:1.5px solid var(--red); border-radius:var(--r-sm);
  padding:6px 13px; margin-bottom:22px;
}
.art-head h1{ font-size:clamp(2.1rem,4.4vw,3.2rem); line-height:1.1; margin:0 auto 20px; max-width:20ch; }
.art-head .standfirst{ font-style:normal; font-family:var(--sans); font-size:1.16rem; line-height:1.5; font-weight:500; color:var(--ink-soft); max-width:62ch; margin:0 auto 24px; }
.art-byline{ display:inline-flex; align-items:center; gap:11px; }
.art-byline .ph--avatar{ width:38px; height:38px; }
.art-byline b{ font-family:var(--sans); font-weight:700; font-size:.92rem; }
.art-byline .sep{ color:var(--line); }
.art-byline span{ font-size:.9rem; color:var(--muted); font-weight:500; }

/* hero with attribution bar (original — distinct from a 1:1 of the reference) */
.art-figure{ position:relative; margin:clamp(24px,3vw,36px) 0 0; border-radius:var(--r); overflow:hidden; box-shadow:var(--shadow); }
.art-figure .ph{ border-radius:0; }
.name-bar{
  position:absolute; left:0; right:0; bottom:0;
  display:flex; flex-wrap:wrap; gap:6px 28px; align-items:flex-end;
  padding:42px 22px 16px;
  background:linear-gradient(to top, rgba(22,22,20,.86) 0%, rgba(22,22,20,.35) 60%, transparent 100%);
  color:#fff;
}
.name-bar .person{ display:flex; flex-direction:column; padding-left:12px; border-left:3px solid var(--red); }
.name-bar .person b{ font-family:var(--sans); font-weight:800; font-size:.9rem; letter-spacing:.02em; color:#fff; line-height:1.2; }
.name-bar .person small{ font-size:.74rem; color:rgba(255,255,255,.8); }

.source-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border-bottom:2px solid var(--char); padding:14px 2px; margin-bottom:8px; }
.source-row .meta{ font-family:var(--sans); font-size:.84rem; font-weight:600; color:var(--ink); }
.source-row .gsrc{ display:inline-flex; align-items:center; gap:8px; font-size:.8rem; color:var(--muted); font-weight:500; }
.source-row .gsrc svg{ flex:none; }

/* two-column article body + sidebar */
.art-grid{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:clamp(28px,4vw,56px); align-items:start; max-width:1160px; margin-inline:auto; }
.art-main{ min-width:0; }
.art-main .prose{ max-width:none; }

/* red hyperlinks in article body (per brief) */
.prose a{ color:var(--red); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; transition:color .15s; }
.prose a:hover{ color:var(--red-700); }

/* drop cap */
.prose.dropcap > p:first-of-type::first-letter{
  font-family:var(--display); font-weight:800; float:left; font-size:4.1rem; line-height:.82;
  padding:6px 12px 0 0; color:var(--char);
}

/* loved-this-story box */
.loved-box{ display:flex; align-items:center; gap:16px; background:var(--surface); border-radius:var(--r);
  padding:18px 22px; margin:26px 0; }
.loved-box .heart{ width:42px; height:42px; flex:none; border-radius:var(--r-sm); background:#fff; color:var(--red);
  display:flex; align-items:center; justify-content:center; }
.loved-box b{ font-family:var(--display); font-weight:700; font-size:1.15rem; color:var(--ink); }
.loved-box b i{ color:var(--red); font-style:italic; }
.loved-box small{ display:block; font-family:var(--sans); font-size:.86rem; color:var(--muted); font-weight:500; margin-top:1px; }

/* reading progress bar (under sticky header) */
.read-progress{ position:fixed; top:var(--header-h); left:0; height:3px; width:0; background:var(--red); z-index:70; transition:width .1s linear; }

/* vertical sticky share rail */
.share-rail{ position:sticky; top:calc(var(--header-h) + 30px); display:flex; flex-direction:column; gap:10px; align-items:center; }
.share-rail .lbl{ font-family:var(--sans); font-size:.62rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); writing-mode:vertical-rl; margin-bottom:4px; }
.share-rail a{ width:40px; height:40px; border-radius:50%; border:1.5px solid var(--line); background:#fff; color:var(--ink-soft); display:flex; align-items:center; justify-content:center; transition:.2s; }
.share-rail a:hover{ border-color:var(--char); color:var(--char); transform:translateY(-2px); }

/* layout wrapper that hangs the share rail to the left of the column */
.art-lead-grid{ display:grid; grid-template-columns:56px minmax(0,1fr); gap:24px; }
@media (max-width:880px){ .art-lead-grid{ grid-template-columns:1fr; } .share-rail{ position:static; flex-direction:row; flex-wrap:wrap; margin-bottom:18px; } .share-rail .lbl{ writing-mode:horizontal-tb; } }

/* KEY TAKEAWAYS (original editorial value-add) */
.takeaways{ background:var(--char); color:#fff; border-radius:var(--r); padding:26px 28px; margin:0 0 30px; }
.takeaways h4{ font-family:var(--sans); font-size:.72rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:#fff; margin:0 0 16px; display:flex; align-items:center; gap:9px; }
.takeaways h4::before{ content:""; width:22px; height:2px; background:var(--red); }
.takeaways ul{ display:flex; flex-direction:column; gap:13px; }
.takeaways li{ display:flex; gap:13px; font-family:var(--sans); font-size:1.02rem; line-height:1.45; color:rgba(255,255,255,.9); }
.takeaways li span{ font-family:var(--display); font-weight:800; color:var(--red); flex:none; line-height:1.3; }

/* REACTION / CLAP BAR (interactive — replaces static "loved") */
.reaction{ display:flex; align-items:center; gap:18px; background:var(--surface); border-radius:var(--r); padding:16px 20px; margin:28px 0; flex-wrap:wrap; }
.reaction button{ display:inline-flex; align-items:center; gap:9px; background:#fff; border:1.5px solid var(--line); border-radius:999px; padding:9px 16px; font-family:var(--sans); font-weight:700; font-size:.9rem; color:var(--ink); transition:.15s; }
.reaction button svg{ color:var(--red); transition:transform .2s; }
.reaction button:hover{ border-color:var(--red); }
.reaction button.on{ background:var(--red); color:#fff; border-color:var(--red); }
.reaction button.on svg{ color:#fff; transform:scale(1.15); }
.reaction .rx-count{ font-variant-numeric:tabular-nums; }
.reaction .rx-text{ font-family:var(--sans); font-size:.88rem; color:var(--muted); }
.reaction .rx-text b{ color:var(--ink); font-weight:700; }

/* CONTEXTUAL CTA accent strip */
.cta-band[data-ctx]{ position:relative; }
.cta-band .ctx-kicker{ display:inline-block; font-family:var(--sans); font-size:.72rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--red); margin-bottom:10px; }

/* inline edited-by + ad strip */
.edited-by{ font-size:.84rem; color:var(--muted); font-style:italic; margin:28px 0 18px; }
.ad-strip{ border:1px solid var(--line); border-radius:var(--r); padding:14px; display:flex; align-items:center; justify-content:center; gap:12px; color:var(--muted); font-size:.82rem; background:var(--surface); margin:24px 0; }
.ad-label{ font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); text-align:center; margin:2px 0 6px; }

/* topic chips */
.topic-tags{ display:flex; flex-wrap:wrap; gap:10px; margin:30px 0 0; padding-top:22px; border-top:1px solid var(--line); }
.topic-tags a{ display:inline-flex; align-items:center; gap:8px; font-family:var(--sans); font-size:.8rem; font-weight:700;
  color:var(--ink); border:1px solid var(--line); border-radius:var(--r-sm); padding:8px 13px; transition:border-color .2s, color .2s; }
.topic-tags a::after{ content:"›"; color:var(--red); font-weight:800; }
.topic-tags a:hover{ border-color:var(--char); }

/* sidebar */
.art-aside{ position:sticky; top:calc(var(--header-h) + 20px); display:flex; flex-direction:column; gap:20px; }
.aside-card{ background:var(--surface); border-radius:var(--r); padding:22px; }
.aside-card.subscribe{ background:var(--char); color:#fff; text-align:center; }
.aside-card.subscribe h4{ color:#fff; font-size:1.18rem; margin-bottom:6px; }
.aside-card.subscribe p{ color:rgba(255,255,255,.76); font-size:.86rem; margin:0 0 14px; }
.aside-ad{ border:1px dashed var(--line); border-radius:var(--r); aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:.78rem; background:#fff; }
.aside-trending h4{ font-family:var(--sans); font-size:.74rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--char); margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid var(--char); }
.aside-trending a{ display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.aside-trending a:last-child{ border-bottom:none; }
.aside-trending .n{ font-family:var(--display); font-weight:800; font-size:1.2rem; color:var(--red); line-height:1; flex:none; }
.aside-trending p{ font-family:var(--display); font-weight:600; font-size:.98rem; line-height:1.2; color:var(--ink); margin:0; }

/* similar stories card variant */
.sim-card .card__body{ padding:16px 16px 20px; gap:7px; }
.sim-card .sim-date{ font-size:.74rem; color:var(--muted); font-weight:600; }
.sim-card h3{ font-size:1.04rem; line-height:1.18; }
.sim-tag{ font-family:var(--sans); font-size:.68rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--red); margin-top:auto; }

@media (max-width:980px){
  .art-grid{ grid-template-columns:1fr; }
  .art-aside{ position:static; flex-direction:row; flex-wrap:wrap; }
  .art-aside > *{ flex:1; min-width:240px; }
  .aside-ad{ display:none; }
}
@media (max-width:600px){
  .name-label{ position:static; max-width:none; display:inline-block; margin:0; }
  .art-figure{ display:block; }
  .art-figure .name-label.left,.art-figure .name-label.right{ position:absolute; }
  .name-label small{ display:none; }
  .art-aside{ flex-direction:column; }
  .prose.dropcap > p:first-of-type::first-letter{ font-size:3.2rem; }
}
