/* ============================================================
   THE FURNITURE POINT
   Quiet luxury: ivory, espresso, one brass accent.
   ============================================================ */

:root {
  --ivory: #F4EFE6;
  --ivory-deep: #EBE4D7;
  --ink: #17140F;
  --ink-soft: #2E2922;
  --ink-mute: #51493E;
  --brass: #A8874F;
  --brass-text: #6A4F1E;
  --brass-light: #CDB07A;
  --espresso: #14110D;
  --hairline: rgba(23, 20, 15, 0.16);

  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Jost', system-ui, sans-serif;

  --header-h: 72px;
  --container-max: 1240px;
  --side-pad: clamp(22px, 5.5vw, 72px);
  --section-pad: clamp(88px, 12vw, 176px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
em { font-style: italic; }

::selection { background: var(--ink); color: var(--ivory); }
:focus-visible { outline: 1px solid var(--brass-text); outline-offset: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--ivory);
  padding: 12px 20px; z-index: 2000;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.skip-link:focus { left: 16px; top: 16px; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 400;
}
h2 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
h2 em, .hero-h1 em { color: var(--brass-text); font-weight: 400; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 28px;
}
.body-text { max-width: 46ch; font-size: 1.125rem; color: var(--ink-soft); }
.body-text + .body-text { margin-top: 1.1em; }
.section-sub { margin-top: 18px; font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 34px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.btn--gold { background: var(--brass-light); border-color: var(--brass-light); color: var(--espresso); }
.btn--gold:hover { background: transparent; color: var(--brass-light); }
.wa-glyph { width: 16px; height: 16px; flex: none; }

/* arrow link: text with a hairline that draws */
.col-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 12px 0;
}
.col-link i {
  display: block;
  width: 36px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}
.col-link:hover i { width: 56px; }
.col-link--lg { margin-top: 28px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  z-index: 1100;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(244, 239, 230, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav {
  height: var(--header-h);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--side-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-main {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark-sub {
  font-size: 0.58rem;
  letter-spacing: 0.9em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-top: 5px;
  padding-left: 2px;
}

.nav-links { display: none; align-items: center; gap: 44px; }
.nav-links a {
  position: relative;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
  padding: 8px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--brass-text);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-wa { display: none; min-height: 42px; padding: 0 24px; }

.hamburger {
  width: 44px; height: 44px; margin-right: -10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.hamburger span {
  display: block; width: 24px; height: 1px; background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.hamburger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-overlay {
  position: fixed; inset: 0; top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  background: var(--ivory);
  z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; padding: 40px 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.mobile-overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-links { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mobile-links a {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.mobile-overlay.is-open .mobile-links a { opacity: 1; transform: none; }
.mobile-overlay.is-open li:nth-child(1) a { transition-delay: 80ms; }
.mobile-overlay.is-open li:nth-child(2) a { transition-delay: 140ms; }
.mobile-overlay.is-open li:nth-child(3) a { transition-delay: 200ms; }
.mobile-overlay.is-open li:nth-child(4) a { transition-delay: 260ms; }
.mobile-phone { font-size: 0.9rem; letter-spacing: 0.24em; color: var(--ink-mute); }

/* ---------- Hero ---------- */
.hero { margin-top: calc(var(--header-h) * -1); }
.hero-inner {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 96px;
  display: grid;
  grid-template-areas: "copy" "art" "meta";
  align-content: center;
  row-gap: 44px;
}
.hero-copy { grid-area: copy; }
.hero-kicker {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 28px;
}
.hero-h1 {
  font-size: clamp(3.4rem, 12.5vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.hero-h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-h1 .line > span { display: block; }
.lead {
  margin-top: 36px;
  max-width: 30ch;
  font-size: 1.3rem;
  color: var(--ink-soft);
}
.btn-row { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }

.hero-art { grid-area: art; width: 100%; max-width: 340px; margin-inline: auto; color: var(--brass); }
.hero-art svg { width: 100%; height: auto; }
.hero-meta {
  grid-area: meta;
  font-weight: 500;
  font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.hero-meta span { margin-inline: 0.6em; color: var(--brass); }
.scroll-cue { display: none; }

/* Hero intro motion (only when JS adds .js) */
html.js .hero-h1 .line > span { transform: translateY(105%); transition: transform 1.3s var(--ease); }
html.js .hero-in { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js .is-loaded .hero-h1 .line > span { transform: none; }
html.js .is-loaded .hero-h1 .line:nth-child(2) > span { transition-delay: 0.1s; }
html.js .is-loaded .hero-h1 .line:nth-child(3) > span { transition-delay: 0.2s; }
html.js .is-loaded .hero-in { opacity: 1; transform: none; }
html.js .is-loaded .hero-kicker.hero-in { transition-delay: 0.05s; }
html.js .is-loaded .lead.hero-in { transition-delay: 0.55s; }
html.js .is-loaded .btn-row.hero-in { transition-delay: 0.7s; }
html.js .is-loaded .hero-meta.hero-in { transition-delay: 0.9s; }

#art-hero * {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-in 2.6s var(--ease) 0.3s forwards;
}
@keyframes draw-in { to { stroke-dashoffset: 0; } }

/* ---------- Marquee ---------- */
.marquee-band {
  border-block: 1px solid var(--hairline);
  padding-block: 22px;
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee-seq {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ink);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { padding-block: var(--section-pad); }
.about-inner { display: grid; gap: 40px; }
.about-title {
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: 1;
  max-width: 14ch;
  font-weight: 400;
}
.about-body { max-width: 440px; }

/* ---------- Collections (product cards) ---------- */
.collections { background: var(--ivory-deep); padding-block: var(--section-pad); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.p-grid { display: grid; grid-template-columns: 1fr; gap: 44px 24px; }
.p-link { display: block; }
.p-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--hairline); }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.p-info { display: block; padding-top: 20px; }
.p-name { display: block; font-family: var(--font-serif); font-size: clamp(1.9rem, 5vw, 2.3rem); line-height: 1.1; color: var(--ink); }
.p-line { display: block; margin-top: 6px; font-size: 1.1rem; color: var(--ink-soft); }
.p-cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 14px; padding: 6px 0;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
}
.p-cta i { display: block; width: 32px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.p-link:hover .p-cta i, .p-link:focus-visible .p-cta i { width: 56px; }
@media (hover: hover) { .p-link:hover .p-img img { transform: scale(1.06); } }

/* ---------- Photo band ---------- */
.band { position: relative; height: clamp(320px, 62vw, 640px); overflow: hidden; background: var(--espresso); }
.band img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(20, 17, 13, 0.42); }
.band-text {
  position: absolute; z-index: 1; left: var(--side-pad); right: var(--side-pad); bottom: clamp(28px, 5vw, 64px);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: #F4EFE6;
  max-width: 14ch;
}

/* ---------- Craft ---------- */
.craft { padding-block: var(--section-pad); }
.craft-inner { display: flex; flex-direction: column; gap: 56px; }
.craft-steps { border-top: 1px solid var(--ink); }
.craft-step {
  padding-block: 32px;
  border-bottom: 1px solid var(--hairline);
  opacity: 0.6;
  transition: opacity 0.7s var(--ease);
}
.craft-step.is-active, html:not(.js) .craft-step { opacity: 1; }
.step-title {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 14px;
  transition: color 0.6s var(--ease);
}
.craft-step.is-active .step-title { color: var(--brass-text); }

/* ---------- Why ---------- */
.why { padding-block: 0 var(--section-pad); }
.why .section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.why-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
.why-item { padding-block: 30px; border-bottom: 1px solid var(--hairline); }
.why-title { font-size: 1.9rem; line-height: 1.15; margin-bottom: 10px; }
.why-body { color: var(--ink-soft); max-width: 34ch; font-size: 1.1rem; }

/* ---------- Statement ---------- */
.statement { background: var(--espresso); padding-block: clamp(110px, 16vw, 220px); }
.statement-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 56px; }
.statement-text {
  font-size: clamp(2.2rem, 6.6vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 400;
  max-width: 17ch;
  color: #F4EFE6;
}
.statement-text .w { opacity: 0.3; transition: opacity 0.5s var(--ease); }
.statement-text .w.on { opacity: 1; }
html:not(.js) .statement-text .w { opacity: 1; }

/* ---------- Visit ---------- */
.visit { background: var(--ivory-deep); padding-block: var(--section-pad); }
.visit-inner { display: flex; flex-direction: column; gap: 56px; }
.visit-info .body-text { margin-top: 24px; }
.visit-list { margin-top: 40px; border-top: 1px solid var(--ink); }
.visit-row { padding-block: 18px; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 4px; }
.visit-row dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-text); }
.visit-row dd { font-weight: 400; color: var(--ink); }
.visit-row dd a { border-bottom: 1px solid var(--hairline); transition: border-color 0.4s var(--ease); }
.visit-row dd a:hover { border-color: var(--ink); }
.map-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  filter: grayscale(1) contrast(1.05) sepia(0.15);
  background: var(--hairline);
}
.map-frame iframe { width: 100%; height: 100%; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory); padding-block: 80px 36px; }
.footer-grid { display: grid; gap: 44px; }
.footer-word {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-brand p { color: var(--ink-soft); max-width: 30ch; }
.footer-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 1.02rem; color: var(--ink); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.8rem; color: var(--ink-mute);
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px;
  background: var(--ink); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  z-index: 900;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background-color 0.4s var(--ease);
}
.whatsapp-float .wa-glyph { width: 22px; height: 22px; }
.whatsapp-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.whatsapp-float:hover { background: var(--brass-text); }

/* ---------- Reveal ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
html.js .reveal.is-revealed { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .p-grid { grid-template-columns: 1fr 1fr; }
  .btn-row { flex-direction: row; align-items: center; }
  .hero-art { max-width: 400px; }
  .why-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); gap: 64px 32px; }
  .p-card:nth-child(3n+2) { margin-top: 64px; }
  .nav-links { display: flex; }
  .nav-wa { display: inline-flex; }
  .hamburger { display: none; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    grid-template-areas: "copy art" "meta meta";
    align-items: center;
    column-gap: 56px;
    row-gap: 0;
    padding-bottom: 40px;
  }
  .hero-meta { align-self: end; }
  .hero-art { max-width: none; margin: 0; }
  .scroll-cue {
    display: block;
    position: absolute; right: var(--side-pad); bottom: 96px;
    width: 1px; height: 64px; background: var(--hairline); overflow: hidden;
  }
  .scroll-cue::after {
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
    background: var(--ink);
    animation: cue 2.4s var(--ease) infinite;
  }

  .about-inner { grid-template-columns: 1.2fr 0.8fr; column-gap: 96px; align-items: end; }
  .about-inner .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }


  .craft-inner { flex-direction: row; align-items: flex-start; gap: 96px; }
  .craft-sticky { width: 38%; position: sticky; top: calc(var(--header-h) + 56px); }
  .craft-steps { width: 62%; }
  .craft-step { padding-block: 56px; }

  .why-grid { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-top: 1px solid var(--ink); }
  .why-item { padding: 40px 28px 40px 0; border-bottom: 0; border-right: 1px solid var(--hairline); }
  .why-item + .why-item { padding-left: 28px; }
  .why-item:last-child { border-right: 0; }

  .visit-inner { flex-direction: row; align-items: stretch; gap: 96px; }
  .visit-info { width: 44%; }
  .visit-map { width: 56%; }
  .map-frame { aspect-ratio: auto; height: 100%; min-height: 520px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* Landscape phones: do not force a full-height hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-inner { min-height: 0; padding-bottom: 56px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band img { transform: none !important; }
  .p-img img { transition: none; }
  html.js .reveal, html.js .hero-in { opacity: 1; transform: none; transition: none; }
  html.js .hero-h1 .line > span { transform: none; transition: none; }
  #art-hero * { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .marquee-track, .scroll-cue::after { animation: none; }
  .statement-text .w { opacity: 1; transition: none; }
  .craft-step { opacity: 1; }
  .mobile-links a { transition: none; opacity: 1; transform: none; }
}
