/* forjge homepage — dark steel, one fire. Fonts are declared once in src/styles.css. Palette from forjge: near-black #0E0E10, forge orange #F2622E, cream #EDEDED. */

:root {
  --bg: #0E0E10;
  --ink: #EDEDED;
  --mute: #8A8A90;
  --line: rgba(255, 255, 255, 0.06);
  --orange: #F2622E;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 "Inter", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--orange); color: var(--bg); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 88rem; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

.display { font-family: "Fraunces", "Times New Roman", serif; font-weight: 300; font-optical-sizing: auto; font-variation-settings: "SOFT" 30, "WONK" 0; letter-spacing: -0.04em; }
.display em { font-style: italic; }
.j { color: var(--orange); }

/* ---------- shared ---------- */
.label { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--mute); }
.tick { width: 32px; height: 1px; background: linear-gradient(90deg, transparent, var(--orange), #FFB27A); }
.block { padding-top: 144px; padding-bottom: 144px; }
@media (min-width: 768px) { .block { padding-top: 176px; padding-bottom: 176px; } }
.ruled { border-top: 1px solid var(--line); }
.body { font-size: 17px; line-height: 1.65; color: rgba(237, 237, 237, .62); max-width: 32rem; }
@media (min-width: 768px) { .body { font-size: 19px; } }
.body .w, .lede .w { color: var(--ink); }
.body.small { font-size: 15px; }
.stack p + p { margin-top: 24px; }
.h2 { margin-top: 40px; font-size: clamp(2.5rem, 5.6vw, 5.25rem); line-height: 1; color: var(--ink); }
.h2.narrow { max-width: 16ch; }
.two { display: grid; gap: 64px; }
.two.tight { margin-top: 40px; gap: 40px; }
.two.tight .h2 { margin-top: 0; }
@media (min-width: 768px) { .two { grid-template-columns: 1.1fr 1fr; gap: 96px; } .bottom { align-self: end; } }
.tiny { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }

/* things rise into place once, the first time they're on screen */
.rise { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.rise.seen { opacity: 1; transform: none; }
/* hero lines come up out of a blur on load */
.in { opacity: 0; transform: translateY(.35em); filter: blur(10px); animation: in 1.3s var(--ease) var(--d, 0s) forwards; }
@keyframes in { to { opacity: 1; transform: none; filter: blur(0); } }

/* molten type: white-hot at the core, cooling to orange at the edges, slowly shifting */
.molten { background: linear-gradient(100deg, #8F230C 0%, #F2622E 22%, #FFB774 42%, #FFF1D6 52%, #FFB774 62%, #F2622E 80%, #8F230C 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em;
  animation: flow 7s ease-in-out infinite alternate; filter: drop-shadow(0 0 22px rgba(242, 98, 46, .35)); }
@keyframes flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.warm { color: #FFD9BF; }

/* ---------- buttons: a bar of metal; hover heats it from below, pressing strikes sparks off it ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 48px; }
.strike { position: relative; display: inline-flex; align-items: center; gap: 16px; overflow: hidden; border-radius: 999px; padding: 16px 28px; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transition: color .5s, box-shadow .5s, border-color .5s; }
.strike .txt, .strike .dash { position: relative; }
.strike .dash { width: 28px; height: 1px; background: currentColor; transition: width .5s; }
.strike:hover .dash { width: 44px; }
.strike.hot { border: 1px solid rgba(242, 98, 46, .7); color: #FFE9DA; }
.strike.hot .fill { position: absolute; inset: 0; transform: translateY(101%); transition: transform .7s var(--ease); background: linear-gradient(to top, #FFF1D6 0%, #FFB774 28%, #F2622E 62%, #8F230C 100%); }
.strike.hot:hover { border-color: #FFB27A; color: #170a05; box-shadow: 0 0 44px -6px rgba(242, 98, 46, .75); }
.strike.hot:hover .fill { transform: none; }
.strike.hot .j { transition: color .5s; }
.strike.hot:hover .j { color: #170a05; }
.strike.cold { border: 1px solid rgba(255, 255, 255, .15); color: rgba(237, 237, 237, .85); }
.strike.cold:hover { border-color: rgba(242, 98, 46, .7); color: #fff; }
.sparks { position: fixed; inset: 0; z-index: 70; pointer-events: none; width: 100vw; height: 100vh; }
.quiet { display: inline-flex; gap: 12px; font-size: 14px; color: rgba(237, 237, 237, .7); transition: color .3s; }
.quiet span:first-child { border-bottom: 1px solid rgba(255, 255, 255, .15); padding-bottom: 2px; transition: border-color .3s; }
.quiet span:last-child { transition: transform .3s; }
.quiet:hover { color: var(--ink); }
.quiet:hover span:first-child { border-color: var(--orange); }
.quiet:hover span:last-child { transform: translateX(4px); }
.hot-link { color: var(--orange); text-decoration: underline; text-decoration-color: rgba(242, 98, 46, .3); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.hot-link:hover { text-decoration-color: var(--orange); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 100%, #17110f 0%, var(--bg) 55%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .35; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px); }
.heat { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; padding-top: 128px; padding-bottom: 176px; }
.hero-title { margin-top: 32px; font-size: clamp(3.1rem, 9.2vw, 9.5rem); line-height: .92; letter-spacing: -0.045em; }
.hero-title .line { display: block; }
.lede { margin-top: 40px; max-width: 34rem; font-size: 17px; line-height: 1.65; color: rgba(237, 237, 237, .65); }
@media (min-width: 768px) { .lede { font-size: 19px; } }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--mute); pointer-events: none; }

/* ---------- the idea ---------- */
.quench { margin-top: 40px; max-width: 14ch; font-size: clamp(2.8rem, 7.4vw, 7.25rem); line-height: .98; }
.quench span { color: #2A2A2E; }
.split { margin-top: 56px; display: grid; }
@media (min-width: 768px) { .split { margin-top: 80px; grid-template-columns: 1fr 1fr; gap: 80px; } .push { grid-column: 2; } }

/* ---------- brotherhood ---------- */
.tenets { display: grid; border-top: 1px solid var(--line); padding: 0; }
@media (min-width: 768px) { .tenets { grid-template-columns: repeat(3, 1fr); } }
.tenet { position: relative; padding: 48px 24px; overflow: hidden; }
.tenet + .tenet { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .tenet { padding: 64px 40px; } .tenet + .tenet { border-top: 0; border-left: 1px solid var(--line); } }
.tenet::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .7s; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 120%, rgba(242, 98, 46, .22), transparent 70%); }
.tenet:hover::before { opacity: 1; }
.num { position: relative; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .2em; color: var(--orange); }
.tenet h3 { position: relative; margin-top: 24px; font-size: 2.25rem; letter-spacing: -0.03em; }
.tenet p:last-child { position: relative; margin-top: 16px; max-width: 22rem; font-size: 15px; line-height: 1.6; color: rgba(237, 237, 237, .55); }

/* ---------- journey ---------- */
.intro { margin-top: 32px; max-width: 34rem; }
.journey { margin-top: 80px; }
@media (min-width: 768px) { .journey { margin-top: 112px; } }
.bar { position: relative; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, #3a0d06 0%, #8f230c 22%, #F2622E 55%, #FFB774 78%, #FFF1D6 100%); }
.bar-tip { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; }
.stop { position: absolute; top: 50%; left: var(--at); width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, .18); background: var(--bg); transition: background-color .5s, border-color .5s; }
.ranks { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 48px; }
@media (min-width: 768px) { .ranks { grid-template-columns: repeat(3, 1fr); gap: 0; } .ranks li { padding: 0 24px; text-align: center; } }
.temp { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #5a5a60; transition: color .7s; }
.ranks h3 { margin-top: 20px; font-size: clamp(2.25rem, 3.6vw, 3.25rem); letter-spacing: -0.03em; color: #3A3A3E; transition: color .7s, text-shadow .7s; }
.ranks .line { margin: 16px auto 0; max-width: 17rem; font-size: 15px; line-height: 1.6; color: #3A3A3E; transition: color .7s; }
@media (max-width: 767px) { .ranks .line { margin-left: 0; } }
.ranks li.lit h3 { color: var(--ink); }
.ranks li.lit .line { color: rgba(237, 237, 237, .6); }

/* ---------- forj score ---------- */
.step { margin-top: 96px; display: grid; gap: 32px; }
@media (min-width: 768px) { .step { margin-top: 128px; grid-template-columns: 16rem 1fr; gap: 64px; } }
.big-num { font-size: 3.5rem; line-height: 1; color: var(--orange); }
.step-head h3 { margin-top: 12px; font-size: 2rem; letter-spacing: -0.03em; }
.step-head p:last-child { margin-top: 16px; font-size: 15px; line-height: 1.6; color: rgba(237, 237, 237, .55); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(5, 1fr); } }
.pillars li { position: relative; overflow: hidden; min-height: 11rem; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .pillars li { padding: 24px; } }
/* each pillar heats up from below when you touch it */
.pillars li::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .7s; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 115%, rgba(255, 183, 116, .35), rgba(242, 98, 46, .18) 40%, transparent 72%); }
.pillars li:hover::before, .pillars li:focus-within::before { opacity: 1; }
.pillars .n { position: relative; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .2em; color: #5a5a60; transition: color .5s; }
.pillars li:hover .n { color: #FFB774; }
.pillars .name { position: relative; margin-top: 32px; font-size: 1.6rem; letter-spacing: -0.02em; }
.pillars .note { position: relative; margin-top: 8px; font-size: 13px; line-height: 1.4; color: rgba(237, 237, 237, .45); }
.result { display: grid; align-items: center; gap: 48px; padding: 32px; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(160deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 45%); }
@media (min-width: 768px) { .result { grid-template-columns: 1fr 1.1fr; padding: 48px; } }
.score { margin-top: 24px; display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.score .molten { font-size: clamp(5.5rem, 10vw, 8.5rem); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.score .of { font-size: 1.4rem; color: var(--mute); letter-spacing: 0; }
.tiny.strong { margin-top: 8px; color: rgba(237, 237, 237, .5); }
.gap { margin-top: 40px; padding: 20px; border-radius: 16px; border: 1px solid rgba(242, 98, 46, .3); background: rgba(242, 98, 46, .06); }
.gap .hot { color: var(--orange); }
.gap p:last-child { margin-top: 12px; font-size: 15px; line-height: 1.6; color: rgba(237, 237, 237, .75); }
.gap b { font-weight: 500; color: var(--ink); }
.radar { width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
.radar .shape { transform-origin: 180px 180px; transform: scale(0); opacity: 0; transition: transform 1.6s var(--ease) .2s, opacity 1.6s var(--ease) .2s; }
.result.seen .radar .shape { transform: none; opacity: 1; }
.radar text { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 9.5px; letter-spacing: 1.6px; fill: var(--mute); }
.radar text.gap-axis { fill: var(--orange); }
.actions.after { margin-top: 64px; }
@media (min-width: 768px) { .actions.after { margin-left: 20rem; } }

/* ---------- close + hearth ---------- */
.close { position: relative; isolation: isolate; overflow: hidden; }
.close .block { padding-bottom: 96px; }
.huge { margin-top: 40px; max-width: 13ch; font-size: clamp(3rem, 8.4vw, 8.75rem); line-height: .95; letter-spacing: -0.045em; }
.hearth { position: relative; isolation: isolate; overflow: hidden; }
.hearth::before { content: ""; position: absolute; inset: auto 0 0; height: 85%; z-index: -2; pointer-events: none;
  background: radial-gradient(70% 100% at 50% 100%, rgba(242, 98, 46, .32), rgba(143, 35, 12, .14) 45%, transparent 75%); }
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.foot-row nav { display: flex; gap: 24px; }
.foot-row a { transition: color .3s; }
.foot-row a:hover { color: var(--ink); }
/* the wordmark set into the fire: only the j is hot */
.giant { margin: 0; padding: 0 16px; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-size: clamp(7rem, 31vw, 30rem); line-height: .78; letter-spacing: -0.06em; color: #1d1a19;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.hot-j { color: var(--orange); text-shadow: 0 0 40px rgba(242, 98, 46, .6), 0 0 120px rgba(242, 98, 46, .35); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { color: #FF8A4C; text-shadow: 0 0 60px rgba(255, 138, 76, .75), 0 0 160px rgba(242, 98, 46, .45); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .rise, .radar .shape { animation: none; opacity: 1; transform: none; filter: none; transition: none; }
  .molten, .hot-j { animation: none; }
}
