:root {
  --ink: #0b1110;
  --ink-2: #111b18;
  --paper: #f5f0e6;
  --muted: #a9b2a5;
  --soft: rgba(245, 240, 230, 0.72);
  --line: rgba(245, 240, 230, 0.16);
  --line-dark: rgba(11, 17, 16, 0.16);
  --acid: #d7ff79;
  --coral: #ff6a4a;
  --cyan: #78e8d7;
  --violet: #8b76ff;
  --shadow: 0 36px 100px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 22% 10%, rgba(215, 255, 121, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 28%, rgba(120, 232, 215, 0.14), transparent 28rem),
    linear-gradient(135deg, rgba(245, 240, 230, 0.045) 1px, transparent 1px),
    var(--ink);
  background-size: auto, auto, 42px 42px, auto;
  font-family: "Space Grotesk", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  content: "";
  background: linear-gradient(90deg, rgba(11, 17, 16, 0.94), transparent 38%, transparent 68%, rgba(11, 17, 16, 0.9));
  pointer-events: none;
}

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

#helix-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header,
main,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 16, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-weight: 700;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(245, 240, 230, 0.06);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  inset: 8px 12px;
  content: "";
  border-left: 2px solid var(--acid);
  border-right: 2px solid var(--coral);
  border-radius: 50%;
  transform: rotate(18deg);
}

.brand-mark::after {
  inset: 12px 8px;
  border-color: var(--cyan);
  opacity: 0.6;
  transform: rotate(-18deg);
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a,
.header-link,
.button {
  min-height: 42px;
  padding: 13px 16px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a:hover {
  border-color: var(--line);
  color: var(--acid);
}

.header-link {
  justify-self: end;
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 56px;
  align-items: end;
  min-height: calc(100vh - 76px);
  padding: 72px 0 68px;
}

.label {
  margin: 0 0 18px;
  color: var(--acid);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(5.2rem, 12vw, 12rem);
  line-height: 0.82;
  text-wrap: balance;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 7.8rem);
  line-height: 0.86;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.08;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-copy > p:not(.label) {
  max-width: 650px;
  color: rgba(245, 240, 230, 0.74);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--line);
}

.button.primary {
  background: var(--acid);
  color: var(--ink);
}

.button.ghost {
  color: var(--paper);
}

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

.specimen-card {
  min-height: 620px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(245, 240, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 230, 0.05) 1px, transparent 1px),
    rgba(245, 240, 230, 0.045);
  background-size: 28px 28px;
  box-shadow: var(--shadow);
}

.specimen-top,
.specimen-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.specimen-bottom {
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  min-height: 118px;
}

.specimen-bottom strong {
  display: block;
  margin-bottom: 10px;
  color: var(--acid);
}

.specimen-bottom p {
  margin-bottom: 0;
  max-width: 310px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.helix-object {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.helix-object::before,
.helix-object::after {
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 50%;
  width: 132px;
  content: "";
  border-left: 4px solid var(--acid);
  border-right: 4px solid var(--coral);
  border-radius: 50%;
  transform: translateX(-50%) rotate(18deg);
}

.helix-object::after {
  width: 210px;
  border-color: rgba(120, 232, 215, 0.42);
  transform: translateX(-50%) rotate(-18deg);
}

.helix-object span {
  position: absolute;
  left: 50%;
  width: 210px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--soft), transparent);
  transform: translateX(-50%);
}

.helix-object span:nth-child(1) { top: 92px; }
.helix-object span:nth-child(2) { top: 140px; }
.helix-object span:nth-child(3) { top: 188px; }
.helix-object span:nth-child(4) { top: 236px; }
.helix-object span:nth-child(5) { top: 284px; }
.helix-object span:nth-child(6) { top: 332px; }

.craft,
.strand,
.contact {
  padding: 105px 0;
}

.craft {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 52px;
  align-items: end;
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.craft-grid article {
  display: grid;
  grid-template-columns: 72px 0.55fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px;
  background: rgba(245, 240, 230, 0.055);
}

.craft-grid span {
  color: var(--coral);
  font-weight: 700;
}

.strand {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 58px;
  align-items: center;
}

.strand-visual {
  display: grid;
  gap: 16px;
}

.strand-visual div {
  min-height: 140px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(215, 255, 121, 0.22), transparent 38%),
    rgba(245, 240, 230, 0.05);
}

.strand-visual div:nth-child(2) {
  margin-left: 70px;
  background:
    linear-gradient(90deg, rgba(255, 106, 74, 0.22), transparent 38%),
    rgba(245, 240, 230, 0.05);
}

.strand-visual div:nth-child(3) {
  margin-left: 28px;
  background:
    linear-gradient(90deg, rgba(120, 232, 215, 0.22), transparent 38%),
    rgba(245, 240, 230, 0.05);
}

.strand-copy ol {
  display: grid;
  gap: 1px;
  margin: 38px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.strand-copy li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  padding: 24px;
  background: rgba(245, 240, 230, 0.055);
}

.strand-copy strong {
  color: var(--acid);
}

.strand-copy span {
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.78fr);
  gap: 54px;
  align-items: end;
  padding-bottom: 130px;
}

.contact-links {
  display: grid;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.contact-links a {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-links a:hover {
  color: var(--acid);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer span:last-child {
  display: flex;
  gap: 20px;
}

.legal {
  width: min(820px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 70px 0;
}

.legal .brand {
  margin-bottom: 80px;
}

.legal h1 {
  font-size: clamp(5rem, 14vw, 10rem);
}

.legal .button {
  margin-top: 24px;
}

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

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

  .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .hero,
  .craft,
  .strand,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .specimen-card {
    min-height: 560px;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .footer {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 0.98rem;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .nav a,
  .header-link,
  .button {
    padding-inline: 11px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(4.1rem, 19vw, 6.8rem);
  }

  h2 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .hero {
    gap: 34px;
    padding-top: 46px;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .specimen-card {
    min-height: 480px;
  }

  .helix-object {
    height: 330px;
  }

  .craft-grid article,
  .strand-copy li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .strand-visual div:nth-child(2),
  .strand-visual div:nth-child(3) {
    margin-left: 0;
  }
}
