/* Serjacko home page. Everything is scoped to .sjh so it can sit inside the WordPress theme.
   Type follows the brand guideline: Space Grotesk 600 speaks (never below 18px, sentence case),
   Inter works (body, buttons), JetBrains Mono proves (labels, data, every numeral). */

.sjh {
  --volt: #FAEF03;
  --chalk: #F5F5F0;
  --onyx: #060605;
  --ash: #141410;
  --ash-2: #1B1B15;
  --graphite: #9C9C92;
  --line: rgba(245, 245, 240, .10);
  --line-volt: rgba(250, 239, 3, .30);
  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  background: var(--onyx);
  color: var(--chalk);
  font: 400 16px/1.625 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.sjh *, .sjh *::before, .sjh *::after { box-sizing: border-box; }
.sjh h1, .sjh h2, .sjh h3, .sjh p, .sjh ol, .sjh ul, .sjh dl, .sjh dd { margin: 0; padding: 0; }
.sjh ol, .sjh ul { list-style: none; }
.sjh img { display: block; max-width: 100%; height: auto; }
.sjh a { color: inherit; text-decoration: none; }
.sjh h1, .sjh h2, .sjh h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.01em; color: var(--chalk); }
.sjh h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.09; }
.sjh h3 { font-size: 24px; line-height: 1.25; }

.sjh-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.sjh-eyebrow, .sjh-num, .sjh-n, .sjh-cat-meta, .sjh-tags a, .sjh-timeline time {
  font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums;
}
.sjh-eyebrow {
  font-size: 12px; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  color: var(--volt);
  display: flex; align-items: center; gap: 10px;
}
.sjh-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.sjh-eyebrow-dark { color: var(--onyx); }

/* Buttons + links (Inter: Space Grotesk never goes below 18px) */
.sjh-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sjh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 600 15px/1 var(--f-body);
  border-radius: 8px; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.sjh-btn:hover { transform: translateY(-2px); }
.sjh-btn-volt { background: var(--volt); color: var(--onyx) !important; }
.sjh-btn-volt:hover { background: var(--chalk); }
.sjh-btn-ghost { border: 1px solid rgba(245, 245, 240, .3); color: var(--chalk); }
.sjh-btn-ghost:hover { border-color: var(--volt); color: var(--volt); }
.sjh-btn-onyx { background: var(--onyx); color: var(--volt) !important; font-family: var(--f-mono); font-weight: 500; }
.sjh-btn-onyx:hover { background: var(--ash-2); }

.sjh-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--f-body); color: var(--volt) !important;
  border-bottom: 1px solid transparent; padding-bottom: 4px; transition: border-color .2s, gap .2s;
}
.sjh-link::after { content: "→"; }
.sjh-link:hover { border-color: var(--volt); gap: 12px; }

/* ---------- Hero ---------- */
.sjh-hero { position: relative; isolation: isolate; padding: clamp(80px, 11vw, 140px) 0 0; min-height: min(90vh, 880px); display: flex; flex-direction: column; justify-content: space-between; }
.sjh-hero-art { position: absolute; inset: 0; z-index: -1; }
.sjh-court { position: absolute; inset: 0; width: 100%; height: 100%; }
.sjh-hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--onyx) 0%, rgba(6, 6, 5, .9) 30%, rgba(6, 6, 5, 0) 58%),
    linear-gradient(0deg, var(--onyx) 0%, transparent 26%);
}
.sjh-hud {
  position: absolute; z-index: 1; top: clamp(40px, 6vw, 72px); right: max(16px, calc((100% - 1200px) / 2));
  width: 260px; padding: 16px 18px;
  font: 500 12px/1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: .08em; text-transform: uppercase;
  color: var(--graphite);
  background: rgba(20, 20, 16, .72); border: 1px solid var(--line-volt); border-radius: 10px;
}
.sjh-hud p { margin: 0; }
.sjh-hud-top { display: flex; justify-content: space-between; }
.sjh-hud-top span:first-child { color: var(--volt); }
.sjh-hud-score { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 14px !important; padding: 14px 0; border-block: 1px solid var(--line); }
.sjh-hud-score b { font-size: 34px; font-weight: 500; color: var(--chalk); letter-spacing: 0; }
.sjh-hud-score i { font-style: normal; color: var(--graphite); }
.sjh-hud-hit { color: var(--volt); min-height: 12px; }

.sjh-hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
}
.sjh-hero h1 span { display: block; color: var(--volt); }
.sjh-lead { max-width: 520px; font-size: 18px; color: rgba(245, 245, 240, .82); margin-bottom: 34px !important; }

.sjh-facts {
  display: grid; grid-template-columns: 1fr;
  margin-top: clamp(56px, 8vw, 96px) !important;
  border-top: 1px solid var(--line);
}
.sjh-facts div { padding: 26px 24px 30px 0; }
.sjh-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.sjh-facts dt { font: 500 clamp(28px, 3.2vw, 38px)/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--chalk); }
.sjh .sjh-fact-logo { display: inline-block; height: .55em; width: auto; max-width: none; margin-left: .35em; vertical-align: .08em; }
.sjh-facts dd { margin-top: 12px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }

/* ---------- Ticker (data strip: mono caps) ---------- */
.sjh-ticker { background: var(--volt); color: var(--onyx); overflow: hidden; padding: 15px 0; }
.sjh-ticker-track { display: flex; width: max-content; animation: sjh-scroll 34s linear infinite; }
.sjh-ticker span { font: 500 15px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 0 22px; display: flex; align-items: center; gap: 44px; white-space: nowrap; }
.sjh-ticker span::after { content: "■"; font-size: .55em; }
@keyframes sjh-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sjh-ticker-track { animation: none; } }

/* ---------- Generic section ---------- */
.sjh-sec { padding: clamp(72px, 10vw, 128px) 0; }
.sjh-sec-ash { background: var(--ash); }
.sjh-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sjh-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sjh-head-row > div { display: grid; gap: 18px; }

/* ---------- Pillars ---------- */
.sjh-pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.sjh-pillars article { padding: 36px 32px 8px 0; display: flex; flex-direction: column; gap: 16px; }
.sjh-pillars article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.sjh-num { font-size: 13px; line-height: 1; color: var(--volt); }
.sjh-pillars h3 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
.sjh-pillars p { color: rgba(245, 245, 240, .72); flex: 1; }
.sjh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sjh-tags a {
  display: inline-block; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; line-height: 1; letter-spacing: .08em;
  transition: border-color .2s, color .2s;
}
.sjh-tags a:hover { border-color: var(--volt); color: var(--volt); }

/* ---------- Timeline ---------- */
.sjh-timeline { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.sjh-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.sjh-timeline li { position: relative; padding: 34px 18px 0 0; }
.sjh-timeline li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--onyx); border: 2px solid var(--graphite);
}
.sjh-timeline time { display: block; font-size: 12px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--volt); margin-bottom: 12px; }
.sjh-timeline h3 { font-size: 18px; line-height: 1.3; }
.sjh-timeline p { margin-top: 8px; font-size: 14px; color: var(--graphite); line-height: 1.5; }
.sjh-timeline .is-next::before { background: var(--volt); border-color: var(--volt); box-shadow: 0 0 0 6px rgba(250, 239, 3, .18); }

/* ---------- Shop ---------- */
.sjh-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sjh-cat { display: grid; gap: 6px; }
.sjh-cat-img {
  aspect-ratio: 1; margin-bottom: 12px; padding: 12%;
  background: var(--chalk); border-radius: 10px; display: grid; place-items: center; overflow: hidden;
}
.sjh-cat-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.sjh-cat:hover .sjh-cat-img img { transform: scale(1.06); }
.sjh-cat-name { font: 600 20px/1.2 var(--f-head); letter-spacing: -.01em; transition: color .2s; }
.sjh-cat:hover .sjh-cat-name { color: var(--volt); }
.sjh-cat-meta { font-size: 12px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); }

.sjh-kpnp {
  margin-top: 56px; padding: 28px 32px;
  display: flex; align-items: center; gap: 32px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--ash-2);
}
.sjh-kpnp img { width: 160px; flex: none; }
.sjh-kpnp p { color: rgba(245, 245, 240, .78); max-width: 640px; }

/* ---------- FAQ ---------- */
.sjh-faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sjh-faq { border-top: 1px solid var(--line); }
.sjh-faq details { border-bottom: 1px solid var(--line); }
.sjh-faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font: 600 20px/1.3 var(--f-head); letter-spacing: -.01em;
}
.sjh-faq summary::-webkit-details-marker { display: none; }
.sjh-faq summary::after { content: "+"; font: 500 24px/1 var(--f-mono); color: var(--volt); transition: transform .25s; }
.sjh-faq details[open] summary::after { transform: rotate(45deg); }
.sjh-faq summary:hover { color: var(--volt); }
.sjh-faq details > p { padding: 0 48px 28px 0; color: rgba(245, 245, 240, .72); }
.sjh-points { padding: 0 0 26px !important; display: grid; gap: 0; }
.sjh-points li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; color: rgba(245, 245, 240, .72); border-bottom: 1px dashed var(--line); }
.sjh-points li:last-child { border-bottom: 0; }
.sjh-points b { font: 500 14px/1.6 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--volt); white-space: nowrap; }

/* ---------- Contact ---------- */
.sjh-contact { background: var(--volt); color: var(--onyx); padding: clamp(64px, 9vw, 110px) 0; }
.sjh-contact h2 { color: var(--onyx); margin-top: 18px; max-width: 640px; }
.sjh-contact-in { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.sjh-contact-side { display: grid; gap: 14px; justify-items: start; }
.sjh-contact-side p { font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Focus ---------- */
.sjh a:focus-visible, .sjh summary:focus-visible { outline: 2px solid var(--volt); outline-offset: 4px; }
.sjh-contact a:focus-visible { outline-color: var(--onyx); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .sjh-timeline { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
  .sjh-timeline::before { left: 11px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .sjh-timeline li { padding: 0 0 30px 40px; }
  .sjh-timeline li::before { left: 4px; top: 2px; }
  .sjh-cats { grid-template-columns: repeat(2, 1fr); }
  .sjh-faq-grid { grid-template-columns: 1fr; }
  .sjh-hud { display: none; }
}
@media (max-width: 800px) {
  .sjh-court { opacity: .55; }
  .sjh-hero-art::after { background: linear-gradient(0deg, var(--onyx) 8%, rgba(6, 6, 5, .78) 50%, rgba(6, 6, 5, .35) 100%); }
  .sjh-pillars { grid-template-columns: 1fr; }
  .sjh-pillars article, .sjh-pillars article + article { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .sjh-kpnp { flex-direction: column; align-items: start; gap: 18px; padding: 24px; }
  .sjh-kpnp img { width: 130px; }
}
@media (max-width: 560px) {
  .sjh-facts { grid-template-columns: 1fr; }
  .sjh-facts div, .sjh-facts div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; }
  .sjh-facts dd { margin: 0; }
  .sjh-cats { gap: 12px; }
  .sjh-cat-name { font-size: 18px; }
  .sjh-btn { width: 100%; }
  .sjh-faq details > p { padding-right: 0; }
}
