:root {
  color-scheme: dark;
  --night: #090d15;
  --panel: #0c111b;
  --ivory: #f4eee3;
  --muted: #b5b5bd;
  --gold: #eac490;
  --line: #33313a;
  --edge: clamp(22px, 6vw, 96px);
  --type-sans: system-ui, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --type-serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-family: var(--type-sans);
  background: var(--night);
  color: var(--ivory);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { background: var(--gold); color: var(--night); }

.wrap { width: min(100% - 2 * var(--edge), 1440px); margin-inline: auto; }
.skip { position: absolute; z-index: 5; padding: 12px 16px; background: var(--ivory); color: var(--night); transform: translateY(-120%); }
.skip:focus { transform: none; }

.mast { min-height: 82px; display: flex; align-items: center; justify-content: space-between; position: absolute; inset: 0 0 auto; z-index: 2; border-bottom: 1px solid #dbc6a52c; }
.identity { display: inline-flex; align-items: center; gap: 14px; font: 700 .8rem/1 var(--type-sans); letter-spacing: .29em; min-height: 44px; }
.crest { position: relative; display: inline-block; width: 24px; height: 24px; border: 1px solid var(--gold); border-radius: 50%; transform: rotate(-36deg); flex: none; }
.crest::before { content: ""; position: absolute; width: 31px; height: 1px; top: 10px; left: -4px; background: var(--gold); }
.crest::after { content: ""; position: absolute; width: 6px; height: 6px; inset: 8px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px #eac49088; }
.mast nav { display: flex; gap: clamp(20px, 3vw, 48px); }
.mast nav a, .footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9rem; transition: color .2s ease; }
.mast nav a:hover, .footer a:hover { color: var(--gold); }

.hero { min-height: 710px; min-height: max(710px, 94svh); position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #080c13; }
.hero-art { position: absolute; z-index: -2; inset: 64px 0 0 13%; mask-image: linear-gradient(#0000, #000 9%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 48%; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #080c13 5%, #080c13ed 16%, #080c138f 33%, transparent 58%), linear-gradient(0deg, #080c13 1%, transparent 27%, transparent 87%, #080c139c); }
.hero-content { padding-block: 131px 100px; }
.overline { display: flex; gap: 12px; align-items: center; color: var(--gold); font-size: .77rem; font-weight: 600; letter-spacing: .17em; line-height: 1.5; }
.overline span { width: 26px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--type-serif); font-weight: 700; }
h1 { margin-top: 15px; font-size: clamp(70px, 8.45vw, 148px); letter-spacing: .025em; line-height: 1.02; }
.subtitle { margin-top: 10px; color: var(--gold); font-family: Georgia, serif; font-size: clamp(26px, 4vw, 66px); letter-spacing: .185em; line-height: 1; text-transform: uppercase; }
.intro { margin-top: 28px; color: #d4d0cb; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.8; }
.primary { display: inline-flex; align-items: center; gap: 27px; margin-top: 32px; padding: 13px 18px; min-height: 48px; border: 1px solid #ae8c64; background: #191615ab; color: var(--gold); font-size: .95rem; transition: border-color .25s ease, background .25s ease, color .25s ease; }
.primary:hover { background: var(--gold); color: #1a1410; border-color: var(--gold); }
.primary:active { background: #d8af77; }
.chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin-bottom: 3px; }
.hero-caption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; min-height: 54px; border-top: 1px solid #dbc6a538; color: #b7a995; font-size: .75rem; letter-spacing: .11em; }
.hero-caption span:first-child { display: flex; gap: 10px; align-items: center; }
.hero-caption i { width: 12px; height: 1px; background: currentColor; }

.vessel, .mission-content { padding-block: clamp(62px, 9vw, 132px); }
.section-heading h2 { margin-top: 12px; font-size: clamp(42px, 5.3vw, 76px); line-height: 1.1; letter-spacing: .05em; }
.anatomy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 6vw, 100px); margin-top: 42px; }
.schematic { min-width: 0; border: 1px solid var(--line); background: var(--panel); }
.viewfinder { position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.22,.61,.36,1); transform: scale(var(--zoom, 1.05)); transform-origin: var(--origin, 58% 52%); }
.viewfinder::after { content: ""; position: absolute; inset: 0; opacity: .24; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #d0b58e55 calc(25% - 1px) 25%), repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), #d0b58e55 calc(25% - 1px) 25%); pointer-events: none; }
.point { display: none; position: absolute; z-index: 1; top: var(--point-y, 58%); left: var(--point-x, 59%); width: 15px; height: 15px; border: 1px solid #fff1d8; border-radius: 50%; transform: translate(-50%, -50%); background: #15141d; box-shadow: inset 0 0 0 4px #edc38d, 0 0 0 6px #fbd09e29; transition: top .45s ease, left .45s ease; }
.anatomy.is-interactive .point { display: block; }
.anatomy[data-view="core"] { --point-x: 85%; --point-y: 37%; --zoom: 1.2; --origin: 87% 37%; }
.anatomy[data-view="bridge"] { --point-x: 29%; --point-y: 67%; --zoom: 1.17; --origin: 26% 64%; }
.schematic figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 14px 17px; color: var(--muted); font-size: .75rem; letter-spacing: .12em; border-top: 1px solid var(--line); }
.system { border-top: 1px solid var(--line); }
.system:last-child { border-bottom: 1px solid var(--line); }
.system h3 { font-size: 1.19rem; font-weight: 600; }
.system button { cursor: pointer; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 17px 6px; border: 0; background: none; transition: color .2s ease; }
.system button:hover, .system button[aria-expanded="true"] { color: var(--gold); }
.system button:active { color: #fff1de; }
.system p { max-width: 28em; padding: 0 6px 22px; color: var(--muted); line-height: 1.83; font-size: 1rem; }
.toggle { visibility: hidden; position: relative; width: 16px; height: 16px; }
.is-interactive .toggle { visibility: visible; }
.toggle::before, .toggle::after { content: ""; position: absolute; inset: 7px 2px; background: currentColor; }
.toggle::after { transform: rotate(90deg); transition: transform .2s ease; }
[aria-expanded="true"] .toggle::after { transform: none; }

.mission { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 95% 115%, #221d1d, transparent 56%), var(--panel); }
.mission-content { display: grid; gap: clamp(25px, 7vw, 103px); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.mission-copy > p { color: #d2cfce; font-size: clamp(1rem, 1.65vw, 1.3rem); line-height: 1.9; max-width: 29em; }
.mission dl { display: flex; gap: clamp(20px, 4vw, 60px); flex-wrap: wrap; margin-top: 28px; padding-top: 19px; border-top: 1px solid var(--line); }
.mission dt { font-size: .82rem; color: var(--muted); margin-bottom: 5px; }
.mission dd { color: var(--gold); font-size: 1rem; }
.footer { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .84rem; color: var(--muted); }
.footer-divider { padding-inline: .45em; color: var(--gold); }

@media (min-width: 901px) and (min-aspect-ratio: 19 / 10) {
  .hero-art img { object-fit: contain; object-position: right center; }
}

@media (max-width: 900px) {
  .mast { min-height: 66px; }
  .identity { gap: 10px; font-size: .72rem; letter-spacing: .19em; }
  .crest { transform: rotate(-36deg) scale(.83); }
  .mast nav { gap: 17px; }
  .mast nav a { font-size: .85rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; }
  .hero-art { position: relative; z-index: -2; inset: auto; order: 2; margin-top: -5%; mask-image: linear-gradient(#0000, #000 12%, #000 88%, #0000); }
  .hero-art img { height: auto; object-fit: contain; }
  .hero::before { z-index: -1; background: linear-gradient(0deg, #080c13 1%, transparent 14%, transparent 56%, #080c13 77%); }
  .hero-content { padding-block: 112px 0; z-index: 1; }
  h1 { font-size: clamp(62px, 14vw, 90px); }
  .subtitle { margin-top: 7px; font-size: clamp(24px, 5.8vw, 36px); }
  .intro { margin-top: 18px; max-width: 25em; }
  .primary { margin-top: 20px; }
  .hero-caption { position: relative; order: 3; min-height: 44px; margin-top: -11px; font-size: .66rem; letter-spacing: .06em; }
  .hero-caption span:first-child { gap: 6px; }
  .anatomy, .mission-content { grid-template-columns: 1fr; }
  .anatomy { margin-top: 29px; }
  .mission-content { gap: 24px; }
}

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