:root {
  --bg: #08080b;
  --surface: #111116;
  --surface-2: #17171f;
  --bone: #f4efe6;
  --ink: #0d0d11;
  --muted: #9b9ca6;
  --vermilion: #ff4824;
  --iris: #c4b5fd;
  --lime: #bef264;
  --line: rgba(255, 255, 255, 0.11);
  --font-display: 'Syne', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-sans);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--bone);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

#studio-liquid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.studio-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1280px, 92vw);
  margin: 0 auto;
}

/* Custom Magnetic Cursor (desktop fine pointers only) */
.custom-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--vermilion);
  mix-blend-mode: difference;
  transition: width 0.22s ease, height 0.22s ease, background 0.22s ease, border-radius 0.22s ease;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
}

@media (pointer: fine) {
  .custom-cursor { display: flex; }
}

.custom-cursor.cursor-pill {
  width: auto;
  min-width: 112px;
  height: 36px;
  padding: 0 14px;
  background: var(--vermilion);
  mix-blend-mode: normal;
  box-shadow: 0 10px 30px rgba(255, 72, 36, 0.45);
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--vermilion);
  box-shadow: 0 0 16px var(--vermilion);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 0.52rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.22s ease;
}

.nav-links a:hover {
  color: var(--bone);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--ink);
  background: var(--bone);
  font-weight: 700;
}

.nav-cta {
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  background: var(--vermilion);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 72, 36, 0.42);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 45;
  background: rgba(8, 8, 11, 0.97);
  backdrop-filter: blur(24px);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-drawer.open { display: flex; }

.mobile-drawer a {
  padding: 1.05rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.mobile-drawer a.active {
  background: var(--bone);
  color: var(--ink);
}

/* ================= HERO & TYPOGRAPHY ================= */
.hero {
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--bone);
}

.kicker .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

.editorial-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.4vw, 5.8rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 1.2rem 0 1.4rem;
}

.editorial-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--vermilion);
  font-size: 1.08em;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0.9rem 0 1rem;
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--muted);
  max-width: 60ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 46px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary {
  background: var(--vermilion);
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(255, 72, 36, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -8px rgba(255, 72, 36, 0.72);
}

.btn-bone {
  background: var(--bone);
  color: var(--ink);
}

.btn-bone:hover {
  transform: translateY(-2px);
  background: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--bone);
}

.btn-outline:hover {
  border-color: var(--bone);
  background: rgba(255, 255, 255, 0.08);
}

/* ================= MARQUEE RIBBON ================= */
.marquee-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marquee-track span.accent {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  color: var(--vermilion);
  font-size: 1.2em;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= CARDS & ARTWORK MOCKUPS ================= */
.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.65rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.45rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.studio-card {
  background: rgba(17, 17, 22, 0.85);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.65rem;
  backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.studio-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.project-card {
  display: block;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(16, 16, 22, 0.88);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  border-color: var(--vermilion);
}

.artwork-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #121218;
}

.artwork-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .artwork-stage img,
.project-card:hover .generative-poster {
  transform: scale(1.04);
}

/* Bespoke Generative Graphic Design Artwork when no custom photo uploaded */
.generative-poster {
  width: 100%;
  height: 100%;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.generative-poster .poster-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.generative-poster .poster-orb {
  position: absolute;
  right: -10%;
  bottom: -18%;
  width: 62%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.88;
}

.palette-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.palette-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.swatch-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.swatch-chip:hover {
  transform: translateY(-2px);
  border-color: var(--bone);
}

.swatch-color {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* Before / After Interactive Comparison Slider */
.compare-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
  touch-action: pan-y;
}

.compare-layer {
  position: absolute;
  inset: 0;
}

.compare-top {
  clip-path: inset(0 50% 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--bone);
  z-index: 10;
  cursor: ew-resize;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--vermilion);
  color: #fff;
  border: 2px solid var(--bone);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Filter Pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d6d6df;
}

.input, .textarea, .select {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select option { background: #14141b; color: var(--bone); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--vermilion);
  box-shadow: 0 0 0 3px rgba(255, 72, 36, 0.16);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.badge-accent {
  border-color: rgba(255, 72, 36, 0.45);
  background: rgba(255, 72, 36, 0.14);
  color: #ff8e78;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0;
  background: rgba(5, 5, 8, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .compare-box { aspect-ratio: 4 / 3; }
  .hero .btn { width: 100%; }
}
