/* Gryphon Games — site.css */
:root {
  --paper: #F7F9FB;
  --white: #FFFFFF;
  --ink: #0C1222;
  --muted: #566273;
  --line: #E3E8EF;
  --cyan: #00A3FF;
  --cyan-text: #0077C8;
  --display: "Poppins", "Avenir Next", "Helvetica Neue", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

a { color: var(--cyan-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- header ---------- */
.site-header { padding: 24px 0; }
.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header.home-header .wrap-wide { justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding-bottom: 3px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--cyan);
  transition: right 0.25s ease;
}
.site-nav a:hover { text-decoration: none; color: var(--cyan-text); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }

/* ---------- hero ---------- */
.hero { padding-top: 64px; padding-bottom: 88px; text-align: center; }
.hero-logo {
  width: clamp(300px, 54vw, 600px);
  height: auto;
  display: block;
  margin: 0 auto 30px;
}
.hero p.slogan {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0 auto;
}
.scroll-cue {
  display: inline-flex;
  margin-top: 46px;
  color: var(--ink);
}
.scroll-cue svg { display: block; }
.scroll-cue:hover { color: var(--cyan-text); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue { animation: bob 2.4s ease-in-out infinite; }
  @keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
  }
}

/* ---------- game bands ---------- */
.game-band { background: var(--white); }
.game-band:nth-of-type(even) { background: var(--paper); }
.game-band .inner {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.game-band:nth-of-type(even) .inner { flex-direction: row-reverse; }
.game-copy { flex: 1; }
.game-copy .title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.game-copy .title-row img {
  width: 78px; height: 78px;
  border-radius: 19px;
  box-shadow: 0 1px 2px rgba(12, 18, 34, 0.12), 0 4px 14px rgba(12, 18, 34, 0.10);
}
.game-copy h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.05;
  margin: 0;
}
.game-copy p { margin: 0 0 26px; max-width: 52ch; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges img { height: 46px; width: auto; display: block; }
.badges a { display: block; transition: transform 0.2s ease; }
.badges a:hover { transform: translateY(-2px); }

.phone {
  flex: 0 0 auto;
  width: 290px;
  padding: 11px;
  background: var(--ink);
  border-radius: 46px;
  box-shadow: 0 30px 60px rgba(12, 18, 34, 0.28);
  position: relative;
  transition: transform 0.35s ease;
}
.phone img { display: block; width: 100%; border-radius: 36px; }
.phone::after {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 24px;
  border-radius: 13px;
  background: var(--ink);
}
.phone:hover { transform: translateY(-8px); }

/* ---------- studio teaser ---------- */
.studio {
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 72px 0;
}
.studio h2 { font-weight: 700; font-family: var(--display); font-size: 26px; margin: 0 0 12px; }
.studio p { color: var(--muted); max-width: 54ch; margin: 0 auto 8px; }

/* ---------- document pages ---------- */
.doc { padding-top: 40px; padding-bottom: 88px; }
.doc h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.05;
  margin: 0 0 24px;
  text-wrap: balance;
}
.doc h2 { font-weight: 700; font-family: var(--display); font-size: 20px; margin: 42px 0 12px; }
.doc h3 { font-weight: 600; font-size: 17px; margin: 28px 0 8px; }
.doc p { margin: 0 0 16px; max-width: 68ch; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; max-width: 64ch; }
.doc .quiet { color: var(--muted); font-size: 15px; }
.backlink { font-weight: 600; font-size: 14px; }
.rolemeta { color: var(--muted); margin-top: -12px; }

/* ---------- careers ---------- */
.roles { display: flex; flex-direction: column; gap: 16px; margin: 40px 0 10px; }
.role-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 28px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.role-card:hover {
  border-color: var(--cyan);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(12, 18, 34, 0.10);
}
.role-card h2 { font-weight: 700; font-family: var(--display); font-size: 21px; margin: 0 0 4px; }
.role-card .where { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.role-card p { margin: 0; color: var(--muted); }
.role-card .go {
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan-text);
  display: inline-block;
  margin-top: 14px;
}

.offer { list-style: none; padding: 0; }
.offer li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
  max-width: 62ch;
}
.offer .emoji { flex: 0 0 auto; }

.apply {
  display: inline-block;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 8px;
  margin: 10px 0 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.apply:hover { background: var(--cyan-text); text-decoration: none; color: #FFFFFF; transform: translateY(-2px); }

/* ---------- founders ---------- */
.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.founder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 24px 18px;
}
.founder h3 { font-weight: 700; font-family: var(--display); font-size: 17px; margin: 0 0 4px; }
.founder .role { color: var(--cyan-text); font-weight: 600; font-size: 13px; margin: 0 0 12px; }
.founder p { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.founder .li { font-weight: 600; font-size: 14px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 34px 0 40px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 34px; }
.foot-links a { color: #98A2B3; font-weight: 500; }
.foot-links a:hover { color: var(--cyan-text); }


/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .phone.reveal {
    transform: none;
    transition: opacity 0.7s ease;
    transition-delay: 0.12s;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .wrap-wide { padding: 0 22px; }
  .site-header { padding: 18px 0; }
  .site-header .wrap-wide { flex-direction: column; align-items: center; gap: 14px; }
  .site-header.home-header .wrap-wide { flex-direction: row; justify-content: center; }
  .site-nav { gap: 24px; }
  .hero { padding-top: 40px; padding-bottom: 60px; }
  .hero-logo { width: min(86vw, 380px); }
  .hero p.slogan { font-size: 18px; }
  .game-band .inner, .game-band:nth-of-type(even) .inner {
    flex-direction: column;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
  }
  .game-copy .title-row { justify-content: center; }
  .game-copy p { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .badges img { height: 42px; }
  .phone { width: min(66vw, 250px); }
  .founders { grid-template-columns: 1fr; gap: 14px; }
  .role-card { padding: 22px; }
  .doc { padding-top: 28px; padding-bottom: 64px; }
}

/* ---------- founder avatars / wide team grid ---------- */
.doc .team-title { font-size: 24px; text-align: center; margin: 56px 0 4px; }
.founders { margin-top: 26px; }
.founder { text-align: center; padding: 30px 26px 22px; }
.founder .avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  box-shadow: 0 2px 10px rgba(12, 18, 34, 0.12);
}
.founder h3 { font-size: 18px; white-space: nowrap; }
@media (max-width: 720px) {
  .doc .team-title { margin-top: 40px; }
  .founder h3 { white-space: normal; }
}

/* ---------- hiring CTA + compact footer ---------- */
.apply.cta-hiring { font-size: 17px; padding: 16px 36px; margin: 14px 0 2px; }
@media (max-width: 720px) {
  .site-footer { padding: 22px 0 26px; }
  .foot-links { gap: 6px 18px; }
  .foot-links a { font-size: 13px; }
  .brand img { height: 38px; }
}
