:root {
  --ink: #0a0a0a;
  --ink-soft: #1c1c1c;
  --muted: #6a665d;
  --hairline: rgba(10, 10, 10, 0.14);
  --hairline-strong: rgba(10, 10, 10, 0.32);
  --paper: #f4eee2;
  --paper-warm: #efe7d6;
  --box: rgba(255, 252, 244, 0.55);
  --wash: rgba(10, 10, 10, 0.045);
  --wash-hover: rgba(10, 10, 10, 0.085);
  --accent: #6a665d;
  --light: #f4eee2;
  --light-soft: rgba(244, 238, 226, 0.78);
  --nav-h: clamp(60px, 7vh, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footnote {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footnote a {
  border-bottom: 1px solid var(--hairline-strong);
}

/* ============================== STICKY NAV */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(244, 238, 226, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  transform: translateY(-100%);
  transition: transform 500ms cubic-bezier(0.22, 0.8, 0.22, 1);
  pointer-events: none;
}

.nav.nav--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.nav-inner {
  max-width: 1480px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-mark {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-cta:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

/* ============================== HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vh, 48px) clamp(20px, 4vw, 56px);
  color: var(--light);
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(0.35) contrast(1.02) brightness(0.85);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-stage {
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vh, 32px) 0;
}

.hero-mark {
  margin: 0;
  color: var(--light);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(180px, 38vw, 640px);
  line-height: 0.82;
  letter-spacing: -0.025em;
  text-align: center;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.45);
}

/* ============================== IDENTITY (post-hero, two-line catch) */
.identity {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(140px, 22vh, 280px) clamp(20px, 4vw, 56px) clamp(120px, 20vh, 240px);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}

.identity-line {
  margin: 0 auto;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-wrap: balance;
}

.identity-line--lead {
  max-width: 24ch;
  font-size: clamp(48px, 6.6vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.024em;
  color: var(--ink);
}

.identity-nowrap {
  white-space: nowrap;
}

.identity-line--def {
  margin-top: clamp(20px, 3vh, 40px);
  max-width: 26ch;
  font-size: clamp(24px, 3.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--muted);
}

/* ============================== PITCH */
.pitch {
  padding: clamp(96px, 16vh, 200px) clamp(20px, 4vw, 56px) clamp(56px, 8vh, 100px);
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vh, 44px);
}

.pitch .label {
  color: var(--accent);
}

.pitch h2 {
  margin: 0;
  max-width: 24ch;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}

.pitch-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 500;
  letter-spacing: 0.005em;
}

/* ============================== EXECUTION */
.execution {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(72px, 11vh, 140px) clamp(20px, 4vw, 56px) clamp(96px, 14vh, 168px);
  display: grid;
  gap: clamp(42px, 7vh, 84px);
  border-top: 1px solid var(--hairline);
}

.execution-head {
  display: grid;
  gap: clamp(20px, 3vh, 32px);
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.execution-label {
  color: var(--ink);
}

.execution-title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(48px, 5.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.026em;
  color: var(--ink);
  text-wrap: balance;
}

.execution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(10, 10, 10, 0.44);
  border-bottom: 1px solid rgba(10, 10, 10, 0.44);
}

.execution-card {
  position: relative;
  min-height: clamp(340px, 42vh, 500px);
  padding: clamp(24px, 3vw, 42px) clamp(22px, 3vw, 42px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.execution-card + .execution-card {
  border-left: 1px solid var(--hairline);
}

.execution-index {
  display: block;
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(170px, 18vw, 360px);
  font-weight: 400;
  line-height: 0.72;
  letter-spacing: -0.065em;
  color: rgba(10, 10, 10, 0.16);
}

.execution-card-title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.execution-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: pretty;
}

/* ============================== BOXES */
.boxes {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 128px) clamp(20px, 4vw, 56px) clamp(72px, 10vh, 120px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(48px, 10vh, 120px);
  min-height: clamp(220px, 30vh, 320px);
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--hairline-strong);
  background: var(--box);
}

.box .label {
  color: var(--accent);
}

.box::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 6px;
  height: 6px;
  background: var(--ink);
  opacity: 0.65;
  border-radius: 50%;
}

.box--wide {
  grid-column: 1 / -1;
  min-height: clamp(280px, 38vh, 440px);
  padding: clamp(28px, 3vw, 44px);
}

.box h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 14ch;
  text-wrap: balance;
}

.box--wide h3 {
  font-size: clamp(64px, 9vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  max-width: none;
}

/* ============================== USE CASES (marquee, Palantir-style cards) */
.usecases {
  padding: clamp(96px, 16vh, 200px) 0 clamp(96px, 16vh, 200px);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.usecases-head {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(56px, 8vh, 96px);
}

.usecases-head h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(56px, 8vw, 156px);
  line-height: 0.94;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 80px,
    black calc(100% - 80px),
    transparent 100%
  );
}

.marquee-track {
  --card-w: 360px;
  --gap: 16px;
  --set: 7;
  display: flex;
  width: max-content;
  gap: var(--gap);
  padding: 8px 0;
  animation: marquee 130s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-1 * var(--set) * (var(--card-w) + var(--gap))));
  }
}

.usecase {
  --notch: 92px;
  --pad-x: 36px;
  --pad-y: 36px;
  --card-bg: rgba(255, 252, 244, 0.58);
  --card-bg-hover: rgba(10, 10, 10, 0.085);
  position: relative;
  flex: 0 0 var(--card-w);
  height: 600px;
  background: var(--card-bg);
  color: var(--ink);
  /* True 5-sided pentagon: top-right corner cut away */
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    0 100%
  );
  overflow: hidden;
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.14);
  transition: background 700ms cubic-bezier(0.22, 0.8, 0.22, 1),
    color 500ms ease;
  white-space: normal;
}

.usecase:hover {
  background: var(--card-bg-hover);
  color: var(--ink);
}

.usecase-head {
  position: absolute;
  top: var(--pad-y);
  left: var(--pad-x);
  right: var(--pad-x);
  display: grid;
  gap: 18px;
}

.usecase-tag {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
}

.usecase-target {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.018em;
  color: inherit;
  text-wrap: balance;
}

.usecase-desc {
  position: absolute;
  bottom: var(--pad-y);
  left: var(--pad-x);
  right: var(--pad-x);
  margin: 0;
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: inherit;
  opacity: 0.85;
  transform: translateY(0);
  transition: transform 700ms cubic-bezier(0.22, 0.8, 0.22, 1),
    opacity 500ms ease;
}

.usecase:hover .usecase-desc {
  transform: translateY(-180px);
  opacity: 1;
}

.usecase-targets {
  position: absolute;
  bottom: var(--pad-y);
  left: var(--pad-x);
  right: var(--pad-x);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 10, 10, 0.16);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--ink);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.22, 0.8, 0.22, 1),
    opacity 500ms ease 100ms;
}

.usecase:hover .usecase-targets {
  transform: translateY(0);
  opacity: 1;
}

.usecase-targets-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ============================== CLOSER + BIG CTA */
.closer {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 200px) clamp(20px, 4vw, 56px) clamp(56px, 8vh, 96px);
  display: grid;
  gap: clamp(36px, 6vh, 56px);
  border-top: 1px solid var(--hairline);
}

.closer h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

.bigcta {
  display: block;
  width: 100%;
  background: var(--wash);
  border: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 500ms ease, border-color 500ms ease;
}

.bigcta:hover {
  background: var(--wash-hover);
  border-color: var(--hairline-strong);
}

.bigcta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(36px, 5vw, 80px) clamp(28px, 4vw, 56px);
  transition: transform 500ms ease;
}

.bigcta:hover .bigcta-inner {
  transform: scale(0.96);
}

.bigcta-text {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 104px);
  line-height: 1;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}

.bigcta-arrow {
  width: clamp(36px, 4vw, 56px);
  height: clamp(36px, 4vw, 56px);
  flex-shrink: 0;
  color: var(--ink);
  transition: transform 500ms ease;
}

.bigcta:hover .bigcta-arrow {
  transform: translateX(-8px);
}

/* ============================== FOOTER + GIANT WORDMARK */
.foot {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(48px, 6vh, 80px) clamp(20px, 4vw, 56px) clamp(8px, 2vh, 20px);
  display: grid;
  gap: clamp(24px, 4vh, 56px);
  border-top: 1px solid var(--hairline);
}

.foot-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-meta a:hover {
  color: var(--ink);
}

.foot-mark {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(160px, 30vw, 540px);
  line-height: 0.78;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ============================== MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
}

.modal:target {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(2px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100svh - 32px);
  overflow: auto;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: clamp(16px, 2vw, 22px);
  right: clamp(16px, 2vw, 22px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-panel .label {
  color: var(--accent);
}

.modal-panel h2 {
  margin: 14px 0 12px;
  max-width: 18ch;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.modal-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 50ch;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

label {
  display: grid;
  gap: 6px;
}

label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

label.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  background: rgba(255, 252, 244, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}

input:focus,
textarea:focus {
  border-color: var(--ink);
  background: rgba(255, 252, 244, 0.95);
}

input::placeholder,
textarea::placeholder {
  color: rgba(10, 10, 10, 0.36);
  font-weight: 500;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 22px;
}

button {
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

button:hover {
  background: #000;
}

/* ============================== RESPONSIVE */
@media (max-width: 960px) {
  .execution-grid {
    grid-template-columns: 1fr;
  }

  .execution-head {
    text-align: left;
    margin: 0;
  }

  .execution-card {
    min-height: 260px;
  }

  .execution-card + .execution-card {
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

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

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

  .bigcta-inner {
    padding: clamp(28px, 6vw, 48px) clamp(20px, 5vw, 32px);
  }
}

@media (max-width: 520px) {
  .hero-mark {
    font-size: clamp(140px, 44vw, 280px);
  }

  .nav-cta {
    padding: 8px 12px;
    font-size: 11px;
  }

  .marquee-track {
    --card-w: 320px;
  }

  .usecase {
    --notch: 72px;
    --pad-x: 28px;
    --pad-y: 28px;
    height: 520px;
  }

  .usecase-target {
    font-size: 34px;
  }

  .usecase-desc {
    font-size: 16px;
  }

  .usecase:hover .usecase-desc {
    transform: translateY(-160px);
  }
}

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

  .hero-video {
    display: none;
  }

  .hero {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  }

  .marquee-track {
    animation: none;
  }
}
