/* Goner Studios: black, white hairlines, outlined heavy type, after the logo. */
:root {
  --bg: #000;
  --ink: #f5f5f5;
  --ink-2: #9a9a9a;
  --ink-3: #5c5c5c;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.4);
  --go: #00d4aa;
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --ease: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Film grain over everything, very faint. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 60;
  padding: 10px 16px; background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.mark { margin-right: auto; }
/* The traced logo. Stroke widths are in viewBox units, so each size sets its own. */
.logo { display: block; overflow: visible; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.mark .logo { width: auto; height: 58px; stroke-width: 14; }
.nav { display: flex; gap: 28px; }
.nav a, .pill-link {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); transition: color var(--ease);
}
.nav a:hover { color: var(--ink); }
.pill-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink);
  transition: background-color var(--ease), color var(--ease);
}
.pill-link:hover { background: var(--ink); color: var(--bg); }

/* Shared type */
.eyebrow, .index, .status, .caps dt, .log time, .work-shot figcaption, .footer-row {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
}
.eyebrow { color: var(--ink-2); }
.index { display: flex; align-items: center; gap: 16px; color: var(--ink-2); }
.index span { color: transparent; -webkit-text-stroke: 1px var(--ink); font-weight: 800; font-size: 1.5rem; letter-spacing: 0; }
.index::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title { max-width: 18ch; margin-top: 32px; font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.035em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.text-link { display: inline-flex; gap: 8px; margin-top: 32px; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color var(--ease); }
.text-link:hover { border-color: var(--ink); }

/* Outlined wordmark with a spotlight: the filled copy shows through a soft circle at the pointer. */
.wordmark { position: relative; font-weight: 800; line-height: 0.82; letter-spacing: -0.02em; user-select: none; }
.wm-line, .wm-fill { display: block; }
.wm-line { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.wm-fill {
  position: absolute; inset: 0; color: var(--ink);
  -webkit-mask-image: radial-gradient(circle 180px at var(--x, -999px) var(--y, -999px), #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 180px at var(--x, -999px) var(--y, -999px), #000 0%, transparent 100%);
}

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.edge-open { display: none; background: transparent; }
.js .edge-open { display: inline-flex; }
/* GONER over STUDIOS, spread to the same width like the logo. */
.lockup { width: fit-content; margin-top: 32px; }
.hero .wordmark { font-size: clamp(4.5rem, 21.5vw, 19.5rem); }
.wm-sub {
  display: flex; justify-content: space-between; margin-top: clamp(14px, 2.2vw, 32px);
  font-weight: 600; font-size: clamp(1.25rem, 5.4vw, 5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--ink);
}
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.hero h1 { font-weight: 600; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; }
.hero-copy p { max-width: 46ch; color: var(--ink-2); font-size: 1.0625rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: 128px 0; border-top: 1px solid var(--line); }

/* Work */
.work { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: 56px; }
.game-icon { width: 56px; height: 56px; border-radius: 12px; }
.work h2 { margin-top: 28px; font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.04em; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--ink-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 12px var(--go); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.work-body { max-width: 44ch; margin-top: 24px; color: var(--ink-2); }
.facts { margin-top: 32px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }
.facts b { color: transparent; -webkit-text-stroke: 1px var(--ink); font-weight: 800; font-size: 1.75rem; line-height: 1; }
.shot-open { display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; cursor: zoom-in; }
.shot-open img { width: 100%; aspect-ratio: 896 / 776; object-fit: cover; object-position: 0 8.14%; transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.shot-open:hover img { transform: scale(1.03); }
.work-shot figcaption { margin-top: 14px; color: var(--ink-3); }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--line); }
.caps div { padding: 28px 28px 8px 0; }
.caps div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.caps dt { color: var(--ink); }
.caps dd { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }

/* Build log */
.log-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.log { border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding-left var(--ease); }
.log li:hover { padding-left: 12px; }
.log time { padding-top: 3px; color: var(--ink-2); }
.log li:first-child time { color: var(--go); }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.member { padding: 32px; border: 1px solid var(--line); border-radius: 6px; transition: border-color var(--ease); }
.member:hover { border-color: var(--line-strong); }
.initials { color: transparent; -webkit-text-stroke: 1px var(--ink); font-weight: 800; font-size: 5rem; line-height: 1; letter-spacing: -0.03em; }
.member h3 { margin-top: 28px; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.member p:last-child { margin-top: 8px; color: var(--ink-2); }

/* Footer */
.site-footer { padding: 112px 0 40px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-cta { font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.03em; }
.wordmark-foot { margin-top: 80px; font-size: clamp(4.5rem, 24vw, 22rem); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); }

/* Live on the edge: a full-screen dialog where the hero wordmark pulls back into the logo.
   While it is open the hero lockup hides, so the dialog's GONER stands in for it. */
html:has(.edge[open]) { overflow: hidden; }
html:has(.edge[open]) .hero .lockup { visibility: hidden; }
.edge {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 24px; border: 0; background: var(--bg); color: var(--ink);
  transition: background-color 600ms ease;
}
.edge[open] { display: grid; place-content: center; justify-items: center; gap: 28px; animation: edge-in 500ms ease backwards; }
.edge::backdrop { background: transparent; }
.edge-logo { width: min(88vw, 62vh); height: auto; transform-origin: 0 0; stroke-width: 2.2; }
.edge-line { color: var(--ink-2); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; text-align: center; }
.edge.leaving { background-color: transparent; }
/* The fade targets .edge-hang, the man's wrapper, because his own grab animation holds his opacity. */
.edge.leaving .edge-cliff, .edge.leaving .edge-hang, .edge.leaving .edge-line, .edge.leaving .btn { opacity: 0; transition: opacity 250ms ease; }
@keyframes edge-in { from { background-color: transparent; } }
@media (prefers-reduced-motion: no-preference) {
  /* The cliff draws out from the hand and back, then the man grabs on, swings, and settles into a sway. */
  .edge-cliff { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(0.6, 0, 0.2, 1) 350ms forwards; }
  .edge-man { animation: grab 1.8s ease-out 1.55s both, sway 3.4s ease-in-out 3.35s infinite; }
  .edge-line, .edge .btn { animation: rise 500ms ease 1.7s backwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grab {
  0% { opacity: 0; transform: rotate(18deg); }
  12% { opacity: 1; }
  34% { transform: rotate(-10deg); }
  56% { transform: rotate(5deg); }
  78% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}
@keyframes sway { 25% { transform: rotate(2deg); } 75% { transform: rotate(-2deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Scroll reveal, only when JS is running. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1023px) {
  .nav { display: none; }
  .work, .log-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps div:nth-child(3) { padding-left: 0; border-left: 0; }
  .caps div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Mobile */
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .hero { padding: 48px 0 64px; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 48px; padding-top: 28px; }
  .hero-links .btn { flex: 1 1 100%; justify-content: center; }
  .section { padding: 88px 0; }
  .caps { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .caps div, .caps div + div { padding: 24px 0 8px; border-left: 0; }
  .caps div + div { border-top: 1px solid var(--line); }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .team { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .member { padding: 24px; }
  .site-footer { padding-top: 80px; }
  .wordmark-foot { margin-top: 56px; }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
