/* ==========================================================================
   Threadloft — Coming Soon
   Tokens: bg #e9ded4 · maroon #23333b · gold #C8A24C · text #222222
   Display: Cormorant Garamond · Body: Jost
   ========================================================================== */

:root{
  --bg:        #e9ded4;
  --card:      #f4efe6;
  --maroon:    #23333b;
  --maroon-80: rgba(35,51,59,.8);
  --maroon-15: rgba(35,51,59,.15);
  --maroon-08: rgba(35,51,59,.08);
  --gold:      #c8a24c;
  --gold-deep: #96762f;   /* accessible gold-on-light for text */
  --text:      #222222;
  --text-60:   rgba(34,34,34,.62);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  --seam-w: 78px;
  --ticker-h: 44px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html{
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }

/* -------------------------------------------------- accessibility -------- */

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--maroon);
  color: var(--card);
  padding: .9em 1.4em;
  z-index: 999;
  font-family: var(--font-body);
  text-decoration: none;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

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

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------- layout --------------- */

.hero-grid{
  display: grid;
  grid-template-columns: minmax(0,1.08fr) var(--seam-w) minmax(0,1fr);
  min-height: 100%;
}

.panel{ min-width: 0; }

/* content panel */
.panel--content{
  display: flex;
  align-items: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.panel-inner{
  max-width: 32rem;
  margin-inline: auto;
  width: 100%;
}

.brand-logo{
  width: 108px;
  height: auto;
  margin-bottom: 1.6rem;
}

.eyebrow{
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.headline{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.01em;
  color: var(--maroon);
}

.subline{
  margin: .6rem 0 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  color: var(--gold-deep);
}

.body-copy{
  margin: 0 0 2.2rem;
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-60);
}

/* notify form */
.notify-form{ margin-bottom: 2.4rem; }

.notify-label{
  display: block;
  margin-bottom: .7rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--text);
}

.notify-row{
  display: flex;
  gap: .75rem;
  max-width: 26rem;
}

.notify-input{
  flex: 1 1 auto;
  min-width: 0;
  padding: .95rem 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--maroon-15);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .3s var(--ease);
}
.notify-input::placeholder{ color: var(--text-60); }
.notify-input:hover{ border-bottom-color: var(--maroon-80); }
.notify-input:focus{
  outline: none;
  border-bottom-color: var(--gold-deep);
}
.notify-input:user-invalid{ border-bottom-color: #a13b3b; }

.btn{
  appearance: none;
  cursor: pointer;
  border: 1.5px solid var(--maroon);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn--fill{
  padding: .95rem 1.7rem;
  background: var(--maroon);
  color: var(--gold);
}
.btn--fill:hover{
  background: var(--gold);
  border-color: var(--gold);
  color: var(--maroon);
}
.btn--fill:active{ transform: translateY(1px); }
.btn[disabled]{ opacity: .6; cursor: default; }

.notify-status{
  min-height: 1.4em;
  margin: .7rem 0 0;
  font-size: .85rem;
  color: var(--gold-deep);
}

/* social row */
.social-row{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.social-link{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .68rem 1.15rem;
  border: 1px solid var(--maroon-15);
  border-radius: 999px;
  color: var(--maroon);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .03em;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.social-icon{
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.social-link:hover,
.social-link:focus-visible{
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--gold);
}

/* -------------------------------------------------- woven seam ----------- */

.seam{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.seam-lines{
  flex: 1 1 auto;
  width: 100%;
  max-width: 3px;
  background: linear-gradient(180deg, transparent, var(--maroon-15) 12%, var(--maroon-15) 88%, transparent);
}

.seam-lines::before,
.seam-lines::after{ content: none; }

.seam-medallion{
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  margin: 1.2rem 0;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--maroon-15);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px var(--maroon-08);
}

.weave-mark{
  width: 30px;
  height: 30px;
  animation: spin-slow 50s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes spin-slow{
  to{ transform: rotate(360deg); }
}

/* -------------------------------------------------- image panel ---------- */

.panel--image{
  position: relative;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(200,162,76,.16), transparent 70%),
    linear-gradient(165deg, #2c3f47 0%, var(--maroon) 55%, #1a262c 100%);
  overflow: hidden;
}

.image-frame{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4vh 0 0;
}

.model-img{
  width: auto;
  height: 100%;
  max-width: 92%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 30px 26px rgba(0,0,0,.35));
}

.ground-line{
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: clamp(3.5rem, 9%, 5.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: .45;
}

.panel--image::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,38,44,0) 62%, rgba(26,38,44,.9) 100%);
  pointer-events: none;
}

.image-caption{
  position: absolute;
  left: clamp(1.5rem, 3vw, 3rem);
  bottom: clamp(1.5rem, 3vw, 3rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--card);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}
.image-caption .dot{ color: var(--gold); font-style: normal; }

/* -------------------------------------------------- ticker --------------- */

.ticker{
  height: var(--ticker-h);
  background: var(--maroon);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track{
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 26s linear infinite;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.ticker:hover .ticker-track{ animation-play-state: paused; }

@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation: none; }
  .ticker-track span:last-child{ display: none; }
}

.copyright{
  margin: 0;
  padding: .7rem 1rem;
  text-align: center;
  background: var(--bg);
  color: var(--text-60);
  font-size: .72rem;
  letter-spacing: .04em;
}

/* -------------------------------------------------- reveal animation ----- */

[data-reveal]{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------- responsive ----------- */

@media (max-width: 1024px){
  :root{ --seam-w: 48px; }
  .headline{ font-size: clamp(2.8rem, 8vw, 4.4rem); }
  .panel-inner{ max-width: 28rem; }
}

@media (max-width: 860px){
  .hero-grid{
    grid-template-columns: 1fr;
    grid-template-rows: 46vh auto auto;
  }
  .panel--image{ order: 1; min-height: 46vh; }
  .image-frame{ padding-top: 2.5vh; }
  .seam{
    order: 2;
    flex-direction: row;
    height: 44px;
  }
  .seam-lines{
    height: 2px;
    max-width: none;
    background: linear-gradient(90deg, transparent, var(--maroon-15) 12%, var(--maroon-15) 88%, transparent);
  }
  .seam-medallion{ margin: 0 1rem; }
  .ground-line{ left: 8%; right: 8%; bottom: 2rem; }
  .panel--content{ order: 3; padding: 2.5rem 1.5rem 3rem; }
  .panel-inner{ max-width: 34rem; }
  .image-caption{ font-size: 1rem; }
}

@media (max-width: 520px){
  .brand-logo{ width: 84px; }
  .headline{ font-size: clamp(2.5rem, 13vw, 3.4rem); }
  .subline{ font-size: 1.1rem; }
  .notify-row{ flex-direction: column; }
  .btn--fill{ width: 100%; }
  .social-row{ gap: .6rem; }
  .social-link span:not(.dot){ font-size: .78rem; }
  .ticker-track{ font-size: .68rem; letter-spacing: .16em; }
}

@media (min-width: 1600px){
  .panel-inner{ max-width: 36rem; }
}
