:root {
  color-scheme: light;
  --bg: #e8e6dd;
  --bg-2: #f4f2ea;
  --ink: #242424;
  --muted: rgba(36, 36, 36, 0.62);
  --dark: #222222;
  --dark-2: #151515;
  --white: #f7f5ee;
  --line: rgba(36, 36, 36, 0.16);
  --line-dark: rgba(247, 245, 238, 0.18);
  --red: #f23939;
  --pink: #f4c2ca;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Arial Narrow", "Helvetica Neue Condensed Bold", "Helvetica Neue", Arial, sans-serif;
  text-rendering: geometricPrecision;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
}

.preloader {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  background: #303030;
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-mark,
.brand {
  display: grid;
  gap: 0;
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preloader-mark {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
}

.preloader-axis {
  width: 1px;
  height: 78vh;
  background: rgba(247, 245, 238, 0.2);
}

.preloader-axis span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--white);
  animation: loadAxis 1.45s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

.preloader-percent {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 800;
}

.preloader-meta {
  position: absolute;
  color: rgba(247, 245, 238, 0.7);
  font-size: 12px;
}

.preloader-left {
  left: 36px;
  bottom: 22px;
}

.preloader-bottom {
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
}

.preloader-right {
  right: 10px;
  top: 50%;
  writing-mode: vertical-rl;
}

.preloader-year {
  right: 36px;
  bottom: 22px;
}

@keyframes loadAxis {
  to { height: 100%; }
}

.site-header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: start;
  gap: 24px;
  padding: 18px 36px 0;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  grid-column: 3;
  justify-self: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
}

.top-meta,
.site-header nav,
.section-label,
.underlined-action,
.nav-chip-row,
.coordinate-rail,
.project-list span,
.project-list a,
.privacy-panel a,
.release-section a,
footer,
.gesture-cards span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.top-meta {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-email {
  grid-column: 1;
}

.top-clock {
  grid-column: 2;
}

.site-header nav {
  grid-column: 5;
  justify-self: end;
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-header nav a {
  padding: 9px 11px;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 102px 36px 0;
  background:
    radial-gradient(circle at 62% 34%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%),
    var(--bg);
}

.hero-copy {
  position: absolute;
  top: 112px;
  left: 36px;
  width: min(335px, calc(100vw - 72px));
  z-index: 3;
}

.hero-copy p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.08;
  letter-spacing: 0;
}

.underlined-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.underlined-action span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
}

.course-card {
  position: absolute;
  top: 18px;
  right: 36px;
  z-index: 4;
  display: grid;
  grid-template-columns: 82px 1fr 28px;
  grid-template-rows: auto auto;
  gap: 2px 16px;
  align-items: center;
  width: min(328px, calc(100vw - 72px));
  min-height: 100px;
  padding: 13px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-decoration: none;
}

.course-card img {
  grid-row: 1 / 3;
  width: 82px;
  height: 82px;
  object-fit: cover;
}

.course-card strong {
  align-self: end;
  font-size: 18px;
  line-height: 0.92;
  letter-spacing: 0;
}

.course-card span {
  align-self: start;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.course-card i {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  font-style: normal;
  font-size: 28px;
}

.nav-chip-row {
  position: absolute;
  z-index: 5;
  top: 49%;
  left: 50%;
  display: flex;
  gap: 4px;
  transform: translate(-50%, -50%);
}

.nav-chip-row a {
  padding: 9px 12px;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.side-badge {
  position: absolute;
  left: 0;
  top: 42%;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 53px;
  height: 170px;
  background: var(--red);
  color: #fff;
}

.side-badge strong {
  font-size: 26px;
  line-height: 1;
}

.side-badge span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 13px;
  font-weight: 800;
}

.coordinate-rail {
  position: absolute;
  z-index: 6;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}

.coordinate-right {
  right: 9px;
  top: 36%;
  display: grid;
  gap: 52px;
  writing-mode: vertical-rl;
}

.coordinate-bottom {
  left: 36px;
  right: 36px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.award-seal {
  position: absolute;
  right: 19%;
  bottom: 22%;
  z-index: 4;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--dark) 0 42%, transparent 43%),
    conic-gradient(from 0deg, var(--red), #f58b78, var(--red));
  box-shadow: 0 8px 28px rgba(36, 36, 36, 0.12);
  animation: rotateSeal 18s linear infinite;
}

.award-seal span {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  display: grid;
  place-items: center;
}

@keyframes rotateSeal {
  to { transform: rotate(360deg); }
}

.paper-object {
  position: absolute;
  right: 15%;
  top: 29%;
  z-index: 2;
  width: clamp(170px, 19vw, 260px);
  aspect-ratio: 0.68;
  transform: rotate(-3deg);
  filter: drop-shadow(0 25px 30px rgba(36, 36, 36, 0.22));
}

.paper-page {
  position: absolute;
  inset: 0;
  background: #f8f4e8;
  border: 1px solid rgba(36, 36, 36, 0.14);
}

.page-a {
  transform: translate(18px, 16px) rotate(8deg);
  opacity: 0.58;
}

.page-b {
  transform: translate(9px, 8px) rotate(4deg);
  opacity: 0.78;
}

.page-c {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 18%;
}

.page-c span {
  width: 42px;
  height: 1px;
  background: rgba(36, 36, 36, 0.25);
}

.page-c p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.35;
}

.hero h1 {
  position: absolute;
  left: 36px;
  bottom: -6.8vw;
  z-index: 1;
  margin: 0;
  color: var(--dark);
  font-size: 450px;
  font-weight: 1000;
  line-height: 0.72;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: scaleX(1.08);
  transform-origin: left bottom;
}

.manifesto {
  min-height: 100svh;
  padding: 96px 36px;
  background: var(--bg);
}

.section-label {
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.txt-white {
  color: var(--white);
}

.manifesto h2,
.gesture-section h2,
.privacy-panel h2,
.release-section h2 {
  max-width: 1160px;
  margin: 0;
  font-size: 88px;
  font-weight: 1000;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-system {
  padding: 96px 36px 120px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.system-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  margin-bottom: 88px;
}

.system-intro p {
  max-width: 760px;
  margin: 0;
  font-size: 50px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.system-intro a,
.release-section a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metrics-grid div {
  min-height: 210px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics-grid strong {
  display: block;
  margin-bottom: 54px;
  font-size: 120px;
  line-height: 0.8;
  letter-spacing: 0;
}

.metrics-grid span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.stack-section {
  padding: 96px 36px 112px;
  background: var(--dark-2);
  color: var(--white);
}

.project-list {
  border-top: 1px solid var(--line-dark);
}

.project-list article {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr) auto;
  gap: 28px;
  align-items: end;
  min-height: 220px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}

.project-list span {
  display: block;
  margin-bottom: 18px;
  color: var(--pink);
  font-size: 13px;
}

.project-list h3 {
  margin: 0;
  font-size: 120px;
  font-weight: 1000;
  line-height: 0.78;
  letter-spacing: 0;
}

.project-list p {
  max-width: 420px;
  margin: 0;
  color: rgba(247, 245, 238, 0.68);
  font-size: 18px;
  line-height: 1.1;
}

.project-list a,
.privacy-panel a {
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.gesture-section {
  min-height: 100svh;
  padding: 96px 36px;
  background: var(--bg);
}

.gesture-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 96px;
  background: var(--line);
  border: 1px solid var(--line);
}

.gesture-cards article {
  min-height: 290px;
  padding: 22px;
  background: var(--bg);
}

.gesture-cards span {
  display: block;
  margin-bottom: 112px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.gesture-cards p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.08;
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.58fr) auto;
  gap: 34px;
  align-items: end;
  padding: 96px 36px;
  background: var(--dark);
  color: var(--white);
}

.privacy-panel p {
  margin: 0;
  color: rgba(247, 245, 238, 0.68);
  font-size: 18px;
  line-height: 1.18;
}

.release-section {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  min-height: 58svh;
  padding: 96px 36px;
  background: var(--bg);
}

.release-section img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(36, 36, 36, 0.12);
}

.release-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 20px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 36px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

footer nav {
  display: flex;
  gap: 22px;
}

footer a {
  text-decoration: none;
}

.plain-page {
  background: var(--bg);
}

.plain-page .site-header {
  position: sticky;
  color: var(--ink);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.document {
  width: min(820px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
}

.document .eyebrow {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.document h1 {
  margin: 0 0 42px;
  font-size: 136px;
  line-height: 0.78;
  letter-spacing: 0;
}

.document h2 {
  margin: 50px 0 12px;
  font-size: 52px;
  line-height: 0.92;
  letter-spacing: 0;
}

.document p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.document a {
  color: var(--red);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding: 14px 18px 0;
  }

  .brand {
    grid-column: 1;
    justify-self: start;
    font-size: 13px;
  }

  .top-email,
  .top-clock {
    display: none;
  }

  .site-header nav {
    grid-column: 2;
    gap: 4px;
  }

  .site-header nav a {
    padding: 7px 8px;
    font-size: 10px;
  }

  .hero {
    min-height: 100svh;
    padding: 78px 18px 0;
  }

  .hero-copy {
    top: 112px;
    left: 18px;
    width: calc(100vw - 72px);
  }

  .course-card {
    top: 72px;
    right: 18px;
    grid-template-columns: 1fr 24px;
    width: min(270px, calc(100vw - 36px));
    min-height: 78px;
  }

  .course-card img {
    display: none;
  }

  .course-card strong {
    font-size: 20px;
  }

  .course-card span {
    font-size: 12px;
  }

  .nav-chip-row {
    top: auto;
    bottom: 47px;
    gap: 3px;
  }

  .nav-chip-row a {
    padding: 9px 11px;
    font-size: 12px;
  }

  .nav-chip-row a:nth-child(n+3) {
    display: none;
  }

  .side-badge {
    top: 39%;
  }

  .award-seal {
    right: 18%;
    bottom: 47%;
    width: 110px;
    height: 110px;
  }

  .paper-object {
    top: 24%;
    right: 34px;
    width: 190px;
  }

  .page-c p {
    font-size: 17px;
  }

  .hero h1 {
    left: -13px;
    bottom: 48px;
    font-size: 210px;
  }

  .coordinate-bottom {
    left: 0;
    right: 0;
    bottom: 8px;
  }

  .manifesto,
  .about-system,
  .stack-section,
  .gesture-section,
  .privacy-panel,
  .release-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .manifesto h2,
  .gesture-section h2,
  .privacy-panel h2,
  .release-section h2 {
    font-size: 68px;
  }

  .system-intro p {
    font-size: 40px;
  }

  .metrics-grid strong {
    font-size: 76px;
  }

  .project-list h3 {
    font-size: 76px;
  }

  .document h1 {
    font-size: 92px;
  }

  .document h2 {
    font-size: 42px;
  }

  .system-intro,
  .privacy-panel,
  .release-section,
  .project-list article {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .gesture-cards {
    grid-template-columns: 1fr;
  }

  .project-list article {
    min-height: 270px;
  }
}

@media (max-width: 540px) {
  .site-header nav a:nth-child(n+3) {
    display: none;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.12;
  }

  .course-card {
    display: none;
  }

  .hero-copy {
    top: 88px;
    width: min(276px, calc(100vw - 72px));
  }

  .coordinate-right {
    top: 10px;
  }

  .hero h1 {
    left: -6px;
    bottom: 41px;
    font-size: 132px;
  }

  .paper-object {
    right: -30px;
  }

  .manifesto {
    min-height: 86svh;
  }

  .manifesto h2,
  .gesture-section h2,
  .privacy-panel h2,
  .release-section h2,
  .system-intro p {
    font-size: 42px;
    letter-spacing: 0;
  }

  .system-intro p {
    font-size: 24px;
    line-height: 1.02;
  }

  .project-list h3 {
    font-size: 42px;
  }

  .metrics-grid strong {
    font-size: 58px;
  }

  .document h1 {
    font-size: 58px;
  }

  .document h2 {
    font-size: 34px;
  }

  .release-section img {
    width: 92px;
    height: 92px;
  }
}
