/* Zodhouse. A small house at night: ink, bone and the blue of the logo's z's. */
:root {
  color-scheme: dark;
  --night: #0E0D10;
  --ink: #121113;
  --coal: #1B1A1F;
  --coal-2: #24222A;
  --bone: #F2EBDD;
  --paper: #FAF6EE;
  --blue: #4F86FF;
  --mist: #7FA8FF;
  --deep: #1E2B57;
  --line: rgba(18, 17, 19, .1);
  --line-dark: rgba(242, 235, 221, .1);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 26px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--night); color: var(--bone);
  font-family: var(--font); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.light-page { background: var(--paper); color: var(--ink); }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; line-height: 1.03; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { opacity: .62; }
::selection { background: var(--blue); color: var(--night); }
:focus-visible { outline: 3px solid var(--mist); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Logo */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.lockup .mark svg { height: 58px; width: auto; margin: -14px 0 -6px; display: block; }
.lockup .word svg { height: 24px; width: auto; display: block; margin-top: 3px; }
.lockup.big .mark svg { height: 104px; width: auto; margin: -24px 0 -8px; }
.lockup.big .word svg { height: 38px; }
.lockup.small .mark svg { height: 40px; width: auto; margin: -10px 0 -4px; }
.lockup.small .word svg { height: 16px; }
.mark.huge svg { height: 170px; width: auto; display: block; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 28px;
  transition: padding .35s var(--ease), background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(14, 13, 16, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 16px; opacity: .72; transition: opacity .2s; position: relative; }
.top nav a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); border-radius: 2px; transform: scaleX(0); transition: transform .3s var(--ease); }
.top nav a:hover, .top nav a.on { opacity: 1; }
.top nav a.on::after, .top nav a:hover::after { transform: scaleX(1); }
.top nav a.pill { opacity: 1; border: 1.5px solid rgba(242, 235, 221, .5); padding: 7px 16px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.top nav a.pill:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* Buttons and small bits */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 17px; min-height: 50px;
  padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--blue); color: var(--night); text-decoration: none;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(79, 134, 255, .35); }
.btn:active { transform: translateY(1px) scale(.97); transition-duration: .08s; }
.btn.ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px rgba(242, 235, 221, .3); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--bone); }
.btn.dark { background: var(--ink); color: var(--bone); }
.btn.dark:hover { box-shadow: 0 10px 24px rgba(18, 17, 19, .3); }
.btn.small { min-height: 44px; padding: 8px 20px; font-size: 15px; }
.btn.is-soon { cursor: default; }
.btn.is-soon:hover { transform: none; box-shadow: none; }
.btn small { font-size: 12px; font-weight: 700; background: var(--blue); color: var(--night); padding: 2px 8px; border-radius: 99px; }

.label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin: 0 0 16px; color: var(--mist); }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* One night sky behind the whole page. It fades in as the hero scrolls away so nothing ever switches colour. */
body { background: var(--night); }
.nightsky { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0; overflow: hidden;
  background: radial-gradient(70% 50% at 85% 0%, rgba(79, 134, 255, .10), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(79, 134, 255, .07), transparent 70%); }
.nightsky .pattern { position: absolute; inset: 0 0 auto 0; width: 100%; height: calc(100% + 760px); }
main, .foot { position: relative; }

/* Feathered pattern of little houses, stars and z's */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pattern { position: absolute; inset: -6%; width: 112%; height: 112%; overflow: visible; }
.pattern .p-house { fill: var(--bone); }
.pattern .p-star { fill: var(--bone); }
.pattern .p-z { fill: var(--blue); dominant-baseline: central; }
.pattern .p-z.mist { fill: var(--mist); }
.pattern .tw { animation: twinkle 4s ease-in-out infinite; }
.pattern .bob { animation: bob 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 50% { opacity: .12; } }
@keyframes bob { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(4px, -9px) rotate(7deg); } }
.zf0 { font-family: "Bungee"; } .zf1 { font-family: "Chewy"; } .zf2 { font-family: "Luckiest Guy"; } .zf3 { font-family: "Bangers"; }
.zf4 { font-family: "Pacifico"; } .zf5 { font-family: "Lobster"; } .zf6 { font-family: "Shrikhand"; } .zf7 { font-family: "Monoton"; }
.zf8 { font-family: "Rampart One"; } .zf9 { font-family: "Titan One"; } .zf10 { font-family: "Gochi Hand"; } .zf11 { font-family: "Rubik Bubbles"; }
.zf12 { font-family: "Caveat Brush"; } .zf13 { font-family: "Permanent Marker"; } .zf14 { font-family: "Sniglet"; font-weight: 800; } .zf15 { font-family: "Fredoka"; font-weight: 700; }

.shoot { position: absolute; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(242, 235, 221, .9)); opacity: 0; transform: rotate(-24deg); }
.shoot.go { animation: shoot 1.1s var(--ease); }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 100% { opacity: 0; translate: 260px 116px; } }

/* Little logos everywhere keep snoring */
.zz { animation: drift 5.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.zz.z2 { animation-delay: .5s; }
.zz.z3 { animation-delay: 1s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(3px, -5px) rotate(4deg); } }
.lockup:hover .zz { animation-duration: 1.4s; }

/* Hero */
.hero { position: relative; margin-top: -94px; padding-top: 94px; isolation: isolate; }
.hero .sky {
  background: radial-gradient(80% 70% at 72% 38%, rgba(79, 134, 255, .18), transparent 62%), radial-gradient(60% 50% at 10% 100%, rgba(79, 134, 255, .07), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
}
.hero .pattern { -webkit-mask-image: radial-gradient(55% 70% at 78% 46%, #000 20%, rgba(0,0,0,.22) 62%, rgba(0,0,0,.12) 100%); mask-image: radial-gradient(55% 70% at 78% 46%, #000 20%, rgba(0,0,0,.22) 62%, rgba(0,0,0,.12) 100%); }
.hero-in {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 56px 28px 120px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  min-height: min(92vh, 880px);
}
.chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 15px; font-weight: 600; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(242, 235, 221, .06); box-shadow: inset 0 0 0 1px var(--line-dark); transition: background .2s; }
.chip:hover { background: rgba(242, 235, 221, .12); }
.chip i, .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(79, 134, 255, .7); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(79, 134, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 134, 255, 0); } }
.hero h1 { font-size: clamp(50px, 7.6vw, 104px); margin: 26px 0 0; max-width: 11ch; }
.lede { font-size: 21px; max-width: 34ch; margin: 26px 0 36px; opacity: .8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-house { margin: 0; display: grid; justify-items: center; gap: 14px; }
.house-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--bone); border-radius: 30px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-.8deg); } }
.hero-house .mark svg { width: min(400px, 74vw); height: auto; display: block; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero-house figcaption { font-size: 14px; opacity: .45; }
.house-btn.snore .zz { animation: snore .9s var(--ease); }
@keyframes snore { 0% { transform: scale(1); } 35% { transform: translate(6px, -12px) scale(1.25) rotate(8deg); } 100% { transform: scale(1); } }
.house-btn.snore .mark svg { animation: yawn .9s var(--spring); }
@keyframes yawn { 30% { transform: scale(1.04, .96) rotate(-1deg); } }

.scroll-cue { position: absolute; left: 50%; bottom: 34px; width: 26px; height: 42px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px rgba(242, 235, 221, .35); transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--bone); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Glass cards, used everywhere below the hero */
.glass { background: linear-gradient(160deg, rgba(242, 235, 221, .055), rgba(242, 235, 221, .02)); box-shadow: inset 0 0 0 1px var(--line-dark), 0 30px 60px -40px rgba(0, 0, 0, .8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* The game */
.game { position: relative; padding: 70px 0 110px; }
.game::before { content: ""; position: absolute; inset: -10% -10% auto; height: 70%; background: radial-gradient(50% 50% at 30% 40%, rgba(79, 134, 255, .10), transparent 70%); pointer-events: none; z-index: -1; }
.game-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 24px; margin-bottom: 44px; }
.game-title { font-size: clamp(54px, 9vw, 128px); letter-spacing: -.045em; line-height: .92; cursor: default; }
.game-title span { display: inline-block; transition: transform .4s var(--spring), color .3s; }
.game-title span:hover { transform: translateY(-10px) rotate(-6deg); color: var(--mist); transition-duration: .15s; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 999px; background: rgba(79, 134, 255, .14); color: var(--bone); box-shadow: inset 0 0 0 1px rgba(79, 134, 255, .35); white-space: nowrap; }

.game-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.trailer {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 120% at 30% 20%, #26314F, #121113 60%);
  display: grid; place-items: center; align-content: center; gap: 14px; color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--line-dark), 0 40px 80px -40px rgba(79, 134, 255, .45);
}
.trailer-glow { position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(79, 134, 255, .22), transparent 35%); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.trailer .play { position: relative; width: 78px; height: 78px; border-radius: 50%; background: rgba(242, 235, 221, .1); box-shadow: inset 0 0 0 1.5px rgba(242, 235, 221, .35); transition: transform .3s var(--spring); }
.trailer .play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(127, 168, 255, .5); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(127, 168, 255, .45); } 100% { box-shadow: 0 0 0 26px rgba(127, 168, 255, 0); } }
.trailer:hover .play { transform: scale(1.08); }
.trailer .play::after { content: ""; position: absolute; left: 32px; top: 25px; border-left: 20px solid var(--bone); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.trailer p { position: relative; margin: 0; font-weight: 600; font-size: 15px; opacity: .7; }
.pitch { font-size: 22px; line-height: 1.5; margin: 0 0 30px; opacity: .9; }
.game-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.is-soon { background: rgba(242, 235, 221, .08); color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-dark); }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 72px; }
.features article { border-radius: 22px; padding: 24px 24px 28px; transition: transform .35s var(--spring), box-shadow .35s var(--ease); }
.features article:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: inset 0 0 0 1px rgba(127, 168, 255, .35), 0 30px 60px -30px rgba(79, 134, 255, .35); }
.features .doodle { display: block; width: 46px; height: 46px; margin-bottom: 14px; }
.features .doodle svg { width: 100%; height: 100%; overflow: visible; }
.features article:hover .doodle svg { animation: wiggle .6s var(--spring); }
@keyframes wiggle { 25% { transform: rotate(-10deg) scale(1.1); } 60% { transform: rotate(7deg); } }
.features h3 { font-size: 21px; margin-bottom: 10px; }
.features p { margin: 0; font-size: 16px; line-height: 1.55; opacity: .68; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, rgba(242, 235, 221, .035) 0 12px, rgba(242, 235, 221, .015) 12px 24px); box-shadow: inset 0 0 0 1px var(--line-dark); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(127, 168, 255, .12) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 4.5s ease-in-out infinite; }
.shot:nth-child(2)::after { animation-delay: .6s; } .shot:nth-child(3)::after { animation-delay: 1.2s; }
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.shot span { font-size: 14px; font-weight: 600; opacity: .4; }

/* Crack toy */
.toy { margin-top: 96px; border-radius: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 48px; position: relative; overflow: hidden; }
.toy::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 75% 55%, rgba(79, 134, 255, .18), transparent 70%); pointer-events: none; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.toy h2 { font-size: clamp(36px, 4.6vw, 58px); margin-bottom: 18px; }
.toy-copy { position: relative; align-self: center; }
.toy-copy > p { opacity: .78; max-width: 38ch; margin: 0 0 28px; }
.tally { display: flex; gap: 14px; margin: 0 0 24px; }
.tally div { background: rgba(242, 235, 221, .06); box-shadow: inset 0 0 0 1px var(--line-dark); border-radius: 18px; padding: 12px 18px; min-width: 128px; }
.tally dt { font-size: 14px; opacity: .6; }
.tally dd { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tally dd.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.25); color: var(--mist); } }
.sound { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 0; background: rgba(242, 235, 221, .06); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--bone); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.sound:hover { background: rgba(242, 235, 221, .12); }
.sound .ico { width: 18px; height: 14px; position: relative; }
.sound .ico::before { content: ""; position: absolute; left: 0; top: 4px; width: 6px; height: 6px; background: currentColor; box-shadow: 4px 0 0 0 currentColor; }
.sound .ico::after { content: ""; position: absolute; left: 4px; top: 0; border-right: 8px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.sound[aria-pressed="true"] { color: var(--mist); }

.toy-stage { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 420px; }
.bean { width: min(320px, 100%); height: auto; display: block; overflow: visible; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; }
.bean:active { cursor: grabbing; }
.bean:focus-visible { outline: 3px solid var(--mist); outline-offset: 6px; border-radius: 30px; }
.bean .shadow { fill: #000; opacity: .5; }
.pop { position: absolute; top: 4%; left: 50%; margin: 0; transform: translate(-50%, 0); font-weight: 800; font-size: 46px; letter-spacing: -.03em; color: var(--mist); pointer-events: none; white-space: nowrap; opacity: 0; z-index: 2; }
.pop.go { animation: popword 1s var(--ease); }
.pop.perfect { color: #CFE0FF; text-shadow: 0 0 24px rgba(79, 134, 255, .8); }
.pop.meh { color: var(--bone); font-size: 30px; }
@keyframes popword {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(.4) rotate(-6deg); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.12) rotate(-4deg); }
  34% { transform: translate(-50%, -4px) scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: translate(-50%, -36px) scale(1) rotate(-4deg); }
}
.meter { display: flex; gap: 6px; padding: 7px; border-radius: 999px; background: rgba(242, 235, 221, .06); box-shadow: inset 0 0 0 1px var(--line-dark); }
.meter i { width: 30px; height: 12px; border-radius: 6px; background: rgba(242, 235, 221, .12); transition: background .12s, transform .2s var(--spring); }
.meter i.f { background: var(--bone); transform: scaleY(1.15); }
.meter.ready i { background: var(--blue); box-shadow: 0 0 12px rgba(79, 134, 255, .7); }
.meter.over i { background: #5A5560; }
.grab-hint { font-size: 14px; opacity: .5; margin: 2px 0 0; }

/* Studio */
.studio { position: relative; padding: 110px 0 120px; }
.studio::before { content: ""; position: absolute; right: -10%; top: 0; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(79, 134, 255, .09), transparent); pointer-events: none; z-index: -1; }
.studio-head { max-width: 760px; }
.studio h2 { font-size: clamp(38px, 5.2vw, 68px); margin-bottom: 26px; }
.studio-lede { font-size: 21px; opacity: .8; margin: 0; max-width: 46ch; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.values article { border-radius: 24px; padding: 28px 26px 30px; transition: transform .35s var(--spring), box-shadow .3s; }
.values article:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(127, 168, 255, .35), 0 30px 60px -30px rgba(79, 134, 255, .35); }
.values h3 { font-size: 22px; margin: 18px 0 8px; }
.values p { margin: 0; font-size: 16px; opacity: .7; }
.v-ico svg { width: 44px; height: 44px; display: block; animation: float 5s ease-in-out infinite; }
.values article:nth-child(2) .v-ico svg { animation-delay: -1.6s; } .values article:nth-child(3) .v-ico svg { animation-delay: -3.2s; }

/* Follow */
.follow { padding: 0 0 130px; }
.follow-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; border-radius: 34px; padding: 48px; }
.follow h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 14px; }
.follow p:not(.label) { margin: 0; opacity: .72; max-width: 40ch; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links li { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-radius: 16px; background: rgba(242, 235, 221, .04); box-shadow: inset 0 0 0 1px var(--line-dark); font-weight: 700; transition: transform .3s var(--spring), background .2s; }
.links li:hover { transform: translateX(6px); background: rgba(79, 134, 255, .1); }
.links em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--mist); background: rgba(79, 134, 255, .12); padding: 3px 10px; border-radius: 99px; }

/* Contact: the same night, a moonrise of blue at the bottom */
.contact { position: relative; padding: 110px 0 150px; overflow: hidden; isolation: isolate; text-align: center; }
.contact .sky { z-index: -1; background: radial-gradient(60% 60% at 50% 110%, rgba(79, 134, 255, .38), rgba(79, 134, 255, .08) 60%, transparent 80%);
  -webkit-mask-image: linear-gradient(transparent, #000 35%); mask-image: linear-gradient(transparent, #000 35%); }
.contact .label { justify-content: center; }
.contact h2 { font-size: clamp(32px, 4.4vw, 56px); max-width: 20ch; margin: 0 auto; }
.mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; margin-top: 44px; }
.mail a { font-size: clamp(26px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.035em; text-decoration: none; background: linear-gradient(var(--blue), var(--blue)) 0 100% / 100% 4px no-repeat; padding-bottom: 4px; line-height: 1.15; overflow-wrap: anywhere; transition: background-size .3s var(--ease), color .2s; }
.mail a:hover { background-size: 0 4px; background-position: 100% 100%; color: var(--mist); }
.contact-house { display: block; margin: 0 auto 26px; width: 92px; }
.contact-house svg { width: 100%; height: auto; overflow: visible; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 30px 28px; font-size: 14px; color: rgba(242, 235, 221, .5); border-top: 1px solid var(--line-dark); background: rgba(14, 13, 16, .6); }
.foot .lockup { color: var(--bone); }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .8s var(--ease), transform .9s var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; position: relative; isolation: isolate; }
.lost .mark svg { width: 220px; height: auto; color: var(--bone); overflow: visible; }
.lost h1 { font-size: clamp(40px, 7vw, 72px); margin: 18px 0 12px; }
.lost p { opacity: .7; margin: 0 0 28px; }
.lost .sky { z-index: -1; }
.lost .mark { display: inline-block; animation: float 6s ease-in-out infinite; }

/* Smaller screens */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; gap: 12px; }
  .hero-house { order: -1; }
  .hero-house .mark svg { width: min(260px, 60vw); }
  .hero-house figcaption { display: none; }
  .game-grid, .toy, .follow-in { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: 1fr; }
  .toy { padding: 36px 28px; }
  .toy-stage { min-height: 380px; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .top { padding: 12px 16px; }
  .top nav { gap: 16px; }
  .top nav a:not(.pill) { display: none; }
  .lockup .word svg { height: 19px; }
  .wrap, .hero-in { padding-left: 16px; padding-right: 16px; }
  .hero-in { padding-bottom: 72px; }
  .lede { font-size: 19px; }
  .features, .shots { grid-template-columns: 1fr; }
  .shots .shot:nth-child(n+2) { display: none; }
  .game, .studio, .contact { padding-top: 70px; padding-bottom: 84px; }
  .pitch { font-size: 19px; }
  .toy, .follow-in { padding: 28px 20px; border-radius: 26px; }
  .tally div { min-width: 0; flex: 1; }
  .follow { padding-bottom: 84px; }
}

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