/* ── GOOGLE FONTS IMPORT ── */
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Oswald:wght@400;500&family=Manrope:wght@200;300;400;600&display=swap');

/* ── LOCAL FONTS ── */
@font-face {
  font-family: 'Casagrande Antifascista';
  src: url('/assets/fonts/CasagrandeAntifascista-Regular_0.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura TS Condensed';
  src: url('/assets/fonts/FuturaTSCondensed-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── VARIABLES ── */
:root {
  /* Theme Colors */
  --bg-color: #fdfdfd;
  --bg-secondary: #f4f4f4;
  --surface: #ffffff;
  --text-main: #0a0a0a;
  --text-muted: #858585;
  --line-color: rgba(0, 0, 0, 0.08);
  --border-color: #e5e5e5;
  --pill-bg: #f0f0f0;
  --nav-bg: rgba(253, 253, 253, 0.95);

  --accent: #000000;
  --accent-hover: #000000;
  --accent-bg: rgba(0, 0, 0, 0.05);

  --danger: #b91c1c;
  --success: #15803d;
  --info: #1e40af;

  --font-display-serif: 'Casagrande Antifascista', 'Abril Fatface', serif;
  --font-statement: 'Futura TS Condensed', 'Oswald', sans-serif;
  --font-body: 'Manrope', sans-serif;
  
  --radius: 4px;
  
  /* Standard Button Height */
  --btn-height: 42px;
}

[data-theme="dark"] {
  --bg-color: #0c0c0f;
  --bg-secondary: #13131a;
  --surface: #1a1a20;
  --text-main: #f0ede6;
  --text-muted: #9a9690;
  --line-color: rgba(255, 255, 255, 0.1);
  --border-color: #2e2e3d;
  --accent: #ffffff;
  --accent-bg: rgba(255, 255, 255, 0.1);
  --pill-bg: #2a2a2a;
  --nav-bg: rgba(12, 12, 15, 0.95);
}

/* ── RESET & GLOBAL ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; font-size: 16px; }
html.chapter-mode { overflow: hidden; }

body {
  background: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; cursor: pointer; transition: color 0.3s ease; }
ul { list-style: none; }
.hidden { display: none !important; }

/* ── UTILITIES ── */
.font-display { font-family: var(--font-display-serif); }
.font-statement { font-family: var(--font-statement); text-transform: uppercase; letter-spacing: 0.05em; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.upper { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75em; }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 4rem;

  background: var(--nav-bg);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--line-color);

  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-display-serif);
  font-size: 1.8rem;
  color: var(--text-main);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  position: relative;

  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 0.15em;

  color: var(--text-muted);

  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: var(--text-main);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-waitlist-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 1rem;
  height: 32px;
  font-family: var(--font-statement); font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--bg-color) !important;
  background: var(--text-main);
  border: 1px solid var(--text-main);
  border-radius: var(--radius);
  cursor: pointer; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  white-space: nowrap;
}
.nav-waitlist-btn::after { display: none !important; }
.nav-waitlist-btn:hover {
  background: var(--accent, var(--text-main));
  border-color: var(--accent, var(--text-main));
  color: var(--bg-color) !important;
}

/* ── COMPONENTS: BUTTONS (UNIFORM) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 1.5rem;
  font-family: var(--font-statement); text-transform: uppercase;
  font-size: 0.75rem; letter-spacing: 0.1em;
  background: transparent; color: var(--text-main);
  border: 1px solid var(--text-main);
  border-radius: var(--radius);
  cursor: pointer; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  height: var(--btn-height); /* Fixed Height */
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { background: var(--text-main); color: var(--bg-color); }

.btn-fill {
  background: var(--text-main); color: var(--bg-color);
}
.btn-fill:hover {
  background: var(--accent); border-color: var(--accent);
}
.btn-sm { 
  padding: 0 1rem; 
  font-size: 0.7rem; 
  height: 36px; /* Smaller fixed height for table actions */
}
.action-buttons{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:0.5rem;
}

.action-buttons .btn{
    min-width:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}
/* Theme Toggle Button */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--line-color);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer; transition: all 0.2s ease;
  font-size: 1rem;
}
.theme-toggle:hover { 
  border-color: var(--text-main); 
  color: var(--text-main); 
  background: var(--bg-secondary);
}

/* Page Turn (Index) */
.page-turn {
  font-family: var(--font-body); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text-muted); background: none; border: none;
  cursor: pointer; transition: color 0.6s ease, letter-spacing 0.6s ease;
  margin-top: 3rem; padding: 1rem 0; position: relative;
}
.page-turn:hover { color: var(--text-main); letter-spacing: 0.2em; }
.page-turn::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 0; height: 1px;
  background: var(--text-main); transition: width 0.4s ease;
}
.page-turn:hover::after { width: 100%; }

/* ── HOME PAGE ONLY: shimmer on .page-turn buttons ── */
@keyframes page-turn-shine {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}
html.chapter-mode .page-turn {
  background: linear-gradient(
    90deg,
    var(--text-muted)  0%,
    var(--text-muted) 35%,
    var(--text-main)  50%,
    var(--text-muted) 65%,
    var(--text-muted) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: page-turn-shine 2.2s linear infinite;
}
html.chapter-mode .page-turn:hover {
  color: transparent;
  letter-spacing: 0.2em;
}

/* ── HOME PAGE: position toggle (no nav on this page) ── */
.home-theme-toggle { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 100; }

/* ── COMPONENTS: FORMS ── */
.form-group { margin-bottom: 1.5rem; }
label {
  display: block; font-family: var(--font-statement);
  font-size: 0.7rem; color: var(--text-muted);
  margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em;
}

input[type="text"], input[type="password"], input[type="number"], 
input[type="date"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.6rem 0;
  background: transparent;
  border: none; 
  border-bottom: 1px solid var(--line-color);
  color: var(--text-main);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.3s ease;
  height: 36px; /* Align with standard inputs */
}

input:focus, select:focus, textarea:focus {
  outline: none; border-bottom-color: var(--text-main);
}

/* ── Date field with calendar icon ── */
.date-field {
  display: flex; align-items: center; gap: 0.45rem;
  border-bottom: 1px solid var(--line-color);
  transition: border-color 0.3s ease;
  width: 100%;
  cursor: pointer; user-select: none;
}
.date-field:focus-within { border-bottom-color: var(--text-main); }
.date-field-cal {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--text-muted); pointer-events: none;
  transition: color 0.2s ease;
}
.date-field:focus-within .date-field-cal { color: var(--text-main); }
.date-field input[type="date"] {
  border: none; padding: 0.6rem 0;
  flex: 1; width: auto;
}

/* ── LOGIN PAGE STYLES ── */
.login-wrapper {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem;
}
.login-card {
  width: 100%; max-width: 400px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  background: var(--surface);
}
.login-title {
  font-family: var(--font-display-serif); font-size: 1.8rem;
  margin-bottom: 2rem; color: var(--text-main); text-align: center;
}

/* ── TOPBAR (Generator & Quotations) ── */
.topbar {
  height: 70px; /* Slightly taller to accommodate buttons */
  border-bottom: 1px solid var(--line-color);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: var(--bg-color); position: sticky; top: 0; z-index: 100;
}

.app-logo {
  font-family: var(--font-display-serif); font-size: 1.25rem;
  color: var(--text-main); cursor: pointer;
}

.topbar-right { display: flex; align-items: center; gap: 1rem; }
.mode-pill {
  font-family: var(--font-statement); font-size: 0.65rem;
  padding: 4px 12px; border: 1px solid var(--line-color);
  border-radius: 20px; color: var(--text-muted);
}
.mode-pill.editing { border-color: var(--text-main); color: var(--text-main); }

/* ── GENERATOR LAYOUT ── */
.workspace { display: flex; height: calc(100vh - 70px); }

.sidebar {
  width: 400px; border-right: 1px solid var(--line-color);
  background: var(--bg-color);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-inner { padding: 2rem; flex: 1; }

.card {
  border: 1px solid var(--line-color);
  padding: 1.5rem; margin-bottom: 2rem;
}
.card-header {
  font-family: var(--font-statement); font-size: 0.8rem;
  color: var(--text-main); margin-bottom: 1rem; text-transform: uppercase;
  letter-spacing: 0.05em; display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line-color);
}
.card-header::after { content:''; flex:1; height:1px; background:var(--line-color); margin-left:1rem; }

.etags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.etag {
  font-size: 0.7rem; padding: 0.25rem 0.75rem;
  background: var(--pill-bg); border: 1px solid var(--border-color);
  border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.2s; height: 28px;
}
.etag.active { background: var(--text-main); color: var(--bg-color); border-color: var(--text-main); }
.etag-x { width: 12px; height: 12px; border-radius: 50%; background: rgba(0,0,0,0.2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; }
.etag.active .etag-x { background: var(--bg-color); color: var(--text-main); }

.crew-list, .svc-list { display: flex; flex-direction: column; gap: 1rem; }
.crew-item-row, .svc-item-row {
  display: grid; grid-template-columns: 1fr auto 120px; gap: 1rem; align-items: center;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line-color);
}
.crew-item-row:last-child, .svc-item-row:last-child { border-bottom: none; }

.counter { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: var(--radius); height: 36px; }
.counter input {
  width: 40px; text-align: center; border: none; padding: 0.4rem; height: 100%;
  font-family: var(--font-statement);
}
.cbtn {
  width: 32px; height: 100%; background: transparent; border: none;
  cursor: pointer; color: var(--text-muted); transition: color 0.2s;
}
.cbtn:hover { color: var(--text-main); }

.svc-item-row { grid-template-columns: 24px 1fr 120px; }
.svc-check { width: 18px; height: 18px; accent-color: var(--text-main); cursor: pointer; }
.amt-inline { display: none; }
.amt-inline.on { display: block; }

.deliv-row-wrapper { display: flex; gap: 0.5rem; align-items: flex-end; } 
.deliv-select { flex: 1; }

.action-strip {
  padding: 1.5rem 2rem; border-top: 1px solid var(--line-color);
  background: var(--bg-color); display: flex; flex-direction: column; gap: 1rem;
}
.btn-gen { width: 100%; }

/* Preview Panel */
.preview {
  flex: 1; background: var(--bg-secondary); padding: 2rem;
  overflow-y: auto;
}
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

.summary-table { width: 100%; border-collapse: collapse; background: var(--surface); box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.summary-table th {
  padding: 1rem; text-align: left; font-family: var(--font-statement);
  font-size: 0.7rem; color: var(--text-muted); border-bottom: 2px solid var(--bg-secondary);
}
.summary-table td {
  padding: 1rem; border-bottom: 1px solid var(--line-color);
  color: var(--text-main); font-size: 0.9rem;
}
.summary-table td:last-child { text-align: right; font-family: var(--font-statement); color: var(--text-main); }
.summary-table tr.r-total td { font-family: var(--font-display-serif); font-size: 1.2rem; color: var(--text-main); border-top: 2px solid var(--text-main); }
.summary-table tr.r-disc td { color: var(--danger); }

.grand-box {
  margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--text-main);
  display: flex; justify-content: space-between; align-items: center;
}
.grand-amount { font-family: var(--font-display-serif); font-size: 2.5rem; color: var(--text-main); }

/* ── QUOTATIONS LIST (Dashboard) ── */
.dashboard-page { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line-color);
  padding: 1.5rem; text-align: center;
}
.stat-val { font-family: var(--font-display-serif); font-size: 2.5rem; color: var(--text-main); margin-top: 0.5rem; }

.q-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.q-table th {
  padding: 1rem; text-align: left; font-family: var(--font-statement);
  font-size: 0.7rem; color: var(--text-muted); border-bottom: 1px solid var(--text-main);
}
.q-table td { padding: 1rem; border-bottom: 1px solid var(--line-color); font-size: 0.9rem; vertical-align: middle; }
.token-badge { font-family: monospace; font-size: 0.75rem; background: var(--pill-bg); padding: 2px 6px; border-radius: 4px; }
.pkg-badge { font-size: 0.65rem; padding: 2px 8px; border-radius: 12px; background: var(--pill-bg); color: var(--text-muted); }
/* Status Badges */
.pkg-badge-finalized { background: var(--text-main); color: var(--bg-color); }
.pkg-badge-pending { background: transparent; border: 1px solid var(--line-color); }

/* ── INDEX PAGE SPECIFIC STYLES ── */
.chapter { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem; opacity: 0; transform: translateY(30px); pointer-events: none; transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); z-index: 1; }
.chapter.active { opacity: 1; transform: translateY(0); pointer-events: auto; z-index: 10; }
.chapter.exit { opacity: 0; transform: translateY(-20px); pointer-events: none; z-index: 5; }
.chapter-back { position: absolute; top: 2rem; left: 2rem; font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; background: none; border: none; color: var(--text-muted); cursor: pointer; transition: all 0.4s ease; z-index: 60; }
.chapter-back:hover { color: var(--text-main); letter-spacing: 0.2em; }
.hero-title { font-family: var(--font-display-serif); text-transform: uppercase; font-size: clamp(4rem, 12vw, 10rem); line-height:1.1; color: var(--text-main); font-weight: 400; letter-spacing: -0.02em; }
.hero-subtitle { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 4rem); margin-top: -1.5rem; font-family: var(--font-statement); text-transform: uppercase; font-size: clamp(1rem, 2vw, 1.8rem); line-height: 1; color: var(--text-muted); }
.hero-logo { width: clamp(240px, 40vw, 520px); display: block; margin: 0 auto; }
.section-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--text-muted); margin-bottom: 3rem; display: block; }
.philosophy-text { font-family: var(--font-statement); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.3; font-weight: 400; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.05em; max-width: 900px; }
.process-header { width: 100%; padding: 7rem 2rem 2rem; z-index: 3; background: var(--bg-color); }
.timeline-scroll-container { flex: 1; width: 100%; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: none; -ms-overflow-style: none; }
.timeline-wrapper { min-height: 100%; padding: 4rem 0 0; display: flex; flex-direction: column; justify-content: center; }
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line-color); transform: translateX(-50%); }
.timeline-item { display: grid; grid-template-columns: 1fr 1fr; position: relative; margin-bottom: 8rem; align-items: center; transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease; }
.timeline-node { position: absolute; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; background: var(--bg-color); border: 1px solid var(--text-main); border-radius: 50%; z-index: 10; }
.timeline-content { display: flex; flex-direction: column; }
.timeline-spacer { display: block; }
.timeline-item:nth-child(odd) .timeline-content { padding-right: 4rem; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { padding-left: 4rem; grid-column: 2; text-align: left; }
.timeline-item:nth-child(even) .timeline-spacer { grid-column: 1; }
.phase-tag { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 1rem; display: block; }
.phase-title { font-family: var(--font-body); font-size: 2rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-main); line-height: 1.2; }
.phase-desc { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 300; }
.deliverables-list { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; }
.timeline-item:nth-child(even) .deliverables-list { justify-content: flex-start; }
.deliverables-list li { font-family: var(--font-body); font-size: 0.65rem; font-weight: 600; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.1em; background-color: var(--pill-bg); border-radius: 50px; padding: 8px 18px; transition: all 0.3s ease; cursor: default; }
.deliverables-list li:hover { background-color: var(--text-main); color: var(--bg-color); transform: translateY(-2px); }
.process-final { padding: 4rem 2rem; text-align: center; }
.process-final h3 { font-family: var(--font-display-serif); font-size: 2.5rem; text-transform: uppercase; font-weight: 400; margin-bottom: 1rem; }
.process-final h4 { font-family: var(--font-display-serif); font-size: 1.5rem; text-transform: uppercase; font-weight: 400; margin-bottom: 1rem; }
.process-final p { color: var(--text-muted); max-width: 400px; margin: 0 auto 2rem; }

#chapter-3 { justify-content: flex-start; align-items: center; }
.chapter-header-sticky { position: sticky; top: 0; z-index: 50; width: 100%; height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; background: var(--bg-color); padding-bottom: 1.5rem; }
.founder { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
.founder-container { flex: 1; width: 100%; overflow-y: auto; margin-top: 0; position: relative; }
.founder.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.founder-inner { width: 100%; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 2rem 4rem 2rem; }
.founder-img-wrapper { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; margin-bottom: 3rem; filter: grayscale(100%); transition: filter 0.8s ease; }
.founder-inner:hover .founder-img-wrapper { filter: grayscale(0%); }
.founder-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.founder-name { font-family: var(--font-display-serif); text-transform: uppercase; font-size: 2.5rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--text-main); }
.founder-role { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 2.5rem; display: block; }
.founder-bio { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); font-weight: 300; width: 100%; }

/* ── PROMISE & CONTACT STYLES ── */
.quote-big { font-family: var(--font-statement); font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.2; max-width: 900px; margin: 0 auto 4rem; color: var(--text-main); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; }
.stats-grid { display: flex; justify-content: center; gap: 6rem; flex-wrap: wrap; margin-bottom: 4rem; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display-serif); text-transform: uppercase; font-size: 3.5rem; font-weight: 400; display: block; margin-bottom: 0.5rem; opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.stat-num.visible { opacity: 1; transform: translateY(0); }
.stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); }
.contact-title { font-family: var(--font-display-serif); font-size: 3rem; font-weight: 400; text-transform: uppercase; margin-bottom: 3rem; }
.btn-group { margin-bottom: 5rem; display: flex; justify-content: center; gap: 1.5rem; }
.contact-info { display: flex; gap: 3rem; color: var(--text-muted); font-size: 0.8rem; }

/* ── GALLERY SPECIFIC STYLES ── */
.page-header { padding: 8rem 2rem 3rem; text-align: center; transition: all 0.5s ease; }
.header-title { font-family: var(--font-display-serif); font-size: clamp(2.5rem, 5vw, 4rem); text-transform: uppercase; font-weight: 400; margin-bottom: 0.5rem; transition: all 0.5s ease; }
.header-subtitle { font-family: var(--font-statement); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--text-muted); text-transform: uppercase; }
.page-header{
    position:relative;
}

.back-story{
    display:block;
    width:100%;
    text-align:left;

    margin-bottom:1rem;

    font-size:.75rem;
    text-transform:uppercase;
    letter-spacing:.15em;

    color:var(--text-muted);
    cursor:pointer;
}

.back-story:hover{
    color:var(--text-main);
}
/* ── FILTERS ── */
.filter-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 4rem; padding: 0 2rem; }
.filter-btn {
  background: none; border: none;
  font-family: var(--font-body); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text-muted); cursor: pointer;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap; font-weight: 500;
}
.filter-btn:hover, .filter-btn.active {
  color: var(--text-main);
  border-bottom: 1px solid var(--text-main);
}

.sub-filter-container {
  display: none; justify-content: center; flex-wrap: wrap;
  gap: 1rem; margin-bottom: 3rem; padding: 0 2rem;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.sub-filter-container.visible {
  display: flex; opacity: 1; transform: translateY(0);
}
.sub-filter-btn {
  background: transparent; border: 1px solid var(--line-color);
  padding: 0.5rem 1.2rem; border-radius: 50px;
  font-family: var(--font-body); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.3s ease;
}
.sub-filter-btn:hover { border-color: var(--text-main); color: var(--text-main); }
.sub-filter-btn.active {
  background: var(--text-main); color: var(--bg-color); border-color: var(--text-main);
}

/* ── GRID LAYOUTS ── */
.gallery-container {
  max-width: 1400px; margin: 0 auto 6rem; padding: 0 2rem;
}
.gallery-grid{
    columns: 4 280px;
    column-gap: 1.5rem;
}
.gallery-state {
  column-span: all;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  width: 100%;
  font-family: var(--font-statement);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── CLIENT CARDS ── */
.client-card {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  cursor: pointer;
  transition: all 0.5s ease;
}
.client-card:hover { transform: translateY(-5px); }
.client-card img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:none;
}
.client-card:hover img{
    transform:scale(1.05);
}
.client-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  text-align: center; opacity: 0.9;
}
.client-names {
  font-family: var(--font-display-serif);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.client-category {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

/* ── GALLERY ITEMS ── */
.gallery-item{
    display:inline-block;
    width:100%;
    margin-bottom:1.5rem;

    overflow:hidden;
    cursor:pointer;

    break-inside:avoid;
    border-radius:6px;
}

.gallery-item img{
    width:100%;
    height:auto;
    display:block;
    object-fit:contain;
    filter:none;
    transition:transform .5s ease;
}

.gallery-item:hover img{
    transform:scale(1.03);
}
.gallery-item:hover img {
  transform: scale(1.05); filter: grayscale(0%);
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 90%; max-height: 85vh;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  transform: scale(0.95);
  transition: transform 0.5s ease;
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 2rem; right: 3rem;
  font-family: var(--font-body); font-size: 1.5rem;
  background: none; border: none; cursor: pointer; color: var(--text-main);
}
.lightbox-prev,
.lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-main); font-size: 2.5rem; line-height: 1;
  padding: 0.5rem 1rem;
  opacity: 0.4; transition: opacity 0.2s ease;
  font-family: var(--font-body);
  user-select: none; -webkit-user-select: none;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-statement); font-size: 0.65rem;
  letter-spacing: 0.15em; color: var(--text-muted); text-transform: uppercase;
}
@media (max-width: 600px) {
  .lightbox-prev { left: 0.5rem; font-size: 2rem; }
  .lightbox-next { right: 0.5rem; font-size: 2rem; }
  .lightbox-close { top: 1rem; right: 1.25rem; font-size: 1.2rem; }
}


  /* Specific adjustments for Careers Page within existing theme */
  .roles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
  }

  .role-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s ease;
  }

  .role-card:hover {
    transform: translateY(-5px);
  }

  .role-icon {
    font-family: var(--font-display-serif);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
  }

  .role-requirements {
    margin: 1.5rem 0 2rem;
    flex-grow: 1;
  }

  .role-requirements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .role-requirements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-main);
    font-family: var(--font-display-serif);
  }

  .application-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
    border-top: 1px solid var(--line-color);
  }

/* ── RESPONSIVE GALLERY ── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .client-card, .gallery-item { grid-column: span 3; }
  .gallery-item.wide, .gallery-item.big { grid-column: span 6; }
}
@media (max-width: 768px) {
  .gallery-grid { 
    grid-template-columns: 1fr; 
    grid-auto-rows: 400px;
  }
  .client-card, .gallery-item, .gallery-item.tall, .gallery-item.wide, .gallery-item.big {
    grid-column: span 1; grid-row: span 1;
  }
}
@media (max-width: 768px) {

  .nav {
    padding: 0 1.5rem;
    height: 70px;
  }

  .nav-logo {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .page-header {
    padding-top: 7rem;
  }
  
  /* Responsive Founder Updates */
  .chapter-header-sticky {
    height: 120px;
  }
  #chapter-3 .chapter-back {
    top: 1.5rem;
    left: 1.5rem;
  }
  .founder-inner {
    padding: 0 1.5rem;
  }
}
/* ==================================================
   UNIVERSAL RESPONSIVE LAYER
   ================================================== */

/* Large Desktop */
@media (min-width: 1600px) {
  .gallery-container,
  .dashboard-page,
  .timeline {
    max-width: 1600px;
  }

  .hero-title {
    font-size: clamp(5rem, 10vw, 12rem);
  }
}

/* Laptop & Small Desktop */
@media (max-width: 1200px) {

  .nav {
    padding: 0 2rem;
  }

  .sidebar {
    width: 340px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-auto-rows: 300px;
  }

  .grand-amount {
    font-size: 2rem;
  }
}

/* Tablet */
@media (max-width: 992px) {

  .workspace {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line-color);
  }

  .preview {
    padding: 1.5rem;
  }

  .topbar {
    padding: 0 1rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 60px;
  }

  .timeline-node {
    left: 30px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    padding: 0;
    text-align: left;
    grid-column: auto;
  }

  .timeline-spacer {
    display: none;
  }

  .deliverables-list {
    justify-content: flex-start !important;
  }

  .stats-grid {
    gap: 3rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {

  html {
    font-size: 15px;
  }

  .dashboard-page {
    padding: 2rem 1rem;
  }

  .sidebar-inner,
  .action-strip {
    padding: 1rem;
  }

  .card {
    padding: 1rem;
  }

  .crew-item-row,
  .svc-item-row {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .counter {
    width: fit-content;
  }

  .deliv-row-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .summary-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .q-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .grand-box {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 320px;
  }

  .contact-title {
    font-size: 2rem;
  }
}

/* Small Phones */
@media (max-width: 480px) {

  html {
    font-size: 14px;
  }

  .nav {
    padding: 0 1rem;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-links {
    gap: .75rem;
  }

  .nav-links a {
    font-size: .6rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .quote-big {
    font-size: 1.8rem;
  }

  .founder-name {
    font-size: 1.8rem;
  }

  .founder-img-wrapper {
    width: 140px;
    height: 140px;
  }

  .phase-title {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-auto-rows: 280px;
  }

  .grand-amount {
    font-size: 1.6rem;
  }

  .stat-val,
  .stat-num {
    font-size: 2rem;
  }
}

/* Very Small Devices */
@media (max-width: 360px) {

  .nav-links {
    gap: .5rem;
  }

  .nav-links a {
    font-size: .55rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0 1rem;
  }
}

/* Safe Images */
img {
  max-width: 100%;
  height: auto;
}

/* Safe Videos */
video,
iframe {
  max-width: 100%;
}

/* Prevent Horizontal Scroll */
body,
main,
section,
div {
  max-width: 100%;
}

/* Better Mobile Touch Targets */
@media (hover: none) {
  .btn,
  .filter-btn,
  .sub-filter-btn,
  .theme-toggle,
  .cbtn {
    min-height: 44px;
  }
}

/* Mobile Responsive careers*/
.careers-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}
@media (max-width: 768px) {
  .roles-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .careers-intro { margin-bottom: 3rem; }
}
/* ═══════════════════════════════════════
   STANDALONE CONTACT PAGE
   ═══════════════════════════════════════ */

.contact-page {
  padding: 0 2rem 2rem;
}

.contact-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  font-family: var(--font-statement);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

/* ── Form Wrapper & Transition ── */
.form-wrapper {
  position: relative;
}

.contact-form {
  text-align: left;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-form.submitted {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  position: absolute;
  top: 0; left: 0; width: 100%;
}

/* ── Form Layout ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  margin-bottom: 0.75rem;
}

.req {
  color: var(--text-muted);
  font-size: 0.8em;
}

/* ── Input Focus ── */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.3;
  font-weight: 300;
  font-size: 0.9rem;
}

/* ── Textarea Box Style ── */
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-color);
  padding: 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  resize: vertical;
  min-height: 140px;
  transition: border-color 0.3s ease;
}

.contact-form textarea:focus {
  outline: none;
  border-color: var(--text-main);
}

/* ── Submit Button ── */
.btn-submit {
  width: 100%;
  margin-top: 1rem;
  height: 48px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-submit:active {
  transform: scale(0.98);
}

/* ── Success State ── */
.contact-success {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  text-align: center;
  padding: 3rem 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s,
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.contact-success.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.success-check {
  width: 64px; height: 64px;
  border: 2px solid var(--text-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
  font-family: var(--font-display-serif);
  font-size: 1.5rem;
  color: var(--text-main);
  animation: successPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.contact-success h3 {
  font-family: var(--font-display-serif);
  font-size: 2.2rem;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.contact-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
  font-weight: 300;
}

/* ═══════════════════════════════════════
   CONTACT PAGE — RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-intro {
    margin-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .contact-page {
    padding: 0 1.25rem 4rem;
  }

  .contact-form .form-group {
    margin-bottom: 2.5rem;
  }

  .btn-submit {
    height: 44px;
    font-size: 0.75rem;
  }
}

/* Hide number input spinners */
/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
/* ══════════════════════════════════════
   GALLERY ADMIN — on-theme components
   ══════════════════════════════════════ */

/* Toast notification */
.toast-msg {
  position: fixed; bottom: 2rem; right: 2rem;
  padding: 0.8rem 1.4rem;
  background: var(--text-main); color: var(--bg-color);
  font-family: var(--font-statement); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  z-index: 9999; pointer-events: none;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-msg.show { opacity: 1; transform: translateY(0); }
.toast-msg.error { background: var(--danger); }

/* Modal overlay */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.55);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border-color);
  padding: 2.5rem; width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
}
.modal-title {
  font-family: var(--font-display-serif); font-size: 1.6rem;
  font-weight: 400; text-transform: uppercase;
  color: var(--text-main); margin-bottom: 2rem;
}
.modal-footer {
  display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem;
}

/* Upload drop zone */
.upload-zone {
  border: 1px dashed var(--border-color);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
  margin-bottom: 1.5rem;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--text-main); background: var(--bg-secondary);
}
.upload-zone p {
  font-family: var(--font-statement); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 0.4rem;
}
.upload-zone small { font-size: 0.7rem; color: var(--text-muted); }

/* Progress bar */
.progress-track {
  height: 2px; background: var(--line-color); margin-top: 1rem; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--text-main);
  width: 0; transition: width 0.3s ease;
}

/* Admin overlay on gallery cards */
.gallery-item .item-admin,
.client-card .item-admin {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.5);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  opacity: 0; transition: opacity 0.25s ease; z-index: 5;
}
.gallery-item:hover .item-admin,
.client-card:hover .item-admin { opacity: 1; }

/* ══════════════════════════════════════════════════════
   ADMIN LAYOUT — left sidebar + content area
   All new classes use var() tokens to match the theme.
   ══════════════════════════════════════════════════════ */

.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Left Sidebar Nav ── */
.admin-nav {
  width: 220px;
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  transition: transform 0.26s ease, width 0.26s ease;
}

.admin-nav-logo {
  font-family: var(--font-display-serif);
  font-size: 1.4rem;
  color: var(--text-main);
  padding: 1.8rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--line-color);
  text-decoration: none;
  display: block;
  letter-spacing: 0.02em;
}

.admin-nav-section {
  font-family: var(--font-statement);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  padding: 1.5rem 1.5rem 0.5rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.admin-nav-link:hover {
  color: var(--text-main);
  background: var(--bg-secondary);
}
.admin-nav-link.active {
  color: var(--text-main);
  border-left-color: var(--text-main);
  background: var(--bg-secondary);
  font-weight: 500;
}
.admin-nav-icon {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  opacity: 0.7;
}
.admin-nav-link.active .admin-nav-icon { opacity: 1; }

.admin-nav-bottom {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line-color);
}
.admin-nav-bottom .btn-icon { display: none; }

/* ── Main Content ── */
.admin-content {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.26s ease;
}

.admin-topbar {
  height: 60px;
  border-bottom: 1px solid var(--line-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar-title {
  font-family: var(--font-statement);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.admin-body {
  padding: 2.5rem 2rem;
  flex: 1;
}

/* ── Admin Stats Grid ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 1100px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .admin-stats { grid-template-columns: 1fr; } }

/* ── Client Cards for Admin Gallery ── */
.admin-client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.admin-client-card {
  border: 1px solid var(--line-color);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admin-client-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.admin-client-cover {
  height: 180px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.admin-client-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.4s ease;
}
.admin-client-card:hover .admin-client-cover img { filter: grayscale(0%); }
.admin-client-cover-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display-serif);
  font-size: 3rem;
  color: var(--border-color);
}

.admin-client-info {
  padding: 1rem 1.2rem;
}
.admin-client-name {
  font-family: var(--font-display-serif);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.admin-client-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}
.admin-client-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--line-color);
}

/* ── Photo Grid in Admin ── */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.admin-photo-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  overflow: hidden;
  border: 1px solid var(--line-color);
}
.admin-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.admin-photo-item:hover img { transform: scale(1.05); }
.admin-photo-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.admin-photo-item:hover .admin-photo-overlay { opacity: 1; }
.admin-photo-event {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.3rem 0.5rem;
  background: rgba(0,0,0,0.6);
  font-family: var(--font-statement);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
}

/* ── Event Tag Pills ── */
.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.event-tag {
  font-family: var(--font-statement);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}
.event-tag:hover, .event-tag.active {
  background: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
}

/* ── Admin Page Header ── */
.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-color);
}
.admin-page-title {
  font-family: var(--font-display-serif);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-main);
}
.admin-page-sub {
  font-family: var(--font-statement);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ── Responsive Admin ── */
/* ── Sidebar topbar toggle button — desktop hidden, mobile only ── */
.sidebar-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.2s;
  line-height: 1;
}
.sidebar-toggle-btn:hover { color: var(--text-main); }

/* ── Sidebar edge-tab collapse button (desktop only) ── */
.admin-nav-collapse-btn {
  position: fixed;
  left: 220px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--line-color);
  border-left: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 201;
  padding: 0;
  transition: left 0.26s ease, background 0.2s, box-shadow 0.2s;
  color: var(--text-muted);
  box-shadow: 2px 0 5px rgba(0,0,0,0.07);
}
.admin-nav-collapse-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
  box-shadow: 2px 0 9px rgba(0,0,0,0.12);
}
/* CSS chevron — points LEFT (close/collapse) */
.admin-nav-collapse-chevron {
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(-135deg);
  transition: transform 0.26s ease;
  flex-shrink: 0;
  margin-right: 2px;
}
/* Collapsed: tab slides to left:0, chevron flips to point RIGHT (open) */
.admin-shell.sidebar-collapsed .admin-nav-collapse-btn { left: 0; }
.admin-shell.sidebar-collapsed .admin-nav-collapse-chevron {
  transform: rotate(45deg);
  margin-right: 0;
  margin-left: 2px;
}


/* ── Close button inside nav (visible on mobile) ── */
.admin-nav-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 0 0.25rem;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}
.admin-nav-close:hover { color: var(--text-main); }

/* Logo row: logo + close btn side by side */
.admin-nav-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-color);
  height: 60px;
  flex-shrink: 0;
}
.admin-nav-logo-row .admin-nav-logo {
  border-bottom: none;
  flex: 1;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 100%;
}

/* ── Overlay behind drawer (mobile) ── */
.admin-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 199;
}

/* ── Desktop: sidebar icon-only (collapsed) mode ── */
@media (min-width: 769px) {
  .admin-shell.sidebar-collapsed .admin-nav {
    width: 56px;
    transform: none;
    overflow: visible;
  }
  .admin-shell.sidebar-collapsed .admin-content { margin-left: 56px; }
  .admin-shell.sidebar-collapsed .admin-nav-collapse-btn { left: 56px; }

  /* Logo: hide text, show "M" */
  .admin-shell.sidebar-collapsed .admin-nav-logo {
    font-size: 0;
    padding: 0;
    justify-content: center;
  }
  .admin-shell.sidebar-collapsed .admin-nav-logo::before {
    content: 'M';
    font-family: var(--font-display-serif);
    font-size: 1.4rem;
    color: var(--text-main);
  }

  /* Hide section labels, group headers, link text */
  .admin-shell.sidebar-collapsed .admin-nav-section,
  .admin-shell.sidebar-collapsed .nav-group-hd,
  .admin-shell.sidebar-collapsed .nav-link-text { display: none; }

  /* Force all group bodies visible — show every icon regardless of section collapse */
  .admin-shell.sidebar-collapsed .nav-group-body { display: block !important; }

  /* Centre icons */
  .admin-shell.sidebar-collapsed .admin-nav-link {
    justify-content: center;
    padding: 0.85rem 0;
    position: relative;
    border-left: 2px solid transparent;
  }
  .admin-shell.sidebar-collapsed .admin-nav-link.active {
    border-left-color: var(--text-main);
  }

  /* Tooltip */
  .admin-shell.sidebar-collapsed .admin-nav-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    padding: 5px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line-color);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 300;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.12);
  }
  .admin-shell.sidebar-collapsed .admin-nav-link[data-tooltip]:hover::after { opacity: 1; }

  /* Badge → small dot */
  .admin-shell.sidebar-collapsed .nav-badge {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    min-width: unset;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
  }

  /* Bottom buttons: icon-only squares */
  .admin-shell.sidebar-collapsed .admin-nav-bottom {
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .admin-shell.sidebar-collapsed .admin-nav-bottom .btn {
    width: 36px !important;
    height: 36px;
    padding: 0;
    margin: 0 !important;
    font-size: 0;
    min-width: unset;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .admin-shell.sidebar-collapsed .admin-nav-bottom .btn .btn-icon { display: inline-flex; align-items: center; justify-content: center; }
}

/* ── Mobile: overlay drawer ── */
@media (max-width: 768px) {
  .admin-nav-collapse-btn { display: none; } /* edge tab is desktop only */
  .sidebar-toggle-btn { display: flex; }     /* topbar hamburger on mobile */
  .admin-nav {
    width: 240px;
    min-height: 100vh;
    position: fixed;
    top: 0; left: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    border-right: 1px solid var(--line-color);
    border-bottom: none;
    transform: translateX(-240px);
    overflow-y: auto;
  }
  .admin-shell.sidebar-open .admin-nav { transform: translateX(0); }
  .admin-shell.sidebar-open .admin-nav-overlay { display: block; }
  .admin-nav-close { display: flex; }
  .admin-nav-logo { padding: 1.25rem 1.5rem; border-bottom: none; flex: none; }
  .admin-nav-section { display: block; padding: 1rem 1.5rem 0.35rem; }
  .admin-nav-link { padding: 0.7rem 1.5rem; font-size: 0.82rem; border-left: 2px solid transparent; border-bottom: none; }
  .admin-nav-link.active { border-left-color: var(--text-main); border-bottom-color: transparent; }
  .admin-nav-bottom { padding: 1rem 1.5rem; border-top: 1px solid var(--line-color); margin-top: auto; }
  .admin-content { margin-left: 0; }
  .admin-topbar { padding: 0 1rem; }
  .admin-body { padding: 1.5rem 1rem; }
}

/* ── Admin nav: coming soon items ── */
.admin-nav-soon {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
  font-style: normal;
}
.admin-nav-soon::after {
  content: 'Soon';
  font-family: var(--font-statement);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1px 6px;
  margin-left: auto;
  color: var(--text-muted);
}

/* ── Admin nav: user badge at bottom ── */
.admin-nav-user {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-color);
}
.admin-nav-user-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
}
.admin-nav-user-role {
  font-family: var(--font-statement);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ══════════════════════════════════════════════════════
   PUBLIC PAGES — COMPREHENSIVE RESPONSIVE FIXES
   ══════════════════════════════════════════════════════ */

/* ── Hamburger button (desktop: hidden) ── */
/* ── Mobile cluster (theme toggle + hamburger) ── */
.nav-mob-cluster {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile nav breakpoint ── */
@media (max-width: 640px) {
  .nav { padding: 0 1.25rem; height: 64px; }
  .nav-logo { font-size: 1.4rem; }
  .nav-mob-cluster { display: flex; }
  .nav-theme-desktop { display: none; }

  /* Collapse links into animated slide-down drawer */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-color);
    flex-direction: column;
    padding: 0;
    gap: 0;
    z-index: 997;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-links.nav-open { max-height: 480px; }

  .nav-links li { border-bottom: 1px solid var(--line-color); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
  .nav-links a::after { display: none; }

  /* Page header: reduce top padding on phones */
  .page-header { padding: 5.5rem 1.5rem 2rem; }

  /* Gallery filters */
  .filter-container { gap: 0.75rem; padding: 0 1.25rem; margin-bottom: 2.5rem; }
  .sub-filter-container { gap: 0.5rem; padding: 0 1.25rem; }

  /* Careers */
  .application-section { padding: 2.5rem 0; }
  .roles-grid { margin-bottom: 3rem; }
}

/* ── Very small phones ── */
@media (max-width: 480px) {
  .lightbox-close { top: 1rem; right: 1.25rem; font-size: 1.2rem; }
}

/* ── SITE FOOTER ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--line-color);
  padding: 1.25rem 4rem;
  margin-top: auto;
}

.footer-logo {
  font-family: var(--font-display-serif);
  font-size: 1.1rem;
  color: var(--text-main);
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-legal a {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.footer-legal a:hover { color: var(--text-main); }

.footer-sep {
  color: var(--text-muted);
  font-size: 0.65rem;
  opacity: 0.5;
}

/* ── LEGAL PAGES ── */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 7rem 2rem 2rem;
}

.legal-page .legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-color);
}

.legal-page .legal-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.legal-page h1 {
  font-family: var(--font-display-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.legal-page .legal-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.legal-body {
  line-height: 1.9;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-body h2 {
  font-family: var(--font-statement);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 2.5rem 0 0.85rem;
}

.legal-body p {
  margin-bottom: 1rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body ul li {
  margin-bottom: 0.4rem;
}

.legal-body a {
  color: var(--text-main);
  border-bottom: 1px solid var(--line-color);
  transition: border-color 0.2s ease;
}

.legal-body a:hover {
  border-color: var(--text-main);
}

.legal-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-color);
}

.legal-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.legal-nav a:hover { color: var(--text-main); }
.legal-nav a.active { color: var(--text-main); border-bottom: 1px solid currentColor; }

/* ── WAITLIST LEGAL STRIP ── */
.wl-legal-strip {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-color);
  border-top: 1px solid var(--line-color);
  z-index: 999;
}

.wl-legal-strip a {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.wl-legal-strip a:hover { color: var(--text-main); }

.wl-legal-strip .wl-legal-sep {
  font-size: 0.55rem;
  color: var(--text-muted);
  opacity: 0.4;
}

/* ── LOGIN TNC CHECKBOX ── */
.tnc-group {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.25rem 0;
  cursor: pointer;
}

.tnc-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--text-main);
  cursor: pointer;
}

.tnc-group label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.tnc-group label a {
  color: var(--text-main);
  border-bottom: 1px solid var(--line-color);
  transition: border-color 0.2s ease;
}

.tnc-group label a:hover { border-color: var(--text-main); }

/* Footer responsive */
@media (max-width: 768px) {
  .site-footer { padding: 1.25rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .legal-page { padding: 6rem 1.5rem 1.5rem; }
}
