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

:root {
  --bg:      #ffffff;
  --surface: #f4f4f4;
  --text:    #111111;
  --muted:   #888888;
  --accent:  #6c47ff;
  --accent2: #ff6b6b;
  --border:  rgba(0,0,0,0.09);

  --r-card: 14px;
  --r-btn:  8px;

  --font-head: 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Mono', 'Consolas', monospace;

  --dur: 0.4s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); }

.phase { display: none; }
.phase.active { display: flex; }

#quiz-phase {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.quiz-wrap {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.quiz-progress { display: flex; align-items: center; gap: 1rem; }
.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  width: 20%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.45s var(--ease);
}
#progress-label {
  min-width: 36px;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

#card-stack { position: relative; min-height: 400px; }

.q-card {
  position: absolute;
  inset: 0;
  padding: 2.75rem 2.25rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease);
  pointer-events: none;
}
.q-card.visible { opacity: 1; transform: none; pointer-events: auto; }
.q-card.exit    { opacity: 0; transform: translateY(-30px) scale(0.97); }

.q-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.q-text {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.3;
}
.q-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.q-opt {
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.q-opt:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  transform: translateY(-1px);
}
.q-opt.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  color: var(--accent);
  font-weight: 600;
}

#brew-phase {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  padding: 2rem;
}
.brew-wrap { width: 100%; max-width: 560px; }
.brew-terminal {
  background: #111;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }
.term-title {
  flex: 1;
  text-align: center;
  margin-left: -4.5rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
}
.term-body {
  padding: 1.75rem 1.5rem 2.25rem;
  min-height: 260px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.95;
  color: #ddd;
}
.term-line { display: block; opacity: 0; animation: fadeline 0.18s forwards; }
.term-line .prompt { color: #6c47ff; margin-right: 0.5rem; }
.term-line .ok  { color: #28c840; }
.term-line .dim { color: rgba(255,255,255,0.28); }
@keyframes fadeline { to { opacity: 1; } }
.term-cursor {
  width: 8px; height: 1em;
  display: inline-block;
  vertical-align: text-bottom;
  background: #6c47ff;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

#site-phase {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  transition: background 0.4s, color 0.4s;
}
#site-phase.active { display: flex; }

.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 3rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s;
}
.logo {
  margin-right: auto;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
#repersonalize-btn {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
}
#repersonalize-btn:hover { background: var(--accent); color: #fff; }

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 3rem 6rem;
  min-height: 88vh;
}
.hero-copy { display: flex; flex-direction: column; }
.hero-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-heading {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.hero-heading em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.015em;
  margin-bottom: 3rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  padding: 0.9rem 2.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-btn);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}

.hero-media {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.hero-shape {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  animation: floatY 4.5s ease-in-out infinite;
  transition: all 0.4s;
}
@keyframes floatY {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(6deg); }
}

.hero-code {
  display: none;
  position: absolute;
  inset: 1.75rem;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  color: #c8c8ff;
}
.hc-bar {
  font-size: 0.68rem;
  color: rgba(108,71,255,0.6);
  letter-spacing: 0.06em;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(108,71,255,0.18);
}
.hc-bar .hc-prompt { color: var(--accent); margin-right: 0.4rem; }
.hc-body { color: #c8c8ff; }
.ck { color: #7ca0ff; }
.cv { color: #e5e5ff; }
.cs { color: #7ec987; }
.c-blink { color: var(--accent); animation: blink 1s step-end infinite; }

.marquee {
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  animation: scrollLeft 20s linear infinite;
}
.marquee-track .msep { color: var(--accent); }
@keyframes scrollLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.work-section {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.work-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}
.work-top h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.work-all { color: var(--accent); text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.work-card {
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.work-card:hover { transform: translateY(-5px); box-shadow: 0 24px 56px rgba(0,0,0,0.1); }
.work-thumb {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.work-card[data-index="0"] .work-thumb { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, var(--surface)), color-mix(in srgb, var(--accent2) 35%, var(--surface))); }
.work-card[data-index="1"] .work-thumb { background: linear-gradient(135deg, color-mix(in srgb, var(--accent2) 25%, var(--surface)), color-mix(in srgb, var(--accent) 35%, var(--surface))); }
.work-card[data-index="2"] .work-thumb { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), color-mix(in srgb, var(--accent) 38%, var(--surface))); }
.work-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  user-select: none;
}
.work-info { padding: 1.25rem 1.5rem 1.5rem; }
.work-tag {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-info h3 { font-family: var(--font-head); font-size: 1.1rem; margin-top: 0.25rem; margin-bottom: 0.4rem; }
.proj-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 6rem 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1.25rem;
}
.about-text p { color: var(--muted); line-height: 1.75; margin-bottom: 2rem; }
.about-link { color: var(--accent); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.about-stats { display: flex; gap: 3rem; }
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
}
.footer-left { display: flex; align-items: center; gap: 1.75rem; }
.footer-logo { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.18em; color: var(--accent); }
.footer-copy { font-size: 0.75rem; color: var(--muted); }
.footer-right { display: flex; gap: 1.75rem; }
.footer-right a { font-size: 0.78rem; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.footer-right a:hover { color: var(--text); }

.services-section {
  padding: 6rem 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.services-intro { max-width: 560px; margin-bottom: 4rem; }
.services-intro h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}
.services-intro p { color: var(--muted); line-height: 1.7; }
.serv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.serv-item {
  padding: 2rem 0;
  border-top: 2px solid var(--border);
  transition: border-color 0.18s;
}
.serv-item:hover { border-top-color: var(--accent); }
.serv-item h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 0.75rem; }
.serv-item p { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }

.grain-layer {
  display: none;
  position: fixed; inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.05;
  background-size: 180px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-layer {
  display: none;
  position: fixed; inset: 0;
  z-index: 500;
  pointer-events: none;
  background-size: 42px 42px;
  background-image:
    linear-gradient(rgba(108,71,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,71,255,0.09) 1px, transparent 1px);
}

.reveal .navbar,
.reveal .hero-section,
.reveal .marquee,
.reveal .work-section,
.reveal .services-section,
.reveal .about-section,
.reveal .page-footer { animation: slideUp 0.65s var(--ease) both; }
.reveal .navbar          { animation-delay: 0.00s; }
.reveal .hero-section    { animation-delay: 0.07s; }
.reveal .marquee         { animation-delay: 0.14s; }
.reveal .work-section    { animation-delay: 0.21s; }
.reveal .services-section{ animation-delay: 0.28s; }
.reveal .about-section   { animation-delay: 0.35s; }
.reveal .page-footer     { animation-delay: 0.42s; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

body[data-vibe="minimal"] .hero-shape {
  width: 220px; height: 220px;
  background: none;
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 40px color-mix(in srgb, var(--accent) 8%, transparent),
              0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}
body[data-vibe="minimal"] .serv-item { padding-top: 2.5rem; }

body[data-vibe="bold"] {
  --font-head: 'Impact', 'Arial Black', sans-serif;
  --font-body: 'Arial', Helvetica, sans-serif;
  --r-card: 0px;
  --r-btn:  0px;
  --border: rgba(0,0,0,0.15);
}
body[data-vibe="bold"] .hero-section {
  grid-template-columns: 1fr;
  max-width: 100%;
  min-height: 90vh;
  padding: 9rem 5rem 7rem;
  background: #111111;
  border-bottom: 5px solid var(--accent);
  align-content: end;
}
body[data-vibe="bold"] .hero-media { display: none; }
body[data-vibe="bold"] .hero-copy { max-width: 900px; }
body[data-vibe="bold"] .hero-tag { color: var(--accent); letter-spacing: 0.25em; }
body[data-vibe="bold"] .hero-heading {
  font-size: clamp(4rem, 8.5vw, 8rem);
  color: #ffffff;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
body[data-vibe="bold"] .hero-heading em { color: var(--accent); font-style: normal; }
body[data-vibe="bold"] .hero-sub { color: rgba(255,255,255,0.4); font-size: 0.95rem; }
body[data-vibe="bold"] .btn-ghost { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
body[data-vibe="bold"] .btn-ghost:hover { border-color: #fff; background: transparent; color: #fff; }
body[data-vibe="bold"] .btn-primary { box-shadow: 4px 4px 0 #000; }
body[data-vibe="bold"] .navbar { border-bottom: 3px solid var(--text); }
body[data-vibe="bold"] .work-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
body[data-vibe="bold"] .work-thumb { height: 280px; }
body[data-vibe="bold"] .work-card { border: 2px solid var(--text); transition: transform 0.15s, box-shadow 0.15s; }
body[data-vibe="bold"] .work-card:hover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--text); }
body[data-vibe="bold"] .work-num { font-size: 6rem; opacity: 0.12; }
body[data-vibe="bold"] .work-info h3 { font-size: 1.2rem; }
body[data-vibe="bold"] .serv-grid { grid-template-columns: 1fr 1fr; gap: 0; }
body[data-vibe="bold"] .serv-item {
  padding: 2.5rem 2rem;
  border: 2px solid var(--text);
  border-top-width: 5px;
  margin: -1px -1px 0 0;
}
body[data-vibe="bold"] .serv-item:hover { border-top-color: var(--accent); }
body[data-vibe="bold"] .serv-item h3 { font-size: 1.2rem; }
body[data-vibe="bold"] .about-section { border-top: 3px solid var(--text); }
body[data-vibe="bold"] .stat-num { font-size: 4.5rem; line-height: 0.9; }
body[data-vibe="bold"] .page-footer { border-top: 3px solid var(--text); }

body[data-vibe="cyberpunk"] {
  --font-head: var(--font-mono);
  --font-body: var(--font-mono);
  --r-card: 2px;
  --r-btn:  2px;
  --border: rgba(108,71,255,0.25);
}
body[data-vibe="cyberpunk"] .hero-section {
  max-width: 100%;
  padding: 7rem 6rem 6rem;
  gap: 3rem;
  background: #06060e;
  border-bottom: 1px solid rgba(108,71,255,0.5);
}
body[data-vibe="cyberpunk"] .hero-copy * { color: #e0e0ff; }
body[data-vibe="cyberpunk"] .hero-tag { color: var(--accent); letter-spacing: 0.28em; font-size: 0.68rem; }
body[data-vibe="cyberpunk"] .hero-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
  text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent);
}
body[data-vibe="cyberpunk"] .hero-heading em { color: var(--accent); font-style: normal; text-shadow: 0 0 30px var(--accent); }
body[data-vibe="cyberpunk"] .hero-sub { color: rgba(200,200,255,0.5); }
body[data-vibe="cyberpunk"] .hero-shape { display: none; }
body[data-vibe="cyberpunk"] .hero-code { display: flex; }
body[data-vibe="cyberpunk"] .hero-media { background: #0c0c18; border-color: rgba(108,71,255,0.25); height: 360px; }
body[data-vibe="cyberpunk"] .navbar { background: #06060e; border-bottom-color: rgba(108,71,255,0.4); }
body[data-vibe="cyberpunk"] .logo { text-shadow: 0 0 18px var(--accent); letter-spacing: 0.3em; }
body[data-vibe="cyberpunk"] .nav-links a { color: rgba(200,200,255,0.45); }
body[data-vibe="cyberpunk"] .nav-links a:hover { color: var(--accent); }
body[data-vibe="cyberpunk"] .marquee { background: #06060e; border-color: rgba(108,71,255,0.3); }
body[data-vibe="cyberpunk"] .work-grid { grid-template-columns: 1fr; gap: 0; }
body[data-vibe="cyberpunk"] .work-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-radius: 0;
  border: none;
  border-left: 3px solid var(--accent);
  border-bottom: 1px solid rgba(108,71,255,0.12);
}
body[data-vibe="cyberpunk"] .work-card:first-child { border-top: 1px solid rgba(108,71,255,0.12); }
body[data-vibe="cyberpunk"] .work-card:hover { transform: none; box-shadow: none; background: rgba(108,71,255,0.04); }
body[data-vibe="cyberpunk"] .work-thumb { height: 150px; border-radius: 0; }
body[data-vibe="cyberpunk"] .work-num { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(108,71,255,0.5); }
body[data-vibe="cyberpunk"] .work-info h3 { font-size: 0.95rem; letter-spacing: 0.04em; }
body[data-vibe="cyberpunk"] .serv-grid { grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(108,71,255,0.2); }
body[data-vibe="cyberpunk"] .serv-item {
  background: #06060e;
  border-top: none;
  padding: 2rem 1.75rem;
}
body[data-vibe="cyberpunk"] .serv-item::before {
  content: '> ' attr(data-num);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}
body[data-vibe="cyberpunk"] .serv-item:hover { background: rgba(108,71,255,0.06); }
body[data-vibe="cyberpunk"] .grid-layer { display: block; }
body[data-vibe="cyberpunk"] .stat-num { text-shadow: 0 0 22px var(--accent); }

.blob {
  display: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 600px; height: 600px;
  top: -150px; left: -150px;
  opacity: 0.45;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  animation: blobDrift 14s ease-in-out infinite;
}
.blob-2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  opacity: 0.4;
  background: color-mix(in srgb, var(--accent2) 35%, transparent);
  animation: blobDrift 18s ease-in-out infinite reverse;
}
.blob-3 {
  width: 350px; height: 350px;
  top: 45%; left: 40%;
  opacity: 0.3;
  background: color-mix(in srgb, var(--accent) 25%, white);
  animation: blobDrift 11s ease-in-out infinite 3s;
}
@keyframes blobDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(40px,-50px) scale(1.06); }
  70%     { transform: translate(-25px,30px) scale(0.94); }
}

body[data-vibe="aesthetic"] {
  --font-head: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --r-card: 28px;
  --r-btn: 99px;
  --border: rgba(255,255,255,0.25);
}
body[data-vibe="aesthetic"] .blob { display: block; }
body[data-vibe="aesthetic"] .hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  padding: 8rem 4rem 7rem;
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse 90% 80% at 50% 30%,
    color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg));
}
body[data-vibe="aesthetic"] .hero-copy { align-items: center; max-width: 680px; }
body[data-vibe="aesthetic"] .hero-media { display: none; }
body[data-vibe="aesthetic"] .hero-cta { justify-content: center; }
body[data-vibe="aesthetic"] .hero-heading {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
body[data-vibe="aesthetic"] .hero-heading em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body[data-vibe="aesthetic"] .hero-sub { font-size: 1.05rem; }
body[data-vibe="aesthetic"] .navbar {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  border-bottom-color: rgba(255,255,255,0.2);
}
body[data-vibe="aesthetic"] .work-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
body[data-vibe="aesthetic"] .work-thumb { height: 300px; }
body[data-vibe="aesthetic"] .work-card {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
body[data-vibe="aesthetic"] .serv-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
body[data-vibe="aesthetic"] .serv-item {
  border-top: none;
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid rgba(255,255,255,0.3);
}
body[data-vibe="aesthetic"] .serv-item:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

body[data-mode="dark"] {
  --bg:      #111111;
  --surface: #1c1c1c;
  --text:    #eeeeee;
  --muted:   #777777;
  --border:  rgba(255,255,255,0.08);
}
body[data-mode="dark"][data-vibe="bold"] .work-card { border-color: var(--text); }
body[data-mode="dark"][data-vibe="bold"] .work-card:hover { box-shadow: 8px 8px 0 var(--text); }
body[data-mode="dark"][data-vibe="bold"] .serv-item { border-color: var(--text); }
body[data-mode="dark"][data-vibe="bold"] .about-section { border-top-color: var(--text); }

body[data-color="violet"]  { --accent: #6c47ff; --accent2: #ff6b9d; }
body[data-color="rose"]    { --accent: #e11d48; --accent2: #fb923c; }
body[data-color="emerald"] { --accent: #059669; --accent2: #0891b2; }
body[data-color="amber"]   { --accent: #d97706; --accent2: #dc2626; }

body[data-motion="subtle"] { --dur: 0.15s; }
body[data-motion="subtle"] .hero-shape    { animation-duration: 9s; }
body[data-motion="subtle"] .marquee-track { animation-duration: 35s; }
body[data-motion="subtle"] .blob          { animation-duration: 25s; }
body[data-motion="slow"]   { --dur: 1.1s; }
body[data-motion="slow"]   .hero-shape    { animation-duration: 10s; }
body[data-motion="slow"]   .marquee-track { animation-duration: 50s; }
body[data-motion="none"] *, body[data-motion="none"] *::before, body[data-motion="none"] *::after {
  animation: none !important;
  transition-duration: 0.01ms !important;
}

body[data-typo="compact"] { font-size: 13px; line-height: 1.35; }
body[data-typo="compact"] .hero-section  { padding: 4rem 3rem 3rem; min-height: 65vh; }
body[data-typo="compact"] .hero-heading  { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 0.9rem; }
body[data-typo="compact"] .hero-sub      { margin-bottom: 1.75rem; }
body[data-typo="compact"] .work-section,
body[data-typo="compact"] .services-section,
body[data-typo="compact"] .about-section { padding: 3.5rem 3rem; }
body[data-typo="compact"] .work-thumb    { height: 180px; }
body[data-typo="compact"] .work-grid     { gap: 1rem; }
body[data-typo="compact"] .serv-grid     { gap: 1.5rem; }
body[data-typo="compact"] .serv-item     { padding: 1.25rem 0; }

body[data-typo="relaxed"] { font-size: 18px; line-height: 1.95; }
body[data-typo="relaxed"] .hero-section  { padding: 9rem 3rem 8rem; min-height: 92vh; }
body[data-typo="relaxed"] .hero-heading  { font-size: clamp(3rem, 5.5vw, 5rem); margin-bottom: 2rem; line-height: 1.08; }
body[data-typo="relaxed"] .hero-sub      { font-size: 1.15rem; margin-bottom: 3.5rem; }
body[data-typo="relaxed"] .work-section,
body[data-typo="relaxed"] .services-section,
body[data-typo="relaxed"] .about-section { padding: 9rem 3rem; }
body[data-typo="relaxed"] .work-thumb    { height: 300px; }
body[data-typo="relaxed"] .serv-grid     { gap: 3.5rem; }

body[data-typo="wide"] { font-size: 16px; letter-spacing: 0.04em; line-height: 1.9; }
body[data-typo="wide"] .hero-sub     { letter-spacing: 0.08em; }
body[data-typo="wide"] .about-text p { max-width: 480px; }
body[data-typo="wide"] .proj-desc    { letter-spacing: 0.02em; }
body[data-typo="wide"] .serv-item p  { max-width: 220px; }

@media (max-width: 900px) {
  .serv-grid { grid-template-columns: 1fr 1fr; }
  body[data-vibe="cyberpunk"] .work-card  { grid-template-columns: 1fr; }
  body[data-vibe="cyberpunk"] .work-thumb { height: 200px; }
}
@media (max-width: 768px) {
  .hero-section  { grid-template-columns: 1fr; padding: 4rem 1.5rem 3rem; min-height: auto; gap: 2.5rem; }
  .hero-media    { height: 260px; }
  .work-section  { padding: 4rem 1.5rem; }
  .work-grid     { grid-template-columns: 1fr; }
  .services-section { padding: 4rem 1.5rem; }
  .serv-grid     { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 2.5rem; }
  .navbar        { padding: 1rem 1.5rem; }
  .nav-links     { display: none; }
  .page-footer   { flex-direction: column; gap: 1rem; padding: 1.5rem; text-align: center; }
  body[data-vibe="bold"] .hero-section      { padding: 4rem 1.5rem 3rem; }
  body[data-vibe="bold"] .hero-heading      { font-size: clamp(3rem, 10vw, 5rem); }
  body[data-vibe="cyberpunk"] .hero-section { padding: 4rem 1.5rem 3rem; }
  body[data-vibe="aesthetic"] .hero-section { padding: 5rem 1.5rem 4rem; }
}
