/* HOUSECRAFT — Victorian home renovation, cinematic scroll */

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

:root {
  --gold:   #d4a017;
  --cream:  #fdf6e3;
  --rust:   #c0522a;
  --forest: #2d5a1b;
  --ink:    #1a1008;
  --warm:   #f5e8c0;
  --accent: #e85a20;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--ink);
  color: var(--cream);
  overflow-x: clip;
}

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.3s;
}
.nav.is-scrolled {
  background: rgba(26, 16, 8, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  padding: 0.8rem 2.5rem;
}
.nav__logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  text-decoration: none;
}
.nav__logo span { color: var(--gold); }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  color: rgba(253, 246, 227, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--cream); }
.nav__cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  font-weight: 600 !important;
}
.nav__cta:hover { background: #e8b828 !important; }

/* ── Scene ───────────────────────────────────── */
.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0a0604;
}

.scene__layer {
  position: absolute;
  inset: -8% -8%;
  width: 116%;
  height: 116%;
  will-change: transform, opacity, filter;
}
.scene__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scene__layer--street {
  transform-origin: 50% 55%;
  z-index: 2;
}
.scene__layer--detail {
  transform-origin: 50% 40%;
  z-index: 1;
  transform: scale(1.5);
  opacity: 0;
}

/* shimmer motes */
.scene__shimmer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.mote {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 215, 80, 0.8);
  box-shadow: 0 0 12px 4px rgba(255, 180, 30, 0.6);
  will-change: transform, opacity;
}
.mote--1 { width: 6px;  height: 6px;  top: 55%; left: 42%; }
.mote--2 { width: 4px;  height: 4px;  top: 62%; left: 55%; }
.mote--3 { width: 8px;  height: 8px;  top: 48%; left: 60%; }
.mote--4 { width: 5px;  height: 5px;  top: 70%; left: 35%; }

.scene__flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 40%,
    #fffbe0 0%,
    #ffd060 28%,
    #ff9040 55%,
    transparent 80%
  );
}

.scene__sparks {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  z-index: 7;
  background: #0a0604;
}
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

.scene__vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(10, 6, 4, 0.55) 100%);
}

/* Intro / mid / summit copy */
.scene__intro,
.scene__mid,
.scene__summit {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 8;
  pointer-events: none;
  width: min(700px, 90vw);
}
.scene__intro { top: 50%; transform: translate(-50%, -50%); }
.scene__mid    { top: 50%; transform: translate(-50%, -50%); opacity: 0; }
.scene__summit { top: 50%; transform: translate(-50%, -50%); opacity: 0; }

.scene__intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(0,0,0,0.7);
  margin: 0.5rem 0 1rem;
}
.scene__intro h1 em { color: var(--gold); font-style: italic; }

.scene__mid h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
  margin-bottom: 0.6rem;
}
.scene__mid p {
  font-size: 1.1rem;
  color: rgba(253,246,227,0.85);
  text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}

.scene__summit h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(0,0,0,0.7);
}
.scene__summit h2 em { color: var(--gold); font-style: italic; }

/* eyebrow */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}
.eyebrow--light { color: rgba(253,246,227,0.7); }

.lede {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(253,246,227,0.8);
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

/* scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.scroll-hint span {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
.scroll-hint p {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253,246,227,0.55);
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── Content ────────────────────────────────── */
.content {
  background: var(--ink);
  position: relative;
  z-index: 1;
}

/* reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* Statement */
.statement {
  max-width: 860px;
  margin: 0 auto;
  padding: 8rem 2rem;
  text-align: center;
}
.statement h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--cream);
}
.statement h2 em { color: var(--gold); font-style: italic; }

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 1rem 2rem 7rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253,246,227,0.5);
  margin-top: 0.4rem;
  display: block;
}

/* Projects cards */
.projects { padding: 0 2rem 7rem; max-width: 1200px; margin: 0 auto; }
.section-head { margin-bottom: 3.5rem; }
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  margin-top: 0.4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}
.card {
  background: rgba(212,160,23,0.07);
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212,160,23,0.12);
}
.card__art {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.card__art--exterior  { background: linear-gradient(135deg, #d4a017 0%, #c0522a 60%, #5a2010 100%); }
.card__art--kitchen   { background: linear-gradient(135deg, #2d5a1b 0%, #5a9a60 60%, #fdf6e3 100%); }
.card__art--parlor    { background: linear-gradient(135deg, #2a4a9f 0%, #8a50c0 50%, #d4a017 100%); }
.card__body { padding: 1.5rem; }
.card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card__body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.card__body p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(253,246,227,0.65);
  margin-bottom: 1rem;
}
.card__body a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.card__body a:hover { text-decoration: underline; }

/* Timeline */
.timeline-section { padding: 0 2rem 7rem; max-width: 860px; margin: 0 auto; }
.timeline { list-style: none; border-left: 2px solid rgba(212,160,23,0.3); padding-left: 2.5rem; }
.timeline li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(253,246,227,0.07);
}
.timeline li:last-child { border-bottom: none; }
.timeline time {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  padding-top: 0.15rem;
}
.timeline h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.timeline p { font-size: 0.9rem; line-height: 1.65; color: rgba(253,246,227,0.6); }

/* Tools */
.tools { padding: 0 2rem 7rem; max-width: 1200px; margin: 0 auto; }
.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.tools__item {
  background: rgba(212,160,23,0.06);
  border: 1px solid rgba(212,160,23,0.12);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  transition: background 0.25s;
}
.tools__item:hover { background: rgba(212,160,23,0.1); }
.tools__item span { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.tools__item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.tools__item p { font-size: 0.85rem; line-height: 1.55; color: rgba(253,246,227,0.55); }

/* Instagram CTA */
.instagram {
  background: linear-gradient(135deg, #1a0a04 0%, #2a1a08 50%, #1a0804 100%);
  border-top: 1px solid rgba(212,160,23,0.2);
  border-bottom: 1px solid rgba(212,160,23,0.2);
}
.instagram__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 8rem 2rem;
  text-align: center;
}
.instagram__inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin: 0.8rem 0 1.2rem;
}
.instagram__inner p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(253,246,227,0.65);
  margin-bottom: 2.5rem;
}
.insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, #f5a623, #e05020, #c0205a);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: filter 0.25s, transform 0.2s;
  box-shadow: 0 4px 24px rgba(224,80,32,0.4);
}
.insta-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2.5rem 2.5rem;
  border-top: 1px solid rgba(253,246,227,0.08);
}
.footer p { font-size: 0.78rem; color: rgba(253,246,227,0.35); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a {
  font-size: 0.8rem;
  color: rgba(253,246,227,0.5);
  text-decoration: none;
}
.footer__links a:hover { color: var(--gold); }
