/* E. J Great Interior & Furniture. "Showroom at dusk".
   Dark forest ground, ivory text, gold only for the house outline and small accents,
   mustard only on the WhatsApp button. One variable font (Archivo): condensed and
   heavy for headlines, normal width at 500 for body. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #1F2D1E;
  --ground-2: #273725;
  --deep: #141f13;
  --ivory: #FEFDFB;
  --ivory-dim: rgba(254, 253, 251, 0.84);
  --gold: #BD9B5E;
  --mustard: #D9A95F;
  --gut: 20px;
  --bar-h: 68px;
  --safe: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  background: var(--ground);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--ground);
  color: var(--ivory);
  font: 500 17px/1.5 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-stretch: 100%;
  padding-bottom: calc(var(--bar-h) + var(--safe));
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: fixed; left: 8px; top: -60px; z-index: 100;
  background: var(--ivory); color: var(--ground); padding: 12px 16px; font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- type ---------- */
.display {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.004em;
  font-size: clamp(3.4rem, 17.5vw, 5.6rem);
  text-wrap: balance;
}
.body, .lead { color: var(--ivory-dim); max-width: 34rem; }
.lead { font-size: 1.0625rem; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); text-shadow: 0 1px 10px rgba(14, 22, 13, 0.9);
}
.glyph { width: 28px; height: auto; flex: none; color: var(--gold); }
.copy .label { color: var(--ivory); }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 60px;
  padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(14, 22, 13, 0.82), rgba(14, 22, 13, 0));
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none;
  font-stretch: 62%; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em;
}
.mark { width: 34px; height: auto; color: var(--gold); }
.call {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
}
.call:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

/* ---------- scenes ---------- */
.scene { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--ground); }
.inner {
  min-height: 100svh;
  padding: 96px var(--gut) calc(var(--bar-h) + 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}

/* ---------- hero ---------- */
.hero { display: grid; align-items: end; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--deep); }
.hero-media picture, .hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media video { opacity: 0; transition: opacity 0.9s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 22, 13, 0.88) 0, rgba(14, 22, 13, 0.72) 12%, rgba(14, 22, 13, 0) 30%),
    linear-gradient(to top, rgba(14, 22, 13, 0.93) 0, rgba(14, 22, 13, 0.62) 36%, rgba(14, 22, 13, 0.2) 58%, rgba(14, 22, 13, 0) 76%);
}
.hero-copy {
  width: 100%; max-width: 820px;
  padding: 0 var(--gut) calc(var(--bar-h) + var(--safe) + 36px);
}

/* the house outline, from the logo: pitched roof with a chimney notch */
.house-frame { container-type: inline-size; position: relative; }
.roof { width: 100%; height: auto; overflow: visible; }
.roof path {
  fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.house-body {
  margin: -1.4% 3.7% 0;
  padding: 10px 16px 6px;
  border-left: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
}
.js .roof path { animation: draw 2.6s var(--ease) 0.2s both; }
.js .house-body { animation: walls 1.6s var(--ease) 1.4s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes walls { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.hero h1 { display: block; }
.h1-main {
  display: block; font-stretch: 62%; font-weight: 800; text-transform: uppercase; white-space: nowrap;
  font-size: 17vw; font-size: 19.5cqw; line-height: 0.9; letter-spacing: 0.004em;
}
.h1-sub {
  display: block; margin-top: 8px;
  font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 4.4vw; font-size: 5.2cqw; line-height: 1.1;
}
.tag { margin-top: 14px; font-size: 1rem; color: var(--ivory-dim); }

/* ---------- image scenes ---------- */
.media { position: absolute; inset: 0 0 auto 0; height: 60svh; z-index: -1; overflow: hidden; background: var(--deep); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 22, 13, 0.55) 0, rgba(14, 22, 13, 0) 24%),
    linear-gradient(to bottom, rgba(31, 45, 30, 0) 50%, rgba(31, 45, 30, 0.8) 82%, var(--ground) 100%);
}
.shot, .slide { display: grid; align-items: end; min-height: 100svh; }
.copy {
  position: relative; z-index: 1;
  padding: 0 var(--gut) calc(var(--bar-h) + var(--safe) + 30px);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.meta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy .display { font-size: clamp(3.2rem, 17vw, 5.4rem); }

.slides { padding: 0; }
.track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slides-nav {
  position: absolute; z-index: 5; top: 64px; right: var(--gut);
  display: flex; align-items: center; gap: 4px;
}
.slides-nav .count { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; margin-right: 6px; }
.arrow {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  background: rgba(14, 22, 13, 0.55); border: 1.5px solid rgba(254, 253, 251, 0.7);
}
.arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--ivory); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: var(--ivory); }
.arrow:hover svg { stroke: var(--ground); }

/* owner portrait: a small phone photo, so on wide screens it sits at the right at about its own size */
.owner .media img, .side .media img { object-position: var(--pos); }

/* media reveal: the picture settles in as its scene arrives */
.js-ready .media img, .js-ready .hero-media .poster { transform: scale(1.07); transition: transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-ready .scene.in .media img, .js-ready .hero.in .poster { transform: none; }
.js-ready .scene:not(.hero) .display { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.js-ready .scene.in .display { clip-path: inset(-0.05em -0.1em); }

/* ---------- buttons ---------- */
.add, .wa, .ghost {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 0 22px; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1.5px solid var(--ivory); line-height: 1.15;
}
.add { background: rgba(14, 22, 13, 0.5); color: var(--ivory); transition: background 0.2s, color 0.2s; }
.add:hover { background: rgba(254, 253, 251, 0.16); }
.add[aria-pressed="true"] { background: var(--ivory); color: var(--ground); }
.wa { background: var(--mustard); border-color: var(--mustard); color: var(--ground); }
.wa:hover { filter: brightness(1.07); }
.ghost { background: transparent; color: var(--ivory); }
.ghost:hover { background: rgba(254, 253, 251, 0.14); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- text scenes ---------- */
.about .display { font-size: clamp(2.6rem, 13.2vw, 4.6rem); max-width: 16ch; }
.more.scene:not(.slides) { background: var(--ground-2); }
.rows { list-style: none; padding: 0; margin-top: 4px; }
.rows li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 22px 0; border-top: 1px solid rgba(254, 253, 251, 0.2);
}
.rows li:last-child { border-bottom: 1px solid rgba(254, 253, 251, 0.2); }
.row-name {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase; line-height: 0.95;
  font-size: clamp(1.9rem, 9.6vw, 3rem); max-width: 18ch;
}
.note { color: var(--ivory-dim); }
.more .display { font-size: clamp(2.8rem, 14vw, 4.8rem); }
.stand .display { font-size: clamp(3rem, 15vw, 5.4rem); }
.cols { display: grid; gap: 30px; margin-top: 10px; }
.cols h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.cols p, .cols li { color: var(--ivory-dim); }
.cols ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.contact { background: var(--ground-2); }
.contact .house-body { padding: 18px 18px 26px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact .display { font-size: 15.5cqw; }
.lines { display: flex; flex-direction: column; gap: 2px; }
.lines a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 5px; font-weight: 600; overflow-wrap: anywhere;
}

.foot { background: var(--deep); padding: 36px var(--gut) 40px; display: grid; gap: 8px; color: var(--ivory-dim); font-size: 15px; }
.foot .more-work { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.foot .more-work span { font-weight: 700; color: var(--ivory); }
.foot .more-work a, .foot .credit a {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ivory);
  text-decoration-color: var(--gold); text-underline-offset: 5px;
}

/* ---------- my list bar ---------- */
.bar {
  position: fixed; z-index: 40; inset: auto 0 0 0;
  padding: 10px var(--gut) calc(10px + var(--safe));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(20, 31, 19, 0.97); border-top: 1px solid rgba(189, 155, 94, 0.6);
}
.bar-list {
  min-height: 48px; padding: 0 4px; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; justify-content: center; line-height: 1.15;
}
.bar-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.bar-count { font-size: 17px; font-weight: 700; }
.bar-list::after { content: none; }
.bar .wa { padding: 0 18px; font-size: 14px; }
.panel {
  position: fixed; z-index: 39; left: 0; right: 0; bottom: calc(var(--bar-h) + var(--safe));
  max-height: 55svh; overflow: auto; background: var(--ground-2);
  border-top: 1px solid rgba(189, 155, 94, 0.6); padding: 8px var(--gut) 12px;
}
.panel[hidden] { display: none; }
.panel ul { list-style: none; padding: 0; }
.panel li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid rgba(254, 253, 251, 0.14); min-height: 56px;
}
.panel li span small { display: block; font-size: 13px; color: var(--ivory-dim); }
.panel .rm {
  min-height: 44px; min-width: 44px; padding: 0 12px; background: none; cursor: pointer;
  border: 1.5px solid rgba(254, 253, 251, 0.6); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.panel-empty { color: var(--ivory-dim); padding: 14px 0; }
.panel-empty[hidden] { display: none; }

/* ---------- wide screens: full-bleed scenes, type bottom-left ---------- */
@media (min-width: 761px) {
  :root { --gut: 56px; --bar-h: 72px; }
  body { font-size: 18px; }
  .brand { font-size: 1.5rem; }
  .media { inset: 0; height: auto; }
  .media::after {
    background:
      linear-gradient(to bottom, rgba(14, 22, 13, 0.6) 0, rgba(14, 22, 13, 0) 18%),
      linear-gradient(to top, rgba(14, 22, 13, 0.93) 0, rgba(14, 22, 13, 0.74) 34%, rgba(14, 22, 13, 0.36) 52%, rgba(14, 22, 13, 0) 72%),
      linear-gradient(to right, rgba(14, 22, 13, 0.6) 0, rgba(14, 22, 13, 0.22) 42%, rgba(14, 22, 13, 0) 62%);
  }
  .owner .media, .side .media { inset: 0 0 0 auto; width: 46%; height: auto; }
  .owner .media::after, .side .media::after {
    background:
      linear-gradient(to right, var(--ground) 0, rgba(31, 45, 30, 0.55) 22%, rgba(31, 45, 30, 0) 52%),
      linear-gradient(to top, rgba(14, 22, 13, 0.7) 0, rgba(14, 22, 13, 0) 40%);
  }
  .owner .copy .display, .side .copy .display { font-size: clamp(4.4rem, 8vw, 7.4rem); }
  .side .copy { max-width: 54%; }
  .copy { max-width: 980px; padding-bottom: calc(var(--bar-h) + var(--safe) + 48px); gap: 18px; }
  .copy .display { font-size: clamp(5rem, 11.5vw, 10rem); }
  .copy .body { font-size: 1.2rem; }
  .meta { justify-content: flex-start; gap: 24px; }
  .hero-copy { max-width: 940px; }
  .roof path { stroke-width: 2.2; }
  .house-body { padding: 14px 28px 8px; }
  .about .inner, .more .inner, .stand .inner { padding-left: calc(var(--gut) + 4vw); max-width: 1280px; }
  .about .display { font-size: clamp(3.4rem, 7vw, 7.4rem); max-width: 18ch; }
  .lead { font-size: 1.25rem; max-width: 40rem; }
  .rows li { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .row-name { font-size: clamp(2.4rem, 4.4vw, 4.4rem); max-width: 24ch; }
  .cols { grid-template-columns: 1fr 1fr; gap: 44px 72px; max-width: 1000px; }
  .contact .inner { max-width: 1280px; padding-left: calc(var(--gut) + 4vw); }
  .contact .house-frame { max-width: 1000px; }
  .slides-nav { top: 72px; }
}
@media (min-width: 1200px) {
  .roof path { stroke-width: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-ready .media img, .js-ready .hero-media .poster { transform: none; }
  .js-ready .scene:not(.hero) .display { clip-path: none; }
  .hero-media video { display: none; }
}
