/* Rayhan Khimji — site stylesheet
   Slate / navy / white sections with SNACC blue accent, Oswald display type, Poppins text.
   Fonts are self-hosted under the SIL Open Font License (see fonts/). */

@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url(../fonts/oswald-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url(../fonts/oswald-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url(../fonts/oswald-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(../fonts/oswald-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url(../fonts/oswald-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+20B9; }
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url(../fonts/poppins-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+20B9; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+20B9; }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+20B9; }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+20B9; }

:root {
  --cream: #f1f5f9;
  --black: #0f1b2d;
  --ink: #0f1b2d;
  --grey: #5b6577;
  --line: #dce3ec;
  --white: #fff;
  --accent: #3a9ad9;
  --accent-ink: #1c6fa8;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 600; text-transform: uppercase; line-height: 1; letter-spacing: 0.005em; margin: 0; }
h1, h2, h3, h4 { margin: 0; }
.h-section { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.05; }
.h-sub { font-family: var(--text); font-weight: 600; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: 0.01em; }
.h-item { font-family: var(--text); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.lead { font-size: 18px; }
.meta { font-size: 15px; color: var(--grey); margin: 0 0 6px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--text); font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; background: var(--black); color: var(--white); border: 2px solid var(--black);
  padding: 11px 26px; border-radius: 2px; transition: background .2s, color .2s; cursor: pointer;
}
.btn:hover { background: transparent; color: var(--black); }
.btn.outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn.outline-light:hover { background: var(--white); color: var(--black); }
.btn.light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn.light:hover { background: transparent; color: var(--white); }
.btn.sm { font-size: 13px; padding: 7px 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btns.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.monogram {
  display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px;
  border: 2px solid var(--ink); font-family: var(--display); font-weight: 500; font-size: 34px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink); line-height: 1;
}
.nav { display: flex; align-items: center; gap: 38px; }
.nav > a, .nav .drop > button {
  font-family: var(--text); font-size: 15px; text-transform: uppercase; text-decoration: none; color: var(--ink);
  background: none; border: 0; padding: 26px 0; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 8px;
}
.nav > a::after, .nav .drop > button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .2s; }
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav .drop:hover > button::after, .nav .drop.current > button::after { transform: scaleX(1); }
.caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; }
.drop { position: relative; }
.drop-menu {
  position: absolute; top: 100%; left: -20px; min-width: 230px; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: 10px 22px; font-size: 14px; text-transform: uppercase; text-decoration: none; }
.drop-menu a:hover, .drop-menu a[aria-current="page"] { background: var(--cream); }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); padding: 8px 14px; font: 500 13px var(--text); text-transform: uppercase; cursor: pointer; }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 96px; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--pad) 20px; border-bottom: 1px solid var(--line); max-height: calc(100vh - 96px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav .drop > button { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .nav > a::after, .nav .drop > button::after { display: none; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 6px 14px; }
  .drop-menu a { padding: 10px 0; }
  .caret { display: none; }
}

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 8vw, 110px) 0; }
.sec.tight { padding: clamp(40px, 5vw, 64px) 0; }
.sec.black { background: var(--black); color: var(--white); }
.sec.white { background: var(--white); }
.sec + .sec.cream-rule { border-top: 1px solid var(--line); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding-top: 36px; overflow: hidden; }
.hero-name {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--black);
  font-size: clamp(64px, 13vw, 180px); line-height: 0.95; letter-spacing: 0.01em; white-space: nowrap;
  display: flex; justify-content: space-between; gap: 0.25em; position: relative; z-index: 1;
}
.hero-body { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 380px; }
.hero-cut { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(430px, 40vw); z-index: 2; pointer-events: none; }
.hero-cut img { width: 100%; }
.hero-hi { font-family: var(--text); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; font-weight: 400; position: relative; z-index: 3; padding: 40px 0; }
.hero-hi b { font-weight: 700; }
.hero-right { grid-column: 3; position: relative; z-index: 3; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; padding: 40px 0; }
.hero-right .btns { margin-top: 22px; }
@media (max-width: 860px) {
  .hero-name { flex-direction: column; font-size: 22vw; }
  .hero-body { grid-template-columns: 1fr; min-height: 0; }
  .hero-cut { position: relative; left: auto; transform: none; width: 72%; margin: 0 auto; order: 3; }
  .hero-hi, .hero-right { grid-column: 1; padding: 20px 0; }
}

/* ---------- Black band (quote + about + stats) ---------- */
.band-title { font-family: var(--display); font-weight: 600; text-transform: uppercase; text-align: center; font-size: clamp(36px, 6vw, 78px); line-height: 1; letter-spacing: 0.01em; margin-bottom: clamp(40px, 6vw, 70px); }
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.about-label { font-family: var(--text); font-size: 24px; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 34px; text-align: center; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat-n { font-family: var(--text); font-weight: 600; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.1; display: block; }
.stat-l { font-size: 17px; display: block; margin-top: 6px; }
.stat-s { font-size: 13px; opacity: .7; display: block; }
.stats.left { text-align: left; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats, .stats.four { grid-template-columns: 1fr 1fr; }
}

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
.split.wide-text { grid-template-columns: 1.3fr 1fr; }
.split.rev > :first-child { order: 2; }
.split .img { width: 100%; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.split .h-sub, .split .h-item { margin-bottom: 18px; }
@media (max-width: 860px) { .split, .split.wide-text { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

/* Video-style card (Raise The Bar) */
.vcard { position: relative; display: block; background: #0a1322; color: #fff; aspect-ratio: 16 / 10; overflow: hidden; text-decoration: none; }
.vcard .vc-title { position: absolute; right: 7%; top: 12%; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.6vw, 76px); line-height: 0.95; text-transform: uppercase; text-align: left; color: #e9e9e9; }
.vcard .vc-sub { position: absolute; right: 7%; bottom: 12%; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: #bbb; }
.vcard .vc-img { position: absolute; left: 0; bottom: 0; height: 100%; width: 52%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.vcard .play { position: absolute; left: 60%; top: 58%; width: 64px; height: 44px; background: #f00; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.vcard .play::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.vcard:hover .play { transform: scale(1.08); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.pillars .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pillar { display: grid; grid-template-columns: 130px 1fr; gap: 30px; align-items: start; padding: 18px 0; }
.pillar .ic { width: 124px; height: 124px; border-radius: 50%; background: var(--black); border: 4px solid #dcebf7; box-shadow: 0 6px 16px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; }
.pillar .ic svg { width: 56px; height: 56px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-family: var(--text); font-weight: 600; text-transform: uppercase; font-size: 26px; line-height: 1.2; margin: 14px 0 10px; }
.pillar p { margin: 0; font-size: 16px; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 84px 1fr; gap: 18px; }
  .pillar .ic { width: 80px; height: 80px; } .pillar .ic svg { width: 36px; height: 36px; }
  .pillar h3 { font-size: 20px; margin-top: 4px; }
}

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.car-track { position: relative; }
.slide { display: none; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: center; padding: 30px clamp(28px, 5vw, 60px); }
.slide.active { display: grid; }
.slide h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; margin-bottom: 18px; }
.slide p { font-size: 16px; }
.slide .img { width: 100%; max-height: 380px; object-fit: cover; background: var(--black); }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; cursor: pointer; padding: 10px; }
.car-arrow svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 3; fill: none; }
.car-arrow.prev { left: -12px; } .car-arrow.next { right: -12px; }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; background: #444; border: 0; cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: #fff; }
@media (max-width: 860px) { .slide { grid-template-columns: 1fr; padding: 10px 30px; } .slide .img { order: -1; max-height: 260px; } }

/* ---------- Logo boxes (featured in) ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.logo-box {
  flex: 0 1 280px; height: 150px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  padding: 26px 30px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s;
}
.logo-box.wide { flex-basis: 420px; }
.logo-box:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.logo-box img { max-width: 100%; max-height: 92px; object-fit: contain; }
.logo-box .word { font-family: var(--display); font-weight: 600; font-size: 28px; text-transform: uppercase; line-height: 1.05; text-align: center; }
.logo-box .word small { display: block; font-family: var(--text); font-weight: 400; font-size: 12px; letter-spacing: .12em; margin-top: 6px; color: var(--grey); }
.sec.cream .logo-box { border-color: #fff; }

/* ---------- Connect ---------- */
.connect-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(56px, 10vw, 132px); line-height: 0.95; text-align: center; }
.connect-sub { text-align: center; margin: 18px 0 56px; font-size: 16px; }
.connect { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.connect a { display: flex; flex-direction: column; align-items: center; gap: 22px; text-decoration: none; color: var(--white); }
.connect .circ { width: min(230px, 18vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 55%, #e2e2e2 100%); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.connect a:hover .circ { transform: scale(1.04); }
.connect .circ svg, .connect .circ img { width: 46%; height: 46%; }
.connect .circ .in { font-family: var(--text); font-weight: 700; font-size: clamp(40px, 6vw, 92px); color: var(--black); letter-spacing: -0.04em; line-height: 1; }
.connect span.lbl { font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 760px) { .connect { grid-template-columns: 1fr 1fr; } .connect .circ { width: 38vw; } }

.site-footer { background: var(--black); color: #888; font-size: 13px; padding: 0 0 36px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #222; padding-top: 24px; }
.site-footer a { color: #aaa; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(40px, 6vw, 70px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid #8a8a84; }
.page-head h1 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.05; }
.page-head p { margin: 16px 0 0; max-width: 70ch; font-size: 17px; }
.block + .block { margin-top: clamp(56px, 7vw, 96px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: clamp(48px, 6vw, 80px) 0; }
.sec-title { font-family: var(--text); font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 30px; }
.sec-title.center { text-align: center; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.kv { list-style: none; padding: 0; margin: 0; }
.kv li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.kv li b { font-weight: 600; }

/* Photo rows / gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery.g4 { grid-template-columns: repeat(4, 1fr); }
.gallery.g2 { grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e6de; }
.gallery.tall a { aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery, .gallery.g4 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 4 / 3; padding: 20px;
  background: #e8eef5; border: 1px dashed #b8c4d3; color: #5b6577; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
}

/* Event rows (exhibitions) */
.event { display: grid; grid-template-columns: 260px 1fr; gap: 36px; padding: 34px 0; border-top: 1px solid var(--line); }
.event:first-child { border-top: 0; padding-top: 0; }
.event h3 { font-family: var(--text); font-weight: 600; font-size: 20px; line-height: 1.3; }
.event .when { color: var(--grey); font-size: 14px; margin-top: 6px; }
@media (max-width: 860px) { .event { grid-template-columns: 1fr; gap: 14px; } }

/* Document cards — click to view */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px; }
.doc { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.doc .thumb { background: var(--white); aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; position: relative; }
.doc .thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.doc .thumb::after { content: "VIEW"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--black); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .08em; padding: 9px 20px; opacity: 0; transition: opacity .2s; }
.doc:hover .thumb { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.doc:hover .thumb::after { opacity: 1; }
.doc .dt { font-size: 14px; font-weight: 500; line-height: 1.4; margin-top: 14px; }
.doc .dv { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; border-bottom: 1px solid currentColor; align-self: flex-start; }
.docs.landscape .doc .thumb { aspect-ratio: 4 / 3; }

/* Timeline (results) */
.results { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.results li { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.results .yr { font-family: var(--display); font-weight: 500; font-size: 26px; }
.results .ev { font-weight: 500; font-size: 17px; }
.results .ev small { display: block; font-weight: 400; color: var(--grey); font-size: 14px; }
.results .md { font-family: var(--display); font-weight: 500; font-size: 20px; text-transform: uppercase; }
@media (max-width: 640px) { .results li { grid-template-columns: 1fr; gap: 4px; } }

/* Accordion (awards) */
.acc { border: 1px solid #dcdad2; background: transparent; }
.acc + .acc { border-top: 0; }
.acc summary { list-style: none; cursor: pointer; padding: 15px 20px; display: flex; gap: 14px; align-items: center; font-size: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: "+"; font-weight: 700; font-size: 20px; width: 14px; line-height: 1; }
.acc[open] summary::before { content: "\2212"; }
.acc .acc-body { border-top: 1px solid #dcdad2; padding: 18px 24px 20px 44px; }
.acc ul { margin: 0; padding-left: 1em; }
.acc li { margin-bottom: 8px; }
.acc li b { font-weight: 600; }
.acc li a { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }

/* Tabs (Service) */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--ink); margin-bottom: 50px; }
.tabs button { font: 500 14px var(--text); text-transform: uppercase; letter-spacing: .02em; background: none; border: 0; padding: 14px 18px; cursor: pointer; color: var(--grey); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.js .panel[hidden] { display: none; }
.panel + .panel { margin-top: 90px; }
.js .panel + .panel { margin-top: 0; }

/* PARI domain bars */
.domains { list-style: none; margin: 0; padding: 0; }
.domains li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.domains .row { display: flex; justify-content: space-between; font-weight: 600; text-transform: uppercase; }
.domains .bar { height: 8px; background: #e1e8f0; margin: 10px 0 8px; }
.domains .bar span { display: block; height: 100%; background: var(--black); }
.domains p { margin: 0; font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps div { counter-increment: s; padding: 24px; border-left: 1px solid #333; }
.steps div:first-child { border-left: 0; padding-left: 0; }
.steps div::before { content: "0" counter(s); display: block; font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1; margin-bottom: 12px; color: #777; }
.steps b { font-family: var(--text); font-weight: 600; text-transform: uppercase; font-size: 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } .steps div { border-left: 0; padding-left: 0; } }

/* Platform chips (podcast) */
.platforms { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.platforms a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 14px; text-transform: uppercase; }
.platforms a:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.platforms img { width: 22px; height: 22px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.92); padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; }
.lightbox button { position: absolute; top: 16px; right: 16px; background: none; border: 2px solid #fff; color: #fff; padding: 8px 14px; font: 500 13px var(--text); text-transform: uppercase; cursor: pointer; }
.split .img { max-height: 540px; object-fit: cover; }
.split .zoom { display: block; }

/* ===== v3 additions ===== */
.nav { gap: 30px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 0 0 12px; }
.btn.ghost { background: transparent; color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); }
.split > *, .codegrid > *, .connect2 > * { min-width: 0; }

/* Let's connect (calm version) */
.connect-sec { background: var(--cream); border-top: 1px solid var(--line); }
.connect2 { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.connect-lead { margin: 14px 0 18px; max-width: 40ch; }
.mail-big { font-size: clamp(18px, 2vw, 24px); font-weight: 500; margin: 0; word-break: break-all; }
.mail-big a { text-decoration: none; border-bottom: 2px solid var(--black); }
.clinks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.clinks li { border-bottom: 1px solid var(--line); }
.clinks a { display: grid; grid-template-columns: 40px 1fr auto 24px; gap: 14px; align-items: center; padding: 16px 6px; text-decoration: none; transition: background .15s; }
.clinks a:hover { background: var(--white); }
.clinks .ci { width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.clinks .ci svg { width: 18px; height: 18px; }
.clinks .inb { font: 700 15px var(--text); letter-spacing: -0.03em; color: var(--black); }
.clinks .cl { font-weight: 500; }
.clinks .ch { color: var(--grey); font-size: 14px; }
.clinks .ca { transition: transform .15s; }
.clinks a:hover .ca { transform: translateX(4px); }
@media (max-width: 860px) { .connect2 { grid-template-columns: 1fr; } .clinks .ch { display: none; } .clinks a { grid-template-columns: 40px 1fr 24px; } }
.site-footer { padding-top: 24px; }
.site-footer .wrap { border-top: 0; padding-top: 0; }

/* SNACC: journey, claims, nutrition */
.journey { list-style: none; margin: 0; padding: 0; }
.journey li { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 22px 0; border-top: 1px solid var(--line); }
.journey li:first-child { border-top: 2px solid var(--ink); }
.journey .jd { font-family: var(--display); font-size: 22px; font-weight: 500; text-transform: uppercase; }
.journey b { font-weight: 600; font-size: 18px; display: block; margin-bottom: 4px; }
.journey p { margin: 0; }
@media (max-width: 640px) { .journey li { grid-template-columns: 1fr; gap: 6px; } }
.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.claim { background: var(--white); padding: 18px 16px; border: 1px solid var(--line); }
.claim .cn { display: block; font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; }
.claim .cl { display: block; font-size: 13px; margin-top: 8px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 520px) { .claims { grid-template-columns: repeat(2, 1fr); } }
.nut { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.nut li { display: grid; grid-template-columns: 1fr 90px 90px; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.nut li b { text-align: right; font-weight: 600; }
.nut .per100 { text-align: right; color: var(--grey); }
.nut .nh { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* PARI */
.steps.light div { border-left-color: var(--line); }
.steps.light div::before { color: #999; }
.steps.light p { margin: 8px 0 0; font-size: 15px; }
.codegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.codecard { background: #0a1322; color: #e8e8e8; display: flex; flex-direction: column; }
.code-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #1f2d44; font-size: 13px; }
.code-head span { font-family: ui-monospace, Menlo, Consolas, monospace; color: #fff; }
.code-head a { color: #9ecbff; text-decoration: none; font-weight: 500; }
.code-head a:hover { text-decoration: underline; }
.codecard pre { margin: 0; padding: 18px; overflow-x: auto; font: 12.5px/1.6 ui-monospace, Menlo, Consolas, monospace; flex: 1; }
.code-note { margin: 0; padding: 14px 18px 18px; border-top: 1px solid #1f2d44; font-size: 14px; color: #bdbdbd; }
.code-note b { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .codegrid { grid-template-columns: 1fr; } }

/* Podcast episodes */
.eps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.ep { display: flex; flex-direction: column; }
.ep-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ep-thumb:hover img { transform: scale(1.04); }
.ep-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 36px; background: #f00; border-radius: 10px; opacity: .92; }
.ep-thumb .play::after { content: ""; position: absolute; left: 21px; top: 10px; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.ep-thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 2px 6px; }
.ep-n { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin: 16px 0 4px; }
.ep h3 { font-family: var(--text); font-weight: 600; font-size: 20px; }
.ep-role { font-size: 13px; color: var(--grey); margin: 2px 0 10px; }
.ep p { font-size: 14px; }
.ep .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 1000px) { .eps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eps { grid-template-columns: 1fr; } }

.split.solo { grid-template-columns: 1fr; max-width: 760px; }

/* ===== v4 additions ===== */
/* Hero collage */
.hero-grid2 { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding: 26px 0 70px; }
.hero-hi { padding: 0; }
.hero-line { font-size: clamp(17px, 1.5vw, 20px); margin: 20px 0 0; max-width: 34ch; }
.collage { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: center; }
.collage figure { margin: 0; position: relative; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.collage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.collage .c2 img { aspect-ratio: 3 / 4.4; }
.collage .c1 { transform: translateY(26px); }
.collage .c3 { transform: translateY(-22px); }
.collage .c3 img { object-position: 60% 30%; }
.collage figcaption { position: absolute; left: 0; bottom: 14px; background: var(--black); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; }
@media (max-width: 860px) {
  .hero-grid2 { grid-template-columns: 1fr; padding-bottom: 50px; }
  .collage { gap: 8px; }
  .collage .c1, .collage .c3 { transform: none; }
  .collage figcaption { font-size: 10px; padding: 4px 8px; bottom: 8px; }
}

/* Episode mini grid */
.ep-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-mini a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.ep-mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ep-mini a:hover img { transform: scale(1.05); }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote { margin: 0; background: var(--cream); padding: 30px 30px 26px; display: flex; flex-direction: column; position: relative; }
.quote::before { content: "\201C"; font-family: var(--display); font-size: 90px; line-height: .6; color: #bcd7ee; display: block; margin-bottom: 6px; }
.quote blockquote { margin: 0 0 22px; font-size: 17px; line-height: 1.6; flex: 1; }
.quote.big { grid-column: 1 / -1; background: var(--black); color: #fff; }
.quote.big::before { color: #444; }
.quote.big blockquote { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.45; font-weight: 300; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; border-top: 1px solid rgba(128,128,128,.3); padding-top: 14px; }
.quote figcaption b { font-weight: 600; }
.quote figcaption span { color: var(--grey); }
.quote.big figcaption span { color: #aaa; }
.quote figcaption a { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } .quote figcaption a { margin-left: 0; width: 100%; } }

/* PARI chart */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }

/* Research cases / outcomes */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.case { background: var(--white); border: 1px solid var(--line); padding: 20px; }
.case .cb { display: block; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.case p { margin: 0; font-size: 15px; }
.outcomes { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 30px; margin-top: 30px; padding-top: 26px; border-top: 2px solid var(--ink); }
.outcomes .stat-n { font-size: clamp(30px, 3.4vw, 44px); }
.outcomes > div { font-size: 15px; }
.outcomes b { font-weight: 600; }
@media (max-width: 1000px) { .cases { grid-template-columns: 1fr 1fr; } .outcomes { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 520px) { .cases { grid-template-columns: 1fr; } }
.crest { display: block; text-decoration: none; background: var(--white); box-shadow: 0 8px 26px rgba(0,0,0,.1); transition: transform .2s; }
.crest:hover { transform: translateY(-3px); }
.crest img { width: 100%; max-height: 460px; object-fit: contain; background: #fff; }
.crest span { display: block; padding: 12px 16px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-top: 1px solid #eee; }

/* ===== v5 additions ===== */
.hero-photo { margin: 0; position: relative; box-shadow: 0 18px 44px rgba(0,0,0,.16); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; display: block; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 16px; background: var(--black); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; }
@media (max-width: 860px) { .hero-photo figcaption { font-size: 10px; bottom: 10px; } }

.pod-stats { display: flex; gap: 34px; margin: 6px 0 22px; }
.pod-stats .stat-n { font-size: clamp(30px, 3.4vw, 44px); }
.pod-stats .stat-l { font-size: 13px; margin-top: 2px; }

/* Regression output */
.model { margin: 26px 0 18px; padding: 18px 22px; background: #0a1322; color: #fff; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.model span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #aaa; }
.model code { font: 500 clamp(16px, 1.8vw, 21px)/1.4 ui-monospace, Menlo, Consolas, monospace; }
.regs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.reg { background: var(--white); border: 1px solid var(--line); padding: 18px 20px 12px; overflow-x: auto; }
.reg-t { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; margin: 0 0 10px; }
.reg table { width: 100%; border-collapse: collapse; font-size: 14px; }
.reg th, .reg td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.reg thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); font-weight: 600; }
.reg tbody th { font-weight: 500; }
.reg td b { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; font-size: 15px; }
.reg td small { color: var(--grey); font-size: 12px; }
.reg td.sig { background: var(--black); color: #fff; }
.reg td.sig small { color: #bbb; }
.sigkey { display: inline-block; width: 12px; height: 12px; background: var(--black); vertical-align: -1px; margin-right: 4px; }
@media (max-width: 860px) { .regs { grid-template-columns: 1fr; } }

/* Service: card tabs, chips, what I did, prev/next */
.tabs.cards { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; border-bottom: 0; margin-bottom: 50px; }
.tabs.cards button { text-align: left; background: var(--white); border: 1px solid var(--line); padding: 14px 14px 12px; margin: 0; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: background .15s, transform .15s; }
.tabs.cards button:hover { transform: translateY(-2px); border-color: var(--ink); }
.tabs.cards button[aria-selected="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.tabs.cards .tn { font-family: var(--display); font-size: 20px; line-height: 1; opacity: .5; }
.tabs.cards b { font-size: 14px; font-weight: 600; line-height: 1.25; text-transform: none; }
.tabs.cards small { font-size: 11px; opacity: .7; text-transform: none; letter-spacing: 0; }
@media (max-width: 1100px) { .tabs.cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .tabs.cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .tabs.cards button { flex: 0 0 62%; scroll-snap-align: start; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.chips > div { background: var(--white); border: 1px solid var(--line); padding: 12px 16px; min-width: 110px; }
.chips .cn { display: block; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.05; }
.chips .cl { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.did-t { font-family: var(--text); font-weight: 600; text-transform: uppercase; font-size: 15px; letter-spacing: .06em; margin: 26px 0 10px; }
.did { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.did li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); position: relative; }
.did li::before { content: "\2192"; position: absolute; left: 0; top: 11px; font-weight: 600; }
.pnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 22px; border-top: 2px solid var(--ink); }
.pnav a { font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: 14px; letter-spacing: .04em; }
.pnav a:hover { text-decoration: underline; }

/* ---- Oct 2026 additions */
.quote.span { grid-column: 1 / -1; }
.eps.five { grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1200px) { .eps.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .eps.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eps.five { grid-template-columns: 1fr; } }
.cases.two { grid-template-columns: 1fr 1fr; gap: 18px; }
.cases.two .case { padding: 28px; }
@media (max-width: 760px) { .cases.two { grid-template-columns: 1fr; } }
.block + .cases { margin-top: 40px; }
.testbox { margin-top: 56px; border: 2px solid var(--ink); padding: clamp(24px, 3vw, 36px); }
.testbox .h-item { margin-bottom: 22px; }
.tb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.tb-grid > div { border-left: 1px solid var(--line); padding-left: 24px; }
.tb-grid > div:first-child { border-left: 0; padding-left: 0; }
.tb-grid .stat-n { display: block; }
.tb-t { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.tb-s { display: block; color: var(--grey); font-size: 15px; margin-top: 4px; }
@media (max-width: 640px) { .tb-grid { grid-template-columns: 1fr; } .tb-grid > div { border-left: 0; padding-left: 0; } }
.awards li { align-items: center; }
.awards .ev { font-size: 16px; }
.awards .md { font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: right; max-width: 300px; line-height: 1.9; }
.awards .md a { display: inline-block; margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .awards .md { text-align: left; } .awards .md a { margin: 0 12px 0 0; } }
/* even logo grids */
.logos.grid { display: grid; gap: 18px; }
.logos.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.logos.grid.g3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
.logos.grid .logo-box { width: auto; flex: none; min-width: 0; }
.logos.grid .logo-box img { max-width: 80%; }
@media (max-width: 860px) { .logos.grid.g4, .logos.grid.g3 { grid-template-columns: 1fr 1fr; } }
/* home: latest episode large above the others */
.ep-mini a.feat { grid-column: 1 / -1; }
/* four-figure bands: keep long numbers from touching */
.stats.four .stat-n { font-size: clamp(30px, 3.4vw, 48px); }
.logos.grid .logo-box { padding: 18px 22px; }
.logos.grid .logo-box img { width: 100%; max-width: 100%; height: 72px; max-height: 72px; object-fit: contain; }

/* ---- colour accents (SNACC blue); layout and type unchanged */
.sec.black .stat-n { color: #7cc4f0; }
.quote::before { color: var(--accent); opacity: .6; }
.quote.big::before { color: var(--accent); opacity: .9; }
.quote.big figcaption a, .code-head a, .model span { color: #7cc4f0; }
.nav > a::after, .nav .drop > button::after { background: var(--accent); }
.nav > a[aria-current="page"] { color: var(--accent-ink); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost:hover, .btn.outline-light:hover, .btn.light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps div::before, .did li::before, .clinks .ca { color: var(--accent); }
.domains .bar span { background: var(--accent); }
.eyebrow, .ep-n { color: var(--accent-ink); }
.mail-big a { border-bottom-color: var(--accent); }
.tabs.cards button[aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--accent); }
.site-footer { color: #8a96a8; }
