/* ============================================================
   Corvellin Studio — Design System
   Tokens sourced from vibebuildsmedia.com (live CSS, verified)
   ============================================================ */

:root {
  --paper:    #F4F1EA;
  --surface:  #EFEAE0;
  --edge:     #E6DECF;
  --ink:      #15110C;
  --ink-2:    #1E1812;
  --gold:     #B59257;
  --gold-soft:#C8A86B;
  --muted:    #9A9286;
  --body:     #6F685C;
  --bg:       var(--paper);
  --text:     var(--ink);
  --text-dim: var(--body);
  --accent:   var(--gold);
  --accent-bright: var(--gold-soft);
  --line:     var(--edge);
  --charcoal: var(--ink-2);
  --serif:    'Instrument Serif', serif;
  --sans:     'Schibsted Grotesk', sans-serif;
  --mono:     'JetBrains Mono', monospace;
  --space:    'Space Grotesk', sans-serif;
  --maxw:     1280px;
  --cursor-mix: multiply;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: clip;
  transition: background 0.4s ease, color 0.4s ease;
}
::selection { background: var(--gold); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 64px; }
@media (max-width: 680px) { .wrap { padding: 0 20px; } }
.wrap-wide {
  max-width: 100%;
  padding-left: max(5vw, calc((100vw - 1280px) / 2));
  padding-right: max(5vw, calc((100vw - 1280px) / 2));
  overflow: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 0.96; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7.4vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 5.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: 1.25rem; line-height: 1.3; }
p { text-wrap: pretty; }
.serif { font-family: var(--serif); }
.it { font-style: italic; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #856838;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: #856838; display: inline-block; flex-shrink: 0; }
.dark .eyebrow { color: var(--gold); }
.dark .eyebrow::before { background: var(--gold); }
.final-cta .eyebrow { color: var(--gold); }
.final-cta .eyebrow::before { background: var(--gold); display: none; }

/* ---- Focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px;
}

/* ---- Custom cursor ---- */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: var(--cursor-mix);
}
#cursor-dot { width: 6px; height: 6px; background: var(--gold); transition: transform 0.15s ease; }
#cursor-ring { width: 34px; height: 34px; border: 1px solid var(--gold); transition: transform 0.18s ease, width 0.25s ease, height 0.25s ease, opacity 0.25s ease; }
.cursor-grow #cursor-ring { width: 64px; height: 64px; opacity: 0.6; }
@media (hover: none), (pointer: coarse) { #cursor-dot, #cursor-ring { display: none; } }

/* Cursor-follow gold glow */
#cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 540px; height: 540px;
  pointer-events: none; z-index: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(181,146,87,0.14), rgba(181,146,87,0) 68%);
  transition: opacity 0.5s ease; will-change: transform; opacity: 0;
}
@media (hover: none), (pointer: coarse) { #cursor-glow { display: none; } }

/* ---- Scroll progress ---- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); z-index: 9998; width: 0%; pointer-events: none; }
#scrollProgress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg,var(--gold),var(--gold-soft)); z-index: 9998; pointer-events: none; }

/* ---- Loader ---- */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hide { opacity: 0; visibility: hidden; }
#loader svg { width: 120px; height: 90px; }
#loader .wordmark { font-family: var(--serif); color: var(--paper); letter-spacing: 0.3em; font-size: 0.85rem; text-transform: uppercase; opacity: 0.85; }
.wing-draw { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.boot-bar { width: min(220px, 50vw); height: 1.5px; background: rgba(244,241,234,0.14); overflow: hidden; border-radius: 2px; margin-top: 4px; }
.boot-bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: bootFill 0.8s cubic-bezier(0.4,0,0.2,1) 0.15s forwards; }
@keyframes bootFill { to { transform: scaleX(1); } }

/* ---- Navigation ---- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
header.scrolled {
  background: rgba(21,17,12,0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(244,241,234,0.1);
}
nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 64px; }
@media (max-width: 900px) { nav { padding: 18px 24px; } }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem; color: var(--paper); }
.logo svg { width: 26px; height: 20px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-size: 0.94rem; color: rgba(244,241,234,0.78); transition: color 0.25s; position: relative; }
.nav-links a:hover { color: var(--paper); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
@media (max-width: 900px) { .nav-links { display: none; } }
.nav-right { display: flex; align-items: center; gap: 14px; }
.theme-toggle { width: 38px; height: 38px; border: 1px solid rgba(244,241,234,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.3s; color: var(--paper); }
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle svg { width: 16px; height: 16px; stroke: var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 25px; height: 2px; background: var(--paper); border-radius: 2px; transition: 0.3s; }
@media (max-width: 900px) { .nav-toggle { display: flex; } }
.nav-links.mobile-open { display: flex; flex-direction: column; position: fixed; inset: 82px 0 0; background: var(--ink); z-index: 99; padding: 40px 24px; gap: 6px; }
.nav-links.mobile-open a { font-family: var(--serif); font-size: 2rem; color: var(--paper); padding: 11px 0; border-bottom: 1px solid rgba(244,241,234,0.1); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-family: var(--sans); font-weight: 600; font-size: 0.94rem; border-radius: 999px; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; border: 1px solid transparent; }
.btn-primary, .btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-primary:hover, .btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost, .btn-outline { background: transparent; color: var(--paper); border-color: rgba(244,241,234,0.32); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }
.btn-light-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(21,17,12,0.28); border-radius: 999px; }
.btn-light-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---- Sections ---- */
section { padding: 120px 0; position: relative; }
@media (max-width: 680px) { section { padding: 72px 0; } }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { margin-top: 16px; }
.section-head p { color: var(--body); margin-top: 18px; font-size: 1.06rem; line-height: 1.6; }
.dark, section.dark { background: var(--ink); color: var(--paper); }
.dark .section-head p, .dark p.lead, .dark p.sub { color: rgba(244,241,234,0.66); }
.alt, section.alt { background: var(--surface); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2,0.7,0.2,1), transform 0.8s cubic-bezier(0.2,0.7,0.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Hero ---- */
.hero { padding: 148px 0 96px; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-bg-wing { position: absolute; right: -5%; top: 50%; transform: translateY(-50%); width: 50vw; max-width: 760px; opacity: 0.08; z-index: 0; }
.hero-bg-wing path { stroke: var(--gold); }
.hero-grain { position: absolute; inset: 0; opacity: 0.03; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,241,234,0.7); border: 1px solid rgba(244,241,234,0.2); border-radius: 999px; padding: 9px 18px; margin-bottom: 30px; }
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(181,146,87,0.55); } 70% { box-shadow: 0 0 0 12px rgba(181,146,87,0); } 100% { box-shadow: 0 0 0 0 rgba(181,146,87,0); } }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: 0.96; margin: 22px 0 26px; color: var(--paper); }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero p.lead { font-size: 1.18rem; color: rgba(244,241,234,0.66); max-width: 520px; margin-bottom: 38px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Word-split reveal — smooth clean fade without text shaking */
.split .wi { display: inline-block; opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.split.in .wi { opacity: 1; transform: none; }
h1.split, h2.split { transition: none; transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .split .wi { opacity: 1 !important; transform: none !important; } }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 90px; padding-top: 40px; border-top: 1px solid rgba(244,241,234,0.14); position: relative; z-index: 1; }
.stat .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 0.9; }
.stat .label { font-family: var(--mono); font-size: 0.72rem; color: rgba(244,241,234,0.6); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 760px) { .stats-strip { grid-template-columns: repeat(2,1fr); } }

/* Float orbs */
.float3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; perspective: 900px; }
.float3d > * { position: absolute; will-change: transform, opacity; transform-style: preserve-3d; }
.f-orb { border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(200,168,107,0.5), rgba(181,146,87,0.12) 58%, transparent 72%); }
.f-orb.f1 { width: 150px; height: 150px; left: 62%; top: 14%; animation: drift1 11s ease-in-out infinite alternate; }
.f-orb.f2 { width: 66px; height: 66px; left: 72%; bottom: 22%; animation: drift2 9s ease-in-out infinite alternate; }
.f-glyph { font-family: var(--serif); font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(200,168,107,0.55); line-height: 1; }
.f-glyph.f3 { font-size: 120px; left: 68%; top: 50%; animation: drift2 13s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate3d(0,-14px,40px) rotateX(8deg) rotateY(-6deg); } to { transform: translate3d(10px,16px,-30px) rotateX(-6deg) rotateY(9deg); } }
@keyframes drift2 { from { transform: translate3d(-8px,12px,-20px) rotateY(10deg) rotate(-4deg); } to { transform: translate3d(12px,-18px,50px) rotateY(-12deg) rotate(5deg); } }
@media (max-width: 1024px) { .float3d { display: none; } }
@media (prefers-reduced-motion: reduce) { .float3d { display: none; } }

/* ---- Logos marquee ---- */
.logos-section { padding: 48px 0; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); overflow: hidden; background: var(--surface); }
.dark .logos-section { background: transparent; border-color: rgba(244,241,234,0.12); }
.marquee-track { display: inline-flex; animation: scroll-left 28s linear infinite; }
.logos-section:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item { font-family: var(--space); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--muted); opacity: 0.7; white-space: nowrap; padding: 0 40px; transition: opacity 0.3s, color 0.3s; }
.logo-item:hover { opacity: 1; color: var(--ink); }

/* ---- Services ---- */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }
.service-card, .svc { border: 1px solid rgba(21,17,12,0.12); border-radius: 16px; padding: 32px; background: var(--paper); min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1); position: relative; overflow: hidden; }
.service-card:hover, .svc:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 30px 60px -34px rgba(21,17,12,0.35); }
.service-card .idx, .svc .num { font-family: var(--mono); font-size: 0.8rem; color: #856838; margin-bottom: 16px; }
.service-card h3, .svc h3 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 9px; line-height: 1.1; }
.service-card p, .svc p { font-size: 0.94rem; color: var(--body); line-height: 1.55; }
.service-card .link { font-size: 0.8rem; color: #856838; letter-spacing: 0.05em; }
.svc-arrow, .hover-arrow { position: absolute; top: 28px; right: 28px; font-size: 1.1rem; color: var(--muted); transition: all 0.35s ease; opacity: 0; transform: translate(-6px, 6px); }
.service-card:hover .hover-arrow, .svc:hover .svc-arrow { opacity: 1; transform: none; color: var(--gold); }
.svc.dark { background: var(--ink); }
.svc.dark h3 { color: var(--paper); }
.svc.dark p { color: rgba(244,241,234,0.7); }

/* ---- Pillars / value props ---- */
.pillars, .diff-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 36px; margin-top: 40px; }
@media (max-width: 900px) { .pillars, .diff-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .pillars, .diff-grid { grid-template-columns: 1fr; } }
.pillar svg { width: 30px; height: 30px; stroke: #856838; margin-bottom: 22px; }
.diff .ic { width: 54px; height: 54px; border-radius: 13px; background: var(--surface); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: #856838; }
.diff .ic svg { width: 24px; height: 24px; }
.diff .lbl { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #856838; margin-bottom: 10px; }
.pillar h4, .diff h4 { font-family: var(--space); font-weight: 600; font-size: 1.15rem; margin-bottom: 12px; line-height: 1.3; letter-spacing: normal; font-style: normal; }
.pillar p, .diff p { font-size: 0.94rem; color: var(--body); line-height: 1.55; }

/* ---- Portfolio grid ---- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }
.pf-card { border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 4/5; cursor: pointer; transition: transform 0.4s ease; }
.pf-card:hover { transform: translateY(-6px); }
.pf-media { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1); }
.pf-card:hover .pf-media { transform: scale(1.06); }
.pf-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21,17,12,0.88) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.pf-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.pf-overlay h3 { color: var(--paper); font-size: 1.35rem; margin-bottom: 6px; }
.pf-overlay .result { font-family: var(--mono); font-size: 0.78rem; color: var(--gold-soft); letter-spacing: 0.06em; }

/* ---- Horizontal gallery ---- */
.hc-row-container { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--gold) var(--edge); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-x; padding-bottom: 16px; }
.hc-row-container:active, .hc-row-container.is-dragging { cursor: grabbing !important; }
.hc-row { display: flex; gap: 22px; width: max-content; padding: 8px 4px 16px 4px; }
.hc-card { width: 320px; height: 420px; flex-shrink: 0; background: var(--paper); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), border-color 0.35s ease, box-shadow 0.35s ease; cursor: pointer; }
.hc-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 30px 60px -24px rgba(21,17,12,0.25); }
.hc-card-media { height: 220px; width: 100%; position: relative; overflow: hidden; background: var(--surface); }
.hc-card-media svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.hc-card-content { padding: 22px 20px; display: flex; flex-direction: column; flex: 1; }
.hc-tag { align-self: flex-start; margin-bottom: 12px; }
.hc-title { font-size: 1.4rem; font-weight: 400; color: var(--ink); line-height: 1.2; }
.hc-result { margin-top: auto; font-family: var(--mono); font-size: 0.82rem; color: var(--gold); letter-spacing: 0.03em; padding-top: 14px; border-top: 1px solid var(--edge); }
.drag-hint-label { display: flex; align-items: center; gap: 8px; animation: pulse-hint 3s infinite ease-in-out; }
@keyframes pulse-hint { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ---- Type chip ---- */
.type-chip, .tag-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: rgba(181,146,87,0.1); border: 1px solid rgba(181,146,87,0.3); border-radius: 999px; padding: 5px 12px; }

/* ---- Comparison table ---- */
.comparison-table-wrapper { border-radius: 20px; overflow: hidden; border: 1px solid rgba(21,17,12,0.12); background: var(--paper); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--gold) var(--edge); box-shadow: 0 12px 60px rgba(21,17,12,0.08); }
.comparison-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.comparison-table thead tr { background: var(--surface); border-bottom: 1px solid var(--edge); }
.comparison-table th { padding: 20px 24px; text-align: left; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--body); font-weight: 400; white-space: nowrap; }
.comparison-table th.highlight { color: var(--ink); background: var(--gold); font-weight: 600; }
.comparison-table tbody tr { border-bottom: 1px solid var(--edge); transition: background 0.2s ease; }
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: rgba(181,146,87,0.04); }
.comparison-table td { padding: 20px 24px; font-size: 0.9rem; color: var(--body); vertical-align: middle; }
.comparison-table td.feature-title { font-family: var(--serif); font-size: 1rem; color: var(--ink); font-style: italic; font-weight: 400; white-space: nowrap; border-right: 1px solid var(--edge); }
.comparison-table td.highlight { background: rgba(181,146,87,0.08); color: var(--ink); font-weight: 600; }
.comparison-table .check { color: var(--gold); font-size: 1rem; margin-right: 5px; font-weight: 700; }
.comparison-table .cross { color: var(--muted); font-size: 0.9rem; margin-right: 5px; opacity: 0.5; }
.compare-note { text-align: center; margin-top: 24px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--body); opacity: 0.7; }
.stagger-row { opacity: 0; transform: translateX(-18px); transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1); }
.comparison-table-wrapper.in .stagger-row:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.comparison-table-wrapper.in .stagger-row:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.comparison-table-wrapper.in .stagger-row:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.comparison-table-wrapper.in .stagger-row:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.35s; }
.comparison-table-wrapper.in .stagger-row:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.45s; }
.comparison-table-wrapper.in .stagger-row:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.55s; }

/* ---- Testimonials masonry ---- */
.testi-grid, .quotes { columns: 3; column-gap: 18px; }
@media (max-width: 1024px) { .testi-grid, .quotes { columns: 2; } }
@media (max-width: 640px) { .testi-grid, .quotes { columns: 1; } }
.testi-card, .quote { break-inside: avoid; border: 1px solid var(--edge); border-radius: 16px; padding: 28px; background: var(--paper); margin-bottom: 18px; transition: border-color 0.3s ease; }
.testi-card:hover, .quote:hover { border-color: var(--gold); }
.testi-card blockquote, .quote .q { font-size: 1rem; line-height: 1.65; color: var(--ink); margin-bottom: 20px; font-style: italic; }
.quote.big .q { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; }
.testi-who, .quote .by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar, .quote .av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--edge); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.75rem; color: var(--body); flex-shrink: 0; }
.testi-who .name, .quote .nm { font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.testi-who .role, .quote .ro { font-size: 0.75rem; color: var(--body); margin-top: 2px; }
.testi-video-play { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-top: 16px; cursor: pointer; }
.play-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s ease; }
.play-icon::after { content: ''; border-left: 10px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.testi-video-play:hover .play-icon { transform: scale(1.1); }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; background: var(--paper); transition: all 0.35s ease; display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 20px 50px -24px rgba(21,17,12,0.25); }
.blog-card .thumb { height: 200px; background: var(--surface); border-bottom: 1px solid var(--edge); }
.blog-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .cat { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #856838; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.25; }
.blog-card p { font-size: 0.9rem; color: var(--body); line-height: 1.55; flex: 1; }
.blog-card .meta { display: flex; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--edge); font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
.team-card { text-align: center; }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--surface); border: 2px solid var(--edge); display: flex; align-items: center; justify-content: center; font-family: var(--space); font-size: 1.5rem; font-weight: 700; color: var(--body); margin: 0 auto 16px; }
.team-card h4 { font-size: 1.1rem; margin-bottom: 4px; font-style: normal; letter-spacing: 0; }
.team-card p { font-size: 0.85rem; color: var(--body); }

/* ---- Industry chips ---- */
.industry-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.industry-chip { font-family: var(--sans); font-weight: 500; font-size: 1rem; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(21,17,12,0.16); background: var(--paper); transition: all 0.3s ease; cursor: default; }
.industry-chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-3px); }

/* ---- Wordmark ticker ---- */
.wordmark-strip { overflow: hidden; background: var(--ink); padding: 36px 0; border-top: 1px solid rgba(244,241,234,0.08); }
.wordmark-track { display: flex; width: max-content; animation: wm-scroll 46s linear infinite; }
.wordmark-track span { font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 5.5vw, 5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(244,241,234,0.3); white-space: nowrap; padding-right: 56px; }
.wordmark-track span b { font-style: normal; font-weight: 400; color: var(--gold); -webkit-text-stroke: 0; }
@keyframes wm-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wordmark-track { animation: none; } }

/* ---- Lightbox ---- */
.case-study-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; }
.case-study-lightbox.active { opacity: 1; visibility: visible; }
.cs-lightbox-backdrop { position: absolute; inset: 0; background: rgba(13,10,7,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cs-lightbox-panel { position: relative; z-index: 1; background: var(--paper); border: 1px solid var(--edge); border-radius: 20px; max-width: 640px; width: 100%; overflow: hidden; box-shadow: 0 60px 120px -40px rgba(0,0,0,0.5); transform: scale(0.94) translateY(20px); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.case-study-lightbox.active .cs-lightbox-panel { transform: scale(1) translateY(0); }
.cs-lightbox-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--edge); color: var(--ink); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; }
.cs-lightbox-close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cs-lightbox-media { height: 220px; width: 100%; position: relative; overflow: hidden; background: var(--surface); }
.cs-lightbox-body { padding: 30px; }
.cs-lightbox-body h2 { color: var(--ink); margin-bottom: 8px; font-size: 1.8rem; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--edge); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; cursor: pointer; font-size: 1.05rem; font-weight: 500; transition: color 0.25s ease; }
.faq-q:hover { color: var(--gold); }
.faq-q::after { content: '+'; font-family: var(--mono); font-size: 1.4rem; color: var(--gold); transition: transform 0.3s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding-bottom: 24px; color: var(--body); line-height: 1.7; }

/* ---- Forms ---- */
input, textarea, select { width: 100%; padding: 14px 18px; background: var(--paper); border: 1px solid var(--edge); border-radius: 10px; color: var(--ink); font-family: var(--sans); font-size: 0.94rem; transition: border-color 0.3s ease; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--muted); }
label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body); display: block; margin-bottom: 6px; }
textarea { min-height: 120px; resize: vertical; }

/* ---- Page hero ---- */
.page-hero { padding: 160px 0 80px; background: var(--ink); color: var(--paper); }
.page-hero .breadcrumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(244,241,234,0.5); margin-bottom: 20px; text-transform: uppercase; }
.page-hero .breadcrumb a { color: rgba(244,241,234,0.5); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--paper); margin-bottom: 24px; }
.page-hero .lead { font-size: 1.1rem; color: rgba(244,241,234,0.7); max-width: 600px; line-height: 1.65; }
.breadcrumb { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 20px; text-transform: uppercase; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }

/* ---- Prose ---- */
.prose { max-width: 740px; font-size: 1.06rem; line-height: 1.75; color: var(--body); }
.prose h2, .prose h3 { color: var(--ink); margin: 40px 0 16px; }
.prose p { margin-bottom: 22px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 24px; margin: 32px 0; font-style: italic; color: var(--ink); font-size: 1.15rem; }
.prose a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(181,146,87,0.4); }

/* ---- Final CTA ---- */
.final-cta { text-align: center; background: var(--ink); color: var(--paper); padding: 120px 0; }
.final-cta h2 { font-size: clamp(2.4rem, 6vw, 5.5rem); color: var(--paper); margin: 20px 0 36px; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
footer { background: var(--ink-2); color: var(--paper); padding: 96px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(244,241,234,0.12); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: var(--paper); margin-bottom: 20px; }
.footer-brand p { font-size: 0.94rem; color: rgba(244,241,234,0.55); line-height: 1.6; max-width: 280px; }
.footer-col h5 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 0.94rem; color: rgba(244,241,234,0.7); margin-bottom: 13px; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; }
.footer-bottom p { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,241,234,0.45); }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(244,241,234,0.25); display: flex; align-items: center; justify-content: center; color: rgba(244,241,234,0.7); transition: all 0.3s ease; }
.social-row a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.social-row a svg { width: 14px; height: 14px; }
.newsletter-input { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.newsletter-input input { flex: 1; min-width: 180px; background: rgba(244,241,234,0.07); border: 1px solid rgba(244,241,234,0.2); border-radius: 999px; padding: 11px 18px; color: var(--paper); font-size: 0.88rem; }
.newsletter-input input::placeholder { color: rgba(244,241,234,0.45); }
.newsletter-input input:focus { border-color: var(--gold); outline: none; }
.newsletter-input button { background: var(--gold); color: var(--ink); border: none; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.newsletter-input button:hover { background: var(--gold-soft); transform: translateY(-1px); }
.newsletter-status { font-family: var(--mono); font-size: 0.72rem; }

/* ---- Utility ---- */
#back-to-top { position: fixed; bottom: 32px; right: 32px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; box-shadow: 0 8px 24px -8px rgba(21,17,12,0.3); }
#back-to-top.show { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--gold-soft); transform: translateY(-4px); }
#back-to-top svg { width: 18px; height: 18px; stroke: var(--ink); }
#whatsapp-btn { position: fixed; bottom: 90px; right: 32px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3); transition: transform 0.3s ease; }
#whatsapp-btn:hover { transform: translateY(-4px); }
#whatsapp-btn svg { width: 26px; height: 26px; fill: white; }
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45; }
.hero, section, footer { position: relative; z-index: 1; }
.tilt-card { transform-style: preserve-3d; will-change: transform; }
.btn-magnetic { will-change: transform; }
.reveal { transition-delay: var(--reveal-delay, 0ms); }


/* ---- Enhanced Typography & Paragraphs ---- */
p {
  font-family: var(--sans);
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.68;
  text-wrap: pretty;
  max-width: 68ch;
}
p.lead, p.sub {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--body);
  max-width: 60ch;
}
.dark p, .dark p.lead, .dark p.sub {
  color: rgba(244,241,234,0.72);
}

/* ---- Explore All Work Overlay (.workall) ---- */
.workall {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--paper);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto; overscroll-behavior: contain;
}
.workall.open { opacity: 1; visibility: visible; }
.workall-bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px clamp(20px,5vw,64px);
  background: rgba(244,241,234,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}
.workall-bar h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); font-weight: 400; color: var(--ink); }
.workall-x {
  appearance: none; border: 1px solid var(--edge);
  background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 10px 22px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.3s ease;
}
.workall-x:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.workall-grid {
  columns: 3; column-gap: 24px;
  padding: 44px clamp(20px, 5vw, 64px) 90px;
}
@media (max-width: 1024px) { .workall-grid { columns: 2; } }
@media (max-width: 640px) { .workall-grid { columns: 1; } }

.workall-grid .pf-card {
  break-inside: avoid;
  margin-bottom: 24px;
  aspect-ratio: 4/3;
  width: 100%;
}

/* Modal Cascade Entrance Animation */
.case-study-lightbox.active .cs-lightbox-panel {
  animation: modalCascade 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes modalCascade {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Animated Portfolio Collage (vibebuilds vertical scrolling grid) ---- */
.portfolio-collage-wrap {
  position: relative;
  width: 100%;
  margin-top: 48px;
}
.portfolio-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  height: 640px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
@media (max-width: 900px) {
  .portfolio-collage { grid-template-columns: repeat(2, 1fr); height: 500px; }
}
@media (max-width: 600px) {
  .portfolio-collage { grid-template-columns: 1fr; height: auto; mask-image: none; -webkit-mask-image: none; }
}

.collage-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
}
.collage-col:nth-child(1) { animation: colScrollUp 32s linear infinite; }
.collage-col:nth-child(2) { animation: colScrollDown 38s linear infinite; }
.collage-col:nth-child(3) { animation: colScrollUp 35s linear infinite; }
.portfolio-collage:hover .collage-col { animation-play-state: paused; }

@keyframes colScrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes colScrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.collage-card {
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--edge);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.collage-card:hover {
  transform: scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 24px 60px -20px rgba(21,17,12,0.35);
}
.collage-card .media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
}
.collage-card:hover .media { transform: scale(1.06); }
.collage-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(21,17,12,0.88) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; color: var(--paper); z-index: 2;
}
.collage-card .tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 6px;
}
.collage-card h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--paper); margin-bottom: 4px; }
.collage-card .metric { font-family: var(--mono); font-size: 0.78rem; color: var(--gold); letter-spacing: 0.04em; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hc-row-container { overflow-x: visible; cursor: default !important; }
  .hc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); width: 100%; }
  .hc-card { width: 100%; }
  .drag-hint-label { display: none; }
  .stagger-row { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .float3d { display: none; }
  .wordmark-track { animation: none; }
  .workall { transition: none; }
  .collage-col { animation: none !important; }
}

/* ---- Portfolio Category Filter Tabs ---- */
.portfolio-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.pf-filter-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: 24px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-filter-btn:hover {
  border-color: var(--line-gold);
  color: var(--paper);
}
.pf-filter-btn.active {
  background: var(--gold);
  color: #0d0c0a;
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(201, 162, 76, 0.35);
}

/* ---- Card Mouse Spotlight Glow ---- */
.service-card, .cs-card, .price-card, .pf-card, .testi-card, .form-panel {
  position: relative;
  overflow: hidden;
}
.service-card::before, .cs-card::before, .price-card::before, .pf-card::before, .testi-card::before, .form-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), rgba(201, 162, 76, 0.12), transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.service-card:hover::before, .cs-card:hover::before, .price-card:hover::before, .pf-card:hover::before, .testi-card:hover::before, .form-panel:hover::before {
  opacity: 1;
}

/* ---- Enhanced Contact Form Styling ---- */
.form-container {
  max-width: 780px;
  margin: 0 auto;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.tab:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}
.tab.active {
  color: var(--gold);
  background: rgba(201, 162, 76, 0.12);
  border: 1px solid var(--line-gold);
}
.form-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}
.form-panel.active {
  display: block;
  animation: modalCascade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.form-panel .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-panel .field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-panel input, .form-panel select, .form-panel textarea {
  background: rgba(18, 18, 20, 0.8);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.98rem;
  transition: all 0.25s ease;
  outline: none;
}
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(201, 162, 76, 0.25);
  background: rgba(26, 26, 30, 0.95);
}
.form-panel button.submit {
  width: 100%;
  padding: 16px 28px;
  background: var(--gold);
  color: #0d0c0a;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(201, 162, 76, 0.3);
}
.form-panel button.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 76, 0.45);
}
.status-msg {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.status-msg.success {
  display: block;
  background: rgba(125, 220, 161, 0.15);
  border: 1px solid #7DDCA1;
  color: #7DDCA1;
}
.status-msg.error {
  display: block;
  background: rgba(226, 154, 154, 0.15);
  border: 1px solid #E29A9A;
  color: #E29A9A;
}

/* ---- Interactive Expanding Accordion Showcase (Vibesbuilds style) ---- */
.work-accordion {
  display: flex;
  gap: 16px;
  height: 520px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}
.acc-card {
  flex: 1;
  min-width: 100px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.acc-card.expanded, .acc-card:hover {
  flex: 3.5;
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(201,162,76,0.15);
}
.acc-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.acc-card:hover .acc-bg {
  transform: scale(1.05);
  opacity: 0.9;
}
.acc-content {
  position: relative;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.acc-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 8px;
}
.acc-title {
  font-size: 2.2rem;
  color: var(--paper);
  margin-bottom: 12px;
  white-space: nowrap;
}
.acc-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.acc-card.expanded .acc-details, .acc-card:hover .acc-details {
  max-height: 220px;
  opacity: 1;
}
.acc-result {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201,162,76,0.15);
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.acc-desc {
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 480px;
}
.acc-collapsed-label {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center center;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text-dim);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.acc-card.expanded .acc-collapsed-label, .acc-card:hover .acc-collapsed-label {
  opacity: 0;
}

@media (max-width: 900px) {
  .work-accordion {
    flex-direction: column;
    height: auto;
  }
  .acc-card {
    min-height: 160px;
  }
  .acc-card.expanded, .acc-card:hover {
    min-height: 320px;
  }
  .acc-collapsed-label {
    display: none;
  }
}


/* ============================================================
   VIBESBUILDS-STYLE WORK LIST SECTION  (#work on home page)
   ============================================================ */

.work-section-vibe {
  padding: 80px 0 100px;
  background: var(--ink);
  position: relative;
  z-index: 1;
}

.vibe-work-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--paper);
  margin-bottom: 12px;
}

/* ---- The numbered project list ---- */
.vibe-work-list {
  border-top: 1px solid rgba(244,241,234,0.12);
}

/* ---- Each project row (header) ---- */
.vw-item {
  border-bottom: 1px solid rgba(244,241,234,0.10);
  overflow: hidden;
}

.vw-row {
  display: grid;
  grid-template-columns: 64px 1fr auto 48px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  transition: background 0.25s ease;
  user-select: none;
  position: relative;
}
.vw-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201,162,76,0.04);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.vw-row:hover::before { opacity: 1; }

.vw-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(201,162,76,0.5);
  padding-left: 4px;
}

.vw-meta { display: flex; flex-direction: column; gap: 4px; }
.vw-cat {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.vw-name {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: var(--paper);
  margin: 0;
  transition: color 0.25s ease;
}
.vw-item.vw-open .vw-name,
.vw-row:hover .vw-name { color: var(--gold); }

.vw-result-pill {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(201,162,76,0.10);
  border: 1px solid rgba(201,162,76,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.vw-row:hover .vw-result-pill { background: rgba(201,162,76,0.18); }

.vw-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,234,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(244,241,234,0.45);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vw-arrow svg { width: 18px; height: 18px; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.vw-row:hover .vw-arrow { border-color: var(--gold); color: var(--gold); }
.vw-item.vw-open .vw-arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(0deg); }
.vw-item.vw-open .vw-arrow svg { transform: rotate(180deg); }

/* ---- Expanding panel ---- */
.vw-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.vw-panel-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-top: 1px solid rgba(244,241,234,0.08);
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .vw-panel-inner { grid-template-columns: 1fr; }
}

/* Artwork side */
.vw-art {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.vw-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vw-art-label {
  position: relative; z-index: 2;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  width: 100%;
}
.vw-cat-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}
.vw-big-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--paper);
  line-height: 1;
  font-family: var(--serif);
}
.vw-big-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(244,241,234,0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Details side */
.vw-details {
  background: rgba(18,15,10,0.95);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vw-detail-cat {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.vw-detail-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--paper);
  margin: 0 0 14px;
}
.vw-detail-desc {
  color: rgba(244,241,234,0.6);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 100%;
}

.vw-box {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.vw-box-challenge {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--gold);
}
.vw-box-solution {
  background: rgba(125,220,161,0.05);
  border-left: 3px solid #7DDCA1;
}
.vw-box-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 700;
}
.vw-box-solution .vw-box-label { color: #7DDCA1; }
.vw-box p {
  color: rgba(244,241,234,0.7);
  font-size: 0.87rem;
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

/* Metrics row */
.vw-metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(244,241,234,0.08);
  border-bottom: 1px solid rgba(244,241,234,0.08);
  margin: 8px 0 16px;
}
.vw-metric-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--serif);
  line-height: 1;
}
.vw-metric-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244,241,234,0.5);
  margin-top: 3px;
}

/* Deliverables */
.vw-deliverables { margin-bottom: 20px; }
.vw-del-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.4);
  margin-bottom: 8px;
}
.vw-del-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vw-del-tag {
  font-size: 0.76rem;
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(244,241,234,0.12);
  border-radius: 16px;
  color: rgba(244,241,234,0.75);
}

/* CTA buttons */
.vw-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
}

/* Bottom footer row */
.vw-footer-row {
  display: flex;
  justify-content: center;
  padding-top: 60px;
}

/* ---- Animation: cascade-in when panel opens ---- */
.vw-item.vw-open .vw-details > * {
  animation: vwFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.vw-item.vw-open .vw-details > *:nth-child(1) { animation-delay: 0.05s; }
.vw-item.vw-open .vw-details > *:nth-child(2) { animation-delay: 0.1s; }
.vw-item.vw-open .vw-details > *:nth-child(3) { animation-delay: 0.15s; }
.vw-item.vw-open .vw-details > *:nth-child(4) { animation-delay: 0.2s; }
.vw-item.vw-open .vw-details > *:nth-child(5) { animation-delay: 0.25s; }
.vw-item.vw-open .vw-details > *:nth-child(6) { animation-delay: 0.3s; }
.vw-item.vw-open .vw-details > *:nth-child(7) { animation-delay: 0.35s; }

@keyframes vwFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .vw-row {
    grid-template-columns: 40px 1fr 36px;
    gap: 14px;
    padding: 20px 0;
  }
  .vw-result-pill { display: none; }
  .vw-details { padding: 24px 20px; }
}


