:root {
  --bg: #07141b;
  --ink: #f7f4ec;
  --muted: #d8ddd6;
  --accent: #e8c58f;
  --line: rgba(247, 244, 236, 0.26);
  --panel: rgba(7, 20, 27, 0.96);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(20px, 3.5vh, 40px) clamp(22px, 5vw, 80px)
           clamp(24px, 5vh, 56px);
  overflow: hidden;
}

.hero__media,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: 0;
  margin: 0;
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  animation: settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__scrim {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 16, 23, 0.55) 0%,
                    rgba(5, 16, 23, 0) 16%),
    linear-gradient(0deg, rgba(5, 16, 23, 0.5) 0%,
                    rgba(5, 16, 23, 0) 38%),
    linear-gradient(90deg, rgba(5, 16, 23, 0.93) 0%,
                    rgba(5, 16, 23, 0.72) 30%,
                    rgba(5, 16, 23, 0.24) 56%,
                    rgba(5, 16, 23, 0) 74%);
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  color: var(--ink);
}

.brand__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.brand__name span {
  color: var(--accent);
}

.nav {
  position: relative;
}

.about {
  position: relative;
}

.about summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.about summary::-webkit-details-marker {
  display: none;
}

.about summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.about[open] summary::after {
  transform: rotate(45deg);
}

.about__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(370px, calc(100vw - 44px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.about__panel h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
}

.about__panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.about__panel p:last-child {
  margin-bottom: 0;
}

.about__note {
  padding-left: 12px;
  border-left: 1px solid var(--accent);
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, 660px);
  padding-top: clamp(28px, 6vh, 64px);
  padding-bottom: clamp(8px, 2vh, 24px);
  transition: opacity 180ms ease;
}

.hero__content > * {
  animation: rise 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__content > :nth-child(1) {
  animation-delay: 40ms;
}

.hero__content > :nth-child(2) {
  animation-delay: 100ms;
}

.hero__content > :nth-child(3) {
  animation-delay: 180ms;
}

.hero__content > :nth-child(4) {
  animation-delay: 260ms;
}

.hero__content > :nth-child(5) {
  animation-delay: 340ms;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 24px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: clamp(24px, 4vh, 40px);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--bg);
  background: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease,
              color 160ms ease;
}

.cta:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.cta--disabled {
  display: block;
  padding: 12px 18px;
  border-style: dashed;
  border-color: var(--line);
  color: var(--muted);
  background: rgba(7, 20, 27, 0.42);
  cursor: default;
}

.cta--disabled small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.fineprint {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 20px 20px 28px;
  }

  .hero__img {
    object-position: 68% 50%;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(5, 16, 23, 0.72) 0%,
                      rgba(5, 16, 23, 0.12) 16%,
                      rgba(5, 16, 23, 0.5) 48%,
                      rgba(5, 16, 23, 0.94) 72%,
                      var(--bg) 100%);
  }

  .hero__content {
    align-self: end;
    padding-top: 20px;
    padding-bottom: 0;
  }

  h1 {
    margin: 14px 0 18px;
  }

  .about[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9;
    background: rgba(5, 16, 23, 0.58);
  }

  .about summary,
  .about__panel {
    z-index: 10;
  }

  .about summary {
    position: relative;
  }

  .hero:has(.about[open]) .hero__content {
    visibility: hidden;
    opacity: 0;
  }

  .about__panel {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    background: var(--bg);
  }
}

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