/* =============================================================
   Maureen van Veen — Portfolio
   Design system ported from the reference site, re-themed to the
   "Neutral elegance" palette (#FFDBBB · #CCBEB1 · #997E67 · #664930).
   Single global stylesheet (no build step, no scoped styles).
   ============================================================= */

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

:root {
  /* Brand — neutral elegance */
  --color-primary: #997e67;          /* medium brown — main accent */
  --color-primary-dark: #664930;     /* dark brown */
  --color-primary-light: rgba(153, 126, 103, 0.12);
  --color-primary-medium: rgba(153, 126, 103, 0.5);
  --color-accent: #ffdbbb;           /* warm peach highlight */
  --color-taupe: #ccbeb1;
  --color-secondary: #ebddcb;        /* soft cream */
  --color-cream: #f2e7da;
  --color-white: #ffffff;

  /* Text */
  --color-text-dark: #2b2018;
  --color-text-gray: #6e5f52;
  --color-text-light: #9c8b7c;

  /* Glass */
  --glass-bg: rgba(255, 251, 246, 0.7);
  --glass-bg-strong: rgba(255, 251, 246, 0.88);
  --glass-border: rgba(255, 255, 255, 0.55);

  /* Shadows (brown-tinted) */
  --shadow-sm: 0 2px 8px rgba(102, 73, 48, 0.08);
  --shadow-md: 0 8px 24px rgba(102, 73, 48, 0.14);
  --shadow-lg: 0 16px 48px rgba(102, 73, 48, 0.18);
  --shadow-card-hover: 0 40px 90px rgba(43, 32, 24, 0.45);

  /* Page background */
  --bg-gradient: linear-gradient(135deg, #fffdfb 0%, #f1e6d8 100%);

  /* Type */
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-script: "Caveat", "Brush Script MT", cursive;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Noise (brown-tinted grain) */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.40 0 0 0 0 0.29 0 0 0 0 0.19 0 0 0 0.16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

html {
  scroll-behavior: smooth;
}
html.has-panel {
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}
@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

img {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* Noise grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 200;
}

#app {
  position: relative;
  min-height: 100vh;
}

/* =============================================================
   Custom cursor
   ============================================================= */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 999px;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  transition:
    width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s;
}
.cursor-ring.is-hover {
  width: 70px;
  height: 70px;
  border-color: rgba(255, 255, 255, 0.95);
}
.cursor-dot.is-hover {
  width: 0;
  height: 0;
}
.cursor-ring.is-text {
  width: 6px;
  height: 22px;
  border-radius: 2px;
  border-color: rgba(255, 255, 255, 0.9);
}
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* =============================================================
   Scroll progress
   ============================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(153, 126, 103, 0.18);
  z-index: 110;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-accent));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.15s linear;
}

/* =============================================================
   Background orbs
   ============================================================= */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(153, 126, 103, 0.8), transparent 65%);
  animation: drift 22s ease-in-out infinite;
}
.orb-2 {
  width: 480px;
  height: 480px;
  top: 38%;
  right: -160px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 219, 187, 0.85), transparent 70%);
  animation: drift 28s ease-in-out -8s infinite reverse;
}
.orb-3 {
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(204, 190, 177, 0.9), transparent 70%);
  animation: drift 32s ease-in-out -14s infinite;
}
.orb-4 {
  width: 380px;
  height: 380px;
  top: 10%;
  right: 20%;
  background: radial-gradient(circle at 50% 50%, rgba(102, 73, 48, 0.45), transparent 70%);
  animation: drift 26s ease-in-out -4s infinite reverse;
}
@keyframes drift {
  0%,
  100% {
    transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1);
  }
  50% {
    transform: translate3d(calc(var(--px, 0px) + 40px), calc(var(--py, 0px) - 30px), 0) scale(1.08);
  }
}

/* =============================================================
   Layout primitives
   ============================================================= */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
}

main,
nav,
footer,
section {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.h-section {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    background 0.25s ease,
    color 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary {
  background: var(--color-text-dark);
  color: #fff;
  box-shadow: 0 8px 24px rgba(43, 32, 24, 0.25);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-primary-dark);
  border-radius: 999px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(102, 73, 48, 0.32);
}
.btn-primary:hover::before {
  transform: translateY(0);
}
.btn-glass {
  background: rgba(255, 251, 246, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--color-text-dark);
  box-shadow: 0 8px 24px rgba(102, 73, 48, 0.12);
}
.btn-glass:hover {
  transform: translateY(-3px);
  background: rgba(255, 251, 246, 0.96);
}
.btn-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}
.btn-glass .btn-arrow {
  background: rgba(153, 126, 103, 0.14);
  color: var(--color-primary-dark);
}
.btn:hover .btn-arrow {
  transform: translate(4px, -4px) rotate(-2deg);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* =============================================================
   Scrollbar
   ============================================================= */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-dark); }

/* =============================================================
   Navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 14px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 251, 246, 0.66);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  color: var(--color-primary-dark);
}
.nav-logo-mark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.nav-logo-tag {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--color-primary);
  opacity: 0.75;
  max-height: 12px;
  overflow: hidden;
  transform-origin: top left;
  transition:
    max-height 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-logo.compact .nav-logo-tag {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  margin-top: -4px;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  background: rgba(255, 251, 246, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  backdrop-filter: blur(20px);
}
.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-dark);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link.active {
  background: var(--color-primary-dark);
  color: #fff;
}
@media (max-width: 720px) {
  .nav-links {
    padding: 4px;
    gap: 2px;
  }
  .nav-link {
    padding: 7px 11px;
    font-size: 12px;
  }
  .nav-logo-mark { font-size: 17px; }
}
@media (max-width: 460px) {
  .nav-links { display: none; }
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-pill {
  display: inline-flex;
  padding: 4px;
  background: rgba(255, 251, 246, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  backdrop-filter: blur(20px);
}
.lang-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary-dark);
  transition: all 0.2s ease;
}
.lang-btn.active {
  background: var(--color-primary-dark);
  color: #fff;
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  min-height: 100vh;
  padding: 140px 0 60px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-inner { width: 100%; }
.hero-title {
  font-size: clamp(40px, 6.4vw, 100px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 880px;
  margin-bottom: 36px;
}
@media (max-width: 1100px) {
  .hero-title { max-width: 100%; }
}
.hero-title .row { display: block; }
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  vertical-align: top;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes word-up {
  to { transform: translateY(0); }
}
.hero-title .w1 > span { animation-delay: 0.05s; }
.hero-title .w2 > span { animation-delay: 0.12s; }
.hero-title .w3 > span { animation-delay: 0.19s; }
.hero-title .w5 > span { animation-delay: 0.4s; }
.hero-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #997e67 55%, #c9a07a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kinetic {
  position: relative;
  display: inline-block;
  vertical-align: top;
  min-width: 6ch;
  height: 1em;
  overflow: hidden;
  border-radius: 4px;
}
.kinetic-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.65, 0.05, 0.36, 1);
  will-change: transform;
}
.kinetic-track > span {
  height: 1em;
  display: block;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--color-primary-dark), #c9a07a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-meta {
  display: block;
  padding-top: 48px;
  padding-right: 400px;
  border-top: 1px solid rgba(153, 126, 103, 0.22);
}
@media (max-width: 1100px) {
  .hero-meta { padding-right: 0; }
}
.hero-meta-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-gray);
}
.hero-description {
  font-size: 17px;
  color: var(--color-text-dark);
  max-width: 500px;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-portrait {
  position: absolute;
  right: 48px;
  bottom: 80px;
  width: 320px;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1100px) {
  .hero-portrait { display: none; }
}

/* =============================================================
   About
   ============================================================= */
.about { padding: 120px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-media {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about-portrait:hover img { transform: scale(1.04); }
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(102, 73, 48, 0.3));
  pointer-events: none;
}
.about-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.about-tag .pin {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fa53a;
  box-shadow: 0 0 0 4px rgba(111, 165, 58, 0.25);
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-heading {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 8px;
}
.about-heading .script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.1em;
  background: linear-gradient(135deg, var(--color-primary-dark), #c9a07a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-p {
  font-size: 17px;
  color: var(--color-text-dark);
  max-width: 560px;
  text-wrap: pretty;
  line-height: 1.6;
}
.about-p strong {
  color: var(--color-primary-dark);
  font-weight: 600;
}
.about-p em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.about-skills {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
}
@media (max-width: 900px) {
  .about-skills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .about-skills { grid-template-columns: 1fr; }
}
.about-skill {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-skill:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.about-skill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(153, 126, 103, 0.14);
  color: var(--color-primary-dark);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.about-skill-title { font-size: 15px; font-weight: 600; }
.about-skill-desc {
  font-size: 13px;
  color: var(--color-text-gray);
  line-height: 1.4;
}

/* =============================================================
   Work / featured stage
   ============================================================= */
.work { padding: 120px 0 80px; }
.work-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
.work-intro {
  font-size: 18px;
  color: var(--color-text-dark);
  max-width: 380px;
  line-height: 1.5;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .work-header { grid-template-columns: 1fr; }
}
.stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  border-radius: 32px;
  padding: 24px;
  background: rgba(255, 251, 246, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  min-height: 340px;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--stage-grad, linear-gradient(135deg, #997e67, #c9a07a));
  opacity: 0;
  transition: opacity 0.8s ease, background 1.2s ease;
}
.stage.is-active::before { opacity: 0.16; }
.stage > * { position: relative; z-index: 1; }
@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
}
.stage-info {
  display: flex;
  flex-direction: column;
  padding: 12px 8px 8px 16px;
}
.stage-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.stage-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--color-primary-dark);
}
.stage-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.stage-title .swap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
}
.stage-title-text {
  display: inline-block;
  animation: wordUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.stage-summary {
  font-size: 15.5px;
  color: var(--color-text-dark);
  line-height: 1.5;
  max-width: 460px;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.stage-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.stage-tech-tag {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(153, 126, 103, 0.1);
  color: var(--color-primary-dark);
}
.stage-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.stage-anim { animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.stage-anim.a0 { animation-delay: 0s; }
.stage-anim.a1 { animation-delay: 0.04s; }
.stage-anim.a2 { animation-delay: 0.1s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes wordUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
.stage-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: 0 24px 60px rgba(102, 73, 48, 0.2);
  isolation: isolate;
}
.stage-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--stage-grad, linear-gradient(135deg, #997e67, #c9a07a));
  transition: background 1.2s ease;
}
.stage-visual-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.4), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.18), transparent 50%);
}
.stage-visual-thumb {
  position: absolute;
  width: 52%;
  max-width: 220px;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.stage-visual-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22%;
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.32);
}
.stage-visual-thumb.from { pointer-events: none; }
.stage-visual-thumb.enter { animation: thumb-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes thumb-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.86) rotate(-4deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}
.stage-visual-thumb.exit { animation: thumb-out 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes thumb-out {
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.1) rotate(4deg); }
}
.stage-year-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
}
.stage-progress {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}
.stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.4s ease, background 0.25s ease;
}
.stage-dot.active { width: 22px; background: #fff; }
.stage-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 0 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.stage-thumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.stage-thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.stage-thumb:hover { opacity: 1; transform: translateY(-3px); }
.stage-thumb.active {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(102, 73, 48, 0.25), 0 0 0 2px var(--color-primary-dark);
}
.stage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-nav { display: flex; gap: 8px; }
.stage-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  color: var(--color-primary-dark);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.stage-nav-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================================
   Tiles wall
   ============================================================= */
.tiles { padding: 60px 0 80px; }
.tile-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.tile-section-title { font-size: clamp(28px, 3vw, 38px); }
.tile-section-count { opacity: 0.85; }
.tile-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .tile-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tile-wall { grid-template-columns: 1fr; }
}
.tile-card { perspective: 1200px; }
.tile-card-inner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  height: 340px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  transform-style: preserve-3d;
}
.tile-card-inner:hover { box-shadow: 0 30px 80px rgba(43, 32, 24, 0.4); }
.tile-card-bg { position: absolute; inset: 0; z-index: 0; }
.tile-card-thumb-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.4);
  opacity: 0.85;
  transform: scale(1.4);
}
.tile-card-glass {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  background: rgba(20, 14, 9, 0.18);
  backdrop-filter: blur(80px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tile-card-thumb { width: 96px; height: 96px; position: relative; }
.tile-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile-card:hover .tile-card-thumb img { transform: scale(1.06); }
.tile-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tile-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}
.tile-card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.tile-card-sub {
  font-size: 13.5px;
  opacity: 0.85;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.tile-card-meta {
  font-size: 11.5px;
  opacity: 0.72;
  letter-spacing: 0.04em;
}
.tile-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s ease;
}
.tile-card:hover .tile-card-arrow {
  transform: translate(4px, -4px);
  background: rgba(255, 255, 255, 0.35);
}

/* =============================================================
   Project detail panel
   ============================================================= */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 14, 0.45);
  backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.panel-overlay.is-open { opacity: 1; pointer-events: auto; }
.panel {
  position: fixed;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(640px, calc(100vw - 48px));
  z-index: 100;
  background: rgba(255, 251, 246, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(28px) saturate(1.5);
  border-radius: 32px;
  box-shadow: -32px 32px 80px rgba(43, 32, 24, 0.32);
  transform: translateX(calc(100% + 48px));
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.panel::-webkit-scrollbar { width: 0; height: 0; display: none; }
.panel.is-open { transform: translateX(0); }
@media (max-width: 720px) {
  .panel { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
}
.panel-hero {
  position: relative;
  overflow: hidden;
  background: var(--panel-grad);
  padding: 40px;
  display: grid;
  place-items: center;
  height: 320px;
  flex-shrink: 0;
}
.panel-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--panel-thumb) center/cover no-repeat;
  filter: blur(70px) saturate(1.5);
  transform: scale(1.4);
  opacity: 0.9;
}
.panel-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3), transparent 55%);
}
.panel-hero-thumb {
  position: relative;
  height: 70%;
  aspect-ratio: 1 / 1;
  z-index: 2;
}
.panel-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22%;
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.32);
}
.panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  color: var(--color-primary-dark);
  display: grid;
  place-items: center;
  z-index: 3;
  transition: transform 0.25s ease, background 0.25s ease;
}
.panel-close:hover { transform: rotate(90deg); background: #fff; }
.panel-year {
  position: absolute;
  bottom: 16px;
  left: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 3;
}
.panel-body { padding: 32px 32px 48px; }
.panel-category {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.panel-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 8px 0 18px;
}
.panel-desc {
  font-size: 16px;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-bottom: 28px;
}
.panel-meta-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.panel-meta-item .panel-meta-k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.panel-meta-item .panel-meta-v {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
}
.panel-tech-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-gray);
  margin-bottom: 12px;
}
.panel-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.panel-tech-tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-dark);
  background: rgba(153, 126, 103, 0.1);
}
.panel-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 219, 187, 0.35);
  border: 1px solid rgba(153, 126, 103, 0.2);
  font-size: 13.5px;
  color: var(--color-primary-dark);
  margin-bottom: 28px;
}
.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =============================================================
   Contact
   ============================================================= */
.contact { padding: 120px 0; }
.contact-card {
  position: relative;
  border-radius: 36px;
  padding: 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% -10%, rgba(201, 160, 122, 0.55), transparent 55%),
    radial-gradient(circle at -10% 110%, rgba(255, 219, 187, 0.4), transparent 60%),
    linear-gradient(135deg, #3a2a1c, #664930);
  color: #fff;
  box-shadow: 0 30px 80px rgba(43, 32, 24, 0.45);
}
@media (max-width: 720px) {
  .contact-card { padding: 40px 28px; border-radius: 28px; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
.contact-left {
  min-width: 0; /* allow long content (e.g. email) to wrap within the grid column */
}
.contact-heading {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 18px 0 24px;
}
.contact-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}
.contact-intro {
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.88;
  max-width: 420px;
  margin-bottom: 36px;
}
.contact-eyebrow { color: var(--color-accent) !important; }
.contact-eyebrow::before { background: currentColor; }
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.25s ease, transform 0.3s ease;
  color: #fff;
}
.contact-method:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}
.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-method-label { font-size: 12px; opacity: 0.68; letter-spacing: 0.06em; }
.contact-method-value { font-size: 15px; font-weight: 600; }

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 32px;
  backdrop-filter: blur(12px);
  color: #fff;
}
.form-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.68;
  margin-bottom: 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  opacity: 0.82;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.14);
}
.field textarea { resize: vertical; min-height: 100px; }
.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 255, 255, 0.18);
}
.submit:disabled { opacity: 0.7; cursor: not-allowed; }
.submit-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(111, 165, 58, 0.22);
  border: 1px solid rgba(111, 165, 58, 0.4);
  font-size: 13px;
}
.submit-message.error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* =============================================================
   Footer
   ============================================================= */
.footer { padding: 56px 0 40px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(153, 126, 103, 0.2);
}
.footer-text { font-size: 13px; color: var(--color-text-gray); }
.footer-socials { display: flex; gap: 8px; }
.footer-soc {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  color: var(--color-primary-dark);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.footer-soc:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
  color: #fff;
}

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
