* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; }
body.dialog-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: var(--background); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
.wrap { width: calc(100% - 80px); margin-inline: auto; }
.section-space { padding-block: 56px; }
h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.35; letter-spacing: -.06em; font-weight: 650; word-break: keep-all; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 20px; background: var(--lime); color: var(--background); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* Original showreel, behind the original headline. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(780px, 100svh); }
.hero-reel { position: absolute; inset: 0; z-index: -1; background: var(--background); }
.reel-poster, .reel-video, .reel-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.reel-poster, .reel-video { object-fit: cover; filter: saturate(.8); }
.reel-poster { opacity: .72; transition: opacity .5s; }
.reel-video { opacity: 0; transition: opacity .5s; }
.hero-reel[data-loaded] .reel-video { opacity: .62; }
.hero-reel[data-loaded] .reel-poster { opacity: 0; }
.reel-shade { background: linear-gradient(90deg, #09090cf2, #09090c8a 58%, #09090c55), linear-gradient(0deg, #09090c, transparent 48%, #09090c55); }
.hero-original-logo { position: absolute; width: 76%; height: auto; left: 12%; top: 9%; object-fit: contain; opacity: .82; }
.hero-inner { min-height: inherit; display: flex; flex-direction: column; justify-content: space-between; padding-top: 124px; padding-bottom: 28px; position: relative; z-index: 1; }
.hero-copy { position: relative; transform: none; }
.hero h1 { width: 100%; font-size: clamp(76px, 8.3vw, 124px); font-weight: 800; letter-spacing: -.065em; line-height: 1.04; }
.hero h1 > span { display: block; }
.title-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.title-line > span { display: block; transform-origin: left bottom; animation: title-enter 1.3s var(--ease) both; }
.title-line:nth-child(2) > span { animation-delay: .13s; }
.title-line:nth-child(3) > span { animation-delay: .26s; }
.title-outline { color: #d7d1dc; -webkit-text-stroke: 0; font-weight:500; letter-spacing:-.025em; }
.hero-introduction > span { color: var(--pink); }
.hero-description { font-size: 16px; color: #d3ced7; line-height: 1.85; margin-top: 34px; word-break: keep-all; animation: copy-enter 1s .65s var(--ease) both; }
.hero-actions { display: flex; gap: 30px; align-items: center; margin-top: 30px; }
.hero-actions { animation: copy-enter 1s .78s var(--ease) both; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; min-height: 54px; padding: 14px 24px; border: 1px solid var(--pink); border-radius: 0; background: var(--pink); color: #160d16; font-weight: 700; font-size: 14px; transition: background .25s, transform .25s var(--ease); }
.button:hover { background: #f598d1; transform: translateY(-2px); }
.button > span { font-size: 23px; line-height: 1; transition: transform .4s var(--ease); }
.button:hover > span { transform: translate(3px, -3px); }
.quiet-link { display: inline-flex; gap: 18px; align-items: center; font-size: 14px; transition: color .2s; }
.quiet-link:hover { color: var(--pink); }
.quiet-link > span { font-size: 21px; transition: transform .4s var(--ease); }
.quiet-link:hover > span { transform: translateX(4px); }
.hero-bottom { position:absolute; right:0; bottom:24px; width:min(42%,560px); display:flex; justify-content:flex-end; }
.reel-credits { width: min(590px, 68%); text-align: right; text-shadow: 0 2px 5px #000; }
.reel-credits ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px 24px; }
.reel-credits[data-layout=grid] ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reel-credits li { min-width: 0; }
.reel-credits strong { display: block; font-size: 17px; font-weight: 650; line-height: 1.5; }
.reel-credits p { font-size: 11px; line-height: 1.7; color: #c5bfc9; margin-top: 3px; word-break: keep-all; overflow-wrap: anywhere; }
.reel-credits .credit-people { color: #e1dce5; }
.reel-credits[data-layout=grid] strong { font-size: 13px; }
.reel-credits[data-layout=grid] p { font-size: 10px; }

/* Games */
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; gap: 26px; }
.filter-group button { position: relative; background: none; color: var(--muted); padding: 14px 0 18px; font-size: 14px; white-space: nowrap; }
.filter-group button[aria-pressed=true] { color: var(--text); }
.filter-group button[aria-pressed=true]::after { position: absolute; content: ""; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--pink); }
.filter-group button:hover { color: var(--text); }
.gallery-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 30px 28px; padding-bottom: 0; }
.game-card { --stagger: 0px; padding: 0; min-width: 0; width: 100%; margin-top: 0; background: none; text-align: left; }
.game-card:nth-child(even) { --stagger: 76px; }
.game-cover { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #202126; transition: clip-path 1.1s var(--ease); }
.game-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform .65s var(--ease); pointer-events: none; }
.game-card:hover .game-cover::after { transform: scaleX(1); transform-origin: left; }
.game-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; }
.game-card:hover .game-cover > img { transform: scale(1.045); filter: brightness(1.06); }
.game-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 13px; padding-top: 22px; }
.game-meta h3 { font-size: 23px; line-height: 1.5; letter-spacing: -.04em; font-weight: 600; transition: color .3s; }
.game-card:hover .game-meta h3 { color: #f3a9d7; }
.game-meta > span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.game-card > p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 7px; }

/* Club and roles */
.about-section, .log-section { background: var(--surface); border-block: 1px solid #202025; }
.about-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.about-copy p { font-size: 19px; line-height: 1.95; color: #c4c0c7; word-break: keep-all; }
.about-copy p + p { margin-top: 14px; }
.roles-section { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); align-items: center; }
.role-art { min-width: 0; }
.role-art h2 { font-size: 25px; }
.role-graphics { width: 100%; height: 340px; margin-top: 16px; overflow: hidden; }
.role-workspace { min-width: 0; padding-bottom: 34px; }
.role-list { display: flex; border-bottom: 1px solid var(--line); gap: 29px; }
.role-list button { position: relative; background: none; padding: 10px 0 20px; font-size: 16px; color: var(--muted); white-space: nowrap; }
.role-list button[aria-selected=true] { color: var(--pink); }
.role-list button[aria-selected=true]::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--pink); }
.role-panel { padding-top: 30px; min-height: 190px; animation: panel-enter .6s var(--ease); }
.role-panel h3 { font-size: 34px; font-weight: 550; line-height: 1.65; letter-spacing: -.05em; word-break: keep-all; }
.role-panel p { font-size: 15px; color: var(--muted); line-height: 1.9; margin-top: 15px; word-break: keep-all; }

/* Activities and existing logs */
.activity-heading { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.activity-scene { min-width: 0; }
.activity-list { margin-top: 34px; border-top: 1px solid var(--line); }
.activity-row { position: relative; display: grid; grid-template-columns: 1fr 1.7fr; gap: 60px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: center; }
.activity-row::before { content: ""; position: absolute; inset: -1px 0 auto; height: 1px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.activity-row:hover::before { transform: scaleX(1); }
.activity-row h3 { font-size: 24px; font-weight: 550; letter-spacing: -.04em; transition: color .4s, transform .6s var(--ease); }
.activity-row:hover h3 { color: #f3a9d7; transform: translateX(8px); }
.activity-row p { font-size: 15px; color: var(--muted); line-height: 1.9; word-break: keep-all; }
.log-list { margin-top: 38px; }
.log-row { display: grid; grid-template-columns: 130px 1fr; gap: 50px; padding: 34px 0; border-top: 1px solid var(--line); }
.log-row time { font-size: 14px; color: var(--muted); padding-top: 4px; }
.log-row h3 { font-size: 19px; font-weight: 550; line-height: 1.6; letter-spacing: -.025em; }
.log-row p { font-size: 14px; color: var(--muted); line-height: 1.9; margin-top: 10px; word-break: keep-all; }
.log-link { margin-top: 12px; }
.faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: 65px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 22px; list-style: none; padding: 24px 0; font-size: 15px; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { font-size: 21px; transition: transform .2s; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details p { font-size: 14px; color: var(--muted); line-height: 1.95; padding: 0 35px 24px 0; word-break: keep-all; }
/* Artwork details */
.game-dialog { border: 1px solid #37343e; padding: 0; width: min(700px, calc(100% - 32px)); max-height: 90dvh; overflow: auto; background: #141318; color: var(--text); border-radius: 0; }
.game-dialog[open] { animation: dialog-enter .5s var(--ease); }
.game-dialog::backdrop { background: #050508dd; backdrop-filter: blur(6px); }
.game-dialog[open]::backdrop { animation: backdrop-enter .4s ease; }
.dialog-close { position: absolute; top: 13px; right: 13px; z-index: 1; width: 40px; height: 40px; border-radius: 2px; background: #0b0b0ee8; color: var(--text); font-size: 28px; }
.dialog-image { width: 100%; max-height: 350px; object-fit: cover; aspect-ratio: 16/9; }
.dialog-content { padding: 30px; }
#dialog-event { color: var(--muted); font-size: 13px; }
.dialog-content h2 { font-size: 28px; line-height: 1.5; margin: 12px 0 16px; }
#dialog-description { font-size: 15px; line-height: 1.9; color: var(--muted); word-break: keep-all; }
.dialog-credits { display: grid; grid-template-columns: 60px 1fr; gap: 10px 20px; font-size: 13px; line-height: 1.9; margin-block: 23px 28px; }
.dialog-credits dt { color: var(--muted); }
.dialog-credits dd { margin: 0; }

/* Low-resolution art is enlarged with nearest-neighbor pixels. */
.pixel-canvas { display:block; width:100%; height:100%; image-rendering:pixelated; object-fit:contain; }
.pixel-world { position:absolute; z-index:0; left:0; bottom:0; width:min(62vw,1100px); aspect-ratio:12 / 5; opacity:.3; pointer-events:none; mask-image:linear-gradient(to right,#000 64%,transparent 100%); }
.pixel-world .pixel-canvas { object-position:left bottom; }
.role-graphics { width:100%; height:auto; aspect-ratio:10 / 7; }
.activity-scene { aspect-ratio:30 / 19; }

/* Typography and image masks. */
.js-motion .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-motion .reveal.visible { opacity: 1; transform: none; }
.js-motion .game-card .game-cover { clip-path: inset(0 0 100% 0); }
.js-motion .game-card.visible .game-cover { clip-path: inset(0); }
@keyframes title-enter { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes copy-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes panel-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; transition: none !important; }
.motion-paused .reveal, .motion-paused .hero-copy, .motion-paused .role-panel, .motion-paused .title-line > span, .motion-paused .hero-description, .motion-paused .hero-actions, .motion-paused .game-dialog[open], .motion-paused .game-dialog[open]::backdrop { opacity: 1; transform: none; animation: none; }
.motion-paused .game-cover { transform: none; clip-path: none !important; }
.motion-paused .activity-row:hover h3, .motion-paused .button:hover > span, .motion-paused .quiet-link:hover > span { transform: none; }
.motion-paused .game-card:hover .game-cover > img, .motion-paused .button:hover { transform: none; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 72px); }
  .hero-inner { padding-top: 124px; }
  .hero h1 { font-size: 8.9vw; }
  .section-space { padding-block: 48px; }
  .about-intro { gap: 42px; }
  .roles-section, .faq { gap: 40px; grid-template-columns: 1fr 1.5fr; }
  .role-list { gap: 24px; }
  .role-list button { font-size: 14px; }
  .game-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .game-grid { gap: 32px 38px; }
  .game-meta h3 { font-size: 20px; }
  .game-card > p { font-size: 12px; }
  .activity-row { gap: 35px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .section-space { padding-block: 36px; }
  h2 { font-size: 28px; line-height: 1.6; }
  .hero { min-height: max(800px, 100svh); }
  .hero-inner { padding-top: 124px; padding-bottom: 24px; }
  .hero-original-logo { opacity: .62; }
  .hero h1 { font-size: clamp(50px, 12.8vw, 88px); line-height: 1.08; letter-spacing: -.065em; }
  .hero h1 .hero-introduction { font-size: clamp(29px, 8.2vw, 61px); line-height: 1.6; letter-spacing: -.055em; }
  .title-outline { -webkit-text-stroke-width: 0; }
  .hero-description { margin-top: 20px; font-size: 14px; line-height: 1.95; max-width: 290px; }
  .hero-actions { margin-top: 28px; gap: 25px; }
  .hero-actions .quiet-link { font-size: 12px; gap: 13px; }
  .button { min-height: 47px; font-size: 13px; padding: 11px 19px; gap: 28px; }
  .button > span { font-size: 21px; }
  .reel-shade { background: linear-gradient(90deg, #09090cd9, #09090c60), linear-gradient(0deg, #09090c, transparent 65%, #09090c88); }
  .reel-poster, .reel-video { object-position: 58% center; }
  .hero-bottom { width:100%; flex-direction:column; align-items:stretch; }
  .reel-credits { width: 100%; text-align: left; }
  .reel-credits ul { gap: 12px 18px; }
  .reel-credits strong { font-size: 14px; }
  .reel-credits p { font-size: 10px; }
  .reel-credits[data-layout=grid] strong { font-size: 12px; }
  .reel-credits[data-layout=grid] p { font-size: 9px; }
  .section-heading { align-items: center; gap: 21px; margin-bottom: 26px; }
  .quiet-link { font-size: 12px; gap: 12px; }
  .quiet-link > span { font-size: 18px; }
  .filter-group { gap: 22px; }
  .filter-group button { font-size: 12px; padding-bottom: 14px; }
  .gallery-toolbar { margin-bottom: 22px; gap: 12px; }
  .gallery-count { font-size: 10px; }
  .game-grid { grid-template-columns: 1fr; gap: 36px; }
  .game-card { margin-top: 0; }
  .game-cover { aspect-ratio: 16/10; }
  .game-meta { padding-top: 16px; gap: 5px; }
  .game-meta h3 { font-size: 20px; line-height: 1.6; }
  .game-meta > span { font-size: 10px; }
  .game-card > p { font-size: 12px; line-height: 1.85; margin-top: 6px; }
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .about-copy p { font-size: 16px; }
  .roles-section { margin-top: 48px; padding-top: 38px; grid-template-columns: 1fr; gap: 14px; }
  .role-art h2 { font-size: 23px; }
  .role-graphics { height: auto; aspect-ratio: 10 / 7; margin-top: 8px; }
  .role-workspace { padding-bottom: 0; }
  .role-list { justify-content: space-between; gap: 16px; }
  .role-list button { font-size: 14px; padding-bottom: 16px; }
  .role-panel { min-height: 162px; padding-top: 24px; }
  .role-panel h3 { font-size: 20px; }
  .role-panel p { font-size: 14px; }
  .activity-list { margin-top: 28px; }
  .activity-heading { grid-template-columns: 1fr; gap: 28px; }
  .activity-row { grid-template-columns: 1fr; gap: 12px; padding-block: 27px; }
  .activity-row h3 { font-size: 18px; }
  .activity-row p { font-size: 14px; }
  .log-list { margin-top: 26px; }
  .log-row { grid-template-columns: 1fr; gap: 11px; padding-block: 25px; }
  .log-row time { font-size: 12px; padding: 0; }
  .log-row h3 { font-size: 17px; }
  .log-row p { font-size: 13px; margin-top: 9px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq-list summary { font-size: 13px; padding-block: 21px; }
  .faq-list details p { font-size: 13px; padding-right: 10px; }
  .dialog-content { padding: 23px; }
  .dialog-content h2 { font-size: 24px; }
  #dialog-description { font-size: 14px; }
  #dialog-event { font-size: 12px; }
  .dialog-credits { grid-template-columns: 45px 1fr; gap: 8px 15px; font-size: 12px; }
  .dialog-content .button { font-size: 12px; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner { padding-top: 120px; }
  .hero h1 .hero-introduction { font-size: 27px; }
  .hero-description { font-size: 13px; }
  h2 { font-size: 25px; }
  .filter-group { gap: 16px; }
  .filter-group button { font-size: 11px; }
  .gallery-count { font-size: 9px; }
  .role-list { gap: 14px; }
  .role-list button { font-size: 13px; }
  .game-meta h3 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
  .game-cover { clip-path: none !important; transform: none; }
  .game-card:hover .game-cover > img, .button:hover { transform: none; }
}

/* Edge-to-edge compositions, with artwork kept outside the logo's region. */
html, body { scrollbar-width:none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width:0; height:0; }
.hero-logo { position:absolute; z-index:0; width:min(44vw,640px); aspect-ratio:1; top:14%; right:-4%; pointer-events:none; }
.hero-original-logo { width:76%; left:12%; top:9%; }
.activities-section { display:grid; grid-template-columns:1.15fr 1fr; gap:36px; align-items:center; }
.activity-heading { display:block; }
.activity-heading h2 { margin-bottom:24px; }
.activity-list { margin:0; }
.activity-row { grid-template-columns:1fr; gap:8px; padding-block:22px; }
.activity-row h3 { font-size:22px; }
.activity-row p { font-size:14px; }
.log-row { padding-block:24px; }
@media (max-width:1100px) {
  .roles-section { grid-template-columns:1.1fr 1fr; gap:30px; }
  .hero-logo { width:46vw; top:18%; }
  .activity-row h3 { font-size:19px; }
  .activity-row p { font-size:13px; }
}
@media (max-width:760px) {
  .hero-logo { width:76vw; max-width:360px; right:0; top:41%; }
  .pixel-world { width:100%; height:20%; aspect-ratio:auto; opacity:.2; mask-image:linear-gradient(to top,#000,transparent 100%); }
  .roles-section { grid-template-columns:1fr; gap:18px; margin-top:28px; padding-top:28px; }
  .role-graphics { margin-inline:-20px; width:calc(100% + 40px); }
  .role-panel { min-height:140px; }
  .activities-section { display:block; }
  .activity-scene { width:calc(100% + 40px); margin:0 -20px 20px; }
  .activity-row { padding-block:21px; }
  .activity-row h3 { font-size:19px; }
  .activity-row p { font-size:14px; }
  .about-copy p { font-size:15px; }
  .section-heading { margin-bottom:18px; }
  .game-grid { gap:30px; }
}
@media (max-width:360px) {
  .role-graphics { margin-inline:-16px; width:calc(100% + 32px); }
  .activity-scene { width:calc(100% + 32px); margin-inline:-16px; }
}
