:root {
  --ink: #11130f;
  --ink-2: #191d17;
  --paper: #f3efe4;
  --muted: #b7b0a1;
  --line: rgba(243, 239, 228, 0.16);
  --line-dark: rgba(17, 19, 15, 0.14);
  --accent: #c7a260;
  --accent-2: #e0c991;
  --white: #fffaf0;
  --danger: #e66b4d;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(17, 19, 15, 0.74);
  border-bottom: 1px solid rgba(243, 239, 228, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 15px;
  height: 15px;
  display: inline-block;
  background:
    linear-gradient(90deg, transparent 42%, var(--ink) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, var(--ink) 42% 58%, transparent 58%),
    var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(243, 239, 228, 0.72);
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--ink);
  background: var(--accent);
  padding: 12px 15px;
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 56px) clamp(18px, 5vw, 72px) 90px;
  background:
    radial-gradient(circle at 70% 35%, rgba(199, 162, 96, 0.18), transparent 31%),
    linear-gradient(115deg, #11130f 0%, #171a14 48%, #0a0d0b 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 239, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 228, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 70% 35%, black, transparent 72%);
  pointer-events: none;
}

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

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

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

h1 {
  margin-bottom: 26px;
  max-width: 830px;
  font-size: clamp(4.4rem, 10vw, 9.8rem);
  line-height: 0.86;
  font-weight: 780;
}

h1 span {
  display: block;
}

.hero-subtitle {
  max-width: 620px;
  color: rgba(243, 239, 228, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.55;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(243, 239, 228, 0.18);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

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

.button.secondary {
  color: var(--paper);
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 19%;
  right: -8%;
  width: min(54vw, 780px);
  aspect-ratio: 1.18;
  opacity: 0.92;
}

.system-plane {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(-8deg);
  border-left: 1px solid rgba(243, 239, 228, 0.12);
  border-bottom: 1px solid rgba(243, 239, 228, 0.12);
  background:
    linear-gradient(135deg, rgba(243, 239, 228, 0.08), transparent 48%),
    repeating-linear-gradient(90deg, rgba(243, 239, 228, 0.07) 0 1px, transparent 1px 46px);
  box-shadow: 0 45px 140px rgba(0, 0, 0, 0.36);
}

.flow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform-origin: left;
  animation: pulseLine 3.8s ease-in-out infinite;
}

.flow-line-a {
  top: 37%;
  left: 14%;
  width: 68%;
}

.flow-line-b {
  top: 63%;
  left: 22%;
  width: 58%;
  animation-delay: 900ms;
}

.node {
  position: absolute;
  min-width: 132px;
  padding: 12px 14px;
  background: rgba(17, 19, 15, 0.78);
  border: 1px solid rgba(243, 239, 228, 0.18);
  color: rgba(243, 239, 228, 0.76);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
}

.node-a {
  top: 25%;
  left: 9%;
}

.node-b {
  top: 55%;
  left: 18%;
}

.node-c {
  top: 39%;
  right: 16%;
  color: var(--accent-2);
}

.node-d {
  bottom: 11%;
  right: 22%;
}

.node-e {
  top: 12%;
  right: 31%;
}

.hero-footer {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  color: rgba(243, 239, 228, 0.7);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-footer span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.section {
  padding: clamp(80px, 12vw, 150px) clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: start;
}

.large-copy h2,
.about-copy h2,
.apply-copy h2 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 6.6rem);
  line-height: 0.93;
}

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

.doorway {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.doorway-label {
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.doorway h3,
.pricing-grid h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 1;
}

.doorway p,
.process p,
.pricing-grid p,
.about-copy p,
.apply-copy p {
  color: rgba(243, 239, 228, 0.72);
  font-size: 1rem;
  line-height: 1.65;
}

.fit-section {
  padding-top: 0;
  padding-bottom: 0;
  background: var(--paper);
  color: var(--ink);
}

.fit-line {
  display: grid;
  grid-template-columns: minmax(110px, 0.28fr) 1fr;
  gap: 32px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line-dark);
}

.fit-line span {
  color: #776b57;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.17em;
}

.fit-line strong {
  max-width: 1080px;
  font-size: clamp(1.45rem, 3vw, 3.3rem);
  line-height: 1.08;
}

.fit-line.muted strong {
  color: rgba(17, 19, 15, 0.58);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.process li {
  min-height: 270px;
  padding: 30px;
  background: var(--ink);
}

.process span {
  display: block;
  margin-bottom: 92px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

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

.pricing-section .section-kicker {
  color: #7e683d;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.pricing-grid article {
  min-height: 286px;
  padding: 28px;
  background: var(--paper);
}

.pricing-grid span {
  display: block;
  margin-bottom: 82px;
  color: #7e683d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
}

.pricing-grid p {
  color: rgba(17, 19, 15, 0.65);
}

.about-section {
  min-height: 72svh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(199, 162, 96, 0.12), transparent 28%),
    var(--ink);
}

.about-copy {
  max-width: 980px;
}

.about-copy p:last-child,
.apply-copy p {
  max-width: 780px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(42px, 8vw, 100px);
  background: var(--paper);
  color: var(--ink);
}

.apply-section .eyebrow {
  color: #7e683d;
}

.apply-copy p {
  color: rgba(17, 19, 15, 0.64);
}

.apply-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-content: start;
}

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

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

label span {
  color: rgba(17, 19, 15, 0.68);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 19, 15, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  padding: 15px 14px;
  outline: none;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7e683d;
  background: rgba(255, 255, 255, 0.54);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: #7e683d;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.start-options {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.start-options a {
  display: grid;
  gap: 12px;
  padding: 26px;
  background: var(--paper);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.start-options a:hover {
  background: #fff8e9;
  transform: translateX(3px);
}

.start-options span {
  color: #7e683d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.start-options strong {
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1;
}

.start-options em {
  max-width: 620px;
  color: rgba(17, 19, 15, 0.62);
  font-style: normal;
  line-height: 1.55;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: rgba(243, 239, 228, 0.62);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.88);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 150px;
  }

  .hero-visual {
    top: 12%;
    right: -42%;
    width: 112vw;
    opacity: 0.34;
  }

  .hero-footer,
  .split,
  .apply-section,
  .process,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-footer span {
    min-height: 48px;
    padding: 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .doorway {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process li,
  .pricing-grid article {
    min-height: auto;
  }

  .process span,
  .pricing-grid span {
    margin-bottom: 36px;
  }

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

@media (max-width: 640px) {
  .site-header {
    height: 66px;
  }

  :root {
    --header: 66px;
  }

  .brand {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(2.75rem, 14.5vw, 4rem);
    line-height: 0.92;
  }

  .hero-copy {
    width: min(342px, calc(100vw - 48px));
    max-width: min(342px, calc(100vw - 48px));
  }

  .hero-subtitle {
    width: 100%;
    max-width: 342px;
  }

  .button {
    width: 100%;
  }

  .fit-line {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
