/* ============================================================
   ZA Portfolio — Editorial Black
   Bebas Neue headlines · Satoshi body · Brand gradient accents
   ============================================================ */

:root {
  --bg:            #080808;
  --surface:       rgba(255, 255, 255, 0.032);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --text:          #ede8de;
  --muted:         #666666;
  --accent:        #ede8de;
  --accent-dim:    rgba(237, 232, 222, 0.06);
  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.14);
  --sidebar-w:     72px;
  --max:           1240px;
  --font-hero:     "Bebas Neue", "Clash Display", Arial, sans-serif;
  --font-display:  "Clash Display", "Helvetica Neue", Arial, sans-serif;
  --font-body:     "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     "DM Mono", "Courier New", monospace;
  color-scheme: dark;
}

/* ============================================================
   RESET + BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(42px, 5.5vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(30px, 3.8vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.016em;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(20px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.010em;
  margin-bottom: 12px;
}

p { margin-top: 0; color: var(--muted); line-height: 1.75; }

/* ============================================================
   INTRO SCREEN
   ============================================================ */

.intro-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introFade 0.5s ease 1.4s forwards;
  pointer-events: none;
}

.intro-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  animation: introLogoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both,
             introLogoPulse 0.4s ease 1.0s both;
}

@keyframes introLogoIn {
  from { opacity: 0; transform: scale(0.65) rotate(-10deg); filter: blur(12px); }
  to   { opacity: 1; transform: scale(1)    rotate(0deg);   filter: blur(0);    }
}

@keyframes introLogoPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(0.9); opacity: 0; }
}

@keyframes introFade {
  to { opacity: 0; visibility: hidden; }
}

/* ============================================================
   GRAIN — animated
   ============================================================ */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.048'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.45;
  animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-4%, -8%); }
  20%  { transform: translate(-12%, 4%); }
  30%  { transform: translate(6%, -20%); }
  40%  { transform: translate(-4%, 20%); }
  50%  { transform: translate(-12%, 8%); }
  60%  { transform: translate(12%, 0%); }
  70%  { transform: translate(0%, 12%); }
  80%  { transform: translate(2%, 28%); }
  90%  { transform: translate(-8%, 8%); }
  100% { transform: translate(0, 0); }
}

/* ============================================================
   CANVAS AMBIENT BACKGROUND
   ============================================================ */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00DE55, #078C8B, #7825A0, #D60804);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
}

/* ============================================================
   CUSTOM CURSOR — ZA Logo Badge
   ============================================================ */

.custom-cursor,
.custom-cursor * { cursor: none !important; }

.za-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-200px, -200px);
  will-change: transform;
  margin: -15px 0 0 -15px;
  transition: opacity 200ms ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.za-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-200px, -200px);
  will-change: transform;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(237, 232, 222, 0.12);
  border-radius: 50%;
  margin: -26px 0 0 -26px;
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    opacity 200ms ease;
}

.za-cursor-ring.is-hovered {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-color: rgba(237, 232, 222, 0.32);
}

@media (pointer: coarse) { .za-cursor, .za-cursor-ring { display: none; } }

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 24px;
  background: rgba(8, 8, 8, 0.9);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.sidebar-brand:hover { transform: scale(1.06); }

.sidebar-brand img {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 28px;
  flex: 1;
}

.sidebar-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  color: rgba(237, 232, 222, 0.22);
  transition: color 180ms ease, background 180ms ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  color: var(--text);
  background: var(--surface-hover);
}

.sidebar-link::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.96);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(12px);
}

.sidebar-link:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sidebar-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 32px;
}

[data-page="work"]     .sidebar-link[href="./work.html"],
[data-page="about"]    .sidebar-link[href="./about.html"],
[data-page="thinking"] .sidebar-link[href="./thinking.html"],
[data-page="work"]     .bnav-item[href="./work.html"],
[data-page="about"]    .bnav-item[href="./about.html"],
[data-page="thinking"] .bnav-item[href="./thinking.html"] {
  color: var(--text);
  background: var(--surface-hover);
}

/* ============================================================
   BOTTOM NAV — MOBILE
   ============================================================ */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  background: rgba(8, 8, 8, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  color: rgba(237, 232, 222, 0.25);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.bnav-item:hover { color: var(--text); }

/* ============================================================
   SHARED WRAPPERS + FOOTER
   ============================================================ */

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px;
}

.page-eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px 42px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ============================================================
   PULSE DOT
   ============================================================ */

.pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00DE55;
  box-shadow: 0 0 0 0 rgba(0, 222, 85, 0.5);
  animation: pulse 2.4s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(0, 222, 85, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 222, 85, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(0, 222, 85, 0);   }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.button:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.button.primary {
  background: var(--text);
  color: #080808;
  border-color: transparent;
  font-weight: 600;
}

.button.primary:hover {
  background: #ffffff;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CHARACTER SPLIT ANIMATION
   ============================================================ */

.ln-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(55%) skewY(5deg);
  animation: charReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) forwards;
}

@keyframes charReveal {
  to { opacity: 1; transform: translateY(0) skewY(0deg); }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 32px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* top bar */
.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.5s both;
}

.landing-topbar-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  overflow: hidden;
}

.landing-topbar-logo img { width: 100%; height: 100%; object-fit: contain; }

.landing-avail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* hero name */
.landing-hero {
  margin-bottom: 0;
}

.landing-name {
  font-family: var(--font-hero);
  font-size: clamp(72px, 13.5vw, 196px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0;
  overflow: hidden;
  display: block;
}

.landing-name-row {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

/* main grid below hero */
.landing-body {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: 48px;
  margin-top: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.8s both;
}

.landing-left {}

.landing-role {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 500px;
}

.landing-statement {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-video {}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.video-frame video,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.video-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.video-play-btn:hover {
  background: var(--surface-hover);
  transform: scale(1.1);
  border-color: var(--line-strong);
}

.video-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--muted);
}

/* stats strip */
.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 2.0s both;
}

.stat-item {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item:last-child { border-right: 0; }

.stat-item strong {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.15vw, 34px);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--text);
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-item .stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-item small {
  display: block;
  max-width: 28ch;
  margin-top: auto;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(237, 232, 222, 0.42);
}

.stat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 30ch;
}

.stat-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(237, 232, 222, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(237, 232, 222, 0.74);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* marquee ticker */
.marquee-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 2.1s both;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding-right: 0;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
  transition: color 200ms ease;
}

.marquee-item:hover { color: var(--text); }

.marquee-dot {
  color: var(--muted);
  opacity: 0.35;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

/* ============================================================
   WORK PAGE — Text list with floating preview
   ============================================================ */

.work-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px 48px;
}

.work-header h1 {
  font-family: var(--font-hero);
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

/* ── List container ── */
.work-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 120px;
  position: relative;
}

/* ── Staggered entrance ── */
.work-list .work-item {
  opacity: 0;
  transform: translateY(14px);
}

.work-list.is-ready .work-item {
  animation: workItemIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 75ms) both;
}

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

/* ── Sibling dimming ── */
.work-list:has(.work-item:hover) .work-item:not(:hover) {
  opacity: 0.3;
  transition: opacity 400ms ease;
}

/* ── Individual work row ── */
.work-item {
  display: grid;
  grid-template-columns: 52px 1fr auto auto 28px;
  align-items: center;
  gap: 0 28px;
  padding: 28px 20px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  --item-accent: transparent;
  transition: background-color 500ms ease, opacity 350ms ease;
}

.work-item:first-child { border-top: 1px solid var(--line); }

.work-item:hover {
  background-color: color-mix(in srgb, var(--item-accent) 22%, transparent);
}

.wi-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex-shrink: 0;
}

.wi-title {
  font-family: var(--font-hero);
  font-size: clamp(36px, 5.5vw, 72px);
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: var(--text);
  transition: letter-spacing 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-item:hover .wi-title {
  letter-spacing: 0.055em;
}

.wi-type {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  max-width: 120px;
  text-align: right;
}

.wi-year {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex-shrink: 0;
}

.wi-arrow {
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transform: translate(0, 0);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), color 300ms ease;
}

.work-item:hover .wi-arrow {
  transform: translate(4px, -4px);
  color: var(--text);
}

/* ── Inline expansion panel ── */
.wi-expand-wrap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-item:hover .wi-expand-wrap {
  grid-template-rows: 1fr;
}

.wi-expand {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 64px;
  padding-left: 60px;
  padding-bottom: 20px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 220ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}

.work-item:hover .wi-expand {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 90ms;
}

.wi-summary {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
  margin: 20px 0 16px;
}

.wi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wi-tags span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 200ms ease, color 200ms ease;
}

.work-item:hover .wi-tags span {
  border-color: var(--line-strong);
}

.wi-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: auto;
}

.wi-stat strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.wi-stat span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Old timeline section kept for project.html ── */
.work-timeline {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 120px;
}

.chapter {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.chapter::before {
  content: '';
  position: absolute;
  inset: -60% -30%;
  background: radial-gradient(ellipse 55% 55% at 25% 50%, var(--chapter-accent, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 1600ms ease;
  pointer-events: none;
  z-index: 0;
}

.chapter.is-active::before { opacity: 1; }

.chapter-num {
  position: absolute;
  top: 24px;
  right: -6px;
  font-family: var(--font-hero);
  font-size: clamp(100px, 17vw, 240px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(237, 232, 222, 0.025);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.chapter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 64px;
  align-items: center;
}

.chapter-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.chapter-eyebrow-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(237, 232, 222, 0.35);
  flex-shrink: 0;
}

.chapter-title {
  font-family: var(--font-hero);
  font-size: clamp(56px, 9vw, 120px);
  letter-spacing: 0.01em;
  line-height: 0.88;
  margin: 0 0 24px;
  color: var(--text);
}

.chapter-summary {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin: 0 0 24px;
}

.chapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
}

.chapter-tags span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.chapter-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.chapter-metric strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.chapter-metric span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.chapter-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c0c0c;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.04),
    transparent 40%
  );
  transition: border-color 300ms ease;
}

.chapter-media:hover { border-color: var(--line-strong); }

.chapter-media img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 20px;
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 200px;
  place-items: center;
  padding: 24px;
  background: var(--surface);
}

.image-placeholder span {
  font-family: var(--font-hero);
  font-size: clamp(24px, 4vw, 48px);
  letter-spacing: 0.02em;
  color: rgba(237, 232, 222, 0.08);
  text-align: center;
  max-width: 12ch;
  line-height: 1;
  text-transform: uppercase;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.about-body p { font-size: 18px; max-width: 680px; }

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.mini-metric {
  flex: 1;
  min-width: 120px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.mini-metric:last-child { border-right: 0; }

.mini-metric strong {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.mini-metric span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   THINKING PAGE
   ============================================================ */

.blog-list {
  display: grid;
  gap: 0;
  margin-top: 56px;
}

.blog-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.blog-item:first-child { border-top: 1px solid var(--line); }
.blog-item:hover { opacity: 0.55; }

.blog-date {
  flex-shrink: 0;
  min-width: 90px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--text);
}

.blog-arrow {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 18px;
  transition: transform 180ms ease, color 180ms ease;
}

.blog-item:hover .blog-arrow {
  transform: translate(4px, -4px);
  color: var(--text);
}

/* ============================================================
   PROJECT — CASE STUDY
   ============================================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 52px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 160ms ease;
}

.back-link:hover { color: var(--text); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── Hero ── */
.project-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 32px 80px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 80px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.project-hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: 0.88;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.project-hero > .project-hero-copy > p {
  font-size: 17px;
  max-width: 520px;
  line-height: 1.8;
}

/* ── Snapshot metadata row ── */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.snapshot-card {
  padding-right: 24px;
  border-right: 1px solid var(--line);
  margin-right: 24px;
}

.snapshot-card:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.snapshot-card span,
.detail-card > span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.snapshot-card strong {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* ── Hero image ── */
.project-hero-media {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 40px;
  aspect-ratio: 4 / 3;
  align-self: start;
}

.project-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Phone mockup ── */
.project-hero-media--phone {
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  aspect-ratio: unset !important;
  background: transparent !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
}

.phone-mockup {
  position: sticky;
  top: 40px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.phone-float-wrapper {
  animation: phoneBob 3.6s ease-in-out infinite;
  display: flex;
  justify-content: center;
}

.phone-float-wrapper.is-hovered {
  animation-play-state: paused;
}

@keyframes phoneBob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.phone-shell {
  width: 230px;
  background: #141414;
  border-radius: 40px;
  padding: 10px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.10),
    0 0 0 3px rgba(0,0,0,0.8),
    0 40px 80px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: #141414;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  height: 456px;
  background: #120520;
  margin-top: -22px;
}

.phone-glare {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255,255,255,0.11) 48%,
    rgba(255,255,255,0.04) 52%,
    transparent 70%
  );
  background-size: 300% 100%;
  background-position: 200% 0;
  opacity: 0;
}

.phone-glare.is-glaring {
  animation: screenGlare 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes screenGlare {
  from { background-position: -100% 0; opacity: 1; }
  to   { background-position: 250% 0;  opacity: 0; }
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(72px) scale(0.87);
  transform-origin: center bottom;
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

.phone-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.phone-slide.is-exiting {
  opacity: 0;
  transform: translateY(-28px) scale(1.04);
  transform-origin: center top;
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
}

.phone-slide img {
  width: 100%;
  height: calc(100% + 46px);
  margin-top: -46px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.phone-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(237,232,222,0.18);
  transition: background 320ms, width 320ms, border-radius 320ms;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.phone-dot.is-active {
  background: var(--project-accent, rgba(237,232,222,0.7));
  width: 20px;
  border-radius: 3px;
}

.phone-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(237,232,222,0.28);
  margin-top: 11px;
  min-height: 13px;
  transition: opacity 0.25s ease;
}

/* ── BAAQI illustrated scenes ── */

.bqs-wa, .bqs-dash, .bqs-email {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

/* WhatsApp dark */
.bqs-wa { background: #111B21; }

.bqs-wa-hd {
  background: #1F2C34;
  padding: 28px 10px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bqs-wa-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7825A0, #321050);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bqs-wa-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bqs-wa-nm {
  font-size: 12px;
  font-weight: 600;
  color: #E9EDEF;
  line-height: 1;
}

.bqs-wa-st {
  font-size: 9px;
  color: #8696A0;
  line-height: 1;
}

.bqs-wa-more {
  color: #8696A0;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}

.bqs-wa-bd {
  flex: 1;
  padding: 10px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: flex-end;
  overflow: hidden;
}

.bqs-date-chip {
  align-self: center;
  background: rgba(0,0,0,0.4);
  color: #8696A0;
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.bqs-bbl {
  max-width: 88%;
  padding: 7px 9px;
  border-radius: 8px;
}

.bqs-bbl--out {
  background: #005C4B;
  color: #E9EDEF;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.bqs-bbl--in {
  background: #1F2C34;
  color: #E9EDEF;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.bqs-doc {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bqs-doc-ic {
  width: 34px;
  height: 42px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bqs-doc-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bqs-doc-nm {
  font-size: 10px;
  font-weight: 600;
  color: #E9EDEF;
}

.bqs-doc-sz {
  font-size: 8px;
  color: #8696A0;
}

.bqs-bbl-t {
  font-size: 8px;
  color: rgba(233,237,239,0.45);
  text-align: right;
  margin-top: 5px;
  line-height: 1;
}

.bqs-read { color: #53BDEB; }

/* Typing dots */
.bqs-dots {
  display: flex;
  gap: 4px;
  padding: 3px 2px;
  align-items: center;
}

.bqs-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8696A0;
  animation: bqsDot 1.3s ease-in-out infinite;
}

.bqs-dots span:nth-child(2) { animation-delay: 0.22s; }
.bqs-dots span:nth-child(3) { animation-delay: 0.44s; }

@keyframes bqsDot {
  0%, 60%, 100% { transform: translateY(0);  opacity: 0.35; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Scene 2: compact receipt + parse result */
.bqs-bbl--sm { padding: 5px 9px; }

.bqs-doc-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: rgba(233,237,239,0.65);
}

.bqs-parse-bbl { max-width: 94%; }

.bqs-parse-ok {
  font-size: 10px;
  font-weight: 700;
  color: #00A884;
  margin-bottom: 4px;
}

.bqs-parse-store {
  font-size: 9px;
  color: #8696A0;
  margin-bottom: 6px;
}

.bqs-parse-store b {
  color: #E9EDEF;
  font-weight: 600;
}

.bqs-parse-list {
  list-style: none;
  margin: 0 0 7px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bqs-parse-list li {
  font-size: 9px;
  color: #E9EDEF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bqs-parse-list li::before {
  content: "✓";
  color: #00A884;
  font-size: 9px;
  flex-shrink: 0;
}

.bqs-more-items { color: #8696A0 !important; font-style: italic; }
.bqs-more-items::before { content: none !important; }

.bqs-parse-status {
  font-size: 9px;
  font-weight: 600;
  color: #E9EDEF;
  background: rgba(0,168,132,0.14);
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 4px;
}

/* WhatsApp footer */
.bqs-wa-ft {
  background: #1F2C34;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bqs-wa-inp {
  flex: 1;
  background: #2A3942;
  border-radius: 20px;
  padding: 7px 12px;
  color: #8696A0;
  font-size: 9px;
}

.bqs-wa-snd {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dashboard (light purple) */
.bqs-dash { background: #F6F2FF; }

.bqs-dash-nav {
  background: #fff;
  padding: 28px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #EDE8F8;
  flex-shrink: 0;
}

.bqs-dash-logo {
  font-size: 14px;
  font-weight: 800;
  color: #7825A0;
  letter-spacing: -0.02em;
}

.bqs-dash-ntf {
  background: #7825A0;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.bqs-dash-bd {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.bqs-dash-hero {
  background: linear-gradient(135deg, #7825A0 0%, #321050 100%);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bqs-dash-eyebrow {
  font-size: 8px;
  letter-spacing: 0.1em;
  opacity: 0.6;
  text-transform: uppercase;
}

.bqs-dash-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bqs-dash-sub {
  font-size: 9px;
  opacity: 0.6;
  margin-top: 2px;
}

.bqs-dash-row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bqs-stat-c {
  background: #fff;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  border: 1px solid #EDE8F8;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bqs-stat-c--hi {
  border-color: rgba(120,37,160,0.3);
  background: #F0E8FF;
}

.bqs-stat-v {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.bqs-stat-c--hi .bqs-stat-v { color: #7825A0; }

.bqs-stat-l {
  font-size: 7px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bqs-pantry-list {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #EDE8F8;
  overflow: hidden;
  flex: 1;
}

.bqs-pl-hd {
  font-size: 8px;
  font-weight: 700;
  color: #7825A0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-bottom: 1px solid #EDE8F8;
}

.bqs-pl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #F4F0FF;
  font-size: 9px;
  color: #333;
}

.bqs-pl-row:last-child { border-bottom: none; }

.bqs-badge {
  font-size: 7px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bqs-badge--good { background: #DCFCE7; color: #15803D; }
.bqs-badge--new  { background: #EDE9FE; color: #7825A0; }
.bqs-badge--low  { background: #FEF9C3; color: #A16207; }

.bqs-dash-ft {
  background: #fff;
  border-top: 1px solid #EDE8F8;
  padding: 7px 6px 5px;
  display: flex;
  justify-content: space-around;
  flex-shrink: 0;
}

.bqs-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 7px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
}

.bqs-nav--active { color: #7825A0; }

/* Depletion screen */
.bqs-dep-ntf {
  background: #EA580C;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.bqs-dep-hero {
  background: linear-gradient(135deg, #D97706 0%, #92400E 100%);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bqs-depletion-list {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #EDE8F8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bqs-dep-hd {
  font-size: 8px;
  font-weight: 700;
  color: #7825A0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-bottom: 1px solid #EDE8F8;
}

.bqs-dep-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid #F4F0FF;
}

.bqs-dep-row:last-child { border-bottom: none; }

.bqs-dep-name {
  font-size: 9px;
  color: #333;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bqs-dep-dots {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.bqs-dep-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #DDD6F3;
  background: transparent;
}

.bqs-dep-dot--on {
  background: #7825A0;
  border-color: #7825A0;
  opacity: 0.65;
}

.bqs-badge--out { background: #FEE2E2; color: #991B1B; }

.bqs-email-trigger {
  background: #F6F2FF;
  border: 1px solid rgba(120,37,160,0.18);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.bqs-trigger-icon {
  font-size: 17px;
  flex-shrink: 0;
  line-height: 1;
}

.bqs-trigger-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bqs-trigger-title {
  font-size: 10px;
  font-weight: 600;
  color: #1a1a1a;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bqs-trigger-sub {
  font-size: 8px;
  color: #888;
  display: block;
}

.bqs-trigger-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(120,37,160,0.15);
  border-top-color: #7825A0;
  border-radius: 50%;
  animation: bqsSpin 0.85s linear infinite;
  flex-shrink: 0;
}

@keyframes bqsSpin { to { transform: rotate(360deg); } }

/* Email (rebuilt with mail chrome) */
.bqs-email { background: #fff; }

.bqs-mail-chrome {
  background: #F2F2F7;
  padding: 28px 12px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #D8D8DC;
  flex-shrink: 0;
}

.bqs-mail-back {
  font-size: 16px;
  color: #007AFF;
  font-weight: 400;
  line-height: 1;
  width: 24px;
}

.bqs-mail-chrome-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.bqs-mail-meta {
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-bottom: 1px solid #F0EEF5;
  flex-shrink: 0;
}

.bqs-mail-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7825A0, #321050);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bqs-mail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bqs-mail-from-line {
  font-size: 10px;
  font-weight: 600;
  color: #1a1a1a;
}

.bqs-mail-addr {
  font-size: 9px;
  color: #888;
  font-weight: 400;
}

.bqs-mail-subj {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.bqs-email-bd {
  flex: 1;
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}

.bqs-email-greeting {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.bqs-email-p {
  font-size: 9px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.bqs-email-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bqs-email-ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #F6F2FF;
  border-radius: 7px;
  font-size: 9.5px;
  color: #222;
  font-weight: 500;
}

.bqs-email-ul li::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1.5px solid #7825A0;
  border-radius: 3px;
  flex-shrink: 0;
}

.bqs-email-cta {
  display: block;
  text-align: center;
  background: #7825A0;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.bqs-email-ft {
  background: #F6F2FF;
  padding: 7px 10px;
  font-size: 7px;
  color: #bbb;
  text-align: center;
  border-top: 1px solid #EDE8F8;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Entry stagger when slide becomes active */
.phone-slide.is-active .bqs-parse-list li,
.phone-slide.is-active .bqs-email-ul li,
.phone-slide.is-active .bqs-pl-row,
.phone-slide.is-active .bqs-dep-row {
  animation: bqsFadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone-slide.is-active .bqs-parse-list li:nth-child(1),
.phone-slide.is-active .bqs-email-ul li:nth-child(1),
.phone-slide.is-active .bqs-pl-row:nth-child(2),
.phone-slide.is-active .bqs-dep-row:nth-child(2) { animation-delay: 0.22s; }

.phone-slide.is-active .bqs-parse-list li:nth-child(2),
.phone-slide.is-active .bqs-email-ul li:nth-child(2),
.phone-slide.is-active .bqs-pl-row:nth-child(3),
.phone-slide.is-active .bqs-dep-row:nth-child(3) { animation-delay: 0.34s; }

.phone-slide.is-active .bqs-parse-list li:nth-child(3),
.phone-slide.is-active .bqs-email-ul li:nth-child(3),
.phone-slide.is-active .bqs-pl-row:nth-child(4),
.phone-slide.is-active .bqs-dep-row:nth-child(4) { animation-delay: 0.46s; }

.phone-slide.is-active .bqs-parse-list li:nth-child(4),
.phone-slide.is-active .bqs-email-ul li:nth-child(4),
.phone-slide.is-active .bqs-pl-row:nth-child(5),
.phone-slide.is-active .bqs-dep-row:nth-child(5) { animation-delay: 0.58s; }

.phone-slide.is-active .bqs-email-trigger {
  animation:
    bqsFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both,
    bqsFadeOutUp 0.3s ease 2.2s forwards;
}

.bqs-trigger-zone {
  position: relative;
  height: 58px;
}

.bqs-email-trigger,
.bqs-email-success {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.bqs-email-success {
  background: #ECFDF5;
  border: 1px solid rgba(5, 150, 105, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
}

.bqs-email-success .bqs-trigger-title { color: #065F46; }
.bqs-email-success .bqs-trigger-sub   { color: #34D399; }

.bqs-success-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.phone-slide.is-active .bqs-email-success {
  animation: bqsSuccessIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.5s both;
}

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

@keyframes bqsFadeOutUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

@keyframes bqsSuccessIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.phone-slide.is-active .bqs-stat-v {
  animation: bqsPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.phone-slide.is-active .bqs-dash-hero,
.phone-slide.is-active .bqs-dep-hero {
  animation: bqsFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.phone-slide.is-active .bqs-mail-meta {
  animation: bqsFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes bqsPopIn {
  from { opacity: 0; transform: translateY(14px) scale(0.75); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Proof strip (4 metrics) ── */
.stat-strip,
.proof-strip {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.stat-strip { grid-template-columns: repeat(3, 1fr); }
.proof-strip { grid-template-columns: repeat(4, 1fr); }

.stat-strip > div,
.proof-strip > div {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
}

.stat-strip > div:last-child,
.proof-strip > div:last-child { border-right: 0; }

.stat-strip strong,
.proof-strip strong {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-strip span,
.proof-strip span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Problem / Solution ── */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.problem-solution > article {
  padding: 64px 48px 64px 32px;
  border-right: 1px solid var(--line);
}

.problem-solution > article:last-child {
  padding: 64px 32px 64px 48px;
  border-right: 0;
}

.problem-solution h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.problem-solution p {
  font-size: 16px;
  line-height: 1.85;
  max-width: 480px;
}

/* ── Story block ── */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 80px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.story-left {
  position: sticky;
  top: 40px;
  align-self: start;
}

.story-left .eyebrow { margin-bottom: 16px; }

.story-block h2 {
  font-family: var(--font-hero);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.story-right { display: flex; flex-direction: column; gap: 0; }

.story-block p {
  font-size: 17px;
  line-height: 1.85;
  padding-bottom: 0;
  margin-bottom: 22px;
  border-bottom: 0;
}

.story-block p:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.story-block strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Detail cards ── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.detail-card {
  padding: 40px 48px 40px 32px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.detail-card:last-child {
  border-right: 0;
  padding-right: 32px;
}

.detail-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.detail-card ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-card li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.detail-card li::before {
  content: "–";
  color: rgba(237, 232, 222, 0.2);
  flex-shrink: 0;
}

.detail-card--insight {
  background: rgba(237, 232, 222, 0.02);
}

.detail-card--insight > span {
  color: var(--text);
  opacity: 0.7;
}

/* ── Tech stack grid ── */
.tech-stack {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 32px;
  border-bottom: 1px solid var(--line);
}

.tech-stack > .eyebrow { margin-bottom: 20px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(var(--tool-cols, 6), 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px 24px;
  background: var(--bg);
  transition: background 220ms;
  cursor: default;
}

.tool-card:hover {
  background: rgba(237, 232, 222, 0.04);
}

.tool-card img {
  width: 26px;
  height: 26px;
  opacity: 0.7;
  transition: opacity 220ms;
}

.tool-card span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.tool-card:hover img { opacity: 1; }
.tool-card:hover span { color: var(--text); }

/* ── Artifacts sidebar ── */
.case-study {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.case-aside {
  position: sticky;
  top: 40px;
}

.case-aside ul {
  display: grid;
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.case-aside li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 160ms ease;
}

.case-aside li:hover { color: var(--text); }

.case-section {
  padding-bottom: 52px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.case-section:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

.case-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.014em;
  margin-bottom: 16px;
}

.case-section p { font-size: 17px; max-width: 680px; line-height: 1.85; }

.section { max-width: var(--max); margin: 0 auto; padding: 0 32px 80px; }

.section-heading { margin-bottom: 40px; }

/* ── Project accent orb ── */
.project-orb {
  position: fixed;
  right: 0;
  top: 32%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform: translateX(50%);
  background: var(--project-accent, transparent);
  filter: blur(72px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 2;
  transition: background 600ms ease;
}

/* ── Gallery spacing ── */
.project-gallery { padding-top: 64px; }

.contact-band {
  text-align: center;
  padding: 80px 32px;
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
}

.contact-band h2 {
  font-size: clamp(28px, 4vw, 56px);
  max-width: 600px;
  margin: 16px auto 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  background: var(--surface);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  body { padding-left: 0; padding-bottom: 64px; }

  .sidebar    { display: none; }
  .bottom-nav { display: flex; }

  .scroll-progress { left: 0; }

  .landing { padding: 36px 20px 0; }
  .landing-body {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 28px;
  }

  .landing-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item { min-height: 170px; }

  .work-header { padding: 48px 20px 36px; }
  .work-list   { padding: 0 20px 64px; }
  .work-timeline { padding: 0 20px 64px; }

  .work-item {
    grid-template-columns: 36px 1fr 24px;
    gap: 0 16px;
  }
  .wi-type, .wi-year { display: none; }
  .wi-expand { padding-left: 52px; column-gap: 24px; }

  .chapter-inner { grid-template-columns: 1fr; gap: 32px; }
  .chapter-media { aspect-ratio: 16 / 9; }
  .chapter-num { font-size: clamp(72px, 22vw, 120px); top: 16px; right: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }

  .project-hero { grid-template-columns: 1fr; padding: 48px 20px 56px; }
  .project-hero-media { display: none; }
  .project-hero h1 { font-size: clamp(40px, 12vw, 72px); }

  .case-study { grid-template-columns: 1fr; padding: 48px 20px 64px; }
  .case-aside { position: static; }

  .stat-strip,
  .proof-strip,
  .snapshot-grid { grid-template-columns: 1fr 1fr; }

  .problem-solution,
  .story-block,
  .detail-grid { grid-template-columns: 1fr; }

  .problem-solution > article,
  .problem-solution > article:last-child { padding: 36px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .problem-solution > article:last-child { border-bottom: 0; }

  .story-block { padding: 48px 20px 64px; gap: 32px; }
  .story-left { position: static; }

  .detail-card { padding: 32px 20px; border-right: 0; }

  .tech-stack { padding: 36px 20px; }
  .tool-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .detail-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .project-orb { display: none; }

  .page { padding: 48px 20px; }
  .footer { padding-inline: 20px; }
}

@media (max-width: 620px) {
  .landing-name { font-size: clamp(60px, 17vw, 100px); }
  .landing-stats { grid-template-columns: 1fr; }
  .stat-item { min-height: 150px; }
  .footer { flex-direction: column; gap: 6px; align-items: flex-start; }
  .wi-title { font-size: clamp(28px, 9vw, 48px); }
}

/* ============================================================
   MICRO-INTERACTION POLISH
   ============================================================ */

.intro-screen {
  animation: introFade 0.42s ease 1.05s forwards;
}

.intro-logo {
  animation:
    introLogoIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both,
    introLogoPulse 0.32s ease 0.82s both;
}

.scroll-progress {
  box-shadow: 0 0 24px rgba(120, 37, 160, 0.45);
}

.za-cursor {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  transition: opacity 200ms ease, filter 240ms ease;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.52));
}

.za-cursor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.za-cursor-ring {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-color: rgba(237, 232, 222, 0.14);
  background: radial-gradient(circle, rgba(237, 232, 222, 0.055), transparent 62%);
  mix-blend-mode: screen;
}

.za-cursor-ring.is-hovered {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-color: rgba(237, 232, 222, 0.34);
  background: radial-gradient(circle, rgba(237, 232, 222, 0.09), transparent 64%);
}

.sidebar-link {
  transition:
    color 220ms ease,
    background 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-link:hover,
.sidebar-link.is-active {
  transform: translateX(3px);
}

.sidebar-link::after {
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-page="home"] .sidebar-brand {
  box-shadow:
    0 0 0 1px rgba(237, 232, 222, 0.12),
    0 0 32px rgba(120, 37, 160, 0.18);
}

.button {
  position: relative;
  overflow: hidden;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.22) 48%, transparent 82%);
  opacity: 0;
  transform: translateX(-110%);
  transition:
    opacity 240ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.button:hover::after {
  opacity: 1;
  transform: translateX(110%);
}

.button.primary:hover {
  box-shadow: 0 18px 58px rgba(237, 232, 222, 0.18);
}

.video-frame {
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease,
    box-shadow 420ms ease,
    background 240ms ease;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 45% 35%, rgba(237, 232, 222, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(0, 222, 85, 0.08), rgba(120, 37, 160, 0.11), rgba(214, 8, 4, 0.07));
  opacity: 0;
  transition: opacity 320ms ease;
}

.video-frame:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.video-frame:hover::before {
  opacity: 1;
}

.video-placeholder {
  position: relative;
  z-index: 1;
}

.video-play-btn {
  background: rgba(8, 8, 8, 0.22);
  backdrop-filter: blur(12px);
  transition:
    background 240ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease,
    box-shadow 320ms ease;
}

.video-frame:hover .video-play-btn,
.video-play-btn:hover {
  background: var(--surface-hover);
  transform: scale(1.08);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 8px rgba(237, 232, 222, 0.045);
}

.stat-item {
  transition:
    background 240ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.024);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.marquee-wrap {
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.contact-heading-accent {
  background: linear-gradient(90deg, #00DE55, #078C8B, #7825A0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subheading {
  font-size: 1.05rem;
  color: rgba(237, 232, 222, 0.6);
  max-width: 480px;
  line-height: 1.65;
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
  margin-top: 52px;
}

/* Form side */
.contact-form,
.contact-success {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 232, 222, 0.45);
}

.contact-input,
.contact-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(237, 232, 222, 0.25);
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: rgba(237, 232, 222, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.contact-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.contact-submit {
  align-self: flex-start;
  min-width: 160px;
  gap: 10px;
}

.contact-submit.is-loading .cf-submit-label { opacity: 0; }
.contact-submit.is-loading .cf-submit-spinner { opacity: 1; }

.cf-submit-spinner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(8, 8, 8, 0.2);
  border-top-color: #080808;
  border-radius: 50%;
  animation: cfSpin 0.7s linear infinite;
  opacity: 0;
  transition: opacity 0.15s;
}

@keyframes cfSpin { to { transform: rotate(360deg); } }

/* Success state */
.contact-success {
  align-items: flex-start;
  padding: 32px;
  background: rgba(0, 222, 85, 0.06);
  border: 1px solid rgba(0, 222, 85, 0.2);
  border-radius: 16px;
}

.contact-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00DE55;
  color: #080808;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-success-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.contact-success-body {
  color: rgba(237, 232, 222, 0.6);
  margin: 0;
  line-height: 1.6;
}

/* Meta side */
.contact-meta-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 232, 222, 0.4);
  margin: 0;
}

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-email-link {
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.contact-email-link:hover { opacity: 1; }

.contact-copy-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: rgba(237, 232, 222, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  position: relative;
}

.contact-copy-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.contact-copy-btn .check-icon { display: none; }
.contact-copy-btn.is-copied .copy-icon  { display: none; }
.contact-copy-btn.is-copied .check-icon { display: block; color: #00DE55; }

.contact-linkedin-btn {
  width: 100%;
  gap: 10px;
  font-size: 0.875rem;
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(237, 232, 222, 0.45);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   BAAQI — TRY IT NOW CTA
   ============================================================ */

.phone-try-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.phone-try-btn {
  gap: 8px;
  font-size: 0.875rem;
  padding: 0 22px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

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