/* ============================================
   ELARA VANCE — Photography Portfolio
   ============================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --surface: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f1ec;
  --text-dim: #a8a39a;
  --text-mute: #6e6960;
  --accent: #e8c39e;        /* warm champagne */
  --accent-2: #c89b6a;
  --gold: #d4a574;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.25, 1, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

html, body { width: 100%; }

@media (max-width: 900px) { body { cursor: auto; } }

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

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

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

::selection { background: var(--accent); color: var(--bg); }

/* ============ Custom Cursor ============ */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background 0.35s var(--ease), opacity 0.3s ease;
  mix-blend-mode: difference;
}
.cursor {
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: #fff; border-radius: 50%;
  transition: transform 0.08s linear, opacity 0.3s ease;
}
.cursor.hover { width: 70px; height: 70px; background: rgba(232, 195, 158, 0.15); border-color: var(--accent); }
.cursor.view { width: 90px; height: 90px; background: rgba(255,255,255,0.95); border-color: transparent; }
.cursor.view::after {
  content: 'VIEW'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--bg);
}
.cursor.view ~ .cursor-dot, .cursor.hover ~ .cursor-dot { opacity: 0; }

@media (max-width: 900px) {
  .cursor, .cursor-dot { display: none; }
}

/* ============ Grain ============ */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Scroll progress ============ */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #ffe7c8, var(--accent));
  background-size: 200% 100%;
  z-index: 200; pointer-events: none;
  box-shadow: 0 0 14px rgba(232, 195, 158, 0.55);
  animation: shimmer 4s linear infinite;
  transition: width 0.12s linear;
}
@keyframes shimmer { to { background-position: 200% 0; } }

/* ============ Aurora glow ============ */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.22;
  mix-blend-mode: screen;
}
.aurora span:nth-child(1) {
  width: 520px; height: 520px;
  top: -10%; left: -8%;
  background: radial-gradient(circle, #e8c39e 0%, transparent 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 620px; height: 620px;
  top: 30%; right: -12%;
  background: radial-gradient(circle, #6a92c8 0%, transparent 70%);
  opacity: 0.14;
  animation: drift2 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 480px; height: 480px;
  bottom: -10%; left: 30%;
  background: radial-gradient(circle, #c89b6a 0%, transparent 70%);
  opacity: 0.16;
  animation: drift3 28s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-100px, 60px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(80px, -100px) scale(1.08); } }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.loader-name {
  font-family: var(--serif); font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.18em; font-weight: 300;
  background: linear-gradient(180deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.loader-bar {
  width: min(420px, 60vw); height: 1px; background: var(--line); position: relative; overflow: hidden;
}
.loader-bar span {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: loadFill 2.4s var(--ease) forwards;
}
@keyframes loadFill { to { width: 100%; } }
.loader-count {
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  letter-spacing: 0.2em;
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), backdrop-filter 0.4s;
  mix-blend-mode: difference;
}
.nav.scrolled {
  padding: 14px 48px;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(20px) saturate(140%);
  mix-blend-mode: normal;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  letter-spacing: 0.04em;
}
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-block;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(232, 195, 158, 0.35), 0 8px 24px -10px rgba(232, 195, 158, 0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -8px rgba(232, 195, 158, 0.7);
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.04em; color: var(--text-dim);
  position: relative; padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 100px;
  font-size: 12px; letter-spacing: 0.08em;
  transition: all 0.4s var(--ease);
}
.nav-cta:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-cta {
    padding: 9px 14px;
    font-size: 11px;
    background: rgba(10, 10, 11, 0.22);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 460px) {
  .logo-text { font-size: 16px; }
  .logo-mark { width: 38px; height: 38px; }
  .nav-cta span { display: none; }
  .nav-cta { width: 42px; height: 42px; justify-content: center; padding: 0; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 48px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10% -5%; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55) saturate(0.95) contrast(1.05);
  transform: scale(1.1);
  animation: heroZoom 18s var(--ease) infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.18); } }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.2) 40%, rgba(10,10,11,0.95) 100%),
    radial-gradient(1200px 600px at 80% 30%, rgba(232, 195, 158, 0.12), transparent 60%);
}

.hero-content {
  position: relative; z-index: 2; max-width: 1100px; padding-top: 80px;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--text-dim); text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,0.02); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 36px;
  opacity: 0; transform: translateY(20px);
  animation: fade 0.9s var(--ease) 0.6s forwards, riseUp 0.9s var(--ease) 0.6s forwards;
}
@keyframes riseUp { to { transform: translateY(0); } }
.hero-meta .dot {
  width: 6px; height: 6px; background: #6ee7a7; border-radius: 50%;
  box-shadow: 0 0 10px #6ee7a7;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.8); } }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 9.5vw, 168px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}
.hero-title em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 1.2s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.25s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.4s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  max-width: 540px; font-size: 17px; color: var(--text-dim);
  margin-bottom: 44px;
  opacity: 0; animation: fade 1s var(--ease) 0.8s forwards;
}
@keyframes fade { to { opacity: 1; } }

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fade 1s var(--ease) 1s forwards;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 100px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.5s;
  position: relative; overflow: hidden;
  will-change: transform;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 32px -10px rgba(232, 195, 158, 0.5);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(232, 195, 158, 0.7); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--text);
  transform: translateY(101%); transition: transform 0.5s var(--ease);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover svg { transform: translate(2px, -2px); }
.btn-primary svg { transition: transform 0.4s var(--ease); }

.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-side {
  position: absolute; right: 48px; bottom: 80px; z-index: 2;
  display: flex; gap: 36px;
  opacity: 0; animation: fade 1s var(--ease) 1.2s forwards;
}
.hero-stat { display: flex; flex-direction: column; gap: 6px; }
.hero-stat .num {
  font-family: var(--serif); font-size: 36px; font-weight: 300;
  color: var(--accent);
}
.hero-stat span:last-child {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em;
  color: var(--text-mute); text-transform: uppercase;
}

.scroll-hint {
  position: absolute; right: 48px; bottom: 36px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em;
  color: var(--text-mute); text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0; animation: fade 1s var(--ease) 1.4s forwards;
  pointer-events: none;
}
.scroll-hint span { transform: rotate(180deg); }
.scroll-line {
  width: 1px; height: 64px; background: var(--line-strong); position: relative; overflow: hidden;
  writing-mode: horizontal-tb;
}
.scroll-line::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 30%;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -30%; opacity: 0; }
  20% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Hero corner ticks (subtle futuristic frame) */
.hero-corner {
  position: absolute; width: 36px; height: 36px; z-index: 2;
  pointer-events: none; opacity: 0.55;
}
.hero-corner span {
  position: absolute; background: var(--accent);
}
.hero-corner span:nth-child(1) { width: 14px; height: 1px; }
.hero-corner span:nth-child(2) { width: 1px; height: 14px; }
.hero-corner.tl { top: 24px; left: 24px; }
.hero-corner.tl span:nth-child(1) { top: 0; left: 0; }
.hero-corner.tl span:nth-child(2) { top: 0; left: 0; }
.hero-corner.tr { top: 24px; right: 24px; }
.hero-corner.tr span:nth-child(1) { top: 0; right: 0; }
.hero-corner.tr span:nth-child(2) { top: 0; right: 0; }
.hero-corner.bl { bottom: 24px; left: 24px; }
.hero-corner.bl span:nth-child(1) { bottom: 0; left: 0; }
.hero-corner.bl span:nth-child(2) { bottom: 0; left: 0; }
.hero-corner.br { bottom: 24px; right: 24px; }
.hero-corner.br span:nth-child(1) { bottom: 0; right: 0; }
.hero-corner.br span:nth-child(2) { bottom: 0; right: 0; }

@media (max-width: 900px) {
  .hero { padding: 116px 20px 70px; align-items: flex-start; }
  .hero-bg img { object-position: 56% center; }
  .hero-bg-overlay {
    background:
      linear-gradient(180deg, rgba(10,10,11,0.28) 0%, rgba(10,10,11,0.34) 35%, rgba(10,10,11,0.92) 100%),
      radial-gradient(900px 460px at 64% 30%, rgba(232, 195, 158, 0.12), transparent 68%);
  }
  .hero-content { width: 100%; padding-top: 0; }
  .hero-meta {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.16em;
    white-space: normal;
  }
  .hero-title {
    font-size: clamp(50px, 12vw, 74px);
    line-height: 0.98;
    margin-bottom: 28px;
  }
  .hero-sub {
    max-width: 34rem;
    font-size: 16px;
    margin-bottom: 34px;
  }
  .hero-actions { gap: 12px; }
  .btn { padding: 14px 22px; font-size: 12px; }
  .hero-side, .scroll-hint { display: none; }
}

@media (max-width: 520px) {
  .hero { padding-top: 108px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { justify-content: center; width: 100%; }
}

/* ============ Marquee ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 36px; white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 32px);
  font-style: italic; color: var(--text-mute);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
section { position: relative; z-index: 2; }

.section-head {
  padding: 140px 48px 60px; max-width: 1100px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.25em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--accent);
  display: inline-block;
}
.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: 17px; color: var(--text-dim); max-width: 620px;
}

@media (max-width: 900px) {
  .section-head { padding: 76px 20px 34px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.2em; margin-bottom: 18px; }
  .section-title { font-size: clamp(38px, 10vw, 62px); line-height: 1.04; }
  .section-sub { font-size: 16px; line-height: 1.7; }
}

/* ============ Filters ============ */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 48px 36px;
}
.chip {
  padding: 10px 20px; border-radius: 100px;
  border: 1px solid var(--line-strong);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--text-dim); transform: translateY(-2px); }
.chip.active {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
  box-shadow: 0 8px 24px -10px rgba(232, 195, 158, 0.6);
}

@media (max-width: 900px) { .filters { padding: 0 20px 24px; } }

@media (max-width: 520px) {
  .filters { gap: 8px; }
  .chip { padding: 9px 14px; font-size: 11px; letter-spacing: 0.06em; }
}

/* ============ Gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  padding: 0 48px 120px;
  grid-auto-flow: dense;
}
.card {
  grid-column: span 4;
  position: relative; overflow: hidden; border-radius: 6px;
  background: var(--surface);
  aspect-ratio: 4/5;
  transition: transform 0.7s var(--ease), box-shadow 0.6s var(--ease), opacity 0.7s;
  opacity: 0; transform: translateY(50px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 40px -30px rgba(0,0,0,0.8);
  will-change: transform, opacity;
}
.card.in { opacity: 1; transform: translateY(0); }
.card.tall { grid-column: span 4; aspect-ratio: 3/5; }
.card.wide { grid-column: span 8; aspect-ratio: 16/10; }
.card.hidden { display: none; }
.card:hover { box-shadow: 0 1px 0 rgba(232,195,158,0.18) inset, 0 40px 80px -30px rgba(0,0,0,0.9); }

.card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.7s;
  filter: saturate(0.92) brightness(0.92) contrast(1.02);
}
.card:hover img { transform: scale(1.08); filter: saturate(1.05) brightness(1) contrast(1.04); }
.card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.92) 100%);
  opacity: 0.7; transition: opacity 0.5s;
  pointer-events: none;
}
.card:hover::after { opacity: 0.95; }
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(120deg, transparent 30%, rgba(232,195,158,0.18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.9s var(--ease);
  pointer-events: none; mix-blend-mode: overlay;
}
.card:hover::before { transform: translateX(110%); }

figcaption {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 3;
  transform: translateY(8px); opacity: 0.92;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}
.card:hover figcaption { transform: translateY(0); opacity: 1; }
.cap-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em;
  color: var(--accent); text-transform: uppercase;
}
.cap-title {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  letter-spacing: -0.01em;
}
.cap-meta {
  font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .card, .card.tall { grid-column: span 6; aspect-ratio: 4/5; }
  .card.wide { grid-column: span 12; aspect-ratio: 16/9; }
}
@media (max-width: 700px) {
  .gallery { padding: 0 20px 80px; gap: 12px; }
  .card, .card.tall, .card.wide { grid-column: span 12; aspect-ratio: 4/5; }
  figcaption { left: 18px; right: 18px; bottom: 18px; }
  .cap-title { font-size: 22px; }
}

/* ============ About ============ */
.about { padding: 140px 48px; }
.about-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center;
  max-width: 1400px; margin: 0 auto;
}
.about-image {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 4px;
}
.about-image img {
  width: 100%; height: 110%; object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.about-badge {
  position: absolute; top: 24px; right: 24px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif);
  animation: spinSlow 14s linear infinite;
}
.about-badge span { font-size: 10px; letter-spacing: 0.2em; }
.about-badge strong { font-size: 22px; font-weight: 400; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.about-text .section-title { font-size: clamp(34px, 4.5vw, 64px); }
.about-text p {
  color: var(--text-dim); font-size: 16px;
  margin-bottom: 18px; max-width: 540px;
}
.about-list {
  list-style: none; margin: 36px 0; padding: 0;
  border-top: 1px solid var(--line);
}
.about-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.about-list span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--text-mute); text-transform: uppercase;
}

@media (max-width: 1000px) {
  .about { padding: 90px 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .about { padding: 76px 20px; }
  .about-image { aspect-ratio: 4/4.8; }
  .about-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .about-list strong { line-height: 1.45; }
}

/* ============ Process ============ */
.process { padding-bottom: 120px; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 0 48px;
  border-top: 1px solid var(--line);
}
.step {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.5s var(--ease);
  overflow: hidden;
}
.step::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.step:hover::before { transform: scaleX(1); }
.step:last-child { border-right: none; }
.step:hover { background: var(--bg-2); }
.step:hover h3 { color: var(--accent); }
.step h3 { transition: color 0.4s var(--ease); }
.step-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.25em;
  color: var(--accent); text-transform: uppercase;
  display: block; margin-bottom: 36px;
}
.step h3 {
  font-family: var(--serif); font-weight: 300; font-size: 32px;
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.step p { color: var(--text-dim); font-size: 14px; }

@media (max-width: 900px) {
  .process { padding-bottom: 86px; }
  .steps { grid-template-columns: 1fr; padding: 0 20px; }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 0; }
}

/* ============ Tools / AI Models ============ */
.tools { padding-bottom: 120px; }
.tools-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  padding: 0 48px;
  max-width: 1400px; margin: 0 auto;
}
.tool-card {
  position: relative;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 195, 158, 0.04) 0%, transparent 60%),
    var(--surface);
  transition: all 0.5s var(--ease);
  overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
                              rgba(232, 195, 158, 0.08), transparent 40%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.tool-card.featured {
  border-color: rgba(232, 195, 158, 0.35);
  background:
    linear-gradient(135deg, rgba(232, 195, 158, 0.1) 0%, rgba(232, 195, 158, 0.02) 60%),
    var(--surface);
}
.tool-card.placeholder {
  border-style: dashed;
  opacity: 0.76;
}
.tool-card.placeholder:hover { opacity: 0.94; }

.tool-card header { margin-bottom: 20px; }
.tool-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em;
  color: var(--accent); text-transform: uppercase;
  padding: 6px 12px; border: 1px solid rgba(232, 195, 158, 0.3); border-radius: 100px;
  margin-bottom: 18px;
}
.placeholder .tool-tag { color: var(--text-mute); border-color: var(--line); }
.tool-card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 28px;
  letter-spacing: -0.01em;
}
.tool-card p {
  color: var(--text-dim); font-size: 15px; margin-bottom: 24px;
}
.tool-meta { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tool-meta li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.tool-meta li:last-child { border-bottom: none; }
.tool-meta span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--text-mute); text-transform: uppercase;
}

.tools-note {
  display: flex; align-items: center; gap: 10px;
  max-width: 1400px; margin: 36px auto 0; padding: 18px 48px;
  font-size: 13px; color: var(--text-mute);
  font-style: italic;
}
.tools-note svg { color: var(--accent); flex-shrink: 0; }

@media (max-width: 900px) {
  .tools { padding-bottom: 86px; }
  .tools-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .tools-note { padding: 18px 20px; }
}

@media (max-width: 700px) {
  .tool-card { padding: 26px 22px; }
  .tool-card h3 { font-size: 24px; }
  .tool-meta li {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .tools-note { align-items: flex-start; line-height: 1.7; }
}

/* ============ Contact ============ */
.contact {
  padding: 140px 48px 0;
  position: relative;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(232, 195, 158, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #050506 100%);
}
.contact::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 1400px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.contact-inner { max-width: 1400px; margin: 0 auto; padding-bottom: 80px; }
.contact-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.95; letter-spacing: -0.03em;
  margin: 24px 0 60px;
}
.contact-title em { font-style: italic; color: var(--accent); }
.contact-mail {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--serif); font-size: clamp(22px, 3vw, 40px);
  font-weight: 300; letter-spacing: -0.01em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-strong);
  transition: all 0.4s var(--ease);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); gap: 28px; }
.contact-mail svg { transition: transform 0.4s var(--ease); }
.contact-mail:hover svg { transform: translate(4px, -4px) rotate(0); }

.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 80px;
  padding-top: 36px; border-top: 1px solid var(--line);
}
.contact-grid div { display: flex; flex-direction: column; gap: 8px; }
.contact-grid span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em;
  color: var(--text-mute); text-transform: uppercase;
}
.contact-grid strong { font-weight: 400; font-size: 16px; }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--text-mute); text-transform: uppercase;
  flex-wrap: wrap;
}
.footer-social { display: flex; gap: 24px; }
.footer-social a { transition: color 0.3s; }
.footer-social a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .contact { padding: 90px 20px 0; }
  .contact-title { font-size: clamp(44px, 13vw, 76px); margin-bottom: 42px; }
  .contact-mail { font-size: clamp(21px, 5vw, 30px); gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer { font-size: 10px; }
}

@media (max-width: 560px) {
  .footer { align-items: flex-start; flex-direction: column; }
  .footer-social { flex-wrap: wrap; gap: 16px; }
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(5, 5, 6, 0.96);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure {
  max-width: 88vw; max-height: 86vh;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  transform: scale(0.96); transition: transform 0.6s var(--ease);
}
.lightbox.open .lb-figure { transform: scale(1); }
.lb-figure img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(232, 195, 158, 0.25);
  border-radius: 4px;
}
.lb-figure figcaption {
  position: static; font-family: var(--serif); font-size: 18px;
  color: var(--text-dim); letter-spacing: 0.02em;
}
.lb-close, .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: all 0.4s var(--ease);
  background: rgba(255,255,255,0.02); backdrop-filter: blur(10px);
}
.lb-close { top: 32px; right: 32px; transform: none; }
.lb-prev { left: 36px; }
.lb-next { right: 36px; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

@media (max-width: 700px) {
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-close, .lb-nav { width: 44px; height: 44px; }
}

/* ============ Reveal animation utility ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* 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;
  }
}
