/* ============================================================
   ANDREA D'AGOSTINI — Kinetic Editorial System
   Palette: ink black / bone ivory / signal chartreuse
   Type: Archivo (display) + Fraunces (editorial italic)
   ============================================================ */
:root {
  --ink: #0b0b0c;
  --ink-2: #131315;
  --ink-3: #1c1c1f;
  --bone: #f4f1ea;
  --bone-dim: #b9b5ab;
  --signal: #ff7a3d;
  --line: rgba(244, 241, 234, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--signal); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- type scale ---------- */
.display-xxl {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.4rem, 11vw, 10.5rem);
  line-height: 0.88; letter-spacing: -0.02em;
}
.display-xl {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.92; letter-spacing: -0.02em;
}
.display-l {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 0.95; letter-spacing: -0.01em;
}
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.accent { color: var(--signal); }

/* gradient orange for big display headings — matches the Phoenix "ember" treatment */
:root { --signal-grad: linear-gradient(96deg, #ffb25e, #ff7a3d 46%, #e04a1c); }
.display-xxl .accent, .display-xl .accent, .display-l .accent {
  background: var(--signal-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--signal);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--signal); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--bone-dim); max-width: 46ch; }
.lede strong, .lede b { color: var(--bone); }

/* ---------- layout ---------- */
.wrap { width: min(1280px, 92vw); margin: 0 auto; }
section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; }
.section-line { border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- nav ---------- */
header.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(rgba(11,11,12,0.85), rgba(11,11,12,0.55));
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.logo { font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1.05rem; }
.logo span { color: var(--signal); }
nav.links { display: flex; gap: 1.8rem; align-items: center; }
nav.links a {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-dim); transition: color 0.2s;
}
nav.links a:hover, nav.links a.active { color: var(--signal); }
.btn {
  display: inline-block; padding: 0.85rem 1.8rem;
  border: 1px solid var(--signal); color: var(--signal);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: all 0.25s; cursor: pointer; background: transparent;
}
.btn:hover { background: var(--signal); color: var(--ink); }
.btn.solid { background: var(--signal); color: var(--ink); }
.btn.solid:hover { background: var(--bone); border-color: var(--bone); }
.nav-toggle { display: none; background: none; border: 0; color: var(--bone); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: block; position: relative; z-index: 5; }
  .theme-btn { position: relative; z-index: 5; }
  nav.links {
    /* NOTE: header's backdrop-filter makes it the containing block for this
       fixed element, so inset:0 would size it to the header bar. Explicit
       viewport dimensions are required. */
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100svh;
    background: var(--ink); z-index: 1;
    flex-direction: column; justify-content: flex-start; align-items: center;
    gap: 1.6rem; padding: 5.5rem 0 3rem; overflow-y: auto;
    transform: translateY(-102%); transition: transform 0.4s cubic-bezier(.7,0,.3,1);
  }
  nav.links.open { transform: translateY(0); }
  nav.links a { font-size: 1.15rem; }
}

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem 0 4rem; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(255,122,61,0.09), transparent 70%),
    radial-gradient(50% 60% at 15% 80%, rgba(255,122,61,0.05), transparent 70%);
}
.hero-scroll { position: absolute; bottom: 2rem; right: 4vw; z-index: 3; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone-dim); writing-mode: vertical-rl; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.1rem 0; white-space: nowrap; }
.marquee-track { display: inline-block; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-weight: 900; text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.18em;
  margin-right: 3.5rem; color: var(--bone-dim);
}
.marquee-track span i { font-style: normal; color: var(--signal); margin-right: 3.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- media placeholders ---------- */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--ink-2) 0 14px, var(--ink-3) 14px 28px);
  border: 1px dashed rgba(255,122,61,0.4);
  color: var(--bone-dim); text-align: center; overflow: hidden;
}
.ph::after {
  content: attr(data-asset);
  position: absolute; inset: auto 0 0 0; padding: 0.6rem 1rem;
  background: rgba(11,11,12,0.85); color: var(--signal);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}
.ph .ph-icon { font-size: 2.2rem; opacity: 0.5; }
.ph.r169 { aspect-ratio: 16/9; }
.ph.r45 { aspect-ratio: 4/5; }
.ph.r11 { aspect-ratio: 1/1; }
.ph.r219 { aspect-ratio: 21/9; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--ink); padding: 2.4rem 1.8rem; }
.stat .num { font-weight: 900; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; color: var(--signal); }
.stat .lbl { margin-top: 0.7rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* award badge cells — fixed light chip so logos stay visible in both themes */
.stat.award { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: #f4f1ea; text-align: center; }
.stat.award img { width: 100%; max-width: 170px; max-height: 120px; object-fit: contain; }
.stat.award .lbl { margin-top: 0; color: #6b675f; font-size: 0.95rem; }

/* ---------- division cards ---------- */
.division {
  position: relative; border-top: 1px solid var(--line);
  padding: 2.6rem 0; display: grid;
  grid-template-columns: 0.9fr 2fr 1.6fr auto; gap: 2rem; align-items: center;
  transition: background 0.3s, padding-left 0.3s;
}
.division:last-child { border-bottom: 1px solid var(--line); }
.division:hover { background: var(--ink-2); padding-left: 1.2rem; }
.division .idx { font-family: var(--serif); font-style: italic; color: var(--signal); font-size: 1.1rem; }
.division h3 { font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 0.95; }
.division h3 small { display: block; font-size: 0.7rem; letter-spacing: 0.3em; color: var(--bone-dim); margin-top: 0.5rem; }
.division p { color: var(--bone-dim); font-size: 0.95rem; }
.division .arrow { font-size: 1.6rem; color: var(--signal); transition: transform 0.3s; }
.division:hover .arrow { transform: translateX(8px); }
@media (max-width: 900px) { .division { grid-template-columns: 1fr; gap: 0.8rem; } }

/* ---------- timeline ---------- */
.timeline { position: relative; margin-top: 3rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.t-item { position: relative; padding: 0 0 3.5rem 3rem; }
.t-item::before {
  content: ""; position: absolute; left: -5px; top: 0.5rem; width: 11px; height: 11px;
  background: var(--ink); border: 2px solid var(--signal); border-radius: 50%;
}
.t-item .year { font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--signal); line-height: 1; }
.t-item h4 { text-transform: uppercase; font-weight: 800; letter-spacing: 0.06em; margin: 0.6rem 0 0.4rem; font-size: 1.05rem; }
.t-item p { color: var(--bone-dim); max-width: 52ch; font-size: 0.95rem; }

/* ---------- cards ---------- */
.card { background: var(--ink-2); border: 1px solid var(--line); padding: 2.2rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color 0.3s, transform 0.3s; }
.card:hover { border-color: var(--signal); transform: translateY(-4px); }
.card h3 { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; }
.card p { color: var(--bone-dim); font-size: 0.93rem; flex: 1; }
.card .tag { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal); font-weight: 700; }

/* ---------- press strip ---------- */
.press { display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center; justify-content: space-between; opacity: 0.65; }
.press span { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--bone-dim); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--signal); color: var(--ink); }
.cta-band .display-xl { color: var(--ink); }
.cta-band .lede { color: rgba(11,11,12,0.7); }
.cta-band .btn { border-color: var(--ink); color: var(--ink); }
.cta-band .btn:hover { background: var(--ink); color: var(--signal); }

/* ---------- forms ---------- */
form.enquiry { display: grid; gap: 1.2rem; max-width: 640px; }
form.enquiry label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); font-weight: 700; }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line);
  color: var(--bone); padding: 1rem; font-family: var(--sans); font-size: 1rem;
}
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { outline: 1px solid var(--signal); border-color: var(--signal); }

/* ---------- footer ---------- */
footer.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.foot-grid h5 { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--signal); margin-bottom: 1rem; }
.foot-grid a { display: block; color: var(--bone-dim); font-size: 0.9rem; padding: 0.25rem 0; }
.foot-grid a:hover { color: var(--bone); }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--bone-dim); font-size: 0.78rem; border-top: 1px solid var(--line); padding-top: 1.8rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; }

/* ---------- page hero (interior pages) ---------- */
.page-hero { padding: 11rem 0 4rem; }
.page-hero .kicker { margin-bottom: 1.2rem; }
.breadcrumbs { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 2rem; }
.breadcrumbs a:hover { color: var(--signal); }

/* ---------- big quote ---------- */
.big-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.25; max-width: 24ch; }
.big-quote .accent { font-style: italic; }

/* ---------- checklist ---------- */
ul.check { list-style: none; display: grid; gap: 0.9rem; }
ul.check li { padding-left: 2rem; position: relative; color: var(--bone-dim); }
ul.check li::before { content: "→"; position: absolute; left: 0; color: var(--signal); font-weight: 900; }
ul.check li strong { color: var(--bone); }

/* ---------- V1 photoreal additions ---------- */
.media { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.media.r169 { aspect-ratio: 16/9; } .media.r45 { aspect-ratio: 4/5; } .media.r11 { aspect-ratio: 1/1; }
.media img, .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media .cap { position: absolute; inset: auto 0 0 0; padding: 0.5rem 1rem; background: linear-gradient(transparent, rgba(11,11,12,0.85)); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); font-weight: 700; }
.media:hover img { transform: scale(1.03); } .media img { transition: transform 0.6s ease; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 700px) { .media-grid { grid-template-columns: 1fr; } }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-wall img { background: #f4f1ea; padding: 1.4rem; width: 100%; height: 100%; object-fit: contain; aspect-ratio: 16/9; filter: grayscale(1); transition: filter 0.3s; }
.logo-wall img:hover { filter: none; }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.book-mock { aspect-ratio: 3/4; max-width: 420px; background: linear-gradient(160deg, #16160f, #0b0b0c 65%); border: 1px solid var(--signal); box-shadow: 22px 22px 0 rgba(255,122,61,0.07); display: flex; }
.book-inner { display: flex; flex-direction: column; justify-content: space-between; padding: 2.2rem; width: 100%; }
.bm-kicker { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone-dim); font-weight: 700; }
.bm-title { font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 0.92; color: var(--signal); }
.bm-sub { font-family: var(--serif); font-style: italic; color: var(--bone-dim); font-size: 0.95rem; }

/* ---------- parity additions ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.ep { display: grid; grid-template-columns: 76px 1fr; gap: 1.2rem; align-items: center; background: var(--ink-2); border: 1px solid var(--line); padding: 1.2rem 1.4rem; transition: 0.25s; }
.ep + .ep { margin-top: 0.9rem; }
.ep:hover { border-color: var(--signal); transform: translateY(-2px); }
.ep .no { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--signal); }
.ep h4 { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.98rem; }
.ep p { color: var(--bone-dim); font-size: 0.88rem; margin-top: 0.2rem; }
.ep .status { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal); font-weight: 700; }

/* ============ LIGHT THEME (data-theme="light" on <html>) ============ */
[data-theme="light"] {
  --ink: #faf8f4;
  --ink-2: #ffffff;
  --ink-3: #f0ebe2;
  --bone: #17130f;
  --bone-dim: #6f675c;
  --line: rgba(23, 19, 15, 0.14);
}
[data-theme="light"] header.site-nav { background: linear-gradient(rgba(250,248,244,0.92), rgba(250,248,244,0.65)); }
[data-theme="light"] .ph::after { background: rgba(250,248,244,0.9); }
[data-theme="light"] .logo-wall img { filter: grayscale(1); }
[data-theme="light"] .logo-wall img:hover { filter: none; }
[data-theme="light"] .media .cap { background: linear-gradient(transparent, rgba(23,19,15,0.75)); color: rgba(250,248,244,0.9); }
[data-theme="light"] .card, [data-theme="light"] .ep { box-shadow: 0 18px 44px -24px rgba(23,19,15,0.18); }
html { transition: background 0.3s; }
body { transition: background 0.3s, color 0.3s; }

/* theme toggle button */
.theme-btn {
  background: none; border: 1px solid var(--line); color: var(--bone);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; line-height: 1; transition: all 0.25s; margin-left: 0.4rem;
}
.theme-btn:hover { border-color: var(--signal); color: var(--signal); transform: rotate(20deg); }

/* ============ HERO BACKGROUND VIDEO ============ */
.hero { color: #f4f1ea; }
.hero, .hero * { --bone: #f4f1ea; --bone-dim: #bcb8ae; }
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0b0b0c; }
.hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%;
  transform: translate(-50%, -50%); border: 0; pointer-events: none;
}
.hero-video .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(11,11,12,0.5), rgba(11,11,12,0.72) 60%, rgba(11,11,12,0.92));
}
.hero-note { margin-top: 1.6rem; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244,241,234,0.45); font-weight: 700; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2.2rem; }
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .hero-video iframe { display: none; }  /* gradient fallback on mobile / reduced motion */
  .hero-video { background:
    radial-gradient(60% 50% at 75% 30%, rgba(255,122,61,0.18), transparent 70%),
    #0b0b0c; }
}

/* ============ HERO VIDEO v2 — full-screen horizontal ============ */
.hero { min-height: 100vh; min-height: 100svh; }
.hero-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;   /* edge-to-edge horizontal crop, any source */
}
.hero-video iframe { display: none; }           /* retire old embed path */
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .hero-video video { display: none; }          /* still image + scrim on mobile / reduced motion */
  .hero-video {
    background: url("https://www.monarchy.io/img/collage/hero-banner-speakers.avif") center/cover no-repeat, #0b0b0c;
  }
}

/* ---------- ventures dropdown ---------- */
.nav-sub { position: relative; }
.nav-sub > a::after { content: " ▾"; font-size: 0.7em; opacity: 0.7; }
.sub-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--ink-2); border: 1px solid var(--line); min-width: 215px; padding: 0.5rem 0;
  opacity: 0; pointer-events: none; transition: 0.25s; z-index: 150; }
.nav-sub:hover .sub-menu, .nav-sub:focus-within .sub-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.sub-menu a { display: block; padding: 0.55rem 1.3rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); }
.sub-menu a:hover { color: var(--signal); background: var(--ink-3); }
@media (max-width: 1020px) {
  .nav-sub { display: contents; }
  .sub-menu { position: static; opacity: 1; pointer-events: auto; transform: none; border: 0; background: none;
    display: flex; flex-direction: column; gap: 1.2rem; padding: 0; text-align: center; min-width: 0; }
  .sub-menu a { font-size: 1rem; }
}

/* ---------- page-hero video ---------- */
.page-hero.vhero { position: relative; overflow: hidden; }
.page-hero.vhero, .page-hero.vhero * { --bone: #f4f1ea; --bone-dim: #c2beb4; --line: rgba(244,241,234,0.18); }
.page-hero.vhero .wrap { position: relative; z-index: 2; }
.page-hero.vhero .hero-video { position: absolute; inset: 0; z-index: 0; }

/* ---------- hero video framing: keep faces in frame ---------- */
.hero-video video { object-position: 50% 18%; }

/* ---------- responsive: collapse inline-styled grids on small screens ---------- */
@media (max-width: 700px) {
  .grid-2[style], .grid-3[style], .grid-4[style] { grid-template-columns: 1fr !important; }
  .display-xxl { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .hero-cta .btn { width: 100%; text-align: center; }
}

/* ---------- press ticker (below hero) ---------- */
.marquee.press { padding: 1.05rem 0; }
.marquee.press .marquee-track { display: inline-flex; align-items: center; }
.marquee.press .pt { display: inline-flex; align-items: center; gap: 3.2rem; margin-right: 3.2rem; }
.marquee.press img { height: 24px; width: auto; filter: grayscale(1) brightness(1.9); opacity: 0.85; }
[data-theme="light"] .marquee.press img { filter: grayscale(1); opacity: 0.75; }
.marquee.press b { font-weight: 900; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.95rem; color: var(--bone-dim); white-space: nowrap; }
.marquee.press .lbl-feat { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--signal); white-space: nowrap; }

/* scroll hint retired */
.hero-scroll { display: none; }

/* ---------- press ticker: hard layout fix (no overlap) ---------- */
.marquee.press { overflow: hidden; }
.marquee.press .marquee-track {
  display: flex !important; width: max-content; align-items: center;
  animation: marquee 36s linear infinite;
}
.marquee.press .pt {
  display: flex !important; align-items: center;
  gap: 3.4rem; margin-right: 3.4rem; flex: none; white-space: nowrap;
}
.marquee.press .pt > * { flex: none; }
.marquee.press img {
  display: block; height: 22px; width: auto;
  max-width: none;            /* override global img max-width:100% — this caused the pile-up */
}
.marquee.press b { font-size: 0.9rem; }

/* ---------- ventures hero: logo chips + image background ---------- */
.hero-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,11,12,0.55); border: 1px solid rgba(244,241,234,0.2);
  padding: 1rem; aspect-ratio: 16/9; backdrop-filter: blur(4px); transition: 0.25s;
}
.logo-chip:hover { border-color: var(--signal); transform: translateY(-3px); }
.logo-chip img { max-height: 56px; width: auto; max-width: 88%; object-fit: contain; }
.logo-chip.mtgtxt span { font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; color: var(--signal); line-height: 1.15; font-size: 0.95rem; }
@media (max-width: 700px) { .logo-row { grid-template-columns: 1fr 1fr; } }

/* ---------- press ticker: original colors ---------- */
.marquee.press img, [data-theme="light"] .marquee.press img { filter: none; opacity: 1; }
.marquee.press { background: #f4f1ea; border-block: 1px solid rgba(23,19,15,0.12); }
.marquee.press b { color: #4a4742; }

/* ---------- ecosystem rows: logo chips ---------- */
.division { grid-template-columns: 0.9fr 150px 1.8fr 1.5fr auto; }
.dmark-chip { display: flex; align-items: center; justify-content: center; background: #f8f5ef; border-radius: 10px; padding: 0.5rem 0.7rem; height: 74px; width: 140px; }
.dmark-chip img { max-height: 62px; max-width: 120px; width: auto; object-fit: contain; }
.dmark-chip.empty { background: transparent; }
@media (max-width: 900px) { .division { grid-template-columns: 1fr; } .dmark-chip.empty { display: none; } }

/* ---------- ventures hero chips: light bg for colored logos ---------- */
.logo-chip { background: #f4f1ea; }
.logo-chip img { max-height: 60px; }

/* ---------- timeline media thumbs ---------- */
.t-media { margin-top: 1.1rem; max-width: 360px; position: relative; }
.t-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); display: block; }
.t-media .tcap { display: block; margin-top: 0.45rem; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); font-weight: 700; }

/* ---------- temporary book cover (The AI Consequence) ---------- */
.cover2 { position: relative; aspect-ratio: 3/4; max-width: 420px; background: #0b0b0c; overflow: hidden;
  border: 1px solid rgba(255,122,61,0.4); box-shadow: 24px 24px 0 rgba(255,122,61,0.12); }
.cover2 .c2-beams { position: absolute; inset: 0; background:
  linear-gradient(115deg, transparent 54%, rgba(255,122,61,0.20) 54%, rgba(255,122,61,0.20) 62%, transparent 62%),
  linear-gradient(115deg, transparent 66%, rgba(249,168,94,0.32) 66%, rgba(249,168,94,0.32) 70.5%, transparent 70.5%),
  linear-gradient(115deg, transparent 76%, rgba(240,95,69,0.55) 76%, rgba(240,95,69,0.55) 78%, transparent 78%),
  radial-gradient(90% 55% at 8% 0%, rgba(255,122,61,0.16), transparent 70%); }
.c2-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 2.4rem; }
.c2-kicker { font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: #f9a85e; font-weight: 800; }
.c2-title { margin-top: auto; font-weight: 900; text-transform: uppercase; font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 0.95; color: #f4f1ea; }
.c2-title em { font-style: normal; color: var(--signal); }
.c2-rule { display: block; width: 64px; height: 4px; background: linear-gradient(90deg, #f9a85e, #f05f45); margin: 1.1rem 0; }
.c2-sub { font-family: var(--serif); font-style: italic; color: #bcb8ae; font-size: 0.95rem; }
.c2-author { margin-top: 1.8rem; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: #f4f1ea; font-weight: 800; }

/* ---------- press ticker: colored brand wordmarks ---------- */
.marquee.press .bx { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: none; white-space: nowrap; }
.marquee.press .bx.serif { font-family: var(--serif); font-weight: 600; letter-spacing: 0.02em; font-size: 1.15rem; }
.marquee.press .bx.econ { background: #E3120B; color: #fff; font-family: var(--serif); font-style: italic; font-weight: 600; padding: 0.18em 0.5em; font-size: 1rem; }

/* ---------- video sound toggle ---------- */
.sound-btn { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 5;
  background: rgba(11,11,12,0.72); color: #f4f1ea; border: 1px solid rgba(244,241,234,0.35);
  border-radius: 999px; padding: 0.5rem 1rem; font: 700 0.72rem/1 "Archivo", sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); transition: 0.25s; }
.sound-btn:hover { border-color: var(--signal); color: var(--signal); }
.sound-btn.on { background: var(--signal); color: #0b0b0c; border-color: var(--signal); }

/* ---------- book cover v3: minimal, white / black / orange ---------- */
.cover3 { aspect-ratio: 3/4; width: 100%; max-width: 420px; background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08); box-shadow: 24px 24px 0 rgba(255,122,61,0.15);
  display: flex; flex-direction: column; padding: clamp(1.6rem, 6%, 2.6rem); color: #111; }
.c3-rule { width: 44px; height: 6px; background: var(--signal); flex: none; }
.c3-title { margin-top: auto; font-weight: 900; text-transform: uppercase; line-height: 0.98;
  letter-spacing: -0.01em; font-size: clamp(1.7rem, 7.5vw, 2.5rem); color: #111; overflow-wrap: break-word; }
.c3-title em { font-style: normal; color: var(--signal); }
.c3-sub { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: #6f6a63; }
.c3-author { margin-top: 2.4rem; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 800; color: #111; }
.c3-author em { font-style: normal; color: var(--signal); }

/* ---------- nav: align Ventures dropdown with other items ---------- */
nav.links { align-items: center; }
nav.links > a, nav.links .nav-sub > a { display: inline-flex; align-items: center; line-height: 1; padding-top: 0; padding-bottom: 0; }
.nav-sub { display: inline-flex; align-items: center; margin: 0; }
.nav-sub > a::after { line-height: 1; }

/* Vertical media tile + video fill */
.media.r916 { aspect-ratio: 9/16; }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }

/* Keep Ventures dropdown open while mousing down to it */
.nav-sub { position: relative; }
.nav-sub::before { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 16px; }
.sub-menu { transition: opacity .18s ease .05s, transform .18s ease .05s; }

/* ============ LIGHTBOX (click-to-enlarge gallery images) ============ */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(11,11,12,0.94);
  display: none; align-items: center; justify-content: center; padding: 4vh 4vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox .lb-cap { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #b9b5ab; font-weight: 700; }
.lightbox .lb-close { position: absolute; top: 0.8rem; right: 1.2rem; background: none; border: 0;
  color: #f4f1ea; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ============ NAV POLISH — sliding underline + solid Enquiries pill ============ */
nav.links > a:not(.btn), .nav-sub > a { position: relative; padding: 0.35rem 0; }
nav.links > a:not(.btn)::before, .nav-sub > a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
nav.links > a:not(.btn):hover::before, nav.links > a.active::before,
.nav-sub > a:hover::before, .nav-sub > a.active::before { transform: scaleX(1); }
nav.links .btn {
  background: var(--signal); color: #0b0b0c; border-color: var(--signal);
  border-radius: 999px; padding: 0.72rem 1.7rem;
  box-shadow: 0 8px 20px -10px rgba(255,122,61,0.65);
  transition: transform 0.2s, background 0.25s, color 0.25s, box-shadow 0.25s;
}
nav.links .btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(255,122,61,0.5); }
@media (max-width: 1020px) {
  nav.links > a:not(.btn)::before, .nav-sub > a::before { display: none; } /* no underline in mobile overlay */
  nav.links .btn { margin-top: 0.6rem; }
}

/* ============ IMPACT PASS v2 ============ */

/* --- 1. Cinematic heroes: slow drift + film grain + warm scrim --- */
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.2%, -1%); } }
.hero-video img, .hero-video video { animation: kenburns 26s ease-in-out infinite alternate; will-change: transform; }
.hero-video::after { content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.hero-video .scrim { background:
  linear-gradient(rgba(11,11,12,0.5), rgba(11,11,12,0.72) 60%, rgba(11,11,12,0.92)),
  radial-gradient(70% 60% at 78% 18%, rgba(255,122,61,0.14), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .hero-video img, .hero-video video { animation: none; } }

/* --- 2. Editorial depth: ghost chapter numbers + gradient stats --- */
.ghost-num { position: absolute; top: 1.5rem; right: 1.5vw; z-index: 0; pointer-events: none; user-select: none;
  font-weight: 900; font-size: clamp(7rem, 17vw, 15rem); line-height: 1; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line); opacity: 0.9; }
section.has-ghost { overflow: hidden; }
section.has-ghost > .wrap { position: relative; z-index: 1; }
.stat .num { background: var(--signal-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.award .lbl { color: #6b675f; } /* keep award chips untouched */

/* --- 3. Motion & interaction polish --- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400;
  background: var(--signal-grad); transform-origin: left; transform: scaleX(0); }
.btn { transition: all 0.25s, transform 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(255,122,61,0.55); }
.media { transition: border-color 0.3s, box-shadow 0.35s; }
.media:hover { border-color: rgba(255,122,61,0.55); box-shadow: 0 22px 48px -20px rgba(255,122,61,0.28); }
.card { transition: border-color 0.3s, transform 0.3s, box-shadow 0.35s; }
.card:hover { box-shadow: 0 22px 48px -24px rgba(255,122,61,0.25); }

/* --- 4. Grand-finale footer: giant watermark wordmark --- */
footer.site-footer { position: relative; overflow: hidden; padding-top: clamp(7rem, 14vw, 12rem); }
footer.site-footer::before { content: "ANDREA D'AGOSTINI"; position: absolute; top: 0.5rem; left: 50%;
  transform: translateX(-50%); white-space: nowrap; pointer-events: none; user-select: none;
  font-weight: 900; font-size: clamp(3.4rem, 10.5vw, 9.5rem); letter-spacing: -0.02em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line); }
footer.site-footer > .wrap { position: relative; z-index: 1; }

/* ============ LEGAL PAGES ============ */
.legal { max-width: 75ch; }
.legal .updated { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal); font-weight: 700; }
.legal h2 { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin: 2.6rem 0 0.8rem; }
.legal h3 { font-size: 1.05rem; font-weight: 800; margin: 1.6rem 0 0.5rem; }
.legal p, .legal li { color: var(--bone-dim); font-size: 0.97rem; margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal strong { color: var(--bone); }
.legal a { color: var(--signal); text-decoration: underline; }
.foot-legal a { display: inline; padding: 0; font-size: 0.78rem; }
.foot-legal a:hover { color: var(--signal); }

/* ============ CONSENT BANNER (region-aware, injected by main.js) ============ */
.consent-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 250;
  max-width: 920px; margin: 0 auto; background: var(--ink-2); border: 1px solid var(--line);
  padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.consent-bar p { font-size: 0.85rem; color: var(--bone-dim); max-width: 60ch; margin: 0; }
.consent-bar a { color: var(--signal); text-decoration: underline; }
.consent-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.consent-bar .btn { padding: 0.6rem 1.2rem; font-size: 0.7rem; }
@media (max-width: 700px) { .consent-bar .btn { display: inline-block; width: auto; margin: 0 !important; } }

/* ============ RESPONSIVE HARDENING (phones + tablets) ============ */

/* Nothing may ever overflow the viewport */
video, svg, iframe { max-width: 100%; }

/* Hero brand logo chips (Monarchy / Wanted / Phoenix page heroes) */
.brand-chip { height: 96px; width: auto; margin-bottom: 1.2rem; background: #f4f1ea; border-radius: 12px; padding: .5rem 1rem; }

/* Large Signal logo used as a section title */
.signal-logo-lg { height: 170px; width: auto; background: #f4f1ea; border-radius: 16px; padding: 1rem 1.6rem; display: block; }

/* Video grids: AI X Factor ad reel + homepage testimonials */
.vid-grid { display: grid; gap: 1.5rem; }
.vid-grid.xfactor { grid-template-columns: 9fr 9fr 16fr 16fr; }
.vid-grid.testimonials { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }

/* Tablet (≤900px): collapse ALL inline-styled grids, not just at phone width */
@media (max-width: 900px) {
  .grid-2[style], .grid-3[style], .grid-4[style] { grid-template-columns: 1fr !important; }
  .stats[style] { grid-template-columns: repeat(2, 1fr) !important; }
  .vid-grid.xfactor { grid-template-columns: 1fr 1fr; }
  .vid-grid.testimonials { grid-template-columns: repeat(3, 1fr); gap: .9rem; }
  .media.r916, .media.r45[style] { margin-right: auto; } /* centers constrained media when its column stacks */
  .grid-2 > .media[style] { justify-self: center; margin-left: auto; margin-top: 0 !important; }
}

/* Phone (≤700px) */
@media (max-width: 700px) {
  .brand-chip { height: 68px; }
  .signal-logo-lg { height: 108px; padding: .7rem 1.1rem; }
  .vid-grid.testimonials { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.6rem 1.2rem; }
  .stat .num { font-size: clamp(1.7rem, 8vw, 2.6rem); }
  /* stacked CTA button pairs become full-width, no stray left margins */
  p > .btn { display: block; text-align: center; margin: 0 0 .8rem 0 !important; }
  p > .btn:last-child { margin-bottom: 0 !important; }
  .big-quote { max-width: none; }
  /* impact-pass elements scaled for phones */
  .ghost-num { font-size: 5rem; top: 0.8rem; right: 3vw; opacity: 0.55; }
  footer.site-footer { padding-top: 5rem; }
  footer.site-footer::before { font-size: 3rem; }
  .consent-bar { flex-direction: column; align-items: flex-start; left: 0.7rem; right: 0.7rem; bottom: 0.7rem; }
}
