/* =========================================================
   SPIDA VISUALS — Multi-page portfolio
   Signature: Teal #1FD1A8 on deep ink #0a0e0d
   ========================================================= */

:root {
  --ink: #0a0e0d;
  --ink-2: #0f1413;
  --ink-3: #151b1a;
  --ink-4: #1d2624;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);

  --teal: #1FD1A8;
  --teal-bright: #2DEEC0;
  --teal-deep: #0fb38f;
  --teal-glow: rgba(31, 209, 168, 0.35);
  --teal-soft: rgba(31, 209, 168, 0.08);

  --text: #eef2f0;
  --text-2: #b6bfbc;
  --text-3: #6f7a76;
  --text-4: #4a534f;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 9vw, 8rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.2, 1.4, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--teal); color: var(--ink); }

main { flex: 1; }

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
}

/* =========================================================
   PAGE TRANSITION (fade-in on every page)
   ========================================================= */
.page-fade {
  animation: pageFadeIn 0.6s var(--ease-out) backwards;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: rgba(10, 14, 13, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s, background 0.3s;
}
.nav.scrolled {
  padding: 0.85rem var(--gutter);
  background: rgba(10, 14, 13, 0.92);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: var(--ink);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  font-style: italic;
  box-shadow: 0 0 24px -4px var(--teal-glow);
  transition: transform 0.5s var(--ease-bounce);
}
.nav__logo:hover .nav__logo-mark { transform: rotate(-12deg) scale(1.08); }
.nav__logo-text em { font-style: italic; color: var(--teal); font-weight: 400; }

.nav__links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  color: var(--text-2);
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active { color: var(--teal); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.4s var(--ease-out);
}
.nav__links a:hover::after { width: 100%; }
.nav__links a.active::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: var(--teal);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.nav__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px var(--teal-glow);
}
.nav__cta:hover::before { left: 100%; }

.nav__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__menu span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s;
}
.nav__menu.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__menu.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 73px 0 0 0;
  background: var(--ink);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 2rem var(--gutter);
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu a.active { color: var(--teal); }
.mobile-menu__cta { color: var(--teal) !important; border-bottom: none !important; padding-top: 1rem !important; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), background 0.2s, color 0.2s, box-shadow 0.4s, border-color 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--teal);
  color: var(--ink);
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.7s;
}
.btn--primary:hover {
  background: var(--teal-bright);
  box-shadow: 0 14px 40px -8px var(--teal-glow);
  transform: translateY(-2px);
}
.btn--primary:hover::before { left: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--outline:hover { border-color: var(--teal); background: var(--teal-soft); }
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1rem; }
.btn--xl { padding: 1.3rem 2.4rem; font-size: 1.05rem; }
.btn__play {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--teal);
  color: var(--ink);
  border-radius: 50%;
  font-size: 0.7rem;
  padding-left: 2px;
}

/* =========================================================
   COMMON: section headers, eyebrows
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.page-header {
  padding: 9rem var(--gutter) 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.page-header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.page-header__glow {
  position: absolute;
  top: 0;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.5;
  animation: floatGlow 18s ease-in-out infinite;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}
.page-title em { font-style: italic; font-weight: 300; color: var(--teal); }

.page-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-2);
  max-width: 60ch;
  line-height: 1.55;
}

.section__header {
  padding: var(--section-pad) var(--gutter) 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.section__title em { font-style: italic; font-weight: 300; color: var(--teal); }
.section__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-2);
  max-width: 56ch;
  line-height: 1.55;
}

.accent { color: var(--teal); }

/* =========================================================
   HERO (homepage)
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 73px);
  padding: 9rem var(--gutter) 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero__glow--1 {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 65%);
  opacity: 0.35;
  animation: float1 18s ease-in-out infinite;
}
.hero__glow--2 {
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--teal-deep) 0%, transparent 65%);
  opacity: 0.22;
  animation: float2 22s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -50px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 60px); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  opacity: 0.5;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__meta-line {
  width: 40px;
  height: 1px;
  background: var(--teal);
}
.hero__meta-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
  position: relative;
}
.hero__meta-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.4;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}
.hero__meta-dot { color: var(--teal); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.hero__title-line {
  display: block;
  overflow: hidden;
}
.hero__title .word {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(110%);
  animation: wordRise 0.9s var(--ease-out) forwards;
}
.hero__title-line:nth-child(1) .word:nth-child(1) { animation-delay: 0.15s; }
.hero__title-line:nth-child(1) .word:nth-child(2) { animation-delay: 0.23s; }
.hero__title-line:nth-child(2) .word:nth-child(1) { animation-delay: 0.31s; }
.hero__title-line:nth-child(2) .word:nth-child(2) { animation-delay: 0.37s; }
.hero__title-line:nth-child(2) .word:nth-child(3) { animation-delay: 0.43s; }
.hero__title-line:nth-child(2) .word:nth-child(4) { animation-delay: 0.49s; }
.hero__title-line:nth-child(3) .word:nth-child(1) { animation-delay: 0.6s; }
@keyframes wordRise {
  to { opacity: 1; transform: translateY(0); }
}
.hero__title em { font-style: italic; font-weight: 300; color: var(--teal); }
.hero__title-line.accent { color: var(--teal); font-style: italic; font-weight: 300; }

/* TYPEWRITER */
.hero__typer {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  color: var(--text-2);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  min-height: 1.5em;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1s forwards;
}
.hero__typer-prefix {
  color: var(--text-3);
  font-style: normal;
  font-weight: 500;
  font-size: 0.85em;
  letter-spacing: 0.02em;
}
.hero__typer-target { color: var(--teal); }
.hero__typer-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--teal);
  font-style: normal;
  font-weight: 300;
  animation: blink 0.7s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-2);
  max-width: 50ch;
  line-height: 1.55;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.2s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.4s forwards;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 700px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.55s forwards;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-2);
  transition: border-color 0.3s;
}
.hero__badge:hover { border-color: var(--teal); }
.hero__badge svg { color: var(--teal); }
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  overflow: hidden;
  background: var(--ink-2);
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--ink-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--ink-2), transparent); }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  color: var(--text-2);
}
.marquee:hover .marquee__track { animation-duration: 18s; }
.marquee__dot { color: var(--teal); font-style: normal; font-size: 0.7em; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   PREVIEW SECTIONS (homepage teasers)
   ========================================================= */
.preview {
  padding: var(--section-pad) var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.preview__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}
.preview__cta {
  text-align: right;
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service {
  position: relative;
  padding: 2.25rem 1.75rem;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 280px;
  transition: background 0.4s;
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--teal-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service:hover { background: var(--ink-2); }
.service:hover::before { opacity: 1; }
.service--lg {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--ink-2);
  padding: 2.75rem;
}
.service__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-4);
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}
.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}
.service:hover .service__title { color: var(--teal); }
.service--lg .service__title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin-top: 0.5rem;
}
.service--lg:hover .service__title { color: var(--text); }
.service__desc {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}
.service--lg .service__desc { font-size: 1rem; max-width: 42ch; }
.service__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}
.service__tags li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--text-2);
  font-family: var(--font-mono);
}

.service--cta {
  background: linear-gradient(135deg, var(--teal-soft), transparent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service--cta .service__title { font-size: 1.4rem; }
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap 0.3s var(--ease-out);
  position: relative;
  z-index: 1;
}
.service__link:hover { gap: 0.85rem; }

/* =========================================================
   CASES (work page)
   ========================================================= */
.work__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 var(--gutter) 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.filter {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  transition: all 0.3s var(--ease-out);
}
.filter:hover { border-color: var(--teal); color: var(--text); transform: translateY(-1px); }
.filter.active { background: var(--teal); color: var(--ink); border-color: var(--teal); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0 var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.case {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  cursor: pointer;
}
.case--featured {
  grid-column: span 2;
  grid-row: span 2;
}
.case__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-2);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.case:hover .case__media {
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(31, 209, 168, 0.2);
}
.case--featured .case__media { aspect-ratio: 16 / 10; }
.case__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
    linear-gradient(135deg, var(--ink-3), var(--ink-4));
  transition: transform 0.7s var(--ease-out);
}
.case:hover .case__placeholder { transform: scale(1.05); }
.case__placeholder[data-color="amber"] {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 180, 80, 0.5) 0%, transparent 60%),
    linear-gradient(135deg, #4a3520, var(--ink-3));
}
.case__placeholder[data-color="violet"] {
  background:
    radial-gradient(circle at 30% 70%, rgba(140, 100, 220, 0.45) 0%, transparent 60%),
    linear-gradient(135deg, #2a2240, var(--ink-3));
}
.case__placeholder[data-color="ocean"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(80, 160, 200, 0.45) 0%, transparent 60%),
    linear-gradient(135deg, #1a3040, var(--ink-3));
}
.case__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  mix-blend-mode: overlay;
}
.case__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.08) 55%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
}
.case:hover .case__shimmer {
  animation: shimmer 1.2s var(--ease-out);
}
@keyframes shimmer { to { transform: translateX(100%); } }

.case__play {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s;
  z-index: 2;
}
.case--featured .case__play { width: 60px; height: 60px; }
.case:hover .case__play { transform: scale(1.15); box-shadow: 0 0 32px -4px var(--teal-glow); }

.case__info { display: flex; flex-direction: column; gap: 0.4rem; }
.case__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.case__cat { color: var(--teal); }
.case__sep { color: var(--text-4); }
.case__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  transition: color 0.3s;
}
.case:hover .case__title { color: var(--teal); }
.case--featured .case__title { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.case__desc { color: var(--text-2); font-size: 0.92rem; line-height: 1.5; }
.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.case__tags span {
  padding: 0.25rem 0.65rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.case.hidden { display: none; }

.work__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem var(--gutter) 0;
  text-align: center;
}
.work__cta-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-2);
}

/* =========================================================
   PROCESS
   ========================================================= */
.process__list {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad);
}
.process__step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 2.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease-out);
  position: relative;
}
.process__step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(to right, var(--teal-soft), transparent);
  transition: width 0.5s var(--ease-out);
}
.process__step:hover { padding-left: 1rem; }
.process__step:hover::before { width: 100%; }
.process__step:hover .process__num { color: var(--teal); transform: scale(1.1); }
.process__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-4);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.4s, transform 0.4s var(--ease-bounce);
  min-width: 80px;
  position: relative;
  z-index: 1;
}
.process__content { position: relative; z-index: 1; }
.process__content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.process__content p { color: var(--text-2); max-width: 60ch; }
.process__time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(31, 209, 168, 0.2);
  position: relative;
  z-index: 1;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}
.about__left { position: sticky; top: 100px; align-self: start; }
.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.about__right p { color: var(--text-2); margin-bottom: 1.25rem; font-size: 1.02rem; line-height: 1.65; }
.about__pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.pillar {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-2);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.pillar:hover { border-color: rgba(31, 209, 168, 0.4); transform: translateY(-4px); }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.4s var(--ease-bounce);
}
.pillar:hover .pillar__icon { transform: rotate(-8deg) scale(1.1); }
.pillar h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.pillar p { font-size: 0.9rem; color: var(--text-2); margin: 0 !important; }

/* =========================================================
   CONTACT / FORM
   ========================================================= */
.contact__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
}
.contact__intro { position: sticky; top: 100px; align-self: start; }
.contact__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  background: var(--ink-2);
  transition: background 0.3s;
}
a.contact__detail:hover { background: var(--ink-3); }
.contact__detail-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact__detail-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.form__hidden { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.field:focus-within .field__label { color: var(--teal); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--ink-3);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5l3 3 3-3' stroke='%231FD1A8' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-2);
  cursor: pointer;
  margin-top: 0.5rem;
}
.checkbox input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; }
.checkbox a { color: var(--teal); text-decoration: underline; }
.form__note { font-size: 0.8rem; color: var(--text-3); text-align: center; margin-top: 0.5rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-pad);
}
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  transition: padding 0.3s;
}
.faq__item[open] { padding-bottom: 1.75rem; }
.faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover, .faq__item[open] summary { color: var(--teal); }
.faq__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--teal);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out);
}
.faq__icon::before { width: 14px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 14px; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__content {
  padding-top: 1rem;
  max-width: 75ch;
  animation: faqOpen 0.4s var(--ease-out);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq__content p { color: var(--text-2); line-height: 1.65; }

/* =========================================================
   FINAL CTA (homepage)
   ========================================================= */
.final-cta {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--teal-soft) 0%, transparent 50%);
  z-index: -1;
  animation: pulseBg 6s ease-in-out infinite;
}
@keyframes pulseBg {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.final-cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 2.5rem;
}
.final-cta__title em { font-style: italic; font-weight: 300; color: var(--teal); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink-2);
  padding: 4rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.footer__top {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand p {
  color: var(--text-3);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 32ch;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.footer__logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: var(--ink);
  border-radius: 8px;
  font-style: italic;
  font-weight: 700;
}
.footer__logo-text em { font-style: italic; color: var(--teal); font-weight: 400; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.footer__col a, .footer__col span {
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--teal); }
.footer__socials { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.footer__socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-out);
}
.footer__socials a:hover {
  background: var(--teal);
  color: var(--ink);
  border-color: var(--teal);
  transform: translateY(-2px);
}
.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-3);
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: var(--teal); }
.footer__kvk { font-family: var(--font-mono); }

/* =========================================================
   REVEAL ANIMATIONS (scroll-based)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu { display: flex; }
  .nav__cta { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service--lg { grid-column: span 2; grid-row: auto; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .case--featured { grid-column: span 2; grid-row: auto; }
  .about__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__left { position: static; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact__intro { position: static; }
  .preview__head { grid-template-columns: 1fr; gap: 1.5rem; }
  .preview__cta { text-align: left; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 70px; }
  .hero { padding-top: 7rem; min-height: auto; padding-bottom: 4rem; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .services-grid { grid-template-columns: 1fr; }
  .service--lg { grid-column: auto; padding: 2rem 1.5rem; }
  .service { padding: 2rem 1.5rem; min-height: auto; }
  .work__grid { grid-template-columns: 1fr; }
  .case--featured { grid-column: auto; }
  .process__step { grid-template-columns: auto 1fr; gap: 1rem; }
  .process__time { grid-column: 2; justify-self: start; }
  .process__num { font-size: 2rem; min-width: auto; }
  .about__pillars { grid-template-columns: 1fr; }
  .form { padding: 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .page-header { padding: 7rem var(--gutter) 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
}
