:root {
  --ink: #0B0E10;
  --bone: #F4F1EA;
  --teal: #1C3A40;
  --teal-deep: #0E2226;
  --crimson: #8B1A1A;
  --crimson-highlight: #C24545;
  --bronze: #B1560F;
  --bronze-hi: #D17935;
  --steel: #2A2F33;
  --muted: rgba(244, 241, 234, 0.72);
  --muted-dark: rgba(11, 14, 16, 0.68);
  --hairline: rgba(244, 241, 234, 0.16);
  --hairline-dark: rgba(11, 14, 16, 0.18);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--bone);
  background: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(194, 69, 69, 0.22);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bronze-hi);
  outline-offset: 4px;
}

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

section[id],
h2[id] {
  scroll-margin-top: 84px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 40;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--bone);
  transform: translateY(-140%);
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
  background: rgba(11, 14, 16, 0.76);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 148px;
  min-height: 44px;
  gap: 2px;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  line-height: 1.1;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: rgba(244, 241, 234, 0.76);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav a {
  padding: 14px 0;
  transition: color 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 14, 16, 0.95) 0%, rgba(11, 14, 16, 0.76) 44%, rgba(11, 14, 16, 0.36) 100%),
    linear-gradient(0deg, rgba(11, 14, 16, 0.88) 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  display: flex;
  min-height: 100dvh;
  max-width: 1280px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 128px clamp(24px, 6vw, 96px) clamp(64px, 8vw, 112px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--bronze-hi);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  max-width: 980px;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  font-size: clamp(54px, 8vw, 122px);
  line-height: 0.94;
}

h2 {
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: 1;
}

h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 300;
  line-height: 1.08;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(244, 241, 234, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  transition:
    background-color 180ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 180ms cubic-bezier(0.4, 0, 0.2, 1),
    color 180ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  border-color: var(--bone);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  border-color: var(--crimson-highlight);
  background: var(--crimson);
}

.button-primary:hover {
  background: transparent;
}

.button-ghost:hover {
  color: var(--bronze-hi);
  border-color: var(--bronze);
}

.section {
  padding: clamp(64px, 9vw, 132px) clamp(24px, 6vw, 96px);
}

.section-light {
  color: var(--ink);
  background: var(--bone);
}

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

.section-teal {
  color: var(--bone);
  background: var(--teal);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 104px);
  border-bottom: 1px solid var(--hairline);
}

.section-light.split-section,
.section-light {
  border-bottom: 1px solid var(--hairline-dark);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-heading.wide {
  max-width: 960px;
}

.section-copy {
  max-width: 780px;
  color: var(--muted-dark);
  font-size: clamp(17px, 1.55vw, 21px);
}

.section-copy p {
  margin: 0 0 24px;
}

.light-copy {
  color: rgba(244, 241, 234, 0.78);
}

.soft-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.meter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--hairline-dark);
  background: var(--hairline-dark);
}

.meter-card {
  padding: 22px;
  background: var(--bone);
}

.meter-card h3 {
  color: rgba(11, 14, 16, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bars {
  display: flex;
  height: 118px;
  align-items: flex-end;
  gap: 7px;
  margin-top: 26px;
}

.bars span {
  width: 100%;
  height: var(--h);
  background: var(--teal);
  transform-origin: bottom;
}

.bars-crimson span {
  background: var(--crimson);
}

.bars-bronze span {
  background: var(--bronze);
}

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

.control-grid article {
  min-height: 320px;
  padding: 30px;
  background: var(--ink);
}

.index,
.label {
  margin: 0 0 18px;
  color: var(--crimson-highlight);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-grid p:not(.index),
.detail-list p,
.recipe-grid p:not(.label),
.diagnosis-table p {
  color: var(--muted);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hairline);
  background: var(--hairline);
}

.detail-list article {
  padding: 26px;
  background: var(--teal);
}

.workflow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 72px;
  border: 1px solid var(--hairline);
  color: rgba(244, 241, 234, 0.82);
}

.workflow-list span {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--hairline);
  background: var(--crimson);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 12px;
}

.workflow-list li {
  align-items: center;
  padding-right: 22px;
}

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

.recipe-grid article {
  padding: 30px;
  background: var(--bone);
}

.recipe-grid h3 {
  color: var(--ink);
}

.recipe-grid .label {
  margin-top: 26px;
  margin-bottom: 7px;
  color: var(--crimson);
}

.recipe-grid p:not(.label) {
  margin: 0;
  color: var(--muted-dark);
}

.diagnosis-table {
  border: 1px solid var(--hairline);
}

.diagnosis-table div {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--hairline);
}

.diagnosis-table div:last-child {
  border-bottom: 0;
}

.diagnosis-table h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
}

.diagnosis-table p {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--hairline);
  color: rgba(244, 241, 234, 0.72);
}

.site-footer p {
  margin: 0;
}

.site-footer .kicker {
  margin-bottom: 10px;
}

.signoff {
  font-family: var(--mono);
  color: var(--bone);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.signoff em {
  color: var(--crimson-highlight);
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1024px) {
  .control-grid,
  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px;
  }

  .brand-lockup {
    width: 136px;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
  }

  .hero-inner {
    justify-content: flex-end;
    padding: 148px 24px 56px;
  }

  .hero-media img {
    object-position: center;
  }

  h1 {
    font-size: clamp(48px, 16vw, 66px);
  }

  h2 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .meter-grid,
  .control-grid,
  .detail-list,
  .recipe-grid,
  .diagnosis-table div,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .control-grid article {
    min-height: 0;
  }

  .workflow-list li {
    grid-template-columns: 50px minmax(0, 1fr);
  }
}
