/* ==========================================================
   Nova One — styles
   Soft white base, deep ink text, warm "ember" accent taken
   from the key art, with a cool teal used sparingly.
   ========================================================== */

:root {
  --bg: #f7f5f1;          /* soft white */
  --bg-tint: #efece6;     /* alternate section */
  --surface: #ffffff;
  --ink: #16181d;         /* headings */
  --text: #3a3d45;        /* body */
  --muted: #7a7d86;
  --line: #e2ded6;
  --accent: #e8622c;      /* ember orange */
  --accent-2: #2bb3b1;    /* holo teal */
  --radius: 14px;
  --max: 1180px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --slide-duration: 12s;  /* how long each hero image stays */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

.kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 98, 44, 0.18);
  margin-right: 8px; vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, calc((100% - var(--max)) / 2));
  color: #fff;
  transition: background .3s, color .3s, padding .3s, box-shadow .3s;
}
.nav.is-solid {
  background: rgba(247, 245, 241, 0.88);
  backdrop-filter: blur(12px);
  color: var(--ink);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* The logo is white; on light backgrounds it is inverted to dark ink. */
.brand-logo { height: 34px; width: auto; transition: filter .3s, height .3s; }
.nav.is-solid .brand-logo { height: 28px; filter: invert(1) brightness(.35); }
.footer-logo { height: 24px; width: auto; filter: invert(1) brightness(.35); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav-links .nav-cta {
  opacity: 1; padding: 8px 18px; border-radius: 999px;
  border: 1px solid currentColor;
}
.nav-toggle { display: none; }

/* ---------- Hero slideshow ---------- */
.hero {
  position: relative;
  height: 100vh; min-height: 560px; max-height: 1000px;
  overflow: hidden; background: #0d0f14;
}
.slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.6s ease;
}
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slide.is-active { opacity: 1; }
/* slow "Ken Burns" drift while an image is on screen */
.slide.is-active img { animation: drift calc(var(--slide-duration) + 2s) linear forwards; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.0); } }

.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,12,18,.55) 0%, rgba(10,12,18,0) 22%),
    linear-gradient(90deg, rgba(10,12,18,.65) 0%, rgba(10,12,18,.15) 55%, rgba(10,12,18,0) 75%),
    linear-gradient(0deg, rgba(10,12,18,.55) 0%, rgba(10,12,18,0) 35%);
}
.hero-content {
  position: absolute; left: max(16px, calc((100% - var(--max)) / 2)); bottom: 18%;
  max-width: 560px; color: #fff;
}
.hero-content .eyebrow { font-size: .85rem; letter-spacing: .08em; opacity: .9; margin-bottom: 18px; }
.hero h1 { line-height: 0; }
.hero-logo { width: clamp(240px, 40vw, 520px); height: auto; }
.hero-tagline { font-size: 1.15rem; margin: 20px 0 30px; opacity: .92; max-width: 440px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 34px;
  width: min(var(--max), 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: #fff;
}
.slide-caption { margin: 0; font-family: var(--font-display); font-size: .9rem; letter-spacing: .06em; opacity: .9; }
.slide-index { color: var(--accent); font-weight: 600; margin-right: 8px; }
.slide-dots { display: flex; gap: 8px; }
.slide-dot {
  position: relative; width: 44px; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden;
}
.slide-dot::before { content: ""; position: absolute; inset: -10px 0; } /* bigger hit area */
.slide-dot::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: #fff;
}
.slide-dot.is-done::after { transform: scaleX(1); }
.slide-dot.is-active::after { animation: fill var(--slide-duration) linear forwards; }
.hero.is-paused .slide-dot.is-active::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.lede p:first-child { font-size: 1.12rem; color: var(--ink); }
.lede-sm { font-size: 1.1rem; color: var(--ink); margin: 18px 0 14px; }

/* Locations */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.location { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.05); }
.location img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.location:hover img { transform: scale(1.04); }
.location-body { padding: 22px 24px 26px; }
.location-body h3 { margin: 8px 0 6px; }
.location-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }

/* Media */
.media-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; }
.media-main { grid-row: span 2; }
.media-slot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #dcd8d0; aspect-ratio: 16 / 9; min-height: 0;
}
.media-main { aspect-ratio: auto; }
.media-slot img, .media-slot video, .media-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff; font-family: var(--font-display); font-size: .9rem; letter-spacing: .05em;
  background: rgba(10,12,18,.35);
}
.media-overlay.is-empty { background: transparent; color: var(--muted); border: 1.5px dashed #c3beb4; border-radius: var(--radius); }
.play {
  width: 62px; height: 62px; border-radius: 50%; position: relative;
  background: rgba(255,255,255,.92);
}
.play::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-left: 15px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.is-empty .play { width: 46px; height: 46px; background: #e8e4dc; }
.is-empty .play::after { left: 19px; top: 14px; border-left-width: 12px; border-top-width: 9px; border-bottom-width: 9px; border-left-color: var(--muted); }

/* Characters */
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.char-img {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-tint);
  margin-bottom: 16px; display: grid; place-items: center;
}
.char-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.char-card:hover .char-img img { transform: scale(1.04); }
.char-card h3 { margin-bottom: 4px; }
.char-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.char-card.is-empty .char-img { border: 1.5px dashed #cfcac0; background: transparent; }
.char-card.is-empty .char-img span { color: var(--muted); font-family: var(--font-display); font-size: .9rem; letter-spacing: .05em; }
.char-card.is-empty h3 { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 70px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: #dcd8d0;
  display: grid; place-items: center; color: var(--muted); font-family: var(--font-display);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.skills { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skills li {
  padding: 7px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: .88rem; color: var(--ink);
}
.available { font-weight: 500; color: var(--ink); margin: 0; }

/* Contact */
.contact { text-align: center; }
.contact-inner { max-width: 640px; }
.contact .lede-sm { margin-bottom: 32px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin-top: 36px; }
.socials a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.socials a:hover { color: var(--ink); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .about { grid-template-columns: 1fr; gap: 28px; }
  .about .portrait { max-width: 360px; }
  .locations { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .media-main { grid-row: auto; aspect-ratio: 16 / 9; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit;
  }
  .nav-toggle span { width: 22px; height: 2px; background: currentColor; display: block; }
  .nav-links {
    position: fixed; inset: 60px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .2s;
  }
  .nav.is-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-cta { border: 0; }
  .hero-content { bottom: 22%; right: 16px; }
  .slide-caption { display: none; }
  .hero-controls { justify-content: flex-start; }
  .slide-dot { width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.is-active img { animation: none; transform: none; }
}
