:root {
  --ivory: #f4f1eb;
  --ivory-deep: #e9e1d4;
  --paper: #fbf8f1;
  --ink: #151311;
  --muted: #6e675d;
  --line: rgba(21, 19, 17, 0.16);
  --sage: #7d8a73;
  --gold: #b08a4d;
  --rust: #a95135;
  --shadow: 0 28px 70px rgba(39, 32, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 40px;
  background: linear-gradient(to bottom, rgba(244, 241, 235, 0.96), rgba(244, 241, 235, 0));
  transition: padding 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  background-color: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-name {
  font-weight: 650;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: rgba(21, 19, 17, 0.52);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.section-band {
  position: relative;
  padding: 108px 6vw;
}

.hero {
  display: grid;
  min-height: 94vh;
  align-items: center;
  overflow: hidden;
  padding-top: 150px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(244, 241, 235, 0.98) 0%, rgba(244, 241, 235, 0.88) 42%, rgba(244, 241, 235, 0.2) 72%),
    linear-gradient(180deg, rgba(244, 241, 235, 0) 70%, var(--ivory) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 28px;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.2vw, 66px);
  line-height: 1.02;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button.secondary {
  background: rgba(251, 248, 241, 0.42);
  color: var(--ink);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.metric {
  min-height: 220px;
  padding: 42px;
  background: var(--ivory);
}

.metric-value {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1;
}

.metric-label {
  display: block;
  max-width: 190px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.intro,
.leadership,
.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  align-items: start;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

.intro p,
.leadership p,
.contact p,
.thesis p,
.service-grid p,
.timeline p {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  margin-bottom: 58px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 285px;
  padding: 32px;
  background: var(--paper);
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.service-grid article:hover {
  z-index: 1;
  background: #fffaf0;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-grid span,
.timeline span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.thesis {
  background:
    linear-gradient(rgba(21, 19, 17, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 19, 17, 0.035) 1px, transparent 1px),
    var(--ivory-deep);
  background-size: 44px 44px;
}

.thesis-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.thesis-list div {
  border-top: 1px solid rgba(21, 19, 17, 0.38);
  padding-top: 28px;
}

.ecosystem {
  overflow: hidden;
  background: var(--paper);
}

.ecosystem::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 78% 22%, rgba(176, 138, 77, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(21, 19, 17, 0.06) 1px, transparent 1px);
  background-size: auto, 88px 88px;
}

.ecosystem-stage {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 6vw;
  align-items: stretch;
}

.ecosystem-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: 32px 0;
}

.ecosystem-copy p {
  max-width: 510px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.ecosystem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ecosystem-tags span {
  padding: 9px 12px;
  border: 1px solid rgba(21, 19, 17, 0.18);
  color: rgba(21, 19, 17, 0.66);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-lens {
  position: relative;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  background: rgba(244, 241, 235, 0.72);
  box-shadow: 0 34px 90px rgba(39, 32, 22, 0.08);
}

.lens-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.lens-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lens-filter {
  border: 1px solid rgba(21, 19, 17, 0.16);
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.68);
  color: rgba(21, 19, 17, 0.58);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  padding: 9px 12px;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lens-filter:hover,
.lens-filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.lens-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-transform: uppercase;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.logo-wall a {
  display: grid;
  min-height: 154px;
  align-content: center;
  gap: 18px;
  place-items: center;
  padding: 30px;
  background: rgba(244, 241, 235, 0.78);
  text-decoration: none;
  transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.logo-wall a:hover {
  z-index: 1;
  background: var(--paper);
  transform: translateY(-3px);
}

.logo-wall img {
  max-width: 138px;
  max-height: 54px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1) opacity(0.74);
  transition: filter 180ms ease, transform 180ms ease;
}

.logo-wall a:hover img {
  filter: grayscale(0) contrast(1) opacity(1);
  transform: scale(1.03);
}

.logo-wall a span {
  color: rgba(21, 19, 17, 0.48);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.logo-wall a.is-filtered {
  display: none;
}

.operating-system {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.operating-system .section-kicker {
  color: #d7ae73;
}

.os-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(251, 248, 241, 0.18);
  background: rgba(251, 248, 241, 0.18);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24);
}

.os-rail {
  display: grid;
  background: rgba(251, 248, 241, 0.06);
}

.os-tab {
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid rgba(251, 248, 241, 0.16);
  background: transparent;
  color: rgba(251, 248, 241, 0.48);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  padding: 0 26px;
  text-align: left;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.os-tab span {
  color: var(--gold);
  font-family: "Newsreader", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.os-tab:hover,
.os-tab.is-active {
  background: rgba(251, 248, 241, 0.08);
  color: var(--paper);
}

.os-panel-wrap {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(rgba(251, 248, 241, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 248, 241, 0.055) 1px, transparent 1px),
    #181512;
  background-size: 42px 42px;
}

.os-panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  gap: 38px;
  opacity: 0;
  padding: 42px;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.os-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.os-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.os-panel h3 {
  max-width: 760px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(38px, 5vw, 78px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
}

.os-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(251, 248, 241, 0.18);
}

.os-flow span {
  min-height: 98px;
  padding: 24px;
  background: rgba(21, 19, 17, 0.78);
  color: rgba(251, 248, 241, 0.72);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.signal-strip {
  overflow: hidden;
  border: 1px solid rgba(251, 248, 241, 0.18);
  border-top: 0;
}

.signal-track {
  display: flex;
  width: max-content;
  animation: signalDrift 34s linear infinite;
}

.signal-track span {
  padding: 18px 28px;
  border-right: 1px solid rgba(251, 248, 241, 0.18);
  color: rgba(251, 248, 241, 0.54);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-transform: uppercase;
}

@keyframes signalDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.insights {
  background: var(--ivory);
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.insight-grid article {
  min-height: 330px;
  padding: 34px;
  background: var(--paper);
}

.insight-grid .feature-insight {
  background:
    linear-gradient(145deg, rgba(21, 19, 17, 0.92), rgba(45, 39, 32, 0.92)),
    var(--ink);
  color: var(--paper);
}

.insight-grid span {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-grid h3 {
  max-width: 520px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 600;
  letter-spacing: 0;
}

.insight-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-insight p {
  color: rgba(251, 248, 241, 0.72);
}

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

.roadmap .section-kicker,
.roadmap .timeline span {
  color: #d7ae73;
}

.roadmap .timeline p {
  color: rgba(251, 248, 241, 0.68);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(251, 248, 241, 0.18);
}

.timeline article {
  min-height: 320px;
  padding: 36px;
  background: var(--ink);
}

.leadership-copy {
  max-width: 660px;
}

.role-table {
  border-top: 1px solid var(--line);
}

.role-table div {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.role-table span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role-table strong {
  font-size: 16px;
  line-height: 1.45;
}

.contact {
  align-items: start;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.contact-heading {
  position: sticky;
  top: 110px;
}

.contact-routes {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-routes div {
  display: grid;
  gap: 18px;
  min-height: 138px;
  padding: 28px;
  background: var(--ivory);
  transition: background-color 180ms ease, transform 180ms ease;
}

.contact-routes div:hover {
  z-index: 1;
  background: #fffaf0;
  transform: translateX(-4px);
}

.contact-routes span {
  color: var(--rust);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-routes strong {
  max-width: 520px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.08;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 960px) {
  .site-header {
    padding: 18px 22px;
  }

  .site-header.is-scrolled {
    padding: 14px 22px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 24;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(251, 248, 241, 0.58);
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  body.nav-open .menu-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 22;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 96px 28px 36px;
    background: rgba(244, 241, 235, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.nav-open .mobile-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    font-family: "Newsreader", Georgia, serif;
    font-size: 38px;
    font-weight: 600;
    text-decoration: none;
  }

  .section-band {
    padding: 76px 24px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 120px;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(244, 241, 235, 0.98) 0%, rgba(244, 241, 235, 0.78) 64%, rgba(244, 241, 235, 0.35) 100%),
      linear-gradient(180deg, rgba(244, 241, 235, 0) 70%, var(--ivory) 100%);
  }

  h1 {
    font-size: clamp(42px, 11vw, 58px);
    line-height: 0.98;
  }

  .metrics,
  .service-grid,
  .timeline,
  .thesis-list,
  .ecosystem-stage,
  .logo-wall,
  .lens-toolbar,
  .os-shell,
  .os-flow,
  .insight-grid,
  .intro,
  .intro-grid,
  .leadership,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 150px;
    padding: 30px 24px;
  }

  .service-grid article,
  .timeline article {
    min-height: auto;
  }

  .ecosystem-copy {
    min-height: auto;
    gap: 32px;
    padding: 0;
  }

  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-wall a {
    min-height: 130px;
  }

  .lens-toolbar {
    align-items: start;
  }

  .os-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .os-tab {
    min-height: 86px;
    padding: 0 16px;
  }

  .os-tab span {
    font-size: 20px;
  }

  .os-panel-wrap {
    min-height: 460px;
  }

  .os-panel {
    padding: 30px;
  }

  .os-flow span {
    min-height: 76px;
  }

  .insight-grid article {
    min-height: auto;
  }

  .contact-heading {
    position: static;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 14px;
  }

  .hero-copy {
    max-width: 100%;
    overflow: hidden;
  }

  .eyebrow {
    max-width: 330px;
    font-size: 11px;
    line-height: 1.35;
  }

  h1 {
    font-size: 40px;
    max-width: 340px;
  }

  .hero-text {
    max-width: 340px;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .os-rail {
    grid-template-columns: 1fr;
  }

  .os-tab {
    min-height: 64px;
  }

  .os-panel h3 {
    font-size: 38px;
  }

  .signal-track {
    animation-duration: 26s;
  }

  .role-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
