@layer reset, base, layout, components, motion, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { font: inherit; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  svg { width: 24px; height: 24px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  [hidden] { display: none !important; }
}

@layer base {
  :root { color-scheme: dark; --background: #0b0c0e; --surface: #111214; --text: #f6f6f2; --muted: #a6a7ac; --yellow: #ffe500; --line: #ffffff1c; --header-height: 84px; --body-font: Arial, Helvetica, sans-serif; --display-font: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Black', sans-serif; --heavy-font: 'Arial Black', 'Arial Bold', Arial, sans-serif; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
  body { background: var(--background); color: var(--text); font-family: var(--body-font); font-size: 18px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
  ::selection { color: #0b0c0e; background: var(--yellow); }
  :focus-visible { outline: 3px solid var(--yellow); outline-offset: 7px; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-160%); background: var(--yellow); color: #000; padding: 12px 20px; font-weight: 700; }
  .skip-link:focus { transform: translateY(0); }
}

@layer layout {
  .site-header { position: sticky; top: 0; z-index: 50; background: #0b0c0ef5; border-bottom: 1px solid var(--line); }
  .header-inner { max-width: 1536px; height: var(--header-height); padding-inline: 5%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
  .brand { display: flex; align-items: center; flex: 0 1 270px; min-width: 0; }
  .brand-logo { width: 100%; height: auto; }
  .desktop-nav { display: flex; align-items: center; gap: 34px; flex-shrink: 0; }
  .desktop-nav a { position: relative; padding-block: 32px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px; color: #c6c6c9; transition: color 160ms; }
  .desktop-nav a::after { position: absolute; content: ''; height: 2px; background: var(--yellow); bottom: -1px; left: 0; width: 100%; transform: scaleX(0); transition: transform 200ms; }
  .desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--text); }
  .desktop-nav a[aria-current]::after { transform: scaleX(1); }
  .header-actions { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
  .header-play { display: inline-flex; align-items: center; justify-content: center; gap: 19px; background: var(--yellow); color: #111; border: 1px solid var(--yellow); padding: 14px 20px; font-weight: 900; font-size: 14px; letter-spacing: .7px; transition: background 180ms, transform 180ms; }
  .header-play svg { width: 16px; height: 16px; stroke-width: 2.5; }
  .header-play:hover { background: #fff175; transform: translateY(-2px); }
  .menu-toggle { display: none; }
  .hero { position: relative; isolation: isolate; min-height: 650px; height: min(860px, calc(100svh - var(--header-height))); background: #163850; overflow: hidden; }
  .hero-link { position: absolute; inset: 0; overflow: hidden; }
  .hero-link:focus-visible { outline-offset: -8px; }
  .hero-background, .hero-shade { position: absolute; width: 100%; height: 100%; inset: 0; }
  .hero-background { object-fit: cover; object-position: center 60%; }
  .hero-shade { background: linear-gradient(0deg, #0b0c0e 0%, #0b0c0e33 17%, transparent 55%), linear-gradient(90deg, #04192a5c 0%, #09223726 60%, #04122008); }
  .hero-inner { position: relative; height: 100%; max-width: 1440px; margin-inline: auto; }
  .hero-content { position: relative; z-index: 3; width: 45%; height: calc(100% - 40px); margin-left: 5%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 42px; }
  .hero-logo { width: clamp(240px, 28vw, 390px); height: auto; max-height: 64%; object-fit: contain; margin-top: -30px; margin-bottom: -5px; filter: drop-shadow(0 8px 14px #00000025); }
  .hero-play { display: flex; gap: 20px; align-items: center; justify-content: center; background: var(--yellow); color: #080808; border: 4px solid #080808; padding: 13px 23px 15px 30px; box-shadow: 5px 6px 0 #080808; transform: rotate(-2deg); font-family: var(--heavy-font); font-weight: 1000; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -2px; transition: transform 200ms, background 200ms, box-shadow 200ms; }
  .hero-play span { -webkit-text-stroke: 1.2px currentColor; }
  .hero-play svg { height: 32px; width: 32px; stroke-width: 3.3; }
  .hero-link:hover .hero-play { transform: rotate(0deg) translateY(-3px); background: #ffed4a; box-shadow: 7px 9px 0 #080808; }
  .hero-character { position: absolute; z-index: 2; width: auto; max-width: none; height: 116%; bottom: -17%; right: 2%; object-fit: contain; object-position: bottom; }
  .hero-bottom { position: absolute; bottom: 28px; width: 100%; padding-inline: 5%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; z-index: 5; pointer-events: none; }
  .hero-bottom > * { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: #c9cdd1; }
  .scroll-cue { grid-column: 2; display: flex; align-items: center; gap: 12px; pointer-events: auto; padding: 12px; transition: color 180ms; }
  .scroll-cue:hover { color: var(--yellow); }
  .scroll-cue svg { width: 18px; height: 18px; color: var(--yellow); }
  .hero-edition { grid-column: 3; justify-self: end; margin-right: 90px; font-size: 10px; white-space: nowrap; }
  .hero-edition span { margin-left: 15px; color: #90979e; }
}

@layer components {
  .stories { max-width: 1536px; margin-inline: auto; padding: 105px 5% 110px; }
  .story { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; column-gap: clamp(40px, 5.5vw, 84px); padding-block: 58px; scroll-margin-top: 25px; }
  .story-reverse { grid-template-columns: 1fr 1.35fr; }
  .story-reverse .story-media { grid-column: 2; grid-row: 1; }
  .story-reverse .story-copy { grid-column: 1; grid-row: 1; padding-left: 5%; }
  .story-media { position: relative; }
  .story-media img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
  .image-corner { position: absolute; width: 38px; height: 38px; right: -9px; bottom: -9px; border-right: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); }
  .story-reverse .image-corner { right: auto; left: -9px; border-right: 0; border-left: 3px solid var(--yellow); }
  .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--yellow); font-size: 12px; line-height: 1.5; font-weight: 700; letter-spacing: 2px; margin-bottom: 24px; }
  .eyebrow > span { width: 25px; height: 2px; background: var(--yellow); }
  h2 { font-family: var(--display-font); font-size: clamp(42px, 4.4vw, 66px); line-height: 1.06; text-transform: uppercase; letter-spacing: .5px; font-weight: 900; }
  h2 > span { color: var(--yellow); }
  .story-description { margin-top: 27px; color: #b2b3b8; font-size: clamp(16px, 1.28vw, 18px); line-height: 1.8; max-width: 450px; }
  .characters { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 61%, #2826145c, transparent 48%), #101113; padding: 85px 0 75px; }
  .characters-heading { text-align: center; padding-inline: 24px; }
  .characters-heading .eyebrow { justify-content: center; margin-bottom: 20px; }
  .characters-heading h2 { font-size: clamp(42px, 5.2vw, 76px); }
  .character-carousel { margin-top: 44px; }
  .character-carousel:focus-visible { outline-offset: -5px; }
  .character-stage { position: relative; max-width: 1460px; margin-inline: auto; }
  .character-backdrop { position: absolute; top: 2%; left: 50%; transform: translateX(-50%); font-family: var(--heavy-font); font-weight: 950; letter-spacing: -18px; line-height: 1; font-size: clamp(180px, 32vw, 480px); color: #ffffff03; -webkit-text-stroke: 1px #ffffff09; user-select: none; pointer-events: none; }
  .character-track { position: relative; display: flex; gap: 20px; padding: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .character-card { background: none; padding: 0; border: 0; cursor: pointer; flex: 0 0 260px; scroll-snap-align: center; text-align: center; }
  .character-card img { width: 100%; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
  .card-name { display: block; font-family: var(--display-font); text-transform: uppercase; font-size: 30px; margin-top: 16px; }
  .is-enhanced .character-stage { height: 560px; }
  .is-enhanced .character-track { display: block; height: 100%; overflow: hidden; padding: 0; touch-action: pan-y pinch-zoom; }
  .is-enhanced .character-card { position: absolute; top: 0; left: 50%; margin-left: -180px; width: 360px; height: 540px; transform-origin: center 85%; transition: transform 550ms cubic-bezier(.22,1,.36,1), opacity 450ms, filter 450ms; }
  .is-enhanced .character-card img { height: 100%; width: 100%; }
  .is-enhanced .card-name { display: none; }
  .is-enhanced .character-card[data-slot="0"] { z-index: 5; transform: translateX(0) scale(1); opacity: 1; filter: brightness(1); }
  .is-enhanced .character-card[data-slot="-1"] { z-index: 3; transform: translateX(-74%) scale(.83); opacity: .7; filter: brightness(.58); }
  .is-enhanced .character-card[data-slot="1"] { z-index: 3; transform: translateX(74%) scale(.83); opacity: .7; filter: brightness(.58); }
  .is-enhanced .character-card[data-slot="-2"] { z-index: 1; transform: translateX(-139%) scale(.7); opacity: .38; filter: brightness(.5); }
  .is-enhanced .character-card[data-slot="2"] { z-index: 1; transform: translateX(139%) scale(.7); opacity: .38; filter: brightness(.5); }
  .is-enhanced .character-card:not(.is-current):hover { opacity: .94; filter: brightness(.86); }
  .is-enhanced .character-card.is-wrapping { transition: none; }
  .carousel-arrow { position: absolute; z-index: 10; top: 46%; display: grid; place-items: center; background: #0b0c0ebf; width: 54px; height: 54px; border: 1px solid #ffffff75; color: var(--text); cursor: pointer; transition: border-color 150ms, background 150ms, color 150ms, transform 150ms; }
  .carousel-arrow:hover { border-color: var(--yellow); background: var(--yellow); color: #0b0c0e; transform: scale(1.06); }
  .carousel-arrow:active { transform: scale(.96); }
  .carousel-arrow svg { width: 24px; height: 24px; stroke-width: 2; }
  .carousel-prev { left: calc(50% - 226px); }
  .carousel-next { right: calc(50% - 226px); }
  .character-details { position: relative; z-index: 6; text-align: center; }
  .character-number { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; color: #7e7f83; }
  #character-number { color: var(--yellow); }
  .number-divider { color: #44454a; }
  #character-name { font-family: var(--display-font); font-size: 48px; text-transform: uppercase; font-weight: 900; letter-spacing: 1.5px; margin-top: 8px; line-height: 1.2; }
  .carousel-dots { display: flex; align-items: center; justify-content: center; margin-top: 14px; gap: 4px; }
  .carousel-dots button { position: relative; width: 36px; height: 44px; background: none; border: 0; cursor: pointer; }
  .carousel-dots button::before { content: ''; position: absolute; width: 23px; height: 3px; top: 21px; left: 6.5px; background: #ffffff35; transition: background 160ms, height 160ms; }
  .carousel-dots button[aria-pressed="true"]::before { background: var(--yellow); height: 4px; }
  .carousel-dots button:hover::before { background: #ffffffae; }
  .site-footer { max-width: 1536px; min-height: 125px; padding: 35px 5% 90px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
  .footer-brand { display: block; flex: 0 1 250px; min-width: 0; }
  .footer-brand img { width: 100%; height: auto; }
  .site-footer p { font-size: 13px; color: #85868c; line-height: 1.6; }
  .site-footer p > span { color: #d5d5d8; }
  .back-to-top { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; flex-shrink: 0; }
  .back-to-top:hover { color: var(--yellow); }
  .back-to-top svg { width: 18px; height: 18px; }
  .sound-toggle { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 112px; min-height: 46px; padding: 10px 14px; background: #090d12f2; color: var(--yellow); border: 1px solid #ffe5008c; border-radius: 2px; box-shadow: 0 5px 22px #0005; font-size: 12px; font-weight: 800; letter-spacing: .6px; cursor: pointer; transition: color 180ms, background 180ms, border-color 180ms; }
  .sound-toggle svg { width: 20px; height: 20px; stroke-width: 1.8; }
  .sound-toggle:hover { background: var(--yellow); color: #090d12; border-color: var(--yellow); }
  .sound-waves { display: none; }
  .sound-toggle[data-state="on"] .sound-cross { display: none; }
  .sound-toggle[data-state="on"] .sound-waves { display: block; }
  .sound-toggle[data-state="loading"] { cursor: progress; }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .reveal.will-reveal { opacity: 0; transform: translate(var(--reveal-x, 0), 40px); transition: opacity 750ms ease, transform 950ms cubic-bezier(.16,1,.3,1); }
    .reveal[data-reveal="left"] { --reveal-x: -65px; }
    .reveal[data-reveal="right"] { --reveal-x: 65px; }
    .reveal.is-revealed { opacity: 1; transform: translate(0, 0); }
    .story-copy.reveal { transition-delay: 90ms; }
    .hero-logo { animation: logo-in 850ms cubic-bezier(.16,1,.3,1) both; }
    .hero-play { animation: play-in 750ms 200ms cubic-bezier(.16,1,.3,1) backwards; }
    .sound-toggle { animation: control-in 250ms ease both; }
    .hero-character { animation: character-in 1150ms 80ms cubic-bezier(.16,1,.3,1) both; }
    @keyframes logo-in { from { opacity: 0; transform: translate(-75px, 12px) rotate(-4deg); } to { opacity: 1; transform: translate(0, 0) rotate(0); } }
    @keyframes play-in { from { opacity: 0; transform: translate(-90px, 15px) rotate(-6deg); } to { opacity: 1; transform: translate(0, 0) rotate(-2deg); } }
    @keyframes control-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes character-in { from { opacity: 0; transform: translateX(150px); } to { opacity: 1; transform: translateX(0); } }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
}

@layer responsive {
  @media (min-width: 1700px) { .hero-character { right: -2%; } }
  @media (max-width: 1050px) {
    .stories { padding-block: 70px; }
    .story { column-gap: 38px; padding-block: 48px; }
    .story-reverse .story-copy { padding-left: 0; }
    .story-description { margin-top: 20px; line-height: 1.7; }
    .eyebrow { font-size: 12px; letter-spacing: 1.5px; margin-bottom: 18px; }
    h2 { font-size: clamp(36px, 4.5vw, 48px); }
    .desktop-nav { gap: 22px; }
    .brand { flex-basis: 210px; }
    .hero-content { margin-left: 2%; width: 47%; }
    .hero-character { right: -12%; }
    .hero-edition { display: none; }
  }
  @media (max-width: 900px) {
    :root { --header-height: 72px; }
    .header-inner { padding-inline: 24px; }
    .brand { flex-basis: 270px; }
    .desktop-nav { display: none; }
    .header-play { padding: 11px 14px; font-size: 14px; gap: 12px; }
    .menu-toggle { width: 32px; height: 44px; padding: 6px 2px; border: 0; background: none; display: flex; flex-direction: column; justify-content: center; gap: 7px; cursor: pointer; }
    .menu-toggle span { width: 27px; height: 2px; background: var(--text); transition: transform 180ms; }
    .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
    .mobile-nav { position: absolute; top: 100%; width: 100%; background: #111214; padding: 10px 24px 26px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px #0005; }
    .mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; border-bottom: 1px solid var(--line); font-family: var(--display-font); text-transform: uppercase; font-size: 26px; letter-spacing: .5px; }
    .mobile-nav a span { font-family: var(--body-font); font-size: 12px; color: var(--yellow); }
  }
  @media (max-width: 760px) {
    .stories { padding: 28px 24px 66px; }
    .story, .story-reverse { grid-template-columns: 1fr; gap: 36px; padding-block: 45px; }
    .story-reverse .story-media, .story-reverse .story-copy { grid-column: 1; grid-row: auto; }
    .story-media { width: 100%; }
    .story-copy { padding-inline: 4px; }
    h2 { font-size: clamp(42px, 7.5vw, 58px); line-height: 1.05; }
    .story-description { max-width: 600px; font-size: 17px; line-height: 1.75; }
    .eyebrow { font-size: 12px; margin-bottom: 18px; }
    .characters { padding-top: 62px; padding-bottom: 40px; }
    .characters-heading h2 { font-size: clamp(38px, 6.8vw, 56px); }
    .character-carousel { margin-top: 35px; }
    .site-footer { padding: 26px 24px 90px; flex-wrap: wrap; gap: 16px; }
    .footer-brand { flex-basis: 180px; max-width: 50%; }
    .site-footer p { order: 3; width: 100%; text-align: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 5px; }
    .hero { min-height: 620px; }
  }
  @media (max-width: 600px) {
    .stories { padding-inline: 20px; }
    .story { padding-block: 36px; gap: 31px; }
    .story-copy { padding-inline: 0; }
    .story-description { font-size: 16px; }
    .image-corner { width: 28px; height: 28px; right: -6px; bottom: -6px; border-width: 2px; }
    .story-reverse .image-corner { left: -6px; border-left-width: 2px; }
    .characters-heading h2 { max-width: 370px; margin-inline: auto; line-height: 1.06; }
    .characters-heading h2 span { display: block; }
    .characters-heading .eyebrow { font-size: 12px; letter-spacing: 1.5px; }
    .characters-heading .eyebrow > span { width: 16px; }
    .is-enhanced .character-stage { height: 420px; }
    .is-enhanced .character-card { width: 280px; height: 420px; margin-left: -140px; }
    .is-enhanced .character-card[data-slot="-1"] { transform: translateX(-66%) scale(.78); }
    .is-enhanced .character-card[data-slot="1"] { transform: translateX(66%) scale(.78); }
    .is-enhanced .character-card[data-slot="-2"] { transform: translateX(-125%) scale(.65); }
    .is-enhanced .character-card[data-slot="2"] { transform: translateX(125%) scale(.65); }
    .carousel-arrow { width: 44px; height: 48px; top: 45%; }
    .carousel-prev { left: max(14px, calc(50% - 158px)); }
    .carousel-next { right: max(14px, calc(50% - 158px)); }
    .character-details { margin-top: 23px; }
    #character-name { font-size: 40px; }
    .character-backdrop { letter-spacing: -8px; top: 10%; }
    .header-inner { padding-inline: 16px; gap: 12px; }
    .brand { flex: 1 1 235px; max-width: 235px; }
    .header-actions { gap: 12px; }
    .header-play { padding-inline: 10px; }
    .header-play svg { display: none; }
    .hero { min-height: 670px; max-height: 850px; height: calc(100svh - var(--header-height)); }
    .hero-background { object-position: 42% center; }
    .hero-shade { background: linear-gradient(0deg, #0b0c0e 0%, #09182a0a 32%, #09223733 100%), linear-gradient(90deg, #07172566, transparent 90%); }
    .hero-content { width: 70%; height: auto; margin-left: 0; padding: 8px 0 0; justify-content: flex-start; }
    .hero-logo { width: min(64vw, 285px); max-height: none; margin: -4px 0 0; }
    .hero-play { font-size: clamp(27px, 7.5vw, 36px); border-width: 3px; gap: 7px; padding: 12px 14px 13px 19px; letter-spacing: -1.5px; }
    .hero-play svg { width: 24px; height: 24px; }
    .hero-character { height: 72%; right: -32%; bottom: -4%; }
    .hero-bottom { padding-inline: 20px; bottom: 80px; }
    .hero-bottom > * { font-size: 12px; letter-spacing: .5px; }
    .scroll-cue { gap: 5px; padding: 12px 0 12px 12px; }
  }
}
