/* 3AM Owl studio site (3amowl.com)
 * Night palette taken from the Blender-rendered crest: indigo sky, moon ivory,
 * horizon teal, owl-eye amber. Bold condensed caps for headings, Garamond for text.
 */

@font-face {
  font-family: "Barlow Condensed";
  src: url("BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0a1020;
  --night-2: #0e162b;
  --night-3: #16223d;
  --line: rgba(242, 232, 204, 0.12);
  --line-strong: rgba(242, 232, 204, 0.26);
  --teal: #6fc3b5;
  --teal-bright: #a3e6d9;
  --amber: #f3b443;
  --ivory: #f2e8cc;
  --ivory-2: #e8dcbb;
  --ink-on-ivory: #141a2a;
  --muted-on-ivory: #4a5163;
  --text: #e9e3d3;
  --text-muted: #a7b0c2;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --header-h: 76px;
  --wrap: 1240px;
}

html {
  background: var(--night);
  scroll-padding-top: calc(var(--header-h) + 16px);
}

.st-body {
  background: var(--night);
  color: var(--text);
  font-weight: 500;
}

.st-body a {
  color: var(--teal);
  text-decoration-color: rgba(111, 195, 181, 0.4);
}

.st-body a:hover {
  color: var(--teal-bright);
  text-decoration-color: currentColor;
}

.st-body :focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  background: var(--teal);
  color: var(--night);
}

.st-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ---------------------------------------------------------------- header */

.st-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.st-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.82), rgba(6, 10, 22, 0));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.st-header.is-scrolled {
  background: rgba(10, 16, 32, 0.94);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.st-header.is-scrolled::before {
  opacity: 0;
}

.st-header-inner {
  position: relative;
  height: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* the crest hangs from the top edge like a banner */
.st-crest-link {
  align-self: flex-start;
  display: block;
  width: 104px;
  flex: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  transition: width 0.3s ease, transform 0.2s ease;
}

.st-crest-link:hover {
  transform: translateY(2px);
}

.st-crest {
  width: 100%;
  height: auto;
}

.st-header.is-scrolled .st-crest-link {
  width: 62px;
}

.st-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
  margin-left: auto;
}

.st-nav a {
  position: relative;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  padding: 6px 0;
}

.st-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.st-nav a:hover,
.st-nav a[aria-current="page"] {
  color: var(--teal-bright);
}

.st-nav a:hover::after,
.st-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.st-nav-game {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px !important;
  border: 1px solid var(--line-strong);
}

.st-nav-game::after {
  display: none;
}

.st-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.st-motion {
  appearance: none;
  border: 0;
  background: none;
  padding: 6px 4px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
}

.st-motion:hover {
  color: var(--ivory);
}

.st-menu-btn {
  display: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(10, 16, 32, 0.6);
  color: var(--ivory);
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
}

.st-menu-btn svg {
  fill: currentColor;
}

.st-menu-btn[aria-expanded="true"] {
  color: var(--teal);
  border-color: var(--teal);
}

/* ------------------------------------------------------------------ type */

.st-eyebrow {
  margin: 0 0 14px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
}

.st-title,
.st-h2 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--ivory);
  margin: 0;
  padding-left: clamp(16px, 1.6vw, 24px);
  border-left: 5px solid var(--teal);
}

.st-title {
  font-size: clamp(2.9rem, 1.6rem + 5vw, 6.2rem);
}

.st-title span {
  color: var(--amber);
}

.st-h2 {
  font-size: clamp(2.3rem, 1.5rem + 2.8vw, 4rem);
}

.st-lead {
  max-width: 34rem;
  margin: 26px 0 0;
  font-size: clamp(1.14rem, 1rem + 0.45vw, 1.36rem);
  line-height: 1.5;
  color: var(--text);
}

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

.st-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.st-btn {
  --notch: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.st-btn:active {
  transform: translateY(1px);
}

.st-body .st-btn-primary {
  background: var(--teal);
  color: var(--night);
}

.st-body .st-btn-primary:hover {
  background: var(--teal-bright);
  color: var(--night);
}

.st-body .st-btn-ghost {
  color: var(--ivory);
  background: rgba(242, 232, 204, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.st-body .st-btn-ghost:hover {
  color: var(--ivory);
  background: rgba(242, 232, 204, 0.14);
}

.st-arrow {
  flex: none;
  transition: transform 0.18s ease;
}

a:hover > .st-arrow {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------ hero */

.st-hero {
  position: relative;
  min-height: max(640px, 94svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 56px) 0 96px;
}

/* the warm daytime arena, pushed into moonlight */
.st-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 16, 32, 0.97) 0%, rgba(10, 16, 32, 0.84) 32%, rgba(10, 16, 32, 0.2) 70%, rgba(10, 16, 32, 0.45) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(10, 16, 32, 0) 36%),
    radial-gradient(ellipse 50% 60% at 72% 30%, rgba(163, 230, 217, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(26, 52, 92, 0.78), rgba(18, 44, 60, 0.7)),
    url("arena.webp") 60% 30% / cover no-repeat;
  background-blend-mode: normal, normal, screen, color, normal;
  transform-origin: 70% 40%;
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-paused) .st-hero .st-hero-bg {
    animation: st-drift 28s ease-in-out infinite alternate;
  }
}

@keyframes st-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.09) translateX(-1.2%); }
}

.st-hero-fighters {
  position: absolute;
  z-index: -1;
  right: clamp(-40px, 2vw, 60px);
  bottom: 0;
  width: min(54vw, 780px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.st-hero-fighters img {
  width: 50%;
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.7)) brightness(0.9) saturate(0.9);
}

.st-hero-fighters img:first-child {
  margin-right: -8%;
}

.st-hero-fighters img:last-child {
  transform: scaleX(-1);
}

.st-hero-inner {
  position: relative;
  width: 100%;
}

.st-hero-inner > * {
  max-width: 44rem;
}

.st-hero-inner .st-lead {
  max-width: 34rem;
  text-shadow: 0 1px 2px rgba(6, 10, 22, 0.9), 0 0 18px rgba(6, 10, 22, 0.8);
}

@media (min-width: 861px) and (max-width: 1180px) {
  .st-hero-fighters {
    width: 46vw;
    right: -5vw;
  }

  .st-hero-inner .st-lead {
    max-width: 27rem;
  }
}

.st-side-label {
  position: absolute;
  left: clamp(8px, 1.4vw, 22px);
  top: 50%;
  margin: 0;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(242, 232, 204, 0.42);
}

.st-scroll {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  bottom: 26px;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}

.st-body .st-scroll {
  color: rgba(242, 232, 204, 0.55);
}

.st-scroll::after {
  content: "";
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--teal), transparent);
}

/* -------------------------------------------------------------- sections */

.st-section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.st-section-head {
  margin-bottom: clamp(32px, 4vw, 52px);
}

#games {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(111, 195, 181, 0.08), transparent 70%),
    var(--night);
}

/* the game feature */
.st-game {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--night-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.st-game-media {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(0deg, rgba(10, 16, 32, 0.75), rgba(10, 16, 32, 0) 55%),
    linear-gradient(180deg, rgba(26, 52, 92, 0.5), rgba(18, 44, 60, 0.35)),
    url("arena.webp") 50% 40% / cover no-repeat;
  background-blend-mode: normal, color, normal;
  overflow: hidden;
}

.st-game-media img {
  position: absolute;
  bottom: -2%;
  height: 80%;
  width: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.7));
  transition: transform 0.6s ease;
}

.st-game-f2 { left: 3%; }
.st-game-f3 { right: 3%; transform: scaleX(-1); }

.st-game:hover .st-game-f2 { transform: translateX(6px); }
.st-game:hover .st-game-f3 { transform: scaleX(-1) translateX(6px); }

.st-game-copy {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.st-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}

.st-tags li {
  padding: 4px 10px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: rgba(111, 195, 181, 0.1);
  border: 1px solid rgba(111, 195, 181, 0.3);
}

.st-game-title {
  margin: 0 0 14px;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ivory);
}

.st-game-copy > p {
  margin: 0;
  color: var(--text);
}

.st-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.st-stats div {
  padding: 14px 0;
  text-align: center;
}

.st-stats div + div {
  border-left: 1px solid var(--line);
}

.st-stats dt {
  order: 2;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.st-stats dd {
  margin: 0 0 2px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--amber);
}

.st-stats div {
  display: flex;
  flex-direction: column-reverse;
}

/* link cards */
.st-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.st-cards-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
}

.st-body .st-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 26px 64px 26px 26px;
  background: var(--night-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.st-body .st-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}

.st-body .st-card:hover {
  color: var(--text);
  background: var(--night-3);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.st-card:hover::before {
  transform: scaleY(1);
}

.st-card-kicker {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.st-card-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ivory);
}

.st-card-text {
  font-size: 1.06rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.st-card > .st-arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  margin-top: -9px;
  color: var(--teal);
}

/* ---------------------------------------------------- the studio (light) */

.st-light {
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(255, 250, 235, 0.7), transparent 70%),
    var(--ivory);
  color: var(--ink-on-ivory);
}

.st-light .st-eyebrow {
  color: #2a7f73;
}

.st-light .st-h2 {
  color: var(--ink-on-ivory);
  border-left-color: #2a7f73;
}

.st-studio {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.st-studio-crest {
  justify-self: center;
  width: min(100%, 340px);
}

.st-crest-big {
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px rgba(10, 16, 32, 0.35), 0 6px 14px rgba(10, 16, 32, 0.25);
  transform: rotate(-2deg);
}

.st-studio-copy > p {
  margin: 0 0 26px;
  max-width: 38rem;
  font-size: clamp(1.14rem, 1rem + 0.4vw, 1.32rem);
  color: var(--ink-on-ivory);
}

.st-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(20, 26, 42, 0.16);
}

.st-pillars li {
  padding: 14px 0 14px 34px;
  position: relative;
  border-bottom: 1px solid rgba(20, 26, 42, 0.16);
  color: var(--muted-on-ivory);
}

.st-pillars li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15em;
  width: 12px;
  height: 12px;
  background: var(--amber);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(243, 180, 67, 0.22);
}

.st-pillars strong {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-on-ivory);
  margin-right: 6px;
}

/* --------------------------------------------------------------- contact */

#contact {
  background:
    radial-gradient(ellipse 50% 70% at 10% 100%, rgba(111, 195, 181, 0.08), transparent 70%),
    var(--night);
}

/* --------------------------------------------------------- legal / prose */

.st-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 110px) 0 64px;
  border-bottom: 1px solid var(--line);
}

.st-page-hero .st-hero-bg {
  background-position: 0 0, 0 0, 0 0, 0 0, 50% 25%;
}

.st-title-page {
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem);
}

.st-meta {
  margin: 18px 0 0;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.st-prose-wrap {
  padding-top: clamp(40px, 6vw, 72px);
}

.st-prose {
  max-width: 820px;
  font-size: clamp(1.14rem, 1rem + 0.4vw, 1.3rem);
}

.st-prose p {
  margin: 0 0 22px;
}

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

.st-footer {
  background: #070b17;
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}

.st-footer-grid {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.st-crest-footer {
  width: 96px;
  height: auto;
}

.st-footer-col {
  display: grid;
  gap: 8px;
}

.st-footer-col h2 {
  margin: 0 0 6px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.st-body .st-footer-col a {
  color: var(--text);
  text-decoration: none;
  width: fit-content;
}

.st-body .st-footer-col a:hover {
  color: var(--ivory);
  text-decoration: underline;
}

.st-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--text-muted);
}

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

@media (max-width: 960px) {
  .st-game {
    grid-template-columns: 1fr;
  }

  .st-game-media {
    min-height: 320px;
  }

  .st-cards {
    grid-template-columns: 1fr;
  }

  .st-studio {
    grid-template-columns: 1fr;
  }

  .st-studio-crest {
    width: min(70%, 280px);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .st-menu-btn {
    display: grid;
  }

  .st-motion {
    display: none;
  }

  .st-header-actions {
    margin-left: auto;
  }

  .st-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
    display: none;
  }

  .st-header.menu-open {
    background: var(--night);
  }

  .st-header.menu-open::before,
  .st-scroll {
    display: none;
  }

  .st-nav.is-open {
    display: flex;
  }

  .st-nav a {
    padding: 14px 4px;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--line);
  }

  .st-nav a::after {
    display: none;
  }

  .st-nav-game {
    margin-top: 14px;
    justify-content: center;
  }

  .st-crest-link {
    width: 76px;
  }

  .st-header.is-scrolled .st-crest-link {
    width: 50px;
  }

  .st-hero {
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 140px);
  }

  .st-hero-fighters {
    top: calc(var(--header-h) + 10px);
    bottom: auto;
    right: -6vw;
    width: 82vw;
    opacity: 0.55;
  }

  .st-side-label {
    display: none;
  }

  .st-cards-2 {
    grid-template-columns: 1fr;
  }

  .st-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .st-footer-crest {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .st-stats dd {
    font-size: 1.6rem;
  }

  .st-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .st-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
