/* =========================================================
   Kairos Research Co. — structure modeled on blackstone.com
   Dark-first: obsidian / graphite / bone + one signal accent
   ========================================================= */

:root {
  --obsidian: #0A0A0B;   /* primary dark */
  --graphite: #141518;   /* secondary dark */
  --line-dark: #2A2B30;  /* hairlines on dark */
  --bone: #F3F1EC;       /* light sections */
  --ink: #0A0A0B;        /* text on light */
  --mute-dark: #9A9AA2;  /* secondary text on dark */
  --mute-light: #5C5C63; /* secondary text on light */
  --line-light: #D8D5CE;
  --signal: #FF5B22;     /* Kairos Signal — the one vivid accent */

  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 80px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--obsidian);
  color: #fff;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--signal); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, .h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.015em; margin: 0; }
h1, .h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }
h1 em, .h1 em, h2 em { font-style: italic; color: var(--signal); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
/* Blackstone-style: label then a short hairline to the right */
.eyebrow--rule { display: inline-flex; align-items: center; gap: 16px; }
.eyebrow--rule::after { content: ""; width: 40px; height: 1px; background: currentColor; }
/* Centered variant: short rule above the label */
.eyebrow--stack::before {
  content: ""; display: block; width: 40px; height: 1px;
  background: currentColor; margin: 0 auto 20px;
}

.lede { font-size: 1.15rem; color: var(--mute-dark); max-width: 36ch; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font: 500 14px/1 var(--sans);
  letter-spacing: .06em;
  text-decoration: none;
  padding: 16px 26px;
  border: 0;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn--accent { background: var(--signal); color: #fff; }
.btn--accent:hover { background: #fff; color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 500; text-decoration: none; margin-top: 32px;
}
.link-arrow .circle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.link-arrow:hover .circle { background: var(--signal); border-color: var(--signal); color: #fff; transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: background .35s, padding .35s;
}
.site-header.is-scrolled { background: rgba(10,10,11,.88); backdrop-filter: blur(10px); padding-block: 14px; }

/* Boxed wordmark, echoing Blackstone's framed logo */
.wordmark {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  text-decoration: none; color: #fff;
  border: 1px solid rgba(255,255,255,.7);
  padding: 6px 12px 7px; line-height: 1; white-space: nowrap;
}
.wordmark span { font-style: italic; margin-left: .28em; color: var(--mute-dark); }

.header-links { display: flex; gap: 36px; margin-left: auto; }
.header-links a { font-size: 14px; text-decoration: none; color: #fff; opacity: .8; }
.header-links a:hover { opacity: 1; }

.menu-toggle {
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px;
  position: relative; z-index: 60;
}
.menu-toggle span { display: block; height: 1.5px; background: #fff; transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Full-screen menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: var(--obsidian);
  display: flex; align-items: center;
  opacity: 0; transition: opacity .4s var(--ease);
}
.menu-overlay[hidden] { display: none; }
.menu-overlay.is-open { opacity: 1; }
.menu-inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 100px var(--gutter) 40px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: end;
}
.menu-primary { display: flex; flex-direction: column; }
.menu-primary a {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2; text-decoration: none; color: #fff;
  transition: color .2s, transform .3s var(--ease);
}
.menu-primary a:hover { color: var(--signal); transform: translateX(8px); }
.menu-aside { color: var(--mute-dark); }
.menu-aside a { color: #fff; }
.menu-def { margin-top: 32px; font-family: var(--serif); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px var(--gutter) 48px;
  overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,11,.2) 0%, rgba(10,10,11,.1) 40%, rgba(10,10,11,.85) 100%);
}
.hero-slides { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; min-height: 360px; }
.hero-slide {
  position: absolute; left: 0; right: 0; bottom: 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.25rem); color: #D9D9DE; margin: 28px 0 0; max-width: 44ch; }

.hero-foot {
  max-width: var(--max); width: 100%; margin: 48px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line-dark); padding-top: 24px;
}
.hero-dots { display: flex; gap: 12px; }
.hero-dots button { background: none; border: 0; padding: 10px 0; cursor: pointer; }
.hero-dots span { display: block; width: 48px; height: 2px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hero-dots span::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleX(0); transform-origin: left;
}
.hero-dots [aria-selected="true"] span::after { animation: fill 7s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; scroll-margin-top: 40px; }
.section--light { background: var(--bone); color: var(--ink); }
.section--dark { background: var(--obsidian); }
.section--graphite { background: var(--graphite); }

.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--center { text-align: center; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.sub { font-family: var(--sans); font-size: 22px; font-weight: 400; margin-bottom: 20px; }
.about-copy p { font-size: 1.15rem; color: #2B2B30; margin: 0; }
.about-def { border-left: 1px solid var(--line-light); padding-left: clamp(24px, 4vw, 56px); }
.def-word { font-family: var(--serif); font-weight: 300; font-size: clamp(3.5rem, 7vw, 6rem); line-height: 1; margin: 0; }
.def-pos { font-family: var(--serif); font-style: italic; color: var(--mute-light); margin: 12px 0 4px; }
.def-text { font-size: 1.25rem; margin: 0; }
.about-def hr { border: 0; border-top: 1px solid var(--line-light); margin: 32px 0; }
.def-note { color: var(--mute-light); margin: 0; font-size: .95rem; }

/* Offerings */
.offerings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); }
.offering {
  padding: clamp(32px, 4vw, 56px) clamp(0px, 3vw, 48px) clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}
.offering:nth-child(even) { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--line-dark); }
.offering::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: var(--signal); transition: width .6s var(--ease);
}
.offering:nth-child(even)::before { left: clamp(24px, 3vw, 48px); }
.offering:hover::before { width: 80px; }
.offering-num { font-size: 13px; letter-spacing: .12em; color: var(--signal); }
.offering h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.15; margin: 16px 0 16px; }
.offering .plus { color: var(--mute-dark); }
.offering p { color: var(--mute-dark); margin: 0; max-width: 46ch; }

/* Partners logo wall */
.logo-wall {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light);
}
.logo-wall li {
  aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center;
  border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  padding: 24px; filter: grayscale(1); opacity: .75;
  transition: opacity .3s, background .3s;
}
.logo-wall li:hover { opacity: 1; background: #fff; }
.lw { color: var(--ink); line-height: 1.1; }
.lw small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; color: var(--mute-light); }
.lw--ebony { font-family: var(--sans); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: .28em; }
.lw--goodwill { font-family: var(--sans); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.lw--emory { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); }
.lw--outlier { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.lw--dunamis { font-family: var(--sans); font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.3rem); letter-spacing: .2em; text-transform: uppercase; }
.lw--foxx { font-family: var(--sans); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.lw--98f { font-family: var(--sans); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -.02em; }
.lw--98f em { font-family: var(--serif); font-weight: 400; margin-left: .08em; }
.logo-wall .lw-cta { filter: none; opacity: 1; }
.lw-cta a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--mute-light); font-size: .95rem; }
.lw-cta .circle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.lw-cta:hover a { color: var(--ink); }
.lw-cta:hover .circle { background: var(--signal); border-color: var(--signal); color: #fff; }

/* Cohort / team */
.cohort-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.cohort-intro .section-head { margin: 0; }
.cohort-intro .lede { margin: 0; }
.cohort-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.entity-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.entity-list li {
  display: flex; align-items: baseline; gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line-dark);
  position: relative;
}
.entity-list li::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--signal); transition: width .6s var(--ease);
}
.entity-list li:hover::before { width: 100%; }
.entity-link { display: flex; align-items: baseline; gap: clamp(20px, 3vw, 40px); width: 100%; text-decoration: none; }
.entity-link .circle {
  margin-left: auto; align-self: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid currentColor; display: grid; place-items: center; flex-shrink: 0;
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.entity-link:hover .circle { background: var(--signal); border-color: var(--signal); transform: translateX(4px); }
.entity-link:hover .entity-name { color: #fff; }
.entity-num { font-size: 13px; letter-spacing: .12em; color: var(--signal); }
.entity-name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.1; }
.portrait {
  aspect-ratio: 4 / 5; background: linear-gradient(160deg, #22232A, #0E0E11);
  display: grid; place-items: center; margin-bottom: 20px; position: relative; overflow: hidden;
}
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  filter: grayscale(1) contrast(1.05);
  transition: transform .8s var(--ease);
}
.member:hover .portrait img { transform: scale(1.03); }
.portrait span { font-family: var(--serif); font-weight: 300; font-size: 3rem; color: #3A3B42; }
.portrait::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--signal); transition: width .5s var(--ease);
}
.member:hover .portrait::after { width: 100%; }
.member h3 { font-size: 1.5rem; }
.role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin: 8px 0 10px; }
.bio { color: var(--mute-dark); font-size: .95rem; margin: 0; }

/* Contact / intake */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.contact-grid .section-head { margin: 0; }
.contact-grid .lede { margin-top: 24px; }
.link-arrow--light { color: #fff; }
.intake { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.intake label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-dark); }
.intake input, .intake select, .intake textarea {
  font: 400 1rem/1.4 var(--sans); color: #fff;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark);
  padding: 10px 0; border-radius: 0; outline: none; width: 100%;
  transition: border-color .2s;
  text-transform: none; letter-spacing: 0;
}
.intake select option { background: var(--graphite); }
.intake input:focus, .intake select:focus, .intake textarea:focus { border-color: var(--signal); }
.intake .is-invalid { border-color: var(--signal); }
.intake textarea { resize: vertical; }
.intake .btn { justify-self: start; margin-top: 8px; }
.form-status { margin: 0; min-height: 1.5em; color: var(--mute-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--obsidian); border-top: 1px solid var(--line-dark); padding: 88px 0 40px; }
.footer-defs { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer-defs dl { margin: 0; }
.footer-defs dt { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.footer-defs dd { margin: 8px 0 0; color: var(--mute-dark); font-family: var(--serif); font-style: italic; font-size: 1.1rem; max-width: 52ch; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0; align-items: start; }
.footer-cols .wordmark { justify-self: start; }
.footer-cols h2 { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-cols div a { display: block; text-decoration: none; color: var(--mute-dark); margin-bottom: 8px; }
.footer-cols div a:hover { color: #fff; }
.legal { color: #5E5E66; font-size: 13px; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .header-links { display: none; }
  .about-grid, .contact-grid, .cohort-intro { grid-template-columns: 1fr; }
  .about-def { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); padding-top: 40px; }
  .cohort-grid { grid-template-columns: 1fr; }
  .cohort-grid .member { max-width: 360px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-defs { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .menu-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .offerings { grid-template-columns: 1fr; }
  .offering, .offering:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .offering:nth-child(even)::before { left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .hero-slides { min-height: 400px; }
  .hero-foot { flex-direction: column-reverse; align-items: flex-start; }
  .logo-wall li { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide, .menu-overlay { transition: none; }
  .hero-dots [aria-selected="true"] span::after { animation: none; transform: scaleX(1); }
}

/* =========================================================
   Kairos Media page
   ========================================================= */
.media-hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
  padding: 140px var(--gutter) clamp(48px, 8vw, 96px);
}
.media-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  object-fit: cover; object-position: 62% 15%;
  animation: slow-zoom 20s var(--ease) forwards;
}
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.media-hero .hero-shade { background: linear-gradient(180deg, rgba(10,10,11,.35) 0%, rgba(10,10,11,0) 35%, rgba(10,10,11,.88) 100%); }
.media-hero-copy { max-width: var(--max); width: 100%; margin: 0 auto; }
.back-link { display: table; font-size: 14px; text-decoration: none; opacity: .8; margin-bottom: 40px; }
.back-link:hover { opacity: 1; color: var(--signal); }

.media-intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #2B2B30; margin: 0; align-self: end; }

.media-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.media-head .lede { margin: 0; }

.stills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.still { margin: 0; overflow: hidden; background: #111; }
.still--full { grid-column: 1 / -1; }
.still button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.still img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 1s var(--ease), opacity .4s;
}
.still--full img { aspect-ratio: 2.38 / 1; }
.still:hover img { transform: scale(1.03); }
.still button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.media-cta { text-align: center; }
.media-cta h2 { margin-bottom: 40px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,5,6,.96);
  display: grid; place-items: center; padding: 64px clamp(16px, 6vw, 96px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lightbox button:hover { background: var(--signal); border-color: var(--signal); }
.lb-close { top: 20px; right: 20px; font-size: 26px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .stills { grid-template-columns: 1fr; }
  .still--full img, .still img { aspect-ratio: 16 / 10; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .media-hero-img { animation: none; }
}

/* =========================================================
   Endo Security page
   ========================================================= */
.sec-hero { background: var(--obsidian); }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-map.is-ready { opacity: 1; }
.sec-hero .hero-shade { background: linear-gradient(90deg, rgba(10,10,11,.85) 0%, rgba(10,10,11,.35) 45%, rgba(10,10,11,0) 70%), linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,0) 25%, rgba(10,10,11,0) 70%, rgba(10,10,11,.9) 100%); }
.map-credit { position: absolute; right: var(--gutter); bottom: 16px; margin: 0; font-size: 11px; color: #5E5E66; }
@media (max-width: 900px) { .sec-hero .hero-shade { background: linear-gradient(180deg, rgba(10,10,11,.4) 0%, rgba(10,10,11,.1) 35%, rgba(10,10,11,.92) 80%); } }
.sec-credit { margin: 24px 0 0; font-size: 13px; color: var(--mute-dark); letter-spacing: .02em; }

/* Chapter: heading left, prose right */
.sec-chapter { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.sec-prose p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; margin: 0 0 1.1em; max-width: 44ch; }
.section--light .sec-prose p { color: #2B2B30; }
.section--dark .sec-prose p, .section--graphite .sec-prose p { color: #C9C9CF; }
.sec-prose .sec-emphasis {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.35;
  margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid var(--line-light);
}
.sec-prose .sec-emphasis:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.section--light .sec-prose .sec-emphasis { color: var(--ink); }
.section--dark .sec-prose .sec-emphasis, .section--graphite .sec-prose .sec-emphasis { color: #fff; border-color: var(--line-dark); }
.sec-prose .sec-funding { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.6; margin: 28px 0 0; color: #6B6B72; }
.section--light .sec-prose .sec-funding { color: #6B6B72; }

/* Uses list */
.sec-uses { margin-top: clamp(64px, 9vw, 120px); padding-top: 40px; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 8vw, 120px); }
.sec-uses .eyebrow { color: var(--mute-light); }
.sec-uses ul { list-style: none; margin: 0; padding: 0; }
.sec-uses li { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; }
.sec-uses-note { grid-column: 2; color: var(--mute-light); margin: 0; max-width: 44ch; }

/* ENDO World zones */
.zones { list-style: none; margin: clamp(64px, 9vw, 120px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.zone { padding: 36px 24px 0 0; }
.zone + .zone { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.zone-dot { display: block; width: 12px; height: 12px; border-radius: 50%; margin-bottom: 20px; }
.zone--hostile .zone-dot { background: #FF3B3B; box-shadow: 0 0 24px #FF3B3B; }
.zone--moderate .zone-dot { background: #FFB800; box-shadow: 0 0 24px #FFB800; }
.zone--supportive .zone-dot { background: #00E5FF; box-shadow: 0 0 24px #00E5FF; }
.zone h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.zone p { color: var(--mute-dark); margin: 0; }

/* Place layer / body layer */
.layers { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); }
.layer { padding: clamp(28px, 4vw, 56px); position: relative; }
.layer--place { border-right: 1px solid var(--line-dark); background: rgba(255,255,255,.02); }
.layer--place::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--signal); }
.layer--body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.5px);
  background-size: 22px 22px; opacity: .6;
}
.layer-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); margin: 0 0 16px; }
.layer--body .layer-label { color: var(--mute-dark); }
.layer h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 16px; position: relative; }
.layer p:not(.layer-label) { color: #C9C9CF; margin: 0; max-width: 34ch; position: relative; }
.layers-note { text-align: center; font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin: 48px auto 0; max-width: 32ch; }

/* Close */
.sec-close { text-align: center; padding-block: clamp(120px, 16vw, 220px); }
.sec-close p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.15; margin: 0 auto; max-width: 22ch; text-wrap: balance; }
.sec-close em { color: var(--signal); }

@media (max-width: 960px) {
  .sec-chapter, .sec-uses { grid-template-columns: 1fr; }
  .sec-uses-note { grid-column: auto; }
}
@media (max-width: 640px) {
  .zones { grid-template-columns: 1fr; }
  .zone, .zone + .zone { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .layers { grid-template-columns: 1fr; }
  .layer--place { border-right: 0; border-bottom: 1px solid var(--line-dark); }
}

/* T.A.W. in use — animated stage */
.use-stage { margin: clamp(64px, 9vw, 112px) 0 0; background: var(--obsidian); color: #fff; overflow: hidden; }
.use-svg { display: block; width: 100%; height: auto; }
.use-scene { opacity: 0; transition: opacity .7s var(--ease); }
.use-scene.is-active { opacity: 1; }
.use-svg .ln { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1.2; }
.use-svg .ln--dim { stroke: rgba(255,255,255,.18); }
.use-svg .edge { stroke: var(--signal); stroke-width: 2; filter: drop-shadow(0 0 6px var(--signal)); }
.use-svg .pulse { fill: none; stroke: var(--signal); stroke-width: 1.5; }
.use-svg .door { fill: #16171B; stroke: rgba(255,255,255,.5); stroke-width: 1.2; }
.use-svg .phone { fill: #1C1D22; stroke: rgba(255,255,255,.7); stroke-width: 1.5; }
.use-svg .chip rect { fill: var(--signal); }
.use-svg .chip text { fill: #fff; font: 600 13px var(--sans); letter-spacing: .16em; text-anchor: middle; }
.use-svg .aisle { fill: rgba(255,255,255,.025); stroke: none; }
.use-svg .rack { fill: #141518; stroke: rgba(255,255,255,.22); stroke-width: 1; }
.use-svg .tile { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.25); stroke-width: .6; transition: fill .35s, stroke .35s; }
.use-svg .tile.is-lit { fill: url(#tapeSheen); stroke: #fff; }
.use-svg .count { fill: var(--mute-dark); font: 500 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; }

.use-captions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.use-cap {
  background: none; border: 0; color: var(--mute-dark); text-align: left; cursor: pointer;
  font: 400 15px/1.4 var(--sans); padding: 20px clamp(16px, 2.4vw, 32px) 24px; position: relative;
  transition: color .3s;
}
.use-cap + .use-cap { border-left: 1px solid var(--line-dark); }
.use-cap.is-active, .use-cap:hover { color: #fff; }
.use-num { color: var(--signal); font-size: 12px; letter-spacing: .12em; margin-right: 8px; }
.use-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.use-bar i { display: block; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }

@media (max-width: 640px) {
  .use-captions { grid-template-columns: 1fr; }
  .use-cap + .use-cap { border-left: 0; border-top: 1px solid var(--line-dark); }
}
.use-svg .win-over { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; }

/* ENDO World — first-person walk with watch alerts */
.walk-stage {
  position: relative; margin: clamp(48px, 7vw, 88px) 0 0; aspect-ratio: 16 / 9;
  background: #0B0B0D; border: 1px solid var(--line-dark); overflow: hidden;
}
.walk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.walk-hud { position: absolute; left: clamp(16px, 3vw, 32px); top: clamp(16px, 3vw, 28px); }
.walk-place { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.walk-dist { margin: 4px 0 0; font-size: 13px; color: var(--mute-dark); }
.walk-credit { position: absolute; left: clamp(16px, 3vw, 32px); bottom: 10px; margin: 0; font-size: 11px; color: #5E5E66; }

.watch { --z: 255, 59, 59; position: absolute; right: clamp(16px, 4vw, 56px); top: 50%; transform: translateY(-50%); }
.watch[data-zone="moderate"] { --z: 255, 184, 0; }
.watch[data-zone="supportive"] { --z: 0, 229, 255; }
.watch-body {
  position: relative; width: clamp(150px, 17vw, 200px); aspect-ratio: 4 / 4.9;
  background: linear-gradient(145deg, #2A2B30, #111214); border-radius: 26%/22%;
  padding: 7%; box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.watch-body::before, .watch-body::after {
  content: ""; position: absolute; left: 18%; right: 18%; height: 40%; z-index: -1;
  background: #1A1B1F; border-radius: 10px;
}
.watch-body::before { bottom: 90%; }
.watch-body::after { top: 90%; }
.watch-crown { position: absolute; right: -5px; top: 26%; width: 7px; height: 16%; background: #3A3B40; border-radius: 3px; }
.watch-screen {
  height: 100%; background: #000; border-radius: 22%/18%; padding: 10% 9%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  box-shadow: 0 0 0 1px rgba(var(--z), .0) inset; transition: box-shadow .4s;
}
.watch-time { margin: 0; align-self: flex-end; font-size: 11px; font-weight: 600; color: rgb(var(--z)); transition: color .4s; }
.watch-ring { width: 60%; aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.watch-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(rgb(var(--z)) 0 72%, rgba(var(--z), .18) 72% 100%);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 60%); mask: radial-gradient(circle, transparent 57%, #000 60%);
}
.watch-zone { position: relative; font-size: 10px; letter-spacing: -.01em; font-weight: 600; color: #fff; }
.watch-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; margin: 0; text-align: center; }
.watch-metrics dt { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: #8A8A92; }
.watch-metrics dd { margin: 0; font-size: 13px; font-weight: 600; color: #fff; }
.watch-metrics small { font-size: 8px; font-weight: 500; margin-left: 1px; }
.watch-msg { margin: 0; font-size: 9.5px; line-height: 1.3; text-align: center; color: rgb(var(--z)); transition: color .4s; }
.watch.is-alert .watch-body { animation: haptic .5s var(--ease); }
.watch.is-alert .watch-screen { animation: alert-glow 1.6s var(--ease); }
@keyframes haptic {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-3px) rotate(-1deg); } 30% { transform: translateX(3px) rotate(1deg); }
  45% { transform: translateX(-2px); } 60% { transform: translateX(2px); }
}
@keyframes alert-glow {
  0% { box-shadow: 0 0 0 2px rgba(var(--z), .9) inset, 0 0 40px rgba(var(--z), .6); }
  100% { box-shadow: 0 0 0 1px rgba(var(--z), 0) inset, 0 0 0 rgba(var(--z), 0); }
}

@media (max-width: 640px) {
  .walk-stage { aspect-ratio: 4 / 5; }
  .watch { top: auto; bottom: 36px; transform: none; right: 16px; }
  .watch-body { width: 128px; }
  .watch-metrics dd { font-size: 11px; }
  .watch-msg { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .watch.is-alert .watch-body, .watch.is-alert .watch-screen { animation: none; }
}
@media (max-width: 640px) { .walk-credit { top: 64px; bottom: auto; left: 16px; right: 16px; } }

/* ENDO World — GPS navigation panel (left) */
.nav { --z: 255, 59, 59; position: absolute; left: clamp(12px, 2.4vw, 24px); top: clamp(12px, 2.4vw, 24px); width: min(38%, 340px); font-family: var(--sans); }
.nav[data-zone="moderate"] { --z: 255, 184, 0; }
.nav[data-zone="supportive"] { --z: 0, 229, 255; }
.nav-banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: #0F7B4E; color: #fff; border-radius: 14px 14px 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.nav-arrow { flex: none; width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.nav-dist { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.05; }
.nav-street { margin: 2px 0 0; font-size: 15px; font-weight: 500; line-height: 1.25; }
.nav-street::before { content: attr(data-verb) " "; font-weight: 400; opacity: .85; }
.nav-then {
  display: flex; align-items: center; gap: 6px; padding: 8px 18px;
  background: #0A5C3A; color: #D8F3E6; font-size: 13px; border-radius: 0 0 14px 14px;
}
.nav-then[hidden] { display: none; }
.nav-then-arrow { font-size: 16px; line-height: 1; }
.nav.is-new .nav-banner { animation: nav-in .5s var(--ease); }
@keyframes nav-in { from { transform: translateY(-6px); opacity: .6; } to { transform: none; opacity: 1; } }
.nav-advice {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 14px;
  background: rgba(16,17,21,.88); border: 1px solid rgba(var(--z), .5); border-radius: 12px;
  color: #E6E6EA; font-size: 12.5px; line-height: 1.4; backdrop-filter: blur(6px);
  transition: border-color .4s;
}
.nav-advice-dot { flex: none; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: rgb(var(--z)); box-shadow: 0 0 10px rgb(var(--z)); transition: background .4s, box-shadow .4s; }
.nav-eta {
  position: absolute; left: clamp(12px, 2.4vw, 24px); bottom: 30px; width: min(38%, 340px);
  padding: 12px 18px; background: rgba(16,17,21,.92); border: 1px solid var(--line-dark); border-radius: 14px;
  backdrop-filter: blur(6px);
}
.nav-eta p { margin: 0; font-size: 13px; color: var(--mute-dark); }
.nav-eta strong { font-size: 20px; font-weight: 600; color: #3DDC97; margin-right: 6px; }
.nav-eta-sub { margin-top: 2px !important; font-size: 11px !important; letter-spacing: .06em; }
.walk-credit { left: auto; right: clamp(16px, 3vw, 32px); }

@media (max-width: 640px) {
  .nav { left: 12px; right: 12px; top: 12px; width: auto; }
  .nav-banner { padding: 10px 14px; }
  .nav-arrow { width: 34px; height: 34px; }
  .nav-dist { font-size: 20px; }
  .nav-street { font-size: 13px; }
  .nav-advice { font-size: 11.5px; }
  .nav-eta { left: 12px; bottom: 30px; width: calc(100% - 170px); padding: 10px 12px; }
  .nav-eta strong { font-size: 16px; }
  .walk-credit { top: auto; bottom: 8px; left: 12px; right: 12px; font-size: 10px; }
}
@media (max-width: 640px) {
  .walk-stage { aspect-ratio: 9 / 16; }
  .nav-eta-sub { display: none; }
}

/* Identity & permission scene */
.consent-stage { position: relative; margin: clamp(64px, 9vw, 112px) 0 0; background: #F4F2EC; overflow: hidden; }
.consent-svg { display: block; width: 100%; height: auto; }
.consent-replay {
  position: absolute; right: 14px; top: 14px; padding: 7px 14px;
  font: 500 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #6B6B72;
  background: rgba(255,255,255,.75); border: 1px solid #DDD8D0; border-radius: 20px; cursor: pointer;
}
.consent-replay:hover { color: #2B2B30; }
.consent-replay[hidden] { display: none; }

/* Tape layer explainer */
.layers-stage { margin: clamp(56px, 8vw, 96px) 0 0; background: #F4F2EC; display: grid; grid-template-columns: 1fr 300px; align-items: center; }
.layers-svg { display: block; width: 100%; height: auto; }
.layers-steps { list-style: none; margin: 0; padding: 24px 28px 24px 0; }
.layers-steps li {
  padding: 16px 0 16px 18px; border-left: 2px solid #DDD8D0; color: #9A958D;
  font-size: .95rem; line-height: 1.45; transition: color .4s, border-color .4s;
}
.layers-steps li span { display: block; font-size: 11px; letter-spacing: .14em; color: inherit; margin-bottom: 4px; }
.layers-steps li.is-active { color: #2B2B30; border-color: #2B2B30; }
.uses-line { margin: 28px 0 0; text-align: center; font-size: 13px; letter-spacing: .08em; color: var(--mute-light); }

/* Working together: three use cases */
.tg-stage { margin: clamp(56px, 8vw, 96px) 0 0; background: #F4F2EC; border: 1px solid #E3DFD7; }
.tg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #E3DFD7; }
.tg-tab {
  position: relative; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 18px clamp(14px, 2vw, 28px); font: 500 15px/1.35 var(--sans); color: #9A958D; transition: color .3s;
}
.tg-tab + .tg-tab { border-left: 1px solid #E3DFD7; }
.tg-tab.is-active, .tg-tab:hover { color: #2B2B30; }
.tg-num { font-size: 12px; letter-spacing: .12em; margin-right: 8px; color: #B0AAA0; }
.tg-tab.is-active .tg-num { color: #2B2B30; }
.tg-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.tg-bar i { display: block; height: 100%; background: #2B2B30; transform: scaleX(0); transform-origin: left; }
.tg-body { display: grid; grid-template-columns: 1fr 320px; }
.tg-svg { display: block; width: 100%; height: auto; }
.tg-panel { border-left: 1px solid #E3DFD7; padding: 28px 26px; background: #F8F7F3; }
.tg-copy[hidden] { display: none; }
.tg-copy h3 { font-size: 1.6rem; line-height: 1.15; color: #2B2B30; margin: 0 0 6px; }
.tg-sub { margin: 0 0 22px; color: #8F8A82; font-size: .95rem; }
.tg-copy ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.tg-copy li {
  counter-increment: s; position: relative; padding: 12px 0 12px 34px; color: #A39E95; font-size: .93rem; line-height: 1.45;
  border-top: 1px solid #E6E2DA; transition: color .4s;
}
.tg-copy li::before {
  content: counter(s); position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #A39E95; border: 1px solid #D6D1C8;
  transition: background .3s, color .3s, border-color .3s;
}
.tg-copy li b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.tg-copy li.is-done { color: #6B6B72; }
.tg-copy li.is-active { color: #2B2B30; }
.tg-copy li.is-active::before { background: #2B2B30; border-color: #2B2B30; color: #fff; }
.tg-copy li.is-done::before { border-color: #8F8A82; color: #6B6B72; }

@media (max-width: 960px) {
  .layers-stage { grid-template-columns: 1fr; }
  .layers-steps { padding: 0 20px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .tg-body { grid-template-columns: 1fr; }
  .tg-panel { border-left: 0; border-top: 1px solid #E3DFD7; }
}
@media (max-width: 640px) {
  .layers-steps { grid-template-columns: 1fr; }
  .tg-tabs { grid-template-columns: 1fr; }
  .tg-tab + .tg-tab { border-left: 0; border-top: 1px solid #E3DFD7; }
}

/* Endo: one entity that opens to Security / World */
.entity-toggle { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.entity-toggle .circle { font-size: 20px; line-height: 1; transition: transform .35s var(--ease), background .25s, border-color .25s; }
.entity-toggle[aria-expanded="true"] .circle { transform: rotate(45deg); background: var(--signal); border-color: var(--signal); }
.entity-group { flex-direction: column; align-items: stretch !important; }
.entity-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-left: calc(clamp(20px, 3vw, 40px) + 22px); }
.entity-sub[hidden] { display: none; }
.entity-sub a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 18px 20px; text-decoration: none; color: #fff;
  border: 1px solid var(--line-dark); background: rgba(255,255,255,.02);
  transition: border-color .25s, background .25s;
  animation: sub-in .45s var(--ease) both;
}
.entity-sub a:nth-child(2) { animation-delay: .06s; }
@keyframes sub-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.entity-sub a:hover { border-color: var(--signal); background: rgba(255,91,34,.06); }
.entity-sub-name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.entity-sub-desc { grid-column: 1; font-size: 13px; color: var(--mute-dark); }
.entity-sub-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--signal); font-size: 18px; transition: transform .3s var(--ease); }
.entity-sub a:hover .entity-sub-arrow { transform: translateX(4px); }
@media (max-width: 640px) { .entity-sub { grid-template-columns: 1fr; padding-left: 0; } }

/* Endo page sub-navigation */
.endo-subnav {
  position: sticky; top: 62px; z-index: 30;
  background: rgba(10,10,11,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.endo-subnav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; height: 52px; }
.endo-subnav-home { font-family: var(--serif); font-size: 20px; text-decoration: none; color: #fff; }
.endo-subnav-links { display: flex; gap: clamp(16px, 3vw, 36px); }
.endo-subnav-links a { font-size: 13px; letter-spacing: .08em; text-decoration: none; color: var(--mute-dark); padding: 16px 0; border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; }
.endo-subnav-links a:hover { color: #fff; }
.endo-subnav-links a.is-active { color: #fff; border-color: var(--signal); }
.page-security .section { scroll-margin-top: 120px; }

/* Use cases section labels */
.uc-label {
  margin: clamp(56px, 8vw, 96px) 0 0; font-size: 12px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mute-light); display: flex; align-items: center; gap: 16px;
}
.uc-label::after { content: ""; flex: 1; height: 1px; background: var(--line-light); }
.uc-label + .use-stage, .uc-label + .tg-stage { margin-top: 20px; }

/* Chief Research Officer */
.cro { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line-light); }
.cro-photo { width: clamp(120px, 14vw, 168px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.cro .eyebrow { color: var(--mute-light); margin-bottom: 10px; }
.cro-name { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); margin: 0 0 12px; }
.cro-bio { margin: 0; max-width: 60ch; color: #2B2B30; font-size: 1.02rem; }
@media (max-width: 640px) { .cro { grid-template-columns: 1fr; } }

/* Endo description */
.hero-lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 20px; max-width: 18ch; }
.entity-desc { display: block; margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--mute-dark); letter-spacing: 0; }

/* T.A.W. film */
.film-stage { margin: 20px 0 0; }
.film-frame { position: relative; background: #0A0A0B; overflow: hidden; }
.film-svg { display: block; width: 100%; height: auto; }
.film-replay {
  position: absolute; right: 14px; bottom: 14px; padding: 8px 16px;
  font: 500 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 20px; cursor: pointer; backdrop-filter: blur(6px);
}
.film-replay:hover { background: rgba(255,255,255,.22); }
.film-replay[hidden] { display: none; }
.film-caption { display: flex; align-items: baseline; gap: 16px; min-height: 64px; padding: 18px 4px 0; }
.film-vo-label { flex: none; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute-light); }
.film-vo { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); color: #2B2B30; opacity: 0; transform: translateY(4px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.film-vo.is-on { opacity: 1; transform: none; }
.cro + .uc-label { margin-top: clamp(40px, 6vw, 72px); }

/* Hero: condensed "Everywhere a hologram protects today" — plays after the globe loop */
.hero-film {
  position: absolute; right: calc(var(--gutter) + 2vw); top: 50%; transform: translateY(-52%); z-index: -1;
  width: min(640px, 48vw); pointer-events: none; opacity: 0; transition: opacity 1s var(--ease);
}
.hero-film.is-on { opacity: 1; }
.hero-film svg { display: block; width: 100%; height: auto; }
.hero-film-label {
  margin: 0 0 4px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mute-dark); display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hero-film-label::before, .hero-film-label::after { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.3); }
.hero-map { transition: opacity 1s var(--ease); }
@media (max-width: 900px) {
  .hero-film { left: var(--gutter); right: var(--gutter); top: 80px; transform: none; width: auto; max-width: 520px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .hero-film { transition: none; } }

/* Endo Security mission heading */
#endo-security .sec-chapter h2 { max-width: 16ch; }

/* ENDO World description */
.endo-desc { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line-dark); }
.endo-desc .eyebrow { color: var(--mute-dark); }
.endo-desc-lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.3; color: #fff; margin: 0 0 32px; max-width: 30ch; }
.endo-desc-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.endo-desc-body p { margin: 0; color: #C9C9CF; font-size: 1.02rem; line-height: 1.7; }
@media (max-width: 760px) { .endo-desc-body { grid-template-columns: 1fr; } }

/* Home header background: looping sketch studies, full width at 80%; the header copy sits over it */
.hero-anim {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  opacity: .8;
  animation: hero-anim-in 1.6s var(--ease) both;
}
@keyframes hero-anim-in { from { opacity: 0; } to { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .hero-anim { animation: none; } }

/* Home header background: images under a dark gradient */
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--obsidian); }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  filter: grayscale(1) contrast(1.05);
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.8s var(--ease), transform 9s linear;
}
.hero-bg img.is-active { opacity: 1; transform: scale(1); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,.94) 0%, rgba(10,10,11,.78) 40%, rgba(10,10,11,.5) 100%),
    linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.1) 35%, rgba(10,10,11,.2) 65%, rgba(10,10,11,.95) 100%);
}
@media (max-width: 900px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(10,10,11,.6) 0%, rgba(10,10,11,.72) 45%, rgba(10,10,11,.95) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-bg img { transition: none; transform: none; } }

/* Kairos Media — project credits */
.media-credits { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 24px 0 0; }
.media-credits div { border-left: 1px solid var(--line-dark); padding-left: 14px; }
.media-credits dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8A8A92; margin: 0 0 4px; }
.media-credits dd { margin: 0; font-size: 1rem; color: #fff; }

/* Kairos Media — type-led hero, project cards */
.media-hero--type { min-height: 86svh; background: var(--obsidian); }
.media-hero--type h1 { max-width: 18ch; }
.media-hero-tags { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 10px 28px; }
.media-hero-tags li { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8A8A92; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.work-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.work-cover { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #E6E3DC; margin-bottom: 20px; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card:hover .work-cover img { transform: scale(1.04); }
.work-card--open .work-cover { display: grid; place-items: center; border: 1px solid var(--line-light); background: transparent; transition: background .3s; }
.work-card--open .work-cover span { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.8rem); }
.work-card--open:hover .work-cover { background: var(--ink); color: #fff; }
.work-meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6B6B72; }
.work-title { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; margin: 8px 0 6px; }
.work-sub { color: #4A4A50; font-size: .95rem; }
.work-card:hover .work-title { color: var(--signal); }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } .work-cover { aspect-ratio: 4 / 3; } }
.work-grid--two { grid-template-columns: 2fr 1fr; }
.work-grid--two .work-cover { aspect-ratio: auto; height: clamp(320px, 38vw, 520px); }
@media (max-width: 600px) { .work-grid--two { grid-template-columns: 1fr; } .work-grid--two .work-cover { height: auto; aspect-ratio: 4 / 3; } }
.media-chapter { margin: clamp(64px, 8vw, 112px) 0 clamp(28px, 3vw, 40px); padding-top: 32px; border-top: 1px solid var(--line-dark); }
.media-chapter h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 16px 0 10px; }
.media-chapter p:last-child { color: var(--mute-dark); margin: 0; }
.work-grid--feature { grid-template-columns: 2fr 1fr; }
.work-grid--feature .work-cover { aspect-ratio: auto; height: clamp(320px, 38vw, 520px); }
.work-grid--feature .work-card--open { grid-column: 1 / -1; }
.work-grid--feature .work-card--open .work-cover { height: 120px; }
.work-card--entity .work-cover { background: var(--ink); color: #fff; display: flex; align-items: flex-end; padding: clamp(20px, 2.4vw, 32px); }
.ma-mark { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.work-card--entity h3.work-title, .work-card--entity p.work-sub { margin-top: 8px; margin-bottom: 6px; font-weight: 400; }
.work-card--entity p.work-sub { margin: 0 0 14px; }
.work-link { color: var(--ink); font-size: .95rem; text-decoration: none; border-bottom: 1px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
.work-link:hover { color: var(--signal); }
@media (max-width: 600px) { .work-grid--feature { grid-template-columns: 1fr; } .work-grid--feature .work-cover { height: auto; aspect-ratio: 4 / 3; } .work-grid--feature .work-card--open .work-cover { aspect-ratio: auto; height: 100px; } }
.sec-funding-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.sec-funding-row .sec-funding { margin: 0; }
.sec-deck { flex: none; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid var(--ink); padding: 10px 16px; transition: background .2s, color .2s; }
.sec-deck:hover { background: var(--ink); color: #fff; }

/* =========================================================
   Endo Security — Investors page
   ========================================================= */
.inv-hero { padding: clamp(150px, 18vw, 220px) 0 clamp(72px, 9vw, 120px); background: var(--obsidian); border-bottom: 1px solid var(--line-dark); }
.inv-hero h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.06; max-width: 22ch; margin-top: 24px; }
.inv-hero-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-dark); }
.inv-meta { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-dark); }
.inv-hero-note { color: var(--mute-dark); max-width: 62ch; margin: 32px 0 0; font-size: 1.05rem; line-height: 1.7; }

.inv-head { max-width: 900px; }
.inv-head h2 { margin-top: 20px; }
.inv-lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; max-width: 60ch; margin: 24px 0 0; color: var(--mute-light); }
.section--dark .inv-lede, .section--graphite .inv-lede { color: var(--mute-dark); }
.inv-subhead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; margin: clamp(64px, 8vw, 104px) 0 28px; max-width: 32ch; }
.inv-two .inv-subhead { margin-top: 0; }

.inv-cards, .inv-flow, .inv-steps, .inv-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.inv-cards--4 { grid-template-columns: repeat(4, 1fr); }
.inv-cards--3, .inv-flow, .inv-steps, .inv-stats { grid-template-columns: repeat(3, 1fr); }
.inv-cards li, .inv-flow li, .inv-steps li { padding: 28px clamp(16px, 2vw, 28px) 32px 0; border-top: 1px solid var(--line-light); }
.inv-cards li + li, .inv-flow li + li, .inv-steps li + li { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line-light); }
.section--dark .inv-cards li, .section--dark .inv-flow li, .section--dark .inv-steps li { border-color: var(--line-dark); }
.inv-num, .inv-flow-role { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.inv-cards h3, .inv-steps h3, .inv-flow h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; margin: 14px 0 10px; }
.inv-cards p, .inv-flow p, .inv-steps p { margin: 0; line-height: 1.6; color: var(--mute-light); }
.section--dark .inv-cards p, .section--dark .inv-steps p { color: var(--mute-dark); }

.inv-callout { font-family: var(--serif); font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.35; max-width: 40ch; margin: clamp(40px, 5vw, 64px) 0 0; padding-left: 20px; border-left: 2px solid var(--signal); }
.inv-source { font-size: 13px; line-height: 1.6; color: var(--mute-light); max-width: 90ch; margin: 28px 0 0; }
.section--dark .inv-source { color: var(--mute-dark); }

.inv-stats li { padding: 28px clamp(16px, 2vw, 32px) 0 0; border-top: 1px solid var(--line-dark); }
.section--light .inv-stats li { border-color: var(--line-light); }
.inv-stats li + li { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-dark); }
.section--light .inv-stats li + li { border-left-color: var(--line-light); }
.inv-stat { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -0.02em; }
.inv-stat-label { display: block; margin-top: 16px; line-height: 1.5; color: var(--mute-dark); max-width: 30ch; }
.section--light .inv-stat-label { color: var(--mute-light); }
.inv-stats--market .inv-stat-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.inv-stat-sub { display: block; margin-top: 10px; line-height: 1.6; color: var(--mute-light); max-width: 32ch; }

.inv-statement { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1.08; max-width: 20ch; margin: 28px 0 0; }
.inv-statement em { color: var(--signal); }

.inv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line-light); }
.section--dark .inv-table-wrap { border-color: var(--line-dark); }
.inv-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.inv-table th, .inv-table td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line-light); }
.section--dark .inv-table th, .section--dark .inv-table td { border-color: var(--line-dark); }
.inv-table thead th { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-light); }
.section--dark .inv-table thead th { color: var(--mute-dark); }
.inv-table tbody th { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; min-width: 150px; }
.inv-table td { color: var(--mute-light); }
.section--dark .inv-table td { color: #C9C9CF; }
.inv-table--compare thead th:nth-child(3), .inv-table--compare td:nth-child(3) { color: var(--ink); }
.inv-table--compare thead th:nth-child(3) { color: var(--signal); }
.inv-table--cost td:last-child { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.inv-table--wide { min-width: 820px; }
.inv-table--us tbody tr:first-child th, .inv-table--us tbody tr:first-child td { color: var(--ink); font-weight: 500; }
.inv-table--us tbody tr:first-child th { box-shadow: inset 2px 0 0 var(--signal); padding-left: 14px; }

.inv-layers { margin-top: 0; }
.inv-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.inv-two p { color: #C9C9CF; line-height: 1.7; max-width: 46ch; }
.inv-nos { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; color: #fff !important; margin: 0 0 16px; }

.inv-brings { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 6vw, 72px); }
.inv-brings > div { padding: 24px 0 0; border-top: 1px solid var(--line-dark); }
.inv-brings p:last-child { color: #C9C9CF; line-height: 1.6; margin: 12px 0 0; max-width: 44ch; }

.inv-team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.inv-team img { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); display: block; margin-bottom: 24px; }
.inv-team h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 10px 0 12px; }
.inv-team p:last-child { color: var(--mute-light); line-height: 1.65; max-width: 44ch; margin: 0; }
.inv-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(56px, 7vw, 88px) 0 0; border-top: 1px solid var(--line-light); }
.inv-facts div { padding: 24px 20px 0 0; }
.inv-facts div + div { padding-left: 20px; border-left: 1px solid var(--line-light); }
.inv-facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-light); }
.inv-facts dd { margin: 8px 0 0; font-family: var(--serif); font-size: 1.25rem; }

.inv-close .eyebrow--stack { margin-bottom: 28px; }
.inv-contact { font-family: var(--sans) !important; font-size: 15px !important; color: var(--mute-dark); margin-top: 32px !important; max-width: none !important; }
.inv-contact a { color: #fff; }
.inv-close-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.inv-close-actions .btn:not(.btn--accent) { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.inv-close-actions .btn:not(.btn--accent):hover { background: #fff; color: var(--ink); }

@media (max-width: 960px) {
  .inv-cards--4 { grid-template-columns: 1fr 1fr; }
  .inv-cards--4 li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .inv-cards--4, .inv-cards--3, .inv-flow, .inv-steps, .inv-stats, .inv-two, .inv-brings, .inv-team, .inv-facts { grid-template-columns: 1fr; }
  .inv-cards li + li, .inv-flow li + li, .inv-steps li + li, .inv-stats li + li, .inv-facts div + div { padding-left: 0; border-left: 0; }
  .inv-stats li { padding-bottom: 28px; }
  .inv-team img { max-width: 240px; }
}
.sec-close p.eyebrow { font-family: var(--sans); font-weight: 500; font-size: 12px; line-height: 1.4; letter-spacing: .18em; max-width: none; color: var(--mute-dark); }

/* =========================================================
   Banknote treatment (whole site)
   ========================================================= */
.has-banknote main > section { position: relative; isolation: isolate; }
/* Faded engraving: guilloché waves + herringbone hatching */
.has-banknote main > section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--note-guil-dark), var(--note-hatch-dark);
  background-size: 1200px auto, 24px 12px;
  background-position: 70% 0, 0 0;
  opacity: .085;
  -webkit-mask-image: radial-gradient(130% 95% at 72% 40%, #000 15%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.12) 100%);
          mask-image: radial-gradient(130% 95% at 72% 40%, #000 15%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.12) 100%);
}
.has-banknote main > section.section--light { background-color: #F1F2EE; }
.has-banknote main > section.section--light::before {
  background-image: var(--note-guil-light), var(--note-hatch-light);
  opacity: .2;
}
/* Microprint line at the top of every section */
.has-banknote main > section::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; z-index: -1; pointer-events: none;
  background: var(--note-micro-dark) repeat-x 0 50%;
  border-top: 1px solid rgba(157,179,214,.18);
  opacity: .75;
}
.has-banknote main > section.section--light::after { background-image: var(--note-micro-light); border-top-color: rgba(93,127,168,.25); }
.has-banknote main > section:first-child::after { display: none; }

/* Woven security ribbon, right side */
.note-ribbon {
  position: fixed; top: 0; bottom: 0; z-index: 30; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 6% at 30% 20%, rgba(150,175,255,.55), transparent 70%),
    radial-gradient(70% 5% at 70% 55%, rgba(120,150,250,.5), transparent 70%),
    radial-gradient(60% 7% at 40% 85%, rgba(160,180,255,.45), transparent 70%),
    linear-gradient(180deg, #2F4CC4, #3E5CD6 40%, #2C47BC 70%, #3B59D2);
  box-shadow: inset 1px 0 0 rgba(255,255,255,.35), inset -1px 0 0 rgba(0,0,30,.35), 0 0 0 1px rgba(0,0,0,.08);
}
.note-ribbon-weave {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(60deg, rgba(255,255,255,.13) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-60deg, rgba(0,0,40,.16) 0 1px, transparent 1px 4px);
}
.note-ribbon-motifs { position: absolute; top: 0; left: 50%; margin-left: -15px; will-change: transform, opacity; filter: blur(.5px); }
.note-ribbon-a { fill: #C9D5FF; }
.note-ribbon-b g { fill: rgba(205,217,255,.55); stroke: #EEF2FF; }
.note-ribbon-b rect { stroke: rgba(238,242,255,.9); stroke-width: 1; }
.note-ribbon-sheen {
  position: absolute; inset: 0; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent 0, rgba(255,255,255,.0) 40%, rgba(220,230,255,.45) 50%, rgba(255,255,255,0) 60%, transparent 100%) 0 0 / 100% 900px repeat-y;
}
@media (max-width: 720px) {
  .note-ribbon-motifs { transform-origin: 50% 0; scale: .5; }
}
