:root {
  --charcoal: #11100e;
  --charcoal-soft: #1a1815;
  --walnut: #2d2118;
  --ivory: #eee7d8;
  --ivory-muted: #bdb4a3;
  --gold: #b89a5d;
  --gold-soft: rgba(184, 154, 93, 0.22);
  --line: rgba(238, 231, 216, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 77% 12%, rgba(184, 154, 93, 0.1), transparent 28rem),
    linear-gradient(180deg, #15130f 0%, var(--charcoal) 58%, #0b0a09 100%);
  font-family: var(--serif);
  font-size: 18px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.018) 50%, transparent 50.1%);
  background-size: 9rem 100%;
  opacity: 0.3;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  font-size: 1.5rem;
  letter-spacing: 0.11em;
}

.brand-domain,
.site-header nav,
.eyebrow,
.section-number,
.hero-footnote,
.harbor-card-top,
.payment-address,
.footer-meta,
.lookup-form label,
.lookup-form small,
.payment-note {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.66rem;
}

.brand-domain {
  color: var(--gold);
}

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.8rem);
}

.site-header nav a {
  text-decoration: none;
  color: var(--ivory-muted);
  transition: color 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ivory);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  align-items: center;
  gap: 5vw;
  padding: 9rem clamp(1.25rem, 7vw, 8rem) 6rem;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.eyebrow,
.section-number {
  color: var(--gold);
  margin: 0 0 1.4rem;
}

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

h1 {
  margin-bottom: 2rem;
  font-weight: 400;
  font-size: clamp(4.3rem, 9vw, 9.2rem);
  line-height: 0.78;
  letter-spacing: -0.055em;
}

h1 em {
  font-weight: 400;
  color: var(--gold);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5.5vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.hero-intro,
.manifesto-copy > p,
.gateway > p,
.founder-copy > p,
.harbor-copy > p {
  max-width: 37rem;
  color: var(--ivory-muted);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--gold);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  transition: background 180ms ease, color 180ms ease;
}

.button-primary {
  background: var(--gold);
  color: var(--charcoal);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ivory);
  border-color: var(--ivory);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--gold-soft);
}

.hero-object {
  position: relative;
  width: min(41vw, 34rem);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
}

.orbit,
.seal {
  position: absolute;
  border-radius: 50%;
}

.orbit {
  inset: 4%;
  border: 1px solid rgba(184, 154, 93, 0.34);
}

.orbit-one {
  animation: rotate 42s linear infinite;
}

.orbit-one::before,
.orbit-two::before {
  content: "✦";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  color: var(--gold);
  transform: translateX(-50%);
}

.orbit-two {
  inset: 14%;
  border-style: dashed;
  opacity: 0.55;
  animation: rotate 68s linear infinite reverse;
}

.seal {
  inset: 25%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  background:
    radial-gradient(circle at 50% 42%, rgba(184, 154, 93, 0.2), transparent 50%),
    #15130f;
  box-shadow: 0 0 7rem rgba(184, 154, 93, 0.18), inset 0 0 0 0.7rem #15130f,
    inset 0 0 0 0.75rem rgba(184, 154, 93, 0.32);
}

.north {
  position: absolute;
  top: 15%;
  color: var(--gold);
}

.seal-xo {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: 0.08em;
}

.seal-copy {
  position: absolute;
  bottom: 16%;
  width: 82%;
  text-align: center;
  color: var(--gold);
  font-family: var(--mono);
  font-size: clamp(0.42rem, 0.7vw, 0.56rem);
  letter-spacing: 0.1em;
}

.hero-footnote {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.25rem, 7vw, 8rem);
  right: clamp(1.25rem, 7vw, 8rem);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ivory-muted);
}

.hero-footnote strong {
  color: var(--ivory);
  font-weight: 400;
}

.manifesto,
.harbor,
.gateway-grid,
.founder,
footer {
  margin-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.manifesto {
  display: grid;
  grid-template-columns: 5rem 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(6rem, 12vw, 11rem) 0;
  border-top: 1px solid var(--line);
}

.manifesto-copy {
  align-self: end;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pillars span {
  padding: 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.harbor {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(2rem, 5vw, 6rem);
}

.harbor-stage {
  min-height: 38rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 30rem);
  align-items: end;
  gap: 3rem;
  margin-top: 3rem;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.45)),
    radial-gradient(circle at 70% 60%, rgba(184, 154, 93, 0.17), transparent 30%),
    linear-gradient(135deg, #201b15, #0e0d0b);
}

.harbor-stage::before,
.harbor-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.harbor-stage::before {
  left: -10%;
  right: -10%;
  bottom: 16%;
  height: 17rem;
  border-top: 1px solid rgba(184, 154, 93, 0.16);
  border-radius: 50%;
  transform: rotate(-3deg);
  box-shadow: 0 -2rem 6rem rgba(184, 154, 93, 0.05);
}

.harbor-stage::after {
  top: 11%;
  right: 11%;
  width: 8rem;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 4rem rgba(184, 154, 93, 0.14);
}

.harbor-copy,
.harbor-card {
  position: relative;
  z-index: 2;
}

.text-link {
  display: inline-flex;
  gap: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--gold);
  text-decoration: none;
  color: var(--gold);
}

.harbor-card {
  min-height: 27rem;
  padding: 1.5rem;
  border: 1px solid rgba(184, 154, 93, 0.44);
  background: rgba(13, 12, 10, 0.76);
  backdrop-filter: blur(10px);
}

.harbor-card-top {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
}

.bottle {
  position: relative;
  width: 8rem;
  height: 15rem;
  margin: 3rem auto 2rem;
}

.glass {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 12rem;
  border: 1px solid rgba(238, 231, 216, 0.52);
  border-radius: 2.8rem 2.8rem 1.2rem 1.2rem;
  background: linear-gradient(90deg, rgba(238, 231, 216, 0.04), rgba(238, 231, 216, 0.12), rgba(238, 231, 216, 0.02));
  box-shadow: inset 0 0 2rem rgba(238, 231, 216, 0.05);
}

.cork {
  position: absolute;
  top: 0;
  left: 2.75rem;
  width: 2.5rem;
  height: 2.8rem;
  border-radius: 0.3rem;
  background: #6e4c2f;
  box-shadow: inset 0 0 1rem rgba(0, 0, 0, 0.35);
}

.scroll {
  position: absolute;
  z-index: 2;
  left: 2.3rem;
  bottom: 3rem;
  width: 3.4rem;
  height: 6rem;
  border-radius: 50%;
  border: 1px solid rgba(184, 154, 93, 0.7);
  transform: rotate(-11deg);
  background: linear-gradient(90deg, #cabb99, #e4d7b8, #b6a47f);
}

.harbor-card p {
  margin-bottom: 0;
  text-align: center;
  color: var(--ivory-muted);
}

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

.gateway {
  min-height: 39rem;
  padding: clamp(2rem, 5vw, 5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gateway h2 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.lookup-form {
  margin-top: 4rem;
}

.lookup-form label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--gold);
}

.lookup-form > div {
  display: flex;
  border-bottom: 1px solid var(--gold);
}

.lookup-form input {
  width: 100%;
  padding: 1rem 0;
  border: 0;
  outline: 0;
  color: var(--ivory);
  background: transparent;
  font: inherit;
  font-size: 1.5rem;
}

.lookup-form input::placeholder {
  color: #655f55;
}

.lookup-form button {
  width: 4rem;
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.lookup-form small,
.payment-note {
  display: block;
  margin-top: 0.8rem;
  color: var(--ivory-muted);
  line-height: 1.6;
}

.payment {
  background:
    radial-gradient(circle at 78% 72%, rgba(184, 154, 93, 0.14), transparent 17rem),
    linear-gradient(145deg, rgba(45, 33, 24, 0.44), transparent);
}

.payment-address {
  margin-top: 4rem;
  padding: 1.7rem;
  border: 1px solid var(--gold);
}

.payment-address span,
.payment-address strong,
.payment-address button {
  display: block;
}

.payment-address span {
  color: var(--gold);
}

.payment-address strong {
  margin: 0.8rem 0 1.7rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: none;
}

.payment-address button {
  padding: 0;
  border: 0;
  color: var(--ivory-muted);
  background: transparent;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.founder {
  position: relative;
  min-height: 47rem;
  display: grid;
  grid-template-columns: 9rem 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(6rem, 11vw, 10rem) 0;
  border-top: 1px solid var(--line);
}

.founder-number {
  align-self: start;
  padding-top: 1rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.founder-object {
  position: relative;
  min-height: 30rem;
  perspective: 900px;
}

.box-lid,
.box-body {
  position: absolute;
  left: 50%;
  width: min(32rem, 86%);
  transform: translateX(-50%) rotateX(56deg) rotateZ(-8deg);
  border: 1px solid #765835;
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 8px),
    linear-gradient(135deg, #543b27, #221711);
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.44);
}

.box-lid {
  top: 0;
  height: 14rem;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 4rem;
  letter-spacing: 0.08em;
  transform-origin: bottom;
  transform: translateX(-50%) rotateX(68deg) rotateZ(-8deg) translateY(-3rem);
}

.box-body {
  top: 12rem;
  height: 16rem;
  border-color: rgba(184, 154, 93, 0.52);
  background: linear-gradient(135deg, #16130f, #292016);
}

.guide,
.pass,
.wax {
  position: absolute;
  border: 1px solid rgba(184, 154, 93, 0.5);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.guide {
  left: 8%;
  top: 12%;
  width: 34%;
  height: 72%;
  display: grid;
  place-items: center;
  background: #c7b995;
  color: #32271d;
}

.pass {
  right: 8%;
  top: 15%;
  width: 42%;
  height: 29%;
  display: grid;
  place-items: center;
  background: #2a2118;
}

.wax {
  right: 20%;
  bottom: 16%;
  width: 4.6rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #71442e;
  font-size: 1.4rem;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0.8rem 0 0;
  color: var(--ivory-muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
  color: var(--ivory-muted);
}

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

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

@media (max-width: 900px) {
  .site-header nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 10rem;
  }

  .hero-object {
    width: min(88vw, 30rem);
    margin: 2rem auto 5rem;
  }

  .hero-footnote {
    grid-template-columns: auto 1fr;
  }

  .manifesto,
  .section-heading,
  .founder {
    grid-template-columns: 1fr;
  }

  .manifesto > .section-number,
  .section-heading > .section-number {
    margin-bottom: -1rem;
  }

  .harbor-stage {
    grid-template-columns: 1fr;
  }

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

  .founder-number {
    writing-mode: horizontal-tb;
  }

  .founder-object {
    min-height: 27rem;
  }

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

  .footer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-block: 1.4rem;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 6.2rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-footnote {
    position: static;
    margin-top: 2rem;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .manifesto,
  .harbor,
  .founder {
    padding-block: 5rem;
  }

  .harbor-stage,
  .gateway {
    padding: 1.4rem;
  }

  .harbor-card {
    min-height: 24rem;
  }

  .payment-address strong {
    font-size: 3.7rem;
  }

  .founder-object {
    min-height: 21rem;
  }

  .box-lid {
    height: 10rem;
  }

  .box-body {
    top: 9rem;
    height: 11rem;
  }
}
