.heritage-home { --section-space: clamp(32px, 4.5vw, 64px); }
.heritage-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(480px, 47vw, 680px);
  background: #4b3b30;
  color: #fffcf6;
}
.heritage-room { position: absolute; inset: 0; z-index: -2; margin: 0; }
.heritage-room img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  opacity: 0;
}
/* Keep the outgoing image above inactive slides through the wraparound. */
.heritage-room img.is-previous { z-index: 1; opacity: 1; }
.heritage-room img.is-active { z-index: 2; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .heritage-room img.is-active { transition: opacity 1.12s ease-in-out; }
}
.hero-motion {
  position: absolute;
  inset: 16px 18px auto auto;
  width: 44px;
  height: 44px;
  border: 1px solid #fffcf670;
  border-radius: 50%;
  background: #241c16b8;
  color: #fffcf6;
  font: inherit;
  cursor: pointer;
}
.hero-motion:hover { background: #241c16; }
.heritage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(23deg, #1b1714f5 2%, #1b1714b5 29%, #1b171420 65%);
}
.heritage-copy {
  width: min(1220px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: 45px clamp(34px, 5vw, 76px);
}
.heritage-copy .lotus { color: #ead2a6; }
.heritage-copy h1 { max-width: 14ch; font-size: clamp(46px, 5.6vw, 80px); line-height: .98; text-wrap: pretty; }
.heritage-copy p { max-width: 46ch; margin: 17px 0 23px; }
.heritage-light.button { background: #f8f4ec; color: #33271f; border-color: #f8f4ec; }
.heritage-light.button:hover { background: #eadbc2; }
.heritage-outline.button { background: #2c251ebb; color: #fffcf6; border-color: #ead2a6; }
.heritage-outline.button:hover { background: #443225; }
.heritage-hero :focus-visible { outline-color: #ead2a6; }

.home-section { padding-block: var(--section-space); }
#customer-stories { padding-bottom: 0; }
.heritage-home h2 { font-size: clamp(30px, 4vw, 52px); }
.heritage-home h3 { font: 500 clamp(27px, 3vw, 39px)/1.06 var(--heading); margin: 0; }
.heritage-home p { margin-block: 10px 0; }
.heritage-copy p { margin: 17px 0 23px; }
.home-heading { margin-bottom: clamp(20px, 2.5vw, 32px); }
.home-heading .lotus { width: 84px; height: auto; margin-bottom: 10px; }
.home-heading p { max-width: 62ch; }
.home-heading p, .design-grid p, .craft-grid p, .factory-steps p, .home-faq p { color: var(--muted); }
:is(.design-grid, .craft-grid, .story-grid) { display: grid; gap: clamp(16px, 2vw, 26px); }
:is(.design-grid, .craft-grid) h3 { font-size: clamp(25px, 2.6vw, 34px); }
:is(.design-grid, .craft-grid) p { font-size: .95rem; line-height: 1.55; }

.design-grid article { display: flex; flex-direction: column; align-items: flex-start; }
.design-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #e6ddd0;
}
.design-grid img { margin-bottom: 9px; aspect-ratio: 4/3; }
.design-grid a { display: inline-block; margin-top: auto; padding-block: 14px 8px; color: var(--link); font-size: .9rem; }
.home-craft { background: #f0ebe1; }
.craft-grid article {
  display: grid;
  grid-template-columns: minmax(82px, 28%) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.craft-grid img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 5px; }
.home-contact { background: #ebe3d5; scroll-margin-top: 14px; }
.home-enquiry-panel { max-width: 750px; padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
#home-enquiry .fields { margin-top: 0; }
#preview-note { font-size: .8rem; color: var(--muted); }
.home-enquiry-panel .status:empty { display: none; }
.home-faq details { max-width: 860px; border-top: 1px solid var(--line); }
.home-faq details:last-child { border-bottom: 1px solid var(--line); }
.home-faq summary { min-height: 49px; padding: 15px 0; font-weight: 500; }
.home-faq details p { margin: 0 0 18px; }

@media (max-width: 800px) {
  .heritage-hero { min-height: clamp(480px, 85vw, 600px); }
  .heritage-room img { object-position: 53% 50%; }
  .heritage-hero::before { background: linear-gradient(0deg, #1b1714f5, #1b1714ad 34%, #1b171411 78%); }
  .heritage-copy { width: calc(100% - 36px); padding-block: 48px 30px; }
  .heritage-copy h1 { font-size: clamp(37px, 8vw, 59px); }
}
.story-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.story-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.story-grid figcaption { padding: clamp(14px, 1.6vw, 20px); }
.story-name {
  display: block;
  font: 500 clamp(21px, 2vw, 27px)/1.15 var(--heading);
}
.story-quote { margin: 8px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.factory-youtube, .home-more a { color: var(--link); }
.featured-gallery {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  cursor: grab;
  scrollbar-width: none;
}
.featured-gallery.is-dragging { cursor: grabbing; }
.featured-gallery-track {
  display: flex;
  width: max-content;
  gap: clamp(12px, 1.6vw, 22px);
}
.featured-gallery-track img {
  display: block;
  width: auto;
  height: clamp(240px, 34vw, 440px);
  flex: none;
  border-radius: 6px;
  user-select: none;
}
.section-link { display: inline-flex; align-items: center; gap: .55em; margin-top: 23px; }
.factory-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(24px, 4vw, 52px);
}
.factory-grid p { color: var(--muted); }
.factory-film { overflow: hidden; border-radius: 6px; background: #29231f; }
.factory-film iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 0; }
.factory-poster { position: relative; display: grid; place-items: center; }
.factory-poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(.78);
}
.factory-poster > span {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  color: var(--surface);
  background: var(--action);
  border: 1px solid #ead2a6;
  border-radius: 5px;
  font-size: .9rem;
}
.factory-poster:focus-visible { outline-offset: -5px; }
.factory-youtube { display: inline-block; margin-top: 12px; font-size: .9rem; }
.factory-steps {
  display: grid;
  gap: 18px;
  margin: 0 0 22px;
  padding-inline-start: 23px;
}
.factory-steps li { padding-inline-start: 5px; }
.factory-steps li::marker { color: var(--link); }
.factory-steps h3 { font-size: clamp(23px, 2.2vw, 30px); }
.factory-steps p { margin-top: 4px; font-size: .95rem; }

.drawing-fields { min-width: 0; margin: 0; padding: clamp(14px, 1.6vw, 20px); border: 1px solid var(--line); border-radius: 5px; }
.drawing-fields legend { padding-inline: 5px; font-size: .9rem; }
.drawing-fields label + label { margin-top: 9px; }
.home-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
@media (max-width: 650px) {
  .home-more a { display: block; min-height: 38px; }
}

.budget-choice { display: grid; gap: 6px; font-weight: 500; }
.budget-choice select {
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid #9c8c78;
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
.home-enquiry-panel form { margin-top: 22px; }
#home-enquiry .lead-fields { min-width: 0; padding: 0; border: 0; margin-bottom: 18px; }
.lead-fields legend { padding: 0 0 10px; }
#design-review h3 { font-size: 30px; }
#design-review .drawing-fields { margin-block: 16px; }

@media (min-width: 651px) {
  :is(.design-grid, .craft-grid, .story-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .design-grid img { aspect-ratio: 1; margin-bottom: 16px; }
  .craft-grid article { grid-template-columns: 1fr; align-content: start; }
  .factory-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

.story-carousel.is-ready { --story-card-width: 78%; --story-gap: 10px; }
.story-carousel.is-ready .story-grid {
  display: flex;
  align-items: stretch;
  gap: var(--story-gap);
  overflow-x: auto;
  padding-block-end: 4px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.story-carousel.is-ready .story-grid > figure {
  flex: 0 0 var(--story-card-width);
  scroll-snap-align: center;
}
.story-carousel.is-ready .story-grid img { aspect-ratio: 4/3; }
.story-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-block-start: 12px;
  color: var(--muted);
  font-size: .85rem;
}
.story-controls .button { width: 48px; min-height: 48px; padding: 0; font-size: 1.65rem; }
.story-carousel.is-ready .story-grid::before,
.story-carousel.is-ready .story-grid::after {
  content: "";
  flex: 0 0 calc((100% - var(--story-card-width)) / 2 - var(--story-gap));
}

@media (min-width: 651px) {
  .story-carousel.is-ready { --story-gap: 16px; --story-card-width: calc((100% - var(--story-gap)) / 2); }
  .story-carousel.is-ready .story-grid > figure { scroll-snap-align: start; }
  .story-carousel.is-ready .story-grid > [data-story-preview],
  .story-carousel.is-ready .story-grid::before,
  .story-carousel.is-ready .story-grid::after { display: none; }
}
@media (min-width: 900px) {
  .story-carousel.is-ready { --story-card-width: calc((100% - 2 * var(--story-gap)) / 3); }
}

.home-collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.home-collection {
  display: grid;
  grid-template-columns: clamp(74px, 9vw, 126px) 1fr;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-decoration: none;
}
.home-collection:hover { border-color: var(--link); }
.home-collection img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px 0 0 5px;
}
.home-collection h3 {
  font-size: clamp(18px, 2vw, 27px);
  padding: 8px 10px 8px 0;
}
@media (max-width: 720px) {
  .home-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-collection { grid-template-columns: 1fr; gap: 0; }
  .home-collection img { aspect-ratio: 4 / 3; border-radius: 5px 5px 0 0; }
  .home-collection h3 { padding: 10px 12px; }
}
