/* Cabinet Fantastic site concept
   Language: Heritage Craft (#12) for type/spacing/motion ONLY.
   Palette: prospect's own. Charcoal + gold from their logo, warm wood from their photography. */

:root {
  /* Darks: logo charcoal deepened within family */
  --espresso:   #241a10;
  --dark-roast: #17100a;
  /* Lights: parchment family from their warm photography */
  --parchment:  #f2e9da;
  --wheat:      #e7dcc7;
  /* Accent: logo gold #c09020, deepened for text on light, lightened for text on dark */
  --gold:        #c09020;
  --gold-deep:   #7a5c0e;
  --gold-bright: #e5bb50;
  --gold-muted:  rgba(192,144,32,0.28);

  --text-dark:  #241a10;
  --text-body:  #4d4234;
  --text-muted: #6f6353;
  --text-light: rgba(255,251,244,0.92);
  --text-light-muted: rgba(255,251,244,0.62);

  --font-display: 'EB Garamond', serif;
  --font-body: 'Karla', sans-serif;

  --wrap: min(90%, 1100px);
  --pad-section: clamp(3.5rem, 7vw, 5.5rem);
  --nav-h: 80px;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background: var(--parchment);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.eyebrow--on-dark { color: var(--gold-bright); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  color: var(--text-dark);
}
.section-sub { margin-top: 1rem; max-width: 46ch; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 700px; }
.section-head--light .section-title { color: var(--text-light); }
.section-head--light .eyebrow { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--dark-roast);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
  white-space: nowrap;
}
.btn-pill:hover { background: var(--gold-bright); }
.btn-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(23,16,10,0.14);
  flex-shrink: 0;
}
.btn-pill__icon svg { width: 13px; height: 13px; }
.btn-pill--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn-pill--sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-pill--ghost {
  background: transparent;
  color: var(--text-light);
  box-shadow: inset 0 0 0 1px rgba(255,251,244,0.4);
}
.btn-pill--ghost:hover { background: rgba(255,251,244,0.1); }
.btn-pill--ghost .btn-pill__icon { background: rgba(255,251,244,0.16); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -2.5rem 0;
  background: linear-gradient(to bottom, rgba(23,16,10,0.85) 0%, rgba(23,16,10,0.55) 55%, rgba(23,16,10,0) 100%);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
}
.nav.scrolled::before { opacity: 0; }
.nav__inner {
  position: relative;
  width: var(--wrap);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__logo { width: auto; height: 40px; max-width: 190px; object-fit: contain; filter: brightness(0) invert(1); transition: filter 0.4s var(--ease-smooth); }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,251,244,0.94);
  transition: color 0.3s;
}
.nav__link:hover { color: var(--gold-bright); }
.nav__cta { flex-shrink: 0; }
.nav.scrolled { background: var(--parchment); box-shadow: 0 1px 0 rgba(36,26,16,0.1); }
.nav.scrolled .nav__logo { filter: none; }
.nav.scrolled .nav__link { color: var(--text-body); }
.nav.scrolled .nav__link:hover { color: var(--gold-deep); }

.nav__burger {
  display: none;
  position: relative;
  z-index: 300;
  width: 44px; height: 44px;
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.35s var(--ease-smooth), top 0.35s var(--ease-smooth), background 0.35s;
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav.scrolled .nav__burger span { background: var(--text-dark); }
body.menu-open .nav__burger span { background: var(--text-light); }
body.menu-open .nav__burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--dark-roast);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(1.5rem, 7vw, 3rem) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-smooth), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--text-light);
  padding-block: 0.5rem;
  transition: color 0.3s;
}
.mobile-menu__link:hover { color: var(--gold-bright); }
.mobile-menu__rule { height: 1px; background: var(--gold-muted); margin: 1.6rem 0; }
.mobile-menu__meta {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-light-muted);
  line-height: 1.7;
}
.mobile-menu__meta a { color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--dark-roast);
}
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(23,16,10,0.88) 0%, rgba(23,16,10,0.55) 34%, rgba(23,16,10,0.08) 62%, rgba(23,16,10,0.18) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  max-width: 1100px;
}
.hero__eyebrow { color: var(--gold-bright); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.05;
  color: var(--text-light);
  margin-bottom: 1.3rem;
}
.hero__title em { font-style: italic; color: var(--gold-bright); }
.hero-sub {
  max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-light-muted);
  margin-bottom: 2rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__badge {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(3rem, 8vh, 6rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.3rem;
  border: 1px solid var(--gold-muted);
  border-radius: 4px;
  background: rgba(23,16,10,0.55);
  backdrop-filter: blur(6px);
  max-width: 100%;
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-bright);
}
.hero__badge-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  line-height: 1.5;
}

/* ---------- Intro ---------- */
.intro { background: var(--espresso); padding-block: var(--pad-section); }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.intro__title { color: var(--text-light); }
.intro .eyebrow { color: var(--gold-bright); }
.intro__right p { color: var(--text-light-muted); }
.intro__right p + p { margin-top: 1.2rem; }
.intro__right p::first-letter { color: var(--gold-bright); }

/* ---------- Services ---------- */
.services { background: var(--parchment); padding-block: var(--pad-section) 0; }
.service-row {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.service-row--flip .service-row__media { order: 2; }
.service-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 24px 50px -24px rgba(23,16,10,0.45);
}
.service-row__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 0.7rem;
}
.service-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.service-row__body p + p { margin-top: 1rem; }
.service-row__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--gold-deep);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}

/* ---------- Work rail ---------- */
.work { background: var(--dark-roast); padding-block: var(--pad-section); overflow: hidden; }
.work__rail {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: max(calc((100vw - min(90vw, 1100px)) / 2), 1.5rem);
  scroll-padding-inline: max(calc((100vw - min(90vw, 1100px)) / 2), 1.5rem);
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.work__rail::-webkit-scrollbar { display: none; }
.work__rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.work__card {
  flex: 0 0 min(74vw, 480px);
  scroll-snap-align: start;
}
.work__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}
.work__card figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light-muted);
}
.work__hint {
  width: var(--wrap);
  margin: 1.2rem auto 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,251,244,0.55);
}

/* ---------- Process ---------- */
.process { background: var(--wheat); padding-block: var(--pad-section); }
.process__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem) clamp(2rem, 5vw, 4rem);
}
.process__step { border-top: 1px solid rgba(36,26,16,0.18); padding-top: 1.4rem; }
.process__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.5rem;
}
.process__step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.process__step p { font-size: 0.97rem; }

/* ---------- About ---------- */
.about { background: var(--parchment); padding-block: var(--pad-section); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__body p { margin-top: 1.1rem; }
.about__body .section-title { margin-top: 0; }
.about__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  border: 1px solid var(--gold-muted);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 24px 50px -24px rgba(23,16,10,0.45);
}
.about__caption {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(192,144,32,0.14), transparent 70%),
    var(--espresso);
  padding-block: var(--pad-section);
  text-align: center;
}
.cta__inner { max-width: 720px; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: var(--text-light);
  margin-bottom: 1rem;
}
.cta__sub { color: var(--text-light-muted); margin-bottom: 2.2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta__addr { margin-top: 2.2rem; font-size: 0.88rem; color: var(--text-light-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--dark-roast); padding-top: var(--pad-section); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.footer__logo { width: auto; height: 44px; max-width: 200px; object-fit: contain; filter: brightness(0) invert(1); }
.footer__tag {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-light-muted);
}
.footer__head {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
}
.footer__link {
  display: block;
  font-size: 0.92rem;
  color: var(--text-light-muted);
  padding-block: 0.3rem;
  transition: color 0.3s;
}
.footer__link:hover { color: var(--gold-bright); }
.footer__text { font-size: 0.92rem; color: var(--text-light-muted); padding-block: 0.3rem; }
.footer__base {
  border-top: 1px solid rgba(255,251,244,0.1);
  padding-block: 1.4rem;
  font-size: 0.8rem;
  color: rgba(255,251,244,0.55);
}

/* ---------- Reveal animation base ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
html.no-js .reveal, html.reduced-motion .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
}
@media (max-width: 768px) {
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { height: auto; min-height: 100svh; }
  .hero__scrim {
    background: linear-gradient(to top, rgba(23,16,10,0.94) 0%, rgba(23,16,10,0.78) 45%, rgba(23,16,10,0.45) 75%, rgba(23,16,10,0.3) 100%);
  }
  .hero__content { padding-top: calc(var(--nav-h) + 24vh); padding-bottom: 8.5rem; }
  .hero__badge {
    left: 5vw;
    right: auto;
    bottom: 2rem;
  }
  .intro__grid, .about__grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .service-row--flip .service-row__media { order: 0; }
  .process__steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__link { padding-block: 0.65rem; }
  .work__card { flex-basis: min(82vw, 420px); }
}
@media (max-width: 480px) {
  .hero__content { padding-top: calc(var(--nav-h) + 18vh); }
  .hero__ctas .btn-pill--lg { padding: 0.95rem 1.4rem; font-size: 0.92rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta__actions .btn-pill { white-space: normal; text-align: left; }
}
