/* tgfrp.com/gta6: the home page's world (web/home/home.css): near-black ink, warm off-white, square edges, Barlow
   Condensed for display, Noto Sans for Korean/Japanese/Chinese/Thai, our own GTA V captures, one teal action.
   Order: skyline hero with the headline and the two ways in, the status rail over its edge (the one moving part), what
   carries over, the Discord address. No inline style anywhere (CSP). */
:root {
  color-scheme: dark;
  --ink: #07090a;
  --carbon: #0e1112;
  --carbon-2: #14191a;
  --paper: #f4f3ef;
  --dim: rgba(244, 243, 239, .66);
  --faint: rgba(244, 243, 239, .44);
  --line: rgba(244, 243, 239, .14);
  --hair: rgba(244, 243, 239, .09);
  --teal: #5fb3a3;
  --teal-soft: rgba(95, 179, 163, .18);
  --on-teal: #0b211d;
  --cjk: 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans Thai';
  --f-mark: 'Barlow Condensed', var(--cjk), 'Arial Narrow', sans-serif;
  --f-ui: 'Barlow', var(--cjk), system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --gut: 48px;
  --top: 110px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); scrollbar-color: rgba(244, 243, 239, .22) var(--ink); accent-color: var(--teal); }
body { margin: 0; background: var(--ink); color: var(--paper); font: 500 16px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html:not([lang="en"]) body { font-family: var(--cjk), system-ui, sans-serif; }
:lang(ko) { word-break: keep-all; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--teal); color: var(--on-teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
main:focus { outline: none; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 60; padding: 10px 16px; background: var(--teal); color: var(--on-teal); font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
/* Without JavaScript the bar is the site name alone. */
#site-bar:not(.sb-host) { position: absolute; z-index: 5; padding: 22px var(--gut); font: 800 19px/1 var(--f-mark); letter-spacing: .05em; text-transform: uppercase; }

/* Display type: the home page's condensed uppercase (Latin); CJK and Thai fall back to Noto Sans at a heavy weight. */
.h1-key, h2, .stop-state { font-family: var(--f-mark); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: .98; text-wrap: balance; }
html:not([lang="en"]) h2 { letter-spacing: -.02em; line-height: 1.12; }
/* Other languages: one face (Noto Sans) through every heading, Latin words included, so a heading never mixes two. */
html:not([lang="en"]) :is(h2, .stop-state) { font-family: var(--cjk), sans-serif; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(100svh, 940px); padding: calc(var(--top) + 64px) var(--gut) 176px; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: saturate(1.15) contrast(1.06); }
/* Darkest where the type sits (lower left) and into the page below; the skyline and the clouds stay open. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 9, 10, .66) 0%, rgba(7, 9, 10, .28) 40%, rgba(7, 9, 10, 0) 62%),
              linear-gradient(180deg, rgba(7, 9, 10, .5) 0%, rgba(7, 9, 10, 0) 22%, rgba(7, 9, 10, 0) 58%, rgba(7, 9, 10, .88) 90%, var(--ink) 100%); }
.hero-in { width: min(var(--wrap), 100%); margin: 0 auto; }
h1 { display: flex; flex-direction: column; gap: 14px; margin: 0; text-shadow: 0 2px 28px rgba(0, 0, 0, .45); }
.h1-key { font-size: clamp(64px, 9vw, 96px); line-height: .86; letter-spacing: -.01em; }
.h1-line { max-width: 19ch; font-family: var(--f-mark); font-size: clamp(30px, 3.6vw, 50px); font-weight: 700; line-height: 1.02; text-transform: uppercase; text-wrap: balance; }
html:not([lang="en"]) .h1-line { max-width: 18em; font-family: var(--cjk), sans-serif; font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; text-transform: none; }
.sub { max-width: 46ch; margin-top: 22px; font-size: 18px; line-height: 1.55; color: rgba(244, 243, 239, .82); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 26px; font-size: 17px; font-weight: 700; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--on-teal); padding-right: 22px; }
.btn-primary:hover { background: #71c4b4; }
.btn-ghost { border: 1px solid rgba(244, 243, 239, .34); background: rgba(7, 9, 10, .36); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(7, 9, 10, .6); }
.btn-ghost:hover .ico { transform: translate(2px, -2px); }

/* ---------- status rail: over the hero's bottom edge ---------- */
.status { position: relative; z-index: 2; width: min(var(--wrap), calc(100% - 2 * var(--gut))); margin: -112px auto 0; padding: 30px 40px 36px; background: rgba(14, 17, 18, .94); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.status-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.status h2 { font-size: 22px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; }
html:not([lang="en"]) .status h2 { letter-spacing: 0; }
.status-head p { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stop { position: relative; display: flex; flex-direction: column; gap: 6px; padding-right: 24px; }
/* The track to the next stop: dashed by default (not yet), solid when the next stop has happened. */
.stop:not(:last-child)::after { content: ""; position: absolute; left: 22px; right: 4px; top: 6px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(244, 243, 239, .3) 0 6px, transparent 6px 12px); }
.stop:has(+ .stop[data-done])::after { background: var(--paper); transform-origin: left; }
.mark { position: relative; width: 14px; height: 14px; margin-bottom: 14px; border: 2px solid rgba(244, 243, 239, .42); background: var(--carbon); }
.stop[data-done] .mark { border-color: var(--paper); background: var(--paper); }
.stop[data-state="live"] .mark { border-color: var(--teal); background: var(--teal); }
.stop[data-state="live"] .mark::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--teal); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.stop-name { font-size: 14px; font-weight: 600; color: var(--dim); line-height: 1.35; }
.stop-state { font-size: clamp(24px, 2.4vw, 34px); line-height: 1; color: var(--paper); }
html:not([lang="en"]) .stop-state { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.stop[data-state="live"] .stop-state { color: var(--teal); }
.stop:not([data-done]) .stop-state { color: rgba(244, 243, 239, .58); }
.stop time { font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* The rail draws once when it comes into view (gta6.js adds .anim, then .in): solid track grows, stops land in turn. */
.anim .status .stop { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.anim .status .stop::after { transition: transform 1s var(--ease); }
.anim .status .stop:has(+ .stop[data-done])::after { transform: scaleX(0); }
.anim .status.in .stop { opacity: 1; transform: none; }
.anim .status.in .stop:has(+ .stop[data-done])::after { transform: scaleX(1); }
.anim .status.in .stop:nth-child(2), .anim .status.in .stop:nth-child(1)::after { transition-delay: .25s; }
.anim .status.in .stop:nth-child(3), .anim .status.in .stop:nth-child(2)::after { transition-delay: .5s; }
.anim .status.in .stop:nth-child(4), .anim .status.in .stop:nth-child(3)::after { transition-delay: .75s; }

/* ---------- sections ---------- */





/* ---------- closing ---------- */
.end { position: relative; isolation: isolate; margin-top: 136px; padding: 72px var(--gut) 80px; text-align: center; border-top: 1px solid var(--hair); overflow: hidden; }
.end::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 0%, var(--teal-soft), transparent 70%); }
.end { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.end-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 260px; height: 180px; border: 1px solid var(--line); background: rgba(10, 13, 14, .6); color: var(--paper); font-weight: 700; font-size: 17px; text-decoration: none; transition: border-color .15s, color .15s, transform .2s var(--ease); }
.end-link:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.end-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.end-link-discord svg { color: #5865F2; }
.end-link img { width: 56px; height: 56px; }

/* ---------- footer (the home page's) ---------- */
.foot { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 44px 24px calc(56px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(244, 243, 239, .08); background: #050607; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 13px; }
.foot nav a { color: var(--dim); }
.foot nav a:hover { color: var(--paper); }
.foot .legal { max-width: 760px; font-size: 12px; line-height: 1.6; color: rgba(244, 243, 239, .45); }
.foot img { opacity: .7; }

@media (max-width: 1024px) {
  :root { --gut: 32px; }
}
@media (max-width: 860px) {
  :root { --gut: 16px; --top: 56px; }
  .hero { min-height: 0; padding: calc(var(--top) + 120px) var(--gut) 72px; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 9, 10, .5) 0%, rgba(7, 9, 10, .15) 30%, rgba(7, 9, 10, .7) 62%, var(--ink) 100%); }
  .hero-img { object-position: 58% 30%; }
  .h1-key { font-size: clamp(56px, 17vw, 80px); }
  .sub { font-size: 16px; margin-top: 16px; }
  .cta { flex-direction: column; margin-top: 28px; }
  .btn { width: 100%; }
  .status { width: calc(100% - 2 * var(--gut)); margin-top: 0; padding: 24px 20px 26px; }
  .status-head { flex-direction: column; gap: 2px; margin-bottom: 22px; }
  /* Vertical rail: marks on the left, the track runs down between them. */
  .rail { grid-template-columns: 1fr; }
  .stop { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 0; row-gap: 2px; padding: 0 0 22px; }
  .stop:last-child { padding-bottom: 0; }
  .stop > :not(.mark) { grid-column: 2; }
  .mark { grid-row: 1 / span 3; margin: 3px 0 0; }
  .stop:not(:last-child)::after { left: 6px; right: auto; top: 22px; bottom: 2px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(244, 243, 239, .3) 0 6px, transparent 6px 12px); }
  .stop:has(+ .stop[data-done])::after { background: var(--paper); transform-origin: top; }
  .anim .status .stop:has(+ .stop[data-done])::after { transform: scaleY(0); }
  .anim .status.in .stop:has(+ .stop[data-done])::after { transform: scaleY(1); }
  .stop-state { font-size: 26px; }
  h2 { font-size: clamp(34px, 10vw, 44px); }
  .end { margin-top: 88px; padding: 56px var(--gut) 64px; }
  .end { gap: 12px; }
  .end-link { width: calc(50% - 6px); height: 140px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stop[data-state="live"] .mark::after { animation: none; opacity: 0; }
  .btn, .btn .ico, .end-link { transition: none; }
}
