/* what-it-takes.css : "Do you have what it takes?" aptitude reflection. Cotton Ledger neumorphic, scoped to .wit */
.wit {
  --g: #f0eee8; --dk: #d3cdbf; --lt: #ffffff; --ink: #10283d; --bd: #2c4257; --gd: #87662d; --gl: #A68862; --navy: #16293d;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Nunito Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.75,.25,1);
  background: var(--g); color: var(--ink); font-family: var(--sans);
}
.wit-main { padding: clamp(40px, 7vw, 96px) 16px clamp(64px, 9vw, 120px); }
.wit-wrap { max-width: 760px; margin: 0 auto; }
.wit-panel[hidden] { display: none; }

.wit-eyebrow { margin: 0 0 14px; font: 800 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gd); }
.wit h1, .wit h2 { margin: 0; font: 500 clamp(42px, 7vw, 76px)/1.02 var(--serif); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.wit h2 { font-size: clamp(36px, 6vw, 60px); }
.wit h2:focus, .wit-q:focus { outline: none; }
.wit-lede { margin: 22px 0 0; font: 400 clamp(18px, 2.2vw, 21px)/1.6 var(--sans); color: var(--bd); max-width: 640px; }
.wit-small { margin: 14px 0 0; font-size: 15px; color: var(--bd); opacity: .8; }

/* intro: the three empty circles from the homepage, filling one by one */
.wit-people { display: flex; gap: 18px; margin-bottom: 34px; }
.wit-face {
  width: 84px; height: 84px; padding: 7px; box-sizing: border-box; border-radius: 50%; background: var(--g);
  box-shadow: inset 5px 5px 10px var(--dk), inset -5px -5px 10px var(--lt);
}
.wit-face img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #35597d 0%, #1a3550 55%, #0d2034 100%);
}

/* buttons */
.wit-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 16px 30px; border: 0; border-radius: 999px;
  background: var(--g); color: var(--ink); font: 800 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 7px 7px 14px var(--dk), -7px -7px 14px var(--lt); transition: box-shadow .25s ease, transform .25s ease;
}
.wit-btn:hover { transform: translateY(-1px); }
.wit-btn:active { box-shadow: inset 5px 5px 10px var(--dk), inset -5px -5px 10px var(--lt); transform: none; }
.wit-btn-gold { background: #d6bf8a; color: var(--navy); }
.wit-btn:focus-visible, .wit-opt:focus-visible, .wit-back:focus-visible, .wit a:focus-visible { outline: 3px solid #957141; outline-offset: 4px; }
.wit-btn span { transition: transform .3s ease; }
.wit-btn:hover span { transform: translateX(4px); }

/* quiz */
.wit-progress { height: 8px; border-radius: 99px; background: var(--g); box-shadow: inset 3px 3px 6px var(--dk), inset -3px -3px 6px var(--lt); overflow: hidden; }
.wit-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #c9ad75, var(--gd)); transition: width .6s var(--ease); }
.wit-count { margin: 16px 0 0; font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bd); opacity: .75; }
.wit-card {
  margin-top: 26px; padding: clamp(28px, 5vw, 52px); border-radius: 28px; background: var(--g);
  box-shadow: 10px 10px 22px var(--dk), -10px -10px 22px var(--lt);
}
.wit-q { margin: 0; min-height: 3.4em; font: 500 clamp(28px, 4.4vw, 42px)/1.15 var(--serif); color: var(--ink); text-wrap: pretty; }
.wit-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.wit-opt {
  padding: 18px 10px; border: 0; border-radius: 18px; background: var(--g); color: var(--ink); cursor: pointer;
  font: 700 15px/1.25 var(--sans); box-shadow: 6px 6px 12px var(--dk), -6px -6px 12px var(--lt);
  transition: box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.wit-opt:hover { color: var(--gd); transform: translateY(-1px); }
.wit-opt[aria-pressed="true"] { color: var(--gd); transform: none; box-shadow: inset 5px 5px 10px var(--dk), inset -5px -5px 10px var(--lt); }
.wit-back { margin-top: 24px; padding: 8px 0; border: 0; background: none; color: var(--bd); font: 700 14px/1 var(--sans); cursor: pointer; }
.wit-back:hover { color: var(--gd); }
.wit-back[disabled] { visibility: hidden; }

/* results */
.wit-traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.wit-traits:empty { display: none; }
.wit-trait { padding: 9px 16px; border-radius: 999px; font: 700 14px/1.2 var(--sans); background: var(--g); box-shadow: 4px 4px 8px var(--dk), -4px -4px 8px var(--lt); }
.wit-trait-label { width: 100%; margin: 6px 0 0; font: 800 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bd); opacity: .75; }
.wit-trait-soft { box-shadow: inset 3px 3px 6px var(--dk), inset -3px -3px 6px var(--lt); font-weight: 600; }
.wit-block { margin-top: 44px; padding: clamp(26px, 4.5vw, 44px); border-radius: 28px; background: var(--g); box-shadow: inset 8px 8px 16px var(--dk), inset -8px -8px 16px var(--lt); }
.wit-block h3 { margin: 0 0 18px; font: 600 clamp(26px, 3.4vw, 34px)/1.1 var(--serif); color: var(--ink); }
.wit-block ol, .wit-block ul { margin: 0; padding-left: 1.2em; }
.wit-block li { margin: 0 0 14px; font: 400 17px/1.6 var(--sans); color: var(--bd); }
.wit-block li::marker { color: var(--gd); font-weight: 800; }
.wit-block li strong { color: var(--ink); }
.wit-block a { color: var(--gd); text-underline-offset: 3px; }
.wit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.wit-actions .wit-btn { margin-top: 22px; }
.wit-status { margin-top: 22px; font-size: 14px; color: var(--gd); }
.wit-note { margin: 34px 0 0; font-size: 14px; color: var(--bd); opacity: .75; }
.wit-steps[hidden] { display: none; }

.wit-footer { padding: 48px 16px 60px; text-align: center; background: var(--g); }
.wit-footer img { width: 190px; height: auto; }
.wit-footer p { margin: 10px 0 0; font: italic 500 18px/1.3 var(--serif); color: var(--bd); }

/* motion: panels rise in, questions slide, results arrive in reading order */
.wit-js .wit-panel { animation: wit-rise .7s var(--ease) both; }
.wit-js .wit-intro > * { animation: wit-rise .8s var(--ease) both; }
.wit-js .wit-intro > :nth-child(2) { animation-delay: .1s; }
.wit-js .wit-intro > :nth-child(3) { animation-delay: .2s; }
.wit-js .wit-intro > :nth-child(4) { animation-delay: .3s; }
.wit-js .wit-intro > :nth-child(5) { animation-delay: .4s; }
.wit-js .wit-intro > :nth-child(6) { animation-delay: .5s; }
.wit-js .wit-face img { animation: wit-fill .7s var(--ease) both; }
.wit-js .wit-face:nth-child(1) img { animation-delay: .5s; }
.wit-js .wit-face:nth-child(2) img { animation-delay: .8s; }
.wit-js .wit-face:nth-child(3) img { animation-delay: 1.1s; }
.wit-card.is-out { animation: wit-out .28s ease forwards; }
.wit-card.is-in { animation: wit-in .45s var(--ease) both; }
.wit-card.is-in-back { animation: wit-in-back .45s var(--ease) both; }
.wit-js .wit-result > * { animation: wit-rise .7s var(--ease) both; }
.wit-js .wit-result > :nth-child(2) { animation-delay: .1s; }
.wit-js .wit-result > :nth-child(3) { animation-delay: .25s; }
.wit-js .wit-result > :nth-child(4) { animation-delay: .4s; }
.wit-js .wit-result > :nth-child(5) { animation-delay: .55s; }
.wit-js .wit-result > :nth-child(6) { animation-delay: .7s; }
.wit-js .wit-result > :nth-child(n+7) { animation-delay: .85s; }
.wit-trait { animation: wit-pop .45s var(--ease) both; }
@keyframes wit-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes wit-fill { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes wit-out { to { opacity: 0; transform: translateX(-28px); } }
@keyframes wit-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes wit-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes wit-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .wit-scale { grid-template-columns: 1fr 1fr; }
  .wit-people { gap: 12px; }
  .wit-face { width: 68px; height: 68px; padding: 6px; }
  .wit-q { min-height: 4.6em; }
}
@media (prefers-reduced-motion: reduce) {
  .wit *, .wit *::before, .wit *::after { animation: none !important; transition: none !important; }
}
.wit .skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.wit .skip-link:focus { top: 12px; }
