/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0b0f;
  --bg-rgb: 11, 11, 15;
  --text: #f0f0f5;
  --text-dim: rgba(240, 240, 245, 0.8);
  --text-muted: rgba(240, 240, 245, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --accent: #00e5ff;
  --accent-rgb: 0, 229, 255;
  --nav-bg: rgba(11, 11, 15, 0.5);
  --nav-border: rgba(255, 255, 255, 0.06);
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #f8f9fa;
  --bg-rgb: 248, 249, 250;
  --text: #16161a;
  --text-dim: rgba(22, 22, 26, 0.75);
  --text-muted: rgba(22, 22, 26, 0.55);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --surface: rgba(0, 0, 0, 0.02);
  --surface-hover: rgba(0, 0, 0, 0.04);
  --accent: #2563eb;
  --accent-rgb: 37, 99, 235;
  --nav-bg: rgba(248, 249, 250, 0.65);
  --nav-border: rgba(0, 0, 0, 0.06);
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.6s var(--easing), color 0.6s var(--easing);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; font: inherit; cursor: none; }


/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════════════ */
.c-cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s var(--easing), height 0.3s var(--easing), background 0.3s;
  mix-blend-mode: difference;
}

.c-cursor-ring {
  position: fixed;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.45s var(--easing), height 0.45s var(--easing),
              background 0.4s, border-color 0.4s, border-radius 0.4s;
}

[data-theme="light"] .c-cursor-ring {
  border-color: rgba(0,0,0,0.2);
}

.c-cursor-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--bg);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
}

.c-cursor-ring.is-hovering {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.05);
  border-color: var(--accent);
}

.c-cursor-ring.has-label {
  width: 72px; height: 72px;
  background: var(--text);
  border-color: transparent;
}

.c-cursor-ring.has-label .c-cursor-label {
  opacity: 1; transform: scale(1);
}

@media (pointer: coarse) {
  .c-cursor, .c-cursor-ring { display: none !important; }
  body { cursor: auto !important; }
  button { cursor: pointer !important; }
}





/* ═══════════════════════════════════════════════════
   WQF STYLE MORPHING NAVIGATION
═══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  padding: 40px 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s var(--easing);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1340px;
  transition: all 0.5s var(--easing);
}

/* Scrolled fixed floating state */
.site-header.scrolled {
  top: 20px;
  width: calc(100% - 40px);
  max-width: 760px;
  padding: 10px 24px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .header-inner {
  max-width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  color: var(--text);
  overflow: hidden;
  position: relative;
  height: 29px;
  width: 140px;
  transition: width 0.5s var(--easing);
  text-decoration: none;
}

.logo-wrapper {
  position: relative;
  width: 140px;
  height: 29px;
}

.logo-full {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 29px;
  color: var(--text);
  transition: transform 0.5s var(--easing), opacity 0.5s var(--easing);
}

.logo-full span {
  color: var(--accent);
}

.logo-icon {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 29px;
  color: var(--text);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s var(--easing), opacity 0.5s var(--easing);
}

.logo-icon span {
  color: var(--accent);
}

.site-header.scrolled .header-logo {
  width: 30px;
}

.site-header.scrolled .logo-full {
  transform: translateY(-100%);
  opacity: 0;
}

.site-header.scrolled .logo-icon {
  transform: translateY(0);
  opacity: 1;
}

/* Book a Call pill button */
.nav-book-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  transition: all 0.3s var(--easing);
  text-decoration: none;
  cursor: none;
}

.nav-book-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.nav-book-btn .arrow {
  transition: transform 0.3s var(--easing);
}

.nav-book-btn:hover .arrow {
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .header-right .nav-book-btn {
    display: none;
  }
}

/* Nav links styling */
.desktop-nav {
  position: relative;
  transition: all 0.5s var(--easing);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

/* Hover Rolling Text Animation */
.nav-text-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  height: 14px;
  overflow: hidden;
}

.nav-text-orig {
  display: block;
  transition: transform 0.4s var(--easing);
}

.nav-text-roll {
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  transition: transform 0.4s var(--easing);
}

.nav-link:hover .nav-text-orig {
  transform: translateY(-100%);
}

.nav-link:hover .nav-text-roll {
  transform: translateY(-100%);
}

/* Hover Dot Indicator */
.nav-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--text);
  opacity: 0;
  transform: translateX(-16px) scale(0.5);
  filter: blur(2px);
  transition: transform 0.4s var(--easing), opacity 0.4s var(--easing), filter 0.4s;
  margin-right: 8px;
}

.nav-link:hover .nav-dot {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

/* Sliding Corner Bracket Indicator */
.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s var(--easing), width 0.4s var(--easing), opacity 0.3s;
  z-index: -1;
}

.ind-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--text-dim);
  border-style: solid;
  opacity: 0.5;
  transition: border-color 0.3s;
}

.ind-tl { top: -2px; left: -2px; border-width: 1px 0 0 1px; }
.ind-tr { top: -2px; right: -2px; border-width: 1px 1px 0 0; }
.ind-bl { bottom: -2px; left: -2px; border-width: 0 0 1px 1px; }
.ind-br { bottom: -2px; right: -2px; border-width: 0 1px 1px 0; }

/* Header action items */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Modern clean toggle switch button */
.theme-toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s;
  padding: 0;
}

.theme-toggle-switch:hover {
  border-color: var(--border-hover);
}

.switch-track {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.switch-thumb {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.4s var(--easing), background 0.4s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

[data-theme="light"] .switch-thumb {
  transform: translateX(20px);
  background: var(--accent);
}

/* Contact button styling */
.contact-btn {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: all 0.3s var(--easing);
}

.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-header.scrolled .contact-btn {
  padding: 6px 14px;
  font-size: 10px;
  border-radius: 20px;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1100;
}

.ham-square {
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: all 0.3s var(--easing);
}

.ham-square::before, .ham-square::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s var(--easing);
}

.ham-square::before { top: -6px; }
.ham-square::after { top: 6px; }

.hamburger.active .ham-square {
  background: transparent;
}

.hamburger.active .ham-square::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--accent);
}

.hamburger.active .ham-square::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--accent);
}

/* Mobile drawer menu style */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(var(--bg-rgb), 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: all 0.5s var(--easing);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  list-style: none;
}

.mobile-nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.3s;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-contact-item {
  margin-top: 16px;
}

.mobile-contact-item .mobile-nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}


/* Smooth scroll runs on window viewport */


/* ═══════════════════════════════════════════════════
   SECTIONS — COMMON
═══════════════════════════════════════════════════ */
.section {
  padding: 120px 48px;
  max-width: 1340px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 24px;
}

.section-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 540px;
}


/* ═══════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: var(--bg);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 140px 80px 80px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.hero-status-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 50px;
}

.status-availability {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #00e676;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #00e676;
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.65; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.65; }
}

/* ─── Hero center block ─── */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  justify-content: center;
}

/* ─── Small name label above typewriter ─── */
.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  opacity: 0; /* animated in */
}

/* ─── Giant typewriter heading ─── */
.hero-typewriter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 8.5vw, 130px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
  margin-bottom: 48px;
  min-height: 1.1em; /* prevent layout shift as text changes */
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hero-type-text {
  display: inline;
}

/* Blinking cursor */
.hero-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  opacity: 1;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── Hero Description ─── */
.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 560px;
  text-align: center;
  margin: 0 auto 0 auto;
  opacity: 0; /* animated in by GSAP */
}

/* ─── Scroll Indicator ─── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.hero-scroll-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0; /* animated in */
}

.hero-scroll-track {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border-radius: 1px;
}

[data-theme="light"] .hero-scroll-track {
  background: rgba(0, 0, 0, 0.1);
}

.hero-scroll-line {
  position: absolute;
  inset-x: 0;
  top: 0;
  display: block;
  height: 16px;
  background: var(--accent);
  border-radius: 1px;
  will-change: transform;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .hero-container {
    padding: 120px 40px 60px 40px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 100px 24px 40px 24px;
  }
  .hero-status-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
  }
  .hero-typewriter {
    white-space: normal;
    word-break: break-word;
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-scroll-indicator {
    bottom: 32px;
  }
}


.btn-ghost {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hero stats */
.hero-meta {
  position: absolute;
  right: 80px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: right;
  z-index: 2;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat-n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.stat-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
}

.stat-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--text-muted);
  z-index: 2;
}

.scroll-bar {
  width: 60px;
  height: 1px;
  background: var(--text-muted);
  transform-origin: left;
  animation: slide-in 2s ease 1.2s both;
}

@keyframes slide-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}


/* ═══════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════ */
.marquee-band {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--surface);
  position: relative;
  z-index: 2;
}

.marquee-inner { display: flex; }

.marquee-row {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  padding-right: 28px;
}

.marquee-row span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.marquee-row .sep {
  color: var(--accent);
  font-size: 10px;
}

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


/* ═══════════════════════════════════════════════════
   WORK — WQF STYLE CARD GRID (LIGHT BACKGROUND)
═══════════════════════════════════════════════════ */
.work-section {
  background: #ececec;
  color: #16161a;
  padding: 140px 48px;
  max-width: 100%;
  margin: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transition: background 0.6s var(--easing);
  position: relative;
  z-index: 2;
}

@media (min-width: 1101px) {
  .work-section {
    clip-path: inset(0 100% 0 0);
  }
}

[data-theme="light"] .work-section {
  background: #f5f5f7;
  color: #16161a;
}

/* Split Header (Ethos style) */
.work-split-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  max-width: 1340px;
  margin: 0 auto 80px auto;
  align-items: start;
}

.work-header-left {
  display: flex;
  flex-direction: column;
}

.work-header-left .section-label {
  color: rgba(22, 22, 26, 0.45);
  margin-bottom: 24px;
}

.work-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 3.8vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #16161a;
}

.work-header-right {
  position: relative;
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-ethos-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.work-description {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(22, 22, 26, 0.7);
  margin-bottom: 32px;
}

/* Redefine button colors inside light work section */
.work-section .wqf-contact-btn {
  color: #16161a;
}

.work-section .wqf-contact-btn::before,
.work-section .wqf-contact-btn::after,
.work-section .wqf-contact-btn span.btn-corner {
  border-color: rgba(22, 22, 26, 0.25);
}

.work-section .wqf-contact-btn:hover {
  color: var(--accent);
}

.work-section .wqf-contact-btn:hover::before,
.work-section .wqf-contact-btn:hover::after,
.work-section .wqf-contact-btn:hover span.btn-corner {
  border-color: var(--accent);
}

/* Card Grid - Accordion Style */
/* Card Grid - Accordion Style */
.work-card-grid {
  display: flex;
  gap: 0;
  max-width: 1340px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  list-style: none;
}

/* Outer Card Wrapper */
.work-card-wrapper {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.65s var(--easing);
}

@media (min-width: 1101px) {
  .work-card-wrapper {
    width: 25%;
  }
  
  /* Shrink all cards on grid hover */
  .work-card-grid:hover .work-card-wrapper {
    width: 20%;
  }
  
  /* Expand the hovered card */
  .work-card-grid .work-card-wrapper:hover {
    width: 40%;
  }
}

/* Individual Card (Inner content frame) */
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  height: 100%;
  min-height: 550px;
  padding: 48px 24px;
  text-decoration: none;
  cursor: none;
}

@media (min-width: 1101px) {
  .work-card {
    width: 125%; /* Keeps visual width constant when wrapper is 20% or 25% */
    transition: width 0.65s var(--easing), background-color 0.65s var(--easing);
  }
  
  /* Reset width to 100% when active wrapper expands to 40% */
  .work-card-wrapper:hover .work-card {
    width: 100%;
  }
}

/* Width compensation to prevent text wrapping change when cards shrink */
.work-card-top,
.work-card-bottom,
.work-card-pattern {
  width: 100%;
  max-width: 260px;
  flex-shrink: 0;
}

/* Card Variants background colors */
.work-card.wc-a8 { background: #0b0b0f; color: #f0f0f5; }
.work-card.wc-intel { background: #608e9a; color: #f0f0f5; }
.work-card.wc-radiology { background: #f16530; color: #f0f0f5; }
.work-card.wc-stripe { background: #e4e4e6; color: #16161a; }

/* Card titles */
.work-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: inherit;
}

/* Dotted Pattern visual area */
.work-card-pattern {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
}

.work-card-pattern svg {
  width: 100%;
  height: 100%;
  display: block;
  color: inherit;
}

/* Card Bottom details */
.work-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-card-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.45;
  color: inherit;
}

.work-card-desc {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
  color: inherit;
}

/* Responsive adjustments inside grid */
@media (max-width: 1100px) {
  .work-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    border-radius: 0;
    border: none;
    overflow: visible;
  }
  
  .work-card-wrapper {
    width: 100%;
  }

  .work-card {
    border-radius: 16px;
    min-height: 480px;
    padding: 36px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    clip-path: inset(0 0 100% 0); /* Default hidden for mobile reveal trigger */
  }
  
  .work-card.wc-stripe {
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 900px) {
  .work-split-header {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
  }
  .work-header-right {
    padding-top: 24px;
  }
}

@media (max-width: 640px) {
  .work-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .work-card {
    min-height: 440px;
    padding: 28px 20px;
  }
}



/* ═══════════════════════════════════════════════════
   THINKING SECTION
═══════════════════════════════════════════════════ */
.thinking-section { padding-top: 160px; }

.thinking-list {
  margin-top: 60px;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}

.thinking-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  cursor: default;
}

.thinking-item:hover { background: var(--surface); padding-left: 20px; padding-right: 20px; margin: 0 -20px; }

.ti-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent);
  padding-top: 5px;
}
/* Thinking Section Mappings */
.ti {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--easing);
  cursor: none;
}

.ti:hover {
  background: var(--surface-hover);
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
}

.ti-index {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  padding-top: 5px;
}

.ti-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}

.ti-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 640px;
}

/* Playground sub-section */
.playground-block {
  margin-top: 100px;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 0;
}

.pg-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.4s var(--easing);
}

.pg-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pg-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pg-visual.pv-1 { background: linear-gradient(135deg, #0a0a20, #1a0d30, #0d1a40); }
.pg-visual.pv-2 { background: linear-gradient(135deg, #080f14, #0a2218, #061518); }

.pg-idx {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 80px;
  font-weight: 200;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.05em;
  transition: transform 0.5s var(--easing), color 0.5s;
}

.pg-card:hover .pg-idx {
  transform: scale(1.15);
  color: rgba(255,255,255,0.1);
}

.pg-info {
  padding: 24px 28px;
  background: var(--bg-card, rgba(255,255,255,0.02));
  border-top: 1px solid var(--border);
  flex: 1;
}

.pg-info h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.pg-info p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.pg-arr {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 20px;
  color: rgba(255,255,255,0.2);
  transition: color 0.3s, transform 0.4s var(--easing);
}

.pg-card:hover .pg-arr {
  color: var(--accent);
  transform: translate(3px,-3px);
}

/* Card Corner Brackets */
.card-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.3s;
}

.card-corner svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
}

.cc-tl {
  top: 16px;
  left: 16px;
}

.cc-br {
  bottom: 16px;
  right: 16px;
  transform: rotate(180deg);
}

.pg-card:hover .card-corner {
  color: var(--accent);
}



/* ═══════════════════════════════════════════════════
   EXPERIENCE SECTION
═══════════════════════════════════════════════════ */
.exp-section {
  padding-top: 160px;
}

.exp-list {
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

.exp-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--easing);
  position: relative;
  cursor: none;
}

.exp-row:hover {
  background: var(--surface-hover);
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
}

.exp-yr {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding-top: 6px;
  flex-shrink: 0;
}

.exp-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.exp-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}

.exp-co {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}

.exp-main p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 16px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tags span {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.exp-row:hover .exp-tags span {
  border-color: var(--border-hover);
  color: var(--text-dim);
}


/* ═══════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════ */
.about-section {
  padding-top: 160px;
  padding-bottom: 100px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.about-body {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 520px;
}

.about-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.about-links a {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}

.about-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Resume block */
.about-right {
  position: sticky;
  top: 100px;
}

.resume-card {
  border: 1px solid var(--border);
  padding: 48px 44px;
  border-radius: 20px;
  background: var(--bg-card, rgba(255,255,255,0.02));
  position: relative;
  overflow: hidden;
}

/* WQF Style Button for Resume */
.btn-wqf {
  position: relative;
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text);
  text-transform: uppercase;
  transition: color 0.3s;
  margin-top: 10px;
}

.btn-wqf-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  color: var(--text-muted);
  pointer-events: none;
  fill: none;
  transition: all 0.3s;
}

.btn-wqf-corner.btn-tl { top: 0; left: 0; }
.btn-wqf-corner.btn-tr { top: 0; right: 0; transform: rotate(90deg); }
.btn-wqf-corner.btn-bl { bottom: 0; left: 0; transform: rotate(-90deg); }
.btn-wqf-corner.btn-br { bottom: 0; right: 0; transform: rotate(180deg); }

.btn-wqf:hover {
  color: var(--accent);
}

.btn-wqf:hover .btn-wqf-corner {
  color: var(--accent);
  width: 10px;
  height: 10px;
}

.resume-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.resume-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 16px;
}

.resume-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.contact-cta-block {
  display: block;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.cta-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--accent);
  margin-bottom: 16px;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.5s var(--easing);
}

.contact-cta-block:hover .cta-line {
  transform: scaleX(1);
}

.cta-tag {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cta-email {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.3s;
}

.contact-cta-block:hover .cta-email {
  color: var(--accent);
}


/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  padding: 36px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1340px;
  margin: 0 auto;
}

.site-footer span {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-right { position: relative; top: auto; }
}

@media (max-width: 900px) {
  .site-header { padding: 20px 32px; }
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .section { padding: 80px 32px; }
  .thinking-section, .exp-section, .about-section { padding-top: 100px; }
  .site-footer { padding: 28px 32px; flex-direction: column; gap: 12px; text-align: center; }
  
  .project-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  
  .project-row:hover {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    background: none;
  }
  
  .project-arrow {
    justify-content: flex-start;
  }
  
  .exp-row, .ti {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .exp-row:hover, .ti:hover {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    background: none;
  }
  
  .exp-yr, .ti-index {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .pg-grid { grid-template-columns: 1fr; }
  .about-links { gap: 20px; }
}
