:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --gold: #c9a84c;
  --gold-light: #e0c872;
  --gold-dim: #8a7234;
  --text-primary: #f0ece4;
  --text-secondary: #a09b8e;
  --text-muted: #6b675e;
  --border: #2a2a35;
  --border-gold: rgba(201, 168, 76, 0.2);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HERO LOGO ===== */
.hero-logo-wrap {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: clamp(240px, 45vw, 420px);
  height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 8px 40px rgba(201, 168, 76, 0.25));
  transition: filter 0.3s ease;
}

.hero-logo:hover {
  filter: drop-shadow(0 8px 60px rgba(201, 168, 76, 0.4));
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 8px 20px;
  margin-bottom: 40px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-highlight {
  color: var(--gold);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero-gradient {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== SECTIONS SHARED ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== TRAILER ===== */
.trailer {
  padding: 60px 24px 100px;
  border-top: 1px solid var(--border);
}

.trailer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.trailer-player-wrap {
  display: flex;
  justify-content: center;
}

.trailer-player {
  position: relative;
  /* YouTube Shorts are 9:16 aspect ratio — keep it portrait on desktop, wider on mobile */
  width: min(420px, 100%);
  aspect-ratio: 9 / 16;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 80px rgba(201, 168, 76, 0.08);
  overflow: hidden;
}

.trailer-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 100px 24px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.portfolio-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1;
}

.portfolio-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.3;
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
}

/* ===== PILLARS ===== */
.pillars {
  padding: 100px 24px 120px;
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px;
}

.pillar {
  position: relative;
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}

.pillar h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(201, 168, 76, 0.04) 50%, var(--bg-primary) 100%);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* All-caps Deus Dominus text treatment */
.ddh-caps {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
    min-height: auto;
  }

  .hero-logo {
    width: clamp(180px, 50vw, 300px);
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-divider {
    height: 36px;
  }

  .trailer {
    padding: 40px 20px 60px;
  }

  .trailer-player {
    width: min(320px, 100%);
  }

  .portfolio {
    padding: 60px 20px 80px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pillars {
    padding: 60px 20px 80px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .closing {
    padding: 80px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.65rem;
    padding: 6px 14px;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .portfolio-card {
    padding: 28px 22px;
  }
}

/* ===== PORTFOLIO CARD FOOTER (links row) ===== */
.card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-links {
  display: flex;
  gap: 8px;
}

.card-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.card-link:hover {
  border-color: var(--gold);
}

/* ===== ADMIN PANEL ===== */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
}

.admin-brand {
  text-align: center;
  margin-bottom: 36px;
}

.admin-brand-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 5px 14px;
  margin-bottom: 20px;
}

.admin-brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-error {
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.3);
  color: #e07070;
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-bottom: 20px;
}

.admin-error-banner {
  margin-bottom: 24px;
}

.admin-success-banner {
  background: rgba(80, 180, 100, 0.1);
  border: 1px solid rgba(80, 180, 100, 0.3);
  color: #70c080;
  font-size: 0.85rem;
  padding: 10px 14px;
  margin-bottom: 24px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-form-edit {
  gap: 24px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.admin-required {
  color: var(--gold);
}

.admin-field input,
.admin-field textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-color: var(--gold-dim);
}

.admin-field textarea {
  resize: vertical;
  min-height: 100px;
}

.admin-btn-primary {
  background: var(--gold);
  color: #0a0a0f;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 28px;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}

.admin-btn-primary:hover {
  opacity: 0.88;
}

.admin-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.admin-btn-ghost:hover {
  border-color: var(--gold-dim);
  color: var(--text-primary);
}

.admin-btn-edit {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.admin-btn-edit:hover {
  background: rgba(201, 168, 76, 0.08);
}

.admin-back-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.admin-back-link:hover {
  color: var(--text-secondary);
}

/* Admin layout */
.admin-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.admin-header-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-header-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 2px 8px;
}

.admin-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.admin-nav-link:hover {
  color: var(--text-primary);
}

.admin-nav-logout {
  color: var(--text-muted);
}

/* Admin main content */
.admin-main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
  flex: 1;
}

.admin-page-header {
  margin-bottom: 32px;
}

.admin-page-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.admin-page-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Admin table */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(42, 42, 53, 0.6);
  vertical-align: top;
}

.admin-table tr:hover td {
  background: var(--bg-card);
}

.admin-col-order {
  color: var(--text-muted);
  font-size: 0.8rem;
  width: 32px;
}

.admin-col-name {
  min-width: 220px;
}

.admin-sub-name {
  display: block;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-sub-tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid var(--border-gold);
  padding: 3px 8px;
  white-space: nowrap;
}

.admin-col-email, .admin-col-url {
  font-size: 0.82rem;
}

.admin-email-link, .admin-url-link {
  color: var(--gold);
  text-decoration: none;
}

.admin-email-link:hover, .admin-url-link:hover {
  text-decoration: underline;
}

.admin-empty {
  color: var(--text-muted);
}

.admin-col-action {
  text-align: right;
}

/* Edit form */
.admin-edit-wrap {
  max-width: 720px;
}

.admin-edit-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.admin-edit-icon {
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-top: 4px;
}

.admin-form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 8px;
}

/* Admin responsive */
@media (max-width: 640px) {
  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-login-card {
    padding: 32px 24px;
  }

  .admin-header-title {
    display: none;
  }
}