/* Elite Woodwork - Site Concept
   Design language: Heritage Craft (type/spacing/composition/motion)
   Palette: Elite Woodwork's real brand colors (espresso charcoal, oak, warm cream)
   extracted from their brand photography, logo lockup, and site imagery. */

:root {
  /* Backgrounds - from Elite Woodwork's brand */
  --cream:        #faf7f0;
  --parchment:    #f1ebdf;
  --espresso:     #201811;
  --espresso-2:   #16100a;

  /* Accent - oak/walnut from their photography and brand shot */
  --oak:          #a1763f;
  --oak-bright:   #c49a63;
  --oak-muted:    rgba(161, 118, 63, 0.28);
  --walnut:       #5d4426;

  /* Text */
  --text-dark:    #241c12;
  --text-body:    #5b5343;
  --text-muted:   #8a8171;
  --text-light:   rgba(252, 248, 240, 0.82);
  --text-light-muted: rgba(252, 248, 240, 0.6);

  /* Typography */
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body:    'Karla', -apple-system, sans-serif;

  /* Layout */
  --book-width:   min(85%, 960px);
  --wide-width:   min(90%, 1180px);
  --gutter:       clamp(1.25rem, 4vw, 3rem);
  --nav-height:   84px;

  /* Motion - minimal and dignified */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Shared ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oak);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--oak);
  flex-shrink: 0;
}

.eyebrow--center { justify-content: center; }

.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--oak);
  flex-shrink: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.12;
}

.on-dark h2, .on-dark h3 { color: var(--text-light); }

.serif-i { font-style: italic; }

.section-pad { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.container-book { width: var(--book-width); margin: 0 auto; }
.container-wide { width: var(--wide-width); margin: 0 auto; }

/* ---------- Buttons ---------- */

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 0.95rem 0.95rem 1.7rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  cursor: pointer;
}

.btn-pill__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.btn-pill:hover .btn-pill__icon { transform: translateX(3px); }

.btn-pill--oak {
  background: var(--oak);
  color: var(--cream);
}
.btn-pill--oak .btn-pill__icon { background: rgba(250, 247, 240, 0.16); }
.btn-pill--oak:hover { background: var(--walnut); }

.btn-pill--ghost-light {
  border-color: rgba(252, 248, 240, 0.35);
  color: var(--text-light);
}
.btn-pill--ghost-light .btn-pill__icon { background: rgba(252, 248, 240, 0.12); }
.btn-pill--ghost-light:hover { border-color: var(--oak-bright); color: var(--oak-bright); }

.btn-pill--dark {
  background: var(--espresso);
  color: var(--cream);
}
.btn-pill--dark .btn-pill__icon { background: rgba(252, 248, 240, 0.14); }
.btn-pill--dark:hover { background: var(--walnut); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.is-solid {
  background: rgba(22, 16, 10, 0.96);
  box-shadow: 0 1px 0 rgba(252, 248, 240, 0.08);
}

.nav__inner {
  width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo img {
  height: 52px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav__links a:not(.btn-pill) {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav__links a:not(.btn-pill)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--oak-bright);
  transition: width 0.35s var(--ease);
}

.nav__links a:not(.btn-pill):hover { color: var(--oak-bright); }
.nav__links a:not(.btn-pill):hover::after { width: 100%; }

.nav__cta { border-color: rgba(252, 248, 240, 0.35); color: var(--text-light); border-width: 1px; border-style: solid; }
.nav__cta .btn-pill__icon { background: rgba(252, 248, 240, 0.12); }
.nav__cta:hover { border-color: var(--oak-bright); color: var(--oak-bright); }

.nav__burger {
  display: none;
  background: none;
  border: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  z-index: 320;
}

.nav__burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--espresso-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  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__links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }

.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--text-light);
  display: inline-block;
  padding: 0.45rem 0;
  transition: color 0.3s var(--ease);
}

.mobile-menu__links a:hover { color: var(--oak-bright); }

.mobile-menu__divider {
  width: 60px;
  height: 1px;
  background: var(--oak);
  margin: 2rem 0;
}

.mobile-menu__contact { display: flex; flex-direction: column; gap: 0.35rem; }

.mobile-menu__contact a {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 0;
}

.mobile-menu__contact a:hover { color: var(--oak-bright); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--espresso-2);
}

.hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: 1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 16, 10, 0.55) 0%, rgba(22, 16, 10, 0.25) 40%, rgba(22, 16, 10, 0.82) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: var(--wide-width);
  margin: 0 auto;
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
}

.hero__eyebrow {
  color: var(--oak-bright);
  margin-bottom: 1.6rem;
}
.hero__eyebrow::before { background: var(--oak-bright); }

.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  color: #fcf8f0;
  max-width: 15ch;
  margin-bottom: 1.6rem;
}

.hero__sub {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  color: var(--text-light);
  max-width: 46ch;
  margin-bottom: 2.4rem;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero__scroll {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(3.5rem, 8vh, 6rem);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--oak-bright), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Intro ---------- */

.intro { background: var(--parchment); }

.intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.intro h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 18ch; }

.intro__body p { margin-bottom: 1.2rem; }

.intro__list {
  list-style: none;
  margin-top: 1.8rem;
  border-top: 1px solid rgba(36, 28, 18, 0.14);
}

.intro__list li {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dark);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(36, 28, 18, 0.14);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.intro__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oak);
  flex-shrink: 0;
  transform: translateY(-2px);
}

.proof-strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid rgba(36, 28, 18, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  align-items: center;
}

.proof-strip__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.proof-strip__item svg { color: var(--oak); flex-shrink: 0; }

/* ---------- The Work ---------- */

.work { background: var(--cream); }

.work__intro { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.work__intro h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.work__intro p { max-width: 52ch; margin: 1rem auto 0; }

.work-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem) 0;
}

.work-row + .work-row { border-top: 1px solid rgba(36, 28, 18, 0.1); }

.work-row:nth-child(even) .work-row__media { order: 2; }

.work-row__media {
  overflow: hidden;
  border-radius: 2px;
}

.work-row__media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.work-row:hover .work-row__media img { transform: scale(1.035); }

.work-row__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--oak);
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.work-row__text h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 1rem; }

.work-row__text p { max-width: 42ch; }

/* ---------- Story (dark): roots timeline + details ---------- */

.story {
  background: var(--espresso);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.story__head { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }

.story__head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.story__head p { color: var(--text-light-muted); max-width: 52ch; margin: 1rem auto 0; }

.timeline { position: relative; }

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(252, 248, 240, 0.12);
  transform: translateX(-0.5px);
}

.timeline__line-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--oak-bright);
  transform-origin: top;
  transform: scaleY(0);
}

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  position: relative;
}

.chapter__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--espresso);
  border: 1.5px solid var(--oak-bright);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.chapter__year {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 1;
  color: var(--oak-bright);
  text-align: right;
}

.chapter__year .chapter__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-bottom: 0.8rem;
}

.chapter__body h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin-bottom: 0.9rem; }

.chapter__body p { color: var(--text-light-muted); max-width: 44ch; }

.chapter__photo {
  margin-top: 1.6rem;
  border-radius: 2px;
  overflow: hidden;
  max-width: 440px;
}

.chapter__photo img { width: 100%; }

.chapter__photo-caption {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-top: 0.7rem;
}

/* details two-up inside story */

.details {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(252, 248, 240, 0.1);
}

.details__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.details__head h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); max-width: 20ch; }

.details__head p { color: var(--text-light-muted); }

.details__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.details__item { position: relative; overflow: hidden; border-radius: 2px; }

.details__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  max-height: 460px;
  transition: transform 1.1s var(--ease);
}

.details__item:hover img { transform: scale(1.04); }

.details__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.4rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(22, 16, 10, 0.85));
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ---------- Process ---------- */

.process { background: var(--parchment); }

.process__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.process__head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.process__head p { max-width: 48ch; margin: 1rem auto 0; }

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.process-step { position: relative; padding-top: 1.6rem; }

.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(36, 28, 18, 0.18);
}

.process-step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--oak);
}

.process-step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--oak);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.process-step h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }

.process-step p { font-size: 0.95rem; }

/* ---------- CTA ---------- */

.cta {
  background: var(--espresso-2);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--oak-muted), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.cta__inner { text-align: center; position: relative; z-index: 1; }

.cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: var(--text-light);
  max-width: 22ch;
  margin: 0 auto 1.2rem;
}

.cta p { color: var(--text-light-muted); max-width: 46ch; margin: 0 auto 2.4rem; }

.cta__buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }

.cta__meta {
  margin-top: 2.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--text-light-muted);
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--espresso-2);
  border-top: 1px solid rgba(252, 248, 240, 0.08);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  color: var(--text-light-muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
}

.footer__brand img {
  height: 74px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 1.1rem;
}

.footer__brand p { font-size: 0.9rem; max-width: 30ch; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--oak-bright);
  margin-bottom: 1.1rem;
}

.footer ul { list-style: none; }

.footer ul a {
  display: inline-block;
  padding-block: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-light-muted);
  transition: color 0.3s var(--ease);
}

.footer ul a:hover { color: var(--oak-bright); }

.footer address { font-style: normal; font-size: 0.92rem; line-height: 2; }

.footer address a { display: inline-block; padding-block: 0.15rem; }
.footer address a:hover { color: var(--oak-bright); }

.footer__bottom {
  border-top: 1px solid rgba(252, 248, 240, 0.08);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ---------- 404 ---------- */

.error-section {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) var(--gutter) 3rem;
}

.error__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  line-height: 1;
  color: var(--oak-muted);
}

.error__title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--text-light); margin: 0.6rem 0 1rem; }

.error__body { color: var(--text-light-muted); max-width: 44ch; margin: 0 auto 2.2rem; }

/* ---------- Reveal animation base ---------- */

.reveal { opacity: 0; transform: translateY(26px); }

html.no-js .reveal, body.no-gsap .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav__links { gap: 1.5rem; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .intro__grid { grid-template-columns: 1fr; }

  .work-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .work-row:nth-child(even) .work-row__media { order: 0; }

  .timeline__line { left: 6px; }
  .chapter { grid-template-columns: 1fr; gap: 1.2rem; padding-left: 2.2rem; }
  .chapter__dot { left: 6px; top: 2.6rem; }
  .chapter__year { text-align: left; font-size: clamp(3.2rem, 14vw, 5rem); }

  .details__head { grid-template-columns: 1fr; }
  .details__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hero:not([style]) {
    height: auto;
    min-height: 100svh;
    padding-top: 6.5rem;
  }
  .hero__scroll { display: none; }
}

@media (max-width: 520px) {
  .process__grid { grid-template-columns: 1fr; }
  .cta__buttons { flex-direction: column; }
  .details__item img { min-height: 240px; }
}

@media (max-width: 480px) {
  .hero:not([style]) { padding-top: 5.5rem; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); }
}
