/* ============================================================
   FFB Tuner — home page (bold sim-racing brand)
   Loaded after style.css + site.css on index.html only.
   Display type: Barlow Condensed (italic, heavy). Body: Inter.
   ============================================================ */

:root {
  --ink: #07080B;
  --ink-2: #0E1015;
  --paper: #F4F1EC;
  --orange: #FF7A1A;
  --orange-deep: #E5600A;
  --line: rgba(255,255,255,0.09);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --slant: 6vw;
}

body.home { background: var(--ink); }
body.home .nav { background: rgba(7,8,11,0.86); }
body.home .btn-primary,
body.home .h-btn {
  font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.h-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px 15px; font-size: 1.25rem; line-height: 1; color: #000;
  background: var(--orange); border: none; cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background 0.15s, transform 0.15s;
}
.h-btn:hover { background: #FF8F3D; color: #000; transform: translateY(-1px); }
.h-btn svg { width: 20px; height: 20px; }
.h-btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); clip-path: none; }
.h-btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange); }
.h-btn small { font-family: var(--font-sans); font-style: normal; font-weight: 600; font-size: 0.8rem; letter-spacing: 0; text-transform: none; opacity: 0.75; }

/* ---------- Hero ---------- */
.h-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 56px) 0 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255,122,26,0.07) 58% 59%, transparent 59%),
    var(--ink);
}
.h-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; min-height: min(78vh, 760px); }
.h-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange);
}
.h-kicker::before { content: ""; width: 34px; height: 4px; background: var(--orange); transform: skewX(-20deg); }
.h-kicker a { color: inherit; }
.h-title {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(4rem, 10.5vw, 9.5rem); line-height: 0.82; letter-spacing: -0.01em; color: var(--paper);
  margin-left: -0.04em;
}
.h-title .o { color: var(--orange); }
.h-title .outline { color: transparent; -webkit-text-stroke: 2px rgba(244,241,236,0.85); }
.h-lede { max-width: 470px; margin: 26px 0 32px; font-size: 1.1rem; line-height: 1.6; color: #B9B6B0; }
.h-lede b { color: var(--paper); font-weight: 600; }
.h-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.h-meta { margin-top: 16px; font-size: 0.82rem; color: #8D8A85; }

.h-shot { position: relative; justify-self: end; width: 100%; max-width: 760px; }
.h-shot::before {
  content: ""; position: absolute; inset: 8% -30% -10% 12%;
  background: var(--orange); transform: skewX(-14deg); z-index: 0;
}
.h-shot-frame {
  position: relative; z-index: 1; background: #000;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.h-shot-frame img { display: block; width: 100%; height: auto; }
.h-shot-tag {
  position: absolute; z-index: 2; left: 2%; bottom: -18px;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: #000; background: var(--paper);
  padding: 6px 14px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.h-shot-tag i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E5262A; margin-right: 8px; vertical-align: 1px; animation: h-blink 1.2s steps(2) infinite; }
@keyframes h-blink { 50% { opacity: 0.2; } }

/* Games ticker */
.h-ticker {
  position: relative; margin-top: 72px; background: var(--orange); color: #000;
  transform: skewY(-2deg); transform-origin: left; overflow: hidden;
}
.h-ticker-track { display: flex; width: max-content; animation: h-marquee 28s linear infinite; }
.h-ticker span {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1; padding: 16px 0; white-space: nowrap;
}
.h-ticker span::after { content: "/"; margin: 0 28px; opacity: 0.45; }
@keyframes h-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .h-ticker-track, .h-shot-tag i { animation: none; } }

@media (max-width: 960px) {
  .h-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .h-shot { justify-self: stretch; }
  .h-shot::before { inset: 10% -10% -8% 10%; }
}

/* ---------- Numbers ---------- */
.h-numbers { padding: 90px 0 30px; }
.h-num-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.h-num { padding: 26px 20px 0 0; border-right: 1px solid var(--line); }
.h-num:last-child { border-right: none; }
.h-num + .h-num { padding-left: 24px; }
.h-num b {
  display: block; font-family: var(--display); font-style: italic; font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.2rem); line-height: 0.9; color: var(--paper);
}
.h-num b sup { font-size: 0.4em; color: var(--orange); vertical-align: top; margin-left: 4px; position: relative; top: 0.25em; }
.h-num span { display: block; margin-top: 8px; color: #8D8A85; font-size: 0.9rem; }
@media (max-width: 700px) {
  .h-num-grid { grid-template-columns: 1fr 1fr; }
  .h-num { padding: 22px 12px 22px 0 !important; border-bottom: 1px solid var(--line); }
  .h-num:nth-child(2n) { border-right: none; padding-left: 16px !important; }
}

/* ---------- Chapters ---------- */
.h-chapter { position: relative; padding: 110px 0; }
.h-chapter + .h-chapter { border-top: 1px solid var(--line); }
.h-ch-grid { display: grid; grid-template-columns: 0.85fr 1.35fr; gap: 56px; align-items: center; }
.h-chapter.flip .h-ch-grid { grid-template-columns: 1.35fr 0.85fr; }
.h-chapter.flip .h-ch-text { order: 2; }
.h-ch-no {
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.8; color: transparent; -webkit-text-stroke: 2px var(--orange); display: block; margin-bottom: 10px;
}
.h-ch-text h2 {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 0.9; color: var(--paper); letter-spacing: -0.005em;
}
.h-ch-text p { color: #B9B6B0; font-size: 1.05rem; line-height: 1.65; margin-top: 18px; max-width: 440px; }
.h-ch-spec { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); max-width: 440px; }
.h-ch-spec li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: #8D8A85; }
.h-ch-spec li b { color: var(--paper); font-weight: 600; text-align: right; }
.h-ch-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange);
}
.h-ch-link::after { content: ""; width: 28px; height: 3px; background: currentColor; transform: skewX(-20deg); transition: width 0.2s; }
.h-ch-link:hover { color: #FF9D57; }
.h-ch-link:hover::after { width: 44px; }
.h-media { position: relative; }
.h-media img { display: block; width: 100%; height: auto; border: 1px solid rgba(255,255,255,0.12); }
.h-media::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 38%; height: 38%;
  border-right: 4px solid var(--orange); border-bottom: 4px solid var(--orange); pointer-events: none;
}
.h-chapter.flip .h-media::after { right: auto; left: -14px; border-right: none; border-left: 4px solid var(--orange); }
@media (max-width: 960px) {
  .h-chapter { padding: 72px 0; }
  .h-ch-grid, .h-chapter.flip .h-ch-grid { grid-template-columns: 1fr; gap: 32px; }
  .h-chapter.flip .h-ch-text { order: 0; }
  .h-media::after { right: -8px; bottom: -8px; }
  .h-chapter.flip .h-media::after { left: -8px; }
}

/* Full-bleed dashboard strip */
.h-strip { position: relative; background: #000; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-strip img { display: block; width: 100%; max-width: 1400px; margin: 0 auto; height: auto; }
.h-strip-label {
  position: absolute; left: 0; top: 0; z-index: 1; background: var(--orange); color: #000;
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: 0.95rem; letter-spacing: 0.06em; padding: 7px 22px 7px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* ---------- What's new (compact) ---------- */
.h-news { padding: 100px 0; }
.h-news-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.h-news-head h2 {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.9; color: var(--paper);
}
.h-news-head h2 span { color: var(--orange); }
.h-news-head p { color: #8D8A85; font-size: 0.9rem; }
body.home .s-cl-list { gap: 0; border-top: 1px solid var(--line); }
body.home .s-cl-item { background: transparent; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0; grid-template-columns: 110px 1fr; }
body.home .s-badge { border-radius: 0; font-family: var(--display); font-style: italic; font-size: 0.85rem; letter-spacing: 0.06em; padding: 3px 8px; justify-self: start; min-width: 0; }
body.home .s-cl-item p { color: #CFCBC5; }
@media (max-width: 760px) { body.home .s-cl-item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Test Drive band ---------- */
.h-td {
  position: relative; margin: 40px 0; padding: 90px 0;
  background: var(--paper); color: #000;
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.h-td-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.h-td h2 {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 6rem); line-height: 0.85;
}
.h-td h2 span { color: var(--orange-deep); }
.h-td p { font-size: 1.05rem; line-height: 1.6; color: #3B3934; max-width: 460px; }
.h-td .h-actions { margin-top: 24px; }
.h-td .h-btn.ghost { color: #000; box-shadow: inset 0 0 0 2px #000; }
.h-td .h-btn.ghost:hover { color: var(--orange-deep); box-shadow: inset 0 0 0 2px var(--orange-deep); }
@media (max-width: 800px) { .h-td-grid { grid-template-columns: 1fr; } .h-td { padding: 80px 0; } }

/* ---------- Gallery ---------- */
.h-gallery { padding: 80px 0 40px; }
.h-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-gallery figure { position: relative; cursor: zoom-in; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.h-gallery img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; transition: transform 0.4s; }
.h-gallery figure:hover img { transform: scale(1.04); }
.h-gallery figcaption {
  position: absolute; left: 0; bottom: 0; background: rgba(0,0,0,0.8); color: var(--paper);
  font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.9rem; padding: 5px 12px;
}
@media (max-width: 700px) { .h-gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Finale ---------- */
.h-final { padding: 110px 0 120px; text-align: left; position: relative; overflow: hidden; }
.h-final::before {
  content: "GO"; position: absolute; right: -2vw; bottom: -6vw; z-index: 0;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 34vw; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 2px rgba(255,122,26,0.18); pointer-events: none;
}
.h-final .container { position: relative; z-index: 1; }
.h-final h2 {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.4rem, 9vw, 8rem); line-height: 0.82; color: var(--paper); max-width: 900px;
}
.h-final h2 span { color: var(--orange); }
.h-final p { color: #B9B6B0; font-size: 1.1rem; margin: 24px 0 34px; max-width: 520px; }
.h-final-specs { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 30px; color: #8D8A85; font-size: 0.85rem; }
.h-final-specs b { color: var(--paper); font-weight: 600; }

/* Footer on home */
body.home .s-footer { background: #000; margin-top: 0; }

/* Shared: reveal motion a little snappier on home */
body.home .reveal { transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }

/* fixes */
body.home section.h-td { background: var(--paper); }
body.home section.h-strip { background: #000; padding-top: 34px; }
body.home section.h-hero { background:
    linear-gradient(115deg, transparent 0 58%, rgba(255,122,26,0.07) 58% 59%, transparent 59%), var(--ink); }
body.home section.h-chapter, body.home section.h-numbers, body.home section.h-gallery, body.home section.h-final { background: transparent; }
