/* ═══════════════════════════════════════════════════════════════
   REVANTH ANUPOJU — Product Designer Portfolio
   Aesthetic: Greptile Dark × TrumpRx Authority × Coral/Teal
   ═══════════════════════════════════════════════════════════════ */

/* ─── DARK MODE (DEFAULT) ─── */
:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --surface-2: #161616;
  --border: #1E1E1E;
  --border-hover: #2A2A2A;
  --text-primary: #F0EDE6;
  --text-secondary: #9A9A9A;
  --text-muted: #5A5A5A;
  --accent: #ee876f;
  --accent-hover: #f4a08d;
  --accent-cool: #4ECDC4;
  --danger: #FF6B6B;
  --nav-bg: rgba(10, 10, 10, 0.6);
  --card-glass: rgba(17, 17, 17, 0.55);
  --glass-border: rgba(255, 255, 255, 0.06);
  --cursor-card-bg: rgba(238, 135, 111, 0.12);
  --service-hover-text: #0A0A0A;
  --service-hover-muted: rgba(10, 10, 10, 0.5);
  --service-hover-desc: rgba(10, 10, 10, 0.7);
  --overlay-bg: rgba(10, 10, 10, 0.7);
  --success: #2d6a4f;
  --grid-stroke: #1E1E1E;
  --grid-opacity: 0.3;
  --grain-opacity: 0.4;
  --logo-fill: #F0EDE6;
  --logo-stroke: #ee876f;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 48px;
  --container-max: 1280px;
  --container-padding: clamp(20px, 4vw, 60px);
  --section-padding: clamp(72px, 9vw, 120px);

  color-scheme: dark;
}

/* ─── LIGHT MODE ─── */
[data-theme="light"] {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: #F3F3F0;
  --border: #E2E0DB;
  --border-hover: #D0CEC8;
  --text-primary: #121926;
  --text-secondary: #5A5F6B;
  --text-muted: #8E919A;
  --accent: #D96B50;
  --accent-hover: #C25A42;
  --accent-cool: #3BB5AD;
  --danger: #E05555;
  --nav-bg: rgba(250, 250, 248, 0.6);
  --card-glass: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(0, 0, 0, 0.08);
  --cursor-card-bg: rgba(217, 107, 80, 0.1);
  --service-hover-text: #FFFFFF;
  --service-hover-muted: rgba(255, 255, 255, 0.6);
  --service-hover-desc: rgba(255, 255, 255, 0.8);
  --overlay-bg: rgba(250, 250, 248, 0.75);
  --success: #2d8a5e;
  --grid-stroke: #E2E0DB;
  --grid-opacity: 0.5;
  --grain-opacity: 0.08;
  --logo-fill: #121926;
  --logo-stroke: #D96B50;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
  transition: background 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

/* ─── GLOBAL GRID OVERLAY (Greptile-style) ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-stroke) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-stroke) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: var(--grid-opacity);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── TYPOGRAPHY ─── */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════ */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
  cursor: none;
  position: relative;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-spring);
}

.theme-toggle:hover .theme-toggle__icon {
  transform: rotate(30deg);
}

/* Sun icon hidden by default (dark mode shows moon) */
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }

[data-theme="light"] .theme-toggle__sun { display: block; }
[data-theme="light"] .theme-toggle__moon { display: none; }

/* ═══════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: clip-path 0.8s var(--ease-in-out-quart);
  clip-path: inset(0 0 0 0);
}

#preloader.done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.preloader__grid {
  width: 200px;
  height: 200px;
  opacity: 0.6;
  margin-bottom: 32px;
}

.grid-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawLine 2s var(--ease-out-expo) forwards;
}

.accent-line {
  animation-delay: 0.5s;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.preloader__text {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.preloader__name {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 1.4s steps(15) 0.8s forwards;
  width: 0;
  display: inline-block;
}

@keyframes typing {
  to { width: 15ch; }
}

.preloader__cursor {
  color: var(--accent);
  animation: blink 0.6s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════ */
.cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor__ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-spring),
              height 0.3s var(--ease-spring),
              border-color 0.3s,
              background 0.3s;
}

.cursor__dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--text-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

body.cursor--hover .cursor__ring {
  width: 64px;
  height: 64px;
  border-color: var(--accent);
}

body.cursor--card .cursor__ring {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--cursor-card-bg);
  border-color: var(--accent);
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  transition: transform 0.4s var(--ease-out-expo),
              background 0.4s var(--ease-smooth),
              border-color 0.4s var(--ease-smooth);
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav__logo svg {
  display: block;
  transition: opacity 0.2s;
}

.nav__logo svg rect {
  stroke: var(--logo-stroke);
  transition: stroke 0.4s;
}

.nav__logo svg text {
  fill: var(--logo-fill);
  transition: fill 0.4s;
}

.nav__logo:hover svg {
  opacity: 0.8;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.25s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--ai {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cool);
}

.nav__link--ai:hover {
  color: var(--accent-cool);
}

.nav__link--ai::after {
  background: var(--accent-cool);
}

.nav__ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

.nav__cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav__hamburger.active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text-primary);
  transition: color 0.2s;
}

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

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) var(--container-padding) 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: var(--grain-opacity);
  pointer-events: none;
}

.hero__grid-bg {
  display: none; /* replaced by global grid overlay */
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero__counters {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
}

.hero__counter {
  display: flex;
  flex-direction: column;
}

.hero__counter-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hero__counter-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.hero__counter-plus {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 36px);
  color: var(--accent);
  font-weight: 300;
}

.hero__counter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero__counter-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero__headline {
  margin-bottom: 32px;
}

.hero__line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow: hidden;
}

.hero__line > * {
  display: inline-block;
}

.hero__line--1 {
  transform: translateX(-100%);
  opacity: 0;
}

.hero__line--2 {
  transform: translateX(100%);
  opacity: 0;
}

.hero__line--3 {
  transform: translateY(40px);
  opacity: 0;
}

.hero__line--3 em {
  color: var(--accent);
  font-style: italic;
}

.hero__sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.hero__highlight {
  color: var(--text-primary);
  position: relative;
}

.hero__highlight::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: background 0.4s var(--ease-out-expo),
              color 0.4s var(--ease-out-expo),
              transform 0.2s;
  opacity: 0;
  transform: translateY(20px);
}

.hero__cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero__cta svg {
  transition: transform 0.3s var(--ease-spring);
}

.hero__cta:hover svg {
  transform: translate(2px, -2px);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  writing-mode: vertical-lr;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
}

/* ═══════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════ */
.marquee {
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.marquee__border {
  height: 1px;
  background: var(--accent);
  opacity: 0.2;
}

.marquee__track {
  padding: 16px 0;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.marquee:hover .marquee__content {
  animation-direction: reverse;
}

.marquee__dot {
  color: var(--accent);
  font-size: 6px;
}

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

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  overflow: hidden;
}

/* Floating particles canvas */
.about__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Glow behind the image */
.about__image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(238, 135, 111, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

[data-theme="light"] .about__image-glow {
  background: radial-gradient(circle, rgba(217, 107, 80, 0.08) 0%, transparent 70%);
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Paragraph staggered slide-in */
.about__para {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.about__para.revealed {
  opacity: 1;
  transform: translateY(0);
}

.about__para:nth-child(2) {
  transition-delay: 0.15s;
}

.about__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about__heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 32px;
}

.about__name-highlight {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(238, 135, 111, 0.16);
  box-shadow: 0 0 0 1px rgba(238, 135, 111, 0.4);
}

.about__name-inline {
  color: var(--accent);
  font-weight: 500;
}

.about__heading em {
  color: var(--accent);
  font-style: italic;
}

.about__body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.about__visual {
  position: relative;
}

.about__image-wrap {
  position: relative;
  perspective: 800px;
}

.about__image {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.about__image-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
}

.about__stat-card {
  position: absolute;
  background: var(--card-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.about__stat-card--1 {
  top: 20%;
  right: -24px;
}

.about__stat-card--2 {
  bottom: 30%;
  left: -24px;
}

.about__stat-card--3 {
  bottom: 10%;
  right: 10%;
}

.about__stat-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}

.about__stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Reveal text animation */
.reveal-text {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s var(--ease-out-expo);
}

.reveal-text.revealed {
  clip-path: inset(0 0 0 0);
}

/* ═══════════════════════════════════════
   VENTURES / WORK
   ═══════════════════════════════════════ */
.ventures {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.ventures__header {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  margin-bottom: 48px;
}

.ventures__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
}

.ventures__scroll-wrap {
  overflow-x: auto;
  padding: 0 var(--container-padding);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ventures__scroll-wrap::-webkit-scrollbar {
  display: none;
}

.ventures__track {
  display: flex;
  gap: 24px;
  padding-bottom: 20px;
  min-width: max-content;
}

.venture-card {
  width: clamp(320px, 30vw, 420px);
  flex-shrink: 0;
}

.venture-card__inner {
  background: var(--card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 40px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out-expo),
              border-color 0.4s,
              box-shadow 0.4s,
              background 0.4s;
}

.venture-card:hover .venture-card__inner {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
              0 0 0 1px var(--accent);
}

.venture-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.venture-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.venture-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
}

.venture-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

.venture-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.venture-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.venture-card:hover .tag {
  border-color: var(--accent);
  color: var(--accent);
}

.venture-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.3s var(--ease-spring);
}

.venture-card:hover .venture-card__link {
  gap: 12px;
}

.venture-card__link svg {
  transition: transform 0.3s var(--ease-spring);
}

.venture-card:hover .venture-card__link svg {
  transform: translate(2px, -2px);
}

/* ═══════════════════════════════════════
   SERVICES / SKILLS
   ═══════════════════════════════════════ */
.services {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s;
}

.services__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.services__header {
  margin-bottom: 48px;
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
}

.services__role-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.services__role-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: radial-gradient(circle at 0% 0%, rgba(238, 135, 111, 0.18), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(78, 205, 196, 0.18), transparent 55%),
              rgba(238, 135, 111, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  overflow: hidden;
  animation: servicesRoleGlow 6s var(--ease-in-out-quart) infinite alternate;
}

.services__role-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(238, 135, 111, 0.2);
  animation: servicesDotOrbit 4s var(--ease-smooth) infinite;
}

.services__role-label::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(238, 135, 111, 0.0), rgba(238, 135, 111, 0.65), rgba(78, 205, 196, 0.0));
  opacity: 0.7;
  mix-blend-mode: screen;
  animation: servicesSweep 10s linear infinite;
  pointer-events: none;
}

@keyframes servicesRoleGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(238, 135, 111, 0.4);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(238, 135, 111, 0.25);
    transform: translateY(-3px);
  }
  100% {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(78, 205, 196, 0.25);
    transform: translateY(0);
  }
}

@keyframes servicesDotOrbit {
  0% {
    transform: translate(0, 0) scale(1);
    box-shadow: 0 0 0 4px rgba(238, 135, 111, 0.25);
  }
  50% {
    transform: translate(4px, -2px) scale(1.15);
    box-shadow: 0 0 0 8px rgba(78, 205, 196, 0.2);
  }
  100% {
    transform: translate(0, 0) scale(1);
    box-shadow: 0 0 0 4px rgba(238, 135, 111, 0.25);
  }
}

@keyframes servicesSweep {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  100% {
    transform: rotate(360deg) translate3d(0, 0, 0);
  }
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.service-tile {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: color 0.5s, background 0.4s;
}

.service-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  clip-path: circle(0% at var(--mouse-x, 50%) var(--mouse-y, 50%));
  transition: clip-path 0.6s var(--ease-out-expo);
  z-index: 0;
}

.service-tile:hover::before {
  clip-path: circle(150% at var(--mouse-x, 50%) var(--mouse-y, 50%));
}

.service-tile:hover {
  color: var(--service-hover-text);
}

.service-tile > * {
  position: relative;
  z-index: 1;
}

.service-tile__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 24px;
  transition: color 0.4s;
}

.service-tile:hover .service-tile__num {
  color: var(--service-hover-muted);
}

.service-tile__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--accent);
  transition: color 0.4s;
}

.service-tile:hover .service-tile__icon {
  color: var(--service-hover-text);
}

.service-tile__icon svg {
  width: 100%;
  height: 100%;
}

.service-tile__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
}

.service-tile__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: color 0.4s;
}

.service-tile:hover .service-tile__desc {
  color: var(--service-hover-desc);
}

/* ═══════════════════════════════════════
   STATS
   ═══════════════════════════════════════ */
.stats {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.stats__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 80px);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats__row {
  display: flex;
  align-items: baseline;
}

.stats__number {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.stats__suffix {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 36px);
  color: var(--accent);
  font-weight: 300;
}

.stats__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 8px;
}

.stats__divider {
  width: 1px;
  height: 64px;
  background: var(--border);
}

/* ═══════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════ */
.testimonials {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s;
}

.testimonials__container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.testimonials__deck {
  position: relative;
  min-height: 340px;
  margin: 48px 0 32px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  background: var(--card-glass);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 48px 40px;
  opacity: 0;
  transform: translateY(20px) rotate(2deg);
  transition: all 0.5s var(--ease-out-expo);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.testimonial-card--active {
  opacity: 1;
  transform: translateY(0) rotate(0);
  pointer-events: all;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 16px;
  opacity: 0.4;
}

.testimonial-card__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.testimonial-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.testimonials__btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

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

.testimonials__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   WRITING
   ═══════════════════════════════════════ */
.writing {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.writing__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.writing__header {
  margin-bottom: 48px;
}

.writing__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
}

.writing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.post-card {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo), background 0.4s, box-shadow 0.4s;
}

.post-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

.post-card__image {
  position: relative;
  overflow: hidden;
}

.post-card__image-placeholder img,
.post-card__image-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease-out-expo);
}

.post-card:hover .post-card__image-placeholder img,
.post-card:hover .post-card__image-placeholder svg {
  transform: scale(1.05);
}

.post-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.post-card:hover .post-card__overlay {
  opacity: 1;
}

.post-card__overlay span {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 20px;
}

.post-card__content {
  padding: 24px;
}

.post-card__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.writing__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.3s var(--ease-spring);
}

.writing__all:hover {
  gap: 14px;
}

.writing__all svg {
  transition: transform 0.3s var(--ease-spring);
}

.writing__all:hover svg {
  transform: translate(2px, -2px);
}

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
  min-height: auto;
  display: flex;
  align-items: center;
}

.contact__container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
  width: 100%;
}

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 40px;
}

.contact__heading em {
  color: var(--accent);
  font-style: italic;
}

.contact__email-wrap {
  margin-bottom: 48px;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-secondary);
  padding: 12px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

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

.contact__email-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Form */
.contact__form {
  text-align: left;
}

.form-field {
  position: relative;
  margin-bottom: 32px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 16px 0 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
  cursor: none;
}

.form-field textarea {
  resize: none;
}

.form-field label {
  position: absolute;
  left: 0;
  top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}

.form-field input:focus ~ label,
.form-field input:valid ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:valid ~ label {
  top: -4px;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.form-field__bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo);
}

.form-field input:focus ~ .form-field__bar,
.form-field textarea:focus ~ .form-field__bar {
  width: 100%;
  left: 0;
}

.contact__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.4s, color 0.4s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.contact__submit:hover {
  background: var(--accent);
  color: var(--bg);
}

.contact__submit-loading,
.contact__submit-done {
  position: absolute;
  display: none;
}

.contact__submit.loading .contact__submit-text { display: none; }
.contact__submit.loading .contact__submit-loading {
  display: block;
  animation: spin 1s linear infinite;
}

.contact__submit.success .contact__submit-text { display: none; }
.contact__submit.success .contact__submit-done { display: block; }
.contact__submit.success {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--card-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  z-index: 5000;
  transition: transform 0.4s var(--ease-spring);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
}

.toast__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 100%;
  transform-origin: left;
  animation: none;
}

.toast.visible .toast__bar {
  animation: toastShrink 2s linear forwards;
}

@keyframes toastShrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 0 var(--container-padding) 32px;
}

.footer__rule {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
  transform: scaleX(0);
  transition: transform 1s var(--ease-out-expo);
}

.footer__rule.drawn {
  transform: scaleX(1);
}

.footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer__right {
  display: flex;
  gap: 16px;
}

.footer__social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
}

.footer__social:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .writing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__counters {
    gap: 20px;
  }

  .hero__counter-divider {
    height: 32px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .writing__grid {
    grid-template-columns: 1fr;
  }

  .stats__container {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stats__divider {
    display: none;
  }

  .stats__item {
    width: 45%;
  }

  .about__stat-card--1 { right: 0; }
  .about__stat-card--2 { left: 0; }

  .testimonials__deck {
    min-height: 380px;
  }

  .testimonial-card {
    padding: 32px 24px;
  }

  .testimonial-card__text {
    font-size: 15px;
  }

  .footer__container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Disable custom cursor on touch */
  .cursor { display: none; }
  body { cursor: auto; }
  body * { cursor: auto; }
}

@media (max-width: 480px) {
  .hero__counters {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero__counter-divider {
    width: 48px;
    height: 1px;
  }

  .ventures__track {
    gap: 16px;
  }

  .venture-card {
    width: 280px;
  }
}

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

  .reveal-text {
    clip-path: none !important;
  }

  .hero__line--1,
  .hero__line--2,
  .hero__line--3,
  .hero__sub,
  .hero__cta,
  .hero__counters {
    opacity: 1 !important;
    transform: none !important;
  }
}
