/* =========================================================
   YodaUX — self-hosted replica
   Fonts: Big Shoulders Display (display), Inter / Instrument Sans (body)
   ========================================================= */

:root {
  --bg:        #07060f;
  --bg-soft:   #0d0b1d;
  --panel:     rgba(255, 255, 255, 0.035);
  --border:    rgba(255, 255, 255, 0.09);
  --text:      #ffffff;
  --muted:     #a7adbe;
  --muted-dim: #6f7385;
  --accent:    #8b5cf6;
  --accent-2:  #c084fc;
  --accent-glow: rgba(139, 92, 246, 0.45);
  --maxw: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: "Inter", "Instrument Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Cosmic background layers ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% -5%,  rgba(124, 58, 237, 0.30), transparent 60%),
    radial-gradient(800px 600px at 90% 8%,   rgba(168, 85, 247, 0.22), transparent 55%),
    radial-gradient(1000px 800px at 50% 110%, rgba(76, 29, 149, 0.28), transparent 60%),
    var(--bg);
}
.bg-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/6mcf62RlDfRfU61Yg5vb2pefpi4.png");
  background-size: 320px;
  opacity: 0.10;
  mix-blend-mode: screen;
  animation: starTwinkle 9s ease-in-out infinite;
}
.bg-fx .nebula {
  position: absolute;
  width: 720px;
  opacity: 0.5;
  filter: blur(6px) saturate(1.1);
}
.bg-fx .nebula.left  { top: -160px; left: -220px; animation: nebulaDriftA 26s ease-in-out infinite; }
.bg-fx .nebula.right { top: -80px;  right: -260px; opacity: 0.4; animation: nebulaDriftB 32s ease-in-out infinite; }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.07; }
  50%      { opacity: 0.15; }
}
@keyframes nebulaDriftA {
  0%, 100% { transform: rotate(20deg) translate(0, 0) scale(1); }
  50%      { transform: rotate(24deg) translate(26px, 36px) scale(1.07); }
}
@keyframes nebulaDriftB {
  0%, 100% { transform: scaleX(-1) rotate(8deg) translate(0, 0) scale(1); }
  50%      { transform: scaleX(-1) rotate(12deg) translate(30px, 28px) scale(1.06); }
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Expandable menu (navy panel, top-left) ---------- */
.menu {
  position: fixed;
  top: 30px;
  left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  z-index: 100;
}
.menu-toggle {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.burger { position: relative; width: 26px; height: 16px; }
.burger span {
  position: absolute; left: 0;
  width: 100%; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }
.menu.open .burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu.open .burger span:nth-child(2) { opacity: 0; }
.menu.open .burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.menu-panel {
  position: absolute;
  top: -22px;
  left: -28px;
  min-width: 320px;
  padding: 80px 56px 44px;
  background: rgba(28, 35, 84, 0.97);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}
.menu.open .menu-panel { opacity: 1; visibility: visible; transform: none; }
.menu-panel ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.menu-panel ul a {
  display: block;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b90a8;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.menu-panel ul a:hover { color: #fff; transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .menu-panel { transition: opacity 0.15s ease, visibility 0.15s; transform: none; }
  .menu.open .menu-panel { transform: none; }
  .menu-panel ul a:hover { transform: none; }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 6, 15, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand img { height: 40px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 30px var(--accent-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px var(--accent-glow);
  filter: brightness(1.08);
}
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
}
.btn.ghost {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Headings ---------- */
.display {
  font-family: "Big Shoulders Display", "Inter", sans-serif;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-fx::before,
  .bg-fx .nebula,
  .hero-logo .glow-ring,
  .hero-logo .big-logo { animation: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 54px;
  position: relative;
}

/* Big logo + rotating glow ring (replaces traditional header) */
.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  height: clamp(180px, 27vw, 300px);
}
.hero-logo .glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(500px, 70vw, 880px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  pointer-events: none;
  animation: ringSpin 64s linear infinite;
}
.hero-logo .big-logo {
  position: relative;
  width: clamp(212px, 32vw, 352px);
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(124, 58, 237, 0.45));
  animation: logoFloat 7s ease-in-out infinite;
}

@keyframes ringSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero h1 {
  font-family: "Inter", "Instrument Sans", sans-serif;
  font-weight: 700;
  text-transform: none;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: none;
  margin: 0 auto 18px;
}
.hero .sub {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 19px);
  max-width: 60ch;
  margin: 0 auto 32px;
}

/* ---------- Poster grid ---------- */
.poster-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-bottom: 30px;
}
.poster {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.poster:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 18px 50px rgba(124, 58, 237, 0.3);
}

/* ---------- About ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 50px;
}
.about-hero .avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(192, 132, 252, 0.4);
  box-shadow: 0 10px 40px var(--accent-glow);
}
.about-hero h1 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 18px; }
.about-hero p { color: var(--muted); font-size: 18px; max-width: 60ch; }

.section { padding-top: 36px; padding-bottom: 36px; }
.section h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  margin-bottom: 14px;
}
.section p { color: var(--muted); font-size: 17px; max-width: 70ch; margin-bottom: 14px; }
.section a.inline { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.section a.inline:hover { text-decoration: underline; }

.collage {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 8px 0 18px;
  display: block;
}
.caption { color: var(--muted-dim); font-size: 15px; max-width: 60ch; }

.links-list { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.links-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.links-list li:hover { border-color: rgba(192, 132, 252, 0.5); transform: translateX(4px); }
.links-list .num {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--accent-2);
  min-width: 26px;
}
.links-list a { color: var(--text); text-decoration: none; font-size: 17px; font-weight: 500; }
.links-list a:hover { color: var(--accent-2); }

/* ---------- About page: larger type + roomier spacing ---------- */
.about-page .about-hero {
  padding-top: 108px;
  padding-bottom: 56px;
  gap: 52px;
  grid-template-columns: 220px 1fr;
}
.about-page .about-hero .avatar { width: 200px; height: 200px; }
.about-page .about-hero h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 22px; }
.about-page .about-hero p { font-size: 23px; line-height: 1.7; max-width: 62ch; }

.about-page .section { padding-top: 26px; padding-bottom: 26px; }
.about-page .section h2 { font-size: clamp(30px, 4.2vw, 42px); margin-bottom: 20px; }
.about-page .section p { font-size: 22px; line-height: 1.75; margin-bottom: 18px; max-width: 72ch; }

.about-page .collage { margin: 52px 0; }

.about-page .links-list { margin-top: 30px; gap: 16px; }
.about-page .links-list li { padding: 22px 26px; }
.about-page .links-list .num { font-size: 30px; }
.about-page .links-list a { font-size: 20px; }

@media (max-width: 900px) {
  .about-page .about-hero { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .about-page .about-hero .avatar { margin: 0 auto; }
}

/* ---------- Footer (centered ABOUT — CONTACT with divider lines) ---------- */
.footer {
  margin-top: 56px;
  padding: 40px 0 66px;
}
.foot-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.foot-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.foot-nav a {
  font-family: "Big Shoulders Display", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 20px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.foot-nav a:hover { color: var(--text); }
.foot-dash {
  font-family: "Big Shoulders Display", sans-serif;
  color: var(--muted-dim);
  font-weight: 700;
}

/* ---------- Portfolio ---------- */
.work-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  margin: 8px 0 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.work-card img { width: 100%; height: auto; display: block; }
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 18px 50px rgba(124, 58, 237, 0.3);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 8px 0 10px;
}
.project-grid .work-card { margin: 0; }
@media (max-width: 760px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* Work Highlights: divider + video showreel frame */
.wh-divider {
  height: 1px;
  background: var(--border);
  max-width: 820px;
  margin: 0 0 22px;
}
.video-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-width: 820px;
  margin: 0 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-hero { grid-template-columns: 1fr; text-align: center; padding-top: 60px; }
  .about-hero .avatar { margin: 0 auto; }
}
@media (max-width: 560px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.08em; }
  .nav .btn { display: none; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding-top: 70px; }
}

/* =========================================================
   Template pages (Contact / Careers / Privacy / 404)
   Menu: Home / Works / Careers / Upcoming / Contact Us
   ========================================================= */
.nav-links.alt a {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 15px;
  font-weight: 500;
}

.t-page { padding-top: 90px; padding-bottom: 70px; }
.t-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.t-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.t-head h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 16px;
}
.t-head p { color: var(--muted); font-size: 18px; }

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: rgba(192, 132, 252, 0.5); transform: translateY(-4px); }
.contact-card .ic {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  font-size: 22px;
}
.contact-card p { color: var(--muted); font-size: 16px; flex: 1; }
.contact-card a.card-link {
  align-self: flex-start;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: background 0.2s ease;
}
.contact-card a.card-link:hover { background: rgba(255,255,255,0.08); }
.privacy-note { text-align: center; color: var(--muted-dim); font-size: 14px; margin-top: 40px; }
.privacy-note a { color: var(--accent-2); }

/* Careers job card */
.job-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 38px 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
}
.job-card h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 18px; }
.job-card h3 { font-size: 18px; margin: 26px 0 10px; }
.job-card p { color: var(--muted); font-size: 16px; }
.role-label { color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

/* Privacy */
.policy { max-width: 760px; margin: 0 auto; }
.policy h2 { font-size: clamp(22px, 3.5vw, 30px); margin: 10px 0 16px; }
.policy ul { color: var(--muted); font-size: 17px; line-height: 1.9; padding-left: 22px; }
.policy ul li { margin-bottom: 6px; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound .code {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: clamp(110px, 26vw, 240px);
  line-height: 0.9;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound h2 { font-size: clamp(24px, 4vw, 36px); margin: 6px 0 14px; }
.notfound p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }

/* Template footer */
.t-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 56px 0 40px;
  text-align: center;
}
.t-footer .mascot { width: 96px; opacity: 0.9; margin: 0 auto 22px; display: block; }
.t-footer .tagline { color: var(--muted); max-width: 60ch; margin: 0 auto 26px; font-size: 16px; }
.t-footer .rights { color: var(--muted-dim); font-size: 13px; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}
