/* Justin 3 — Luxury Theme v2 (dark + champagne gold)
   Target: refined, uncluttered, modern. Reuses existing class names. */

:root {
  --bg: #0a0a0c;
  --bg-elev: #121116;
  --surface: #15131a;
  --surface-2: #1a1820;
  --line: rgba(201, 160, 106, 0.18);
  --line-strong: rgba(201, 160, 106, 0.34);
  --text: #f4ede0;
  --text-muted: #a89c87;
  --text-soft: #c8bfa9;
  --gold: #c9a06a;
  --gold-bright: #e8d3a6;
  --gold-deep: #8a6e44;
  --gold-glow: rgba(201, 160, 106, 0.22);
  --ok: #9ad7bf;
  --danger: #ff9f88;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-1: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 32px 64px rgba(0, 0, 0, 0.55);
  --max-w: min(1120px, 92vw);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 80% -10%, rgba(201, 160, 106, 0.10), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(138, 110, 68, 0.06), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease), opacity 0.2s var(--ease); }

::selection { background: var(--gold); color: #1a1206; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #1a1206;
  padding: 0.6rem 1rem; z-index: 999; border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: var(--max-w); margin-inline: auto; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: Syne, "Trebuchet MS", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.85rem;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.015em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); letter-spacing: 0.01em; }
p  { margin: 0 0 1rem; color: var(--text-soft); }
.small { color: var(--text-muted); font-size: 0.9rem; }
.legal-muted { color: var(--text-muted); font-size: 0.88rem; letter-spacing: 0.02em; }

/* Gold accent helper for headline emphasis */
.accent, .accent-word, h1 em, h2 em { color: var(--gold); font-style: normal; font-weight: inherit; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: Syne, sans-serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.brand:hover { opacity: 0.85; }
.brand-logo {
  width: 38px; height: 38px; object-fit: contain;
  filter: drop-shadow(0 0 12px var(--gold-glow));
}
.brand-text { color: var(--text); }

.nav-toggle {
  display: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: transparent;
  color: var(--text); padding: 0.45rem 0.7rem;
  font: inherit; font-size: 0.85rem; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold); }

.menu { display: flex; align-items: center; gap: 0.1rem; flex-wrap: wrap; }
.menu a {
  padding: 0.55rem 0.9rem; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: 0.92rem;
  letter-spacing: 0.04em; position: relative;
}
.menu a::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s var(--ease);
}
.menu a:hover { color: var(--text); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--gold); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  overflow: hidden; background: rgba(255, 255, 255, 0.02);
}
.lang-switch a {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 0.75rem; color: var(--text-muted); font-weight: 600;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] {
  color: #1a1206; background: var(--gold); font-weight: 700;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn, button.btn, input.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border: 0; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-bright) 100%);
  color: #1a1206;
  box-shadow: 0 8px 24px rgba(201, 160, 106, 0.22);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(201, 160, 106, 0.34);
}
.btn--primary::after { content: "›"; font-size: 1.2em; line-height: 0; opacity: 0.85; }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; align-items: center; }

/* ── Hero (with video bg) ───────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 880px);
  display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: saturate(0.95) contrast(1.05) brightness(0.55);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.25) 35%, rgba(10, 10, 12, 0.85) 100%),
    radial-gradient(ellipse at 75% 20%, rgba(201, 160, 106, 0.08), transparent 55%);
}
.hero__slides, .hero__slide, .hero__grain { display: none !important; } /* legacy slideshow disabled */

.hero__content {
  position: relative; z-index: 2;
  width: var(--max-w); margin-inline: auto;
  padding: 0 0 clamp(2.5rem, 6vw, 5rem);
  max-width: 100%;
}
.hero__content > * { max-width: 780px; }
.hero h1 { color: var(--text); font-size: clamp(2.6rem, 6.5vw, 5.2rem); }
.hero p {
  color: var(--text-soft); font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 60ch; line-height: 1.55;
}
.hero .legal-muted { font-size: 0.86rem; opacity: 0.7; margin-top: 0.5rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 1.5rem;
}
.kicker::before {
  content: ""; width: 32px; height: 1px; background: var(--gold);
}

/* ── Sections & Panels ──────────────────────────────────── */
.section { padding: clamp(3rem, 6.5vw, 6rem) 0; position: relative; }
.section--tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  box-shadow: var(--shadow-1);
  transition: border-color 0.3s var(--ease);
}
.panel:hover { border-color: var(--line-strong); }

.bg-cut { position: relative; overflow: hidden; }
.bg-cut::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, rgba(10, 10, 12, 0.82) 0%, rgba(10, 10, 12, 0.65) 100%);
}
.bg-cut > * { position: relative; z-index: 1; }
.bg-cut--portrait { background: url(/assets/images/corp-classical-hall.jpg) center/cover no-repeat; }
.bg-cut--crowd    { background: url(/assets/images/corp-terrace-dining.jpg) center/cover no-repeat; }
.bg-cut--field    { background: url(/assets/images/corp-award-ceremony.jpg) center/cover no-repeat; }

/* ── Grid ───────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.metric:hover { border-color: var(--line-strong); background: rgba(201, 160, 106, 0.04); }
.metric h3 { font-size: 1rem; margin: 0 0 0.4rem; color: var(--gold); }
.metric p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

/* ── Embeds, Media cards, YT-Lite ───────────────────────── */
.embed-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.media-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.media-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.media-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.media-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.media-card p { font-size: 0.95rem; }
.media-card iframe { display: block; width: 100%; border: 0; }
.release-cover { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.yt-lite {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #000; min-height: 200px;
}
.yt-lite button {
  width: 100%; padding: 0; border: 0; cursor: pointer; background: #000;
  color: #fff; position: relative;
}
.yt-lite img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  filter: brightness(0.85);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}
.yt-lite:hover img { filter: brightness(1); transform: scale(1.03); }
.yt-lite__play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--gold); color: #1a1206;
  display: grid; place-content: center;
  font-size: 1.4rem; padding-left: 4px;
  box-shadow: 0 10px 28px rgba(201, 160, 106, 0.4);
  transition: transform 0.3s var(--ease);
}
.yt-lite:hover .yt-lite__play { transform: translate(-50%, -50%) scale(1.08); }
.yt-lite__label {
  position: absolute; left: 0.85rem; bottom: 0.85rem;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(10, 10, 12, 0.8); color: var(--text-soft);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 0.32rem 0.7rem;
}
.yt-lite iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* ── Chips ──────────────────────────────────────────────── */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--text-soft);
  border-radius: var(--radius-pill); padding: 0.32rem 0.75rem;
  background: rgba(255, 255, 255, 0.015); transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}
table { width: 100%; border-collapse: collapse; }
thead { background: rgba(201, 160, 106, 0.06); }
th, td {
  text-align: left; padding: 0.95rem 1.1rem; font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
th { color: var(--gold); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.78rem; }
tbody tr:last-child td { border-bottom: 0; }
.status { color: var(--ok); font-weight: 700; }
.status--past { color: var(--text-muted); }

/* ── Quotes ─────────────────────────────────────────────── */
.quote {
  position: relative; padding: 1.3rem 1.4rem 1.3rem 2.2rem;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.012);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.quote::before {
  content: "\201C"; position: absolute; left: 0.65rem; top: -0.2rem;
  font-family: Syne, serif; font-size: 3rem; line-height: 1;
  color: var(--gold); opacity: 0.55;
}
.quote p { margin: 0 0 0.6rem; color: var(--text); font-style: italic; line-height: 1.55; }
.quote cite { color: var(--gold); font-style: normal; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* ── Forms ──────────────────────────────────────────────── */
form { display: grid; gap: 1rem; }
label {
  display: grid; gap: 0.4rem; font-size: 0.86rem;
  color: var(--text-muted); letter-spacing: 0.04em;
  font-weight: 500; text-transform: uppercase;
}
input, textarea, select {
  width: 100%; font: inherit; font-size: 1rem;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { min-height: 10rem; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23c9a06a' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
input:focus, textarea:focus, select:focus, button:focus, a:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-status {
  margin: 0.5rem 0 0; color: var(--gold-bright);
  font-size: 0.92rem; min-height: 1.2em;
}

/* ── Notice / Badge ─────────────────────────────────────── */
.notice {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; background: rgba(201, 160, 106, 0.05);
  color: var(--text-soft); font-size: 0.95rem;
}
.notice strong { color: var(--gold); }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
  background: rgba(201, 160, 106, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); padding: 0.32rem 0.8rem;
  margin-bottom: 0.85rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  position: relative; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.footer-logo { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 12px var(--gold-glow)); }
.footer-grid h3 {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 0.85rem;
}
.footer-links { display: grid; gap: 0.5rem; }
.footer-links a { color: var(--text-soft); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--gold); }

/* ── Animations ─────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(12px); animation: fade-up 0.7s var(--ease) forwards; }
.fade-up:nth-child(2) { animation-delay: 0.08s; }
.fade-up:nth-child(3) { animation-delay: 0.16s; }
.fade-up:nth-child(4) { animation-delay: 0.24s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* ── Floating social rail (desktop) ─────────────────────── */
.social-rail {
  position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.85rem; z-index: 40;
}
.social-rail a {
  width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-content: center;
  background: rgba(10, 10, 12, 0.7);
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(8px);
}
.social-rail a:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.08); }
.social-rail svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .menu {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch;
    background: rgba(10, 10, 12, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    display: none; padding: 0.6rem 4vw 1rem; gap: 0;
  }
  .menu[data-open="true"] { display: flex; }
  .menu a { width: 100%; padding: 0.95rem 0.6rem; border-bottom: 1px solid var(--line); }
  .menu a::after { display: none; }
  .menu a:last-child { border-bottom: 0; }
  .social-rail { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .container { width: min(94vw, 1120px); }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  th, td { padding: 0.75rem; font-size: 0.88rem; }
  .btn { padding: 0.78rem 1.25rem; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero__video { display: none; }
  .hero { background: url(/assets/video/hero-poster.jpg) center/cover no-repeat; }
}

/* Progressive enhancement: content remains visible before/without scroll-driven JS. */
.fade-up-observed { opacity: 1 !important; transform: none !important; }
