/* =============================================
   TOKENS
   ============================================= */
:root {
  --inkwood:      #2C1A0E;
  --heartwood:    #7A4F2D;
  --amber:        #C17F3A;
  --amber-dark:   #A36A28;
  --canopy:       #5C7A4A;
  --cream:        #F5EFE6;
  --mid:          #666666;
  --rule:         #E8E2D9;

  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --section-pad: clamp(80px, 10vw, 140px);
  --content-max: 680px;
  --form-max:    560px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--inkwood);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }

/* =============================================
   SPLASH SCREEN
   ============================================= */
#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
  animation: splashHold 2s ease forwards, splashFade 0.8s 2s ease forwards;
}
#splash.dismissed {
  animation: splashFade 0.4s ease forwards;
}
#splash .splash-mark { height: 72px; width: auto; }
#splash .splash-tagline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--inkwood);
  text-align: center;
  letter-spacing: -0.01em;
}

/* =============================================
   NAV
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 80px);
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: opacity 400ms ease, transform 400ms ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
nav.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-mark { height: 32px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  text-decoration: none; color: var(--inkwood);
  opacity: 0.7; transition: opacity 200ms;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 13px; font-weight: 500; padding: 9px 20px;
  border: 1px solid var(--inkwood); color: var(--inkwood);
  background: transparent; border-radius: 2px; cursor: pointer;
  transition: background 200ms, color 200ms; text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--inkwood); color: var(--cream); }

/* =============================================
   SECTIONS — SHARED
   ============================================= */
section { padding: var(--section-pad) clamp(24px, 5vw, 80px); }
.section-label {
  display: block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px;
}
.accent-rule {
  display: block; width: 40px; height: 1px;
  background: var(--amber); margin-bottom: 16px;
}
.centered { max-width: var(--content-max); margin: 0 auto; text-align: center; }
.content-col { max-width: var(--content-max); margin: 0 auto; }

/* =============================================
   SECTION 1 — HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 80px) clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-mark { height: 52px; width: auto; opacity: 0.9; }
.hero-wordmark-wrap { display: flex; flex-direction: column; gap: 3px; }
.hero-wordmark {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 400;
  color: var(--inkwood); letter-spacing: 0.01em; line-height: 1;
}
.hero-sublabel {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--heartwood);
}
.hero-nav-hint {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mid);
}

.hero-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.fleuron {
  position: absolute;
  right: -16px; top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  color: var(--rule);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0.75;
  z-index: 0;
  font-family: var(--font-serif);
}

.hero-amber-rule {
  display: block;
  width: 48px; height: 2px;
  background: var(--amber);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400; color: var(--inkwood);
  line-height: 1.12; letter-spacing: -0.02em;
  max-width: 620px;
  text-wrap: pretty;
  position: relative; z-index: 1;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: clamp(20px, 2.5vw, 32px);
  border-top: 1px solid var(--rule);
}
.hero-bottom-left {
  display: flex; flex-direction: column; gap: 20px;
}
.hero-sub {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--mid); line-height: 1.65;
  max-width: 340px;
}
.btn-outline {
  display: inline-block; padding: 12px 22px;
  border: 1px solid var(--inkwood); color: var(--inkwood);
  font-size: 13px; font-weight: 500; background: transparent;
  border-radius: 2px; cursor: pointer; letter-spacing: 0.02em;
  transition: background 300ms, color 300ms;
  text-decoration: none; align-self: flex-start;
}
.btn-outline:hover { background: var(--inkwood); color: var(--cream); }

.scroll-indicator {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; padding-bottom: 2px;
}
.scroll-label {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--heartwood); writing-mode: vertical-rl;
  text-orientation: mixed; transform: rotate(180deg);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
  transform-origin: top;
}

/* =============================================
   SECTION 2 — THE PROBLEM
   ============================================= */
#problem {
  background: var(--cream);
  padding: var(--section-pad) 0;
  overflow-x: hidden;
  border-top: 1px solid var(--rule);
}

/* Beat 1 */
.problem-opening {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px 80px;
  text-align: center;
}
.problem-hook {
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 400;
  color: var(--inkwood);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Beat 2 */
.problem-scenes {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}
.scene-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.scene-flip .scene-illus { order: 2; }
.scene-flip .scene-text  { order: 1; }
.scene-illus {
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-text {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--inkwood);
  line-height: 1.4;
  margin: 0;
}

/* Beat 3 */
.problem-turn {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
  border-top: 1px solid rgba(193, 127, 58, 0.25);
  border-bottom: 1px solid rgba(193, 127, 58, 0.25);
}
.problem-turn p {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  color: var(--amber);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}

/* Beat 4 — junk carousel */
.problem-junk {
  padding: 80px 32px 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.junk-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  min-height: 280px;
  perspective: 1100px;
  transform-style: preserve-3d; /* depth ordering via translateZ, no z-index snapping */
}
.junk-card {
  position: absolute;
  width: 400px;
  max-width: 72%;
  left: 50%;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  opacity: 0;
  transition: transform 900ms cubic-bezier(0.35, 0, 0.15, 1),
              opacity 900ms ease;
  pointer-events: none;
  will-change: transform, opacity;
}
.junk-card.pos-center {
  transform: translateX(-50%) translateZ(70px) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.junk-card.pos-right {
  transform: translateX(22%) translateZ(0px) scale(0.76) rotateY(-28deg);
  opacity: 0.45;
}
.junk-card.pos-left {
  transform: translateX(-122%) translateZ(0px) scale(0.76) rotateY(28deg);
  opacity: 0.45;
}
.junk-card.pos-hidden {
  transform: translateX(-50%) translateZ(-70px) scale(0.5);
  opacity: 0;
}
.junk-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}
.junk-image { margin-bottom: 16px; }
.junk-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--inkwood);
  margin-bottom: 8px;
}
.junk-body {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
}

/* Beat 5 */
.problem-close {
  max-width: 560px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  text-align: center;
}
.problem-close p {
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--inkwood);
  line-height: 1.75;
}

/* Mobile */
@media (max-width: 640px) {
  .problem-scenes { padding: 0 20px; }
  .scene-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
    text-align: center;
  }
  .scene-flip .scene-illus { order: 0; }
  .scene-flip .scene-text  { order: 1; }
  .junk-carousel { perspective: none; transform-style: flat; overflow: hidden; }
  .junk-card { width: 100%; max-width: 100%; }
}

/* =============================================
   SECTION 3 — WHAT WE DO
   ============================================= */
#services { border-top: 1px solid var(--rule); }
.services-header { margin-bottom: 64px; }
.services-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400; color: var(--inkwood);
  line-height: 1.2; max-width: 500px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.pillar { display: flex; flex-direction: column; }
.pillar .accent-rule { margin-bottom: 18px; }
.pillar-title {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 400;
  color: var(--inkwood); margin-bottom: 14px;
  line-height: 1.15;
}
.pillar p {
  font-size: 15px; color: var(--inkwood);
  line-height: 1.7; opacity: 0.8;
}

/* =============================================
   SECTION 4 — HOW IT WORKS
   ============================================= */
#process { border-top: 1px solid var(--rule); }
.process-header { margin-bottom: 56px; }
.process-header h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600; color: var(--inkwood);
  line-height: 1.2;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.step { padding-right: 40px; }
.step-num {
  font-size: 48px; font-weight: 600;
  color: var(--amber); line-height: 1;
  margin-bottom: 12px; opacity: 0.9;
}
.step-title {
  font-size: 17px; font-weight: 600;
  color: var(--inkwood); margin-bottom: 10px;
}
.step p {
  font-size: 14px; color: var(--inkwood);
  line-height: 1.65; opacity: 0.75;
}

/* =============================================
   SECTION 5 — ABOUT
   ============================================= */
#about { border-top: 1px solid var(--rule); }

/* Zone A: Header bar */
.about-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 52px;
}
.about-header .section-label { margin-bottom: 0; }
.about-header-role {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  font-style: italic;
}

/* Zone B: Pull-quote */
.about-pullquote {
  max-width: 1200px;
  margin: 0 auto 64px;
}
.about-pullquote .accent-rule { margin-bottom: 20px; }
.about-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 400;
  color: var(--inkwood);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 860px;
  margin: 0;
}

/* Zone C: Two-column grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.portrait-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 2px;
}
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--rule);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  border-radius: 2px;
}
.portrait-placeholder span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}
.bio-block p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.85;
  color: var(--inkwood);
}
.bio-block p + p { margin-top: 20px; }
.bio-sig {
  font-size: 14px;
  color: var(--heartwood);
  font-style: italic;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* =============================================
   SECTION 6 — WORK
   ============================================= */
#work { border-top: 1px solid var(--rule); }
.work-header { margin-bottom: 48px; }
.work-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400; color: var(--inkwood); line-height: 1.2;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
}
.work-card {
  border: 1px solid var(--rule);
  border-radius: 4px; overflow: hidden;
  transition: border-color 300ms ease;
  cursor: pointer;
}
.work-card:hover { border-color: var(--amber); }
.work-card-img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--rule);
  display: flex; align-items: center; justify-content: center;
}
.work-card-img span {
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--mid);
}
.work-card-body { padding: 28px 32px; }
.work-card-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 8px;
}
.work-card-title {
  font-size: 18px; font-weight: 600;
  color: var(--inkwood); margin-bottom: 8px;
}
.work-card-body p {
  font-size: 14px; color: var(--mid); line-height: 1.6;
}
.work-card-dark {
  background: var(--inkwood);
  border-color: var(--inkwood);
}
.work-card-dark:hover { border-color: var(--amber); }
.work-card-dark .work-card-title { color: var(--cream); }
.work-card-dark p { color: rgba(245,239,230,0.6); }
.work-card-dark-btn {
  display: inline-block; margin-top: 20px;
  padding: 12px 24px; background: var(--amber);
  border: 1px solid var(--amber); color: var(--inkwood);
  font-size: 14px; font-weight: 500; border-radius: 2px;
  cursor: pointer; transition: background 300ms;
  text-decoration: none;
}
.work-card-dark-btn:hover { background: var(--amber-dark); }

/* =============================================
   SECTION 7 — CONTACT
   ============================================= */
#contact {
  background: var(--inkwood);
  color: var(--cream);
}
#contact .section-label { color: var(--amber); }
.contact-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400; color: var(--cream);
  line-height: 1.15; margin-bottom: 14px;
}
.contact-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: rgba(245,239,230,0.62);
  line-height: 1.65; margin-bottom: 48px;
  max-width: 500px;
}
.contact-form { max-width: var(--form-max); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.form-group { margin-bottom: 32px; }
.form-prompt {
  display: block;
  font-size: 15px; color: rgba(245,239,230,0.6);
  margin-bottom: 8px; line-height: 1.4;
}
.form-input, .form-textarea, .form-select {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(245,239,230,0.2);
  color: var(--cream); font-size: 16px;
  padding: 8px 0; width: 100%; outline: none;
  transition: border-color 300ms; border-radius: 0;
  appearance: none; -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-bottom-color: var(--amber); }
.form-textarea { resize: vertical; min-height: 72px; }
.form-select option { background: var(--inkwood); color: var(--cream); }
.btn-amber {
  display: inline-block;
  padding: 14px 28px; background: var(--amber);
  border: 1px solid var(--amber); color: var(--inkwood);
  font-size: 16px; font-weight: 500; border-radius: 2px;
  cursor: pointer; transition: background 300ms, border-color 300ms;
  letter-spacing: 0.01em;
}
.btn-amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.contact-footer-info {
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(245,239,230,0.1);
  font-size: 14px; color: rgba(245,239,230,0.45);
  line-height: 2.2;
}

/* =============================================
   SITE FOOTER
   ============================================= */
footer {
  background: var(--inkwood);
  border-top: 1px solid rgba(245,239,230,0.08);
  padding: 32px clamp(24px, 5vw, 80px);
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-mark { height: 28px; }
.footer-copy {
  font-size: 12px; color: rgba(245,239,230,0.5);
  letter-spacing: 0.02em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-header { margin-bottom: 36px; }
  .about-pullquote { margin-bottom: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait-img,
  .portrait-placeholder { max-width: 280px; margin: 0 auto; }
  .work-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .about-header { flex-direction: column; gap: 4px; }
  .about-quote-text { letter-spacing: 0; }
}
