/* ============================================================
   YASHWANT WALMIK MAHAJAN – PORTFOLIO CSS
   Inspired by jonasreymondin.com
   ============================================================ */

/* ---- Google Font + CSS Reset ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: auto; /* Lenis handles this */
  font-size: 16px;
}

/* ---- CSS Custom Properties ---- */
:root {
  --color-bg: #080808;
  --color-bg-2: #0f0f0f;
  --color-bg-3: #141414;
  --color-surface: #1a1a1a;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-text-dim: rgba(255, 255, 255, 0.25);
  --color-accent: #ffffff;
  --color-accent-warm: #f0e6c8;
  --color-green: #4afe9a;

  --font-primary: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-height: 72px;
  --section-pad: clamp(80px, 10vw, 140px);
  --container-pad: clamp(24px, 5vw, 80px);
}

/* ---- Base ---- */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

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

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

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

::selection {
  background: rgba(255,255,255,0.15);
  color: var(--color-text);
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__counter {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.05em;
  min-width: 3ch;
  text-align: center;
}

.preloader__bar {
  width: min(400px, 80vw);
  height: 1px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.preloader__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-text);
  transition: width 0.1s linear;
}

.preloader__text {
  position: absolute;
  bottom: 2.5rem;
  left: var(--container-pad);
}

.preloader__name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.cursor__dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  pointer-events: none;
  z-index: 9001;
}

.cursor__ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s, background 0.3s;
  pointer-events: none;
  z-index: 9000;
}

body.cursor-hover .cursor__ring {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
}

body.cursor-link .cursor__dot {
  width: 12px;
  height: 12px;
}

body.cursor-link .cursor__ring {
  width: 80px;
  height: 80px;
  border-color: rgba(255,255,255,0.5);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  border-color: var(--color-border);
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav__pills {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 6px;
}

.nav__pill {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s, background 0.3s;
}

.nav__pill:hover,
.nav__pill--active {
  color: var(--color-bg);
  background: var(--color-text);
}

.nav__pill-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  margin: 0 4px;
}

.nav__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.nav__status-dot {
  width: 7px;
  height: 7px;
  background: var(--color-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ============================================================
   CORNER META (Jonas style)
   ============================================================ */
.corner-meta {
  position: fixed;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
}

.corner-meta.visible {
  opacity: 1;
}

.corner-meta--tl { top: calc(var(--nav-height) + 20px); left: var(--container-pad); }
.corner-meta--tr { top: calc(var(--nav-height) + 20px); right: var(--container-pad); text-align: right; }
.corner-meta--bl { bottom: 24px; left: var(--container-pad); }
.corner-meta--br { bottom: 24px; right: var(--container-pad); text-align: right; }

.corner-meta__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.corner-meta__value {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  background: transparent;
}

.scroll-progress__fill {
  height: 100%;
  background: var(--color-text);
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--nav-height) var(--container-pad) 120px;
  overflow: hidden;
}

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

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

.hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 10%, rgba(255,255,255,0.03) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 80%, rgba(74, 254, 154, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* Two-column hero layout */
.hero__layout {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 6rem);
}

.hero__content {
  flex: 1;
  min-width: 0;
}

/* ---- Hero Photo (right column) ---- */
.hero__photo-col {
  flex-shrink: 0;
  width: clamp(200px, 25vw, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateX(40px);
  animation: heroPhotoIn 1s 1.8s var(--ease-out-expo) forwards;
}

@keyframes heroPhotoIn {
  to { opacity: 1; transform: translateX(0); }
}

.hero__photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 24px;
  overflow: hidden;
}

.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease-out-expo);
  display: block;
}

.hero__photo-wrap:hover .hero__photo-img {
  transform: scale(1.05);
}

.hero__photo-glow {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08) 0%,
    transparent 50%,
    rgba(74, 254, 154, 0.06) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero__photo-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 3;
  pointer-events: none;
  transition: border-color 0.4s;
}

.hero__photo-wrap:hover .hero__photo-border {
  border-color: rgba(255,255,255,0.2);
}

.hero__photo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

.hero__photo-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.hero__eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-text-muted);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out-expo);
}

.hero__eyebrow-line.visible {
  transform: scaleX(1);
}

.hero__eyebrow-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.3s var(--ease-out-expo), transform 0.8s 0.3s var(--ease-out-expo);
}

.hero__eyebrow-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 11rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform;
}

.hero__tagline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 3rem;
  overflow: hidden;
}

.hero__tagline-text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.hero__tag {
  opacity: 0;
  transform: translateY(20px);
}

.hero__tag-sep {
  color: var(--color-text-dim);
  opacity: 0;
}

.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  opacity: 0;
  animation: fadeInUp 0.8s 2.5s var(--ease-out-expo) forwards;
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--color-text-dim);
  animation: scrollPulse 2s 2.5s infinite;
}

@keyframes scrollPulse {
  0%, 100% { width: 40px; }
  50% { width: 60px; }
}

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

/* Marquee */
.hero__marquee {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 2;
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
}

.hero__marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__marquee-track .sep {
  color: var(--color-text-dim);
}

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

/* ============================================================
   SECTION BASE
   ============================================================ */
section {
  padding: var(--section-pad) var(--container-pad);
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.section-header__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.section-header__count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* ============================================================
   PROJECTS / WORK
   ============================================================ */
.work {
  background: var(--color-bg);
  padding-top: clamp(60px, 8vw, 120px);
}

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

.project-item {
  border-bottom: 1px solid var(--color-border);
  transform: translateY(40px);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.project-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item__link {
  display: block;
  padding: 2.5rem 0;
  transition: background 0.3s;
}

.project-item__link:hover {
  background: rgba(255,255,255,0.02);
}

.project-item__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

.project-item__left {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

.project-item__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  padding-top: 6px;
  min-width: 30px;
}

.project-item__info {
  flex: 1;
  min-width: 0;
}

.project-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  transition: transform 0.4s var(--ease-out-expo);
}

.project-item__link:hover .project-item__title {
  transform: translateX(8px);
}

.project-item__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.project-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 10px;
  transition: border-color 0.3s, color 0.3s;
}

.project-item__link:hover .tag {
  border-color: rgba(255,255,255,0.2);
  color: var(--color-text);
}

.project-item__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.project-item__img-wrap {
  width: 200px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s;
}

.project-item__link:hover .project-item__img-wrap {
  transform: scale(1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.project-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.project-item__link:hover .project-item__img {
  transform: scale(1.08);
}

.project-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}

.project-item__link:hover .project-item__overlay {
  opacity: 0;
}

.project-item__arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.project-item__arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-out-expo);
}

.project-item__link:hover .project-item__arrow {
  background: var(--color-text);
  border-color: var(--color-text);
  transform: scale(1.1);
}

.project-item__link:hover .project-item__arrow svg {
  color: var(--color-bg);
  transform: translate(3px, -3px);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--color-bg-2);
  position: relative;
  overflow: hidden;
}

.about__bg-text {
  position: absolute;
  top: -0.15em;
  right: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Photo Column */
.about__photo-col {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.about__photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease-out-expo);
}

.about__photo-wrap:hover .about__photo {
  transform: scale(1.04);
}

.about__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,8,8,0.8) 100%);
  z-index: 1;
}

.about__photo-frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  z-index: 2;
  transition: border-color 0.3s;
}

.about__photo-wrap:hover .about__photo-frame {
  border-color: rgba(255,255,255,0.15);
}

.about__photo-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 1.25rem;
  padding: 0 4px;
}

.about__photo-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about__photo-role {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Content Column */
.about__header {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.about__bio {
  margin-bottom: 3rem;
}

.about__bio-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--delay, 0s) var(--ease-out-expo),
              transform 0.8s var(--delay, 0s) var(--ease-out-expo);
}

.about__bio-text.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.about__bio-text em {
  color: var(--color-accent-warm);
  font-style: normal;
}

/* Skills Accordion */
.skills-accordion {
  border-top: 1px solid var(--color-border);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.accordion-item__header {
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: opacity 0.3s;
}

.accordion-item__header:hover {
  opacity: 0.75;
}

.accordion-item__num {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-dim);
  min-width: 24px;
}

.accordion-item__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 1;
  text-align: left;
}

.accordion-item__icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out-expo), background 0.3s;
  flex-shrink: 0;
}

.accordion-item__icon svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease-out-expo);
}

.accordion-item.active .accordion-item__icon {
  background: var(--color-text);
  border-color: var(--color-text);
}

.accordion-item.active .accordion-item__icon svg {
  color: var(--color-bg);
  transform: rotate(45deg);
}

.accordion-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo);
}

.accordion-item.active .accordion-item__panel {
  max-height: 300px;
}

.accordion-item__content {
  padding: 0 0 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.tech-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.accordion-item__content p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   CREATIVE WORK
   ============================================================ */
.creative {
  background: var(--color-bg-3);
}

.creative__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.creative__item:nth-child(1) {
  grid-column: 1 / 7;
  grid-row: 1 / 2;
}

.creative__item:nth-child(2) {
  grid-column: 7 / 13;
  grid-row: 1 / 2;
}

.creative__item:nth-child(3) {
  grid-column: 1 / 5;
  grid-row: 2 / 3;
}

.creative__item:nth-child(4) {
  grid-column: 5 / 13;
  grid-row: 2 / 3;
}

.creative__img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-surface);
}

.creative__item--large .creative__img-wrap {
  aspect-ratio: 16/9;
}

.creative__img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out-expo);
  will-change: transform;
}

.creative__img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.creative__img-wrap:hover .creative__img-inner {
  transform: scale(1.04);
}

.creative__item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  transform: translateY(4px);
  transition: transform 0.4s var(--ease-out-expo);
}

.creative__img-wrap:hover .creative__item-label {
  transform: translateY(0);
}

.creative__item-year {
  color: var(--color-text-muted);
  font-size: 0.7rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact__bg-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.contact__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.contact__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
}

.contact__desc.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  padding: 20px 32px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: transparent;
  transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.35s;
  width: fit-content;
}

.contact__cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
  transform: scale(1.02);
}

.contact__cta-icon {
  display: flex;
  align-items: center;
  width: 28px;
  height: 28px;
}

.contact__cta-icon svg {
  width: 100%;
  height: 100%;
}

.contact__socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.contact__social:hover {
  color: var(--color-text);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.contact__social svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 5rem;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-text {
  overflow: hidden;
}

.reveal-text span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.reveal-text.animated span {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.9s var(--ease-out-expo), opacity 0.9s var(--ease-out-expo);
}

.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MAGNETIC EFFECT TARGET
   ============================================================ */
.magnetic {
  position: relative;
  will-change: transform;
}

/* ============================================================
   TILT CARD
   ============================================================ */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__photo-col {
    position: static;
    max-width: 380px;
  }

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

  .creative__item:nth-child(1) { grid-column: 1/2; grid-row: 1/2; }
  .creative__item:nth-child(2) { grid-column: 2/3; grid-row: 1/2; }
  .creative__item:nth-child(3) { grid-column: 1/2; grid-row: 2/3; }
  .creative__item:nth-child(4) { grid-column: 2/3; grid-row: 2/3; }

  .project-item__img-wrap {
    width: 150px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
    --section-pad: clamp(60px, 8vw, 100px);
  }

  .hero__layout {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .hero__photo-col {
    width: clamp(160px, 45vw, 260px);
    align-self: flex-end;
    margin-right: 0;
  }

  .nav__status { display: none; }

  .corner-meta--bl,
  .corner-meta--br { display: none; }

  .hero__title {
    font-size: clamp(2.8rem, 14vw, 6rem);
  }

  .project-item__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .project-item__right {
    width: 100%;
    justify-content: space-between;
  }

  .project-item__img-wrap {
    width: 140px;
    height: 90px;
  }

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

  .creative__item:nth-child(n) { grid-column: 1/2; grid-row: auto; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .contact__title {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .nav__pills {
    gap: 0;
  }

  .nav__pill {
    padding: 6px 14px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 20px;
  }

  .corner-meta { display: none; }

  .hero__title {
    font-size: clamp(2.4rem, 16vw, 4.5rem);
  }

  .contact__cta {
    font-size: 1rem;
    padding: 16px 24px;
  }
}
