/* =================================================================
   SHAHEE SUITS — Splash / Homepage
   Theme: GOLD & WHITE  |  Aesthetic: refined luxury / editorial
   Concept: "The Maker's Mark & The Golden Thread"
   -----------------------------------------------------------------
   Sections:
     1. Variables           5. Section: Master G (stitched timeline)
     2. Base / reset        6. Section: The Collection
     3. Loading screen      7. Footer
     4. Hero (+ seal)       8. Animations & responsive
   ================================================================= */

/* ---------- 1. VARIABLES — edit these to re-skin the brand ---------- */
:root {
  --gold-1: #bf953f;
  --gold-2: #fcf6ba;
  --gold-3: #b38728;
  --gold-4: #fbf5b7;
  --gold-5: #aa771c;
  --gold-solid: #b8860b;
  --gold-deep: #8a6d1f;

  --white: #ffffff;
  --ivory: #fbf9f3;
  --ivory-soft: #f3eee1;
  --ink: #2a2620;

  --font-display: 'Italiana', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-caps: 'Jost', sans-serif;

  --maxw: 1100px;
}

/* ---------- 2. BASE / RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Reusable gold-foil text fill */
.gold-foil,
.loader__monogram,
.hero__wordmark,
.section__title,
.footer__mark,
.seal__mono {
  background: linear-gradient(
    100deg,
    var(--gold-5) 0%, var(--gold-1) 20%, var(--gold-2) 40%,
    var(--gold-3) 58%, var(--gold-4) 74%, var(--gold-1) 90%, var(--gold-5) 100%
  );
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 3. LOADING SCREEN ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.7,0,.2,1);
}
.loader.is-hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }

.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.loader__ring {
  position: absolute; top: -26px;
  width: 132px; height: 132px; border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--gold-solid); border-right-color: var(--gold-solid);
  animation: spin 1.4s linear infinite, fadeIn .6s ease both;
  opacity: .85;
}
.loader__monogram { font-family: var(--font-display); font-size: 5.5rem; line-height: 1; animation: monoIn 1s cubic-bezier(.2,.8,.2,1) both; }
.loader__name {
  margin-top: 1.6rem; font-family: var(--font-caps); font-weight: 400;
  font-size: .8rem; letter-spacing: .55em; text-indent: .55em;
  color: var(--gold-deep); opacity: 0; animation: fadeIn .9s ease .5s both;
}
.loader__bar { margin-top: 1.6rem; width: 180px; height: 1px; background: rgba(184,134,11,.18); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--gold-solid); animation: load 1.8s cubic-bezier(.6,0,.2,1) forwards; }

/* ---------- 4. HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(212,175,55,.16), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 112%, rgba(212,175,55,.10), transparent 60%),
    var(--ivory);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgba(184,134,11,.05) 0 1px, transparent 1px 11px);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 46%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 46%, #000 30%, transparent 80%);
}
.hero__frame {
  position: absolute; inset: 22px; z-index: 1;
  border: 1px solid rgba(184,134,11,.35); pointer-events: none;
}
.hero__frame::before, .hero__frame::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold-solid);
}
.hero__frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero__frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

/* --- The Maker's Seal --- */
.seal {
  position: relative; width: 92px; height: 92px;
  display: grid; place-items: center; margin-bottom: 1.6rem;
}
.seal__svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: sealSpin 44s linear infinite; }
.seal__ring { fill: none; stroke: var(--gold-solid); stroke-width: 1; opacity: .55; }
.seal__ring--thin { opacity: .3; }
.seal__text {
  font-family: var(--font-caps); font-size: 8.5px; letter-spacing: 2.5px;
  fill: var(--gold-deep); text-transform: uppercase;
}
.seal__mono { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }

/* --- Wordmark with shimmer --- */
.hero__wordmark {
  position: relative; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4.2rem, 17vw, 12.5rem); line-height: .9; letter-spacing: .02em;
}
.hero__shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.9) 48%, rgba(255,247,200,.95) 52%, transparent 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5s ease-in-out 1.6s infinite; pointer-events: none;
}
.hero__sub {
  margin-top: 1rem; font-family: var(--font-caps); font-weight: 300;
  font-size: clamp(.85rem, 2.5vw, 1.15rem); letter-spacing: .15em; color: var(--gold-deep);
}
.hero__divider {
  width: 0; height: 1px; margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--gold-solid), transparent);
  animation: growLine 1.4s cubic-bezier(.6,0,.2,1) 1s forwards;
}
.hero__tagline {
  font-family: var(--font-serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.5rem); color: var(--ink); opacity: .85; max-width: 26ch;
}

/* Scroll cue (button) */
.hero__scroll {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
  background: none; border: 0; cursor: pointer;
}
.hero__scroll span:first-child {
  font-family: var(--font-caps); font-size: .62rem; letter-spacing: .35em; text-indent: .35em;
  text-transform: uppercase; color: var(--gold-deep);
}
.hero__chevron {
  width: 9px; height: 9px; border-right: 1px solid var(--gold-solid); border-bottom: 1px solid var(--gold-solid);
  transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite;
}

/* ---------- 5. SECTIONS (shared) ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(6rem, 14vh, 11rem) 2rem; }
.section__head { text-align: center; margin-bottom: clamp(3.5rem, 8vh, 6rem); }
.section__index {
  font-family: var(--font-caps); font-size: .72rem; letter-spacing: .4em; text-indent: .4em;
  color: var(--gold-deep); margin-bottom: 1.3rem;
}
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; }
.section__lead {
  margin: 1.6rem auto 0; max-width: 46ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 300; font-style: italic; opacity: .8;
}

/* --- The Golden Thread timeline --- */
.thread { position: relative; list-style: none; padding: 1rem 0; }
.thread__line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%);
  /* dashed = stitches */
  background-image: repeating-linear-gradient(to bottom, rgba(184,134,11,.35) 0 6px, transparent 6px 13px);
}
.thread__line i {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: var(--gold-solid); box-shadow: 0 0 8px rgba(184,134,11,.45);
  transition: height .15s linear;
}

.step {
  position: relative; width: 50%; padding: 1.4rem 3rem; margin: .4rem 0; box-sizing: border-box;
}
.step:nth-child(odd)  { left: 0; text-align: right; }     /* :nth-child accounts for the .thread__line span */
.step:nth-child(even) { left: 50%; text-align: left; }

.step__knot {
  position: absolute; top: 2rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--gold-solid);
  transition: background .5s ease, box-shadow .5s ease;
}
.step:nth-child(odd)  .step__knot { right: -5.5px; }
.step:nth-child(even) .step__knot { left: -5.5px; }
.step.is-in .step__knot { background: var(--gold-solid); box-shadow: 0 0 0 4px rgba(184,134,11,.15); }

.step__no {
  display: block; font-family: var(--font-caps); font-size: .72rem; letter-spacing: .3em;
  color: var(--gold-deep); margin-bottom: .5rem;
}
.step__body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3.2vw, 2rem); margin-bottom: .4rem; }
.step__body p { font-weight: 300; font-size: clamp(1rem, 2.2vw, 1.18rem); line-height: 1.5; opacity: .78; max-width: 34ch; margin-inline: 0; }
.step:nth-child(odd) .step__body p { margin-left: auto; }

/* ---------- 6. THE COLLECTION ---------- */
.houses { list-style: none; border-top: 1px solid rgba(184,134,11,.22); }
.house {
  display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.4rem) .5rem;
  border-bottom: 1px solid rgba(184,134,11,.22);
  transition: padding-left .5s cubic-bezier(.16,1,.3,1), background .5s ease;
}
.house:hover { padding-left: 1.4rem; background: linear-gradient(90deg, rgba(212,175,55,.07), transparent); }
.house__no {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold-deep);
  min-width: 2.2ch; opacity: .7;
}
.house__body { flex: 1; }
.house__body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.05; }
.house__body p { font-weight: 300; font-size: clamp(.98rem, 2.2vw, 1.18rem); opacity: .72; margin-top: .3rem; }
.house__meta {
  font-family: var(--font-caps); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-deep); white-space: nowrap;
}
.house--soon { opacity: .62; }
.house--soon .house__meta { color: var(--gold-solid); }

/* ---------- 7. FOOTER ---------- */
.footer {
  position: relative; text-align: center; padding: clamp(5rem, 12vh, 8rem) 2rem clamp(3rem, 7vh, 4rem);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(212,175,55,.10), transparent 70%),
    var(--ivory);
}
.footer__knot {
  width: 9px; height: 9px; border-radius: 50%; margin: 0 auto 2.4rem;
  background: var(--gold-solid); box-shadow: 0 0 0 4px rgba(184,134,11,.14);
}
.footer__mark { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1; }
.footer__line { font-style: italic; font-weight: 300; opacity: .8; margin-top: .8rem; font-size: 1.1rem; }
.footer__contact { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; align-items: center; }
.footer__contact a {
  font-family: var(--font-caps); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep); text-decoration: none; position: relative; padding-bottom: 3px;
}
.footer__contact a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold-solid); transition: width .4s ease;
}
.footer__contact a:hover::after { width: 100%; }
.footer__contact span { color: rgba(184,134,11,.4); }
.footer__fine { margin-top: 2.6rem; font-family: var(--font-caps); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; opacity: .45; }

/* ---------- 8. ANIMATIONS & SCROLL REVEALS ---------- */
/* hero load-in (delay via --d) */
.reveal { opacity: 0; transform: translateY(22px); }
body.is-ready .reveal { animation: revealUp 1.1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }

/* on-scroll reveals (toggled by JS via IntersectionObserver) */
.reveal-os { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
.reveal-os.is-in { opacity: 1; transform: none; }

@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sealSpin { to { transform: rotate(360deg); } }
@keyframes load { to { width: 100%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes monoIn { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes shimmer { 0% { background-position: 150% 0; } 60%, 100% { background-position: -120% 0; } }
@keyframes growLine { to { width: min(260px, 60vw); } }
@keyframes bob { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: .4; } 50% { transform: rotate(45deg) translate(3px,3px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-os { opacity: 1 !important; transform: none !important; }
  .hero__divider { width: min(260px, 60vw); }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .hero__frame { inset: 14px; }
  .hero__scroll { bottom: 2rem; }
  .loader__monogram { font-size: 4.2rem; }

  /* timeline collapses to a single left rail */
  .thread__line { left: 14px; }
  .step, .step:nth-child(odd), .step:nth-child(even) {
    width: 100%; left: 0; text-align: left; padding: 1.2rem 0 1.2rem 2.6rem;
  }
  .step:nth-child(odd) .step__knot, .step:nth-child(even) .step__knot { left: 9.5px; right: auto; }
  .step:nth-child(odd) .step__body p { margin-left: 0; }
  .step__body p { max-width: 100%; }

  .house { gap: 1rem; }
}
