/* =========================================================
   TGS Apparels — RealTGS.com
   Black · Gold · White (sparingly)
   ========================================================= */

/* ---------- Fonts (self-hosted for speed) ---------- */
@font-face { font-family: "Cinzel"; src: url("../assets/fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --black: #070605;
  --black-2: #0e0c09;
  --gold: #d9a441;        /* sampled from the official logos */
  --gold-soft: rgba(217, 164, 65, 0.28);
  --gold-faint: rgba(217, 164, 65, 0.12);
  --white: #f4efe6;
  --grey: #9a9184;
  --grey-dim: #5f584e;

  --serif: "Cinzel", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--black); }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 500;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-center { text-align: center; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  margin: 1.1rem 0 1.6rem;
}
.section-title em { font-style: normal; color: var(--gold); }

.body-lg { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--white); max-width: 34ch; }
.body { color: var(--grey); max-width: 46ch; margin-top: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.site-header.is-solid {
  background: rgba(7, 6, 5, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--gold-faint);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
/* First screen shows only the hero: menu + pill appear once you scroll */
.header-nav, .status-pill { opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.has-scrolled .header-nav, .has-scrolled .status-pill { opacity: 1; transform: none; pointer-events: auto; }
.no-js .header-nav, .no-js .status-pill { opacity: 1; transform: none; pointer-events: auto; }
.nav-logo-slot { width: 124px; height: 70px; flex: none; }
.header-nav { margin-left: auto; display: flex; gap: 34px; }
.header-nav a {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--white); opacity: 0.72; transition: opacity 0.3s, color 0.3s;
}
.header-nav a:hover { opacity: 1; color: var(--gold); }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--gold-soft); border-radius: 100px;
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Brand mark (moves from hero to header) ---------- */
.brandmark {
  position: fixed; top: 0; left: 0; z-index: 45;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
  opacity: 0;                         /* shown by JS once positioned */
  transition: opacity 0.9s var(--ease);
}
.brandmark.is-ready { opacity: 1; }
.brandmark img,
.hero-logo-slot img { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--header-h) 0 clamp(18px, 4vh, 40px);
}
.hero-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
/* Logo scales with screen width AND height, so the whole first screen always fits */
.hero-logo-slot { width: min(680px, 86vw, calc((100svh - 400px) * 1.67)); min-width: min(300px, 86vw); aspect-ratio: 870 / 520; }
/* Static logo used only if JavaScript is off */
.no-js-logo { display: none; }
.no-js .no-js-logo { display: block; }

.hero-copy { margin-top: clamp(8px, 2vh, 24px); }
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  letter-spacing: 0.06em; line-height: 1.2;
}
.hero-sub {
  margin-top: 1.4rem;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold);
}
.hero-sub .line { width: 56px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 1.6s var(--ease) 0.9s; }
.hero-sub .line:first-child { transform-origin: right; }
.hero-sub .line:last-child  { transform-origin: left; }

/* Hero intro animation */
.hero-title, .hero-sub > span:not(.line) { opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.hero-sub > span:not(.line) { transition-delay: 0.45s; }
.is-loaded .hero-title, .is-loaded .hero-sub > span:not(.line) { opacity: 1; transform: none; }
.is-loaded .hero-sub .line { transform: scaleX(1); }
.hero-copy { transition: opacity 0.2s linear; } /* faded by JS on scroll */

.scroll-cue {
  transition: opacity 0.2s linear;
  position: relative; margin-top: clamp(12px, 3vh, 28px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold);
  padding: 8px 12px 0 calc(12px + 0.42em);
  opacity: 0; animation: cue-in 1.2s var(--ease) 1.6s forwards;
}
.scroll-cue:hover { color: var(--white); }
.scroll-cue-track { width: 1px; height: 54px; background: var(--gold-faint); overflow: hidden; position: relative; }
.scroll-cue-track span { position: absolute; inset: 0; background: var(--gold); animation: drip 2.4s var(--ease) infinite; }
.scroll-cue-chevron { width: 12px; height: 12px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); margin-top: -10px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; } 50% { transform: translateY(5px) rotate(45deg); opacity: 1; } }
@keyframes cue-in { to { opacity: 1; } }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 17px 24px;
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--black); }

/* ---------- Follow ---------- */
.follow { padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 12vh, 140px); text-align: center; }
.follow-inner { display: flex; flex-direction: column; align-items: center; }
.follow-sub { margin-inline: auto; margin-top: 0; }
.social-single { margin-top: 1.6rem; min-width: 220px; border: 1px solid var(--gold-faint); }
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 3.4rem; width: min(760px, 100%); background: var(--gold-faint); border: 1px solid var(--gold-faint); }
.social {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 34px 12px 28px; background: var(--black);
  transition: background-color 0.4s var(--ease);
}
.social svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: var(--gold); stroke: none; }
.social-name { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); }
.social-state { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey); }
.social.is-live { cursor: pointer; }
.social.is-live:hover { background: var(--black-2); }
.social.is-live .social-state { color: var(--gold); }
.social:not(.is-live) { cursor: default; }
.social:not(.is-live) svg { opacity: 0.55; }

.contact { margin-top: 2.6rem; font-size: 0.85rem; color: var(--grey); letter-spacing: 0.04em; }
.contact a { color: var(--white); border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; transition: border-color 0.3s, color 0.3s; }
.contact a:hover { color: var(--gold); border-color: var(--gold); }
.copy-email {
  margin-left: 10px; padding: 5px 12px; vertical-align: 1px;
  background: transparent; border: 1px solid var(--gold-soft); border-radius: 100px; cursor: pointer;
  font: inherit; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.copy-email:hover { border-color: var(--gold); }
.copy-email.is-copied { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ---------- Early Access List ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.early { padding: clamp(110px, 16vh, 180px) 0 0; }
.invite {
  position: relative;
  max-width: 880px; margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) clamp(22px, 6vw, 80px);
  border: 1px solid var(--gold-faint);
  background: var(--black-2);
  text-align: center;
}
.invite-corner { position: absolute; width: 26px; height: 26px; border: 1px solid var(--gold); }
.invite-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.invite-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.invite-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.9vw, 2.75rem);
  line-height: 1.2; letter-spacing: 0.05em; text-transform: uppercase;
  margin: 1.3rem 0 1.4rem;
}
.invite-title em { font-style: normal; color: var(--gold); }
.invite-text { color: var(--grey); max-width: 52ch; margin: 0 auto; }

.waitlist { margin: 2.6rem auto 0; max-width: 620px; }
.field {
  display: flex; align-items: stretch;
  border: 1px solid var(--gold-soft);
  background: var(--black);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.08); }
.field.is-invalid { border-color: #c4553f; }
.field input {
  flex: 1; min-width: 0;
  padding: 18px 20px;
  background: transparent; border: 0; outline: 0;
  color: var(--white); font: inherit; font-size: 0.95rem; letter-spacing: 0.02em;
}
.field input::placeholder { color: var(--grey-dim); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--white); -webkit-box-shadow: 0 0 0 100px var(--black) inset; caret-color: var(--white); }

.btn-solid {
  width: auto; flex: none; position: relative;
  border: 0; border-left: 1px solid var(--gold-soft);
  background: var(--gold); color: var(--black);
  padding: 18px 26px; font-family: var(--sans); cursor: pointer;
  overflow: hidden;
}
.btn-solid::after {   /* soft sheen on hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn-solid:hover::after { transform: translateX(120%); }
.btn-solid:hover { background: #e6b354; color: var(--black); }
.btn-solid:active { transform: translateY(1px); }
.btn-solid:disabled { cursor: progress; }
.btn-spinner {
  display: none; width: 16px; height: 16px; margin: 0 auto;
  border: 1.5px solid rgba(7, 6, 5, 0.3); border-top-color: var(--black); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.is-loading .btn-label { visibility: hidden; }
.is-loading .btn-spinner { display: block; position: absolute; top: 50%; left: 50%; margin: -8px 0 0 -8px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-top: 18px; display: flex; justify-content: center; }

.wl-message { min-height: 1.4em; margin-top: 14px; font-size: 0.82rem; letter-spacing: 0.02em; color: #e08a72; }
.wl-message:empty { visibility: hidden; }
.consent { margin: 6px auto 0; max-width: 54ch; font-size: 0.72rem; line-height: 1.7; color: var(--grey-dim); }
.consent a { color: var(--grey); border-bottom: 1px solid var(--gold-faint); }
.consent a:hover { color: var(--gold); }

/* Success state */
.invite-success { padding: clamp(12px, 3vw, 30px) 0; outline: none; }
.invite-success:not([hidden]) { animation: rise 1s var(--ease) both; }
.success-mark {
  display: block; width: 64px; height: 64px; margin: 0 auto 2rem;
  border: 1px solid var(--gold); border-radius: 50%; position: relative;
}
.success-mark::after {
  content: ""; position: absolute; left: 24px; top: 18px; width: 12px; height: 22px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) scale(0); transform-origin: center;
  animation: tick 0.6s var(--ease) 0.35s forwards;
}
@keyframes tick { to { transform: rotate(45deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.success-title {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.8rem, 4.4vw, 3rem); letter-spacing: 0.06em; color: var(--gold); line-height: 1.15;
}
.success-text { margin-top: 1rem; color: var(--white); letter-spacing: 0.02em; }
.success-note { margin-top: 0.6rem; color: var(--grey); font-size: 0.82rem; }

@media (max-width: 640px) {
  .field { flex-direction: column; border: 0; background: transparent; gap: 12px; box-shadow: none !important; }
  .field input { border: 1px solid var(--gold-soft); background: var(--black); text-align: center; }
  .field input:focus { border-color: var(--gold); }
  .field.is-invalid input { border-color: #c4553f; }
  .btn-solid { border-left: 0; padding: 18px 16px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gold-faint); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.parent { display: flex; align-items: center; gap: 14px; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey); }
.parent img { width: 44px; height: 44px; opacity: 0.9; }
.legal { font-size: 0.72rem; color: var(--grey-dim); letter-spacing: 0.06em; }
.legal a { margin-left: 14px; color: var(--grey); }
.legal a:hover { color: var(--gold); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-nav { display: none; }
  .status-pill { margin-left: auto; padding: 7px 12px; font-size: 0.58rem; }
  .nav-logo-slot { width: 84px; height: 50px; }
  .hero-sub { gap: 12px; font-size: 0.62rem; letter-spacing: 0.3em; }
  .hero-sub .line { display: none; }
  .hero-logo-slot { width: min(94vw, calc((100svh - 380px) * 1.67)); }
  .socials { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-title, .hero-sub > span { opacity: 1 !important; transform: none !important; }
  .hero-sub .line { transform: none !important; }
}
