:root {
  --structure: #2f4e74;
  --system: #3f628b;
  --fold-light: #adc7fd;
  --ink: #11120f;
  --paper: #f2efe7;
  --paper-2: #e9e5da;
  --grid: rgba(17, 18, 15, 0.045);
  --hairline: rgba(17, 18, 15, 0.26);
  --page-pad: clamp(20px, 4vw, 64px);
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 5;
  width: calc(100% - (var(--page-pad) * 2));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--ink);
}

.name-lockup {
  color: var(--structure);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.name-lockup:focus-visible {
  outline: 2px solid var(--system);
  outline-offset: 7px;
}

.hero {
  width: calc(100% - (var(--page-pad) * 2));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 40px 3vw 40px 0;
}

h1 {
  margin: 0;
  font-size: clamp(86px, 12vw, 188px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--structure);
}

.fold-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--ink);
  background: var(--structure);
}

.fold {
  position: absolute;
  width: 90%;
  aspect-ratio: 1.2;
  right: -25%;
  clip-path: polygon(42% 0, 100% 0, 58% 100%, 0 100%);
  transform: translateY(120%);
  animation: fold-rise 1.25s cubic-bezier(0.2, 0.75, 0.22, 1) forwards;
}

.fold-back {
  top: 7%;
  right: 31%;
  background: var(--paper-2);
  opacity: 0.2;
  animation-delay: 0.08s;
}

.fold-mid {
  top: 25%;
  right: 2%;
  background: var(--system);
  animation-delay: 0.18s;
}

.fold-light {
  top: 44%;
  background: var(--fold-light);
  animation-delay: 0.28s;
}

.signal-line {
  position: absolute;
  right: 14%;
  bottom: 11%;
  left: 14%;
  height: 1px;
  background: rgba(242, 239, 231, 0.35);
}

.signal-node {
  position: absolute;
  top: -6px;
  left: 0;
  width: 18px;
  height: 12px;
  background: var(--ink);
  clip-path: polygon(34% 100%, 0 100%, 66% 0, 100% 0);
  animation: node-travel 4s ease-in-out infinite alternate;
}

.signal-node::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--fold-light);
  clip-path: inherit;
}

.site-footer {
  min-height: 76px;
}

.progress-track {
  width: min(330px, 52vw);
  height: 1px;
  overflow: hidden;
  background: var(--hairline);
}

.progress-track span {
  display: block;
  width: 45%;
  height: 1px;
  background: var(--system);
  animation: progress-breathe 3.6s ease-in-out infinite alternate;
}

@keyframes fold-rise {
  to { transform: translateY(0); }
}

@keyframes node-travel {
  to { left: calc(100% - 18px); }
}

@keyframes progress-breathe {
  from { width: 18%; }
  to { width: 72%; }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: calc(100svh - 148px);
    padding: 48px 0;
  }

  h1 {
    font-size: clamp(80px, 19vw, 150px);
  }

  .fold-stage {
    min-height: 220px;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .fold {
    width: 40%;
    top: 20%;
  }

  .fold-back { right: 53%; }
  .fold-mid { right: 25%; }
  .fold-light { right: -3%; }
}

@media (max-width: 620px) {
  .site-header { min-height: 62px; }
  .name-lockup { font-size: 12px; }
  .site-header > span { font-size: 9px; }
  .hero-copy { min-height: calc(100svh - 126px); }
  h1 { font-size: clamp(67px, 19vw, 108px); }
  .fold-stage { min-height: 176px; }
  .site-footer { min-height: 64px; }
}

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