@font-face {
  font-family: "Bricolage";
  src: url("assets/fonts/bricolage-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --paper: #f8f3e8;
  --ink: #281c20;
  --muted: #6b5d60;
  --pink: #d573bc;
  --pink-ink: #a43b80;
  --lime: #e2edaa;
  --line: #d8cec6;
  --display: "Bricolage", "Arial Black", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--pink); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 6px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; }
svg { display: block; }
.container { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: 8px; transform: translateY(-160%); z-index: 100; }
.skip-link:focus { transform: translateY(0); }

/* Header and navigation. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.brand-worm { width: 43px; height: 44px; }
.brand-name { width: 132px; filter: brightness(0) saturate(100%) invert(9%) sepia(8%) saturate(1534%) hue-rotate(289deg) brightness(96%) contrast(89%); }
.primary-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; }
.primary-nav > a { padding-block: 12px; transition: color .2s; }
.primary-nav > a:hover { color: var(--pink-ink); }
.primary-nav .nav-contact { background: var(--pink); padding: 12px 23px; border: 1px solid var(--ink); border-radius: 100px; color: var(--ink); display: flex; gap: 22px; align-items: center; }
.nav-contact span { font-size: 21px; line-height: 1; }
.primary-nav .nav-contact:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }

.hero { display: grid; grid-template-columns: 1.18fr 1fr; gap: 28px; padding-top: 86px; }
.hero-copy { padding-top: 15px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 600; line-height: 1.4; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #789047; box-shadow: 0 0 0 4px #e9edd9; margin-right: 4px; }
.hero h1 { font-size: clamp(64px, 6.45vw, 96px); letter-spacing: -.065em; line-height: 1.04; margin: 27px 0 25px; }
.hero h1 > span { color: var(--pink-ink); }
.hero-description { max-width: 390px; font-size: 17px; color: var(--muted); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.button { padding: 16px 25px; display: inline-flex; align-items: center; gap: 25px; border-radius: 100px; font-weight: 600; font-size: 14px; transition: transform .2s, background .2s, color .2s; border: 1px solid var(--ink); white-space: nowrap; }
.button-dark { background: var(--ink); color: var(--paper); }
.button:hover { background: var(--pink); color: var(--ink); transform: translateY(-3px); }
.button span { font-size: 22px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 13px; font-weight: 600; }
.text-link span { font-size: 18px; }
.text-link:hover { color: var(--pink-ink); }

.hero-art { min-height: 455px; position: relative; padding: 16px 12px; }
.mascot-stage { width: 100%; max-width: 435px; aspect-ratio: 1; position: relative; margin: 0 auto; border-radius: 48% 48% 42% 42%; background: var(--ink); isolation: isolate; }
.mascot-stage::after { content: ""; position: absolute; width: 68%; height: 13%; left: 16%; bottom: 12%; border-radius: 50%; background: #150e11; filter: blur(10px); z-index: -1; }
.hero-mascot { position: absolute; inset: 13% 13% 17%; transform: rotate(-9deg); }
.hero-worm { width: 100%; height: 100%; object-fit: contain; }
.orbit { position: absolute; border: 1px solid #a08091; border-radius: 50%; opacity: .5; pointer-events: none; z-index: -1; }
.orbit-one { width: 106%; height: 45%; top: 28%; left: -3%; transform: rotate(-36deg); }
.orbit-two { width: 89%; height: 99%; top: 0; left: 6%; transform: rotate(29deg); border-style: dashed; opacity: .32; }
.spark { position: absolute; color: var(--paper); line-height: 1; pointer-events: none; }
.spark-one { top: 13%; left: 17%; font-size: 36px; transform: rotate(12deg); }
.spark-two { bottom: 25%; right: 10%; font-size: 22px; }
.hero-footnote { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 28px 0; margin-top: 34px; border-top: 1px solid var(--line); }
.hero-footnote > span { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 600; color: var(--muted); }
.hero-footnote a { display: flex; gap: 24px; align-items: center; font-size: 11px; font-weight: 600; }
.hero-footnote a:hover { color: var(--pink-ink); }
.hero-footnote a span { font-size: 20px; }

/* Two real projects, with their own artwork kept front and center. */
.games-section { padding: 78px 0 44px; background: var(--ink); color: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.section-index { gap: 14px; margin-bottom: 19px; }
.section-index > span { opacity: .4; }
.section-heading h2 { font-size: clamp(36px, 3.6vw, 50px); letter-spacing: -.05em; }
.section-heading > p { font-size: 14px; line-height: 1.7; padding-bottom: 3px; max-width: 300px; }
.games-section .section-index { color: var(--pink); }
.games-section .section-heading > p { color: #c2b5b7; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.game-card { min-width: 0; }
.game-art { display: block; overflow: hidden; position: relative; aspect-ratio: 1.6; border-radius: 11px; }
.kinetic-art { background: #e3ded8; }
.tic-tac-toe-art { background: #d0c396; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kinetic-art img { object-fit: contain; }
.game-art:hover img { transform: scale(1.035); }
.game-tag { position: absolute; top: 17px; left: 17px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--paper); color: var(--ink); border: 1px solid #281c2033; padding: 5px 12px; border-radius: 100px; }
.game-art-arrow { width: 39px; height: 39px; position: absolute; bottom: 17px; right: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 25px; transition: background .2s; }
.game-art:hover .game-art-arrow { background: var(--pink); }
.game-details { padding-top: 23px; }
.game-title-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.game-title-line h3 { font-size: clamp(23px, 2vw, 28px); letter-spacing: -.04em; }
.game-title-line h3 a:hover { color: var(--pink); }
.genre { flex-shrink: 0; text-transform: uppercase; font-size: 9px; letter-spacing: .055em; color: #c2b5b7; }
.game-details p { font-size: 14px; line-height: 1.75; max-width: 430px; margin-top: 14px; color: #c2b5b7; }
.game-link { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; color: var(--pink); margin-top: 19px; }
.game-link span { font-size: 19px; transition: transform .2s; }
.game-link:hover span { transform: translate(2px, -2px); }
.game-platforms { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #5a484f; margin-top: 36px; padding-top: 18px; }
.game-platforms > p { font-size: 13px; color: #c2b5b7; }
.link-list { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.compact-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: color .2s, border-color .2s; }
.compact-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.compact-link .external-arrow { font-size: 17px; line-height: 1; margin-left: 4px; }
.compact-link:hover { color: var(--pink-ink); border-color: var(--pink-ink); }
.game-platforms .compact-link { border-color: #80636f; }
.game-platforms .compact-link:hover { color: var(--pink); border-color: var(--pink); }
.games-section a:focus-visible { outline-color: var(--pink); }

.studio-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px 80px; padding-block: 100px; }
.studio-section-label { grid-column: 1 / -1; margin-bottom: 0; }
.studio-copy h2 { font-size: clamp(44px, 4.5vw, 63px); letter-spacing: -.055em; line-height: 1.07; margin-bottom: 22px; }
.studio-portrait { width: min(100%, 340px); aspect-ratio: 4 / 5; align-self: center; border-radius: 12px; overflow: hidden; background: #ede6dc; }
.studio-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 35%; }
.pink-word { color: var(--pink-ink); }
.studio-copy { align-self: center; }
.studio-lead { font-family: var(--display); font-size: 24px; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 23px; }
.studio-copy > p:not(.studio-lead) { font-size: 15px; color: var(--muted); max-width: 440px; margin-top: 15px; }

.name-note { max-width: 440px; border-left: 2px solid var(--pink); padding-left: 16px; margin-top: 24px; }
.name-note h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.name-note p { font-size: 14px; color: var(--muted); margin-top: 7px; }
.profile-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 23px; max-width: 440px; }
.profile-links > span { font-size: 12px; color: var(--muted); }
.profile-links .link-list { gap: 25px; }

.contact-section { background: var(--ink); color: var(--paper); padding: 76px 0 67px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.contact-section .eyebrow { color: var(--pink); }
.contact-heading h2 { font-size: clamp(44px, 4.5vw, 64px); line-height: 1.07; letter-spacing: -.055em; }
.contact-heading h2 > span { color: var(--pink); }
.contact-copy { padding-top: 24px; min-width: 0; }
.contact-copy > p:first-child { color: #c2b5b7; font-size: 14px; }
.email-link { margin-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: fit-content; font-size: clamp(16px, 1.8vw, 25px); letter-spacing: -.04em; padding-bottom: 8px; border-bottom: 1px solid #80636f; }
.email-link span { font-size: 25px; }
.email-link:hover { color: var(--pink); }
.copy-email { display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; padding: 0; font-size: 11px; margin-top: 18px; color: #c2b5b7; }
.copy-email:hover { color: var(--pink); }
.copy-email svg { width: 13px; height: 13px; }
.copy-status { min-height: 20px; color: var(--lime); font-size: 11px; margin-top: 8px; }
.contact-section a:focus-visible, .contact-section button:focus-visible { outline-color: var(--pink); }
.site-footer { background: var(--ink); color: var(--paper); border-top: 1px solid #5a484f; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.footer-brand img { width: 90px; }
.site-footer p { font-size: 10px; color: #c2b5b7; }
.back-to-top { display: flex; align-items: center; gap: 18px; font-size: 10px; }
.back-to-top span { font-size: 18px; }
.back-to-top:hover { color: var(--pink); }
.site-footer a:focus-visible { outline-color: var(--pink); }

@media (min-width: 1500px) {
  .hero { padding-top: 108px; }
  .hero-art { min-height: 485px; }
  .mascot-stage { max-width: 465px; }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 72px); }
  .hero { padding-top: 65px; gap: 15px; }
  .hero h1 { font-size: clamp(59px, 7.4vw, 81px); }
  .hero-art { min-height: 390px; padding-top: 24px; }
  .hero-actions { gap: 18px; flex-wrap: wrap; }
  .button { padding: 14px 20px; }
  .primary-nav { gap: 23px; }
  .game-title-line { align-items: flex-start; flex-direction: column; gap: 9px; }
  .studio-section { gap: 28px 48px; }
  .contact-inner { gap: 48px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 98px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 78px; gap: 16px; position: relative; flex-wrap: wrap; }
  .brand-worm { width: 34px; height: 35px; }
  .brand-name { width: 105px; }
  .brand { gap: 9px; }
  .primary-nav { width: 100%; gap: 14px; justify-content: space-between; padding-bottom: 16px; flex-wrap: wrap; }
  .primary-nav > a { font-size: 12px; padding-block: 8px; }
  .primary-nav .nav-contact { padding: 8px 15px; gap: 10px; }
  .has-navigation .primary-nav { display: none; }
  .has-navigation .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 22px; }
  .has-navigation .primary-nav.is-open > a { font-size: 16px; padding: 13px 0; }
  .has-navigation .primary-nav.is-open .nav-contact { padding: 12px 20px; margin-top: 10px; width: fit-content; }
  .menu-toggle { display: flex; gap: 12px; align-items: center; padding: 10px 0 10px 12px; background: none; border: 0; font-size: 12px; font-weight: 600; }
  .menu-lines { position: relative; width: 20px; height: 12px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
  .menu-lines::after { position: absolute; top: 4px; left: 0; content: ""; width: 20px; border-top: 1.5px solid var(--ink); }
  .menu-toggle[aria-expanded="true"] .menu-lines { border: none; }
  .menu-toggle[aria-expanded="true"] .menu-lines::before, .menu-toggle[aria-expanded="true"] .menu-lines::after { position: absolute; content: ""; left: 0; top: 5px; width: 20px; border-top: 1.5px solid var(--ink); transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); }
  .hero { grid-template-columns: 1fr; padding-top: 43px; gap: 28px; }
  .hero-copy { padding-top: 0; }
  .eyebrow { font-size: 10px; }
  .hero h1 { font-size: clamp(52px, 11.8vw, 85px); margin-top: 22px; margin-bottom: 19px; }
  .hero-description { font-size: 16px; max-width: 380px; }
  .hero-actions { margin-top: 25px; gap: 24px; }
  .hero-art { min-height: 0; width: min(410px, 100%); justify-self: center; padding: 4px 25px 10px; }
  .mascot-stage { max-width: 320px; }
  .spark-one { font-size: 27px; }
  .hero-footnote { padding-block: 22px; margin-top: 0; }
  .hero-footnote > span { max-width: 175px; font-size: 8px; line-height: 1.7; }
  .hero-footnote a { font-size: 9px; gap: 10px; }
  .games-section { padding: 53px 0 35px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 30px; }
  .section-index { margin-bottom: 16px; }
  .section-heading h2 { font-size: clamp(33px, 6.9vw, 46px); }
  .section-heading > p { font-size: 13px; }
  .game-grid { grid-template-columns: 1fr; gap: 37px; }
  .game-details { padding-top: 20px; }
  .game-title-line { flex-direction: row; align-items: center; gap: 10px; }
  .game-title-line h3 { font-size: 23px; }
  .genre { font-size: 8px; }
  .game-details p { font-size: 13px; margin-top: 12px; }
  .game-link { margin-top: 14px; }
  .game-platforms { margin-top: 30px; padding-top: 18px; gap: 14px; flex-wrap: wrap; }
  .game-platforms > p { font-size: 12px; }
  .link-list { gap: 24px; }
  .studio-section { grid-template-columns: 1fr; gap: 30px; padding-block: 62px; }
  .studio-copy h2 { font-size: clamp(43px, 9vw, 59px); }
  .studio-portrait { width: min(100%, 280px); justify-self: center; }
  .studio-copy { padding-top: 0; }
  .studio-lead { font-size: 24px; margin-bottom: 20px; }
  .studio-copy > p:not(.studio-lead) { font-size: 14px; max-width: 500px; }
  .name-note p { font-size: 13px; }
  .profile-links { gap: 8px 20px; }
  .contact-section { padding: 57px 0 38px; }
  .contact-inner { grid-template-columns: 1fr; gap: 27px; }
  .contact-heading h2 { font-size: clamp(44px, 9vw, 59px); }
  .contact-copy { padding: 0; }
  .contact-copy > p:first-child { font-size: 13px; }
  .email-link { font-size: clamp(18px, 4.8vw, 27px); margin-top: 20px; gap: 14px; }
  .footer-inner { flex-wrap: wrap; padding-block: 25px; gap: 20px; }
  .footer-brand { order: 0; }
  .back-to-top { order: 1; }
  .site-footer p { order: 2; width: 100%; font-size: 9px; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 11.7vw; }
  .hero-actions { gap: 18px; }
  .button { font-size: 12px; gap: 16px; padding: 13px 18px; }
  .hero-actions .text-link { font-size: 11px; }
  .game-title-line { flex-direction: column; align-items: flex-start; }
  .game-title-line h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
