:root {
  color-scheme: light;
  --paper: #f7f1e7;
  --ink: #261a17;
  --muted: #665650;
  --wine: #722d35;
  --rule: #daccc0;
  --gold: #e2ba83;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }

.shell {
  width: min(1200px, calc(100% - 112px));
  margin-inline: auto;
}

.masthead {
  height: 83px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: block;
  width: 145px;
  margin-left: -6px;
  color: #996c27;
}

.signature {
  display: block;
  width: 100%;
  aspect-ratio: 2.45;
  background-color: currentColor;
  mask: url("fishcar-signature-minimal.png") center / 100% auto no-repeat;
}

.masthead nav { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.masthead nav a { display: block; padding: 9px 0 9px 8px; }
.masthead nav span { margin-left: 6px; color: var(--wine); }
.masthead nav a:hover { color: var(--wine); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(28px, 4vw, 66px);
  padding: 42px 0 47px;
}

.hero-copy { padding: 8px 0 13px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--wine);
  font-size: 14px;
  letter-spacing: .17em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  width: min(100%, 460px);
  margin: 8px 0 20px -16px;
  color: var(--wine);
}

.hero h1:focus { outline: none; }

.intro-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 46px;
  margin-top: 25px;
  padding: 0 15px 0 17px;
  border: 1px solid var(--wine);
  border-radius: 3px;
  color: #fff4e5;
  background: var(--wine);
  font-size: 13px;
  letter-spacing: .055em;
  transition: background-color .2s, border-color .2s;
}

.hero-link span { font-size: 17px; line-height: 1; }
.hero-link:hover { background: #54202a; border-color: #54202a; }

.stage {
  position: relative;
  aspect-ratio: 1.48;
  min-height: 315px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--gold);
  background: #400d16 url("curtain.webp") center / cover no-repeat;
  box-shadow: 0 10px 27px #40202620;
}

.stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at center, #190a0630, #23050c64 62%, #1f040a9e), #52202722;
}

.stage-frame {
  position: absolute;
  inset: 19px;
  display: grid;
  place-items: center;
  border: 1px solid #eac69475;
}

.stage-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #eac69438;
}

.corner {
  position: absolute;
  width: 21px;
  height: 21px;
  border: 1px solid var(--gold);
}

.top-left { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.top-right { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.bottom-left { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.bottom-right { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.stage-insignia {
  position: relative;
  display: grid;
  place-items: center;
  width: 182px;
  height: 104px;
  border: 1px solid #ecc592a1;
  border-radius: 50%;
  color: #f5d7a8;
  background: #24070c61;
}

.stage-insignia::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ecc59266;
  border-radius: inherit;
}

.stage-insignia .signature { width: 143px; }

.replay {
  position: absolute;
  right: 35px;
  bottom: 35px;
  min-height: 36px;
  padding-inline: 10px 12px;
  border: 1px solid #ecc592a1;
  border-radius: 2px;
  color: #f9e1bd;
  background: #2e0b13d9;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .06em;
  transition: background-color .2s;
}

.replay:hover { background: #591d2b; }
.replay:focus-visible { outline-color: #f6d9a7; }
.replay-icon { margin-right: 4px; font-size: 15px; }

.destinations { scroll-margin-top: 24px; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 17px;
}

.section-heading h2 { font-size: 21px; font-weight: 600; letter-spacing: .085em; }
.section-heading span { color: #976834; font-size: 14px; }

.destination-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.destination {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 184px;
  padding: 19px 19px 17px;
  border: 1px solid var(--card-line);
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--card-ink);
  transition: transform .22s, box-shadow .22s;
}

.reading { --card-bg: #f0e5d2; --card-line: #e3d3b9; --card-ink: #5a4126; }
.transfer { --card-bg: #e6e8db; --card-line: #d8dcc8; --card-ink: #374d3a; }
.play { --card-bg: #eee0df; --card-line: #e5cdcc; --card-ink: #672c3a; }
.subscribe { --card-bg: #f7f1e7; --card-line: #dcd0c3; --card-ink: #5e5147; }

.destination:hover { transform: translateY(-4px); box-shadow: 0 8px 16px #47301a15; }
.destination h3 { font-size: 22px; letter-spacing: .045em; margin: 10px 0 5px; line-height: 1.3; }
.destination p { font-size: 13px; line-height: 1.5; }
.card-note { margin-top: auto; padding-top: 13px; font-size: 12px; font-weight: 600; }
.card-arrow { position: absolute; top: 18px; right: 18px; font: 20px/1 system-ui, sans-serif; }

.card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 50%;
  line-height: 1;
}

.icon-book::before, .icon-book::after {
  position: absolute;
  top: 9px;
  left: 7px;
  width: 9px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 1px 3px 1px 1px;
  transform: skewY(9deg);
  content: "";
}

.icon-book::after { left: 14px; border-radius: 3px 1px 1px; transform: skewY(-9deg); }
.icon-transfer { font: 21px/1 system-ui, sans-serif; }
.icon-play { font: 22px/1 Georgia, serif; }

.icon-lock::before, .icon-lock::after {
  position: absolute;
  content: "";
  border: 1px solid currentColor;
}

.icon-lock::before { width: 9px; height: 8px; top: 6px; border-radius: 5px 5px 0 0; }
.icon-lock::after { width: 13px; height: 10px; top: 13px; border-radius: 2px; }

.footer {
  margin-top: 37px;
  padding: 19px 0 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.curtain-active { overflow: hidden; }

.curtain {
  position: fixed;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  color: #f9e3c0;
  cursor: pointer;
}

.curtain:focus-visible { outline-color: #f6d9a7; outline-offset: -6px; }
.curtain > span { pointer-events: none; }
.curtain.is-drawing { cursor: default; }

.curtain::before,
.curtain-scene {
  position: absolute;
  inset: 0;
}

.curtain::before {
  content: "";
  background: #200e16;
  visibility: hidden;
  transition: visibility 0s .22s;
}

.curtain-scene {
  opacity: 1;
  transition: opacity .22s ease-out;
}

.curtain[data-models-state="loading"]::before {
  visibility: visible;
  transition: none;
}

.curtain[data-models-state="loading"] .curtain-scene {
  opacity: 0;
  transition: none;
}

.curtain.is-drawing::before,
.curtain.is-drawing .curtain-scene {
  transition: none;
}

.curtain-models {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.curtain:not([data-models-state="ready"]) .curtain-models { visibility: hidden; }

.curtain-panel {
  position: absolute;
  inset-block: 0;
  width: calc(50% + 1px);
  background-color: #47111b;
  background-image: linear-gradient(#1d09182e, #1d09184d), url("curtain.webp");
  background-size: 200% 100%;
}

.curtain-left {
  left: 0;
  background-position: left center;
  border-right: 1px solid #d9ae7860;
  box-shadow: 4px 0 18px #1b0408a8;
}

.curtain-right {
  right: 0;
  background-position: right center;
  border-left: 1px solid #190307;
  box-shadow: -4px 0 18px #1b0408a8;
}

.curtain[data-models-state="ready"] .curtain-panel::after {
  position: absolute;
  z-index: 1;
  top: var(--rope-top, 35%);
  height: var(--rope-length, 16%);
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(#75452d00, #b78657 26%, #e2ba83 64%, #815037 94%);
  box-shadow: 1px 1px 3px #190407aa;
  content: "";
}

.curtain-left::after { right: 10px; }
.curtain-right::after { left: 10px; }

.curtain-title {
  position: absolute;
  top: 6%;
  inset-inline: 0;
  display: grid;
  justify-items: center;
}

.curtain-title img {
  display: block;
  width: min(clamp(235px, 32vw, 450px), 53vh, 90vw);
  height: auto;
}

.curtain-cue {
  position: absolute;
  inset-inline: 0;
  bottom: 12%;
  color: #f9e3c0;
  font-size: 13px;
  letter-spacing: .28em;
  text-shadow: 0 2px 11px #1f040b, 0 0 18px #1f040b;
}

.curtain-cue::before {
  display: block;
  width: 22px;
  height: 1px;
  margin: 0 auto 12px;
  background: #e2ba83ac;
  content: "";
}

.is-drawing .curtain-panel {
  animation-duration: 1.55s;
  animation-delay: .12s;
  animation-timing-function: cubic-bezier(.58, 0, .22, 1);
  animation-fill-mode: both;
}

.is-drawing .curtain-left { animation-name: draw-left; }
.is-drawing .curtain-right { animation-name: draw-right; }
.is-drawing .curtain-title, .is-drawing .curtain-cue { animation: dim-title .37s ease both; }

@keyframes draw-left { to { transform: translateX(-103%); } }
@keyframes draw-right { to { transform: translateX(103%); } }
@keyframes dim-title { to { opacity: 0; transform: scale(1.025); } }

@media (min-width: 1001px) {
  .masthead:has(a:hover) { border-color: #c4b0a3; }
}

@media (max-width: 1000px) {
  .shell { width: calc(100% - 68px); }
  .hero { gap: 22px; }
  .destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 690px) {
  .shell { width: calc(100% - 36px); }
  .masthead { height: 63px; }
  .hero { grid-template-columns: 1fr; padding: 25px 0 32px; }
  .hero h1 { margin-left: -10px; }
  .stage { min-height: 250px; }
  .footer { margin-top: 24px; }
}

@media (max-width: 420px) {
  .destination-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.curtain-performer {
  position: absolute;
  z-index: 2;
  bottom: calc(17.5% - .7 * var(--model-unit));
  width: calc(18 * var(--model-unit));
  height: calc(25 * var(--model-unit));
}

.curtain-left .curtain-performer { right: calc(-2.5 * var(--model-unit)); }
.curtain-right .curtain-performer { left: calc(-2.5 * var(--model-unit)); }

.curtain-performer :is(img, video) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.curtain-performer video { opacity: 0; }
.curtain-performer video.is-playing { opacity: 1; }
.curtain-performer:has(video.is-playing) img { visibility: hidden; }
