@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  scroll-behavior: smooth;
  --night: #0b0b0c;
  --ivory: #f2ebdd;
  --sand: #d0c6b4;
  --gold: #dec599;
  --line: #857258;
  --display: "Cormorant Garamond", Georgia, serif;
  --edge: clamp(1.25rem, 5.4vw, 6.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ivory); font: 1rem/1.65 system-ui, sans-serif; }
h1, h2, p, dl, dd, ol { margin: 0; }
h1, h2, dt { font-family: var(--display); font-weight: 500; }
h2 { font-size: clamp(3rem, 5.4vw, 5.55rem); line-height: 0.98; letter-spacing: -0.042em; text-wrap: balance; }
a { color: inherit; text-underline-offset: 0.28em; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--edge), 81rem); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 2;
  inset: 0 auto auto var(--edge);
  padding: 0.6rem 1rem;
  transform: translateY(-125%);
  background: var(--night);
}
.skip:focus { transform: translateY(0.35rem); }

.site-header { position: relative; z-index: 1; }
.header-inner {
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.brand, .sections, .languages { display: flex; align-items: center; }
.brand, .sections a, .languages a, .action, .footer a { text-decoration: none; }
.brand { justify-self: start; gap: 0.62rem; font: 500 2rem/1 var(--display); }
.brand img { filter: saturate(0.65) brightness(1.2); }
.sections { gap: clamp(0.9rem, 3.2vw, 2.7rem); }
.languages { justify-self: end; gap: 0.12rem; }
.sections a, .languages a, .footer a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--sand);
  font-size: 0.85rem;
  transition: color 450ms var(--ease);
}
.sections a:hover, .languages a:hover, .footer a:hover { color: var(--gold); }
.languages a { justify-content: center; min-width: 2.75rem; font-size: 0.77rem; }
.languages a[aria-current] { color: var(--gold); text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  margin-top: -4.6rem;
  min-height: 100svh;
  display: grid;
  padding-top: 4.6rem;
}
.hero-art, .hero::after, .join-art, .join::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.hero-art img, .join-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art img { animation: light-settle 1.8s var(--ease) both; }
.hero::after {
  content: "";
  background: linear-gradient(180deg, rgb(11 11 12 / 87%), rgb(11 11 12 / 60%) 29%, transparent 59%, rgb(11 11 12 / 38%) 75%, var(--night) 100%);
}
@keyframes light-settle {
  from { opacity: 0.78; }
  to { opacity: 1; }
}
.hero-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-block: clamp(2.2rem, 7svh, 5.4rem) clamp(1.5rem, 5svh, 4rem);
}
.hero-copy { text-align: center; }
h1 { font-size: clamp(3.4rem, 8vw, 8.1rem); line-height: 0.96; letter-spacing: -0.052em; text-wrap: balance; }
:lang(en) > body h1, :lang(es) > body h1 { font-size: clamp(3.4rem, 7.35vw, 7.6rem); }
h1 em { color: var(--gold); font-style: normal; }
.hero-copy p { max-width: 46ch; margin: 1rem auto 0; color: var(--sand); font-size: clamp(1rem, 1.25vw, 1.13rem); }

.comparison { grid-row: 3; width: min(100%, 58rem); margin: clamp(8rem, 25svh, 16rem) auto 0; text-align: center; }
.readings { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 15%; text-align: start; }
.reading::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, var(--line), rgb(133 114 88 / 12%));
}
.reading:first-child::before { width: 2.25rem; }
.reading dt { color: var(--gold); font-size: clamp(1.7rem, 3.25vw, 2.75rem); line-height: 1.04; }
.reading dd { margin-top: 0.35rem; color: var(--sand); font-size: 0.94rem; }

.action {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  gap: 1rem;
  margin-top: 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
  font-size: 0.96rem;
  transition: border-color 600ms var(--ease), color 600ms var(--ease);
}
.action span { color: var(--gold); transition: transform 650ms var(--ease); }
.action:hover { border-color: var(--gold); color: var(--gold); }
.action:hover span { transform: translate(0.15rem, -0.15rem); }
.lab-note { margin-top: 0.6rem; color: var(--sand); font-size: 0.8rem; }

.about, .method { scroll-margin-top: 2rem; }
.about { padding-block: clamp(4.8rem, 9vw, 9rem) clamp(4.5rem, 8vw, 8rem); }
.about-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(2.6rem, 12vw, 12rem);
  align-items: start;
}
.about-copy h2, .join h2 { text-wrap: initial; }
.about-copy p, .method p, .join p { margin-top: 1.15rem; max-width: 49ch; color: var(--sand); }
.ripple-art {
  position: absolute;
  z-index: -1;
  inset: auto auto -1.2rem -0.5rem;
  width: 49%;
  height: 70%;
  object-fit: cover;
  object-position: 80% 55%;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 60% 54% at 53% 58%, #000 12%, transparent 90%);
}
.topics { padding-top: 0.5rem; }
.topic {
  border-top: 1px solid rgb(133 114 88 / 36%);
  padding-block: 1.1rem 1.35rem;
}
.topic dt { color: var(--gold); font-size: clamp(1.85rem, 3vw, 2.65rem); line-height: 1.1; }
.topic dd { max-width: 49ch; margin-top: 0.45rem; color: var(--sand); }

.method {
  padding-block: clamp(4.2rem, 8vw, 7.5rem);
  background: radial-gradient(ellipse 60% 48% at 50% 54%, #191711, var(--night) 100%);
}
.method-inner { text-align: center; }
.method p { margin-inline: auto; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 66rem;
  margin: clamp(2.35rem, 6vw, 4.5rem) auto 0;
  padding: 0;
  counter-reset: research-step;
  list-style: none;
  text-align: start;
}
.steps li {
  counter-increment: research-step;
  position: relative;
  min-width: 0;
  padding: 1.2rem clamp(0.75rem, 2.2vw, 2.1rem) 0 0;
  border-top: 1px solid rgb(133 114 88 / 50%);
  text-wrap: pretty;
}
.steps li::before {
  content: counter(research-step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font: 500 1.9rem/1 var(--display);
}

.join {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(27rem, 47vw, 43rem);
  padding-block: clamp(4rem, 10vw, 9rem);
}
.join-art { object-position: 62% 55%; }
.join::after {
  content: "";
  background:
    linear-gradient(180deg, var(--night), transparent 40%, transparent 72%, var(--night)),
    linear-gradient(90deg, rgb(11 11 12 / 94%) 0%, rgb(11 11 12 / 60%) 39%, transparent 80%);
}
.join-inner h2 { max-width: 17ch; }
.join-inner p { max-width: 43ch; }

.footer {
  display: flex;
  align-items: center;
  gap: 0.6rem clamp(1rem, 3.25vw, 3rem);
  flex-wrap: wrap;
  padding-block: 1.15rem 1.4rem;
  font-size: 0.85rem;
  color: var(--sand);
}
.footer p { margin-right: auto; }

@media (max-width: 740px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 0.9rem; padding-block: 0.5rem; }
  .brand { font-size: 1.78rem; }
  .brand img { width: 2rem; height: 2rem; }
  .sections { grid-row: 2; grid-column: 1 / -1; }
  .sections a { min-height: 2.5rem; }
  .languages { grid-row: 1; grid-column: 2; }
  .hero { margin-top: -6.25rem; padding-top: 6.25rem; }
  .readings { gap: 6%; }
  .about-inner { grid-template-columns: 1fr; gap: clamp(7rem, 27vw, 11rem); }
  .ripple-art { inset: 2rem auto auto 0; width: 100%; height: min(70%, 24rem); mask-image: radial-gradient(ellipse 59% 38% at 53% 64%, #000, transparent); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0; }
}

@media (max-width: 600px) {
  .hero-inner { padding-top: clamp(1.5rem, 4.5svh, 2.7rem); }
  h1, :lang(en) > body h1, :lang(es) > body h1 { font-size: clamp(3.1rem, 12.1vw, 4.7rem); }
  .hero-art { display: grid; align-items: center; inset: 14% 0 15%; }
  .hero-art img { height: auto; mask-image: linear-gradient(transparent, #000 27%, #000 74%, transparent); }
  .hero::after { background: linear-gradient(180deg, rgb(11 11 12 / 62%), transparent 52%, rgb(11 11 12 / 22%) 70%, var(--night) 100%); }
  .comparison { margin-top: clamp(7rem, 21svh, 12rem); }
  .reading dt { font-size: clamp(1.48rem, 5.8vw, 2.1rem); }
  .reading dd { font-size: 0.84rem; }
  .join::after {
    background:
      linear-gradient(180deg, var(--night), transparent 31%, transparent 72%, var(--night)),
      linear-gradient(90deg, rgb(11 11 12 / 83%), rgb(11 11 12 / 38%));
  }
}

@media (max-width: 360px) {
  .languages a { min-width: 2.45rem; }
  .hero-copy p { line-height: 1.5; }
  .comparison { margin-top: 6.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
