/* ============================================
   KIRAN KODI — PORTFOLIO 2026
   Clean / Black / Geometric / Subtle Green
   ============================================ */

:root {
  --bg: #f9f8f6;
  --bg-1: #f1efea;
  --bg-2: #e8e5de;
  --bg-3: #dedbd2;
  --fg: #111111;
  --fg-dim: #555555;
  --fg-mute: #888888;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.15);
  --accent: #0f9c05;
  --accent-soft: rgba(15, 156, 5, 0.08);

  --display: "Space Grotesk", "Neue Haas Grotesk", -apple-system, sans-serif;
  --body: "Inter Tight", "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

body.dark-mode {
  --bg: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --fg: #f4f1ea;
  --fg-dim: #a8a8a8;
  --fg-mute: #5a5a5a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #39ff14;
  --accent-soft: rgba(57, 255, 20, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  transition: background-color 0.4s var(--ease);
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

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

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================
   NAV + HAMBURGER
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
  padding: 24px 40px;
  background: rgba(249, 248, 246, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

body.dark-mode .nav {
  background: rgba(0, 0, 0, 0.75);
}

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

.nav-logo {
  grid-column: span 4;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.logo-dark {
  display: none !important;
}

body.dark-mode .logo-light {
  display: none !important;
}

body.dark-mode .logo-dark {
  display: block !important;
}

.nav-right {
  grid-column: span 8;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.nav-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  transition: background-color 0.4s var(--ease);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--accent);
  }

  50% {
    opacity: 0.7;
  }
}

/* Theme Toggle */
.theme-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.theme-toggle:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.theme-toggle svg {
  transition: transform 0.4s var(--ease);
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

body.dark-mode .theme-toggle .moon-icon {
  display: none;
}

body:not(.dark-mode) .theme-toggle .sun-icon {
  display: none;
}

/* Hamburger */
.hamburger {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hamburger:hover {
  background: var(--fg);
  border-color: var(--fg);
}

.hamburger:hover .hb-line {
  background: var(--bg);
}

.hb-line {
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--fg);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
  transform-origin: center;
}

.hb-line:first-child {
  transform: translateY(-4px);
}

.hb-line:last-child {
  transform: translateY(4px);
}

.hamburger.open .hb-line:first-child {
  transform: translateY(0) rotate(45deg);
  background: var(--fg);
}

.hamburger.open .hb-line:last-child {
  transform: translateY(0) rotate(-45deg);
  background: var(--fg);
}

.hamburger.open {
  background: transparent !important;
  border-color: var(--line-strong) !important;
}

/* Full-screen menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform 0.8s var(--ease-in-out), visibility 0s 0.8s;
  display: flex;
  flex-direction: column;
  padding: 120px 40px 40px;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
}

.menu-overlay.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.8s var(--ease-in-out), visibility 0s 0s;
}

.menu-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  flex: 1;
  align-content: start;
}

.menu-links {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
}

.menu-side {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 24px;
}

.menu-link {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 120px);
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transform: translateY(60px);
  opacity: 0;
  transition: color 0.3s var(--ease);
}

.menu-overlay.open .menu-link {
  animation: menuRise 0.7s var(--ease) forwards;
}

.menu-overlay.open .menu-link:nth-child(1) {
  animation-delay: 0.15s;
}

.menu-overlay.open .menu-link:nth-child(2) {
  animation-delay: 0.22s;
}

.menu-overlay.open .menu-link:nth-child(3) {
  animation-delay: 0.29s;
}

.menu-overlay.open .menu-link:nth-child(4) {
  animation-delay: 0.36s;
}

.menu-overlay.open .menu-link:nth-child(5) {
  animation-delay: 0.43s;
}

.menu-overlay.open .menu-link:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes menuRise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.menu-link .num {
  font-family: var(--mono);
  font-size: 12px;
  vertical-align: super;
  color: var(--fg-mute);
  margin-right: 16px;
  letter-spacing: 0.1em;
}

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

.menu-link .arrow {
  display: inline-block;
  transform: translateX(-20px);
  opacity: 0;
  transition: all 0.4s var(--ease);
  font-style: normal;
}

.menu-link:hover .arrow {
  transform: translateX(20px);
  opacity: 1;
  color: var(--accent);
}

.menu-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 24px;
}

.menu-side-block {
  margin-bottom: 40px;
}

.menu-side-block .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 12px;
}

.menu-side-block .value {
  font-family: var(--display);
  font-size: 18px;
  color: var(--fg);
  line-height: 1.4;
}

.menu-side-block a {
  display: block;
  color: var(--fg);
  transition: color 0.3s;
}

.menu-side-block a:hover {
  color: var(--accent);
}

.menu-foot {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  margin: 0 -40px -40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* Progress indicator */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 101;
  width: 0;
  transition: width 0.1s linear;
}

/* ============================================
   COMMON REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.reveal-1 {
  transition-delay: 0.1s;
}

.reveal-2 {
  transition-delay: 0.2s;
}

.reveal-3 {
  transition-delay: 0.3s;
}

.reveal-4 {
  transition-delay: 0.4s;
}

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

.split-line>span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}

.split-line.in>span {
  transform: translateY(0);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding: 120px 40px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

.hero>* {
  flex-shrink: 0;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.hero-meta-item:nth-child(1) {
  grid-column: span 3;
}

.hero-meta-item:nth-child(2) {
  grid-column: span 6;
}

.hero-meta-item:nth-child(3) {
  grid-column: span 3;
  text-align: right;
}

.hero-meta-item {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.hero-meta-item strong {
  color: var(--fg);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

.hero>div {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
}

.hero-title {
  grid-column: span 12;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 9.5vw, 170px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 40px 0;
}

.hero-title .underline {
  position: relative;
  display: inline-block;
}

.hero-title .underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.08em;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: ul 1.2s 1.6s var(--ease) forwards;
}

@keyframes ul {
  to {
    transform: scaleX(1);
  }
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-dim);
}

.hero-sub {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.hs-col {
  grid-column: span 4;
}

.hs-col .mono {
  color: var(--fg-mute);
  display: block;
  margin-bottom: 12px;
}

.hs-col .val {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll .line {
  width: 40px;
  height: 1px;
  background: var(--fg-mute);
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::after {
  content: "";
  position: absolute;
  left: -40px;
  width: 40px;
  height: 1px;
  background: var(--accent);
  animation: scrollcue 2s infinite;
}

@keyframes scrollcue {
  0% {
    left: -40px;
  }

  100% {
    left: 40px;
  }
}

/* ============================================
   MARQUEE TICKER (minimal)
   ============================================ */
.ticker {
  padding: 24px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tick 40s linear infinite;
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}

.ticker-track span::after {
  content: "◆";
  color: var(--fg-mute);
  font-size: 10px;
}

@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   ABOUT STRIP
   ============================================ */
.about {
  padding: 160px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: start;
}

.about-label {
  grid-column: span 4;
  padding-top: 12px;
}

.about-text {
  grid-column: span 8;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.about-text p {
  margin-bottom: 32px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.scroll-word {
  display: inline-block;
  opacity: 0.15;
  transition: opacity 0.6s var(--ease);
}

.scroll-word.active {
  opacity: 1;
}

.about-text .dim {
  color: var(--fg-mute);
}

.about-text .acc {
  color: var(--accent);
  font-style: italic;
}

/* ============================================
   WORK — vertical stacked large cards
   ============================================ */
.work {
  padding: 80px 40px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.work-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: end;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
}

.work-header h2 {
  grid-column: span 6;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.work-header .meta {
  grid-column: span 6;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-align: right;
}

.work-header .meta strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.project-card {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}

.project-card:nth-child(1) {
  grid-column: span 7;
  height: 600px;
}

.project-card:nth-child(2) {
  grid-column: span 5;
  height: 600px;
}

.project-card:nth-child(3) {
  grid-column: span 12;
  height: 480px;
}

.project-card.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  will-change: transform, opacity;
}

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

.project-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: var(--bg-1);
}

.project-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 75%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.project-card:hover .project-image-container::after {
  opacity: 0.85;
}

.project-image-parallax-wrapper {
  width: 100%;
  height: 115%; /* Headroom for scroll parallax */
  position: absolute;
  top: -7.5%;
  left: 0;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1.02);
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card-image {
  transform: scale(1.06);
}

.project-card:hover {
  border-color: var(--line-strong);
}

.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.project-card-index {
  color: var(--accent);
  font-weight: 500;
}

.project-card-tags {
  color: rgba(255, 255, 255, 0.6);
}

.project-card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  transition: transform 0.4s var(--ease);
}

.project-card-desc {
  font-family: var(--body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  max-width: 90%;
  margin: 0;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.project-card:hover .project-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-card-title {
  transform: translateY(-4px);
}

/* ============================================
   CURRENT FOCUS
   ============================================ */
.focus {
  padding: 160px 40px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
}

.focus-label {
  grid-column: span 4;
  padding-top: 12px;
}

.focus-content {
  grid-column: span 8;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 40px;
}

.focus-left {
  grid-column: span 4;
}

.focus-right {
  grid-column: span 4;
}

.focus-heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--fg);
}

.focus-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.focus-text {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
}

.focus-sublabel {
  display: block;
  color: var(--fg-mute);
  margin-bottom: 24px;
}

.focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.focus-list li {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.focus-list li::before {
  content: "◆";
  color: var(--accent);
  font-size: 10px;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: 160px 40px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.process-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 80px;
}

.process-header>div {
  grid-column: span 5;
}

.process-header h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.process-header h2 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

.process-header .intro {
  grid-column: span 7;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-dim);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px 40px;
}

.process-step {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.process-step .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.process-step h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.process-step p {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-dim);
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience {
  padding: 120px 40px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.experience h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 60px;
}

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

.exp-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.exp-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.exp-row:hover {
  padding-left: 24px;
}

.exp-row:hover::before {
  transform: scaleY(1);
}

.exp-year {
  grid-column: span 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.exp-role {
  grid-column: span 3;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.exp-company {
  grid-column: span 5;
  font-family: var(--body);
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.5;
}

.exp-tags {
  grid-column: span 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-align: right;
}

/* ============================================
   CTA FOOTER BAND
   ============================================ */
.cta {
  padding: 160px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.cta .eyebrow {
  margin-bottom: 24px;
}

.cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 48px;
}

.cta h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  border: 1px solid var(--fg);
  font-family: var(--display);
  font-size: 18px;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

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

.cta-btn:hover::before {
  transform: translateY(0);
}

.cta-btn span {
  position: relative;
  z-index: 2;
}

/* ============================================
   GO TO TOP
   ============================================ */
.go-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg);
  z-index: 90;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.go-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-4px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 40px 32px;
  border-top: 1px solid var(--line);
}

.footer-wall {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(80px, 22vw, 360px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--fg);
  margin: 0 -40px 40px;
  text-align: center;
  overflow: hidden;
}

.footer-wall em {
  font-style: italic;
  color: var(--fg-mute);
}

.footer-wall .dot {
  color: var(--accent);
  font-style: normal;
}

.footer-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.footer-meta>div {
  grid-column: span 3;
}

.footer-meta strong {
  display: block;
  margin-top: 8px;
  color: var(--fg);
  font-weight: 400;
}

.footer-meta a {
  color: var(--fg);
  display: inline-block;
  margin-right: 16px;
  transition: color 0.3s;
}

.footer-meta a:hover {
  color: var(--accent);
}

/* ============================================
   CASE STUDY PAGE
   ============================================ */
.case-hero {
  padding: 120px 40px 40px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.case-hero>* {
  flex-shrink: 0;
}

.case-hero .back {
  position: absolute;
  top: 120px;
  left: 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.case-hero .back:hover {
  color: var(--accent);
}

.case-hero .eyebrow {
  margin-bottom: 32px;
}

.case-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 40px;
}

.case-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-dim);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.cm-col {
  grid-column: span 3;
}

.cm-col .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 10px;
}

.cm-col .val {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
}

.case-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 40px 0;
  background: var(--bg-2);
  position: relative;
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease);
}

.case-cover:hover img {
  transform: scale(1.02);
}

.case-body {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.case-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.case-section:last-of-type {
  border-bottom: 1px solid var(--line);
}

.case-section .label {
  grid-column: span 4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 8px;
}

.case-section>div:not(.label) {
  grid-column: span 8;
}

.case-section h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.case-section h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-dim);
}

.case-section p {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin-bottom: 16px;
}

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

.case-section p strong {
  color: var(--fg);
  font-weight: 500;
}

.case-section ul {
  margin-top: 16px;
  padding-left: 0;
  list-style: none;
}

.case-section li {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
}

.case-section li::before {
  content: "→";
  color: var(--accent);
  flex-shrink: 0;
}

.case-section li strong {
  color: var(--fg);
  font-weight: 500;
}

.case-figure {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}

.case-figure.full {
  margin-left: -40px;
  margin-right: -40px;
  width: calc(100% + 80px);
}

.case-figure img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.8s var(--ease);
}

.case-figure:hover img {
  transform: scale(1.01);
}

.case-figure.wide {
  aspect-ratio: 16 / 9;
}

.case-figure.wide img {
  height: 100%;
  object-fit: cover;
}

.case-figure figcaption {
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 40px 0;
}

.gallery-grid .case-figure {
  margin: 0;
}

.gallery-full {
  padding: 40px 0;
}

.case-nav {
  padding: 80px 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.cn-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 0;
  transition: transform 0.4s var(--ease);
}

.cn-item:last-child {
  text-align: right;
  align-items: flex-end;
}

.cn-item:hover {
  transform: translateY(-8px);
}

.cn-item .mono {
  color: var(--fg-mute);
}

.cn-item .title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.03em;
  color: var(--fg);
  transition: color 0.3s var(--ease);
}

.cn-item:hover .title {
  color: var(--accent);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
  min-height: 100vh;
  padding: 140px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.contact-page>* {
  flex-shrink: 0;
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 60%, var(--accent-soft), transparent 50%);
  pointer-events: none;
}

.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.contact-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(72px, 14vw, 240px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 40px 0 60px;
}

.contact-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-dim);
}

.contact-title .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-big {
  grid-column: span 6;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fg-dim);
}

.contact-big .accent {
  color: var(--accent);
  font-style: italic;
}

.contact-links {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--fg);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
  letter-spacing: -0.02em;
}

.contact-link:hover {
  color: var(--accent);
  padding-left: 16px;
}

.contact-link .mono {
  font-size: 10px;
  color: var(--fg-mute);
  transition: color 0.3s;
}

.contact-link:hover .mono {
  color: var(--accent);
}

/* ============================================
   RESPONSIVE (TABLET: max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .nav {
    padding: 20px 32px;
  }

  .hero {
    padding: 120px 32px 32px;
  }

  .about,
  .focus,
  .work,
  .process,
  .experience,
  .cta,
  .footer {
    padding: 100px 32px;
  }

  .hero-title {
    margin: 30px 0;
  }

  .about-grid,
  .focus-grid,
  .process-header,
  .experience,
  .contact-grid {
    gap: 32px;
  }
}

/* ============================================
   RESPONSIVE (MOBILE: max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Layout Paddings */
  .nav {
    padding: 16px 20px;
  }

  .hero {
    padding: 100px 20px 20px;
  }

  .about,
  .focus,
  .work,
  .process,
  .experience,
  .cta,
  .footer {
    padding: 80px 20px;
  }

  /* Navbar */
  .nav-status {
    display: none;
  }

  /* Hero */
  .hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 24px;
  }

  .hero-meta-item {
    width: 100%;
    text-align: left !important;
  }

  .hero-title {
    font-size: clamp(40px, 10vw, 80px);
    margin: 24px 0;
  }

  .hero-sub {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
  }

  .hero-scroll {
    display: none;
  }

  /* About & Focus */
  .about-grid,
  .focus-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .about-label,
  .focus-label {
    padding-top: 0;
  }

  .focus-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .focus-list li {
    font-size: 16px;
  }

  /* Work Grid */
  .work-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .work-header .meta {
    text-align: left;
  }

  .work-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .project-card,
  .project-card-full {
    width: 100%;
    height: 50vh !important;
    min-height: 350px !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    grid-column: auto !important;
    margin-top: 0 !important;
    border-radius: 12px !important;
  }

  .project-card-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 24px !important;
    box-sizing: border-box !important;
  }

  .project-card-title {
    font-size: clamp(20px, 4.5vw, 26px) !important;
    transform: none !important;
    transition: none !important;
  }

  .project-card-desc {
    opacity: 1 !important;
    transform: none !important;
    font-size: 13px !important;
    max-width: 100% !important;
    transition: none !important;
  }

  .project-image-parallax-wrapper {
    height: 100% !important;
    top: 0 !important;
    transform: none !important;
  }
  .project-card-image {
    height: 100% !important;
    top: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Process */
  .process-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .process-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .process-step {
    padding-top: 24px;
  }

  /* Experience */
  .experience h2 {
    margin-bottom: 32px;
  }

  .exp-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
  }

  .exp-row:hover {
    padding-left: 0;
  }

  .exp-row::before {
    display: none;
  }

  .exp-tags {
    text-align: left;
    margin-top: 4px;
  }

  /* CTA & Footer */
  .cta-inner {
    text-align: left;
  }

  .footer-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Menu Overlay */
  .menu-overlay {
    padding: 100px 20px 20px;
  }

  .menu-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .menu-side {
    padding-top: 0;
  }

  .menu-foot {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 20px;
    margin: 0 -20px -20px;
  }

  /* Case Study Specifics */
  .case-hero {
    padding: 100px 20px 24px;
    min-height: auto;
  }

  .case-hero .back {
    position: static;
    margin-bottom: 24px;
  }

  .case-title {
    font-size: clamp(44px, 12vw, 80px);
    margin-bottom: 24px;
  }

  .case-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
  }

  .case-body {
    padding: 40px 20px;
  }

  .case-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 0;
  }

  .case-figure.full {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }

  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .case-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 20px;
  }

  .cn-item:last-child {
    text-align: left;
    align-items: flex-start;
  }

  /* Contact Page */
  .contact-page {
    padding: 120px 20px 24px;
  }

  .contact-title {
    margin: 20px 0 40px;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .project-preview {
    display: none !important;
  }
}

/* ============================================
   CUSTOM CURSOR (Desktop & Tablet with pointer)
   ============================================ */
@media (hover: hover) and (pointer: fine) {

  html,
  body,
  a,
  button,
  .project-card,
  .menu-link,
  .hb-line,
  .theme-toggle,
  .go-to-top {
    cursor: none !important;
  }

  .custom-cursor {
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: -16px;
    left: -16px;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  }

  .custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: -3px;
    left: -3px;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s linear, background-color 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
  }

  /* Hover active state */
  .custom-cursor.hover {
    width: 52px;
    height: 52px;
    top: -26px;
    left: -26px;
    background: var(--accent-soft);
    border-color: transparent;
  }

  .custom-cursor-dot.hover {
    width: 8px;
    height: 8px;
    top: -4px;
    left: -4px;
  }

  /* Project Card Hover / VIEW state */
  .custom-cursor.view {
    width: 90px;
    height: 90px;
    top: -45px;
    left: -45px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    mix-blend-mode: normal !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15) !important;
  }

  .custom-cursor.view::after {
    content: 'VIEW';
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    color: #ffffff !important;
    letter-spacing: 0.2em;
  }

  .custom-cursor-dot.view {
    opacity: 0 !important;
  }
}