/* ============================================================
   HIRE THE WEB TEAM — the present day.
   The site we'd actually build you. Zero frameworks, zero
   JavaScript, no web fonts — just modern CSS doing its thing:
   fluid type, bento grid, scroll-driven animation, light/dark
   from your OS, and a Lighthouse score we're smug about.
   ============================================================ */

:root {
  color-scheme: light dark;
  --bg: light-dark(#fafaf8, #0a0a0f);
  --surface: light-dark(#ffffff, #14141c);
  --surface-2: light-dark(#f1f0ec, #1b1b26);
  --text: light-dark(#1a1a22, #ededf2);
  --muted: light-dark(#5d5d6b, #9d9dad);
  --line: light-dark(#e4e2db, #262633);
  --accent: #6e56f8;
  --accent-2: #00d4a6;
  --accent-3: #ff5e8a;
  --radius: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: 8px 16px; z-index: 100;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Aurora background, pure CSS ---- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}
.aurora::before {
  background: radial-gradient(circle, var(--accent), transparent 65%);
  top: -22vmax; right: -12vmax;
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora::after {
  background: radial-gradient(circle, var(--accent-2), transparent 65%);
  bottom: -25vmax; left: -15vmax;
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-8vmax, 10vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(10vmax, -8vmax) scale(1.1); } }

/* ---- Nav: frosted glass ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.brand .dot { color: var(--accent-2); }
.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.navbar ul a {
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}
.navbar ul a:hover { color: var(--text); background: var(--surface-2); }
.navbar ul a.nav-cta {
  color: #fff;
  background: var(--accent);
}
.navbar ul a.nav-cta:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }

/* Compact nav on small screens: brand centred on its own line,
   all four links fitting on a single row beneath it */
@media (max-width: 640px) {
  .navbar .container {
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .navbar .container { flex-direction: column; align-items: center; }
  .navbar ul { gap: 2px; justify-content: center; flex-wrap: nowrap; }
  .navbar ul a { font-size: 0.8rem; padding: 6px 9px; white-space: nowrap; }
  .nav-long { display: none; }
}

@media (max-width: 360px) {
  .navbar ul a { font-size: 0.75rem; padding: 5px 7px; }
}

/* ---- Hero ---- */
.hero {
  /* keep the .container side padding — the shorthand would zero it */
  padding: clamp(72px, 12vh, 130px) 24px clamp(48px, 8vh, 90px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.eyebrow .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 60%, transparent); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.hero h1 {
  font-size: clamp(2.4rem, 2rem + 4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-3), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 34px;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-3)));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--surface-2); }

/* ---- Sections ---- */
section { padding: clamp(48px, 8vh, 88px) 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.6vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 10px;
  text-wrap: balance;
}
.section-head p { color: var(--muted); margin: 0; text-wrap: pretty; }

/* ---- Scroll-driven reveals (with graceful fallback) ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(26px); }
      to { opacity: 1; transform: none; }
    }
  }
}

/* ---- Bento grid ---- */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}
.bento li {
  grid-column: span 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.bento li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.bento li.wide { grid-column: span 6; }
.bento li.third { grid-column: span 2; }
.bento li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at 85% -10%,
    color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
  pointer-events: none;
}
.bento .chip {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}
.bento h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -0.02em; }
.bento p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 760px) {
  .bento li, .bento li.third, .bento li.wide { grid-column: span 6; }
}

/* ---- Era timeline ---- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.timeline li {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.timeline .year {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.timeline p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.timeline a.visit {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.16s ease;
}
.timeline a.visit:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

@media (max-width: 600px) {
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- FAQ ---- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 0; }

/* ---- Contact / final CTA ---- */
.contact-card {
  background:
    radial-gradient(700px circle at 12% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(700px circle at 90% 110%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
}
.contact-card h2 {
  font-size: clamp(1.8rem, 1.4rem + 2.4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.contact-card p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }
.contact-card p.email-line {
  /* outranks .contact-card p, which was collapsing the gap under the button */
  margin: 26px auto 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.email-line a { color: var(--accent); font-weight: 650; text-decoration: none; }
.email-line a:hover { text-decoration: underline; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-eras { display: flex; gap: 14px; flex-wrap: wrap; }
.zonkey-credit {
  width: 100%;
  text-align: center;
  margin: 10px 0 0;
  font-size: 0.82rem;
}
.zonkey-credit a { color: var(--accent); font-weight: 600; text-decoration: none; }
.zonkey-credit a:hover { text-decoration: underline; }

/* the easter egg */
.worse {
  font-family: "Comic Sans MS", cursive;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-3);
}
.worse:hover { color: var(--accent-3) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora::before, .aurora::after { animation: none; }
  .eyebrow .pulse { animation: none; }
  .btn, .bento li { transition: none; }
}
