@font-face {
  font-family: 'Montserrat';
  src: url('./assets/montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: 'Montserrat', 'Aptos', 'Segoe UI', sans-serif;
  color: #382a30;
  background: #f8f0f2;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --wine: #764457;
  --muted: #796971;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--wine); outline-offset: 6px; }
button:disabled { cursor: progress; }
::selection { color: #fff; background: #87586a; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 800px;
  min-height: max(800px, 100svh);
  overflow: clip;
  background:
    radial-gradient(ellipse at 56% 43%, #fff 0%, #fff 28%, rgb(255 255 255 / 91%) 41%, transparent 76%),
    linear-gradient(110deg, #d4a7b4 0%, #f3e5e9 30%, #f7edef 68%, #d8afbc 100%);
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 112px);
  max-width: 1600px;
  min-height: 108px;
  margin-inline: auto;
  border-bottom: 1px solid rgb(105 64 78 / 12%);
}
.wordmark { font-size: 29px; font-weight: 800; letter-spacing: -1.7px; }
.wordmark span { color: #a1647a; }
.navigation { display: flex; align-items: center; gap: 42px; font-size: 14px; font-weight: 500; }
.nav-link { color: var(--muted); }
.nav-link:hover { color: var(--wine); }
.hello-button { display: flex; align-items: center; gap: 24px; padding: 12px 21px; background: rgb(255 255 255 / 40%); border: 1px solid rgb(109 65 82 / 24%); border-radius: 99px; font-size: 14px; transition: background .2s, border-color .2s; }
.hello-button:hover { background: #fff; border-color: var(--wine); }
.hello-button span { font-size: 19px; line-height: 1; }

.hero-stage {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1760px;
  min-height: 620px;
  margin: 0 auto;
}
.introduction { position: absolute; z-index: 2; top: 34%; left: max(56px, calc((100% - 1600px) / 2)); width: 320px; }
.intro-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; color: var(--wine); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.short-rule { width: 23px; height: 1px; background: #a67386; }
h1 { margin: 0; font-size: clamp(24px, 2.1vw, 33px); font-weight: 600; line-height: 1.32; letter-spacing: -1.35px; }
.intro-prefix { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 400; color: var(--muted); letter-spacing: -.4px; }
.name-period { color: #a66d83; }
.role { margin: 10px 0 0; font-size: 18px; font-weight: 400; letter-spacing: -.5px; color: var(--muted); }
.interaction-hint { margin-top: 54px; }
.call-button { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; margin-left: -6px; padding: 0 6px; border: 0; background: none; font-size: 14px; color: var(--wine); }
.call-button:hover { color: #452231; }
.cursor-indicator { position: relative; display: inline-block; flex-shrink: 0; width: 32px; height: 36px; }
.cursor-indicator svg { position: relative; z-index: 1; display: block; width: 29px; height: 32px; animation: cursor-hello 3.6s ease-in-out infinite; }
.cursor-ring { position: absolute; width: 17px; height: 17px; left: 4px; top: 5px; border: 1px solid #be8d9f; border-radius: 50%; animation: cursor-ring 3.6s ease-out infinite; }
.hint-caption { display: block; margin: 5px 0 0 38px; font-size: 12px; color: #88777f; }
.mobile-instruction { display: none; }

.character-scene { position: absolute; pointer-events: none; top: 50%; left: 59%; width: min(880px, 68vw); transform: translate(-50%, -52%); }
.character-glow { position: absolute; z-index: -1; inset: -17% -7%; border-radius: 50%; background: radial-gradient(ellipse, #fff 30%, rgb(255 255 255 / 90%) 50%, transparent 73%); }
.character-frame { position: relative; aspect-ratio: 960 / 720; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 95%, transparent); mask-composite: intersect; }
.character-poster, .character-canvas { position: absolute; display: block; top: 0; left: -12.5%; width: 133.33333%; height: 100%; max-width: none; object-fit: contain; }
.character-canvas { opacity: 0; }
.hero[data-ready="true"] .character-canvas { opacity: 1; }
.hero[data-ready="true"] .character-poster { visibility: hidden; }
.reaction { position: absolute; z-index: 2; top: 11%; left: 57%; display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 10px 17px; border: 1px solid rgb(132 84 105 / 10%); border-radius: 99px; background: rgb(255 255 255 / 94%); box-shadow: 0 3px 18px rgb(92 56 72 / 4%); white-space: nowrap; font-size: 14px; color: var(--wine); opacity: 0; transform: translate(-50%, 6px); transition: opacity .25s, transform .35s; }
.reaction[data-visible="true"] { opacity: 1; transform: translate(-50%, 0); }
.reaction-line { width: 20px; height: 1px; background: #bc8c9f; }
.stage-footer { position: absolute; bottom: 31px; left: 50%; width: 340px; transform: translateX(-27%); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.working-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.status-mark { width: 5px; height: 5px; border-radius: 50%; background: #ab7d8e; }
.replay-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; padding: 8px 0; background: transparent; color: var(--wine); font-size: 12px; }
.replay-button svg { width: 16px; height: 16px; }
.replay-button:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: calc(100% - 112px); max-width: 1600px; min-height: 72px; margin: 0 auto; border-top: 1px solid rgb(105 64 78 / 12%); font-size: 12px; color: var(--muted); }
.footer-label { letter-spacing: -.15px; }
.footer-signature { display: flex; gap: 20px; }
.footer-signature > span { opacity: .7; }
.zone-guide { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: #917a83; font-size: 12px; }
.zone-track { display: flex; gap: 4px; }
.zone-track i { display: block; width: 23px; height: 3px; border-radius: 4px; background: #d3bbc4; transition: background .3s, transform .3s; }
.hero[data-zone="left"] .zone-track i:nth-child(1), .hero[data-zone="center"] .zone-track i:nth-child(2), .hero[data-zone="right"] .zone-track i:nth-child(3) { background: #87546a; transform: scaleY(1.6); }
.no-script-note { padding: 12px; text-align: center; font-size: 13px; }

@keyframes cursor-hello { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 45%, 65% { transform: translate(4px, -4px) rotate(3deg); } }
@keyframes cursor-ring { 0%, 38%, 100% { opacity: 0; transform: scale(.6); } 48% { opacity: .5; } 70% { opacity: 0; transform: scale(1.7); } }

@media (min-width: 1600px) {
  .character-scene { width: min(960px, 62vw); }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .site-header, .hero-footer { width: calc(100% - 64px); }
  .introduction { left: 32px; width: 255px; top: 31%; }
  h1 { font-size: 25px; }
  .role { font-size: 16px; }
  .character-scene { left: 61%; width: min(790px, 80vw); }
  .reaction { left: 60%; }
  .stage-footer { left: 54%; }
}
@media (max-width: 760px) {
  .hero { min-height: max(780px, 100svh); }
  .site-header { width: calc(100% - 40px); min-height: 86px; }
  .wordmark { font-size: 26px; }
  .navigation { gap: 16px; }
  .nav-link { display: none; }
  .hello-button { padding: 10px 17px; min-height: 44px; gap: 18px; font-size: 14px; }
  .hero-stage { display: flex; flex-direction: column; align-items: center; min-height: 640px; padding: 41px 0 76px; }
  .introduction { position: relative; top: auto; left: auto; width: calc(100% - 40px); text-align: center; }
  .intro-kicker { justify-content: center; margin-bottom: 19px; font-size: 12px; }
  h1 { font-size: 28px; letter-spacing: -1.1px; }
  .intro-prefix { display: inline; font: inherit; color: inherit; }
  .role { margin-top: 7px; font-size: 16px; }
  .interaction-hint { margin-top: 17px; }
  .call-button { gap: 6px; margin: 0; font-size: 14px; }
  .desktop-instruction, .desktop-caption { display: none; }
  .mobile-instruction { display: inline; }
  .cursor-indicator { width: 26px; }
  .cursor-indicator svg { width: 24px; }
  .character-scene { position: relative; top: auto; left: auto; width: min(100%, 560px); margin-top: 33px; transform: none; }
  /* Crop only empty room at the sides. All gestures, head and laptop stay in view. */
  .character-frame { aspect-ratio: 820 / 720; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 95%, transparent); }
  .character-canvas, .character-poster { width: 156.09756%; max-width: none; left: -19.5122%; height: 100%; }
  .reaction { top: 241px; left: 50%; font-size: 14px; }
  .reaction-line { width: 14px; }
  .stage-footer { position: relative; left: auto; bottom: auto; width: calc(100% - 64px); max-width: 340px; margin-top: 12px; transform: none; }
  .working-status, .replay-button { font-size: 12px; }
  .hero-footer { width: calc(100% - 40px); min-height: 64px; gap: 10px; font-size: 12px; }
  .zone-guide, .footer-signature { display: none; }
  .footer-label { width: 100%; text-align: center; }
}
@media (max-width: 380px) {
  .hero-stage { padding-top: 31px; min-height: 570px; }
  h1 { font-size: 24px; }
  .reaction { top: 226px; }
  .stage-footer { width: calc(100% - 40px); }
}
@media (min-width: 761px) and (max-height: 740px) {
  .hero { min-height: 740px; }
  .site-header { min-height: 90px; }
  .hero-stage { min-height: 578px; }
  .character-scene { width: min(690px, 72vw); }
}
@media (hover: none), (pointer: coarse) {
  .desktop-instruction, .desktop-caption, .zone-guide { display: none; }
  .mobile-instruction { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
