:root {
  --white: #f7f6f1;
  --ink: #061724;
  --glass: rgba(6, 23, 36, 0.9);
  --line: rgba(247, 246, 241, 0.24);
  --amber: #e8b758;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--white);
  font-family: var(--font-geist-sans), Arial, sans-serif;
}

button,
a { font: inherit; }

.stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}

.stage::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 15, 24, 0.08), transparent 42%),
    linear-gradient(0deg, rgba(3, 18, 30, 0.82), rgba(3, 18, 30, 0.24) 42%, transparent 66%);
  content: "";
}

.hero-picture,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture { display: block; }

.hero-image {
  object-fit: cover;
  object-position: center center;
  user-select: none;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: clamp(104px, 13vh, 160px);
  width: min(1180px, calc(100vw - 48px));
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 12, 22, 0.38);
  transform: translateX(50%);
}

.hero-wordmark {
  margin: 0;
  font-size: clamp(58px, 8.4vw, 142px);
  font-weight: 390;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.wordmark-your {
  color: #fbf7ee;
}

.wordmark-ai {
  display: inline;
  margin-right: 0;
  margin-left: 0;
}

.wordmark-a {
  color: #fbf7ee;
  font-weight: 470;
}

.wordmark-i {
  color: #f28a3d;
  font-weight: 450;
}

.wordmark-island-tail {
  color: #f28a3d;
}

.hero-claim {
  margin: clamp(12px, 1.5vh, 20px) 0 0;
  font-size: clamp(20px, 2.3vw, 36px);
  font-weight: 430;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.hero-description {
  margin: clamp(24px, 3vh, 38px) 0 0;
  color: rgba(247, 246, 241, 0.82);
  font-size: clamp(14px, 1.25vw, 20px);
  font-weight: 440;
  letter-spacing: 0.005em;
  line-height: 1.35;
}

.more-button {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(18px, 3.6vw, 52px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: white;
  background: rgba(3, 15, 24, 0.34);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: background 180ms ease, transform 180ms ease;
}

.more-button > span:first-child {
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.more-button:hover {
  transform: translateY(-2px);
  background: rgba(3, 15, 24, 0.68);
}

.more-button:focus-visible,
.close-button:focus-visible,
.panel-footer a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.info-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
}

.info-dialog::backdrop {
  background: rgba(1, 10, 16, 0.66);
  backdrop-filter: blur(18px) saturate(0.75);
}

.info-dialog[open] {
  display: grid;
  place-items: center;
  animation: dialog-in 240ms ease-out;
}

.info-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: calc(100vw - clamp(20px, 5vw, 80px));
  height: calc(100dvh - clamp(20px, 5vw, 80px));
  padding: clamp(22px, 3.4vw, 54px);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 10%, rgba(232, 183, 88, 0.12), transparent 32%),
    var(--glass);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.panel-topline,
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.panel-topline {
  padding-bottom: clamp(16px, 2vw, 30px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.close-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 27px;
  font-weight: 250;
  line-height: 1;
}

.panel-intro {
  align-self: center;
  padding: clamp(18px, 3vw, 44px) 0;
}

.panel-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-intro h2 {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 104px);
  font-weight: 480;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 5px 16px;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
}

.fact-grid article:first-child { padding-left: 0; }
.fact-grid article:last-child { padding-right: 0; border-right: 0; }

.fact-grid article > span {
  padding-top: 4px;
  color: var(--amber);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
}

.fact-grid h3 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 560;
  letter-spacing: -0.04em;
}

.fact-grid p {
  grid-column: 2;
  max-width: 380px;
  margin: 6px 0 0;
  color: rgba(247, 246, 241, 0.66);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.45;
}

.panel-footer {
  padding-top: clamp(16px, 2.4vw, 32px);
  font-size: clamp(11px, 1vw, 14px);
}

.panel-footer p { margin: 0; color: rgba(247, 246, 241, 0.66); }
.panel-footer strong { color: var(--white); font-weight: 600; }

.panel-footer a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.panel-footer a span { color: var(--amber); }

@keyframes dialog-in {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
  .hero-image { object-position: center bottom; }

  .hero-copy {
    bottom: 96px;
    width: calc(100vw - 32px);
  }

  .hero-wordmark { font-size: clamp(44px, 14.6vw, 68px); }
  .hero-claim { margin-top: 10px; font-size: clamp(18px, 5.4vw, 24px); }
  .hero-description {
    max-width: 350px;
    margin: 22px auto 0;
    font-size: clamp(12px, 3.5vw, 15px);
  }

  .more-button {
    right: 50%;
    bottom: 18px;
    transform: translateX(50%);
  }

  .more-button:hover { transform: translateX(50%) translateY(-2px); }

  .info-panel {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    padding: 18px;
  }

  .panel-intro { padding: 16px 0; }
  .panel-intro h2 { font-size: clamp(34px, 10.5vw, 56px); }

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

  .fact-grid article,
  .fact-grid article:first-child,
  .fact-grid article:last-child {
    grid-template-columns: 28px 1fr;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-grid article:last-child { border-bottom: 0; }
  .fact-grid h3 { font-size: 17px; }
  .fact-grid p { margin-top: 2px; font-size: 11px; line-height: 1.32; }

  .panel-footer { align-items: flex-end; }
  .panel-footer p { max-width: 48%; }
  .panel-footer a { font-size: 11px; }
}

@media (max-aspect-ratio: 4 / 5) {
  .stage::after {
    background:
      linear-gradient(180deg, rgba(3, 15, 24, 0.08), transparent 42%),
      linear-gradient(0deg, var(--ink) 0%, rgba(6, 23, 36, 0.92) 32%, transparent 68%);
  }

  .hero-image { object-position: center bottom; }
}

@media (max-height: 650px) {
  .panel-intro { padding: 12px 0; }
  .panel-intro h2 { font-size: clamp(32px, 5vw, 58px); }
  .fact-grid article { padding-top: 12px; padding-bottom: 12px; }
  .panel-footer { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .more-button { transition: none; }
  .info-dialog[open] { animation: none; }
}
