/* ---- Design tokens (noir palette, editorial motion, centered hero — hardcoded per design spec) ---- */
:root {
  --dark-bg: #161513;
  --dark-text: #f6f4f0;
  --muted-label: #8a8578;
  --muted-text: #b5b1a5;
  --accent: #f6f4f0;
  --field-bg: #211f1b;
  --field-border: rgba(246,244,240,0.2);
  --hero-top: rgba(10,10,10,0.6);
  --hero-bot: rgba(10,10,10,0.35);
  --heart-color: #ffffff;
  --btn-grad: linear-gradient(120deg, #c9c9c9, #ffffff 25%, #8f8f8f 50%, #ffffff 75%, #c9c9c9);

  --page-bg: #f6f4f0;
  --page-text: #161513;
  --body-copy: #3a382f;

  --marquee-dur: 24s;
  --shine-dur: 3.5s;
  --hero-dur: 0.9s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  background: var(--page-bg);
  color: var(--page-text);
  overflow-x: hidden;
}
a { color: #1a1a1a; text-decoration: none; }
a:hover { color: #6b6b6b; }
::selection { background: #1a1a1a; color: #f6f4f0; }

body.mode-legal .creator-only { display: none !important; }
body:not(.mode-legal) .legal-only { display: none !important; }

@keyframes marqueeScroll { from { transform: translateX(-50%); } to { transform: translateX(0%); } }
@keyframes heartPop {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.3); }
  20% { opacity: 1; transform: translate(-50%, -14px) scale(1.35); }
  40% { transform: translate(-50%, -20px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -90px) scale(1); }
}
@keyframes liquidShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 5vw;
  color: var(--dark-text);
  text-shadow: 0 1px 10px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8);
}
.nav-word {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: inherit;
  text-shadow: inherit;
}
.nav-links { display: flex; gap: 32px; font-size: 12px; font-weight: 500; }
.nav-links a { color: inherit; text-shadow: inherit; transition: color 0.3s ease, text-shadow 0.3s ease; }
.nav.theme-light, .nav.theme-light .nav-word { color: #161513; text-shadow: 0 1px 10px rgba(255,255,255,0.55); }

/* ---- Mode toggle ---- */
.mode-toggle {
  position: fixed;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  display: flex;
  align-items: center;
  background: rgba(22,21,19,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(246,244,240,0.18);
  border-radius: 999px;
  padding: 4px;
}
.toggle-knob {
  position: absolute;
  top: 4px; left: 100px;
  width: 96px;
  height: calc(100% - 8px);
  background: var(--accent);
  border-radius: 999px;
  transition: left 0.4s cubic-bezier(0.16,1,0.3,1);
}
body.mode-legal .toggle-knob { left: 4px; }
.toggle-btn {
  position: relative;
  z-index: 1;
  width: 96px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 9px 0;
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(246,244,240,0.55);
  transition: color 0.3s ease;
}
body:not(.mode-legal) #btn-creator { color: var(--dark-bg); }
body.mode-legal #btn-legal { color: var(--dark-bg); }

/* ---- Hero ---- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.94) translateY(30px);
  transition: opacity var(--hero-dur) cubic-bezier(0.16,1,0.3,1), transform var(--hero-dur) cubic-bezier(0.16,1,0.3,1);
}
#hero-img-creator { object-position: 50% 46%; }
#hero-img-legal { object-position: 50% 18%; }
#hero.img-in .hero-img { opacity: 1; transform: scale(1) translateY(0); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--hero-top) 0%, rgba(10,10,10,0.1) 45%, var(--hero-bot) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5vw;
}
.hero-tagline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eae7e0;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.hero-name {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(50px, 10vw, 140px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #f6f4f0;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
#hero.name-in .hero-tagline,
#hero.name-in .hero-name { opacity: 1; transform: translateY(0); }
.hero-handles {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#hero.handles-in .hero-handles { opacity: 1; transform: translateY(0); }
.hero-handles a {
  color: #f6f4f0;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(246,244,240,0.4);
  padding-bottom: 3px;
}

/* ---- About ---- */
#about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  min-height: 88vh;
}
.about-img-col { position: relative; overflow: hidden; }
.about-img-col img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.about-content { display: flex; flex-direction: column; justify-content: center; padding: 8vw 6vw; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-label);
  margin-bottom: 20px;
}
.about-content h2, .work-heading, .contact-heading {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.about-content h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.about-content p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--body-copy);
  max-width: 560px;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.about-content p.no-mb { margin-bottom: 0; }

/* ---- Stats ---- */
#stats {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 7vw 5vw;
}
.eyebrow-dark { color: var(--muted-label); margin-bottom: 36px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.stat-num {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--muted-text); margin-top: 10px; }
.legal-stat-value { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.legal-stat-label { font-size: 14px; color: var(--muted-text); margin-top: 8px; }

.marquee-wrap { border-top: 1px solid rgba(246,244,240,0.15); padding-top: 36px; }
.marquee-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 20px;
}
.marquee-mask {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marqueeScroll var(--marquee-dur) linear infinite;
}
.marquee-item { display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee-item span.name { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
.marquee-item span.dot { opacity: 0.6; font-size: 20px; color: var(--accent); }

/* ---- Work ---- */
#work { padding: 8vw 5vw 6vw; }
.work-heading { font-size: clamp(32px, 4vw, 52px); max-width: 760px; text-wrap: pretty; }
.work-row { display: flex; gap: 12px; height: 60vh; min-height: 480px; }
.work-tile {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex: 1;
  transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease, box-shadow 0.4s ease;
}
.work-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(22,21,19,0.28); }
.work-row.hovered .work-tile { flex: 0.7; }
.work-row.hovered .work-tile.active { flex: 2.4; }
.work-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease, filter 0.5s ease; }
.work-scrim { position: absolute; inset: 0; background: rgba(22,21,19,0.18); transition: background 0.4s ease; }
.work-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8), rgba(0,0,0,0));
}
.work-brand { color: #f6f4f0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.work-desc { color: #d8d5cb; font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Contact ---- */
#contact {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 8vw 5vw 6vw;
  display: flex;
  flex-direction: column;
}
.contact-heading { font-size: clamp(40px, 7vw, 96px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 40px; max-width: 900px; text-wrap: pretty; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; max-width: 1100px; }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-label);
  margin-bottom: 10px;
}
.enq-select, .enq-field {
  width: 100%;
  background: var(--field-bg);
  color: var(--dark-text);
  border: 1px solid var(--field-border);
  border-radius: 4px;
  padding: 16px 18px;
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  outline: none;
}
select.enq-select { appearance: none; -webkit-appearance: none; }
.enq-field::placeholder { color: #8a8578; }
textarea.enq-field { resize: vertical; }

.submit-wrap { position: relative; margin-top: 8px; align-self: flex-start; }
.submit-btn {
  position: relative;
  border: none;
  cursor: pointer;
  padding: 17px 40px;
  border-radius: 999px;
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #161513;
  background: var(--btn-grad);
  background-size: 250% 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 1px rgba(255,255,255,0.8);
  animation: liquidShine var(--shine-dur) linear infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
}
.submit-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 38px rgba(0,0,0,0.45), inset 0 1px 1px rgba(255,255,255,0.9); }
.heart {
  position: absolute;
  left: 50%; top: -18px;
  color: var(--heart-color);
  font-size: 64px;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
}
.heart.pop { animation: heartPop 1.5s ease forwards; }

.contact-side { display: flex; flex-direction: column; gap: 28px; }
.side-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-label); margin-bottom: 8px; }
.side-value { font-size: 12px; font-weight: 500; }
.socials { display: flex; flex-direction: column; gap: 8px; }
.socials a { color: var(--dark-text); font-size: 12px; font-weight: 500; }

.footer-row {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(246,244,240,0.15);
  padding-top: 28px;
  margin-top: 64px;
}
.copyright { color: #6f6c60; font-size: 12px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-links { gap: 20px; }
  #about { grid-template-columns: 1fr; }
  .about-img-col { height: 60vh; }
  .about-content { padding: 10vw 6vw; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .work-row { flex-direction: column; height: auto; min-height: 0; }
  .work-row .work-tile { height: 280px; flex: none !important; }
}
@media (max-width: 520px) {
  .nav { padding: 20px 6vw; }
  .nav-word { font-size: 16px; }
  .nav-links { gap: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .contact-grid { gap: 40px; }
}
