/* ============================================
   TECHMIXIN — Editorial Tech Aesthetic
   Palette: Porcelain + Deep Plum Ink + Brand Purple (#420098, from logo)
   ============================================ */

:root {
  --ivory: #f4f1f9;
  --ivory-2: #e9e4f1;
  --paper: #fbfafd;
  --ink: #181028;
  --ink-2: #2a2040;
  --muted: #6e6880;
  --line: rgba(24, 16, 40, 0.15);
  --accent: #b78cff;       /* light lavender — pops on dark surfaces */
  --accent-warm: #420098;  /* brand purple, sampled from logo */
  --warm: #420098;         /* alias used by sub.css */
  --violet: #6a2ce0;
  --cream: #f3ecff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max: 1400px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-weight: 400;
}

/* Grain overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
}

/* Cursor beacon */
.cursor-beacon {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  will-change: transform;
  display: none;
}
@media (hover:hover) { .cursor-beacon { display: block; } }
.cursor-beacon.grow {
  width: 42px;
  height: 42px;
  mix-blend-mode: normal;
  background: var(--ink);
}

/* ============ Navigation ============ */
/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(244, 241, 249, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo-mark {
  color: var(--accent-warm);
  transform: rotate(0);
  display: inline-block;
  transition: transform 0.4s ease;
  font-size: 16px;
}
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo-dot { color: var(--accent-warm); }
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}
.logo:hover .logo-img { transform: scale(1.03); }
.logo-img-footer { height: 52px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 100px;
  transition: background 0.2s ease;
  position: relative;
}
.nav-links a:not(.nav-cta):not(.nav-pill):hover {
  background: var(--ivory-2);
}
.nav-pill {
  background: var(--ink);
  color: var(--ivory) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.nav-pill .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.nav-cta {
  background: var(--accent);
  color: var(--ink) !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { background: var(--ink); color: var(--accent) !important; }
.nav-cta span { transition: transform 0.2s ease; }
.nav-cta:hover span { transform: translateX(4px); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: all 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
}

/* ============ Typography helpers ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 24px;
}
.eyebrow-light { color: rgba(244, 241, 249, 0.6); }

.mono-small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.section {
  padding: 120px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.section-head {
  margin-bottom: 80px;
  position: relative;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 18ch;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-warm);
}
.section-link {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.section-link:hover { color: var(--accent-warm); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary .arrow { transition: transform 0.25s ease; }
.btn-primary:hover .arrow { transform: translateX(6px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--ivory);
}

.btn-light {
  background: var(--accent);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--ivory);
  color: var(--ink);
}
.btn-light .arrow { transition: transform 0.25s ease; }
.btn-light:hover .arrow { transform: translateX(6px); }

.btn-large { padding: 20px 32px; font-size: 17px; }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.link-underline:hover { color: var(--accent-warm); gap: 14px; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -160px;
  background: radial-gradient(circle, rgba(183, 140, 255, 0.3) 0%, transparent 70%);
  animation: auroraDrift 18s ease-in-out infinite;
}
.hero::after {
  width: 460px;
  height: 460px;
  bottom: -160px;
  right: 8%;
  background: radial-gradient(circle, rgba(66, 0, 152, 0.14) 0%, transparent 70%);
  animation: auroraDrift 24s ease-in-out infinite reverse;
}
@keyframes auroraDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.hero-ticker {
  display: flex;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 60px;
  overflow: hidden;
  white-space: nowrap;
  animation: scrollX 45s linear infinite;
}
@keyframes scrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ivory-2);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--ink-2);
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #28c76f;
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8.5vw, 136px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 60px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: wordRise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.05s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.1s; }
.hero-title .line:nth-child(1) .word:nth-child(3) { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.25s; }
.hero-title .line:nth-child(2) .word:nth-child(3) { animation-delay: 0.3s; }
.hero-title .line:nth-child(3) .word:nth-child(1) { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) .word:nth-child(2) { animation-delay: 0.4s; }
.hero-title .line:nth-child(3) .word:nth-child(3) { animation-delay: 0.45s; }
.hero-title .line:nth-child(3) .word:nth-child(4) { animation-delay: 0.5s; }
.hero-title .line:nth-child(4) .word:nth-child(1) { animation-delay: 0.55s; }
.hero-title .line:nth-child(4) .word:nth-child(2) { animation-delay: 0.6s; }
.hero-title .line:nth-child(4) .word:nth-child(3) { animation-delay: 0.65s; }

@keyframes wordRise {
  to { opacity: 1; transform: translateY(0); }
}
.hero-title .italic {
  font-style: italic;
  color: var(--accent-warm);
  font-weight: 400;
}
.hero-title .underline {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 22%;
  background-position: 0 88%;
  padding: 0 4px;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: flex-end;
  max-width: 1100px;
}
.hero-lead p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 48ch;
  line-height: 1.55;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.hero-sigil {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 440px;
  height: 440px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.hero-sigil svg {
  animation: slowSpin 90s linear infinite;
}
@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

/* ============ Marquee ============ */
.marquee {
  background: var(--ink);
  color: var(--ivory);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 40px;
  align-items: center;
  white-space: nowrap;
  animation: scrollX 35s linear infinite;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:not(.sep) { font-style: italic; }
.marquee-track .sep {
  color: var(--accent);
  font-size: 24px;
  font-style: normal;
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text .lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  color: var(--ink);
}
.about-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 55ch;
}
.about-card {
  background: var(--ink);
  color: var(--ivory);
  padding: 36px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}
.about-card-head, .about-card-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 241, 249, 0.5);
}
.about-card-head { margin-bottom: 28px; }
.about-card-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 241, 249, 0.15);
}
.leader { margin-bottom: 22px; }
.leader:last-of-type { margin-bottom: 0; }
.leader-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.leader-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.leader-contact {
  font-size: 13px;
  color: rgba(244, 241, 249, 0.65);
  margin-top: 6px;
}

/* ============ Services ============ */
.service-list { border-top: 1px solid var(--ink); }
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 40px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: padding 0.3s ease;
}
.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: 0;
}
.service-row:hover::before { transform: translateY(0); }
.service-row:hover { color: var(--ivory); padding-left: 20px; padding-right: 20px; }
.service-row > * { position: relative; z-index: 1; }

.sr-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s ease;
}
.service-row:hover .sr-num { color: var(--accent); }

.sr-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.sr-tags {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.service-row:hover .sr-tags { color: rgba(244, 241, 249, 0.6); }
.sr-arrow {
  font-size: 24px;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
.service-row:hover .sr-arrow { transform: rotate(0deg); }

/* Floating "Explore" chip that follows the cursor over service rows */
.service-float {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 100px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: transform;
}
.service-float.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.service-row-ai .sr-title { color: var(--accent-warm); }
.service-row-ai:hover .sr-title { color: var(--accent); }
.badge-new {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--accent);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  vertical-align: middle;
  margin-left: 12px;
  font-weight: 600;
}

/* ============ AI Block ============ */
.ai-block {
  background: var(--ink);
  color: var(--ivory);
  max-width: none;
  padding: 140px var(--gutter);
  position: relative;
  overflow: hidden;
  margin: 0;
}
.ai-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ai-orb {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  opacity: 0.45;
  filter: blur(40px);
  animation: float 10s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-40px, 60px); }
}
.ai-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,241,249,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,249,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.ai-content {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.ai-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ivory);
  margin-bottom: 28px;
  max-width: 16ch;
}
.ai-title em {
  font-style: italic;
  color: var(--accent);
}
.ai-lead {
  font-size: 19px;
  color: rgba(244, 241, 249, 0.75);
  max-width: 60ch;
  line-height: 1.55;
  margin-bottom: 80px;
}
.ai-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}
.ai-pillar {
  padding: 32px 28px;
  background: rgba(244, 241, 249, 0.04);
  border: 1px solid rgba(244, 241, 249, 0.1);
  border-radius: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.ai-pillar:hover {
  background: rgba(244, 241, 249, 0.08);
  transform: translateY(-6px);
}
.ai-pillar-num {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 18px;
}
.ai-pillar h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.ai-pillar p {
  font-size: 14px;
  color: rgba(244, 241, 249, 0.7);
  line-height: 1.55;
}

/* ============ Portfolio ============ */
.portfolio { padding-bottom: 140px; }
.nda-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-top: 20px;
}
.work-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 56px;
}
.ws-item {
  background: var(--ivory);
  padding: 36px 28px;
  transition: background 0.3s ease;
}
.ws-item:hover { background: var(--paper); }
.ws-item .stat-num {
  font-size: clamp(44px, 5vw, 72px);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
}
.case {
  text-decoration: none;
  color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.3, 0, 0.2, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.case:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(24, 16, 40, 0.2);
}
.case-1 { grid-column: span 4; }
.case-2 { grid-column: span 2; }
.case-3 { grid-column: span 2; }
.case-4 { grid-column: span 2; }
.case-5 { grid-column: span 2; }

.case-media {
  aspect-ratio: 16/9;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  background: rgba(24,16,40,0.85);
  color: var(--ivory);
  padding: 6px 12px;
  border-radius: 100px;
  z-index: 3;
}

/* Case 1 — E-commerce */
.case-media-1 {
  background: linear-gradient(135deg, #ffe4d6 0%, #ffb399 100%);
  color: #5c2a1a;
}
.case-visual { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.case-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.6;
  animation: blobBreathe 9s ease-in-out infinite;
}
@keyframes blobBreathe {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.18) translate(10px, -8px); }
}
.blob-1 { width: 160px; height: 160px; background: #ff6b35; top: 10%; left: 15%; }
.blob-2 { width: 120px; height: 120px; background: #ffd6a5; bottom: 10%; right: 20%; animation-delay: -4.5s; }
.case-letter {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 240px);
  font-style: italic;
  font-weight: 400;
  color: #5c2a1a;
  position: relative;
  z-index: 2;
  line-height: 0.8;
}

/* Case 2 — Healthcare network */
.case-media-2 {
  background: linear-gradient(135deg, #e8f4ff 0%, #b3dbff 100%);
  color: #1a3a5c;
}

/* Case 3 — Field-force EMS */
.case-media-3 {
  background: linear-gradient(135deg, #f0f4e8 0%, #c9dfa0 100%);
  color: #2a4a1a;
}

/* Case 4 — Astrology */
.case-media-4 {
  background: linear-gradient(135deg, #fff4e6 0%, #ffd9a8 100%);
  color: #5c3a1a;
}
.astro-wheel { width: 100%; height: 100%; animation: slowSpin 60s linear infinite; }
.astro-wheel svg { width: 100%; height: 100%; }

/* Case 5 — Link streams */
.case-media-5 {
  background: var(--ink);
  color: var(--accent);
}
.stream-stack { display: flex; flex-direction: column; gap: 10px; width: 80%; }
.link-card {
  background: rgba(244,241,249,0.08);
  border: 1px solid rgba(244,241,249,0.15);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ivory);
  display: flex;
  gap: 10px;
  align-items: center;
}
.link-card span { color: var(--accent); }

.case-meta { padding: 24px 28px 28px; }
.case-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}
.case-meta h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.case-meta p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 14px;
}
.case-stack {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ============ Clients ============ */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.client-item {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s ease;
  position: relative;
}
.client-item::after {
  content: '◆';
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 11px;
  color: var(--accent-warm);
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.client-item:hover::after {
  opacity: 1;
  transform: none;
}
.client-item:hover { background: var(--cream); }
.client-item strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.client-item small {
  font-size: 13px;
  color: var(--muted);
}

/* ============ Testimonials ============ */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.3, 0, 0.2, 1), box-shadow 0.35s ease;
}
.quote-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -28px rgba(24, 16, 40, 0.25);
}
.quote-card::after {
  content: '◆';
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 12px;
  color: var(--accent-warm);
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.quote-card:hover::after {
  opacity: 1;
  transform: none;
}
.quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  line-height: 0.6;
  color: var(--accent-warm);
  margin-bottom: 18px;
}
.quote-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 1;
  margin-bottom: 28px;
}
.quote-who {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.quote-who strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 4px;
}

/* ============ Process ============ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process-item {
  background: var(--paper);
  padding: 36px 32px;
  position: relative;
  transition: background 0.3s ease;
}
.process-item:hover { background: var(--ivory-2); }
.process-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-warm);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.process-item h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.process-item p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 20px;
}
.process-dur {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

/* ============ CTA ============ */
.cta-block {
  background: var(--accent);
  max-width: none;
  margin: 0;
  padding: 140px var(--gutter);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '◆';
  position: absolute;
  font-size: 800px;
  opacity: 0.04;
  top: -200px;
  right: -200px;
  font-family: var(--font-display);
}
.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-mark {
  font-size: 36px;
  margin-bottom: 32px;
  color: var(--ink);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.cta-title em {
  font-style: italic;
  color: var(--accent-warm);
}
.cta-sub {
  font-size: 19px;
  max-width: 55ch;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 100px var(--gutter) 40px;
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  bottom: -0.32em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(110px, 20vw, 300px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 249, 0.08);
  pointer-events: none;
  user-select: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(244,241,249,0.15);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.footer-logo .logo-mark { color: var(--accent); }
.footer-logo .logo-dot { color: var(--accent); }
.footer-tag {
  color: rgba(244,241,249,0.55);
  font-size: 15px;
  line-height: 1.6;
  max-width: 38ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244,241,249,0.5);
  font-weight: 500;
  margin-bottom: 22px;
}
.footer-col a {
  display: block;
  color: var(--ivory);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-loc {
  color: rgba(244,241,249,0.5);
  font-size: 13px;
  margin-top: 18px;
  line-height: 1.6;
}
.footer-bar {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(244,241,249,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-motto { color: var(--accent); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero-bottom { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .ai-pillars { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .case-1, .case-2, .case-3, .case-4, .case-5 { grid-column: span 1; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .work-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 40px 1fr 30px; gap: 16px; }
  .sr-tags { display: none; }
}
/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent);
  color: var(--ink);
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .section { padding: 80px var(--gutter); }
  .hero { padding-top: 120px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; padding: 18px; }
  .stat-num { font-size: 36px; }
  .ai-pillars { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bar { flex-direction: column; text-align: center; }
  .hero-sigil { display: none; }
  .marquee-track { font-size: 28px; }
  .section-link { position: static; display: inline-block; margin-top: 20px; }
}
