/* Hatch Games — site styles
   Brand tokens from assets/brand-colour-and-type.pdf:
   Orange #FF5E13 · Black #181A20 · White #FFFFFF
   Manrope ExtraBold (800) for headlines, Manrope Regular (400) for body. */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype-variations"),
       url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Orange is the page colour; black carries text, buttons and the footer;
     white is the highlight colour on orange. */
  --bg: #ff5e13;
  --bg-center: #ff7913; /* brand splash gradient: centre colour */
  --bg-deep: #181a20;
  --ink: #181a20;
  --ink-muted: rgba(24, 26, 32, .62);
  --accent: #181a20;
  --accent-hover: #2b2f3a;
  --on-accent: #ffffff;
  --highlight: #ffffff;
  --hairline: rgba(24, 26, 32, .12);
  --footer-ink: #ffffff;
  --footer-muted: #a6a8ae;
  --footer-hover: #ff5e13;
  --header-bg: rgba(24, 26, 32, .92);
  --nav-ink: rgba(255, 255, 255, .82);
  --tagline-ink: rgba(24, 26, 32, .66);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--highlight); }

img { max-width: 100%; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.wordmark {
  display: flex;
  align-items: center;
}

.wordmark img {
  height: 24px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font: 600 14px/1 var(--font);
}

.nav-link { color: var(--nav-ink); }
.nav-link:hover { color: var(--bg); }

.btn {
  color: var(--on-accent);
  background: var(--accent);
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

/* Contact button inside the black header: orange so it stands out */
.site-header .btn {
  background: var(--bg);
  color: var(--ink);
}
.site-header .btn:hover {
  background: #ff7a3d;
  color: var(--ink);
}

.btn-lg {
  font: 700 16px/1 var(--font);
  padding: 16px 26px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 0 var(--gutter);
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse closest-side at 50% 50%, var(--bg-center) 0%, var(--bg) 70.08%);
}

/* The wordmark is centred in the hero; the egg beside it is a live element
   placed on the exact spot the egg occupies in the logo (viewBox 594 x 158). */
.hero-mark {
  grid-row: 2;
  position: relative;
  width: min(560px, 78vw);
  will-change: transform;
}

.hero-letters {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.egg-button {
  position: absolute;
  left: 91.84%;
  top: 61.59%;
  width: 8.08%;
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
/* generous tap target around the small egg */
.egg-button::after {
  content: "";
  position: absolute;
  inset: -16px -16px -28px;
}
.egg-button:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 6px;
  border-radius: 50%;
}

.egg-img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.egg-shadow {
  display: block;
  width: 108%;
  margin: 3px -4% 0;
  aspect-ratio: 6 / 1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, .6) 0%,
    rgba(0, 0, 0, .28) 52%,
    rgba(0, 0, 0, 0) 78%);
  opacity: .3;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-title {
  position: relative;
  grid-row: 3;
  align-self: start;
  margin-top: clamp(28px, 5vh, 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  will-change: transform, opacity;
}

.tagline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tagline-rule {
  width: 34px;
  height: 2px;
  background: var(--highlight);
  border-radius: 2px;
}

.tagline-text {
  font: 600 11.5px/1 var(--font);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tagline-ink);
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 11.5px/1 var(--font);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
}
.scroll-cue:hover { color: var(--highlight); }
.scroll-cue span {
  display: block;
  animation: hatch-cue 2.6s ease-in-out infinite;
}

/* ---------- About ---------- */

.about {
  padding: clamp(80px, 14vh, 150px) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.about-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(30px, 5vh, 48px);
  text-align: center;
}

.eyebrow {
  font: 700 12px/1 var(--font);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--highlight);
}

.about p {
  margin: 0;
  font: 600 clamp(21px, 2.5vw, 33px)/1.42 var(--font);
  letter-spacing: -.015em;
  color: #ffffff;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  padding: clamp(36px, 6vh, 56px) var(--gutter) 30px;
  background: var(--bg-deep);
  color: var(--footer-ink);
}

.footer-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
}
.footer-brand img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  font: 500 14px/1 var(--font);
}
.footer-links a { color: rgba(255, 255, 255, .72); }
.footer-links a:hover { color: var(--footer-hover); }

.footer-legal {
  max-width: 1120px;
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font: 400 12.5px/1.5 var(--font);
  color: var(--footer-muted);
}

/* ---------- Motion ---------- */

@keyframes hatch-cue {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-anim] { animation: none !important; }
}


/* ---------- Opening animation: a crack of light splits the dark screen ---------- */

.intro, .skip { display: none; }

html.has-intro body { overflow: hidden; }
html.has-intro .hero-title { visibility: hidden; }
html.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: block;
  overflow: hidden;
  background: var(--bg-deep);
}
html.has-intro .skip {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 9100;
  display: block;
  font: 700 12px/1 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(24, 26, 32, .75);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.intro .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.intro .seam {
  fill: none;
  stroke: #ff5e13;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px #ff5e13);
}
.intro .half polygon { fill: #181a20; }

/* Visually hidden but available to screen readers and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
