/* Resilience Tech North: one-page site. Layout follows the supplied reference design. */
:root {
  --section-y: clamp(56px, 7vw, 100px); /* top and bottom padding of every section: one even gap between sections */
  --ink: #0f1011;
  --ink-2: #3b3f44;
  --muted: #6c7178;
  --paper: #ffffff;
  --mist: #eceeef;       /* light section background */
  --mist-2: #f4f5f6;     /* light card background */
  --line: #dcdfe2;
  --dark: #0d0e0f;
  --dark-2: #1c1d1f;     /* dark card */
  --dark-line: #2a2c2f;
  --red: #c8102e;
  --radius: 10px;
  --wrap: 1320px;
  --text-w: calc(var(--wrap) * 2 / 3); /* text blocks span 2/3 of the content width */
  --gutter: clamp(20px, 5vw, 40px);
  --head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif; /* large headings, Light 300 */
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink-2); background: var(--mist); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 300; color: var(--ink); letter-spacing: -0.035em; line-height: 1.08; }
h1, h2, .feature-body h3 { font-family: var(--display); font-weight: 300; letter-spacing: -0.015em; line-height: 1.14; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; color: #fff; background: var(--ink); border-radius: 8px; }
.skip:focus { top: 16px; }

.eyebrow { margin: 0 0 22px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); } /* logo red */
.sub { max-width: var(--text-w); color: var(--muted); font-size: 0.95rem; }

/* ---- Buttons ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px;
  font: 500 0.9rem/1.2 var(--body); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { background: #2b2d30; }
.btn-light { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn-light:hover { background: var(--mist-2); }
.btn-sm { min-height: 38px; padding: 8px 18px; font-size: 0.84rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---- Header: floating glass pill ---- */

.site-header { position: fixed; inset: 16px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav-pill {
  position: relative; display: flex; align-items: center; gap: 24px; max-width: 900px; margin: 0 auto; padding: 8px 8px 8px 18px;
  background: rgba(240, 242, 243, 0.55); border: 1px solid rgba(255,255,255,.55); border-radius: 14px;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(15,16,17,.06); pointer-events: auto; transition: background-color .3s, box-shadow .3s;
}
.site-header.scrolled .nav-pill { background: rgba(244, 245, 246, 0.82); box-shadow: 0 10px 30px rgba(15,16,17,.12); }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a:not(.btn) { padding: 8px 14px; font-size: 0.86rem; color: var(--ink); text-decoration: none; border-radius: 8px; }
.site-nav a:not(.btn):hover, .site-nav a.active { background: rgba(255,255,255,.6); }
.site-nav a:first-child { margin-left: auto; }
.nav-cta { margin-left: 4px; }
/* LinkedIn in the menu: icon only on desktop, icon + label in the mobile menu */
.site-nav a.nav-social { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 10px; }
.site-nav a.nav-social + a.nav-social { margin-left: 0; }
.li-icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.nav-social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-pill { padding: 8px 8px 8px 16px; justify-content: space-between; }
  .brand img { width: 130px; }
  .nav-toggle { display: block; position: relative; width: 42px; height: 42px; padding: 0; background: #fff; border: 0; border-radius: 10px; cursor: pointer; }
  .nav-toggle .bar { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s, top .2s; }
  .nav-toggle .bar:nth-child(2) { top: 17px; }
  .nav-toggle .bar:nth-child(3) { top: 23.5px; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { top: 20.25px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { top: 20.25px; transform: rotate(-45deg); }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: var(--mist-2); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,16,17,.16);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a:first-child, .nav-cta, .site-nav a.nav-social { margin-left: 0; }
  .site-nav a.nav-social { padding: 12px 14px; }
  .nav-social-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .site-nav a:not(.btn) { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin-top: 6px; }
  .site-nav .nav-cta { color: #fff; background: var(--red); box-shadow: none; } /* red Contact button in the mobile menu */
  .site-nav .nav-cta:hover { background: #a00d25; }
}

/* ---- Hero ---- */

.hero { position: relative; display: grid; place-items: center; min-height: max(600px, 85svh); padding: 130px var(--gutter) 110px; overflow: hidden; text-align: center; background: #dfe3e2; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
/* Drifting fog (hero and contact photos): two seamless fog tiles slide sideways at
 * different speeds. The wrapper is masked by a brightness map of its photo, so fog
 * only shows where the photo is already misty and the dark trees stay solid in front.
 * Each section sets its mask and the same object-position as its photo. */
.mist-wrap {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: var(--mist-mask) var(--mist-pos) / cover no-repeat;
  mask: var(--mist-mask) var(--mist-pos) / cover no-repeat;
}
.hero-mist { --mist-mask: url("/assets/img/hero-mist-mask-v2.webp"); --mist-pos: center 60%; }
.hero-mist .mist-a { opacity: .65; } /* a bit lighter in the hero than in the contact section */
.hero-mist .mist-b { opacity: .5; }
.cta-mist { --mist-mask: url("/assets/img/cta-mist-mask-v2.webp"); --mist-pos: center 30%; z-index: -2; }
.mist { position: absolute; top: 0; bottom: 0; left: 0; width: 4800px; background-repeat: repeat-x; background-size: 1600px 100%; will-change: transform; }
/* Fade each fog layer in and out at its top and bottom so its edges never show as a line. */
.mist { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }
.mist-a { background-image: url("/assets/img/fog-a-v2.webp"); opacity: 1; animation: mist-drift 9s linear infinite; }
.mist-b { top: 12%; background-image: url("/assets/img/fog-b-v2.webp"); opacity: .8; animation: mist-drift 14s linear infinite reverse; }
@keyframes mist-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-1600px, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .mist { animation: none; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(236,238,239,.55) 0%, rgba(236,238,239,.15) 45%, rgba(236,238,239,0) 70%); }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { font-size: clamp(2.13rem, 4.43vw, 3.77rem); letter-spacing: -0.015em; }
.hero .lede { max-width: 560px; margin: 18px auto 28px; font-size: 0.98rem; color: var(--ink-2); }

/* ---- Sections ---- */

.section { padding: var(--section-y) 0; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.36vw, 2.62rem); margin-bottom: 16px; }
.section-head.with-action > div { flex: 1 1 0; min-width: min(100%, 320px); }
.section-head.with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.list-title { margin-bottom: 18px; font-size: 1.15rem; letter-spacing: -0.02em; }

/* ---- Mission (dark) ---- */

.section-dark { position: relative; overflow: hidden; color: #b9bdc2; background: var(--dark); }

.statement { position: relative; max-width: var(--text-w); margin: 0 0 22px; font-family: var(--display); font-weight: 300; font-size: clamp(1.31rem, 2.38vw, 1.8rem); line-height: 1.32; letter-spacing: -0.025em; color: #f2f3f4; }
.mission-copy { position: relative; max-width: var(--text-w); font-size: 0.86rem; line-height: 1.7; }
.mission-copy strong { color: #f2f3f4; font-weight: 500; }
.section-dark hr { position: relative; max-width: var(--text-w); margin: 48px 0 64px; border: 0; border-top: 1px solid var(--dark-line); }
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pillars li { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; background: var(--dark-2); border-radius: 4px; isolation: isolate; overflow: hidden; }
/* Tiny dot grid inside each card; dots light up red under the pointer (main.js). */
.pillar-dots { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* Large faint step number behind the card; turns red on hover. */
.pillar-num { position: absolute; right: 18px; top: 6px; z-index: -1; font: 300 5.2rem/1 var(--head); letter-spacing: -0.05em; color: rgba(255,255,255,.035); transition: color .4s ease, transform .4s ease; pointer-events: none; }
.pillars li:hover .pillar-num { color: rgba(200,16,46,.22); transform: translateY(-4px); }
.pillars h3 { margin-bottom: 12px; font-size: 1.02rem; letter-spacing: -0.02em; color: #f2f3f4; }
.pillars p { flex: 1; margin-bottom: 26px; font-size: 0.82rem; line-height: 1.6; }
.steps { display: flex; gap: 3px; }
.steps i { width: 6px; height: 6px; background: #4a4d52; }
.steps i.on { background: #f2f3f4; }
.steps i.current { background: var(--red); } /* this card's step */
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---- Initiatives: large photo cards ---- */

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { position: relative; display: flex; align-items: flex-end; min-height: clamp(420px, 46vw, 560px); overflow: hidden; color: #fff; background: var(--dark); }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.feature:hover > img { transform: scale(1.03); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 7px 14px; font-size: 0.78rem; font-weight: 500; color: var(--ink); background: #fff; }
.feature-body { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 20px; width: 100%; padding: 26px; }
.feature-body h3 { grid-column: 1 / -1; font-size: clamp(1.39rem, 2.3vw, 1.8rem); color: #fff; }
.feature-body p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,.82); }
.feature-note { max-width: var(--text-w); margin: 28px 0 0; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-body { grid-template-columns: 1fr; }
  .feature-body .btn { justify-self: start; margin-top: 10px; }
}

/* ---- Cards (partners, news) ---- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.card { background: var(--mist-2); }
.cards .card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-media { display: grid; place-items: center; aspect-ratio: 5 / 3; overflow: hidden; background: #fff; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cards .card a:hover .card-media img { transform: scale(1.04); }
.card-body { display: block; padding: 22px 22px 26px; }
.card-title { display: block; margin-bottom: 10px; font-family: var(--head); font-size: 1.02rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1.3; }
.card-text { display: block; margin: 0; font-size: 0.84rem; color: var(--muted); }
.card-media--photo { position: relative; aspect-ratio: 5 / 3; background: var(--dark); }
/* Pin the photo/video to all four edges: iOS Safari won't resolve height: 100% inside an aspect-ratio box. */
.card-media--photo video, .card-media--photo > img:not(.partner-logo) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45) 100%); }
.partner-logo { position: absolute; left: 20px; bottom: 18px; z-index: 1; width: auto !important; height: auto !important; max-width: 38%; max-height: 30px; object-fit: contain !important; padding: 0 !important; }
/* Hidden only once main.js has confirmed it will reveal them (html.motion). */
.fade-in { transition: opacity 1s cubic-bezier(.2,.65,.25,1) .15s, filter 1s cubic-bezier(.2,.65,.25,1) .15s, transform 1s cubic-bezier(.2,.65,.25,1) .15s; }
.motion .fade-in:not(.is-in) { opacity: 0; filter: blur(8px); transform: translateY(8px); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } .card-media { aspect-ratio: 16 / 7; } }

/* ---- Quote ---- */

.quote { margin: clamp(80px, 11vw, 140px) auto 0; text-align: center; }
.quote blockquote { max-width: 1040px; margin: 0 auto 22px; }
.quote blockquote p { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(1.72rem, 3.61vw, 2.95rem); line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.quote figcaption { font-size: 0.82rem; color: var(--muted); }

.divider-leaf { display: block; width: 52px; height: 52px; margin: 0 auto clamp(40px, 5vw, 60px); fill: var(--red); }

/* ---- Floating survey box (bottom right, liquid glass like the nav) ---- */

.survey-box {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 400px; max-width: calc(100vw - 48px);
  background: rgba(240, 242, 243, 0.55); border: 1px solid rgba(255,255,255,.6); border-radius: 16px;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 34px rgba(15,16,17,.12);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s ease, transform .4s ease;
}
.survey-box.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.survey-box-link { display: block; padding: 30px 56px 30px 30px; text-decoration: none; color: var(--ink); }
.survey-box-eyebrow { display: block; margin-bottom: 12px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.survey-box-title { display: block; margin-bottom: 10px; font-family: var(--display); font-weight: 300; font-size: 1.32rem; line-height: 1.25; }
.survey-box-text { display: block; margin-bottom: 22px; font-size: 0.78rem; line-height: 1.45; color: var(--ink-2); }
.survey-box-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 0.84rem; font-weight: 500; transition: background-color .2s; }
.survey-box-link:hover .survey-box-cta { background: #2b2d30; }
.survey-box-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.survey-box-close:hover { background: rgba(255,255,255,.6); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .survey-box { background: rgba(244,245,246,.96); } }
/* Phones: a compact pill (label + button) so it doesn't cover the content. */
@media (max-width: 560px) {
  .survey-box { right: 12px; bottom: 12px; width: auto; border-radius: 14px; }
  .survey-box-link { display: flex; align-items: center; gap: 10px; padding: 7px 38px 7px 16px; }
  .survey-box-eyebrow { margin: 0; }
  .survey-box-title, .survey-box-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .survey-box-close { top: 50%; right: 5px; transform: translateY(-50%); }
}

/* ---- 2026 survey launch (with MobSquad) ---- */
.sl-head { max-width: var(--text-w); margin-bottom: 40px; }
.sl-brands { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; }
.sl-brands img { width: auto; height: 34px; }
.sl-brands img + .sl-x + img { height: 26px; }
.sl-x { font-size: 1.1rem; color: var(--muted); }
.survey-launch h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.survey-launch .sub strong { color: var(--ink); font-weight: 600; }
.sl-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.sl-card { position: relative; padding: clamp(22px, 2.6vw, 32px); background: #fff; border-radius: var(--radius); }
.sl-stat { grid-column: span 3; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 210px; }
.sl-stat strong { font-family: var(--display); font-weight: 300; font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sl-stat span { font-size: 0.95rem; color: var(--ink-2); max-width: 22ch; }
.sl-learn { grid-column: span 6; }
.sl-label { margin: 0 0 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.sl-words { margin: 0; }
.sl-words > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.sl-words > div:first-child { border-top: 0; padding-top: 0; }
.sl-words > div:last-child { padding-bottom: 0; }
.sl-words dt { font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; color: var(--ink); }
.sl-words dd { margin: 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 640px) { .sl-words > div { grid-template-columns: 1fr; gap: 2px; } }
.sl-findings { grid-column: span 6; background: #fbeaed; }
.sl-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sl-pills li { padding: 9px 16px; font-size: 0.95rem; font-weight: 500; color: var(--ink); background: #fff; border-radius: 999px; }
.sl-cta { grid-column: span 6; display: flex; flex-direction: column; gap: 8px; color: #fff; background: var(--ink); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.sl-cta:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,16,17,.18); }
.sl-cta .sl-label { margin-bottom: 4px; color: #ff8a9b; }
.sl-cta-title { font-family: var(--display); font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; }
.sl-cta-text { font-size: 0.88rem; color: rgba(255,255,255,.75); }
.sl-cta .btn { align-self: flex-start; margin-top: auto; }
.sl-foot { margin: 22px 0 0; font-size: 0.82rem; color: var(--muted); }
.sl-foot span { margin: 0 6px; }
@media (max-width: 1080px) {
  .sl-stat { grid-column: span 6; }
  .sl-learn, .sl-findings, .sl-cta { grid-column: span 12; }
}
@media (max-width: 560px) {
  .sl-stat { min-height: 0; padding: 20px 18px; }
  .sl-stat strong { font-size: 2.6rem; }
  .sl-stat span { font-size: 0.86rem; }
  .sl-brands img { height: 28px; }
  .sl-brands img + .sl-x + img { height: 21px; }
}

/* ---- Impact: interactive dot matrix ---- */

/* A canvas grid of faint dots fills the band; when the pointer is on or near the
 * Book a consultation button the dots there swell, turn RTN red and drift aside
 * (main.js). The mask fades the grid out at the edges. */
.impact { position: relative; padding: var(--section-y) 0; overflow: hidden; text-align: center; isolation: isolate; }
.dot-field {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  /* full width: solid across the band, fading out only at the very edges */
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 100%);
}
.impact .eyebrow { margin-bottom: 26px; }
.impact h2 { max-width: 820px; margin: 0 auto 16px; font-size: clamp(1.8rem, 3.36vw, 2.62rem); }
.impact .sub { margin: 0 auto 64px; font-weight: 600; color: var(--red); } /* bold red tagline */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.stats li { padding: 6px 20px; border-left: 1px solid rgba(15, 16, 17, 0.12); } /* light divider between stats */
.stats li:first-child { border-left: 0; }
.impact-cta { margin: clamp(40px, 5vw, 56px) 0 0; }
.stats strong { display: block; margin-bottom: 8px; font-family: var(--display); font-size: clamp(1.97rem, 3.44vw, 2.62rem); font-weight: 300; letter-spacing: -0.01em; line-height: 1; color: var(--ink); }
.stats span { font-size: 0.82rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .stats li { padding: 4px 12px; }
  .stats li:nth-child(odd) { border-left: 0; }
}

/* ---- Leadership ---- */

.leader { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 8px; }
.leader-photo { position: relative; }
.leader img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; object-position: 50% 30%; }
/* Round LinkedIn button on Reva's photo, bottom right, in LinkedIn blue. */
.leader-card { padding: clamp(24px, 4vw, 44px); background: #fff; font-size: 0.95rem; }
.leader-card p:first-child { font-family: var(--head); font-size: 1.2rem; line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); }
.leader-card p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } .leader img { aspect-ratio: 1; max-height: none; } }

/* ---- News ---- */

.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.news .card { position: relative; padding: 70px 26px 28px; }
.news-meta { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.news .tag { position: static; background: #fff; }
/* Type label beside the date: Video · 13 min, Speech, Policy memo */
.news-kind { padding: 7px 12px; font-size: 0.74rem; font-weight: 500; color: var(--red); background: rgba(200,16,46,.08); }
/* Staggered entrance: cards fade and rise in one after another (main.js adds .in) */
.motion .news .card { opacity: 0; transform: translateY(24px); }
.motion .news .card.in { opacity: 1; transform: none; transition: opacity .6s ease var(--delay, 0ms), transform .6s cubic-bezier(.2,.7,.2,1) var(--delay, 0ms), background-color .2s; }
.news .card-title { font-size: 1.25rem; letter-spacing: -0.025em; }
@media (max-width: 760px) { .news { grid-template-columns: 1fr; } }
.news .card { transition: background-color .2s; }
.news .card:hover { background: #fff; }
.news-link { display: block; text-decoration: none; color: inherit; }
.news-link::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.news .card-text { margin-bottom: 18px; }
.news-more { font-size: 0.84rem; font-weight: 500; color: var(--ink); }
.news-load { display: flex; justify-content: center; margin: 24px 0 0; }
.news-load[hidden], .news .card[hidden] { display: none; }
.news-more span { display: inline-block; transition: transform .2s; }
.news .card:hover .news-more span { transform: translateX(3px); }

/* ---- News post modal: full-width panel with a gap at the top (Dribbble-style) ---- */

.post-modal {
  position: fixed; inset: 44px 0 0; width: 100%; max-width: none; height: auto; max-height: none; margin: 0; padding: 0;
  border: 0; border-radius: 20px 20px 0 0; background: #fff; color: var(--ink-2); overflow-y: auto; overscroll-behavior: contain;
}
.post-modal::backdrop { background: rgba(10, 11, 12, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.post-modal[open] { animation: post-up .38s cubic-bezier(.2,.75,.25,1); }
.post-modal[open]::backdrop { animation: post-fade .3s ease; }
.post-modal.is-closing { animation: post-down .26s ease-in forwards; }
.post-modal.is-closing::backdrop { animation: post-fade .26s ease-in reverse forwards; }
@keyframes post-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes post-down { to { transform: translateY(40px); opacity: 0; } }
@keyframes post-fade { from { opacity: 0; } to { opacity: 1; } }
html.modal-open { overflow: hidden; }

/* Zero-height sticky bar at the top of the scrolling panel; the button hangs from it at the top right. */
.post-close-bar { position: sticky; top: 0; z-index: 3; height: 0; }
.post-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e3e5e8; border-radius: 50%; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s; }
.post-close:hover { background: #fff; border-color: #c9ccd1; }
.post-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.post { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 110px; }
.post-head { margin-bottom: 36px; }
.post-head .tag { position: static; display: inline-block; margin-bottom: 22px; background: var(--mist); }
.post-title { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.post-byline { margin: 0; font-size: 0.86rem; color: var(--muted); }
.post-figure { margin: 0 0 36px; }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--mist); }
.post-figure figcaption { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.post-body { font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.post-body p { margin: 0 0 1.1em; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body .post-lede { font-size: 1.1rem; color: var(--ink); }
.post-body h3 { margin: 1.9em 0 0.55em; font-family: var(--display); font-weight: 300; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.post-body blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); color: var(--ink); font-style: italic; }
.post-body li { margin: 0 0 0.45em; padding-left: 0.2em; }
.post-body li::marker { color: var(--red); }
.post-body a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(200,16,46,.45); text-underline-offset: 3px; }
.post-body a:not(.btn):hover { text-decoration-color: var(--red); }
.post-body .post-cta { margin-top: 1.8em; }

/* ---- Newsletter sign-up (under the news cards) ---- */
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-top: 8px; padding: clamp(22px, 3vw, 32px); background: var(--dark); border-radius: var(--radius); }
.newsletter-copy { flex: 1 1 280px; }
.newsletter-title { margin: 0 0 4px; font-family: var(--display); font-weight: 300; font-size: 1.5rem; line-height: 1.2; color: #fff; }
.newsletter-text { margin: 0; font-size: 0.88rem; color: #b9bdc2; }
.newsletter-form { position: relative; display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 380px; max-width: 520px; }
.newsletter-form input[type=email] { flex: 1 1 220px; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 0.95rem; color: var(--ink); background: #fff; border: 1px solid rgba(15,16,17,.14); border-radius: var(--radius); }
.newsletter-form input[type=email]:focus-visible { outline: none; border-color: var(--ink); }
.newsletter-form input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.newsletter .newsletter-status, .newsletter .newsletter-status[data-state] { color: #fff; }
.newsletter-status { flex-basis: 100%; }
.post-video { margin-top: 12px; }
/* Framed player: a soft light frame with rounded corners around the video. */
.post-video-frame { padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--mist-2); box-shadow: 0 10px 30px rgba(15,16,17,.06); }
.post-video video { display: block; width: 100%; height: auto; aspect-ratio: 1162 / 720; border-radius: 13px; background: #0d0e0f; }
.post-memo { margin-top: 28px; padding: 28px; border-radius: var(--radius); background: var(--mist); }
.post-memo-title { margin: 0 0 6px; font-family: var(--display); font-weight: 300; font-size: 1.4rem; color: var(--ink); }
.post-memo p:not(.post-memo-title) { margin: 0 0 20px; font-size: 0.92rem; }
/* Round action buttons (Dribbble-style rail): right side on wide screens, a row on phones. */
.post-actions { position: fixed; top: 50%; right: 28px; z-index: 2; display: flex; flex-direction: column; gap: 14px; transform: translateY(-50%); }
.post-action { position: relative; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 1px solid #e3e5e8; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.post-action:hover { border-color: #c9ccd1; background: var(--mist-2); }
.post-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.post-action-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 0.74rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.post-action-tip:not(:empty) { opacity: 1; }
@media (max-width: 1000px) {
  .post-actions { position: static; flex-direction: row; transform: none; max-width: 760px; margin: 0 auto; padding: 28px var(--gutter) 0; }
  .post { padding-top: 32px; }
  .post-action { width: 44px; height: 44px; }
  .post-action-tip { right: auto; left: 50%; top: auto; bottom: calc(100% + 8px); transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .post-modal { inset: 40px 0 0; border-radius: 16px 16px 0 0; }
  .post-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-modal[open], .post-modal[open]::backdrop, .post-modal.is-closing, .post-modal.is-closing::backdrop { animation: none; }
}

/* ---- Contact CTA + footer ---- */

.cta { position: relative; padding: var(--section-y) 0 0; overflow: hidden; text-align: center; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--mist) 0%, rgba(236,238,239,.6) 18%, rgba(236,238,239,0) 55%); }
.cta h2 { max-width: 760px; margin: 0 auto 16px; font-size: clamp(1.89rem, 3.53vw, 2.71rem); }
.cta .sub { margin: 0 auto 36px; color: var(--ink-2); }

.glass {
  background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.6); border-radius: 16px;
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 20px 50px rgba(15,16,17,.1);
}
.form { display: grid; gap: 14px; max-width: var(--text-w); margin: 0 auto; padding: clamp(20px, 3vw, 30px); text-align: left; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.form input, .form textarea, .form select {
  width: 100%; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 0.95rem; font-weight: 400; color: var(--ink);
  background: rgba(255,255,255,.75); border: 1px solid rgba(15,16,17,.12); border-radius: var(--radius);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline: none; border-color: var(--ink); background: #fff; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f1011' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.consult-fields[hidden] { display: none; }
.consult-fields.is-open { animation: consult-in .35s ease; }
@keyframes consult-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.form[hidden], .form-thanks[hidden] { display: none; }
/* Thank-you panel that replaces the contact form after sending */
.form-thanks { max-width: var(--text-w); margin: 0 auto; padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 48px); text-align: center; outline: none; }
.thanks-check { display: block; width: 96px; height: 96px; margin: 0 auto 24px; fill: none; stroke: #0a6b4f; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.thanks-ring { stroke-dasharray: 277; stroke-dashoffset: 277; fill: rgba(10,107,79,.08); animation: thanks-draw .6s cubic-bezier(.65,0,.35,1) forwards; }
.thanks-tick { stroke-width: 5; stroke-dasharray: 60; stroke-dashoffset: 60; animation: thanks-draw .35s cubic-bezier(.65,0,.35,1) .5s forwards; }
@keyframes thanks-draw { to { stroke-dashoffset: 0; } }
.form-thanks h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; color: var(--ink); }
.form-thanks p { margin: 0 auto 8px; max-width: 460px; color: var(--ink-2); }
.form-thanks .thanks-follow { margin-top: 20px; font-size: 0.86rem; }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.thanks-actions .btn { gap: 10px; }
.thanks-actions .li-icon { width: 16px; height: 16px; }
.thanks-again { display: inline-block; margin-top: 24px; font-size: 0.82rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.thanks-again:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .thanks-ring, .thanks-tick { stroke-dashoffset: 0; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form [aria-invalid="true"] { border-color: var(--red); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-status { margin: 0; font-size: 0.9rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: #0a6b4f; }
.form-status[data-state="error"] { color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

.site-footer {
  position: relative; max-width: calc(var(--wrap) + 80px); margin: clamp(100px, 14vw, 180px) auto 24px; padding: clamp(28px, 4vw, 44px);
  width: calc(100% - 2 * var(--gutter) + 40px); text-align: left; color: #a9aeb4; background: var(--dark); border-radius: 18px;
}
@media (max-width: 560px) { .site-footer { width: calc(100% - 24px); margin-bottom: 12px; } }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 72px; }
.footer-intro { max-width: 380px; }
.footer-title { margin-bottom: 12px; font-family: var(--display); font-weight: 300; font-size: clamp(1.48rem, 2.46vw, 1.97rem); line-height: 1.1; letter-spacing: -0.01em; color: #f2f3f4; }
.footer-intro p:not(.footer-title) { font-size: 0.84rem; margin-bottom: 20px; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 88px); text-align: right; }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.col-title { margin: 0 0 6px; font-family: var(--head); font-size: 1rem; color: #f2f3f4; }
.footer-cols a, .footer-bottom a { font-size: 0.82rem; color: #a9aeb4; text-decoration: none; }
.footer-cols a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom a.footer-admin { font-size: 0.72rem; opacity: .4; }
.footer-bottom a.footer-admin:hover, .footer-bottom a.footer-admin:focus-visible { opacity: 1; }
.footer-bottom { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom img { width: 132px; height: auto; }
.footer-bottom p { margin: 0 0 0 auto; font-size: 0.8rem; }
@media (max-width: 700px) {
  .footer-cols { width: 100%; justify-content: space-between; text-align: left; }
  .footer-bottom p { margin-left: 0; }
}

/* ---- Motion: Apple-style blur-in for headings (words), count-up numbers ---- */

.blur-in .word {
  display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.3em);
  transition: opacity .9s cubic-bezier(.2,.65,.25,1), filter .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.blur-in.is-in .word { opacity: 1; filter: blur(0); transform: none; }
.stats strong { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .blur-in .word { opacity: 1; filter: none; transform: none; }
}

/* Dot burst behind a button (main.js, [data-dot-burst]): invisible until the pointer
 * is on or near the button, then a patch of dots swells and turns RTN red around it. */
.dot-burst { position: absolute; z-index: -1; pointer-events: none; }

/* Leadership: Get in touch + LinkedIn under Reva's bio */
.leader-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn-outline { box-shadow: none; border-color: rgba(15, 16, 17, 0.2); }
.btn-outline:hover { border-color: var(--ink); background: #fff; }
