/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0c0a;
  --bg-soft: #16140f;
  --fg: #e8e4d8;
  --fg-dim: #9b9485;
  --accent: #c9743f;
  --accent-soft: #d9a06b;
  --line: #2a2620;
  --max-w: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

/* ─── Typography ─── */
.hero-title, .about-heading, .contact-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-soft);
}

/* ─── Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(to bottom, rgba(13,12,10,0.9), transparent);
}

.nav-mark {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--fg); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  gap: 3rem;
}

.hero-image {
  position: relative;
  height: 70vh;
  max-height: 600px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.85);
  clip-path: inset(0 0 0 0);
  animation: imgReveal 1.4s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes imgReveal {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero-text {
  max-width: 480px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.02;
  margin-bottom: 1.8rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-dim);
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-ghost {
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.8rem;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--fg-dim);
  color: var(--fg);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg-dim);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll svg {
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ─── Section Label ─── */
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

/* ─── About ─── */
.about {
  padding: 8rem clamp(1.5rem, 5vw, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.about-body p {
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

/* ─── Work ─── */
.work {
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.work-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left 0.4s cubic-bezier(0.22,1,0.36,1), background 0.4s;
}
.work-item:hover {
  padding-left: 2rem;
  background: linear-gradient(to right, var(--bg-soft), transparent);
}

.work-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.work-year {
  color: var(--accent);
  font-size: 0.82rem;
  font-family: 'Fraunces', serif;
}

.work-tag {
  color: var(--fg-dim);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.work-item h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.work-item:hover h3 { color: var(--accent-soft); }

.work-item p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  max-width: 520px;
}

/* ─── Contact ─── */
.contact {
  padding: 8rem clamp(1.5rem, 5vw, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.contact-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.3s, gap 0.3s;
}
.contact-link:hover {
  color: var(--fg);
  gap: 0.9rem;
}
.contact-link svg { color: var(--accent); }

/* ─── Footer ─── */
.footer {
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer p {
  font-size: 0.8rem;
  color: var(--fg-dim);
  letter-spacing: 0.03em;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 6rem;
  }
  .hero-image {
    height: 45vh;
    order: 2;
  }
  .hero-text { order: 1; }
  .hero-scroll { display: none; }

  .about-grid,
  .about-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.78rem; }

  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-image img { animation: none; }
  .hero-scroll svg { animation: none; }
}
