:root {
  --black: #060606;
  --ink: #131313;
  --white: #ffffff;
  --paper: #f5f2eb;
  --muted: #6d6a64;
  --gold: #d6a13d;
  --line: rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--black);
  font-family: Inter, Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

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

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

.site-header {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr;
  left: 0;
  min-height: 286px;
  padding: 18px clamp(20px, 5vw, 70px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand img {
  height: 256px;
  margin: 0;
  object-fit: contain;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2vw, 34px);
  justify-content: flex-end;
}

.button,
.section-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 10px 0;
  text-transform: uppercase;
}

.site-nav a:hover {
  border-color: var(--gold);
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  justify-self: end;
  padding: 0;
  width: 42px;
}

.menu-toggle span {
  background: var(--black);
  display: block;
  height: 2px;
  margin: 8px auto;
  width: 24px;
}

.hero {
  background:
    radial-gradient(circle at 75% 18%, rgba(214, 161, 61, 0.2), transparent 30%),
    linear-gradient(130deg, var(--paper), #ffffff 48%, #ebe4d6);
  display: grid;
  gap: clamp(30px, 5vw, 64px);
  grid-template-columns: 1fr;
  min-height: 100vh;
  padding: 364px clamp(22px, 5vw, 72px) 80px;
}

.hero-copy h1,
.split-copy h2,
.section-title h2,
.contact h2 {
  font-size: clamp(54px, 8vw, 118px);
  letter-spacing: -0.07em;
  line-height: 0.88;
  margin: 0 0 28px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero-copy p,
.split-copy p,
.card p,
.work-item p,
.contact p {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  max-width: 760px;
}

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

.hero-system-visual {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 242, 235, 0.94)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 74px);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.15fr) minmax(0, 0.9fr);
  min-height: clamp(360px, 48vw, 640px);
  padding: clamp(22px, 4vw, 58px);
  position: relative;
  width: 100%;
}

.hero-system-visual::before,
.hero-system-visual::after {
  background: var(--gold);
  content: "";
  height: 3px;
  left: 31%;
  position: absolute;
  right: 31%;
  top: 50%;
  transform: translateY(-50%);
}

.hero-system-visual::after {
  border-right: 3px solid var(--gold);
  border-top: 3px solid var(--gold);
  height: 18px;
  left: auto;
  right: 29%;
  transform: translateY(-50%) rotate(45deg);
  width: 18px;
}

.system-column,
.system-core {
  align-self: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  min-height: 300px;
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  z-index: 1;
}

.system-column {
  background: var(--white);
}

.system-core {
  background: var(--black);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  color: var(--white);
}

.visual-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.system-column h2,
.system-core h2 {
  font-size: clamp(30px, 3vw, 52px);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.system-column ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.system-column li {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
  padding-top: 14px;
}

.flow-steps {
  display: grid;
  gap: 12px;
}

.flow-steps span {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--gold);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-weight: 900;
  min-height: 54px;
  padding: 0 18px;
  text-transform: uppercase;
}

.section-label {
  color: var(--gold);
  margin: 0 0 22px;
}

.button {
  align-items: center;
  background: var(--black);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  justify-content: center;
  margin-top: 18px;
  min-height: 58px;
  max-width: 100%;
  padding: 0 30px;
  text-align: center;
  transition: transform 180ms ease;
}

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

.hero-board {
  background: var(--black);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  color: var(--white);
  min-height: auto;
  overflow: hidden;
  position: relative;
}

.board-top {
  background: rgba(0, 0, 0, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  padding: 22px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.board-grid {
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: relative;
  z-index: 2;
}

.board-grid span,
.board-grid strong {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  min-height: 120px;
  padding: 24px;
}

.board-grid span {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
}

.board-grid strong {
  color: var(--gold);
  font-size: clamp(48px, 6vw, 92px);
  letter-spacing: -0.08em;
}

.marquee {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 22px 0;
}

.marquee div {
  animation: slide 18s linear infinite;
  display: flex;
  gap: 46px;
  width: max-content;
}

.marquee span {
  font-size: clamp(26px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.split {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: 140px minmax(0, 1fr);
}

.section-index {
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.cards {
  background: var(--white);
}

.section-title {
  margin-bottom: 42px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 360px;
  padding: 30px;
}

.card span {
  color: var(--gold);
  display: block;
  font-weight: 900;
  margin-bottom: 120px;
}

.card h3,
.work-item h3 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.work {
  background: var(--black);
  color: var(--white);
  display: grid;
  gap: 32px;
  grid-template-columns: 140px minmax(0, 1fr);
}

.work-item {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 1fr);
  padding: 34px 0;
}

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

.proof-card {
  background: var(--white);
  border-right: 1px solid var(--line);
  min-height: 260px;
  padding: clamp(28px, 5vw, 54px);
}

.proof-card strong {
  display: block;
  font-size: clamp(50px, 7vw, 104px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.proof-card span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.contact {
  background: var(--gold);
  color: var(--black);
  padding: clamp(86px, 11vw, 160px) clamp(22px, 5vw, 72px);
}

.contact h2 {
  max-width: 1120px;
}

.button-light {
  background: var(--white);
  color: var(--black);
}

.site-footer {
  align-items: center;
  background: var(--black);
  color: var(--white);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 28px clamp(22px, 5vw, 72px);
}

.footer-logo {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 900;
  gap: 18px;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
}

.footer-logo-mark {
  align-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72em;
  height: 1.35em;
  justify-content: center;
  letter-spacing: -0.08em;
  width: 1.35em;
}

.footer-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.footer-meta p {
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.footer-meta a {
  border-bottom: 1px solid rgba(214, 161, 61, 0.58);
  color: var(--gold);
  font-weight: 900;
  margin-right: 14px;
  text-transform: uppercase;
}

.footer-meta a:hover {
  border-color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
    min-height: 126px;
  }

  .brand img {
    height: 96px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .site-header.is-open .site-nav {
    background: var(--white);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0;
    grid-column: 1 / -1;
    padding-top: 10px;
  }

  .site-header.is-open .site-nav a {
    border-bottom: 1px solid var(--line);
    font-size: clamp(30px, 8vw, 48px);
    padding: 18px 0;
  }

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

  .hero {
    padding-top: calc(150px + env(safe-area-inset-top));
  }

  .card-grid,
  .proof {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .brand img {
    height: 72px;
    margin: 0;
  }

  .site-header {
    gap: 14px;
    min-height: 96px;
    padding: 10px 16px;
  }

  .hero {
    gap: 26px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: calc(118px + env(safe-area-inset-top));
  }

  .hero-copy h1,
  .split-copy h2,
  .section-title h2,
  .contact h2 {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: -0.045em;
    line-height: 0.96;
    margin-bottom: 20px;
  }

  .button,
  .section-label {
    font-size: 11px;
    letter-spacing: 0.09em;
    line-height: 1.2;
  }

  .hero-copy p,
  .split-copy p,
  .card p,
  .work-item p,
  .contact p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-system-visual {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
  }

  .hero-system-visual::before,
  .hero-system-visual::after {
    display: none;
  }

  .system-column,
  .system-core {
    min-height: auto;
  }

  .system-column h2,
  .system-core h2 {
    font-size: clamp(28px, 9vw, 40px);
    margin-bottom: 22px;
  }

  .hero-board {
    min-height: auto;
  }

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

  .board-grid span,
  .board-grid strong {
    min-height: 92px;
    padding: 16px;
  }

  .board-grid strong {
    font-size: clamp(38px, 13vw, 58px);
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card {
    min-height: 310px;
  }

  .card span {
    margin-bottom: 80px;
  }

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

  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  .footer-meta a,
  .footer-meta span {
    display: block;
  }

  .footer-meta a {
    margin-bottom: 8px;
    margin-right: 0;
    width: max-content;
  }
}
