/* CardMyService, shared shell. Loaded after styles.css on every page. */

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9,12,6,0.93); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex; align-items: center; gap: 1.6rem;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.nav .brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: none; }
.nav .brand svg { width: 30px; height: 15.8px; display: block; }
.nav .brand b {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 700; font-size: 1.28rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone);
}
.nav .tabs2 { display: flex; gap: 0.1rem; margin-left: auto; flex-wrap: wrap; }
.nav .tabs2 a {
  text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 2px;
  font-family: "Oswald", sans-serif; font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--bone-3); white-space: nowrap;
}
.nav .tabs2 a:hover { color: var(--bone); }
.nav .tabs2 a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.nav .buy {
  flex: none; text-decoration: none; border-radius: 2px; padding: 0.55rem 1.1rem;
  background: linear-gradient(178deg, var(--gold-lt), var(--gold)); color: #241C04;
  font-family: "Oswald", sans-serif; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.nav .navacts { flex: none; display: flex; align-items: center; gap: 0.5rem; }
.nav .navacts .login, .nav .navacts .try {
  text-decoration: none; white-space: nowrap; border-radius: 2px; padding: 0.55rem 0.8rem;
  font-family: "Oswald", sans-serif; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.nav .navacts .login { color: var(--bone); }
.nav .navacts .login:hover { color: var(--gold-lt); }
.nav .navacts .try { color: var(--bone); border: 1px solid rgba(240,236,221,0.28); padding: calc(0.55rem - 1px) 0.9rem; }
.nav .navacts .try:hover { border-color: var(--gold); }
.nav .navacts a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 1180px) {
  .nav .wrap { flex-wrap: wrap; gap: 0.7rem; }
  .nav .navacts { margin-left: auto; }
  .nav .tabs2 { order: 3; width: 100%; margin-left: 0; }
  .nav .tabs2 a { padding: 0.5rem 0.7rem; font-size: 0.63rem; }
}
@media (max-width: 520px) {
  .nav .navacts .try { display: none; }
  .nav .navacts .login { padding: 0.55rem 0.4rem; }
}
.tier .tierbuy { text-align: center; margin-top: 0.4rem; }
.tier .tiernote { font-size: 0.85rem; color: var(--bone-3); text-align: center; margin: -0.4rem 0 0; }

/* ---------- page headers ---------- */
.phead { padding: 4.2rem 0 3.2rem; border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 60% at 12% -20%, rgba(143,163,92,0.12), transparent 70%), var(--field); }
.phead h1 {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 0.94; text-transform: uppercase;
  margin: 0.8rem 0 0; text-wrap: balance;
}
.phead .sub { margin-top: 1.3rem; color: var(--bone-2); font-size: 1.16rem; max-width: 58ch; }
.phead .sub strong { color: var(--bone); font-weight: 500; }

/* ---------- footer ---------- */
.foot2 { border-top: 1px solid var(--line); background: #070904; color: var(--bone-3); font-size: 0.86rem; }
.foot2 .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; padding: 2.2rem 1.4rem 2.6rem; }
.foot2 .links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot2 .links a { color: var(--bone-3); text-decoration: none; font-family: "Oswald", sans-serif; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.foot2 .links a:hover { color: var(--gold); }
.foot2 .dis2 { max-width: 58ch; line-height: 1.55; }

/* ---------- shared bits ---------- */
.rowsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: start; }
@media (max-width: 900px) { .rowsplit { grid-template-columns: 1fr; } }

.bigpoint { display: flex; flex-direction: column; gap: 0.4rem; padding-left: 1.15rem; border-left: 2px solid var(--gold); }
.bigpoint h3 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.bigpoint p { color: var(--bone-2); font-size: 1.02rem; }
.bigpoint strong { color: var(--bone); font-weight: 500; }

.cta2 { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* ---------- the facebook frame ---------- */
.fbwrap { max-width: 520px; margin: 0 auto; }
.fb {
  background: #1B1D20; border: 1px solid #2C2F34; border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.fb .fbtop { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 0.9rem 0.55rem; }
.fb .fbav {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #3A4A2A; color: #E8E4D2; font-size: 0.85rem; font-weight: 600;
}
.fb .fbwho { display: flex; flex-direction: column; line-height: 1.25; }
.fb .fbwho b { color: #E4E6EB; font-size: 0.92rem; font-weight: 600; }
.fb .fbwho span { color: #B0B3B8; font-size: 0.76rem; }
.fb .fbtext { padding: 0 0.9rem 0.7rem; color: #E4E6EB; font-size: 0.95rem; line-height: 1.4; }
.fb .fbmedia { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.fb .fbmedia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.fb .fbmedia img.on { opacity: 1; animation: fbburns 4.2s linear both; }
@keyframes fbburns { from { transform: scale(1.03); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .fb .fbmedia img.on { animation: none; } }
.fb .fbcap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 0.9rem 0.9rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85)); text-align: center; pointer-events: none;
}
.fb .fbcap b {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; color: #fff;
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.02em; display: block;
}
.fb .fbcap span { font-family: "Oswald", sans-serif; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: #E8C86A; display: block; margin-top: 3px; }
.fb .fbbadge {
  position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.68rem; padding: 3px 8px; border-radius: 3px; letter-spacing: 0.04em;
}
.fb .fbprog { height: 3px; background: #2C2F34; position: relative; }
.fb .fbprog i { position: absolute; left: 0; top: 0; bottom: 0; background: #E8C86A; width: 0; display: block; }
.fb .fbstats { display: flex; justify-content: space-between; padding: 0.6rem 0.9rem; color: #B0B3B8; font-size: 0.8rem; border-bottom: 1px solid #2C2F34; }
.fb .fbacts { display: flex; }
.fb .fbacts button {
  flex: 1; background: transparent; border: 0; color: #B0B3B8; padding: 0.6rem 0; cursor: default;
  font-size: 0.86rem; font-weight: 600;
}
.fb .fbcomment { display: flex; gap: 0.5rem; padding: 0.7rem 0.9rem 0.9rem; border-top: 1px solid #2C2F34; }
.fb .fbcomment .fbav { width: 30px; height: 30px; font-size: 0.72rem; }
.fb .fbcomment .bub { background: #3A3B3C; border-radius: 14px; padding: 0.45rem 0.75rem; color: #E4E6EB; font-size: 0.85rem; }
.fb .fbcomment .bub b { display: block; font-size: 0.8rem; margin-bottom: 1px; }

/* ---------- the demo page frame ---------- */
.demoswitch { display: flex; gap: 0.4rem; justify-content: center; margin-bottom: 1.6rem; flex-wrap: wrap; }
.demoswitch button {
  cursor: pointer; background: transparent; color: var(--bone-3);
  border: 1px solid var(--line-2); border-radius: 2px; padding: 0.6rem 1.1rem;
  font-family: "Oswald", sans-serif; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.demoswitch button[aria-pressed="true"] { color: #241C04; background: linear-gradient(178deg, var(--gold-lt), var(--gold)); border-color: var(--gold); font-weight: 500; }

/* ---------- legacy chain ---------- */
.chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; margin-top: 2.4rem; }
.link2 {
  border: 1px solid var(--line-2); border-radius: 3px; padding: 1.2rem 1.2rem 1.3rem;
  background: var(--field-2); display: flex; flex-direction: column; gap: 0.3rem; position: relative;
}
.link2.now { border-color: rgba(201,162,39,0.6); background: var(--raise); }
.link2 .rel2 { font-family: "Oswald", sans-serif; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.link2 .nm2 { font-family: "Big Shoulders Display", sans-serif; font-weight: 700; font-size: 1.4rem; text-transform: uppercase; line-height: 1.05; }
.link2 .sv2 { font-family: "JetBrains Mono", monospace; font-size: 0.74rem; color: var(--bone-3); }

.handoff { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 2.4rem; counter-reset: step; }
.hstep { border-top: 3px solid var(--gold); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.hstep b {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 1.9rem;
  color: var(--gold-lt); line-height: 1;
}
.hstep h4 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em; }
.hstep p { color: var(--bone-3); font-size: 0.97rem; }


/* ---------- the reel is a phone, not a cinema ---------- */
.reelphone {
  max-width: 420px; margin: 1.6rem auto 1.2rem; padding: 0 1rem;
}
.reelphone .reelstage {
  aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  border: 8px solid #141810; box-shadow: 0 22px 48px rgba(0,0,0,0.62);
  position: relative; background: #050703;
}
.reelphone + .reelbar { max-width: 420px; margin: 0 auto; }
.reelnote {
  text-align: center; font-family: "Oswald", sans-serif; font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-3);
  padding-bottom: 0.8rem;
}
.strip2 { justify-content: flex-start; scroll-behavior: smooth; }


/* ---------- two reels, side by side, both running ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.4rem; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; gap: 2.4rem; } }

.player { display: flex; flex-direction: column; gap: 0.7rem; }
.player .plabel { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.player .plabel b {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.player .plabel span {
  font-family: "Oswald", sans-serif; font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.player .screen2 {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #050703;
  border: 8px solid #141810; border-radius: 12px; box-shadow: 0 22px 48px rgba(0,0,0,0.6);
}
.player .screen2 img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.65s ease;
}
.player .screen2 img.on { opacity: 1; animation: burns2 4.2s linear both; }
@keyframes burns2 { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .player .screen2 img.on { animation: none; } }
.player .screen2 .low {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(4,6,2,0.93)); text-align: center; pointer-events: none;
}
.player .screen2 .low b {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); text-transform: uppercase; display: block; letter-spacing: 0.02em;
}
.player .screen2 .low span {
  font-family: "Oswald", sans-serif; font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #E8C86A; display: block; margin-top: 4px;
}
.player .bar2 { height: 3px; background: #1A2110; border-radius: 2px; overflow: hidden; }
.player .bar2 i { display: block; height: 100%; background: var(--gold); width: 0; }
.player .under { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  font-family: "JetBrains Mono", monospace; font-size: 0.66rem; color: var(--bone-3); }

.soundbar { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.soundbtn {
  cursor: pointer; border: 1px solid var(--gold); border-radius: 2px; padding: 0.75rem 1.6rem;
  background: linear-gradient(178deg, var(--gold-lt), var(--gold)); color: #241C04;
  font-family: "Oswald", sans-serif; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.soundbtn[aria-pressed="true"] { background: transparent; color: var(--gold); }
.soundnote { font-family: "Oswald", sans-serif; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-3); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-right: 0.5rem; vertical-align: -2px; }
.eq i { width: 3px; background: var(--gold); height: 4px; display: block; border-radius: 1px; }
.eq.live i { animation: bump 0.6s ease-in-out infinite alternate; }
.eq.live i:nth-child(2) { animation-delay: 0.12s; }
.eq.live i:nth-child(3) { animation-delay: 0.24s; }
.eq.live i:nth-child(4) { animation-delay: 0.36s; }
@keyframes bump { from { height: 3px; } to { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .eq.live i { animation: none; height: 9px; } }


/* ---------- the trim on every frame, same as the card ---------- */
.trim { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.trim::before {
  content: ""; position: absolute; inset: 3.2%;
  border: 2px solid rgba(201,162,39,0.72); border-radius: 2px;
}
.trim::after {
  content: ""; position: absolute; inset: 4.6%;
  border: 1px solid rgba(201,162,39,0.3);
}
.trim i { position: absolute; width: 5.2%; padding-bottom: 5.2%; }
.trim i::before, .trim i::after { content: ""; position: absolute; background: var(--gold); }
.trim i::before { width: 100%; height: 2px; }
.trim i::after { width: 2px; height: 0; padding-bottom: 100%; }
.trim i.tl { left: 3.2%; top: 3.2%; }
.trim i.tr { right: 3.2%; top: 3.2%; }
.trim i.tr::before, .trim i.tr::after { right: 0; }
.trim i.bl { left: 3.2%; bottom: 3.2%; }
.trim i.bl::before { bottom: 0; }
.trim i.bl::after { bottom: 0; }
.trim i.br { right: 3.2%; bottom: 3.2%; }
.trim i.br::before { right: 0; bottom: 0; }
.trim i.br::after { right: 0; bottom: 0; }

.trim .rail3 {
  position: absolute; left: 7%; right: 7%; top: 6.4%;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.trim .rail3 svg { width: 26px; height: 13.7px; display: block; flex: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.trim .rail3 .bm3 {
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: 0.5rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-lt);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9); white-space: nowrap; overflow: hidden;
}
.trim .rail3 .no3 {
  font-family: "JetBrains Mono", monospace; font-size: 0.5rem; color: var(--gold-lt);
  border: 1px solid rgba(201,162,39,0.65); padding: 1px 4px; border-radius: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9); flex: none;
}
.trim .mark3 {
  position: absolute; left: 0; right: 0; bottom: 3.4%; text-align: center;
  font-family: "Oswald", sans-serif; font-size: 0.44rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(242,223,164,0.6);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.player .screen2 .low, .reelstage .lower3, .fb .fbcap { z-index: 3; }
.player .screen2 .low { padding-bottom: 2.4rem; }
.reelstage .lower3 { padding-bottom: 2.4rem; }
.fb .fbcap { padding-bottom: 2.2rem; }


/* ---------- the lower third is the card, not a news caption ---------- */
.lt { display: flex; flex-direction: column; align-items: center; gap: 0.18rem; text-align: center; }
.lt .lrank {
  font-family: "Oswald", sans-serif; font-weight: 400; font-size: 0.5rem;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-lt);
  text-shadow: 0 1px 4px rgba(0,0,0,0.95); padding-left: 0.34em;
}
.lt .lname {
  font-family: "Cinzel", Georgia, serif; font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.65rem); line-height: 1.08; color: #FFF8E9;
  text-shadow: 0 2px 8px rgba(0,0,0,0.95), 0 1px 0 rgba(255,255,255,0.18);
  letter-spacing: 0.01em;
}
.lt .lrule { display: flex; align-items: center; gap: 6px; margin: 0.18rem 0 0.1rem; }
.lt .lrule span { height: 1px; width: 26px; background: linear-gradient(90deg, transparent, var(--gold)); display: block; }
.lt .lrule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.lt .lrule svg { width: 13px; height: 13px; color: var(--gold-lt); display: block; }
.lt .lcourse {
  font-family: "Oswald", sans-serif; font-weight: 400; font-size: 0.54rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-lt);
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
}
.lt .lplace {
  font-family: "Oswald", sans-serif; font-weight: 300; font-size: 0.52rem;
  letter-spacing: 0.11em; color: rgba(255,248,233,0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
}
.lt .lband {
  margin-top: 0.4rem; padding: 0.24rem 1rem 0.28rem;
  border-top: 1px solid rgba(201,162,39,0.6); border-bottom: 1px solid rgba(201,162,39,0.6);
  background: linear-gradient(180deg, rgba(201,162,39,0.16), rgba(201,162,39,0.02));
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.lt .lband b {
  font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: clamp(0.8rem, 1.9vw, 1.05rem);
  letter-spacing: 0.06em; color: #FFF3D2; text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}
.lt .lband em {
  font-style: normal; font-family: "JetBrains Mono", monospace; font-size: 0.46rem;
  color: rgba(255,248,233,0.82); letter-spacing: 0.02em;
}


/* ---------- six moves, six entrances, nothing repeats back to back ---------- */
.fr { position: absolute; inset: 0; overflow: hidden; opacity: 0; z-index: 1; will-change: opacity, transform, clip-path; }
.fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: center; will-change: transform; }
.fr.on { opacity: 1; z-index: 2; }

.fr.on.e1 { animation: eFade 0.75s ease both; }
.fr.on.e2 { animation: eSlide 0.75s cubic-bezier(.22,.9,.28,1) both; }
.fr.on.e3 { animation: eWipe 0.85s cubic-bezier(.3,.9,.25,1) both; }
.fr.on.e4 { animation: eFlip 0.85s cubic-bezier(.24,.9,.3,1) both; }
.fr.on.e5 { animation: ePunch 0.8s cubic-bezier(.2,.95,.3,1) both; }
.fr.on.e6 { animation: eRise 0.85s cubic-bezier(.28,.9,.28,1) both; }

@keyframes eFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes eSlide { from { opacity: 0; transform: translateX(14%); } to { opacity: 1; transform: translateX(0); } }
@keyframes eWipe  { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes eFlip  { from { opacity: 0; transform: perspective(1000px) rotateY(16deg) scale(0.94); }
                    to   { opacity: 1; transform: perspective(1000px) rotateY(0deg) scale(1); } }
@keyframes ePunch { from { opacity: 0; transform: scale(1.16); } to { opacity: 1; transform: scale(1); } }
@keyframes eRise  { from { opacity: 1; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.fr.on.m1 img { animation: mIn    3.4s linear both; }
.fr.on.m2 img { animation: mOut   3.4s linear both; }
.fr.on.m3 img { animation: mLeft  3.4s linear both; }
.fr.on.m4 img { animation: mRight 3.4s linear both; }
.fr.on.m5 img { animation: mUp    3.4s linear both; }
.fr.on.m6 img { animation: mDrift 3.4s linear both; }

@keyframes mIn    { from { transform: scale(1.02); }                       to { transform: scale(1.19); } }
@keyframes mOut   { from { transform: scale(1.19); }                       to { transform: scale(1.02); } }
@keyframes mLeft  { from { transform: scale(1.17) translateX(3.4%); }      to { transform: scale(1.17) translateX(-3.4%); } }
@keyframes mRight { from { transform: scale(1.17) translateX(-3.4%); }     to { transform: scale(1.17) translateX(3.4%); } }
@keyframes mUp    { from { transform: scale(1.17) translateY(4%); }        to { transform: scale(1.17) translateY(-4%); } }
@keyframes mDrift { from { transform: scale(1.14) rotate(-0.9deg) translateX(-2%); }
                    to   { transform: scale(1.21) rotate(0.7deg) translateX(2%); } }

@media (prefers-reduced-motion: reduce) {
  .fr.on, .fr.on img { animation: none !important; }
  .fr.on { opacity: 1; }
}


/* ---------- the career spine ---------- */
.spine { margin-top: 3rem; display: flex; flex-direction: column; gap: 0; }
.mile {
  display: grid; grid-template-columns: 120px 1fr 200px; gap: 2rem;
  padding: 2.4rem 0; border-top: 1px solid var(--line); align-items: start;
}
.mile:first-child { border-top: 0; }
@media (max-width: 860px) { .mile { grid-template-columns: 84px 1fr; } .mile .mcard { grid-column: 1 / -1; max-width: 220px; } }

.mile .mwhen { position: relative; padding-left: 1.1rem; }
.mile .mwhen::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg);
}
.mile .mwhen b {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 2.4rem;
  line-height: 0.9; color: var(--gold-lt); display: block;
}
.mile .mwhen span {
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--bone-3);
  display: block; margin-top: 0.25rem;
}
.mile .mbody h3 {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; letter-spacing: 0.02em;
}
.mile .mbody .mkick {
  font-family: "Oswald", sans-serif; font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.3rem;
}
.mile .mbody p { color: var(--bone-2); margin-top: 0.5rem; max-width: 52ch; }
.mile .mbody .mshot {
  display: block; width: 100%; max-width: 460px; margin-top: 1.1rem; border-radius: 3px;
  border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgba(0,0,0,0.5);
}
.mile .mcard canvas {
  display: block; width: 100%; height: auto; border-radius: 3px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.55);
}
.mile .mcard span {
  display: block; margin-top: 0.5rem; text-align: center;
  font-family: "JetBrains Mono", monospace; font-size: 0.64rem; color: var(--bone-3);
}

.mathbox {
  margin-top: 2.4rem; border: 1px solid rgba(201,162,39,0.5); border-radius: 3px;
  background: var(--raise); padding: 1.6rem 1.7rem; max-width: 62ch;
}
.mathbox b { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--gold-lt); display: block; }
.mathbox p { color: var(--bone-2); margin-top: 0.5rem; }
.mathbox strong { color: var(--bone); font-weight: 500; }


/* ---------- the card lightbox ---------- */
.mile .mcard canvas { cursor: zoom-in; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.mile .mcard canvas:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,0.65); }
.mile .mcard .flip {
  display: block; margin-top: 0.35rem; text-align: center;
  font-family: "Oswald", sans-serif; font-size: 0.56rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}

.lb {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(4,6,2,0.92); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.lb.on { display: flex; }
.lb .lbin { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-height: 100%; }
.lb canvas {
  display: block; max-height: 74vh; width: auto; max-width: 92vw;
  border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
.lb .lbctl { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.lb .lbctl button {
  cursor: pointer; background: transparent; color: var(--bone-3);
  border: 1px solid var(--line-2); border-radius: 2px; padding: 0.6rem 1.2rem;
  font-family: "Oswald", sans-serif; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.lb .lbctl button[aria-pressed="true"] { color: #241C04; background: linear-gradient(178deg, var(--gold-lt), var(--gold)); border-color: var(--gold); font-weight: 500; }
.lb .lbclose {
  position: absolute; top: 1rem; right: 1.2rem; cursor: pointer; background: transparent;
  border: 1px solid var(--line-2); color: var(--bone); border-radius: 2px; padding: 0.5rem 0.9rem;
  font-family: "Oswald", sans-serif; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.lb .lbtitle {
  font-family: "Oswald", sans-serif; font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
}


/* ---------- the value strip ---------- */
.vstrip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  margin-top: 2.6rem;
}
@media (max-width: 860px) { .vstrip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .vstrip { grid-template-columns: 1fr; } }
.vstrip div { padding: 1.6rem 1.4rem; border-left: 1px solid var(--line-2); }
.vstrip div:first-child { border-left: 0; }
@media (max-width: 860px) {
  .vstrip div:nth-child(odd) { border-left: 0; }
  .vstrip div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 480px) {
  .vstrip div { border-left: 0; }
  .vstrip div + div { border-top: 1px solid var(--line-2); }
}
.vstrip b {
  display: block; font-family: "Big Shoulders Display", sans-serif; font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 0.94; text-transform: uppercase;
  background: linear-gradient(178deg, var(--gold-lt), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vstrip i {
  display: block; font-style: normal; margin-top: 0.5rem;
  font-family: "Oswald", sans-serif; font-size: 0.58rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
}
.vstrip span {
  display: block; margin-top: 0.6rem; font-size: 0.86rem; line-height: 1.55; color: var(--bone-3);
}

/* ---------- three steps ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
@media (max-width: 820px) { .steps3 { grid-template-columns: 1fr; } }
.steps3 article { border: 1px solid var(--line-2); border-top: 3px solid var(--gold); padding: 1.7rem 1.5rem 1.9rem; }
.steps3 .n {
  font-family: "JetBrains Mono", monospace; font-size: 0.68rem; letter-spacing: 0.2em;
  color: var(--gold); display: block; margin-bottom: 0.9rem;
}
.steps3 h3 {
  font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1; margin: 0 0 0.7rem;
}
.steps3 p { margin: 0; font-size: 0.92rem; line-height: 1.62; color: var(--bone-3); }
.steps3 .tick {
  display: block; margin-top: 0.9rem; font-family: "Oswald", sans-serif; font-size: 0.58rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-3); opacity: 0.75;
}

/* ---------- the one line that says it ---------- */
.oneline {
  margin-top: 2.4rem; padding: 1.5rem 1.6rem; border-left: 3px solid var(--gold);
  background: rgba(232,200,106,0.05);
  font-family: "Cinzel", serif; font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--bone);
}
.oneline small {
  display: block; margin-top: 0.6rem; font-family: "Oswald", sans-serif; font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}


/* a six step flow reads as two rows of three, not four then a ragged two */
.handoff.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .handoff.six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .handoff.six { grid-template-columns: 1fr; } }
