/* ============================================================
   Murano Shades — The Residence Above Everything
   Implementation of "Murano Shades.dc.html" (Claude Design)
   ============================================================ */

:root {
  /* Palette */
  --ink:          #0A0C10;   /* page ground */
  --ink-raised:   #0D1016;   /* panels, strips, form */
  --bone:         #EDE7DA;   /* primary text */
  --bone-70:      rgba(237, 231, 218, .70);
  --bone-62:      rgba(237, 231, 218, .62);
  --bone-55:      rgba(237, 231, 218, .55);
  --bone-50:      rgba(237, 231, 218, .50);
  --bone-40:      rgba(237, 231, 218, .40);
  --gold:         #C8A96E;
  --gold-lit:     #E3C892;
  --gold-deep:    #B3924F;
  --gold-40:      rgba(200, 169, 110, .40);
  --gold-30:      rgba(200, 169, 110, .30);
  --gold-25:      rgba(200, 169, 110, .25);
  --gold-22:      rgba(200, 169, 110, .22);
  --gold-18:      rgba(200, 169, 110, .18);
  --gold-14:      rgba(200, 169, 110, .14);

  /* Type */
  --serif: 'Cormorant Garamond', 'Times New Roman', Times, serif;
  --sans:  'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;

  /* Rhythm */
  --gutter: 48px;
  --tour-length: 840vh;      /* scroll distance the tour is scrubbed across */
}

/* Static fallback: no scrubbing, so the tour needs far less runway. */
html.is-static { --tour-length: 260vh; }

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* Deliberately NOT smooth: an anchor jump through an 8-screen
     scrub section must be instantaneous, not a 10-second flight. */
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, figure, figcaption { margin: 0; }
em { font-style: italic; color: var(--gold-lit); }
img, video { display: block; max-width: 100%; }

a { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold-lit); }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: transform .2s;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--ink); }

/* ---- Shared type ------------------------------------------- */
.overline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--bone-50);
}
.overline--gold {
  font-size: 11px;
  letter-spacing: .44em;
  color: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.1;
  letter-spacing: .01em;
}

.prose {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--bone-62);
  max-width: 48ch;
}

/* ---- Nav --------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px var(--gutter);
}
/* Keeps the wordmark legible when a bright video frame scrubs underneath. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 12, 16, .55), transparent);
  pointer-events: none;
}
.nav > * { position: relative; }

.nav__mark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .42em;
}
.nav__mark:hover { color: inherit; }
.nav__mark-a { font-weight: 300; color: var(--bone); }
.nav__mark-b { font-weight: 200; color: var(--gold); }

.nav__cta {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
  border: 1px solid var(--gold-40);
  padding: 10px 22px;
  transition: color .3s, border-color .3s, background-color .3s;
}
.nav__cta:hover {
  color: var(--gold-lit);
  border-color: var(--gold-lit);
}

/* ---- Progress rail ----------------------------------------- */
.rail {
  position: fixed;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 34px;
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
}
.rail.is-visible { opacity: 1; }

.rail__step {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  opacity: .35;
  transition: opacity .5s;
}
.rail__step.is-active { opacity: 1; }

.rail__label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--bone);
}
.rail__tick { width: 26px; height: 1px; background: var(--gold); }

.rail__track {
  position: relative;
  width: 1px;
  height: 120px;
  margin-right: 12px;
  align-self: flex-end;
  background: rgba(200, 169, 110, .2);
}
.rail__fill {
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 0%;
  background: var(--gold-lit);
}

/* ---- Tour / hero ------------------------------------------- */
.tour {
  position: relative;
  height: var(--tour-length);
}
.tour__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.tour__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.tour__clip.is-active { opacity: 1; }
.tour__clip.is-fading { transition: opacity .45s; }

.tour__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 16, .55), transparent 35%);
  pointer-events: none;
}

.tour__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  z-index: 5;
  transition: opacity 1s;
}
.tour__loading span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
}
.tour__loading.is-hidden { opacity: 0; }
.tour__loading[hidden] { display: none; }

.hero {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 12, 16, .96) 0%,
    rgba(10, 12, 16, .25) 45%,
    rgba(10, 12, 16, .35) 100%);
}
.hero__body {
  position: relative;
  padding: 0 var(--gutter) 150px;
  max-width: 1100px;
  animation: fadeUp 1.4s ease both;
}
.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero__title {
  font-weight: 300;
  font-size: clamp(56px, 8.5vw, 128px);
  line-height: 1.02;
  letter-spacing: .01em;
}
.hero__lede {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .06em;
  color: rgba(237, 231, 218, .65);
  max-width: 520px;
  margin-top: 30px;
}
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: cue 2.6s ease-in-out infinite;
}
.hero__cue-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(237, 231, 218, .6);
}
.hero__cue-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
}

.tour__caption {
  position: absolute;
  left: var(--gutter);
  bottom: 72px;
  z-index: 3;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  opacity: 0;
}
.tour__caption-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  transition: opacity .5s;
}
.tour__caption-text {
  font-weight: 300;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  font-style: italic;
  color: var(--bone);
  transition: opacity .5s;
}
.tour__caption.is-swapping .tour__caption-kicker,
.tour__caption.is-swapping .tour__caption-text { opacity: 0; }

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0);    opacity: .9; }
  50%      { transform: translate(-50%, 10px); opacity: .4; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Facts strip ------------------------------------------- */
.facts {
  border-top: 1px solid var(--gold-22);
  border-bottom: 1px solid var(--gold-22);
  background: var(--ink-raised);
}
.facts__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.facts__item {
  padding: 54px 32px;
  text-align: center;
  border-right: 1px solid var(--gold-14);
}
.facts__item:last-child { border-right: 0; }

.facts__value {
  font-size: 34px;
  font-weight: 300;
  color: var(--gold-lit);
}
.facts__label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--bone-50);
  margin-top: 10px;
}

/* ---- Gallery ----------------------------------------------- */
.gallery {
  padding: 130px var(--gutter);
  max-width: 1360px;
  margin: 0 auto;
}
.gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 64px;
}
.gallery__head .overline { font-size: 11px; letter-spacing: .4em; }

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.shot { position: relative; overflow: hidden; }
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #12151C;
  filter: brightness(.92);
  transition: filter .6s, transform .9s;
}
.shot:hover img { filter: brightness(1); transform: scale(1.02); }
.shot figcaption {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--bone-55);
  padding: 16px 2px;
}

/* ---- Custom ------------------------------------------------ */
.custom {
  padding: 120px var(--gutter) 140px;
  border-top: 1px solid var(--gold-18);
  background: var(--ink-raised);
}
.custom__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: center;
}
.custom__copy .overline--gold { margin-bottom: 22px; }
.custom__copy .section-title { font-size: clamp(38px, 4.6vw, 60px); margin-bottom: 26px; }

.custom__panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.swatches { display: flex; gap: 14px; }
.swatches span {
  flex: 1;
  height: 76px;
  background: var(--swatch);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card {
  border: 1px solid var(--gold-25);
  padding: 22px;
  transition: border-color .3s;
}
.card:hover { border-color: var(--gold-40); }
.card h3 { font-size: 22px; font-weight: 400; color: var(--bone); }
.card p {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--bone-50);
  margin-top: 6px;
}

/* ---- Quote ------------------------------------------------- */
.quote { padding: 130px var(--gutter) 150px; }
.quote__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.quote__aside { position: sticky; top: 120px; }
.quote__aside .overline--gold { margin-bottom: 22px; }
.quote__aside .section-title { font-size: clamp(40px, 5vw, 66px); line-height: 1.05; margin-bottom: 26px; }
.quote__aside .prose { max-width: 42ch; }

.quote__contact {
  margin-top: 40px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qform {
  background: var(--ink-raised);
  border: 1px solid var(--gold-30);
  padding: 52px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}
.qform[hidden] { display: none; }
.qform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field__label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--bone-70);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(200, 169, 110, .35);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .3s;
}
.field select {
  background: var(--ink-raised);
  font-size: 14px;
  appearance: none;
}
.field textarea { resize: vertical; }
.field ::placeholder { color: var(--bone-40); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-lit);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.field__error {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #C97F6E;
  min-height: 0;
}
.field.is-invalid input { border-bottom-color: #C97F6E; }

.qform__submit {
  margin-top: 8px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  padding: 18px 28px;
  cursor: pointer;
  transition: background .3s;
}
.qform__submit:hover  { background: var(--gold-lit); }
.qform__submit:active { background: var(--gold-deep); }

.qform__fine {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--bone-40);
  text-align: center;
}

/* Send failed — same red as an invalid field, but centred under the button. */
.qform__error {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .1em;
  color: #C97F6E;
  text-align: center;
  margin: 0;
}

.qform__submit[aria-busy="true"] { opacity: .6; cursor: progress; }
.qform__submit:disabled { cursor: not-allowed; }

/* Netlify honeypot: off-screen rather than display:none, which some bots
   check for. Never shown to a person, never focusable. */
.qform__bot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.qdone {
  background: var(--ink-raised);
  border: 1px solid var(--gold-30);
  padding: 80px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
  animation: fadeUp .8s ease both;
}
.qdone[hidden] { display: none; }
.qdone:focus { outline: none; }
.qdone__rule { width: 44px; height: 1px; background: var(--gold); }
.qdone__title { font-size: 36px; font-weight: 300; }
.qdone__body {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone-62);
  max-width: 360px;
}

/* ---- Footer ------------------------------------------------ */
.foot {
  border-top: 1px solid var(--gold-18);
  padding: 44px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
}
.foot__mark {
  font-size: 11px;
  letter-spacing: .42em;
  color: var(--bone-55);
}
.foot__mark span { color: var(--gold); }
.foot__note {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(237, 231, 218, .35);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .rail { right: 24px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .rail { display: none; }
  .custom__inner,
  .quote__inner { grid-template-columns: 1fr; gap: 56px; }
  .quote__aside { position: static; }
  .gallery { padding: 100px var(--gutter); }
  .custom { padding: 96px var(--gutter) 110px; }
  .quote { padding: 100px var(--gutter) 120px; }
}

@media (max-width: 860px) {
  /* The authored scrim assumes a wide frame where the hero copy sits low.
     On a tall phone the eyebrow lands mid-frame, so the dark stop has to
     climb with it or a bright clip swallows the type. */
  .hero__scrim {
    background: linear-gradient(to top,
      rgba(10, 12, 16, .97) 0%,
      rgba(10, 12, 16, .72) 55%,
      rgba(10, 12, 16, .42) 100%);
  }
  .hero__eyebrow { font-size: 10px; letter-spacing: .3em; margin-bottom: 20px; }
  .hero__lede { font-size: 14px; margin-top: 22px; }

  /* Three cells don't halve: a 2-up leaves the odd one stranded in a
     half-width row, so drop straight to a single column. */
  .facts__grid { grid-template-columns: 1fr; }
  .facts__item { padding: 40px 24px; border-right: 0; border-bottom: 1px solid var(--gold-14); }
  .facts__item:last-child { border-bottom: 0; }
  .gallery__grid { grid-template-columns: 1fr; }
  .hero__body { padding-bottom: 120px; }
  .qform { padding: 36px 28px; }
  .qdone { padding: 56px 28px; }
}

@media (max-width: 620px) {
  :root { --gutter: 22px; }
  .nav { padding: 18px var(--gutter); }
  .nav__cta { font-size: 10px; letter-spacing: .22em; padding: 9px 14px; }
  .nav__mark { gap: 8px; font-size: 11px; letter-spacing: .3em; }
  .qform__row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .swatches span { height: 56px; }
  .tour__caption { bottom: 48px; right: var(--gutter); }
  .hero__cue { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
}

/* ---- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__cue { display: none; }
  .shot:hover img { transform: none; }
}

/* ---- Print -------------------------------------------------- */
@media print {
  .nav, .rail, .tour__loading, .hero__cue { display: none !important; }
  .tour { height: auto; }
  .tour__stage { position: static; height: auto; }
}
