:root {
  --ink: #07111f;
  --ink-soft: #172235;
  --paper: #f4f2ec;
  --white: #fffdf8;
  --muted: #687181;
  --line: rgba(7, 17, 31, 0.16);
  --blue: #2457ff;
  --blue-deep: #153cce;
  --lime: #d7ff45;
  --aqua: #88ead5;
  --orange: #ff7549;
  --radius: 22px;
  --section-pad: clamp(4.5rem, 9vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max-width: 1500px;
  --shadow: 0 25px 80px rgba(7, 17, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-menu-open,
body.is-lightbox-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

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

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

::selection {
  color: var(--ink);
  background: var(--lime);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-120%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.15rem var(--gutter);
  color: var(--white);
  transition: padding 240ms ease, background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: rgba(7, 17, 31, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-copy {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.5rem);
  font-size: 0.82rem;
  font-weight: 650;
}

.site-nav > a:not(.nav-cta) {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
}

.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  color: var(--white);
}

.site-nav > a:hover::after,
.site-nav > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
}

.nav-cta span {
  margin-left: 0.4rem;
}

.menu-toggle {
  display: none;
}

.section,
.section-band {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
  min-height: 100svh;
  max-width: none;
  padding-top: 9rem;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 24%, rgba(36, 87, 255, 0.3), transparent 26%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 70px 70px, 70px 70px, auto;
}

.hero-copy {
  min-width: 0;
  max-width: 800px;
}

.eyebrow {
  margin-bottom: 1.4rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow {
  color: var(--lime);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.65rem;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(215, 255, 69, 0.12);
}

.hero h1 {
  max-width: 830px;
  margin-bottom: 1.6rem;
  font-size: clamp(3.3rem, 6.9vw, 7.6rem);
  font-weight: 730;
  line-height: 0.91;
  letter-spacing: -0.073em;
}

.hero h1 em {
  display: block;
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 670px;
  margin-bottom: 2.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 180px;
  padding: 0.95rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

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

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--ink);
  background: var(--white);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 8vh, 6rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-proof div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-proof strong {
  color: var(--white);
  font-size: 0.86rem;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.7rem;
}

.hero-system {
  position: relative;
  min-width: 0;
  padding: 1rem;
  overflow: hidden;
  color: var(--ink);
  background: #eef1f5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.34);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.hero-system::after {
  content: "";
  position: absolute;
  inset: auto -25% -40% 30%;
  height: 50%;
  background: var(--aqua);
  filter: blur(80px);
  opacity: 0.24;
  pointer-events: none;
}

.system-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.45rem 0.85rem;
  color: #6d7581;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pulse-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #12806b;
}

.pulse-label i {
  width: 6px;
  height: 6px;
  background: #19bd94;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(25, 189, 148, 0.13);
  animation: pulse 1.8s infinite;
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.35fr 0.75fr;
  gap: 0.8rem;
  min-height: 500px;
  padding: 1rem;
  background:
    linear-gradient(rgba(7, 17, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 31, 0.045) 1px, transparent 1px),
    #f9fafb;
  background-size: 25px 25px;
  border: 1px solid rgba(7, 17, 31, 0.1);
  border-radius: 22px;
}

.pipeline-column,
.flow-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.column-label {
  position: absolute;
  top: 0;
  color: #838b96;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem;
  text-align: left;
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(7, 17, 31, 0.05);
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
  transition: border 180ms ease, transform 180ms ease, background 180ms ease;
}

button.node:hover,
button.node:focus-visible,
.node.is-active {
  background: #eef1ff;
  border-color: var(--blue);
  transform: translateX(3px);
}

.node i {
  width: 5px;
  height: 5px;
  margin-left: auto;
  background: #b8bec7;
  border-radius: 50%;
}

.node.is-active i {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 87, 255, 0.12);
}

.node-icon {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  height: 31px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
}

.output-node {
  cursor: default;
}

.output-node .node-icon {
  color: var(--ink);
  background: var(--lime);
}

.process-card {
  position: relative;
  z-index: 3;
  padding: 1.25rem;
  background: var(--ink);
  border-radius: 18px;
  box-shadow: 0 25px 45px rgba(7, 17, 31, 0.24);
}

.process-kicker {
  display: block;
  margin-bottom: 1rem;
  color: var(--aqua);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.process-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
}

.process-card p {
  min-height: 58px;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.66rem;
  line-height: 1.6;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.process-steps span {
  padding: 0.3rem 0.45rem;
  color: var(--lime);
  background: rgba(215, 255, 69, 0.08);
  border: 1px solid rgba(215, 255, 69, 0.16);
  border-radius: 99px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.48rem;
}

.flow-line {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: calc(50% + 1.4rem);
  height: 1px;
  overflow: hidden;
  background: rgba(36, 87, 255, 0.25);
}

.flow-line-a {
  right: calc(50% + 4rem);
}

.flow-line-b {
  left: calc(50% + 4rem);
}

.flow-line i {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: dataflow 1.6s linear infinite;
}

.system-hint {
  margin: 0;
  padding: 0.8rem 0.4rem 0.2rem;
  color: #707885;
  font-size: 0.62rem;
  text-align: center;
}

.section-band {
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
}

.principle {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 2rem;
  align-items: start;
  color: var(--white);
  background: var(--blue);
}

.principle > p {
  padding-top: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.principle blockquote {
  max-width: 1130px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.3vw, 5rem);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.principle blockquote span {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.work,
.experience,
.capabilities {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 5.7rem);
  font-weight: 690;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.section-heading > p {
  max-width: 390px;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem) 0;
  border-top: 1px solid var(--line);
}

.case-study + .case-study {
  margin-top: clamp(4rem, 8vw, 9rem);
}

.case-copy {
  position: relative;
}

.case-number {
  position: absolute;
  top: -1rem;
  right: 0;
  color: rgba(7, 17, 31, 0.06);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  font-style: italic;
  line-height: 1;
}

.case-type {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-study h3 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  font-weight: 670;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.case-intro {
  max-width: 640px;
  margin-bottom: 2rem;
  color: #4d5766;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.7;
}

.case-contributions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-contributions div {
  min-height: 145px;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-contributions span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.case-contributions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list span,
.skill-cloud span {
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.67rem;
  font-weight: 650;
}

.case-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding: 1rem 0;
  color: var(--blue);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  transition: padding 180ms ease, color 180ms ease, background 180ms ease;
}

.case-link:hover,
.case-link:focus-visible {
  padding-right: 0.8rem;
  padding-left: 0.8rem;
  color: var(--white);
  background: var(--blue);
}

.case-visual {
  position: relative;
  min-width: 0;
  padding: 4rem clamp(1rem, 5vw, 5rem);
  background: var(--blue);
  border-radius: var(--radius);
}

.case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.55;
  pointer-events: none;
}

.product-frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--white);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.portrait-frame {
  max-width: 510px;
  margin: auto;
  transform: rotate(-1.8deg);
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portrait-frame:hover,
.portrait-frame:focus-visible {
  transform: rotate(0) translateY(-8px);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 34px;
  padding: 0 0.75rem;
  background: #e9ecf0;
}

.frame-bar i {
  width: 6px;
  height: 6px;
  background: #b9c0c9;
  border-radius: 50%;
}

.frame-bar b {
  margin-left: 0.45rem;
  color: #7b8491;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.52rem;
  font-weight: 600;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: cover;
  object-position: top;
}

.frame-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: var(--lime);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.frame-action b {
  font-size: 0.9rem;
}

.visual-note {
  position: absolute;
  z-index: 3;
  padding: 0.75rem;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid rgba(7, 17, 31, 0.2);
  border-radius: 10px;
  box-shadow: 7px 7px 0 var(--ink);
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.35;
}

.visual-note span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.48rem;
}

.note-one {
  top: 2rem;
  right: 1.4rem;
}

.note-two {
  bottom: 4.8rem;
  left: 1.4rem;
}

.analytics-case {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

.analytics-case .case-copy {
  grid-column: 2;
  grid-row: 1;
}

.analytics-gallery {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: clamp(1.3rem, 4vw, 3.5rem);
  background: var(--ink);
  border-radius: var(--radius);
}

.analytics-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(136, 234, 213, 0.16), transparent 45%);
  pointer-events: none;
}

.landscape-frame {
  transition: transform 300ms ease;
}

.landscape-frame:hover,
.landscape-frame:focus-visible {
  transform: translateY(-6px);
}

.landscape-frame img {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
  object-position: left top;
}

.gallery-thumb {
  position: absolute;
  right: -1.6rem;
  bottom: -2.5rem;
  z-index: 3;
  width: 42%;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 7px solid var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transform: rotate(3deg);
  transition: transform 250ms ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  transform: rotate(0) scale(1.03);
}

.gallery-thumb img {
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
  object-position: left top;
}

.outcome-grid {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
}

.outcome-grid div {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.outcome-grid strong {
  color: var(--blue);
  font-size: 0.73rem;
}

.outcome-grid span {
  color: var(--muted);
  font-size: 0.75rem;
}

.value-chain {
  color: var(--white);
  background: var(--ink);
}

.value-chain .section-heading {
  max-width: calc(var(--max-width) - (var(--gutter) * 2));
  margin-right: auto;
  margin-left: auto;
}

.value-chain .section-heading > p {
  color: rgba(255, 255, 255, 0.5);
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: calc(var(--max-width) - (var(--gutter) * 2));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.chain-grid article {
  position: relative;
  min-height: 250px;
  padding: 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  transition: color 240ms ease, background 240ms ease;
}

.chain-grid article:hover {
  color: var(--ink);
  background: var(--lime);
}

.chain-grid article > span {
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
}

.chain-grid article:hover > span,
.chain-grid article:hover p {
  color: rgba(7, 17, 31, 0.6);
}

.chain-grid i {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--lime);
  font-size: 1.2rem;
  font-style: normal;
}

.chain-grid article:hover i {
  color: var(--blue);
}

.chain-grid h3 {
  margin: 5rem 0 0.7rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.chain-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.73rem;
  line-height: 1.6;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 0.42fr 0.7fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

.timeline-meta span:first-child {
  color: var(--blue);
  font-weight: 750;
}

.timeline-role p {
  margin-bottom: 0.55rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 750;
}

.timeline-role h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.5rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.timeline-item ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item li {
  position: relative;
  padding-left: 1.3rem;
  color: #505a69;
  font-size: 0.82rem;
  line-height: 1.6;
}

.timeline-item li::before {
  content: "↳";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue);
}

.capabilities {
  padding-top: 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-grid article {
  min-height: 310px;
  padding: 1.3rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-grid article:nth-child(1),
.capability-grid article:nth-child(2) {
  grid-column: span 3;
}

.capability-grid article:nth-child(n + 3) {
  grid-column: span 2;
}

.capability-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  font-style: italic;
}

.capability-grid h3 {
  margin: 4rem 0 1.2rem;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 640;
  letter-spacing: -0.045em;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-cloud span {
  color: #5f6978;
  background: rgba(255, 255, 255, 0.4);
}

.education {
  color: var(--white);
  background: var(--blue);
}

.education .eyebrow {
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
  color: var(--lime);
}

.education-card {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 2rem;
  align-items: end;
  max-width: var(--max-width);
  margin: 0 auto;
}

.education-card > div:first-child span {
  display: block;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.education-card h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5.5vw, 6.1rem);
  font-weight: 660;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.education-card > div:last-child {
  padding: 1.5rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 15px;
}

.education-card > div:last-child p {
  margin-bottom: 2.5rem;
  font-size: 0.78rem;
  font-weight: 750;
}

.education-card strong {
  display: block;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.education-card > div:last-child span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact {
  color: var(--white);
  background:
    radial-gradient(circle at 15% 85%, rgba(36, 87, 255, 0.5), transparent 32%),
    var(--ink);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact h2 {
  max-width: 1100px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.3rem, 8vw, 9rem);
  font-weight: 690;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.contact-lede {
  max-width: 650px;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(1.3rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  transition: color 180ms ease, padding 180ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  padding-right: 1rem;
  padding-left: 1rem;
  color: var(--ink);
  background: var(--lime);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.contact-links a {
  padding: 0.65rem 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  font-size: 0.72rem;
  transition: background 180ms ease, color 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--ink);
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem var(--gutter);
  color: rgba(255, 255, 255, 0.45);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.64rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: clamp(3rem, 6vw, 6rem);
  color: var(--white);
  background: rgba(4, 10, 18, 0.96);
  border: 0;
}

.lightbox[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  animation: fade-in 180ms ease both;
}

.lightbox::backdrop {
  background: rgba(4, 10, 18, 0.92);
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  min-width: 0;
  max-width: 1400px;
  height: 100%;
  max-height: calc(100vh - 7rem);
  margin: auto;
}

.lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.lightbox-close,
.lightbox-nav {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  color: var(--ink);
  background: var(--lime);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}

.lightbox-nav {
  width: 48px;
  height: 48px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes dataflow {
  from { transform: translateX(-120%); }
  to { transform: translateX(330%); }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(25, 189, 148, 0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 10rem;
  }

  .hero-copy {
    max-width: 1000px;
  }

  .hero-system {
    width: min(820px, 100%);
    margin-left: auto;
    transform: none;
  }

  .case-study,
  .analytics-case {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .analytics-case .case-copy,
  .analytics-gallery {
    grid-column: 1;
  }

  .analytics-case .case-copy {
    grid-row: 1;
  }

  .analytics-gallery {
    grid-row: 2;
  }

  .case-intro {
    max-width: 780px;
  }

  .case-contributions {
    max-width: 760px;
  }

  .timeline-item {
    grid-template-columns: 0.45fr 0.75fr 1fr;
  }

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

@media (max-width: 860px) {
  .site-header {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 14px 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    height: 1px;
    background: var(--white);
    transition: transform 200ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 7rem var(--gutter) 3rem;
    background: var(--ink);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav > a:not(.nav-cta) {
    color: var(--white);
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 650;
    letter-spacing: -0.055em;
  }

  .nav-cta {
    margin-top: 1rem;
  }

  .hero-proof {
    margin-top: 3rem;
  }

  .section-heading,
  .education-card {
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    max-width: 600px;
  }

  .principle {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 0.55fr 1fr;
  }

  .timeline-item ul {
    grid-column: 2;
  }

  .capability-grid article:nth-child(n) {
    grid-column: span 3;
  }

  .education-card > div:last-child {
    max-width: 340px;
  }

  .lightbox {
    padding: 4rem 1rem 1rem;
  }

  .lightbox[open] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .lightbox figure {
    grid-column: 1 / -1;
  }

  .lightbox-prev {
    justify-self: end;
  }

  .lightbox-next {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 1rem;
    --section-pad: 5rem;
    --radius: 16px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: auto;
    padding-top: 8.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 13.5vw, 5.4rem);
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hero-proof div {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
  }

  .pipeline {
    grid-template-columns: 0.85fr 1.15fr;
    min-height: 440px;
  }

  .output-column {
    display: none;
  }

  .flow-line-b {
    display: none;
  }

  .process-card {
    padding: 1rem;
  }

  .process-steps span:nth-child(n + 3) {
    display: none;
  }

  .principle blockquote {
    font-size: 2.3rem;
  }

  .case-contributions {
    grid-template-columns: 1fr;
  }

  .case-contributions div {
    min-height: auto;
  }

  .case-visual {
    padding: 3rem 1rem;
  }

  .visual-note {
    display: none;
  }

  .gallery-thumb {
    right: 0.2rem;
    bottom: -1.8rem;
    width: 45%;
    border-width: 4px;
  }

  .chain-grid {
    grid-template-columns: 1fr;
  }

  .chain-grid article {
    min-height: 190px;
  }

  .chain-grid h3 {
    margin-top: 3.5rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .timeline-item ul {
    grid-column: 1;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article:nth-child(n) {
    grid-column: 1;
    min-height: 240px;
  }

  .capability-grid h3 {
    margin-top: 2.5rem;
  }

  .education-card h2 {
    font-size: 2.65rem;
  }

  .contact h2 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .contact-email {
    overflow-wrap: anywhere;
    font-size: 1.3rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
