/* ═══════════════════════════════════════════════════════════════
   forge.css — additions for the SHARED front door (forge.html).

   The skin itself comes from landing.css, which this file loads on
   top of: same ink background, same Michroma/Inter/JetBrains stack,
   same amber chapter tags, same reveal-on-scroll. Everything here is
   either (a) new to the two-desk page, or (b) a per-desk accent.

   Per-desk tints, used nowhere else:
     PhilForge  teal  #3bb9ad — taken from --pf-tint-primary
     CryptoForge amber #f5a623 — the existing --amber

   Keep this file free of inline <style>/<script> dependencies: both
   philforge.in and crypto.philforge.in send a CSP, and a rule that
   only lives in an inline block fails silently in production.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --teal: #3bb9ad;
  --teal-rgb: 59, 185, 173;
  --amber-rgb: 245, 166, 35;
}

/* Reveal delays as classes — landing.css drives .rv, these only stagger it.
   (Was an inline style attribute on the crypto page; a class survives a
   stricter CSP unchanged.) */
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .18s; }
.delay-3 { transition-delay: .26s; }

/* The hero headline words fade in on a stagger. */
.hero-copy h1 span.d1 { animation-delay: .35s; }
.hero-copy h1 span.d2 { animation-delay: .65s; }

/* ═══════════ TINTED CTAs ═══════════
   landing.css ships one white .pill. With two destinations on the page,
   the button has to say which desk it opens before you read the label. */
.pill-teal {
  background: linear-gradient(140deg, #4fd3c5, var(--teal));
  color: #04211f;
  box-shadow: 0 0 0 1px rgba(var(--teal-rgb), .5), 0 10px 30px rgba(var(--teal-rgb), .18);
}
.pill-teal:hover { box-shadow: 0 0 42px rgba(var(--teal-rgb), .5), 0 0 0 1px rgba(var(--teal-rgb), .7); }
.pill-amber {
  background: linear-gradient(140deg, #ffc45f, var(--amber));
  color: #2a1a03;
  box-shadow: 0 0 0 1px rgba(var(--amber-rgb), .5), 0 10px 30px rgba(var(--amber-rgb), .18);
}
.pill-amber:hover { box-shadow: 0 0 42px rgba(var(--amber-rgb), .5), 0 0 0 1px rgba(var(--amber-rgb), .7); }
.cta-row .pill + .pill { margin-left: 12px; }
/* The closer sits below the fold, so its CTA row must not inherit the
   hero's delayed keyframe — that would leave it invisible. */
.cta-static { opacity: 1; animation: none; }

/* ═══════════ THE FORK — two desks ═══════════ */
/* Bottom padding is short of the top's because .engine follows immediately
   and brings its own leading. */
.desks { background: var(--ink); padding: 118px 48px 96px; }
.desks-head { max-width: 720px; margin: 0 auto 62px; text-align: center; }
.desks-head h2 { font-size: clamp(24px, 3vw, 42px); margin: 16px 0 18px; }
.desks-head p { color: #a9a294; font-size: 15.5px; line-height: 1.8; }

.desk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  max-width: 1120px; margin: 0 auto; align-items: stretch;
}

.desk {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid #1c1d24; border-radius: 24px; padding: 38px 34px 32px;
  background: radial-gradient(130% 120% at 50% 0%, #10121a 0%, #07080d 72%);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease,
              opacity 1s ease;
}
.desk.pf { --tint: var(--teal);  --tint-rgb: var(--teal-rgb); }
.desk.cf { --tint: var(--amber); --tint-rgb: var(--amber-rgb); }

/* A hairline of the desk's own colour along the top edge. */
.desk::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--tint), transparent);
  opacity: .75;
}
.desk::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(72% 52% at 50% 0%, rgba(var(--tint-rgb), .10), transparent 70%);
}
.desk > * { position: relative; z-index: 1; }
.desk:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--tint-rgb), .4);
  box-shadow: 0 34px 90px rgba(0,0,0,.6), 0 0 76px rgba(var(--tint-rgb), .09);
}

.desk-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.desk-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  font-family: Michroma, sans-serif; font-size: 13px; color: var(--tint);
  background: linear-gradient(145deg, rgba(26,26,26,.92), rgba(0,0,0,.92));
  border: 1px solid rgba(var(--tint-rgb), .32);
  box-shadow: 0 0 24px rgba(var(--tint-rgb), .12);
}
.desk-top h3 {
  font-family: Michroma, sans-serif; font-weight: 400; font-size: 17px;
  letter-spacing: .04em; color: #f2ede2;
}
.desk-kind {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: #7d7466; margin-top: 6px;
}

.desk-lede { color: #cdc6ba; font-size: 15px; line-height: 1.75; margin-bottom: 24px; }

.desk-spec { list-style: none; margin: 0 0 26px; }
.desk-spec li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
  color: #a9a294; font-size: 13.5px; line-height: 1.65;
}
.desk-spec li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tint); box-shadow: 0 0 10px rgba(var(--tint-rgb), .6);
}

/* The one honest difference between the desks: the clock. */
.desk-clock {
  display: flex; align-items: center; gap: 9px; margin-top: auto;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: .1em; color: #8b8577;
  border-top: 1px solid #17181f; padding-top: 20px; margin-bottom: 24px;
}
.desk-clock .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--tint);
  box-shadow: 0 0 10px rgba(var(--tint-rgb), .75);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.desk-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.desk-cta .pill { font-size: 13.5px; padding: 12px 26px; }
.desk-cta .ghost { font-size: 13px; padding: 12px 18px; margin-left: 0; }

/* ═══════════ SHARED ENGINE ═══════════ */
.engine { background: var(--ink); padding: 20px 48px 118px; }
.engine .strip-head { text-align: center; margin-bottom: 44px; }
.engine-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 1120px; margin: 0 auto;
}
.engine-cell {
  border: 1px solid #1c1d24; border-radius: 18px; padding: 30px 26px;
  background: radial-gradient(120% 130% at 50% 0%, #0e1017 0%, #06070b 72%);
  transition: border-color .2s ease;
}
.engine-cell:hover { border-color: rgba(var(--amber-rgb), .3); }
.engine-k {
  font-family: Michroma, sans-serif; font-size: 10.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.engine-cell p { color: #8b8577; font-size: 13.5px; line-height: 1.75; }

/* ═══════════ FOOTER LINKS ═══════════ */
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  color: #7d7466; text-decoration: none; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; transition: color .18s ease;
}
.footer-links a:hover { color: #d8d2c6; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 980px) {
  .desk-grid { grid-template-columns: 1fr; }
  .engine-row { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .desks, .engine { padding-left: 22px; padding-right: 22px; }
  .desks { padding-top: 90px; padding-bottom: 96px; }
  .desk { padding: 32px 26px 28px; }
  /* Two pills will not sit side by side on a phone. They stack — and the
     second one keeps `margin-left: auto`, because this `+` selector outranks
     the block rule below it and would otherwise pin it to the left edge. */
  .cta-row .pill { display: block; max-width: 260px; margin-left: auto; margin-right: auto; }
  .cta-row .pill + .pill { margin-left: auto; margin-top: 12px; }
  .desk-cta .pill { display: inline-block; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .desk-clock .dot { animation: none; }
  .desk { transition: none; }
}
