/* =========================================
   NAVID SALEHZADEH — Personal Site
   Cinematic · Editorial · Dark
   ========================================= */

:root {
  /* Colors */
  --bg: #0a0908;
  --bg-2: #14110f;
  --bg-3: #1c1815;
  --surface: rgba(255, 255, 255, 0.02);
  --surface-hi: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);

  --ink: #f5f1ea;
  --ink-2: #d8d2c5;
  --ink-3: #8a857c;
  --ink-4: #5a554d;

  --accent: #c9a875;        /* warm copper/amber */
  --accent-2: #e0c089;      /* lighter copper */
  --accent-deep: #8a7048;
  --teal: #2d8a8a;          /* subtle teal accent */

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* ============= RESET ============= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; font-family: var(--font-serif); font-weight: 400; }
::selection { background: var(--accent); color: var(--bg); }

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

/* ============= LOADER ============= */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader-text {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.4em;
  color: var(--accent);
  font-weight: 500;
}
.loader-bar {
  width: 120px; height: 1px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}
.loader-bar span {
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: loader 1.4s var(--ease) forwards;
}
@keyframes loader { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============= CURSOR GLOW ============= */
.cursor-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(201, 168, 117, 0.07), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s var(--ease);
  opacity: 0;
  mix-blend-mode: screen;
}
@media (hover: hover) {
  .cursor-glow.is-active { opacity: 1; }
}

/* ============= NAV ============= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 14px var(--gutter);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  z-index: 2;
}
.nav-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 50%;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-brand:hover .nav-mark { background: var(--accent); color: var(--bg); }
.nav-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a:not(.nav-cta):hover { color: var(--accent); }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--bg) !important; }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav {
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
  text-align: center;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.mobile-menu a:hover { color: var(--accent); }

/* ============= HERO ============= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201, 168, 117, 0.10), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(45, 138, 138, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: 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.78 0 0 0 0 0.66 0 0 0 0 0.46 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.45) 90%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-meta { margin-bottom: 24px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.hero-eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 152px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero-line { display: block; overflow: hidden; }
.hero-word {
  display: inline-block;
  transform: translateY(110%);
  animation: heroIn 1.1s var(--ease) forwards;
}
.hero-line:nth-child(1) .hero-word { animation-delay: 0.1s; }
.hero-line:nth-child(2) .hero-word { animation-delay: 0.25s; }
.hero-word--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  font-weight: 300;
}
@keyframes heroIn { to { transform: translateY(0); } }

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.7s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-hi);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 0;
  display: flex; align-items: center; gap: 16px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1s forwards;
}
.hero-scroll-line {
  width: 60px; height: 1px;
  background: var(--ink-3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Hero portrait */
.hero-portrait {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/5;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.45s forwards;
}
.hero-portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.6),
    0 0 0 1px var(--border);
}
.hero-portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
  transition: transform 8s var(--ease);
}
.hero-portrait:hover .hero-portrait-frame img { transform: scale(1.05); }
.hero-portrait-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,9,8,0.55) 100%);
  pointer-events: none;
}
.hero-portrait-caption {
  position: absolute;
  bottom: -28px; left: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============= MARQUEE ============= */
.marquee {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 24px 0;
  position: relative;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.marquee-dot {
  color: var(--accent) !important;
  font-size: clamp(20px, 3vw, 32px) !important;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============= SECTION HEAD ============= */
.section-head {
  margin-bottom: clamp(48px, 6vw, 96px);
  max-width: 900px;
}
.section-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  margin-left: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title em { color: var(--accent); font-style: italic; font-weight: 300; }
.section-lede {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 24px;
  max-width: 640px;
}
.section-head--center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-head--center .section-eyebrow { margin-left: 0; }
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }

/* ============= ABOUT ============= */
.about {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-side { position: sticky; top: 100px; }
.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}
.about-meta { display: flex; flex-direction: column; gap: 14px; }
.about-meta div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.about-meta dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.about-meta dd {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
  text-align: right;
}
.about-body p {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.about-body p:last-child { margin-bottom: 0; }
.about-lead { font-size: clamp(19px, 1.5vw, 22px) !important; color: var(--ink) !important; }
.about-lead strong { color: var(--accent); font-weight: 500; }
.about-body strong { color: var(--ink); font-weight: 500; }

/* ============= SERVICES ============= */
.services {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  position: relative;
  background: var(--bg-2);
  padding: 40px 32px;
  transition: background 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 117, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover { background: var(--bg-3); }
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  position: relative;
}

/* ============= WORKS ============= */
.works {
  padding: clamp(80px, 12vw, 160px) 0;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.work-card {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  isolation: isolate;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 60px -20px rgba(0,0,0,0.7);
}
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.95);
}
.work-card:hover img { transform: scale(1.06); filter: saturate(1.1); }
.work-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 9, 8, 0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.work-card:hover .work-card-overlay { opacity: 1; }
.work-card-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.work-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.work-card-meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative; z-index: 1;
}

/* ============= VISION ============= */
.vision {
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative;
  overflow: hidden;
}
.vision-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201, 168, 117, 0.06), transparent 60%),
    var(--bg);
}
.vision-grain {
  position: absolute; inset: 0;
  background-image: 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.78 0 0 0 0 0.66 0 0 0 0 0.46 0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.vision-quote {
  max-width: 1100px;
  margin: 0 auto 80px;
  text-align: center;
  position: relative;
}
.vision-quote p {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-style: italic;
}
.vision-mark {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 1.3em;
  font-weight: 300;
  font-style: normal;
  line-height: 0;
  vertical-align: -0.2em;
  margin: 0 6px;
}
.vision-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1100px;
  margin: 0 auto;
}
.vision-col p {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.vision-col p:last-child { margin-bottom: 0; }

/* ============= COLLABORATORS ============= */
.collaborators {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.collaborators-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.collaborator {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s var(--ease);
  cursor: pointer;
}
.collaborator:not(a) { cursor: default; }
.collaborator:hover { padding-left: 16px; padding-right: 16px; }
.collaborator-info { flex: 1; }
.collaborator-role {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.collaborator h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.collaborator p {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 560px;
}
.collaborator-link {
  width: 56px; height: 56px;
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  flex-shrink: 0;
}
.collaborator:hover .collaborator-link {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ============= CONTACT ============= */
.contact {
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative;
}
.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.contact-title em { color: var(--accent); font-style: italic; font-weight: 300; }
.contact-lede {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 56px;
}
.contact-email {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 28px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  margin-bottom: 56px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.contact-email::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 0;
}
.contact-email:hover::before { opacity: 1; }
.contact-email > * { position: relative; z-index: 1; transition: color 0.3s var(--ease); }
.contact-email:hover .contact-email-value,
.contact-email:hover .contact-email-arrow { color: var(--bg); }
.contact-email-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-email:hover .contact-email-label { color: var(--bg); }
.contact-email-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contact-email-arrow {
  color: var(--ink-2);
  display: inline-flex;
  transition: transform 0.3s var(--ease);
}
.contact-email:hover .contact-email-arrow { transform: translate(4px, -4px); }
.contact-links {
  display: flex; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  margin-top: 16px;
}
.contact-link {
  display: flex; flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  min-width: 200px;
}
.contact-link:hover { border-color: var(--accent); background: var(--surface-hi); }
.contact-link-name {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.contact-link-handle {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
}

/* ============= FOOTER ============= */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  border-radius: 50%;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.footer-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-copy {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ============= LIGHTBOX ============= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-content {
  max-width: 700px;
  max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease);
}
.lightbox.is-open .lightbox-content { transform: scale(1); }
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.8);
}
.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  color: var(--ink);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ============= REVEAL ANIMATIONS ============= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-word, .hero-tagline, .hero-cta, .hero-scroll, .hero-portrait {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border-hi);
    border-radius: 50%;
    gap: 4px;
    z-index: 51;
    position: relative;
  }
  .nav-toggle span {
    display: block;
    width: 16px; height: 1px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-toggle span:first-child { transform: translateY(-3px); }
  .nav-toggle span:last-child { transform: translateY(3px); }
  .nav-toggle.is-open span:first-child { transform: rotate(45deg); }
  .nav-toggle.is-open span:last-child { transform: rotate(-45deg); }
  .nav-name { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 360px; margin: 0 auto; }
  .hero-scroll { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; max-width: 360px; margin: 0 auto; }

  .vision-body { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .hero { padding: 110px var(--gutter) 60px; }
  .hero-title { font-size: clamp(48px, 14vw, 80px); }
  .nav { padding: 16px var(--gutter); }
  .nav.is-scrolled { padding: 12px var(--gutter); }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .work-card-overlay { padding: 16px; }
  .work-card-title { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-email { flex-direction: column; gap: 8px; padding: 16px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .collaborator { flex-direction: column; align-items: flex-start; gap: 20px; }
  .collaborator:hover { padding-left: 8px; padding-right: 8px; }
  .vision-quote p { font-size: clamp(22px, 6vw, 32px); }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.btn:focus-visible, .nav-cta:focus-visible { outline-offset: 6px; }
