:root {
  --ink: #212121;
  --ink-soft: #2b2b29;
  --cream: #ede3d6;
  --cream-light: #f7f3ed;
  --orange: #f06e42;
  --line-dark: rgba(33,33,33,.22);
  --line-light: rgba(237,227,214,.22);
  --gutter: clamp(1.2rem, 4.6vw, 5.4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--cream); font-family: Arial, Helvetica, sans-serif; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
.skip-link { position: fixed; z-index: 1000; top: -5rem; left: 1rem; padding: .8rem 1rem; background: var(--cream); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.15rem var(--gutter); transition: background .3s, padding .3s; }
.site-header.is-scrolled { padding-block: .65rem; background: rgba(28,28,27,.94); backdrop-filter: blur(14px); }
.brand { justify-self: start; }
.brand img { width: clamp(3.4rem, 4.8vw, 4.7rem); transition: width .3s, opacity .2s; }
.brand:hover img { opacity: .75; }
.site-header.is-scrolled .brand img { width: 3.25rem; }
.header-note { margin: 0; font-size: .55rem; font-weight: 700; letter-spacing: .18em; }
.main-nav { justify-self: end; display: flex; gap: clamp(1rem, 2vw, 2.3rem); align-items: center; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.main-nav > a:not(.nav-play) { position: relative; }
.main-nav > a:not(.nav-play)::after { content: ''; position: absolute; right: 100%; bottom: -.35rem; left: 0; height: 1px; background: var(--cream); transition: right .2s; }
.main-nav > a:hover::after { right: 0; }
.nav-play { padding: .72rem 1rem; border-radius: 999px; background: var(--orange); color: var(--ink); }
.nav-play span { margin-left: .65rem; }
.menu-toggle { display: none; border: 0; background: transparent; }

.hero { position: relative; min-height: 100svh; overflow: hidden; background: #141414; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: url('assets/studio-reel.gif') center/cover no-repeat; animation: hero-in 1.6s ease both; }
.hero-shade { background: linear-gradient(90deg, rgba(18,18,17,.94) 0%, rgba(18,18,17,.62) 47%, rgba(18,18,17,.22) 78%), linear-gradient(0deg, rgba(18,18,17,.9), transparent 47%); }
.hero::after { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(110deg, transparent 65%, rgba(240,110,66,.12)); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; display: flex; min-height: 100svh; flex-direction: column; justify-content: center; padding: 8rem var(--gutter) 8.5rem; }
.eyebrow, .section-index { margin: 0; font-size: .58rem; font-weight: 700; letter-spacing: .2em; }
.eyebrow { margin-bottom: 2rem; }
.eyebrow span { color: var(--orange); }
.hero h1 { max-width: 1000px; margin: 0; font-size: clamp(3.5rem, 7.4vw, 8rem); font-weight: 700; line-height: .88; letter-spacing: -.058em; }
.hero h1 span { display: block; }
.hero h1 em, .display-title em, .loop-heading em, .community-section em, .services-title em { color: var(--orange); font-style: normal; }
.hero h1 span:nth-child(2) { margin-left: 5vw; }
.hero-bottom { display: grid; grid-template-columns: minmax(15rem, 30rem) auto; gap: 3rem; align-items: end; margin-top: 2.8rem; }
.hero-bottom > p { margin: 0; color: rgba(237,227,214,.78); font-size: clamp(.9rem, 1.2vw, 1.15rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 2rem; }
.button { display: inline-flex; justify-content: space-between; gap: 1.25rem; align-items: center; padding: .82rem 1.05rem; border-radius: 999px; font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.button span { font-size: 1rem; transition: transform .2s; }
.button:hover span { transform: translate(3px, -3px); }
.button-orange { background: var(--orange); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--cream); }
.text-link { display: inline-flex; gap: .8rem; padding-block: .45rem; border-bottom: 1px solid currentColor; font-size: .58rem; font-weight: 700; letter-spacing: .12em; }
.text-link.dark { color: var(--ink); }
.hero-ticket { position: absolute; z-index: 4; top: 22%; right: var(--gutter); display: flex; min-width: 10.5rem; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem; border: 1px solid rgba(237,227,214,.45); background: rgba(24,24,23,.72); color: var(--cream); backdrop-filter: blur(12px); }
.hero-ticket span, .hero-ticket p { margin: 0; color: rgba(237,227,214,.58); font-size: .48rem; font-weight: 700; letter-spacing: .14em; }
.hero-ticket strong { font-size: .9rem; letter-spacing: .03em; }
.hero-stats { position: absolute; z-index: 4; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, 1fr); padding-inline: var(--gutter); border-top: 1px solid rgba(237,227,214,.25); background: rgba(22,22,21,.58); backdrop-filter: blur(10px); }
.hero-stats p { margin: 0; padding: 1.15rem 1rem; border-right: 1px solid rgba(237,227,214,.22); font-size: .72rem; font-weight: 700; }
.hero-stats p:first-child { padding-left: 0; }
.hero-stats p:last-child { border: 0; }
.hero-stats span { display: block; margin-bottom: .35rem; color: rgba(237,227,214,.48); font-size: .47rem; letter-spacing: .16em; }

.marquee { overflow: hidden; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line-dark); background: var(--cream); color: rgba(33,33,33,.62); }
.marquee > div { display: flex; justify-content: space-between; align-items: center; }
.marquee span { padding-inline: 1rem; font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.marquee i { font-size: .55rem; font-style: normal; }

.section-shell { padding: clamp(5rem, 10vw, 10rem) var(--gutter); }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: start; margin-bottom: clamp(4rem, 8vw, 8rem); color: var(--ink); }
.section-heading.light { color: var(--cream); }
.section-aside { margin: 0; font-size: .55rem; font-weight: 700; line-height: 1.5; letter-spacing: .14em; text-align: right; }
.display-title { margin: 0; font-size: clamp(3.2rem, 6.4vw, 7rem); font-weight: 700; line-height: .88; letter-spacing: -.06em; }

.game-section { background: var(--cream); color: var(--ink); }
.game-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.game-label { margin: 0 0 1.4rem; color: var(--orange); font-size: .58rem; font-weight: 700; letter-spacing: .17em; }
.game-intro { max-width: 31rem; margin: 2.5rem 0 0; color: rgba(33,33,33,.67); font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.65; }
.game-links { display: flex; align-items: center; gap: 1.8rem; margin-top: 2.4rem; }
.game-art { position: relative; padding: clamp(.55rem, .8vw, .8rem); border: 1px solid rgba(33,33,33,.34); background: transparent; }
.game-art::before { display: none; }
.game-art img { height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #e7af7f; filter: saturate(1.02) contrast(1.02); }
.game-art-tag { display: flex; justify-content: space-between; padding: .8rem .2rem 0; color: var(--ink); font-size: .5rem; font-weight: 700; letter-spacing: .15em; }
.loop { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 9rem); margin-top: clamp(6rem, 14vw, 14rem); padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.loop-heading h3 { margin: 1.8rem 0 0; font-size: clamp(2.6rem, 5vw, 5.5rem); line-height: .9; letter-spacing: -.06em; }
.loop-tabs { border-top: 1px solid var(--line-dark); }
.loop-tabs button { display: flex; width: 100%; gap: 1.3rem; padding: 1.35rem 0; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; color: rgba(33,33,33,.45); font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-align: left; cursor: pointer; }
.loop-tabs button span { color: var(--orange); }
.loop-tabs button[aria-selected="true"] { color: var(--ink); }
.loop-panels { grid-column: 2; }
.loop-panels article { display: grid; grid-template-columns: 5rem 1fr auto; gap: 2rem; align-items: end; padding: 2rem; background: var(--ink); color: var(--cream); }
.loop-panels article[hidden] { display: none; }
.loop-number { margin: 0; color: var(--orange); font-size: 3.5rem; font-weight: 900; line-height: .8; }
.loop-panels h4 { margin: 0 0 .7rem; font-size: clamp(1.4rem, 2.3vw, 2.3rem); }
.loop-panels article div p { max-width: 34rem; margin: 0; color: rgba(237,227,214,.62); line-height: 1.6; }
.loop-panels article > span { color: var(--orange); font-size: 2rem; }

.work-section { position: relative; overflow: hidden; background: var(--ink); }
.work-section::before { content: '231'; position: absolute; top: 8rem; right: -2vw; color: rgba(237,227,214,.025); font-size: 40vw; font-weight: 900; line-height: .7; letter-spacing: -.12em; }
.work-title { position: relative; z-index: 1; margin-bottom: clamp(4rem, 8vw, 8rem); }
.feature-project { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr .55fr; gap: clamp(2rem, 4vw, 5rem); align-items: end; }
.feature-image { position: relative; overflow: hidden; }
.feature-image img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s, filter .4s; }
.feature-image > span { position: absolute; right: 1rem; bottom: 1rem; padding: .75rem 1rem; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: .55rem; font-weight: 700; letter-spacing: .13em; }
.feature-image:hover img { transform: scale(1.025); filter: brightness(.78); }
.feature-meta > p:first-child { color: var(--orange); font-size: .52rem; font-weight: 700; letter-spacing: .14em; }
.feature-meta h3 { margin: 1.2rem 0; font-size: clamp(2.4rem, 4vw, 4.5rem); line-height: .85; letter-spacing: -.06em; }
.feature-meta div { display: flex; flex-wrap: wrap; gap: .5rem; }
.feature-meta div span { padding: .45rem .55rem; border: 1px solid rgba(237,227,214,.3); font-size: .48rem; letter-spacing: .1em; }
.feature-meta > p:last-child { margin-top: 1.8rem; color: rgba(237,227,214,.58); line-height: 1.6; }
.world-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.5rem); margin-top: clamp(5rem, 10vw, 10rem); }
.world-card.offset { margin-top: 5rem; }
.world-image { overflow: hidden; background: #111; }
.world-image img { height: auto; aspect-ratio: 16 / 9; object-fit: contain; transition: transform .7s, filter .4s; }
.world-card:hover img { transform: scale(1.035); filter: saturate(1.18); }
.world-card > div:last-child { display: flex; justify-content: space-between; gap: 1rem; align-items: end; padding-top: 1rem; border-top: 2px solid var(--orange); }
.world-card h3 { margin: 0; font-size: clamp(1.3rem, 2.3vw, 2.4rem); letter-spacing: -.05em; }
.world-card p { max-width: 10rem; margin: 0; color: rgba(237,227,214,.48); font-size: .48rem; line-height: 1.5; letter-spacing: .11em; text-align: right; }

.studio-section { position: relative; background: var(--cream); color: var(--ink); }
.studio-section::before { content: ''; position: absolute; inset: 0; background: url('assets/brand-pattern.png') center/520px repeat; opacity: .21; mix-blend-mode: multiply; }
.studio-intro, .studio-values { position: relative; z-index: 1; }
.studio-intro { display: grid; grid-template-columns: .28fr 1fr .5fr; gap: 4vw; align-items: end; }
.studio-lead { margin: 0; color: rgba(33,33,33,.67); font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.65; }
.studio-values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(5rem, 9vw, 9rem); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.studio-values article { padding: 2rem; border-right: 1px solid var(--line-dark); }
.studio-values article:first-child { padding-left: 0; }
.studio-values article:last-child { border: 0; }
.studio-values span { color: var(--orange); font-size: .56rem; font-weight: 700; }
.studio-values h3 { margin: 2.5rem 0 1rem; font-size: clamp(1.5rem, 2.4vw, 2.5rem); letter-spacing: -.05em; }
.studio-values p { margin: 0; color: rgba(33,33,33,.6); line-height: 1.65; }

.services-section { position: relative; overflow: hidden; background: var(--ink); }
.pattern { position: absolute; inset: 0; background: url('assets/brand-pattern.png') center/540px repeat; filter: invert(1); opacity: .035; }
.services-inner { position: relative; z-index: 1; }
.services-title { margin: 0 0 clamp(5rem, 9vw, 9rem); font-size: clamp(3.2rem, 6.4vw, 7rem); font-weight: 700; line-height: .88; letter-spacing: -.06em; }
.service-list { border-top: 1px solid var(--line-light); }
.service-list article { display: grid; grid-template-columns: 4rem 1fr minmax(16rem, 30rem) 3rem; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line-light); }
.service-list article > p:first-child { color: var(--orange); font-size: .6rem; }
.service-list h3 { margin: 0; font-size: clamp(1.8rem, 3.3vw, 3.8rem); letter-spacing: -.05em; }
.service-list article > p:nth-child(3) { color: rgba(237,227,214,.57); line-height: 1.6; }
.service-list article > span { display: grid; width: 2.8rem; aspect-ratio: 1; place-items: center; border: 1px solid rgba(237,227,214,.35); border-radius: 50%; transition: transform .25s, background .25s, color .25s; }
.service-list article:hover > span { transform: rotate(45deg); background: var(--orange); color: var(--ink); }

.community-section { padding: clamp(5rem, 10vw, 10rem) var(--gutter); border-top: 1px solid var(--line-dark); background: var(--cream-light); color: var(--ink); }
.community-section h2 { margin: 2rem 0; font-size: clamp(3.2rem, 6.8vw, 7.5rem); font-weight: 700; line-height: .86; letter-spacing: -.06em; }
.community-section h2 em { color: var(--orange); }
.community-section > p:nth-of-type(2) { max-width: 37rem; margin: 0 0 4rem auto; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.6; }
.community-links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(33,33,33,.4); border-bottom: 1px solid rgba(33,33,33,.4); }
.community-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 1rem; border-right: 1px solid rgba(33,33,33,.4); font-size: .62rem; font-weight: 700; letter-spacing: .13em; }
.community-links a:first-child { padding-left: 0; }
.community-links a:last-child { border: 0; }
.community-links b { font-size: 1rem; transition: transform .2s; }
.community-links a:hover b { transform: translate(3px, -3px); }

.contact-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 9rem); background: var(--cream); color: var(--ink); }
.contact-heading .section-index { margin-bottom: 2rem; }
.contact-form > p:first-child { max-width: 31rem; margin: 0 0 3rem; color: rgba(33,33,33,.62); line-height: 1.65; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-form label { display: block; margin-bottom: 2rem; }
.contact-form label span { display: block; margin-bottom: .7rem; color: rgba(33,33,33,.5); font-size: .52rem; font-weight: 700; letter-spacing: .15em; }
.contact-form input, .contact-form textarea { width: 100%; padding: .5rem 0 1rem; border: 0; border-bottom: 1px solid rgba(33,33,33,.45); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: clamp(1rem, 1.45vw, 1.25rem); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(33,33,33,.3); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form button { display: inline-flex; min-width: 13rem; justify-content: space-between; gap: 1.5rem; align-items: center; padding: .9rem 1.15rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream); font-size: .63rem; font-weight: 700; letter-spacing: .15em; cursor: pointer; transition: background .2s, color .2s; }
.contact-form button:hover { background: var(--orange); color: var(--ink); }
.contact-form button:disabled { cursor: wait; opacity: .6; }
.contact-form button b { font-size: 1.15rem; font-weight: 400; }
.form-status { min-height: 1rem; margin: .7rem 0 0; color: rgba(33,33,33,.55); font-size: .63rem; }
.form-status.is-success { color: #27613a; }
.form-status.is-error { color: #9b2f25; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: end; padding: 2rem var(--gutter); background: var(--ink); border-top: 1px solid var(--line-light); }
.site-footer img { width: clamp(4rem, 6vw, 6rem); }
.site-footer p { margin: 0; color: rgba(237,227,214,.56); font-size: .52rem; letter-spacing: .14em; }
.site-footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(1.3rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes hero-in { from { transform: scale(1.06); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-note { display: none; }
  .menu-toggle { justify-self: end; display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; color: var(--cream); cursor: pointer; }
  .menu-toggle span { margin-bottom: .1rem; font-size: .52rem; font-weight: 700; letter-spacing: .14em; }
  .menu-toggle i { display: block; width: 1.8rem; height: 1px; background: currentColor; }
  .main-nav { position: absolute; top: 100%; right: var(--gutter); display: none; min-width: 16rem; padding: 1.5rem; align-items: stretch; flex-direction: column; background: rgba(28,28,27,.98); }
  .main-nav.is-open { display: flex; }
  .hero h1 { font-size: clamp(4rem, 11vw, 7rem); }
  .hero-ticket { top: 16%; }
  .game-grid, .loop, .feature-project, .contact-section { grid-template-columns: 1fr; }
  .game-art { margin-left: 10vw; }
  .loop-panels { grid-column: 1; }
  .feature-meta { max-width: 36rem; }
  .studio-intro { grid-template-columns: 1fr; }
  .studio-intro .section-index { margin-bottom: 1.5rem; }
  .studio-lead { max-width: 35rem; margin-top: 2rem; }
  .service-list article { grid-template-columns: 3rem 1fr 3rem; }
  .service-list article > p:nth-child(3) { grid-column: 2; }
  .service-list article > span { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 680px) {
  .hero-copy { justify-content: flex-end; padding-bottom: 10.5rem; }
  .hero h1 { font-size: clamp(3.5rem, 16vw, 5.6rem); }
  .hero h1 span:nth-child(2) { margin-left: 0; }
  .hero-bottom { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 1rem; }
  .hero-ticket { top: 7rem; right: 1rem; width: 6.5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats p:nth-child(2) { border-right: 0; }
  .hero-stats p:nth-child(-n+2) { border-bottom: 1px solid rgba(237,227,214,.22); }
  .section-heading { margin-bottom: 4rem; }
  .marquee > div { justify-content: center; flex-wrap: wrap; gap: .55rem; }
  .marquee span { padding-inline: .2rem; }
  .section-aside { display: none; }
  .game-art { margin-left: 0; }
  .game-links { align-items: stretch; flex-direction: column; }
  .loop-panels article { grid-template-columns: 1fr; }
  .loop-panels article > span { display: none; }
  .world-grid, .studio-values, .community-links { grid-template-columns: 1fr; }
  .world-card.offset { margin-top: 0; }
  .world-image img { aspect-ratio: 16 / 9; }
  .studio-values article { padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .studio-values article:last-child { border-bottom: 0; }
  .service-list article { gap: .7rem; }
  .service-list h3 { font-size: 1.55rem; }
  .community-links a { padding-left: 0; border-right: 0; border-bottom: 1px solid rgba(33,33,33,.4); }
  .community-links a:last-child { border-bottom: 0; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
