/* ---------------------------------------------------
   OG Jay Pages — tokens
--------------------------------------------------- */
:root {
  --bg: #0a0d13;
  --bg-panel: #10141d;
  --bg-panel-2: #141924;
  --line: rgba(242, 241, 236, 0.09);
  --line-strong: rgba(242, 241, 236, 0.16);
  --ink: #f2f1ec;
  --ink-dim: #a9b0bd;
  --ink-dimmer: #6b7280;
  --amber: #e8a93a;
  --amber-soft: rgba(232, 169, 58, 0.14);
  --flare: #ff5a3c;
  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

/* subtle film-grain overlay for texture, static, cheap */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------------------------------------------------
   Layout helpers
--------------------------------------------------- */
.section__head {
  max-width: 640px;
  margin: 0 0 3rem;
}
.section__head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: var(--ink);
}
.section__head p {
  margin-top: 0.9rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 46ch;
}
.section__head--light h2 { color: var(--ink); }

/* ---------------------------------------------------
   Nav
--------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(10, 13, 19, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__mark {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.nav__mark-x {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.nav__mark-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  border: 1px solid var(--line-strong);
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav__cta:hover {
  border-color: var(--amber);
  background: var(--amber-soft);
}
@media (max-width: 780px) {
  .nav__links { display: none; }
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(232, 169, 58, 0.10), transparent 60%),
    linear-gradient(180deg, #0a0d13 0%, #0a0d13 100%);
}

.hero__lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__lights span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.25;
  animation: twinkle 4.5s ease-in-out infinite;
}
.hero__lights span:nth-child(1) { top: 8%; left: 6%; animation-delay: 0s; }
.hero__lights span:nth-child(2) { top: 14%; left: 22%; animation-delay: 0.6s; }
.hero__lights span:nth-child(3) { top: 6%; left: 40%; animation-delay: 1.2s; }
.hero__lights span:nth-child(4) { top: 22%; left: 58%; animation-delay: 1.8s; }
.hero__lights span:nth-child(5) { top: 10%; left: 74%; animation-delay: 2.4s; }
.hero__lights span:nth-child(6) { top: 30%; left: 12%; animation-delay: 0.3s; }
.hero__lights span:nth-child(7) { top: 36%; left: 88%; animation-delay: 0.9s; }
.hero__lights span:nth-child(8) { top: 4%; left: 92%; animation-delay: 1.5s; }
.hero__lights span:nth-child(9) { top: 44%; left: 30%; animation-delay: 2.1s; }
.hero__lights span:nth-child(10) { top: 18%; left: 66%; animation-delay: 2.7s; }
.hero__lights span:nth-child(11) { top: 26%; left: 46%; animation-delay: 3.3s; }
.hero__lights span:nth-child(12) { top: 40%; left: 4%; animation-delay: 3.9s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.6); }
}

.hero__grid {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--amber);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.94;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.hero__title .reveal--accent { color: var(--amber); }

.hero__sub {
  margin-top: 1.6rem;
  max-width: 50ch;
  font-size: 1.08rem;
  color: var(--ink-dim);
}

.hero__badges {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
  color: var(--ink-dim);
  background: rgba(242, 241, 236, 0.02);
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-dimmer);
  flex-shrink: 0;
}
.badge--accent {
  border-color: rgba(232, 169, 58, 0.45);
  color: var(--amber);
  background: var(--amber-soft);
}
.badge--accent .badge__dot { background: var(--amber); }

.hero__actions {
  margin-top: 2.3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--amber);
  color: #14100a;
}
.btn--primary:hover { transform: translateY(-2px); background: #f0b850; }
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink-dim); }

/* reveal-on-load sequence (one orchestrated moment) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--d) * 0.09s + 0.1s);
}
@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

/* portrait */
.hero__portrait {
  position: relative;
  display: flex;
  justify-content: center;
}
.portrait__frame {
  position: relative;
  width: min(100%, 380px);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  animation: float-up 6s ease-in-out infinite;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.portrait__frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.portrait__tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1.1rem 1rem;
  background: linear-gradient(0deg, rgba(10, 13, 19, 0.92) 30%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.portrait__tag-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
}
.portrait__tag-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.hero__scroll {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 3.5rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-dimmer);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--line-strong);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; margin-bottom: 1rem; }
  .portrait__frame { width: min(70%, 320px); }
}

/* ---------------------------------------------------
   The Standard
--------------------------------------------------- */
.standard {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: var(--container);
  margin: 0 auto;
}

.standard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.standard__item {
  position: relative;
  padding: 2.1rem 0 2.1rem 1.6rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  transition: border-color 0.25s ease;
}
.standard__item:hover { border-left-color: var(--amber); }

.standard__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
  line-height: 1.08;
}

.standard__item p {
  color: var(--ink-dim);
  max-width: 56ch;
  align-self: center;
}

@media (max-width: 780px) {
  .standard__item { grid-template-columns: 1fr; gap: 0.8rem; }
}

/* ---------------------------------------------------
   Record / stats
--------------------------------------------------- */
.record {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.record .section__head { max-width: var(--container); margin-left: auto; margin-right: auto; }

.record__row {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 1.5rem 1.5rem 0 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.stat:first-child { border-left: none; padding-left: 0; }

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
}
.stat--accent .stat__num { color: var(--amber); }
.stat__label {
  color: var(--ink-dim);
  font-size: 0.9rem;
  max-width: 22ch;
}

@media (max-width: 780px) {
  .record__row { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .stat { border-left: none; padding-left: 0; }
}

/* ---------------------------------------------------
   Process
--------------------------------------------------- */
.process {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: var(--container);
  margin: 0 auto;
}

.process__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
  display: grid;
  gap: 2.6rem;
}

.process__step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.6rem;
  align-items: start;
}

.process__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--ink-dimmer);
  line-height: 1;
}

.process__step h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.process__step p {
  color: var(--ink-dim);
  max-width: 58ch;
}

@media (max-width: 600px) {
  .process__step { grid-template-columns: 50px 1fr; gap: 1rem; }
  .process__num { font-size: 1.8rem; }
}

/* ---------------------------------------------------
   Verify
--------------------------------------------------- */
.verify {
  background: var(--bg-panel-2);
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}
.verify__inner { max-width: var(--container); margin: 0 auto; }

.verify__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.verify__card {
  background: var(--bg-panel-2);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background 0.2s ease;
}
.verify__card:hover { background: rgba(232, 169, 58, 0.06); }

.verify__card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.02em;
}
.verify__card-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
}
.verify__card--mono .verify__card-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  word-break: break-all;
  line-height: 1.4;
}
.verify__card-note {
  color: var(--ink-dim);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .verify__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.footer {
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink-dim);
}
.footer__note {
  color: var(--ink-dimmer);
  font-size: 0.82rem;
  max-width: 60ch;
}
.footer__copy {
  color: var(--ink-dimmer);
  font-size: 0.78rem;
}

/* scroll-triggered entrance, paired with script.js */
.pre-view {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pre-view.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .pre-view { opacity: 1; transform: none; transition: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
