/* Stratton Oakmont
   Layout follows dobig.com; the skin is ours: black, platinum and champagne gold,
   serif headlines, the lion. */

:root {
  --bg: #000;
  --panel: #0d1016;
  --panel-2: #141922;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f3ee;
  --muted: #a4a9b4;
  --dim: #7d828d;
  --ink: #16120a;                 /* text on gold */
  --gold: #d9b46a;
  --gold-hi: #f4dfa9;
  --gold-grad: linear-gradient(90deg, #f0d596, #c79a4b);
  --ok: #4ade80;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bar: 80px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* default colours for icon tiles */
  --tone: #f0d596;
  --tone-2: #c79a4b;
  --on-tone: #16120a;
  color-scheme: dark;
}

/* Colour families for the icon tiles */
.tone-gold { --tone: #f0d596; --tone-2: #c79a4b; --on-tone: #16120a; }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.ico {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.center { display: flex; justify-content: center; }
.empty { width: 100%; padding: 48px 16px; text-align: center; color: var(--muted); }

/* ------------------------------------------------------------ top bar */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--bar);
  padding: 0 24px;
  background: #000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 400 31px/1 var(--serif);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.topbar__nav { display: flex; align-items: center; gap: 10px; }
.topbar__nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 28px;
  color: #fff;
  transition: color 0.2s;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  inset: auto 6px 0 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.topbar__nav a:hover { color: var(--gold-hi); }
.topbar__nav a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.topbar__nav a[aria-current="page"]::after { transform: scaleX(1); }

.topbar__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.topbar__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.topbar__toggle span:first-child { top: 16px; }
.topbar__toggle span:last-child { top: 26px; }
.topbar.is-open .topbar__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.topbar.is-open .topbar__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  font: 600 16px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s, background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--primary {
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(217, 180, 106, 0.75);
}
.btn--primary:hover { filter: brightness(1.07); box-shadow: 0 16px 36px -12px rgba(217, 180, 106, 0.9); }

.btn--slate { background: #1c212b; color: #fff; }
.btn--slate:hover { background: #262d3a; }

.btn--pill { border-radius: 999px; }
.btn--lg { min-height: 64px; padding: 0 32px; font-size: 24px; font-weight: 700; }
.btn--xl { min-height: 64px; min-width: 266px; padding: 0 28px; border-radius: 12px; font-size: 24px; font-weight: 700; }

/* ------------------------------------------------------------ section headings */

.section { padding: 96px 16px 0; }
.section--last { padding-bottom: 96px; }

.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}
.heading h2 {
  font: 400 clamp(40px, 5vw, 60px)/1.05 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.rule {
  width: 80px;
  height: 4px;
  margin-top: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f4dfa9, #b98a3c);
}
.heading p {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* ------------------------------------------------------------ home: hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(100svh - var(--bar) - 18px);
  min-height: 580px;
  margin-top: var(--bar);
  padding: 24px 16px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: #05060a; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 9s linear;
}
.hero__slide.is-on { opacity: 1; transform: scale(1.01); }
.hero__slide.is-soft { filter: blur(3px); }   /* enlarged Roblox thumbnails */
.hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }

.hero__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 100%;
  padding: 28px 28px 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: rise 0.9s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero__name { display: flex; align-items: center; justify-content: center; gap: 18px; }
.hero__name img { flex: none; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.hero__name h1 { font: 400 clamp(44px, 6.6vw, 88px)/1 var(--serif); letter-spacing: -0.01em; }

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; }

.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; }
.hero__stats > div { display: grid; gap: 2px; }
.hero__stats dd { font: 800 clamp(32px, 3.4vw, 44px)/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.hero__stats dt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--muted);
}

/* ------------------------------------------------------------ home: top hits */

.podium {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 5.4vw, 92px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 56px 16px 64px;
}
.podium::before {
  content: "";
  position: absolute;
  inset: -40px 6% -20px;
  background: radial-gradient(closest-side, rgba(217, 180, 106, 0.26), rgba(217, 180, 106, 0.07) 55%, transparent 100%);
  pointer-events: none;
}

.hit { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hit__icon {
  width: var(--size);
  height: var(--size);
  border-radius: calc(var(--size) * 0.115);
  object-fit: cover;
  background: var(--panel);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease);
}
.hit:hover .hit__icon { transform: translateY(-6px) scale(1.02); }
.hit--center { --size: 247px; }
.hit--near { --size: 185px; }
.hit--far { --size: 123px; }
.hit__name { max-width: calc(var(--size) + 90px); margin-top: 22px; font: 600 20px/1.3 var(--sans); overflow-wrap: anywhere; }
.hit--far .hit__name { font-size: 18px; }
.hit__plays {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(30, 36, 48, 0.85);
  font-size: 16px;
  color: var(--muted);
}
.hit__plays .ico { width: 18px; height: 18px; }
.hit__plays b { font-weight: 700; color: var(--gold-hi); }
.hit .btn { min-height: 60px; margin-top: 14px; padding: 0 22px; font-size: 18px; }

/* ------------------------------------------------------------ icon tile (page not found) */

.tile {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tone), var(--tone-2));
  color: var(--on-tone);
  font-size: 19px;
}
.tile--xl { width: 92px; height: 92px; border-radius: 22px; font-size: 38px; box-shadow: 0 20px 60px -14px var(--tone-2); }

/* ------------------------------------------------------------ "page not found" */

.phero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: calc(100svh - var(--bar));
  margin-top: var(--bar);
  padding: 64px 16px 88px;
  background: radial-gradient(60% 55% at 50% 30%, rgba(217, 180, 106, 0.12), transparent 70%);
  text-align: center;
}
.phero h1 { margin-top: 8px; font: 400 clamp(52px, 7.6vw, 104px)/0.98 var(--serif); letter-spacing: -0.015em; }
.phero h1 em {
  font-style: italic;
  padding-right: 0.06em;
  background: linear-gradient(90deg, #f4dfa9, #c79a4b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.phero p { max-width: 680px; font-size: 22px; line-height: 1.45; color: var(--muted); }

/* ------------------------------------------------------------ games page */

.page { margin-top: var(--bar); padding: 40px 0 96px; }
.wrap { width: 100%; max-width: 1536px; margin: 0 auto; padding: 0 32px; }

.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.back:hover { color: var(--gold-hi); }
.back .ico { width: 16px; height: 16px; }
.page-title { font: 400 clamp(44px, 5vw, 60px)/1.05 var(--serif); letter-spacing: -0.01em; }
.page-sub { margin: 10px 0 36px; font-size: 20px; color: var(--muted); }

.ggrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.ggrid .empty { grid-column: 1 / -1; }
.gcard {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a0d13;
  transition: border-color 0.25s, transform 0.25s var(--ease), background-color 0.25s;
}
.gcard:hover { border-color: rgba(217, 180, 106, 0.5); background: #0e1219; transform: translateY(-4px); }
.gcard__icon { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--panel-2); }
.gcard__name {
  display: grid;
  place-items: center;
  min-height: 3.1em;
  margin: 18px 0 16px;
  text-align: center;
  font: 700 18px/1.3 var(--sans);
  overflow-wrap: anywhere;
}
.gcard__stats { display: grid; gap: 6px; margin-top: auto; }
.gcard__stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(30, 36, 48, 0.6);
  font-size: 16px;
}
.gcard__stats dt { color: var(--muted); }
.gcard__stats dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.gcard__stats dd.is-live { color: var(--ok); }

.portfolio { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); text-align: center; }
.portfolio h2 { font: 700 28px/1.2 var(--sans); }
.portfolio__line { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 18px; font-size: 22px; color: var(--muted); }
.portfolio__line span { padding: 0 28px; }
.portfolio__line span + span { border-left: 1px solid var(--line-2); }
.portfolio__line b { margin-right: 6px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.portfolio__note { margin-top: 12px; font-size: 14px; color: var(--dim); }
.portfolio__note:empty { display: none; }

/* ------------------------------------------------------------ privacy policy */

.prose { max-width: 720px; margin: 0 auto; padding: 24px 24px 0; }
.prose h1 { font: 400 clamp(38px, 4.4vw, 52px)/1.1 var(--serif); }
.prose__date { margin-top: 8px; font-size: 13px; color: var(--dim); }
.prose h2 { margin-top: 40px; font: 700 24px/1.3 var(--sans); }
.prose h3 { margin-top: 24px; font: 700 18px/1.4 var(--sans); }
.prose p, .prose ul { margin-top: 16px; font-size: 16px; line-height: 1.75; color: #d9dbe0; }
.prose ul { display: grid; gap: 6px; padding-left: 22px; list-style: disc; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: #fff; }
.prose li > strong:first-child { color: var(--gold-hi); }
.prose__box { margin-top: 24px; padding: 4px 24px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: #0e1219; }
.prose table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 15px; line-height: 1.6; color: #d9dbe0; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; color: #fff; background: #0e1219; }

/* ------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, #000, #090c13); }
.footer__grid {
  display: grid;
  grid-template-columns: 4.5fr 1fr;
  gap: 32px;
  max-width: 1536px;
  margin: 0 auto;
  padding: 48px 16px;
}
.footer .brand { font-size: 27px; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials:empty { display: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #12161e;
  color: #d7d9de;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.socials a:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.footer__col { display: grid; gap: 12px; align-content: start; justify-items: start; }
.footer__col h2 { margin-bottom: 6px; font: 700 18px/1.3 var(--sans); }
.footer__col a { font-size: 16px; color: var(--muted); transition: color 0.2s; }
.footer__col a:hover { color: var(--gold-hi); }
.footer__legal {
  max-width: 1536px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer__note { max-width: 720px; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--dim); }

/* ------------------------------------------------------------ reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.25s; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1280px) {
  .ggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hit--far { display: none; }
}

@media (max-width: 760px) {
  :root { --bar: 68px; }
  body { font-size: 16px; }
  .topbar { padding: 0 16px; }
  .brand { gap: 10px; font-size: 24px; }
  .brand img { width: 40px; height: 40px; }

  .section { padding-top: 72px; }
  .section--last { padding-bottom: 72px; }
  .heading { margin-bottom: 36px; }
  .heading p { font-size: 17px; }

  .hero { height: auto; min-height: calc(100svh - var(--bar)); }
  .hero__panel { gap: 22px; padding: 22px 16px 18px; }
  .hero__name { flex-direction: column; gap: 12px; }
  .hero__name img { width: 64px; height: 64px; }
  .btn--xl { min-width: 0; width: 100%; min-height: 56px; font-size: 20px; }
  .hero__cta { width: 100%; gap: 12px; }
  .hero__stats { gap: 18px 28px; }
  .hero__stats dt { font-size: 15px; }

  .podium { gap: 16px; padding: 36px 0 44px; }
  .hit--center { --size: 168px; }
  .hit--near { --size: 104px; }
  .hit__name { font-size: 16px; }
  .hit .btn { min-height: 46px; font-size: 15px; padding: 0 16px; }
  .hit__plays { font-size: 13px; padding: 5px 10px; }
  .btn--lg { min-height: 56px; font-size: 20px; }


  .wrap { padding: 0 16px; }
  .page { padding-top: 28px; }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .gcard { padding: 12px; }
  .gcard__name { font-size: 15px; margin: 12px 0; }
  .gcard__stats > div { padding: 8px 10px; font-size: 14px; }
  .portfolio__line { flex-direction: column; gap: 6px; font-size: 19px; }
  .portfolio__line span + span { border-left: 0; }
}

/* Two links fit beside the name until phone widths; below that they fold into a menu. */
@media (max-width: 600px) {
  .topbar__toggle { display: block; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 12px; }
  .prose td { border: 0; padding: 10px 14px; }
  .prose td + td { border-top: 1px solid var(--line); }
  .prose td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
  .topbar__nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    height: calc(100dvh - var(--bar) + 2px);
    padding: 20px 24px 40px;
    overflow-y: auto;
    background: #000;
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .topbar.is-open .topbar__nav { opacity: 1; visibility: visible; transform: none; }
  .topbar__nav a { padding: 14px 8px; font-size: 26px; line-height: 1.2; border-bottom: 1px solid var(--line); border-radius: 0; }
  .topbar__nav a::after { display: none; }
}

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