/* ============================================================================
   afnanshams.com — Page Components
   ========================================================================== */

/* ---------- wordmark ---------- */
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -.035em;
  font-size: 18.5px;
}

.wordmark .wm-name {
  white-space: nowrap;
}

.wordmark .wm-dot {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(255, 240, 238, .18);
  box-shadow: 0 8px 22px -9px rgba(228, 52, 47, .9);
}

.wordmark .wm-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 50%;
  display: block;
}

.wordmark i {
  font-style: normal;
  color: var(--ink-3);
  font-weight: 600;
}

header.stuck .wordmark {
  font-size: 17px;
}

@media (max-width: 600px) {
  .wordmark {
    font-size: 15.5px;
  }
  .wordmark .wm-dot {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }
}

.hero-grid > *,
.who-grid > *,
.ac > *,
.fgrid2 > *,
.band > *,
.wgrid > *,
.vgrid > *,
.ideo > * {
  min-width: 0;
}

/* Header badge logo pill */
.btn-ac {
  padding-top: 9px;
  padding-bottom: 9px;
}

.btn-ac span {
  gap: 8px;
}

.btn-ac-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.btn-ac-mark img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
}

@media (max-width: 560px) {
  .btn-ac {
    padding: 8px 12px;
    font-size: 12px;
  }
  .btn-ac-mark img {
    width: 16px;
    height: 16px;
  }
  .hero-cta .btn {
    width: 100%;
    white-space: normal;
  }
  .topics b {
    min-width: 0;
  }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  padding: 154px 0 70px;
  overflow: hidden;
}

@media (max-width: 760px) {
  #hero {
    padding: 114px 0 44px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 52px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.045em;
  margin: 18px 0 22px;
}

.hero-copy h1 .say {
  font-size: 1.08em;
  line-height: .95;
}

.hero-cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.topics {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

.topics b {
  color: var(--ink);
  font-weight: 700;
  position: relative;
  display: inline-grid;
  min-width: 19ch;
}

.topics b span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.topics b span.on {
  opacity: 1;
  transform: none;
  transition: opacity .35s var(--ease) .18s, transform .35s var(--ease) .18s;
  pointer-events: auto;
}

.topics em {
  font-style: normal;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
  flex: none;
  animation: pulse 2.4s infinite;
}

/* ============================================================
   PORTRAIT — Hero Centrepiece
   ============================================================ */
.portrait {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
  perspective: 1100px;
  transform: translateY(var(--drift, 0px));
}

@media (max-width: 960px) {
  .portrait {
    margin: 0 auto;
    max-width: 340px;
  }
}

.portrait::before {
  content: '';
  position: absolute;
  inset: -13%;
  border-radius: 50%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    rgba(228, 52, 47, .34),
    rgba(255, 106, 77, .26) 32%,
    rgba(255, 176, 142, .22) 58%,
    transparent 76%,
    rgba(228, 52, 47, .34)
  );
  filter: blur(34px);
  animation: halo 22s linear infinite;
}

@keyframes halo {
  to {
    transform: rotate(360deg);
  }
}

.portrait::after {
  content: '';
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  border: 1px dashed rgba(228, 52, 47, .26);
  animation: halo 46s linear infinite reverse;
}

.pf {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .95);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .5s;
}

.pf.shown {
  transition: transform .6s var(--ease), box-shadow .5s;
}

.pf img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.1);
  transition: transform 1.4s var(--ease), filter .8s;
  filter: saturate(.95) contrast(1.04);
}

.pf.shown img {
  transform: scale(1.02);
}

.portrait:hover .pf img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.06);
}

.pf .duo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background: linear-gradient(150deg, rgba(228, 52, 47, .42), transparent 46%, rgba(255, 106, 77, .35));
  opacity: .7;
  animation: duo 12s ease-in-out infinite alternate;
}

@keyframes duo {
  to {
    opacity: .28;
    background-position: 100% 100%;
  }
}

.pf .vig {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(10, 11, 14, .74));
}

.pf .sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 32%, rgba(255, 255, 255, .16) 48%, transparent 62%);
  transform: translateX(-130%);
}

.pf.shown .sweep {
  animation: sweep 1.5s var(--ease) .55s 1;
}

.portrait:hover .pf .sweep {
  animation: sweep 1.4s var(--ease) 1;
}

@keyframes sweep {
  to {
    transform: translateX(130%);
  }
}

.pf .bracket {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s .9s;
}

.pf.shown .bracket {
  opacity: .9;
}

.pf .bracket.tl {
  top: 16px;
  left: 16px;
  border-top: 2px solid var(--tq);
  border-left: 2px solid var(--tq);
  border-radius: 5px 0 0 0;
}

.pf .bracket.br {
  bottom: 16px;
  right: 16px;
  border-bottom: 2px solid var(--ember);
  border-right: 2px solid var(--ember);
  border-radius: 0 0 5px 0;
}

.p-chip {
  position: absolute;
  z-index: 4;
  left: -34px;
  bottom: 14px;
  background: rgba(13, 14, 18, .86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .95);
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

.p-chip .pc-l {
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.p-chip .pc-l i {
  font-style: normal;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(255, 106, 77, .7);
  animation: pulse 2.2s infinite;
}

.p-chip b {
  display: block;
  font-family: var(--disp);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -.01em;
  line-height: 1.15;
}

@media (max-width: 960px) {
  .p-chip {
    left: auto;
    right: -14px;
    bottom: 18px;
  }
}

@media (max-width: 520px) {
  .p-chip {
    display: none;
  }
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: rgba(255, 255, 255, .012);
  overflow-x: clip;
}

.strip-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 800;
  margin-bottom: 18px;
}

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 54px;
  width: max-content;
  animation: slide 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.mname {
  font-family: var(--disp);
  font-size: 26px;
  letter-spacing: -.01em;
  color: rgba(246, 243, 242, .34);
  white-space: nowrap;
  transition: color .35s var(--ease);
}

.mname:hover {
  color: var(--tq-2);
}

@media (max-width: 620px) {
  .mname {
    font-size: 21px;
  }
  .marquee-track {
    gap: 38px;
  }
}

/* ============================================================
   WHO AM I — Photos, Stats & Milestones
   ============================================================ */
.who-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 44px;
  align-items: center;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .who-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

.who-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, .95);
  aspect-ratio: 3 / 4;
}

.who-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  transition: transform 1.4s var(--ease);
}

.who-photo:hover img {
  transform: scale(1.04);
}

.who-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 11, 14, .78));
}

.who-cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  line-height: 1.48;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.photo-strip figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 3 / 4;
  display: block;
  transition: transform .4s var(--ease), border-color .3s;
}

.photo-strip figure:hover {
  transform: translateY(-5px);
  border-color: rgba(228, 52, 47, .45);
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 1.2s var(--ease);
}

.photo-strip figure:hover img {
  transform: scale(1.07);
}

.photo-strip figure::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(10, 11, 14, .74));
}

.photo-strip figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(246, 243, 242, .85);
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 620px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
  background: var(--panel);
  transition: border-color .3s, background .3s, transform .35s var(--ease);
}

.stat:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
  transform: translateY(-3px);
}

.stat-num {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--tq-2);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: .03em;
}

.awards {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.award {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--panel);
  transition: border-color .3s, background .3s, transform .35s var(--ease);
}

.award:hover {
  border-color: rgba(228, 52, 47, .4);
  background: var(--panel-2);
  transform: translateX(4px);
}

.award-year {
  font-family: var(--disp);
  font-size: 19px;
  color: var(--tq);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.award b {
  display: block;
  font-size: 14.8px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 3px;
}

.award span {
  display: block;
  font-size: 13.2px;
  color: var(--ink-2);
  line-height: 1.5;
}

.who-note {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 16px;
  line-height: 1.55;
}

/* ============================================================
   PROJECT / FEATURED CARDS (.vgrid / .vcard)
   ============================================================ */
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

@media (max-width: 980px) {
  .vgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.vgrid.auto {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  transition: transform .42s var(--ease), border-color .35s, background .35s, box-shadow .4s;
}

.vcard::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(228, 52, 47, .09), transparent 66%);
}

.vcard:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  background: var(--panel-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}

.vcard:hover::before {
  opacity: 1;
}

.vthumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(228, 52, 47, .16), #0d0f14 70%);
  border-bottom: 1px solid var(--line);
}

.vthumb-art {
  width: 100%;
  height: 100%;
  transition: transform 1.1s var(--ease);
}

.vcard:hover .vthumb-art {
  transform: scale(1.05);
}

.vthumb::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 46%, rgba(10, 11, 14, .65));
}

.vplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.92);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(228, 52, 47, .92);
  color: #fff;
  opacity: 0;
  box-shadow: 0 12px 30px -10px rgba(228, 52, 47, .95);
  transition: transform .35s var(--ease), opacity .3s;
}

.vcard:hover .vplay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

.vplay svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vdate {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(10, 11, 14, .82);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  border: 1px solid var(--line-2);
}

.vnum {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--tq);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(228, 52, 47, .9);
}

.vbody {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vbody h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.vbody p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.56;
  flex: 1;
}

.vfoot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--ink-2);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}

.pill:hover {
  background: rgba(255, 255, 255, .11);
  color: #fff;
  transform: translateY(-2px);
}

.pill-tq {
  background: var(--tq);
  border-color: var(--tq);
  color: #fff;
}

.pill-tq:hover {
  background: var(--tq-2);
  color: #2a0604;
  box-shadow: 0 10px 24px -9px rgba(228, 52, 47, .95);
}

.pill-az {
  background: rgba(255, 176, 142, .14);
  border-color: rgba(255, 176, 142, .45);
  color: var(--sand);
}

.pill-az:hover {
  background: rgba(255, 176, 142, .26);
  color: #ffd7c2;
  border-color: rgba(255, 176, 142, .7);
}

.vcat {
  --cc: #9aa0ab;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cc) 55%, transparent);
  background: color-mix(in srgb, var(--cc) 16%, transparent);
  color: color-mix(in srgb, var(--cc) 62%, #fff);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ============================================================
   WHAT I BUILD (.ideo / .ide)
   ============================================================ */
#believe {
  position: relative;
}

.ideo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .ideo {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.ide {
  --ic: 228 52 47;
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .55s var(--ease), border-color .45s, background .45s;
}

.ide::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgb(var(--ic) / .15), transparent 68%);
  transition: opacity .5s;
}

.ide:hover {
  transform: translateY(-5px);
  border-color: rgb(var(--ic) / .34);
  background: var(--panel-2);
}

.ide:hover::after {
  opacity: 1;
}

.ide-ic {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  background: rgb(var(--ic) / .10);
  border: 1px solid rgb(var(--ic) / .30);
}

.ide-ic::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  opacity: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgb(var(--ic) / .9) 55deg, transparent 120deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  transition: opacity .4s;
  animation: ideSpin 3.4s linear infinite;
}

.ide:hover .ide-ic::before {
  opacity: 1;
}

@keyframes ideSpin {
  to {
    transform: rotate(360deg);
  }
}

.ide-ic svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: rgb(var(--ic));
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.ide-ic svg * {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.5s var(--ease);
}

.ide.in .ide-ic svg * {
  stroke-dashoffset: 0;
}

.ide.in .ide-ic svg *:nth-child(2) { transition-delay: .12s; }
.ide.in .ide-ic svg *:nth-child(3) { transition-delay: .24s; }
.ide.in .ide-ic svg *:nth-child(4) { transition-delay: .36s; }
.ide.in .ide-ic svg *:nth-child(5) { transition-delay: .48s; }

.ide h3,
.ide h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.ide p {
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.6;
}

.ide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.ide-tags span {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: 7px;
  padding: 3px 9px;
}

.ide-n {
  position: absolute;
  right: 20px;
  top: 18px;
  font-family: var(--disp);
  font-size: 34px;
  color: rgba(255, 240, 238, .07);
  line-height: 1;
  transition: color .45s;
}

.ide:hover .ide-n {
  color: rgb(var(--ic) / .32);
}

/* ============================================================
   WORK CARDS & AFFIDEV FEATURE BANNER
   ============================================================ */
.wgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

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

.wcard {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wtag {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
}

.wtag.t {
  background: rgba(228, 52, 47, .14);
  border-color: rgba(228, 52, 47, .4);
  color: var(--tq-2);
}

.wtag.e {
  background: rgba(255, 106, 77, .13);
  border-color: rgba(255, 106, 77, .38);
  color: var(--ember);
}

.wtag.s {
  background: rgba(255, 176, 142, .13);
  border-color: rgba(255, 176, 142, .36);
  color: var(--sand);
}

.wcard h3 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.wcard p {
  font-size: 14.2px;
  color: var(--ink-2);
  line-height: 1.62;
  flex: 1;
}

.wgo {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  transition: color .25s, gap .25s var(--ease);
}

.wcard:hover .wgo {
  color: var(--tq-2);
  gap: 11px;
}

.ac {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228, 52, 47, .3);
  border-radius: 26px;
  background: linear-gradient(125deg, rgba(228, 52, 47, .12), rgba(255, 106, 77, .07) 58%, rgba(255, 255, 255, .02));
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
}

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

.ac::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0%, rgba(228, 52, 47, .12) 12%, transparent 26%);
  animation: halo 12s linear infinite;
}

.ac-copy {
  padding: 40px;
  position: relative;
  z-index: 2;
}

.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ac-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line-2);
}

.ac-brand span {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}

.ac-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tq-2);
  font-weight: 700;
}

.ac-copy h3 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(26px, 3.3vw, 38px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.ac-copy p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.62;
  max-width: 460px;
}

.ac-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}

.ac-tags b {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05);
  padding: 7px 12px;
  border-radius: 9px;
  white-space: nowrap;
}

.ac-shots {
  position: relative;
  z-index: 2;
  padding: 26px 26px 26px 0;
  display: grid;
  gap: 12px;
  align-content: center;
}

@media (max-width: 900px) {
  .ac-shots {
    padding: 0 26px 30px;
  }
}

.ac-hero-shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #000;
  box-shadow: 0 26px 55px -26px rgba(0, 0, 0, .95);
  aspect-ratio: 1 / 1;
  max-width: 390px;
  width: 100%;
  margin: 0 auto;
}

.ac-hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

/* ============================================================
   HOW I WORK (.band / .bcard)
   ============================================================ */
.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

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

.bcard {
  padding: 30px 26px;
}

.bcard h3,
.bcard h4 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.028em;
  margin-bottom: 10px;
}

.bcard p {
  font-size: 14.2px;
  color: var(--ink-2);
  line-height: 1.66;
}

.bcard p + p {
  margin-top: 12px;
}

/* ============================================================
   EARLIER WORK / JOURNEY (.older / .orow)
   ============================================================ */
.older {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
}

.orow {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}

.orow:last-child {
  border-bottom: 0;
}

.orow:hover {
  background: rgba(255, 255, 255, .03);
}

.orow .ologo {
  font-family: var(--disp);
  font-style: italic;
  font-size: 24px;
  color: var(--tq-2);
  letter-spacing: -.01em;
}

.orow h3,
.orow h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.orow p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.orow .ogo {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .25s;
}

.orow:hover .ogo {
  color: var(--tq-2);
}

@media (max-width: 760px) {
  .orow {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .orow .ogo {
    display: none;
  }
}

/* ============================================================
   SEO BREADCRUMBS & FAQ ACCORDION
   ============================================================ */
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.crumbs a:hover {
  color: var(--tq-2);
}

.crumbs span[aria-hidden="true"] {
  opacity: .5;
}

.faq-list {
  margin-top: 34px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color .3s, background .3s;
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 500;
  color: var(--tq-2);
  flex: none;
  transition: transform .25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-ans {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 820px;
}

/* ============================================================
   APP / DIRECT ACCESS + SOCIAL
   ============================================================ */
.app-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 34px;
}

.app-card h3 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.app-card p {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 500px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .app-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }
  .app-card p {
    max-width: none;
  }
}

.stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .045);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}

.store:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(233, 239, 255, .34);
}

.store svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.store small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}

.store b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}

@media (max-width: 440px) {
  .stores {
    gap: 10px;
  }
  .store {
    flex: 1 1 100%;
    padding: 12px 16px;
  }
}

.socrow {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socrow a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--ink-3);
  transition: .3s var(--ease);
}

.socrow a:hover {
  color: var(--tq-2);
  background: rgba(255, 255, 255, .09);
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.socrow svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ============================================================
   CLOSE
   ============================================================ */
#close {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 68% 92% at 50% 100%, rgba(228, 52, 47, .13), transparent 66%);
}

#close h2.sh {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   INNER PAGE HERO + TOOLBAR + NOTE + FORMS
   ============================================================ */
.phero {
  position: relative;
  padding: 152px 0 50px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .phero {
    padding: 112px 0 32px;
  }
}

.phero h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.045em;
  margin: 18px 0 18px;
}

.phero h1 .say {
  font-size: 1.1em;
}

.phero p.sub {
  max-width: 660px;
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 36px;
}

.searchbox {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
  padding: 13px 18px;
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.searchbox:focus-within {
  border-color: rgba(228, 52, 47, .55);
  background: var(--panel-2);
  box-shadow: 0 0 0 4px rgba(228, 52, 47, .1);
}

.searchbox svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink-3);
  stroke-width: 2;
  fill: none;
  flex: none;
}

.searchbox input {
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  width: 100%;
}

.searchbox input::placeholder {
  color: var(--ink-3);
}

.catselect {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
  transition: border-color .3s, background .3s, box-shadow .3s;
  cursor: pointer;
}

.catselect:hover {
  background: var(--panel-2);
  border-color: var(--line-2);
}

.catselect select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 38px 13px 17px;
  cursor: pointer;
}

.catselect select option {
  background: #14161b;
  color: #fff;
}

.catselect svg.chev {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  stroke: var(--ink-3);
  stroke-width: 2.4;
  fill: none;
  pointer-events: none;
}

@media (max-width: 760px) {
  .toolbar { gap: 10px; }
  .searchbox, .catselect { flex: 1 1 100%; min-width: 0; }
  .catselect select { width: 100%; }
}

.vtabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.vtab {
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background .25s, color .25s;
}

.vtab:hover {
  color: #fff;
}

.vtab.on {
  background: var(--tq);
  color: #fff;
  box-shadow: 0 10px 26px -11px rgba(228, 52, 47, .95);
}

.hub-quiz-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.quiz-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b45e6, #6d28d9);
  border: 1px solid rgba(167, 109, 255, .55);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, .85), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform .25s var(--ease), box-shadow .25s;
}

.quiz-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -10px rgba(124, 58, 237, .95);
}

.note {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--tq);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.62;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.note em {
  font-style: normal;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin-top: 1px;
  background: linear-gradient(140deg, var(--tq), var(--ember));
}

.note b {
  color: #fff;
}

.note a {
  color: var(--tq-2);
  font-weight: 700;
}

.empty {
  border: 1px dashed var(--line-2);
  border-radius: 22px;
  padding: 64px 30px;
  text-align: center;
  background: var(--panel);
  margin-top: 40px;
}

.empty b {
  display: block;
  font-family: var(--disp);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 10px;
}

.empty p {
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 470px;
  margin: 0 auto;
}

.archive {
  margin-top: 64px;
}

.atitle {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.asub {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.62;
  margin-top: 10px;
  max-width: 640px;
}

.alist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.arow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
  padding: 12px 14px 12px 16px;
  transition: border-color .25s, background .25s, transform .3s var(--ease);
}

.arow:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.anum {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* Forms (work-with-me.html) */
.fgrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}

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

.fcard {
  padding: 34px 30px;
}

.fcard:hover {
  transform: none;
}

.fcard.t {
  background: linear-gradient(180deg, rgba(228, 52, 47, .09), rgba(255, 255, 255, .02));
  border-color: rgba(228, 52, 47, .28);
}

.fcard.e {
  background: linear-gradient(180deg, rgba(255, 106, 77, .09), rgba(255, 255, 255, .02));
  border-color: rgba(255, 106, 77, .28);
}

.fcard h2,
.fcard h3 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 29px;
  letter-spacing: -.01em;
  margin: 8px 0 8px;
}

.fcard .fsub {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.62;
  margin-bottom: 26px;
}

.fld {
  margin-bottom: 15px;
}

.fld label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.fld input,
.fld textarea,
.fld select {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  outline: 0;
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.fld input::placeholder,
.fld textarea::placeholder {
  color: var(--ink-3);
}

.fld input:focus,
.fld textarea:focus,
.fld select:focus {
  border-color: rgba(228, 52, 47, .6);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 4px rgba(228, 52, 47, .11);
}

.fld textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

.fld select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(246, 243, 242, .5) 50%), linear-gradient(135deg, rgba(246, 243, 242, .5) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.fld select option {
  background: #101216;
  color: #fff;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fmsg {
  display: none;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: 12px;
  line-height: 1.55;
}

.fmsg.ok {
  display: block;
  background: rgba(70, 201, 139, .12);
  border: 1px solid rgba(70, 201, 139, .38);
  color: #a9f5cd;
}

.fmsg.bad {
  display: block;
  background: rgba(255, 122, 107, .12);
  border: 1px solid rgba(255, 122, 107, .35);
  color: #ffa79b;
}

.crit {
  margin-top: 20px;
  padding: 34px 30px;
}

.crit:hover {
  transform: none;
}

.crit h2,
.crit h3 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 20px;
}

.crit ul {
  list-style: none;
  display: grid;
  gap: 13px;
}

.crit li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.ic {
  flex: 0 0 21px;
  height: 21px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

.ic.v {
  background: linear-gradient(140deg, var(--tq), var(--ember));
  color: #fff;
}

.ic.x {
  background: rgba(255, 255, 255, .07);
  color: var(--ink-3);
}

.fprivacy {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 12px 0 0;
}

/* Accessibility & skip link */
:focus-visible {
  outline: 2px solid var(--tq-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.fld input:focus-visible,
.fld textarea:focus-visible,
.fld select:focus-visible {
  outline: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 10001;
  background: var(--tq);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 12px;
  transition: top .25s var(--ease);
}

.skip:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   QUIZ PAGE COMPONENTS
   ============================================================ */
.qz-view {
  display: none;
}

.qz-view.on {
  display: block;
}

.qz-topics-h {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}

.qz-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .qz-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .qz-tiles { grid-template-columns: 1fr; }
}

.qz-tile {
  text-align: left;
  padding: 24px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .35s var(--ease), border-color .3s, background .3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qz-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(228, 52, 47, .45);
  background: var(--panel-2);
}

.qz-tile-ic {
  font-size: 24px;
  margin-bottom: 4px;
}

.qz-tile b {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
}

.qz-tile span {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.qz-tile small {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tq-2);
}

.qz-stage {
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: var(--panel);
  padding: 34px;
  max-width: 780px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .qz-stage { padding: 24px 20px; }
}

.qz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.qz-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(228, 52, 47, .14);
  border: 1px solid rgba(228, 52, 47, .35);
  color: var(--tq-2);
}

.qz-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
}

.qz-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 26px;
}

.qz-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--tq), var(--ember));
  transition: width .4s var(--ease);
}

.qz-question {
  font-size: clamp(20px, 2.8vw, 27px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}

.qz-opts {
  display: grid;
  gap: 11px;
}

.qz-opt {
  text-align: left;
  width: 100%;
  padding: 15px 18px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .035);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: transform .22s var(--ease), border-color .25s, background .25s;
}

.qz-opt:hover:not(:disabled) {
  border-color: rgba(228, 52, 47, .5);
  background: rgba(255, 255, 255, .08);
  transform: translateX(4px);
}

.qz-opt.ok {
  border-color: rgba(70, 201, 139, .7);
  background: rgba(70, 201, 139, .15);
  color: #c2fbe0;
}

.qz-opt.bad {
  border-color: rgba(228, 52, 47, .75);
  background: rgba(228, 52, 47, .16);
  color: #ffc2bc;
}

.qz-explain {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  background: rgba(255, 255, 255, .03);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.qz-explain.on {
  display: block;
}

.qz-next {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}

.qz-result {
  text-align: center;
}

.qz-score {
  font-family: var(--disp);
  font-size: clamp(54px, 8vw, 76px);
  color: var(--tq-2);
  line-height: 1;
  margin: 12px 0;
}
