:root {
  --ink: #111512;
  --ink-2: #18201c;
  --paper: #f6f3ea;
  --paper-2: #e9efe9;
  --paper-3: #dfe8e9;
  --white: #ffffff;
  --line: rgba(17, 21, 18, 0.14);
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #5f6962;
  --muted-strong: #3d4842;
  --wheel: #7b4f2a;
  --lotus: #9c7a2f;
  --psyche: #3f7897;
  --dao: #1f2723;
  --jade: #23876f;
  --clay: #b46642;
  --amber: #c58a33;
  --shadow: 0 18px 44px rgba(17, 21, 18, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 14, 0.84);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 68px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 780;
}

.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background:
    url("fairloom-mark.svg") center / 23px 23px no-repeat,
    #f4eadb;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) inset;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 680;
  padding: 10px 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.site-main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: var(--hero-position, center center);
  background-size: cover;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 8, 7, 0.94) 0%,
      rgba(7, 11, 9, 0.82) 37%,
      rgba(7, 11, 9, 0.38) 72%,
      rgba(7, 11, 9, 0.1) 100%
    ),
    linear-gradient(180deg, rgba(5, 8, 7, 0.08), rgba(5, 8, 7, 0.76));
  content: "";
}

.hero-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 108px 0 62px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--jade);
  content: "";
}

.hero h1 {
  max-width: 960px;
  margin: 0;
  font-size: 82px;
  line-height: 0.94;
  letter-spacing: 0;
}

.identity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.identity-row img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 5px;
}

.identity-row span + span::before {
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.36);
  content: "/";
}

.hero-lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 22px;
  line-height: 1.43;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(18, 23, 20, 0.14);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 790;
  line-height: 1;
}

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

.button-light {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

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

.button-mark {
  color: var(--jade);
  font-size: 18px;
  line-height: 1;
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  width: min(100%, 900px);
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.hero-signal {
  min-height: 104px;
  padding: 18px;
  background: rgba(10, 14, 12, 0.48);
}

.hero-signal strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 15px;
}

.hero-signal img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
}

.hero-signal span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.section {
  background: var(--paper);
  color: var(--ink);
  padding: 104px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-cool {
  background: var(--paper-3);
}

.section-dark {
  background: #101614;
  color: var(--white);
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-dark .section-kicker {
  color: #45bfa5;
}

.section-title {
  max-width: 860px;
  margin: 0;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: 0;
}

.section-lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-lede {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 58px;
  align-items: start;
}

.split-center {
  align-items: center;
}

.doctrine-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 60px;
  align-items: start;
}

.doctrine-line {
  margin: 0;
  font-size: 62px;
  line-height: 0.98;
  letter-spacing: 0;
}

.doctrine-copy {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--line-dark);
}

.proof-item {
  min-height: 156px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.proof-item:last-child {
  grid-column: span 2;
  min-height: 128px;
}

.proof-item strong {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 18px;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.product-mark {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 5px;
}

.product-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-align: right;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.product-character {
  margin: 8px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 720;
}

.product-card p {
  color: var(--muted);
}

.product-card-body > p:not(.product-character):not(.product-label) {
  margin: 18px 0 24px;
}

.product-proof {
  display: grid;
  gap: 10px;
  margin: auto 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-proof span {
  color: var(--muted-strong);
  font-size: 14px;
}

.product-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.product-link span {
  color: var(--jade);
  font-size: 18px;
}

.map-grid,
.identity-grid,
.snapshot-grid,
.status-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.map-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.identity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px;
}

.snapshot-grid,
.status-grid {
  margin-top: 36px;
}

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

.status-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.map-item,
.identity-card,
.snapshot,
.status {
  background: var(--white);
  padding: 26px;
}

.map-item {
  min-height: 290px;
}

.map-item img,
.identity-card img,
.snapshot img {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 6px;
}

.map-number,
.step-code {
  color: var(--clay);
  font-size: 13px;
  font-weight: 840;
}

.map-item h3,
.identity-card h3,
.snapshot h3,
.status h3 {
  margin: 18px 0 10px;
  font-size: 23px;
  line-height: 1.12;
}

.map-item p,
.identity-card p,
.snapshot p,
.status p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.workflow {
  display: grid;
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.flow-step {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  background: var(--white);
}

.flow-step h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.flow-step .step-code {
  grid-row: 1 / span 2;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
}

.flow-step .evidence {
  grid-column: 3;
  grid-row: 2;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.feature {
  min-height: 168px;
  padding: 24px;
  background: var(--white);
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.16;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.callout h3 {
  margin: 0 0 12px;
  font-size: 25px;
}

.callout p {
  margin: 0;
  color: var(--muted);
}

.prompt-box {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px;
  background: rgba(255, 255, 255, 0.055);
}

.prompt-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 27px;
  line-height: 1.25;
}

.artifact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.artifact-head strong {
  font-size: 16px;
}

.artifact-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.artifact-body {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.artifact-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 22px;
  background: var(--white);
}

.artifact-row strong {
  color: var(--muted-strong);
  font-size: 13px;
  text-transform: uppercase;
}

.artifact-row span {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  background: #080b0a;
  color: var(--white);
  padding: 46px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero h1 {
    font-size: 62px;
  }

  .hero-lede {
    font-size: 20px;
  }

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

  .proof-grid,
  .product-grid,
  .map-grid,
  .identity-grid,
  .snapshot-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .proof-item:last-child {
    grid-column: auto;
  }

  .flow-step {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .flow-step .evidence {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .nav {
    width: min(100% - 28px, var(--max));
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 9px 10px;
  }

  .hero {
    min-height: 78svh;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 8, 7, 0.96), rgba(7, 11, 9, 0.74)),
      linear-gradient(180deg, rgba(5, 8, 7, 0.08), rgba(5, 8, 7, 0.78));
  }

  .hero-inner,
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero-inner {
    padding: 64px 0 46px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .hero-signals {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 34px;
  }

  .doctrine-line {
    font-size: 38px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .flow-step,
  .artifact-row {
    display: block;
  }

  .flow-step .step-code {
    display: block;
    grid-row: auto;
    margin-bottom: 12px;
  }

  .flow-step h3 {
    margin-bottom: 10px;
  }

  .flow-step p {
    margin-bottom: 12px;
  }

  .flow-step .evidence {
    grid-column: auto;
    grid-row: auto;
  }

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

@media (max-width: 430px) {
  .hero h1 {
    font-size: 38px;
  }

  .section-title {
    font-size: 30px;
  }

  .hero-signal,
  .product-card-body,
  .map-item,
  .identity-card,
  .snapshot,
  .status,
  .flow-step,
  .feature,
  .callout,
  .prompt-box {
    padding: 20px;
  }

  .prompt-box p {
    font-size: 22px;
  }
}
