*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e0e0f;
  --surface: #141416;
  --panel: #1a1a1d;
  --border: rgba(255,255,255,0.08);
  --accent: #7c5cfc;
  --accent-dim: rgba(124,92,252,0.15);
  --text: #f0eeeb;
  --muted: rgba(240, 238, 235, 0.406);
  --traffic-red: #ff5f57;
  --traffic-yellow: #febc2e;
  --traffic-green: #28c840;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Page centering wrapper */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 32px 20px 80px;
  max-width: 1140px;
  margin: 0 auto;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(124,92,252,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── OUTER WRAPPER ── */
.site-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 120px rgba(0,0,0,0.7),
    0 8px 32px rgba(0,0,0,0.5);
  overflow: visible;
  /* push content down so glass nav doesn't cover titlebar */
  padding-top: 0;
}

/* ── TITLE BAR (original, inside site-frame) ── */
.titlebar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  user-select: none;
}

.traffic-lights { display: flex; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: var(--traffic-red); }
.dot.yellow { background: var(--traffic-yellow); }
.dot.green  { background: var(--traffic-green); }

.titlebar-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.titlebar-spacer { width: 52px; }

/* Custom cursor only when primary input is fine (mouse/trackpad) */
@media (pointer: fine) {
  * { cursor: none !important; }
}
@media (pointer: coarse) {
  * { cursor: auto !important; }
  #cursor {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .site-frame .titlebar,
  .site-frame.dragging .titlebar {
    cursor: default !important;
  }
}

/* ── FLOATING GLASS NAV ── */
.glass-nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 100;
  width: 100%;
  padding: 0;
  pointer-events: none;
  align-self: stretch;
}

/* The actual glass pill */
.glass-nav {
  pointer-events: all;
  position: relative;
  border-radius: 14px;
  user-select: none;
  perspective: 900px;
  transform-style: preserve-3d;
  box-shadow:
    /* subtle white overlay glow — mix-blend-mode not available on box-shadow,
       but we fake "overlay" by layering a soft white spread with low opacity
       over a dark shadow so it brightens without color cast */
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 18px 4px rgba(255,255,255,0.06),
    /* float shadow */
    0 12px 40px rgba(0,0,0,0.55),
    0 4px 12px rgba(0,0,0,0.38),
    /* inset edge highlights: warm bottom, cool top */
    inset 0 -1px 0 rgba(220,100,30,0.0),   /* hidden at rest, JS fades in on shake */
    inset 0  1px 0 rgba(255,255,255,0.25);
  transition: box-shadow 0.4s ease;
}

/* Frosted white glass base — color only bleeds into corners, center is clean */
.glass-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background:
    /* corner color bleeds — very subtle at rest, palette: red/orange, yellow, white, teal/blue */
    radial-gradient(ellipse at   0%   0%, rgba(210, 55, 20, 0.07) 0%, transparent 38%),   /* top-left: red */
    radial-gradient(ellipse at 100%   0%, rgba(20, 180, 255, 0.08) 0%, transparent 38%),  /* top-right: teal */
    radial-gradient(ellipse at   0% 100%, rgba(230,130, 20, 0.06) 0%, transparent 35%),   /* bot-left: orange */
    radial-gradient(ellipse at 100% 100%, rgba(160,170,255, 0.07) 0%, transparent 35%),   /* bot-right: periwinkle */
    /* center: clean frosted white */
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 60%, transparent 100%),
    linear-gradient(160deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(14px) saturate(140%) brightness(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(140%) brightness(1.08);
  pointer-events: none;
  z-index: 0;
}

/* Directional edge lighting — each edge driven independently by JS vars */
.glass-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 1;
  /* 4 edge glows: left, right, top, bottom — each fades in when tilted toward that edge */
  box-shadow:
    inset  1px 0 6px  0 rgba(230, 100,  20, var(--el, 0)),   /* left  — warm orange */
    inset -1px 0 6px  0 rgba( 40, 140, 255, var(--er, 0)),   /* right — cool blue  */
    inset  0  1px 6px 0 rgba(255, 255, 255, var(--et, 0)),   /* top   — white      */
    inset  0 -1px 6px 0 rgba(255, 200, 100, var(--eb, 0));   /* bot   — warm gold  */
  /* outer rim always faintly visible */
  outline: 1px solid rgba(255,255,255,0.07);
  outline-offset: -1px;
}

/* Corner color overlays — shown via opacity driven by JS during shake */
.glass-nav-corners {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 2;
  opacity: var(--corner-opacity, 0);
  transition: opacity 0.08s ease-out;
  background:
    radial-gradient(ellipse at   0%   0%, rgba(210, 55,  20, 0.75) 0%, transparent 40%),  /* red — × js opacity peaks at ~0.22 */
    radial-gradient(ellipse at 100%   0%, rgba(20, 180, 255, 0.80) 0%, transparent 40%),  /* teal */
    radial-gradient(ellipse at   0% 100%, rgba(230, 130,  20, 0.70) 0%, transparent 38%), /* orange */
    radial-gradient(ellipse at 100% 100%, rgba(40,  80,  255, 0.75) 0%, transparent 38%); /* blue */
}

/* shimmer follows mouse — very subtle warm/cool, no green */
.glass-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(circle 160px at var(--mx,50%) var(--my,50%),
    rgba(255,220,180,0.10) 0%,
    rgba(200,210,255,0.06) 50%,
    transparent 70%);
}
.glass-nav:hover .glass-shimmer { opacity: 1; }

/* children above pseudo-elements */
.glass-nav > * { position: relative; z-index: 4; }

/* ── NAV inner layout ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

/* shake is applied via JS inline style, no keyframe needed */

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: 'Young Serif', serif;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 13px !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  padding: 80px 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(124,92,252,0.10);
  border: 1px solid rgba(124,92,252,0.22);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: rgba(169,147,253,0.7);
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: rgba(169,147,253,0.7);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Young Serif', serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--text);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 13px 28px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
}

/* ── FAKE SCREEN MOCKUP ── */
.mockup-wrap {
  margin-top: 64px;
  width: 100%;
  padding: 0 36px;
}

.mockup-inner {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mockup-bar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mockup-bar .dot { width: 9px; height: 9px; }

.mockup-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 320px;
}

.mockup-sidebar {
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-item.active {
  background: var(--accent-dim);
  color: #c4b3ff;
}
.mock-item .icon {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.mockup-main {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-content: start;
}

.thumb-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

.thumb-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Young Serif', serif;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* Fake thumbnail colors */
.tc1 { background: linear-gradient(135deg, #1a1040 0%, #2d1b69 100%); }
.tc2 { background: linear-gradient(135deg, #0d1f2d 0%, #0f3460 100%); }
.tc3 { background: linear-gradient(135deg, #1a0a0a 0%, #4a1515 100%); }
.tc4 { background: linear-gradient(135deg, #0d2018 0%, #134a2c 100%); }
.tc5 { background: linear-gradient(135deg, #1e1506 0%, #4a3510 100%); }
.tc6 { background: linear-gradient(135deg, #120d1e 0%, #2a1a52 100%); }

.thumb-label {
  font-size: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}

/* ── SHARED SECTION UTILITIES ── */
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Young Serif', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 0;
}

/* ── WINDOW FRAMES (shared) ── */
.site-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 120px rgba(0,0,0,0.7),
    0 8px 32px rgba(0,0,0,0.5);
  overflow: visible;
  /* spring-back transition — only active when NOT dragging */
  transition: box-shadow 0.3s ease;
  will-change: transform;
}
/* while dragging: no transition so it follows instantly */
.site-frame.dragging {
  transition: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 60px 140px rgba(0,0,0,0.8),
    0 20px 60px rgba(0,0,0,0.6);
  z-index: 50;
  cursor: grabbing !important;
}
.site-frame .titlebar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  user-select: none;
  cursor: grab;
}
.site-frame.dragging .titlebar {
  cursor: grabbing;
}
.site-frame.closing {
  animation: windowClose 0.22s cubic-bezier(0.4,0,1,1) forwards;
  pointer-events: none;
}
.site-frame.closed {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82) translateY(-18px);
}
.site-frame.reopening {
  animation: windowOpen 0.55s cubic-bezier(0.34,1.4,0.64,1) forwards;
}

.work-section {
  padding: 48px 36px 52px;
}
.work-header { margin-bottom: 36px; }

/* × on all window close dots */
#dotCloseWork, #dotCloseBelieve {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#dotCloseWork:hover, #dotCloseBelieve:hover {
  transform: scale(1.25);
  box-shadow: 0 0 6px rgba(255,95,87,0.7);
}
#dotCloseWork::before, #dotCloseWork::after,
#dotCloseBelieve::before, #dotCloseBelieve::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 1.5px;
  background: rgba(0,0,0,0.45);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.15s;
}
#dotCloseWork::before, #dotCloseBelieve::before { transform: translate(-50%,-50%) rotate(45deg); }
#dotCloseWork::after,  #dotCloseBelieve::after  { transform: translate(-50%,-50%) rotate(-45deg); }
#dotCloseWork:hover::before, #dotCloseWork:hover::after,
#dotCloseBelieve:hover::before, #dotCloseBelieve:hover::after { opacity: 1; }

/* Gap between page blocks */
.page > * + * { margin-top: 56px; }
.page > .glass-nav-wrap { margin-top: 0; margin-bottom: -8px; } /* nav stays close to content */
#believeWindow { margin-top: 120px; }

/* ── VIDEO GRID ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.video-card:hover { transform: translateY(-3px); }
.video-thumb-inner {
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.video-title-overlay {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.video-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.video-channel {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.video-views {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  line-height: 1.2;
  flex-shrink: 0;
  white-space: nowrap;
}
.video-title-bar {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 12px 6px;
  line-height: 1.4;
}
.video-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.video-card:hover { transform: translateY(-3px); }
.video-card .video-meta { margin-top: auto; }
/* Info panel: title on top, channel + views below */
.video-info {
  background: var(--panel);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

/* ── WHAT WE DO / CASE STUDIES ── */
.what-we-do {
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 0;
}
.what-we-do .section-title { margin-bottom: 48px; }

.case-study {
  width: 100%;
  margin-bottom: 56px;
}
.case-study:last-child { margin-bottom: 0; }

.case-study-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.case-study-number {
  font-family: 'Young Serif', serif;
  font-size: 13px;
  color: var(--accent);
  opacity: 0.7;
  padding-top: 3px;
  min-width: 24px;
  letter-spacing: 0.05em;
}
.case-study-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}
.case-study-title {
  font-family: 'Young Serif', serif;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ── BRAND SHOWCASE ── */
.brand-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.brand-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.brand-wide { grid-column: span 2; }
.brand-thumbnails { grid-column: span 3; }

.brand-placeholder-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.brand-logo-block { display: flex; flex-direction: column; }
.brand-logo-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 24px 12px;
  border: 1px dashed rgba(255,255,255,0.08);
}
.placeholder-icon { font-size: 28px; opacity: 0.4; }
.placeholder-channel-name {
  font-family: 'Young Serif', serif;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.brand-palette { display: flex; gap: 8px; align-items: center; height: 48px; }
.swatch {
  flex: 1;
  height: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

.brand-type-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.type-display {
  font-family: 'Young Serif', serif;
  font-size: 40px;
  color: rgba(255,255,255,0.15);
  line-height: 1;
}
.type-name { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }

.brand-channel-art {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.06);
}
.channel-art-inner { display: flex; align-items: center; gap: 16px; }
.channel-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--muted);
  flex-shrink: 0;
}
.channel-art-name {
  font-family: 'Young Serif', serif;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.channel-art-sub { font-size: 12px; color: var(--muted); }

.brand-thumb-row { display: flex; gap: 10px; }
.brand-thumb {
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

/* ── PROCESS FLOW ── */
.process-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr;
  align-items: start;
  gap: 0 8px;
}
.process-arrow {
  color: var(--muted);
  font-size: 18px;
  padding-top: 42px;
  opacity: 0.4;
}
.process-step { display: flex; flex-direction: column; gap: 8px; }
.process-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(124,92,252,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  color: var(--accent);
}
.winner-num {
  background: rgba(40,200,120,0.15);
  border-color: rgba(40,200,120,0.35);
  color: #28c878;
}
.process-step-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}
.process-step-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.process-card-inner { padding: 16px; }

/* Research card */
.research-card { display: flex; flex-direction: column; gap: 8px; }
.research-tag {
  font-size: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--muted);
  width: fit-content;
}
.research-tag.dim { opacity: 0.5; }
.research-line {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.06);
}
.research-line.long  { width: 90%; }
.research-line.medium{ width: 65%; }
.research-line.short { width: 45%; }

/* Titles card */
.titles-card { display: flex; flex-direction: column; gap: 6px; }
.title-option {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 5px;
  color: var(--muted);
  border: 1px solid transparent;
  line-height: 1.3;
}
.title-option.dim { opacity: 0.45; }
.title-option.winner {
  background: rgba(124,92,252,0.12);
  border-color: rgba(124,92,252,0.3);
  color: var(--text);
  opacity: 1;
  font-weight: 500;
}

/* Sketches card */
.sketches-card { display: flex; flex-direction: column; gap: 6px; }
.sketch-row { display: flex; gap: 6px; }
.sketch-thumb {
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 4px;
  border: 1px solid var(--border);
  opacity: 0.35;
}
.sketch-thumb.selected {
  opacity: 1;
  border-color: rgba(124,92,252,0.5);
  box-shadow: 0 0 0 2px rgba(124,92,252,0.2);
}

/* Winner card */
.winner-card-wrap { display: flex; flex-direction: column; gap: 8px; }
.winner-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124,92,252,0.4);
  box-shadow: 0 0 0 2px rgba(124,92,252,0.15), 0 8px 24px rgba(0,0,0,0.4);
}
.winner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.winner-title-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.winner-meta { display: flex; align-items: center; gap: 6px; }
.winner-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(40,200,120,0.8);
  font-weight: 500;
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 52px 36px 60px;
}
.manifesto-inner {
  max-width: 680px;
}
.manifesto-title {
  font-family: 'Young Serif', serif;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 40px;
}
.manifesto-title em { font-style: italic; color: var(--accent); }
.manifesto-body p {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}
.manifesto-opener {
  font-size: 18px !important;
  color: var(--text) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}
.manifesto-pull {
  font-size: 18px !important;
  color: var(--text) !important;
  font-weight: 400 !important;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  font-style: italic;
  margin: 32px 0 !important;
  line-height: 1.5 !important;
}
.manifesto-staccato {
  margin: 28px 0 32px;
  padding: 22px 0 22px 24px;
  border-left: 2px solid var(--accent);
}
.manifesto-staccato p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 14px;
  font-weight: 400;
}
.manifesto-staccato p:last-child { margin-bottom: 0; }
.manifesto-turn {
  font-family: 'Young Serif', serif;
  font-size: clamp(22px, 3.2vw, 30px);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 36px 0 20px !important;
}
.manifesto-lede {
  font-size: 16px !important;
  color: var(--text) !important;
  font-weight: 500 !important;
  margin-bottom: 14px !important;
}
.manifesto-points {
  list-style: none;
  color: var(--text);
  margin: 0 0 24px;
  padding: 0 0 0 32px;
}
.manifesto-points li {
  position: relative;
  padding-left: 1.15em;
  font-size: 15px;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 10px;
  font-weight: 300;
}
.manifesto-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.manifesto-brand-block {
  margin: 36px 0 28px;
  padding: 28px 24px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.manifesto-brand-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}
.manifesto-brand-block p {
  margin-bottom: 12px !important;
  color: var(--text) !important;
  font-size: 15px;
  line-height: 1.7 !important;
}
.manifesto-brand-block p:last-child { margin-bottom: 0 !important; }
.manifesto-closer {
  margin-top: 32px !important;
  margin-bottom: 12px !important;
  font-size: 16px !important;
  color: var(--text) !important;
  font-style: italic;
  line-height: 1.65 !important;
}
.manifesto-sig-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.manifesto-sig-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.manifesto-sig {
  margin-top: 0;
  font-size: 13px;
  color: rgba(240,238,235,0.35);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ── CTA ── */
.cta-section {
  padding: 80px 36px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.cta-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(124,92,252,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-family: 'Young Serif', serif;
  font-size: clamp(32px, 4.5vw, 58px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.cta-title em { font-style: normal; color: var(--text); }
.cta-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 300;
}
.btn-cta {
  font-size: 16px !important;
  padding: 15px 36px !important;
  border-radius: 10px !important;
  display: inline-block;
}
.cta-note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(240,238,235,0.25);
  letter-spacing: 0.03em;
}

/* ── FOOTER ── */
.footer {
  width: 100%;
  border-radius: 14px;
  background: #1a1a1d;
  border: 1px solid var(--border);
}
.footer > * { position: relative; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.footer-logo-icon { width: 18px; height: 18px; }
.footer-logo-name {
  font-family: 'Young Serif', serif;
  font-size: 15px;
  color: var(--text);
}
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .page { padding: 16px 16px 60px; }
  .glass-nav-wrap { padding: 0; }
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .hero { padding: 60px 0 50px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-meta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
  }
  .video-channel {
    flex: none;
    width: 100%;
  }
  .work-section { padding: 32px 20px 40px; }
  .brand-showcase { grid-template-columns: 1fr 1fr; }
  .brand-wide { grid-column: span 2; }
  .brand-thumbnails { grid-column: span 2; }
  .process-flow { grid-template-columns: 1fr; }
  .process-arrow { display: none; }
  .what-we-do { padding: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 40px 20px 48px; }
  .cta-section { padding: 60px 0 70px; }
  .footer .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: fadeUp 0.5s ease both; }
.hero h1    { animation: fadeUp 0.5s 0.1s ease both; }
.hero-sub   { animation: fadeUp 0.5s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.5s 0.3s ease both; }
.mockup-wrap  { animation: fadeUp 0.6s 0.4s ease both; }
/* ── EASTER EGG: window close/reopen ── */

/* Red dot gets an × on hover so it's discoverable */
#dotClose {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#dotClose:hover {
  transform: scale(1.25);
  box-shadow: 0 0 6px rgba(255,95,87,0.7);
}
#dotClose::before,
#dotClose::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 1.5px;
  background: rgba(0,0,0,0.45);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.15s;
}
#dotClose::before { transform: translate(-50%,-50%) rotate(45deg); }
#dotClose::after  { transform: translate(-50%,-50%) rotate(-45deg); }
#dotClose:hover::before,
#dotClose:hover::after { opacity: 1; }

/* Closing: shrink + fade toward top-left (like macOS) */
@keyframes windowClose {
  0%   { opacity: 1; transform: scale(1)    translateY(0px);   }
  100% { opacity: 0; transform: scale(0.82) translateY(-18px); }
}

/* Reopening: spring in from slightly above */
@keyframes windowOpen {
  0%   { opacity: 0; transform: scale(0.88) translateY(-14px); }
  55%  { opacity: 1; transform: scale(1.02) translateY(3px);   } /* overshoot */
  75%  { opacity: 1; transform: scale(0.99) translateY(-1px);  }
  100% { opacity: 1; transform: scale(1)    translateY(0px);   }
}

.site-frame.closing {
  animation: windowClose 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}
.site-frame.reopening {
  animation: windowOpen 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
/* While closed, keep it hidden between animations */
.site-frame.closed {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82) translateY(-18px);
}
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  pointer-events: none;
  z-index: 999999;
  transition: width 0.15s ease, height 0.15s ease, opacity 0.2s ease;
}
#cursor svg {
  width: 100%; height: 100%;
  filter:
    drop-shadow(0 0 4px rgba(255,255,255,0.35))
    drop-shadow(0 0 10px rgba(255,255,255,0.12));
}
body.clicking #cursor svg {
  transform: scale(0.85);
  transform-origin: 0 0;
}
body.cursor-hovering #cursor {
  width: 36px; height: 36px;
}

/* ── QR EASTER EGG ── */
.work-window-wrap {
  position: relative;
  width: 100%;
}

.qr-easter-egg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.qr-easter-egg img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.qr-label {
  font-size: 16px;
}

#workWindow {
  position: relative;
}
.portfolio-subsection {
  width: 100%;
  margin-bottom: 48px;
}
.portfolio-subsection:last-child { margin-bottom: 0; }

.portfolio-subheading {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── LOGO CARDS ── */
.logo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.logo-card {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30%;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  min-height: 0;
}
.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.logo-card--dark  { background: var(--surface); }
.logo-card--light { background: #ffffff; border-color: rgba(255,255,255,0.15); }

.logo-svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}

/* ── YOUTUBE CARDS ── */
.yt-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.yt-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.yt-thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  background-clip: padding-box;
}

.yt-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.yt-meta-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  align-items: flex-start;
}

.yt-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-clip: padding-box;
}

.yt-text-block {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.yt-video-title {
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 5px;
}

.yt-channel-name {
  color: #aaa;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 2px;
}

.yt-video-stats {
  color: #aaa;
  font-size: 17px;
  line-height: 1.4;
}

/* After base .yt-card-grid — ≤860px so layout wins over repeat(2); avoids mid-word title breaks */
@media (max-width: 860px) {
  .yt-card-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .yt-video-title {
    font-size: 17px;
    line-height: 1.35;
  }
  .yt-channel-name,
  .yt-video-stats { font-size: 15px; }
  .yt-text-block {
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* ── THUMBNAIL GRID ── */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumb-grid-item {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  background-clip: padding-box;
}

@media (max-width: 700px) {
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
}
