/* ============================================
   FORGD — forgd.co
   Palette: forge black, ember orange, hot white
   Breakpoints: mobile <640 · tablet 640–1024 · desktop >1024
   ============================================ */

/* Self-hosted so the page never blocks on a third-party font request. */
@font-face {
  font-family: 'Anton';
  src: url('assets/fonts/anton.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --black:      #0a0908;
  --char:       #121110;
  --char-2:     #1a1817;
  --steel-line: #34302d;

  --ember:      #ff5f1f;
  --ember-hot:  #ff8a3d;
  --white-hot:  #ffd9b0;

  --text:       #e8e4e0;
  --text-dim:   #9d9691;
  --text-faint: #6b6560;

  --wrap:   1180px;
  --narrow: 800px;

  --nav-h:  74px;

  --f-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Where the wordmark sits inside the 16:9 video frame. Drives the flight. */
  --mark-l: 9.08%;
  --mark-t: 16.28%;
  --mark-w: 82.12%;
  --mark-h: 69.01%;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Nothing scrolls until the intro hands over. */
body.is-intro { overflow-y: hidden; }

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ember); color: #000; padding: 12px 20px; font-weight: 600; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }
.wrap--narrow { max-width: var(--narrow); }

/* ---------- Type ---------- */
.eyebrow { font-size: clamp(10.5px, 1.6vw, 12px); font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ember); margin: 0 0 18px; }

.h2 { font-family: var(--f-display); font-size: clamp(30px, 5.5vw, 60px); line-height: 1.02;
  letter-spacing: 0.01em; text-transform: uppercase; margin: 0 0 24px; color: #fff; }

.lede { font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); max-width: 68ch; margin: 0 0 22px; }
.lede--center { margin-left: auto; margin-right: auto; text-align: center; }
.lede--tight { margin-top: 36px; }

.hot { color: var(--ember); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-body); font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  padding: 15px 30px;
  color: #140b05;
  background: linear-gradient(180deg, var(--ember-hot), var(--ember));
  border: 1px solid var(--ember-hot);
  border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 34px rgba(255,95,31,0.34); filter: brightness(1.07); }
.btn:focus-visible { outline: 2px solid var(--white-hot); outline-offset: 3px; }

.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--steel-line); }
.btn--ghost:hover { border-color: var(--ember); color: #fff; box-shadow: 0 8px 26px rgba(0,0,0,0.5); }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ============================================
   NAV — hidden during the intro, then builds in
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 28px);
}

/* the bar itself — draws across from the left */
.nav__bg {
  position: absolute; inset: 0;
  background: rgba(10, 9, 8, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--steel-line);
  transform: scaleX(0); transform-origin: left center;
  opacity: 0;
  transition: transform 0.85s var(--ease), opacity 0.4s ease;
}
body.is-resolved .nav__bg { transform: scaleX(1); opacity: 1; }
/* bar stays translucent until you scroll off the hero */
body.is-resolved .nav:not(.is-stuck) .nav__bg { background: rgba(10, 9, 8, 0.42); border-bottom-color: transparent; }

.nav__brand {
  position: relative; z-index: 2;
  display: inline-block;
  font-family: var(--f-display);
  font-size: 27px; line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  /* faint ember heat coming off the letters */
  text-shadow: 0 0 22px rgba(255, 95, 31, 0.34);
  opacity: 0;
  transition: opacity 0.45s ease, color 0.2s ease, text-shadow 0.3s ease;
}
/* revealed as the flying wordmark lands on top of it */
body.is-resolved .nav__brand.is-landed { opacity: 1; }
.nav__brand:hover { color: var(--ember-hot); text-shadow: 0 0 26px rgba(255, 95, 31, 0.6); }

/* menu items stagger in behind the bar */
.nav__menu { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 30px); }
.nav__menu a {
  color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color 0.2s;
  opacity: 0; transform: translateY(-8px);
}
.nav__menu a:not(.btn):hover { color: #fff; }
.nav__menu .btn { color: #140b05; }

body.is-resolved .nav__menu a {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s;
}
body.is-resolved .nav__menu a:nth-child(1) { transition-delay: 0.42s; }
body.is-resolved .nav__menu a:nth-child(2) { transition-delay: 0.50s; }
body.is-resolved .nav__menu a:nth-child(3) { transition-delay: 0.58s; }
body.is-resolved .nav__menu a:nth-child(4) { transition-delay: 0.66s; }
body.is-resolved .nav__menu a:nth-child(5) { transition-delay: 0.74s; }

/* hamburger */
.nav__toggle {
  display: none;
  position: relative; z-index: 3;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  opacity: 0;
}
body.is-resolved .nav__toggle { opacity: 1; transition: opacity 0.4s ease 0.42s; }
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- the flying wordmark (start box is measured in JS) ---- */
.lift {
  position: absolute;
  left: 14.9%; top: 22.14%; width: 69.77%; height: 50.78%;
  object-fit: fill;
  mix-blend-mode: screen;
  opacity: 0;
  transform-origin: top left;
  pointer-events: none;
  z-index: 60;
  will-change: transform, opacity;
}
.lift.is-armed  { opacity: 1; }
/* crossfade to the type lockup mid-flight — the photo mark turns to mush
   once it's scaled down to nav size, so hand off before it gets there */
.lift.is-flying { transition: transform 1.15s var(--ease), opacity 0.5s ease 0.5s; }
.lift.is-done   { opacity: 0; }

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; text-align: center; padding-bottom: clamp(60px, 9vh, 110px); }

/* capped so the headline still lands above the fold on a laptop */
.hero__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 64svh; overflow: visible; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s ease, filter 0.9s ease; }
body.is-resolved .hero__video { opacity: 0.42; filter: saturate(0.85); }

.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10,9,8,0.60) 0%, rgba(10,9,8,0.06) 18%, rgba(10,9,8,0.00) 48%,
    rgba(10,9,8,0.60) 86%, var(--black) 100%);
}

.hero__inner {
  position: relative; z-index: 3;
  max-width: 860px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 28px);
  margin-top: clamp(-70px, -5vw, -24px);
  opacity: 0; transform: translateY(26px);
}
.hero__inner.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4.8vw, 58px);
  line-height: 1.02; letter-spacing: 0.015em; text-transform: uppercase;
  margin: 0 0 18px; color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.9);
}
.hero__sub {
  font-size: clamp(15px, 1.9vw, 19px); color: var(--text-dim);
  max-width: 60ch; margin: 0 auto 30px; text-shadow: 0 2px 20px rgba(0,0,0,0.95);
}
.hero__sub em { color: var(--text); font-style: italic; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(66px, 11vw, 140px) 0; position: relative; }
.section--alt { background: var(--char); border-block: 1px solid var(--steel-line); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 22px; margin-top: clamp(36px, 5vw, 52px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--char-2), var(--char));
  border: 1px solid var(--steel-line); border-radius: 3px;
  padding: clamp(28px, 4vw, 36px) clamp(24px, 3.4vw, 32px);
  position: relative; overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card:hover { border-color: #4a423c; transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card__num { font-family: var(--f-display); font-size: 13px; letter-spacing: 0.2em; color: var(--ember); margin-bottom: 16px; }
.card h3 { font-family: var(--f-display); font-size: clamp(21px, 2.6vw, 25px); text-transform: uppercase;
  margin: 0 0 12px; color: #fff; letter-spacing: 0.02em; }
.card p { margin: 0; color: var(--text-dim); font-size: 16px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 46px 0 0; }
.split__col { border: 1px solid var(--steel-line); border-radius: 3px; padding: 30px 28px; background: var(--char-2); }
.split__col--hot { border-color: rgba(255,95,31,0.42);
  background: linear-gradient(180deg, rgba(255,95,31,0.07), rgba(255,95,31,0.015)); }
.split__head { font-family: var(--f-display); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 18px; color: var(--text-faint); }
.split__col--hot .split__head { color: var(--ember); }

.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 16px; color: var(--text-dim); }
.list li:last-child { border-bottom: 0; }
.split__col--hot .list li { color: var(--text); }

/* ---------- Knowledge library (Q&A) ---------- */
.qa { margin-top: clamp(32px, 4.5vw, 46px); border-top: 1px solid var(--steel-line); }

.qa__item { border-bottom: 1px solid var(--steel-line); }

.qa__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 0;
  font-family: var(--f-display);
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.25;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.2s;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--ember-hot); }

/* the +/− is drawn, so it can't fall out of sync with the open state */
.qa__q::before {
  content: ""; flex: 0 0 auto;
  width: 13px; height: 13px; margin-top: 5px;
  background:
    linear-gradient(var(--ember), var(--ember)) center/13px 2px no-repeat,
    linear-gradient(var(--ember), var(--ember)) center/2px 13px no-repeat;
  transition: transform 0.3s var(--ease);
}
/* keep the vertical bar and rotate it a quarter turn — it lands as a minus */
.qa__item[open] .qa__q::before {
  transform: rotate(90deg);
  background: linear-gradient(var(--ember), var(--ember)) center/2px 13px no-repeat;
}

.qa__a { padding: 0 0 24px 29px; }
.qa__a p { margin: 0; color: var(--text-dim); font-size: 16.5px; max-width: 68ch; }

/* ---------- Pricing ---------- */
.pricing { align-items: start; }
.tier {
  background: linear-gradient(180deg, var(--char-2), var(--char));
  border: 1px solid var(--steel-line); border-radius: 3px;
  padding: clamp(30px, 4vw, 38px) clamp(24px, 3.4vw, 32px) 34px;
  display: flex; flex-direction: column; position: relative;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.tier:hover { border-color: #4a423c; transform: translateY(-3px); }
.tier--featured {
  border-color: rgba(255,95,31,0.5);
  background: linear-gradient(180deg, rgba(255,95,31,0.09), var(--char) 62%);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,95,31,0.12);
}
.tier--featured:hover { border-color: var(--ember); }
.tier__flag {
  position: absolute; top: -11px; left: clamp(24px, 3.4vw, 32px);
  background: var(--ember); color: #140b05;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
}
.tier__name { font-family: var(--f-display); font-size: clamp(25px, 3vw, 30px); text-transform: uppercase;
  margin: 0 0 14px; color: #fff; letter-spacing: 0.04em; }
.tier__price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.tier__amt { font-family: var(--f-display); font-size: clamp(36px, 4.4vw, 44px); color: #fff; line-height: 1; }
.tier--featured .tier__amt { color: var(--ember-hot); }
.tier__per { color: var(--text-faint); font-size: 15px; }
.tier__for { color: var(--text-dim); font-size: 15px; margin: 0 0 26px; }
@media (min-width: 900px) { .tier__for { min-height: 48px; } }

.ticks { list-style: none; margin: 0 0 30px; padding: 0; flex: 1; }
.ticks li { position: relative; padding: 8px 0 8px 26px; font-size: 15.5px; color: var(--text-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 5px;
  border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(-45deg);
}

/* ---------- Form ---------- */
.form { margin-top: 42px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--black); border: 1px solid var(--steel-line); border-radius: 2px;
  color: var(--text); font-family: var(--f-body);
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #5a544f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,95,31,0.14);
}
.field select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%),
                    linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { margin: 16px 0 0; font-size: 15px; min-height: 22px; text-align: center; }
.form__note.is-ok { color: var(--ember-hot); }
.form__note.is-err { color: #ff6b6b; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--steel-line); padding: 44px 0; background: var(--black); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer__brand { font-family: var(--f-display); font-size: 22px; color: #fff; letter-spacing: 0.06em; }
.footer__meta { color: var(--text-faint); font-size: 14px; }
.footer__meta a { color: var(--text-dim); text-decoration: none; }
.footer__meta a:hover { color: var(--ember); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================
   TABLET  (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root { --nav-h: 68px; }
  .nav__menu { gap: 20px; }
  .nav__menu a:not(.btn) { font-size: 14px; }
}

/* ============================================
   MOBILE  (≤640px) — hamburger + stacked layout
   ============================================ */
@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  body { font-size: 16px; }

  .nav__brand { font-size: 22px; }
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed; inset: 0 0 auto; top: 0;
    height: 100svh;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 4px;
    padding: 0 32px;
    background: rgba(8, 7, 6, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    /* fade rather than slide off-canvas: a fixed element translated 100%
       isn't clipped by body overflow and would widen the page */
    opacity: 0; visibility: hidden; transform: translateX(16px);
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
    z-index: 1;
  }
  .nav__menu.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s;
  }

  /* in the drawer the links are big; skip the desktop stagger */
  .nav__menu a { font-size: 30px !important; font-family: var(--f-display);
    text-transform: uppercase; letter-spacing: 0.02em; color: var(--text) !important;
    padding: 12px 0; opacity: 1 !important; transform: none !important; transition-delay: 0s !important; }
  .nav__menu .nav__cta {
    margin-top: 22px; font-family: var(--f-body); font-size: 16px !important;
    text-transform: none; color: #140b05 !important; padding: 15px 30px;
  }

  /* Stay at 16:9 on phones. Anything narrower crops the sides with
     object-fit: cover and slices letters off the wordmark. */
  .hero__stage { max-height: none; }

  .hero__inner { margin-top: -18px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   MOTION / ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero__video { display: none; }
  .hero__stage { background: #0a0908 url('assets/hero.jpg') center/cover no-repeat; }
}
