@font-face {
  font-family: "Futura Web";
  src: url("assets/subset-Futura-Med.woff2") format("woff2"),
       url("assets/subset-Futura-Med.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --pink: #ff97b4;
}
* { box-sizing: border-box; }
/* Clip the page horizontally at the viewport: animated stars can extend
   beyond the body on mobile. Leave vertical movement and scrolling free. */
html { scroll-behavior: smooth; background: var(--pink); overflow-x: clip; }
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}
body {
  margin: 0;
  color: #000;
  font-family: "Futura Web", Futura, "Century Gothic", "Avenir Next", Avenir, sans-serif;
  font-weight: 500;
  background: var(--pink);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
.menu a:active, .mobile-menu a:active, .mobile-menu-toggle:active { color: #fff; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid #000; outline-offset: 5px; }
/* Clip the unfocused link in place: offscreen white content can bleed into
   Safari's translucent browser chrome. Keep it keyboard-accessible. */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 5; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; padding: 8px; clip-path: none; overflow: visible; background: white; color: black; }
/* Vertical overflow lets complete stars drift naturally across the hero edge.
   The page clips horizontal overflow without clipping this lower edge. */
.star-field { position: absolute; overflow: visible; pointer-events: none; }
.hero { --identity-left: calc(25.3788vw + 81.4545px); height: 100vh; height: 100svh; min-height: 390px; position: relative; }
.hero-layout { position: absolute; inset: 0; z-index: 1; display: flex; justify-content: center; align-items: flex-start; }
.photo-stage {
  position: absolute;
  top: 16px;
  left: clamp(16px, 2.72vw, 47px);
  width: calc((100svh - 32px) * 371 / 924);
  aspect-ratio: 371 / 924;
  pointer-events: none;
}
.identity { position: relative; top: max(16px, calc(50% - 249.5px)); width: max-content; flex: 0 0 auto; }
.name { margin: 0; font-size: 196px; line-height: .8; letter-spacing: -.04em; font-weight: 500; pointer-events: none; }
.name span { display: block; }
.menu { position: absolute; z-index: 1; right: 0; top: 178px; width: 144px; display: flex; flex-direction: column; gap: 4px; font-size: 32px; line-height: .9; letter-spacing: -.04em; }
.menu a { position: relative; display: block; width: 100%; padding: 0; pointer-events: auto; cursor: pointer; }
.menu a:hover { color: #fff; }
.mobile-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 142px;
  height: 50px;
  max-width: calc(100vw - 16px);
  padding: 10px 32px 15px;
  border-radius: 44px;
  background: var(--pink);
  box-shadow: 0 2px 4px #fff;
  font-size: 32px;
  line-height: .75;
  letter-spacing: -.02em;
  text-align: center;
  overflow: hidden;
  transition: width 200ms ease-in-out, height 200ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out;
}
.mobile-menu[data-open="true"] { width: 214px; height: 146px; }
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 0 5px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  opacity: 1;
  transition: opacity 200ms ease-in-out;
}
.mobile-menu[data-open="true"] .mobile-menu-toggle { opacity: 0; pointer-events: none; }
.mobile-menu-toggle:focus-visible { outline: 2px solid #000; outline-offset: -4px; }
.mobile-menu-links {
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 15px;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}
.mobile-menu[data-open="true"] .mobile-menu-links { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.mobile-menu-links a { display: block; width: 100%; }
@media (min-width: 961px) {
  .mobile-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: width 200ms ease-in-out, height 200ms ease-in-out, opacity 300ms ease-in-out, transform 300ms ease-in-out, visibility 0s 300ms;
  }
  .mobile-menu[data-visible="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }
}
/* Figma's photo and both corner stickers share one 371 × 924 coordinate space. */
.photo-layer { position: absolute; inset: 0; pointer-events: none; }
.portrait { position: absolute; left: 31.80593%; top: 12.22944%; width: 36.87224%; height: auto; }
.tape { position: absolute; width: 63.34232%; height: auto; }
.tape-top { left: 0; top: 0; }
.tape-bottom { left: 36.65768%; top: 75.54113%; }
main { width: min(880px, calc(100% - 64px)); margin: 0 auto; padding-top: 194px; padding-bottom: 240px; display: flex; flex-direction: column; gap: 80px; }
section { scroll-margin-top: 32px; }
h2 { margin: 0 0 40px; font-size: 64px; line-height: 1.1; letter-spacing: -.02em; font-weight: 500; }
.copy { display: flex; flex-direction: column; gap: 16px; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
.copy p, .copy h3 { margin: 0; font-size: inherit; font-weight: inherit; text-wrap: pretty; }
.translation { color: white; padding-left: 40px; }
.translation a:hover { color: black; }
@media (max-width: 960px) {
  body { padding: 8px; }
  .hero {
    --name-size: min(196px, calc((100vw - 16px) * .2835));
    --photo-top: max(211px, calc(var(--name-size) * 1.8 + 28px));
    height: max(100svh, calc(var(--photo-top) + min((100vw - 16px) * 1.80833, 1224.6px) + 16px));
  }
  .hero-layout { inset: 0; width: 100%; height: 100%; display: block; }
  .identity { position: absolute; left: 0; top: 0; }
  .name { font-size: var(--name-size); }
  .menu { display: none; }
  .photo-stage { top: var(--photo-top); left: auto; right: 0; width: min(35.44%, 240px); aspect-ratio: 400 / 2041; }
  .portrait { top: 0; left: 0; width: 100%; }
  .tape { display: none; }
  main { width: 100%; padding-top: 15px; padding-bottom: 80px; gap: 80px; }
  h2 { font-size: 48px; }
  .copy { font-size: 20px; gap: 8px; }
  .translation { padding-left: 24px; }
  section { scroll-margin-top: 16px; }
}
@supports (text-box-trim: trim-both) {
  .mobile-menu-toggle, .mobile-menu-links a { line-height: 1; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-menu, .mobile-menu-toggle, .mobile-menu-links { transition: none; }
}

/* Temporary star controls for design review. */
.star-controls {
  position: fixed;
  z-index: 100;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(250px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: 12px 16px;
  border: 1px solid #0002;
  border-radius: 12px;
  background: #fff;
  color: #111;
  box-shadow: 0 4px 24px #0002;
  font: 14px/1.4 system-ui, sans-serif;
}
.star-controls summary { cursor: pointer; font-weight: 600; }
.star-controls summary span { float: right; color: #666; font-size: 12px; }
.star-controls-body { padding-top: 12px; }
.star-controls label { display: flex; justify-content: space-between; gap: 8px; }
.star-controls output { font-variant-numeric: tabular-nums; color: #555; }
.star-controls input { display: block; width: 100%; height: 32px; margin: 0 0 8px; accent-color: #b52f61; }
.star-number { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.star-number input { width: 84px; height: 36px; margin: 0; padding: 4px 8px; border: 1px solid #ccc; border-radius: 6px; font: 16px system-ui, sans-serif; }
.star-controls button { min-height: 36px; padding: 4px 10px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #111; font: inherit; cursor: pointer; }
.star-controls .star-layer-toggle { align-items: center; min-height: 36px; margin-bottom: 8px; cursor: pointer; }
.star-controls .star-layer-toggle input { width: 20px; height: 20px; margin: 0; }
@media (max-width: 960px) {
  .star-controls { top: max(12px, env(safe-area-inset-top)); bottom: auto; max-height: calc(100svh - 96px); }
}

.star-controls-hint { margin: 0 0 8px; color: #666; font-size: 12px; }

.star-texture { display: block; position: absolute; max-width: none; pointer-events: none; will-change: transform, opacity; }
.stars-native-scroll .star-texture {
  animation: star-hero-scatter auto linear both;
  animation-timeline: scroll(root block);
  animation-range: 0px var(--star-exit-distance);
}
@keyframes star-hero-scatter {
  0% { transform: translate3d(0, 0, 0); opacity: 1; }
  55% { opacity: 1; }
  100% { transform: translate3d(var(--star-exit-x), var(--star-exit-y), 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stars-native-scroll .star-texture { animation: none; }
  .star-texture { will-change: auto; }
}
