@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #10110f;
  --paper: #f5f0e5;
  --white: #ffffff;
  --red: #d94a31;
  --acid: #def35a;
  --muted: #5c5e56;
  --line: rgba(16, 17, 15, .14);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1240px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  transition: color .2s ease, opacity .2s ease;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

.skip {
  position: fixed;
  left: 16px;
  top: -70px;
  background: #fff;
  padding: 10px 14px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

/* Navigation */
.nav {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 240, 229, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font: 400 1.6rem var(--serif);
  letter-spacing: -.02em;
  text-decoration: none;
}

.navlinks {
  display: flex;
  gap: 24px;
  font-size: .84rem;
  font-weight: 500;
}

.navlinks a {
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}

.navlinks a:hover,
.navlinks a.current {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
}

.menu {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 9px 14px;
  font: 600 .78rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}

/* Typography */
.kicker {
  font: 700 .68rem var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .4rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.85rem, 5.6vw, 5.8rem);
  margin: .18em 0 .32em;
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  margin: .18em 0 .5em;
}

h3 {
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  margin: .25em 0 .4em;
  line-height: 1.15;
}

.lead {
  font-size: clamp(1.06rem, 1.45vw, 1.26rem);
  max-width: 780px;
  color: #3f4139;
  line-height: 1.6;
}

/* Buttons */
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--ink);
  padding: 12px 20px;
  text-decoration: none;
  background: transparent;
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .01em;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.btn:hover {
  background: rgba(16, 17, 15, .06);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.btn.primary:hover {
  background: #252722;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: clamp(52px, 7vw, 96px) clamp(24px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 em {
  color: var(--red);
  font-weight: 400;
  font-style: italic;
}

.companyline {
  font: 700 .68rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 22px;
  color: var(--muted);
}

.hero-media {
  position: relative;
  min-height: 620px;
  background: #10110f;
  overflow: hidden;
  touch-action: pan-y;
}

.hero-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .75s ease;
}

.hero-frame.active {
  opacity: 1;
  visibility: visible;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero-frame.bio img,
.hero-frame.ai img {
  object-position: center 18%;
}

.hero-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 35%, transparent 62%, rgba(0, 0, 0, .72) 100%);
}

.hero-frame figcaption {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 2;
  color: #fff;
  font: 500 .74rem var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-dots {
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 38px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.hero-dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 3px;
  background: rgba(255, 255, 255, .42);
  transition: background-color .25s ease;
}

.hero-dot.active::after {
  background: #fff;
}

/* Proof Bar */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.proof div {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.proof div:last-child {
  border-right: 0;
}

.proof strong {
  display: block;
  font: 400 2.25rem var(--serif);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.proof span {
  font-size: .78rem;
  color: var(--muted);
  display: block;
  line-height: 1.4;
}

/* Logos Marquee */
.logoshell {
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-top: 20px;
}

.logotitle {
  text-align: center;
  font: 700 .63rem var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 18px;
  margin: 0 0 8px;
}

.mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logos {
  display: flex;
  width: max-content;
  animation: flow 34s linear infinite;
}

.logos:hover {
  animation-play-state: paused;
}

.logo {
  width: 300px;
  height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  text-align: center;
  padding: 18px 24px;
  background: #fff;
}

.logo img {
  max-width: 155px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.logo small {
  display: block;
  font: 700 .54rem var(--mono);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes flow {
  to {
    transform: translateX(-1200px);
  }
}

/* Sections */
.section {
  padding: clamp(68px, 8.5vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}

.white {
  background: #fff;
}

.dark {
  background: var(--ink);
  color: var(--paper);
}

.sectionhead {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: end;
}

.sectionhead > p {
  color: var(--muted);
  margin: 0 0 .55em;
  font-size: 1.02rem;
}

.dark .sectionhead > p {
  color: #c7c8c3;
}

/* Journey Grid (5 Environments) */
.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.journey article {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.journey article:last-child {
  border-right: 0;
}

.journey span {
  display: block;
  font: 700 .64rem var(--mono);
  color: var(--red);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.journey p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* Principles Grid (5 Conditions) */
.principles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, .24);
}

.principles article {
  padding: 28px 20px;
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.principles article:last-child {
  border-right: 0;
}

.principles b {
  font: 700 .66rem var(--mono);
  color: var(--acid);
}

.principles span {
  display: block;
  font: 500 .62rem var(--mono);
  color: #a8aaa2;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}

.principles p {
  font-size: .9rem;
  color: #c9cac4;
  margin-bottom: 0;
}

/* Cards (3x2 Symmetrical Grid for 5 Cases + 1 Perspective) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16, 17, 15, .06);
  border-color: rgba(16, 17, 15, .32);
}

.card p {
  color: var(--muted);
  font-size: .95rem;
}

.card .link {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
}

.card .link:hover {
  color: var(--red);
}

.card .kicker {
  font-size: .62rem;
}

/* Stage Slider */
.stage {
  height: min(78vh, 740px);
  min-height: 580px;
  position: relative;
  overflow: hidden;
  background: #080908;
  color: #fff;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .18) 100%);
}

.slidecopy {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - 1240px) / 2));
  right: 24px;
  bottom: clamp(82px, 9vw, 118px);
  max-width: 760px;
}

.slidecopy .kicker {
  color: var(--acid);
}

.slidecopy p {
  color: #dedfd9;
  max-width: 620px;
  font-size: 1.04rem;
}

.stage-controls {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 26px;
  display: flex;
  gap: 8px;
}

.stage-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(16, 17, 15, .65);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color .2s ease, border-color .2s ease;
}

.stage-controls button:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #fff;
}

.stage-dots {
  position: absolute;
  z-index: 4;
  left: max(24px, calc((100vw - 1240px) / 2));
  bottom: 30px;
  display: flex;
  gap: 8px;
}

.stage-dot {
  width: 42px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.stage-dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 3px;
  background: rgba(255, 255, 255, .36);
}

.stage-dot.active::after {
  background: var(--acid);
}

/* Split & Quote Sections */
.split {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(36px, 7vw, 92px);
}

.bodycopy {
  font-size: 1.05rem;
}

.bodycopy h2:first-child {
  margin-top: 0;
}

.bigquestion {
  text-align: center;
  background: #fff;
}

.bigquestion blockquote {
  font: 400 clamp(2.1rem, 4.6vw, 4.4rem)/1.08 var(--serif);
  max-width: 1020px;
  margin: 24px auto 34px;
  padding: 0 12px;
  letter-spacing: -.025em;
}

/* Articles & Inner Pages */
.article-head {
  padding: clamp(56px, 8vw, 108px) 0 52px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  max-width: 1020px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.article {
  width: min(820px, calc(100% - 48px));
  margin: auto;
  padding: clamp(48px, 7vw, 76px) 0;
}

.article h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  margin-top: 1.65em;
  margin-bottom: .45em;
}

.article p,
.article li {
  font-size: 1.05rem;
  color: #242621;
}

.article ul {
  padding-left: 1.25rem;
}

.article li {
  margin-bottom: .55rem;
}

.notice {
  background: #edf2d3;
  border-left: 4px solid #869729;
  padding: 18px 20px;
  margin: 0 0 36px;
  font-size: .95rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 22px;
}

.metric b {
  display: block;
  font: 400 2.15rem var(--serif);
  margin-bottom: 4px;
}

.metric span {
  font-size: .84rem;
  color: var(--muted);
}

.quote {
  border-left: 4px solid var(--red);
  padding: 6px 0 6px 24px;
  font: italic 400 clamp(1.5rem, 2.7vw, 2.25rem)/1.22 var(--serif);
  margin: 36px 0;
  color: var(--ink);
}

/* Media Page */
.media-hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.media-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.media-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .35) 100%);
}

.media-copy {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 6vw, 78px);
  max-width: 860px;
}

.archive {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.archive time {
  font: 700 .7rem var(--mono);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: 4px;
}

.archive h3 {
  margin-top: 0;
}

.archive a {
  font-weight: 600;
  font-size: .9rem;
}

/* Profile & Data Tables */
.profile-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.profile-grid img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--line);
}

.data {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 36px;
}

.data td {
  padding: 15px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: .96rem;
}

.data tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.data td:first-child {
  width: 32%;
  color: var(--muted);
  font: 600 .74rem var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-top: 18px;
}

/* Terminal / Dossier Page */
.terminal {
  background: #10110f;
  color: #dce7d4;
}

.terminal .article p,
.terminal .article li {
  color: #dce7d4;
}

.terminal .data td {
  border-color: #354233;
  color: #dce7d4;
}

.terminal .data td:first-child {
  color: #9cb196;
}

.terminal a {
  color: var(--acid);
}

/* Footer & Error */
.footer {
  padding: 34px 0;
  font-size: .78rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  margin-right: 16px;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.error {
  text-align: center;
  padding: 14vh 1rem;
}

.error h1 {
  font-size: clamp(5rem, 15vw, 8rem);
  margin: 0;
}

/* Responsive Breakpoints (Tablet & Mobile) */
@media (max-width: 1024px) {
  .journey,
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
  .journey article,
  .principles article {
    border-bottom: 1px solid var(--line);
  }
  .principles article {
    border-bottom-color: rgba(255, 255, 255, .16);
  }
  .journey article:last-child,
  .principles article:last-child {
    grid-column: 1 / -1;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-copy {
    padding: 48px 24px 44px;
  }
  .hero-media {
    min-height: 460px;
    height: 62vw;
    max-height: 540px;
  }
  .sectionhead,
  .split,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .profile-grid img {
    max-height: 480px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: auto;
  }
  .proof {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof div:nth-child(1),
  .proof div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .proof div:nth-child(2) {
    border-right: 0;
  }
  .navlinks {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--paper);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(16, 17, 15, .12);
  }
  .navlinks a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .navlinks a:last-child {
    border-bottom: 0;
  }
  .navlinks.open {
    display: flex;
  }
  .menu {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 620px) {
  .wrap,
  .article {
    width: calc(100% - 32px);
  }
  .hero-copy {
    padding: 38px 16px 36px;
  }
  .hero-copy h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.25rem);
  }
  .article-head {
    padding: 42px 0 36px;
  }
  .article-head h1 {
    font-size: clamp(2.15rem, 9vw, 2.85rem);
  }
  h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }
  .bigquestion blockquote {
    font-size: clamp(1.75rem, 7.2vw, 2.35rem);
  }
  .hero-media {
    min-height: 360px;
    height: 82vw;
  }
  .btns {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .proof,
  .journey,
  .principles,
  .metrics {
    grid-template-columns: 1fr;
  }
  .proof div,
  .journey article,
  .principles article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 4px;
  }
  .proof div {
    padding: 20px 16px;
  }
  .principles article {
    border-bottom-color: rgba(255, 255, 255, .16);
  }
  .proof div:last-child,
  .journey article:last-child,
  .principles article:last-child {
    border-bottom: 0;
  }
  .logo {
    width: 220px;
    height: 108px;
  }
  .logo img {
    max-width: 130px;
    max-height: 48px;
  }
  @keyframes flow {
    to {
      transform: translateX(-880px);
    }
  }
  .stage {
    min-height: 520px;
    height: 74vh;
  }
  .slide:after {
    background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.88) 75%);
  }
  .slidecopy {
    left: 16px;
    right: 16px;
    bottom: 92px;
  }
  .slidecopy .btn {
    width: auto;
  }
  .stage-dots {
    left: 16px;
    bottom: 26px;
  }
  .stage-controls {
    right: 16px;
    bottom: 18px;
  }
  .stage-controls button {
    width: 42px;
    height: 42px;
  }
  .archive {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }
  /* Responsive Data Table on Phone */
  .data, .data tbody, .data tr, .data td {
    display: block;
    width: 100%;
  }
  .data tr {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .data tr:last-child {
    border-bottom: 1px solid var(--line);
  }
  .data td {
    border: 0 !important;
    padding: 2px 0;
  }
  .data td:first-child {
    width: 100%;
    padding-top: 0;
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .logos {
    animation: none;
  }
  .hero-frame,
  .slide,
  .btn,
  .card {
    transition: none;
  }
}
