/* V3 reference opening: scoped to the header, About, introduction and gate. */
.site-topbar { display: none; }
.inside-band { display: none; }
.inside-eyebrow { display: none; }
.design-eyebrow { display: none; }
.outside-statement { display: none; }
@media (max-width: 899px) {
  .outside-statement {
    position: relative;
    z-index: 2;
    display: block;
    padding: 72px 26px 64px;
    background: var(--bg-primary);
  }
  .outside-statement h2 {
    margin: 0;
    color: var(--text-primary);
    font: 400 clamp(42px, 12vw, 68px)/1.08 var(--font-serif);
    letter-spacing: -.035em;
  }
  .outside-gallery-sequence .outside-feature {
    position: sticky;
    top: 50px;
    width: 100%;
    margin: 0;
    z-index: 0;
  }
  .outside-feature > h2 { display: none; }
  .outside-gallery-sequence .outside-feature::after {
    display: block;
    position: absolute;
    z-index: 1;
    inset: 0;
    background: var(--bg-primary);
    opacity: var(--outside-fade, 0);
    pointer-events: none;
    content: "";
  }
  .outside-feature picture { display: block; }
  .outside-feature img { height: 75svh; min-height: 400px; object-fit: cover; }
  .outside-gallery-sequence .gallery-filmstrip {
    margin-top: 0;
    padding: 40px 0 96px;
    background: var(--bg-primary);
  }
  .gallery-filmstrip-track { gap: 16px; }
  .gallery-filmstrip-card { flex-basis: 78vw; }
  .arrival-pin-sequence > .joes-garage {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px 18px;
    padding: 96px 26px 72px;
    background: var(--bg-primary);
  }
  .joes-garage .garage-copy,
  .joes-garage .garage-photographs { display: contents; }
  .joes-garage .garage-photographs figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
  }
  .joes-garage .garage-photographs figure:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 82%;
  }
  .joes-garage .garage-photographs figure:last-child {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: start;
    margin-top: -56px;
    border: 6px solid var(--bg-primary);
    margin-right: -6px;
  }
  .joes-garage .garage-photographs img { display: block; width: 100%; height: auto; border-radius: 0; }
  .joes-garage .garage-copy h2 {
    grid-column: 1;
    grid-row: 2;
    margin: 8px 0 0;
    font: 400 clamp(30px, 8.2vw, 42px)/1.08 var(--font-serif);
    letter-spacing: -.025em;
  }
  .joes-garage .garage-copy > p {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    margin: 0;
    font: 400 15px/1.5 var(--font-sans);
    letter-spacing: 0;
  }
  .joes-garage .garage-closing-copy { grid-column: 1 / -1; grid-row: 4; padding: 12px 0 0; }
  .joes-garage .garage-closing-copy p { width: 100%; margin: 0; font: 400 10px/1.6 var(--font-mono); letter-spacing: .06em; }
  .roman-corbridge { width: 100%; border-radius: 0; }
  .roman-corbridge-map { width: 100%; margin-inline: 0; }
  .roman-title-second-line { display: block; }
  .roman-corbridge h2 {
    font: 400 clamp(52px, 15vw, 84px)/1.02 var(--font-serif);
    letter-spacing: -.035em;
  }
  .roman-corbridge-copy > p {
    width: 100%;
    font: 400 clamp(23px, 7.2vw, 38px)/1.2 var(--font-serif);
    letter-spacing: -.025em;
  }
  .roman-map-wall circle { fill: var(--bg-inverted); r: 14px; }
  .specs-motion-ready .practical-row > div,
  .specs-motion-ready .practical-rules {
    position: relative;
    border-top: 0;
    border-bottom: 0;
  }
  .specs-motion-ready .practical-row > div::after,
  .specs-motion-ready .practical-rules::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 26px;
    right: 26px;
    height: .5px;
    background: var(--border-soft);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s ease;
  }
  .specs-motion-ready .practical-row > div.is-underlined::after,
  .specs-motion-ready .practical-rules.is-underlined::after { transform: scaleX(1); }
  .bathroom-photographs { align-items: start; }
  .bathroom-photographs > figure:nth-child(2) { margin-top: 32px; }
  .detail-motion-ready .bathroom-photographs > figure,
  .detail-motion-ready .ensuite-photographs > figure,
  .detail-motion-ready .bedroom-intro {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.6s ease, transform 1.6s cubic-bezier(.2,.7,.2,1);
  }
  .detail-motion-ready .bathroom-photographs > figure.is-revealed,
  .detail-motion-ready .ensuite-photographs.is-revealed > figure,
  .detail-motion-ready .bedrooms.is-revealed .bedroom-intro {
    opacity: 1;
    transform: none;
  }
  .detail-motion-ready .bedroom-intro { transition-delay: 250ms; }
.inside-band {
  position: relative;
  display: block;
  width: 100%;
  height: 90px;
  margin: 40px 0 0;
  overflow: hidden;
  background: var(--text-primary);
  color: var(--bg-primary);
}
.inside-band .band-label {
  position: absolute;
  top: 50%;
  left: 26px;
  margin: 0;
  font: 400 clamp(17px, 4.7vw, 30px)/1 var(--font-mono);
  letter-spacing: -.04em;
  transform: translateY(-50%);
  animation: inside-drift 11.11s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.inside-band.is-visible .band-label { animation-play-state: running; }
.inside-band.information-band { margin: 0; }
.introduction .opening-about,
.inside-eyebrow,
.design-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  padding: 0 26px;
  color: #89877d;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.opening-about::before,
.inside-eyebrow::before,
.design-eyebrow::before {
  content: "";
  width: 9px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.opening-about::after { display: none; }
.inside-eyebrow { margin-top: 72px; }
.design-eyebrow { padding: 0; margin-bottom: 24px; }
.maker-story h2 { font-size: 74.52px; line-height: 1.05; }
.maker-story-copy > p {
  width: 100%;
  font-family: var(--font-serif);
  font-size: clamp(23px, 7.2vw, 48px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.desktop-carousel-intro {
  padding: 16px 26px 18px;
  font-family: var(--font-serif);
  font-size: clamp(23px, 7.2vw, 48px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.18;
  letter-spacing: -.025em;
}
@keyframes inside-drift {
  from { left: 26px; transform: translate(0, -50%); }
  to { left: 50%; transform: translate(-50%, -50%); }
}
.time-study .hero-topbar { display: none; }
.site-topbar {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(50px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  border-bottom: 1px solid rgba(24, 24, 24, .16);
  background: rgba(240, 235, 222, var(--header-opacity, 1));
  color: var(--text-primary);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-topbar a,
.site-topbar button {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 19px/1 var(--font-serif);
  letter-spacing: -.025em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-topbar button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.site-topbar :focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}
/* Two distinct, flat day/night controls rather than a shared glass HUD. */
.time-study .hero-state-switch {
  grid-template-columns: max-content max-content;
  justify-content: space-between;
  gap: 12px;
  overflow: visible;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 11px;
}
.time-study .hero-state-switch button {
  min-height: 48px;
  width: auto;
  padding: 0 12px;
  border: 1px solid rgba(240, 235, 222, .35);
  border-radius: 4px;
  background: var(--bg-inverted);
  color: var(--bg-primary);
  opacity: 1;
  box-shadow: none;
}
.time-study .hero-state-switch button + button {
  border: 1px solid rgba(240, 235, 222, .35);
  background: var(--bg-inverted);
  color: var(--bg-primary);
}
.time-study .hero-state-switch button[aria-pressed="true"] {
  border-color: var(--bg-primary);
}
.time-study .hero-state-switch button:focus-visible {
  outline: 2px solid var(--bg-primary);
  outline-offset: 3px;
}
.time-study .hero-state-switch svg {
  width: 19px;
  height: 19px;
  order: -1;
}
.time-study .hero-state-switch button[data-hero-view="0"] svg {
  color: inherit;
  stroke-width: 1.8;
}
.time-study .hero-state-switch button[data-hero-view="0"] svg circle {
  fill: currentColor;
}
.interior-video-trigger .video-play-control {
  width: max-content;
  height: 48px;
  padding: 0 12px;
  gap: 9px;
  justify-content: center;
  border: 1px solid rgba(240, 235, 222, .35);
  border-radius: 4px;
  background: var(--bg-inverted);
  color: var(--bg-primary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  font: 500 11px/1.2 var(--font-mono);
}
.interior-video-trigger .video-play-control svg {
  width: 19px;
  height: 19px;
  order: -1;
}
.introduction {
  display: block;
  padding: 72px 0 0;
  text-align: left;
  scroll-margin-top: 50px;
}
}
.opening-about {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 30px;
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
}
.opening-about::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(24, 24, 24, .2);
  transform-origin: left;
  content: "";
}
@media (max-width: 899px) {
.introduction-copy {
  position: relative;
  z-index: 2;
  width: auto;
  margin: 0 26px;
  padding: 28px 0 0;
}
.introduction h2 {
  position: relative;
  max-width: none;
  margin: 0;
  font-size: clamp(23px, 7.2vw, 48px);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.introduction h2 .intro-line {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0;
}
.introduction h2 .intro-line-overlap {
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  padding: .08em 10px .18em 0;
  background: var(--bg-primary);
}
.introduction-image {
  width: calc(100% - 52px);
  margin: 0 26px;
}
.introduction-image video { border-radius: 0; }
.carousel-primary .carousel-card,
.carousel-primary .carousel-card img { border-radius: 0; }
.carousel-primary .carousel-card img {
  opacity: .5;
  transition: opacity 250ms ease;
}
.carousel-primary .carousel-card.is-centred img { opacity: 1; }
.introduction .essentials {
  top: 32%;
  right: 14px;
  min-height: 48px;
  gap: 8px;
  padding-inline: 12px;
  font-size: 10px;
}
.introduction .essentials > svg { width: 16px; height: 16px; }
.gate-statement {
  margin: 0;
  padding: 88px 12px 16px;
  background: var(--bg-primary);
}
}
.gate-heading-frame {
  position: relative;
  width: max-content;
  max-width: 100%;
}
@media (max-width: 899px) {
.gate-heading-frame { padding: 12px 14px 16px; }
.gate-statement em { font-style: normal; }
.gate-statement h2 {
  font-size: clamp(44px, 16vw, 96px);
  line-height: .9;
  letter-spacing: -.04em;
  white-space: nowrap;
}
}
.gate-closing-rule {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 1px;
  margin: 12px 0 16px;
}
.gate-closing-rule span {
  width: 50%;
  height: 1px;
  background: rgba(24, 24, 24, .58);
}
@media (max-width: 899px) {
  .gate-image { width: 100%; margin: 0; aspect-ratio: 1; }
}
.opening-reveal-ready .opening-about::after {
  transform: scaleX(0);
  transition: transform 2s linear 200ms;
}
.opening-reveal-ready .opening-about.is-revealed::after { transform: scaleX(1); }
.opening-reveal-ready .gate-closing-rule span {
  width: calc(50% - 24px);
  transition: width 3.2s linear;
}
.opening-reveal-ready .gate-heading-frame.is-rule-closing .gate-closing-rule span {
  width: 50%;
}
@media (min-width: 900px) {
  .opening-reveal-ready .gate-closing-rule span { width: calc(50% - 36px); }
}
@media (min-width: 601px) and (max-width: 899px) {
  .maker-story h2 { font-size: 86.94px; }
  .introduction h2 { font-size: 48px; }
  .gate-statement h2 { font-size: 96px; }
}
@media (min-width: 900px) {
  .intro-line + .intro-line::before { content: " "; }
  .introduction { position: relative; }
  .opening-about {
    position: absolute;
    inset: 0 0 auto;
    height: 50px;
    padding-inline: var(--desktop-gutter);
    font-size: 12px;
  }
  .gate-heading-frame { padding: 12px 14px 16px; margin: -12px -14px -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .specs-motion-ready .practical-row > div::after,
  .specs-motion-ready .practical-rules::after { transform: none; transition: none; }
  .detail-motion-ready .bathroom-photographs > figure,
  .detail-motion-ready .ensuite-photographs > figure,
  .detail-motion-ready .bedroom-intro { opacity: 1; transform: none; transition: none; }
  .inside-band .band-label { animation: none; }
  .opening-reveal-ready .opening-about::after { transform: none; transition: none; }
  .opening-reveal-ready .gate-closing-rule span { width: 50%; transition: none; }
}

.opening-reveal-ready .gate-heading-frame h2 {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 850ms ease, transform 850ms cubic-bezier(.2,.7,.2,1);
}
.opening-reveal-ready .gate-heading-frame.is-revealed h2 {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .opening-reveal-ready .gate-heading-frame h2 { opacity: 1; transform: none; transition: none; }
}
