/* =========================================================
   Evan Egea — Studio / Agency Portfolio
   Dark, high-contrast, expressive typography
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #161616;
  --fg: #f5f3ee;
  --fg-soft: rgba(245, 243, 238, 0.55);
  --fg-mute: rgba(245, 243, 238, 0.35);
  --line: rgba(245, 243, 238, 0.08);
  --line-strong: rgba(245, 243, 238, 0.18);
  --accent: #ff3b1f;
  --accent-2: #ffea00;
  --accent-3: #6cffd1;
  --display: "Anton", "Bebas Neue", "Impact", sans-serif;
  --display-italic: "Fraunces", "Playfair Display", serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --max: 1480px;
  --pad: clamp(20px, 4vw, 60px);
  --rad: 0;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea { font: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 32px;
  right: var(--pad);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px 16px 28px;
  background: linear-gradient(135deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.28) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245,243,238,0.1);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}
/* Override btn styles inside sticky so they're more compact */
.sticky-cta .btn {
  padding: 10px 18px 10px 20px;
  font-size: 10px;
}
.sticky-cta .btn .arrow {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

@media (max-width: 540px) {
  .sticky-cta { bottom: 20px; right: 16px; padding: 10px 14px; }
}

/* ---------- Custom cursor ---------- */
.cursor {
  display: none;
}
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--fg);
  margin: -3px 0 0 -3px;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--fg);
  margin: -18px 0 0 -18px;
  transition: width 0.25s, height 0.25s, margin 0.25s;
}
.cursor.active .cursor-ring {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: var(--fg);
  border-color: transparent;
}
.cursor.active .cursor-dot { opacity: 0; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s, visibility 0.5s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-name {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.loader-name span { color: var(--accent); }
.loader-bar {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--line-strong);
  position: relative;
}
.loader-bar i {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--accent);
  transition: width 0.2s linear;
  display: block;
  height: 100%;
  width: 0;
}
.loader-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
body:not(.ready) { overflow: hidden; }

/* ---------- Container ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.4s var(--ease-out), padding 0.3s;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-header.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header.hidden { transform: translateY(-110%); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 18px;
  color: var(--bg);
}
.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-soft);
}
.header-meta::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(108, 255, 209, 0.18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(108, 255, 209, 0); } }

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.header-nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.header-nav-link:hover,
.header-nav-link.active {
  background: rgba(245,243,238,0.08);
  color: var(--fg);
}

@media (max-width: 480px) {
  .header-nav { display: none; }
}

.header-right {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.lang-btn {
  font: inherit;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--fg-soft);
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}
.lang-btn.on { background: var(--fg); color: var(--bg); }

.menu-btn {
  width: 60px;
  height: 36px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.menu-btn:hover { background: var(--accent); color: var(--bg); }
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.menu-btn .bars span { width: 14px; height: 1.5px; background: currentColor; }

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 100px var(--pad) 40px;
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path 0.6s var(--ease);
  pointer-events: none;
}
.menu-overlay.open {
  clip-path: circle(180% at calc(100% - 60px) 40px);
  pointer-events: auto;
}
.menu-list {
  list-style: none;
  margin: auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu-list a {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  gap: 24px;
  position: relative;
  transition: color 0.2s, transform 0.2s var(--ease-out);
}
.menu-list a:hover { color: var(--accent); transform: translateX(20px); }
.menu-list a small {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  align-self: center;
}
.menu-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--pad) 40px;
  overflow: hidden;
  isolation: isolate;
}

/* Hero background slideshow */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Multi-layer overlay: keeps text crisp at any image */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.65) 40%, rgba(10,10,10,0.10) 75%, transparent 100%),
    linear-gradient(to top, rgba(10,10,10,0.50) 0%, transparent 35%);
}

/* Overlay específico para proyectos.html — sombra ajustada al bloque de texto */
.proj-cover .hero-bg-overlay {
  background: radial-gradient(ellipse 22% 38% at 16% 42%, rgba(10,10,10,0.90) 0%, rgba(10,10,10,0.50) 60%, transparent 100%);
}

/* Project name ticker */
.hero-project-ticker {
  position: absolute;
  bottom: 80px;
  left: var(--pad);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticker-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.ticker-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.55);
  transition: opacity 0.4s;
}

.ticker-name.fade { opacity: 0; }

@media (max-width: 640px) {
  .hero-project-ticker { display: none; }
}
.hero-meta {
  position: absolute;
  top: 30vh;
  right: var(--pad);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.7);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}
.hero-meta strong { font-family: var(--display); font-size: 32px; color: var(--fg); letter-spacing: 0; }

.hero-title {
  font-family: var(--display);
  font-size: clamp(3.6rem, 14vw, 16rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0;
  position: relative;
  z-index: 3;
}
.hero-title em {
  font-family: var(--display-italic);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero-title .ln {
  display: block;
  overflow: hidden;
}
.hero-title .ln span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
body.ready .hero-title .ln span { transform: translateY(0); }
body.ready .hero-title .ln:nth-child(1) span { transition-delay: 0.05s; }
body.ready .hero-title .ln:nth-child(2) span { transition-delay: 0.18s; }
body.ready .hero-title .ln:nth-child(3) span { transition-delay: 0.32s; }

.hero-bottom {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 3;
}
.hero-intro {
  max-width: 560px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--fg-soft);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 16px 28px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.btn .arrow {
  display: inline-flex;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: currentColor;
  color: var(--bg);
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-ghost .arrow { background: currentColor; color: var(--bg); }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  right: var(--pad);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-scroll::after {
  content: "↓";
  display: inline-block;
  animation: nudge 1.6s infinite var(--ease-out);
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  animation: marquee 80000s linear infinite;
}
/* hover pause removed — marquee plays continuously */
.marquee-track > span { padding: 0 0.6em; }
.marquee-track > span:nth-child(odd) { color: var(--fg); }
.marquee-track > span:nth-child(even) { font-family: var(--display-italic); font-style: italic; font-weight: 300; color: var(--accent); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section { position: relative; padding: clamp(80px, 10vw, 160px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(48px, 6vw, 100px);
  align-items: end;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.section-num::before {
  content: "—";
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 14px 0 0;
}
.section-title em {
  font-family: var(--display-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.section-intro {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--fg-soft);
  max-width: 520px;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-up { opacity: 0; transform: translateY(60px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-up.in { opacity: 1; transform: translateY(0); }
.reveal-img { overflow: hidden; position: relative; }
.reveal-img img { transform: scale(1.15); transition: transform 1.4s var(--ease-out); }
.reveal-img.in img { transform: scale(1); }
.reveal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
  z-index: 2;
}
.reveal-img.in::after { transform: scaleX(0); transform-origin: right; }

/* ---------- Work / Projects ---------- */
.work {
  border-top: 1px solid var(--line);
}
.work-list {
  position: relative;
  border-top: 1px solid var(--line);
}
.work-item {
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr 0.7fr 80px;
  align-items: center;
  gap: 20px;
  padding: 28px 20px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 100px;
}
.work-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.72) 50%,
    rgba(10,10,10,0.45) 100%
  );
  transition: background 0.4s;
  z-index: 0;
}
.work-item:hover::before {
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.75) 0%,
    rgba(10,10,10,0.50) 50%,
    rgba(10,10,10,0.25) 100%
  );
}
.work-item > * { position: relative; z-index: 1; }
.work-item:hover { padding-left: 28px; padding-right: 28px; }
.work-item .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
}
.work-item .title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s var(--ease-out);
}
.work-item:hover .title { color: var(--accent); }
.work-item .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.work-item .yr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
}
.work-item .arrow-cell {
  text-align: right;
  font-size: 24px;
  color: var(--fg-mute);
  transition: color 0.3s, transform 0.3s var(--ease-out);
}
.work-item:hover .arrow-cell { color: var(--accent); transform: translateX(8px); }

.work-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 240px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  overflow: hidden;
  border-radius: 4px;
}
.work-preview.on { opacity: 1; }
.work-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Quick grid alt */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.work-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  display: block;
  isolation: isolate;
}
.work-card .ph {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.work-card:hover img { transform: scale(1.06); }
.work-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.work-card .meta strong { font-family: var(--display); color: var(--fg); font-size: 18px; letter-spacing: 0; }
.work-card.s4 { grid-column: span 4; }
.work-card.s6 { grid-column: span 6; }
.work-card.s8 { grid-column: span 8; }
.work-card.s12 { grid-column: span 12; }

/* ---------- About ---------- */
/* ---------- About Hero (full-bleed photo with text overlay) ---------- */
.about-hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.about-hero-bg {
  position: absolute;
  inset: 0;
}
.about-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  /* Strong dark gradient on the left/bottom where the text sits */
  background: linear-gradient(
    105deg,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.80) 38%,
    rgba(10,10,10,0.30) 65%,
    rgba(10,10,10,0.05) 100%
  );
  pointer-events: none;
}
.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: clamp(60px, 8vw, 120px) var(--pad) clamp(60px, 8vw, 120px) clamp(40px, 8vw, 120px);
}
.about-hero-content h2 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 32px;
  color: var(--fg);
}
.about-hero-content h2 em {
  font-family: var(--display-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.about-hero-content p {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  color: rgba(245,243,238,0.82);
  margin: 0 0 18px;
  line-height: 1.7;
  max-width: 500px;
}
.about-hero-content p:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .about-hero { min-height: 100svh; align-items: flex-end; }
  .about-hero-overlay {
    background: linear-gradient(
      to top,
      rgba(10,10,10,0.95) 0%,
      rgba(10,10,10,0.70) 55%,
      rgba(10,10,10,0.10) 100%
    );
  }
  .about-hero-content {
    padding: 40px var(--pad) 60px;
    max-width: 100%;
  }
}

.about {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-bottom: clamp(20px, 3vw, 40px);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.about-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 50%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--bg-alt);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.about-text h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 32px;
}
.about-text h2 em {
  font-family: var(--display-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.about-text p { font-size: 1.05rem; color: var(--fg-soft); margin: 0 0 16px; max-width: 520px; }
.about-quote {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 59, 31, 0.05);
}
.about-quote h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.about-quote p { margin: 0; color: var(--fg); font-size: 1rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(20px, 3vw, 40px);
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.fact {
  background: var(--bg-alt);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fact strong {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--fg);
}
.fact strong em {
  font-family: var(--display-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.fact span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* ---------- Skills ---------- */
.skills { border-top: 1px solid var(--line); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.skill-col {
  padding: 36px 28px;
  background: #1c1c1c;
}
.skill-col h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.skill-col ul { list-style: none; margin: 0; padding: 0; }
.skill-col li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 1.05rem;
}
.skill-col li:last-child { border-bottom: 0; }
.skill-col .name { font-family: var(--display); letter-spacing: -0.01em; font-size: 1.3rem; text-transform: uppercase; }
.skill-col .lvl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.skills-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 0;
}
.skill-block {
  padding: 36px 28px;
  background: #1c1c1c;
}
.skill-block h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}
.skill-block ul { list-style: none; padding: 0; margin: 0; }
.skill-block li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.skill-block li:last-child { border-bottom: 0; }
.skill-block .row-title {
  font-family: var(--display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.skill-block .row-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-soft);
  text-transform: uppercase;
  align-self: center;
}

.hobbies-row {
  background: var(--bg-card);
  padding: 36px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-top: 0;
}
.hobbies-row strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: auto;
}
.hobbies-row span {
  font-family: var(--display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding: 0 12px;
  border-left: 1px solid var(--line-strong);
}
.hobbies-row span:first-of-type { border-left: 0; }

/* ---------- Contact ---------- */
.contact {
  border-top: 1px solid var(--line);
  background: var(--accent);
  color: var(--bg);
}
.contact ::selection { background: var(--bg); color: var(--accent); }
.contact .section-num { color: rgba(0,0,0,0.6); }
.contact .section-num::before { color: var(--bg); }
.contact-title {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 40px;
}
.contact-title em {
  font-family: var(--display-italic);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--bg);
  opacity: 0.55;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-info p { font-size: 1.1rem; max-width: 480px; color: rgba(0, 0, 0, 0.75); }
.contact-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.2s, color 0.2s;
}
.contact-row:hover { background: var(--fg); color: var(--bg); }
.contact-row .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: block;
  margin-bottom: 4px;
}
.contact-row:hover .lbl { color: rgba(0,0,0,0.5); }
.contact-row strong {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.contact-row .arr { margin-left: auto; font-size: 22px; }

.contact-form { background: var(--bg); padding: 36px; color: var(--fg); }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 14px 16px;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-alt);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-success {
  display: none;
  padding: 14px 16px;
  background: var(--accent-3);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-success.on { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px var(--pad) 24px;
}
.footer-cta {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 60px;
}
.footer-cta a { color: var(--fg); transition: color 0.2s; display: inline-block; }
.footer-cta a:hover { color: var(--accent); }
.footer-cta em {
  font-family: var(--display-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 6px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================================
   Showcase Slider
   ========================================================= */

.showcase {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}

.showcase-track {
  display: flex;
  height: 100%;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.showcase-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}

.showcase-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.1s var(--ease-out);
  filter: brightness(0.55);
}

.showcase-slide.active img {
  transform: scale(1);
}

/* Gradient overlay */
.showcase-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.5) 100%
  );
  z-index: 1;
}

.showcase-info {
  position: absolute;
  bottom: clamp(40px, 8vh, 90px);
  left: clamp(24px, 6vw, 90px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.showcase-name {
  font-family: var(--display);
  font-size: clamp(3.5rem, 12vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.85s var(--ease-out) 0.12s, opacity 0.85s var(--ease-out) 0.12s;
}

.showcase-slide.active .showcase-name {
  transform: translateY(0);
  opacity: 1;
}

.showcase-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.6);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.75s var(--ease-out) 0.28s, opacity 0.75s var(--ease-out) 0.28s;
}

.showcase-slide.active .showcase-tag {
  transform: translateY(0);
  opacity: 1;
}

/* Dots */
.showcase-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.showcase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245,243,238,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.showcase-dot.on {
  background: var(--accent);
  transform: scale(1.35);
}

/* Arrows */
.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(10px);
  color: var(--fg);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245,243,238,0.14);
  transition: background 0.25s, color 0.25s, transform 0.25s;
  cursor: pointer;
}

.showcase-arrow:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.08);
}

.showcase-arrow.prev { left: clamp(16px, 3vw, 40px); }
.showcase-arrow.next { right: clamp(16px, 3vw, 40px); }

/* progress bar removed */

.showcase-hint {
  position: absolute;
  bottom: 28px;
  right: clamp(16px, 4vw, 50px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.3);
  z-index: 5;
}

@media (max-width: 640px) {
  .showcase-arrow { display: none; }
  .showcase-hint { display: none; }
}

/* =========================================================
   Blog
   ========================================================= */

.blog {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

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

.blog-card {
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
}

.blog-card-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.8s;
  filter: grayscale(20%);
}

.blog-card-img:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.blog-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  padding: 5px 10px;
}

.blog-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.blog-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.blog-card-body h3 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.blog-card-body h3 a:hover { color: var(--accent); }

.blog-card-body p {
  font-size: 0.95rem;
  color: var(--fg-soft);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.blog-read {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.25s var(--ease-out);
}

.blog-read:hover { gap: 12px; }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Project page
   ========================================================= */

/* New cover: image full-bleed without crop + text overlay on empty side */
.proj-cover {
  position: relative;
  width: 100%;
  padding-top: 80px; /* clear header */
  background: var(--bg);
}
.proj-cover-img {
  width: 100%;
  height: calc(100vh - 80px);
  display: block;
  object-fit: cover;
  object-position: center center;
}
.proj-cover-overlay {
  position: absolute;
  z-index: 4;
  padding: clamp(40px, 6vw, 80px);
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: none;
}
.proj-cover-overlay > * { pointer-events: auto; }
/* Side variants */
.proj-cover[data-side="left"] .proj-cover-overlay {
  top: 80px;
  left: 0;
  bottom: 0;
  justify-content: flex-start;
  padding-top: clamp(40px, 6vw, 80px);
}
.proj-cover[data-side="right"] .proj-cover-overlay {
  top: 80px;
  right: 0;
  bottom: 0;
  justify-content: center;
}
.proj-cover[data-side="bottom"] .proj-cover-overlay {
  bottom: 0;
  left: 0;
  width: 100%;
  padding-top: 30vh; /* gradient room */
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.0) 100%);
  justify-content: flex-end;
}

.proj-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 999px;
  transition: color 0.2s, gap 0.2s, background 0.2s;
}
.proj-back:hover { color: var(--accent); gap: 16px; }

.proj-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 999px;
  align-self: flex-start;
}

.proj-cover h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
  max-width: 100%;
}
.proj-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.4;
  color: var(--fg);
  max-width: 100%;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

/* Meta block below cover */
.proj-meta-section {
  padding: 60px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proj-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
}
.proj-meta .item {
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(8px);
  padding: 22px 24px;
}
.proj-meta .lbl {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: block;
  margin-bottom: 10px;
}
.proj-meta strong {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: normal;
}

.proj-section { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.proj-section .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.proj-section .lbl-col {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  position: sticky;
  top: 100px;
}
.proj-section .lbl-col strong { color: var(--accent); display: block; font-size: 14px; margin-bottom: 8px; }
.proj-section .body-col p {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--fg);
  max-width: 760px;
  margin: 0 0 18px;
}

.proj-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
}
.proj-img-pair .ph { overflow: hidden; aspect-ratio: 4/5; }
.proj-img-pair .ph img { width: 100%; height: 100%; object-fit: cover; }

.proj-img-full {
  width: 100%;
  margin: 80px 0;
  overflow: hidden;
}
.proj-img-full img { width: 100%; height: auto; max-height: 90vh; object-fit: cover; }

.proj-gallery { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.proj-gallery h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.gallery-grid .ph {
  overflow: hidden;
  background: var(--bg-card);
  cursor: zoom-in;
}
.gallery-grid .ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.gallery-grid .ph:hover img { transform: scale(1.04); }
.gallery-grid .s4  { grid-column: span 4; aspect-ratio: 4/3; }
.gallery-grid .s6  { grid-column: span 6; aspect-ratio: 3/2; }
.gallery-grid .s8  { grid-column: span 8; aspect-ratio: 16/9; }
.gallery-grid .s12 { grid-column: span 12; aspect-ratio: 21/9; }
.gallery-grid .tall { aspect-ratio: 3/4 !important; }

.next-project {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.next-project .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 20px;
}
.next-project a {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: inline-block;
  transition: color 0.3s, transform 0.5s var(--ease-out);
  position: relative;
}
.next-project a:hover { color: var(--accent); transform: translateY(-6px); }
.next-project a em {
  font-family: var(--display-italic);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}
.lightbox.on { display: flex; }
.lightbox img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .header-meta { display: none; }
  .lang-switch { padding: 4px; }
  .hero-meta { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .work-item { grid-template-columns: 40px 1fr 60px; gap: 14px; }
  .work-item .tag, .work-item .yr { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.s4, .work-card.s6, .work-card.s8 { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-extra { grid-template-columns: 1fr; }
  .hobbies-row { flex-direction: column; align-items: flex-start; }
  .hobbies-row span { padding-left: 0; border-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .proj-meta { grid-template-columns: 1fr 1fr; }
  .proj-section .wrap { grid-template-columns: 1fr; }
  .proj-cover[data-side="left"] .proj-cover-overlay,
  .proj-cover[data-side="right"] .proj-cover-overlay,
  .proj-cover[data-side="bottom"] .proj-cover-overlay {
    position: relative;
    top: auto; bottom: auto; left: 0; right: 0;
    width: 100%;
    padding: 40px var(--pad);
    background: var(--bg);
  }
  .proj-cover-img { max-height: 60vh; }
  .proj-section .lbl-col { position: static; }
  .gallery-grid .s4, .gallery-grid .s6 { grid-column: span 6; }
  .gallery-grid .s8, .gallery-grid .s12 { grid-column: span 12; }
  .section-head { grid-template-columns: 1fr; }
  .work-preview { display: none; }
}

@media (max-width: 540px) {
  .menu-list a { font-size: clamp(2.4rem, 12vw, 4rem); }
  .menu-list a small { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-grid .s4, .gallery-grid .s6, .gallery-grid .s8, .gallery-grid .s12 { grid-column: 1 / -1; }
}

@media (pointer: coarse) {
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
   
/* =====================
   PROCESS ANNOTATED GRID
   ===================== */
.pa-section {
  padding: 0 0 clamp(60px, 8vw, 120px) 0;
}
.pa-section .wrap {
  display: block;
}
.process-annotated {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 32px);
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 100%;
}
.pa-label {
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.pa-bar { display: none; }
.pa-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}
.pa-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px 18px rgba(10,10,10,0.75);
  pointer-events: none;
  z-index: 1;
}
.pa-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pa-item:hover .pa-photo img { transform: scale(1.03); }
.pa-text {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.65;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
@media (max-width: 900px) {
  .process-annotated { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .process-annotated { grid-template-columns: 1fr; }
}
