/* ============================================================
   RITESH — MAIN THEME
   ============================================================ */


/* ============================================================
   01. THEME VARIABLES
   ============================================================ */

:root {
  --theme-color: #111111;
  --theme-secondary-color: #111111;

  --color-light: #ffffff;
  --color-muted: #6f7378;

  --accent-blue: #628ace;
  --accent-green: #a3d3bd;

  --soft-gradient:
    linear-gradient(
      252deg,
      rgba(163, 211, 189, .17) 0%,
      rgba(98, 138, 206, .20) 100%
    );

  --dark-section: #101010;

  --glass-light: rgba(255, 255, 255, .58);
  --glass-border-light: rgba(255, 255, 255, .72);
  --glass-border-dark: rgba(255, 255, 255, .10);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --nav-height-offset: 90px;
}


/* ============================================================
   02. RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;

  background: #fff;

  color: #555;

  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;

  /* overflow-x: hidden; */
}

body.nav-open {
  overflow: hidden;
}

section {
  position: relative;

  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

img {
  max-width: 100%;
}

a {
  color: #111;

  font-weight: 500;
  text-decoration: none;

  transition:
    color .25s ease,
    background-color .25s ease,
    border-color .25s ease;
}

a:hover {
  color: var(--accent-blue) !important;
}


/* ============================================================
   03. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #111;

  font-weight: 500;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.12;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

p {
  margin-bottom: .65rem;
}


/* ============================================================
   04. TYPOGRAPHY UTILITIES
   ============================================================ */

.text-secondary-color {
  color: #111 !important;
}

.text-dark {
  color: #111 !important;
}

.text-muted {
  color: #777 !important;
}

.text-dotted-underline {
  text-decoration: underline dotted var(--theme-color);
}

.text-dotted-underline-light {
  text-decoration: underline dotted #fff;
}

.text-dotted-underline-light:hover {
  text-decoration: underline dotted var(--accent-blue);
}

.fs-10 {
  font-size: 10px;
}

.fs-11 {
  font-size: 11px;
}
.fs-12 {
  font-size: 12px !important;
}

.fs-14 {
  font-size: 14px;
}

.fs-15 {
  font-size: 15px;
}

.fs-18 {
  font-size: 18px;
}

.fs-20 {
  font-size: 20px;
}

.fs-32 {
  font-size: 28px;
}

.fw-400 {
  font-weight: 400;
}
.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}


/* ============================================================
   05. NAVBAR — DESKTOP
   ============================================================ */

.navbar {
  padding-top: 11px;
  padding-bottom: 11px;
}

.navbar-brand {
  color: #111;

  font-size: 14px;
}

.nav-link {
  color: #111 !important;

  font-size: 12px;
  font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
  color: var(--accent-blue) !important;
}


/* Navbar state applied by scroll JS */
.glass-navbar {
  background: rgba(255, 255, 255, .30);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(0, 0, 0, .06);

  box-shadow:
    0 10px 35px rgba(0, 0, 0, .05);
}


/* ============================================================
   06. MOBILE NAV TOGGLER
   ============================================================ */

.animated-toggler {
  width: 32px;
  height: 24px;

  padding: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: relative;
}

.animated-toggler span {
  display: block;

  width: 100%;
  height: 2px;

  background: #111;

  border-radius: 10px;

  transform-origin: center;

  transition:
    transform .3s ease,
    opacity .2s ease,
    width .3s ease;
}

.animated-toggler[aria-expanded="true"] span:nth-child(1) {
  transform:
    translateY(11px)
    rotate(45deg);
}

.animated-toggler[aria-expanded="true"] span:nth-child(2) {
  width: 0;

  opacity: 0;
}

.animated-toggler[aria-expanded="true"] span:nth-child(3) {
  transform:
    translateY(-11px)
    rotate(-45deg);
}

.animated-toggler:focus {
  box-shadow: none;
}


/* ============================================================
   07. BUTTONS
   ============================================================ */

.btn-theme {
  padding: .7rem 1.2rem;

  background: #111;

  color: #fff;

  border: 1px solid #111;
  border-radius: var(--radius-sm);

  font-size: 10px;
  letter-spacing: .5px;

  transition:
    color .25s ease,
    background-color .25s ease,
    border-color .25s ease;
}

.btn-theme:hover {
  background: #fff;

  color: #111 !important;

  border-color: #111;
}

.btn-outline-theme {
  padding: .7rem 1.2rem;

  background: rgba(255, 255, 255, .45);

  color: #111;

  border: 1px solid rgba(0, 0, 0, .13);
  border-radius: var(--radius-sm);

  font-size: 10px;
  letter-spacing: .4px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline-theme:hover {
  background: #fff;

  color: #111 !important;

  border-color: #111;
}


/* ============================================================
   08. SECTION LABELS
   ============================================================ */

.section-label {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  padding: 6px 11px;

  background: var(--soft-gradient);

  color: #333;

  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 30px;

  font-size: 9px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.section-label span:first-child {
  width: 17px;
  height: 1px;

  background: #111;
}


/* ============================================================
   09. GLASS CARDS
   ============================================================ */

.glass-card {
  position: relative;

  overflow: hidden;

  background: var(--soft-gradient) !important;

  border:
    1px solid var(--glass-border-light);

  border-radius: var(--radius-lg);

  box-shadow:
    0 12px 35px rgba(15, 23, 42, .055),
    inset 0 1px 0 rgba(255, 255, 255, .8);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.glass-card:hover {
  border-color:
    rgba(98, 138, 206, .18);

  box-shadow:
    0 18px 45px rgba(15, 23, 42, .08);
}


/* ============================================================
   10. DARK SECTIONS
   ============================================================ */

.bg-secondary {
  background:
    var(--dark-section) !important;

  color:
    rgba(255, 255, 255, .72);
}

.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6 {
  color: #fff;
}

.bg-secondary p {
  color:
    rgba(255, 255, 255, .68);
}

.bg-secondary .text-secondary-color {
  color: #fff !important;
}

.bg-secondary .text-muted {
  color:
    rgba(255, 255, 255, .50) !important;
}

.bg-secondary a {
  color: #fff;
}

.bg-secondary a:hover {
  color:
    var(--accent-blue) !important;
}

.bg-secondary .glass-card {
  background:
    linear-gradient(
      252deg,
      rgba(163, 211, 189, .08) 0%,
      rgba(98, 138, 206, .14) 100%
    ) !important;

  border:
    1px solid var(--glass-border-dark);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .06);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bg-secondary .glass-card:hover {
  border-color:
    rgba(255, 255, 255, .18);

  box-shadow:
    0 24px 55px rgba(0, 0, 0, .32);
}

.bg-secondary .glass-card h1,
.bg-secondary .glass-card h2,
.bg-secondary .glass-card h3,
.bg-secondary .glass-card h4,
.bg-secondary .glass-card h5,
.bg-secondary .glass-card h6 {
  color: #fff;
}

.bg-secondary .glass-card p {
  color:
    rgba(255, 255, 255, .66);
}

.bg-secondary .section-label {
  background:
    rgba(255, 255, 255, .06);

  color: #fff;

  border-color:
    rgba(255, 255, 255, .09);
}

.bg-secondary .section-label span:first-child {
  background: #fff;
}

.bg-secondary .credential {
  border-color:
    rgba(255, 255, 255, .10);
}


/* ============================================================
   11. CREDENTIALS
   ============================================================ */

.credential {
  padding: 13px 0;

  border-bottom:
    1px solid rgba(0, 0, 0, .07);
}

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


/* ============================================================
   12. FORMS
   ============================================================ */

.form-control,
.form-select {
  padding: .7rem .9rem;

  background:
    rgba(255, 255, 255, .58);

  border:
    1px solid rgba(0, 0, 0, .10);

  border-radius:
    var(--radius-sm);

  font-size: 13px;
}

.form-control:focus,
.form-select:focus {
  border-color:
    rgba(98, 138, 206, .45);

  box-shadow:
    0 0 0 3px rgba(98, 138, 206, .08);
}


/* ============================================================
   13. ACCORDION
   ============================================================ */

.accordion-item {
  background: transparent;

  border-color:
    rgba(255, 255, 255, .10);
}

.accordion-button {
  padding: 16px 0;

  background:
    transparent !important;

  color:
    #fff !important;

  box-shadow:
    none !important;

  font-size: 13px;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-body {
  padding: 0 0 18px;

  color:
    rgba(255, 255, 255, .65);

  font-size: 13px;
}


/* ============================================================
   14. BACKGROUND GLOW
   ============================================================ */

.bg-circle {
  position: fixed;

  z-index: -1;

  border-radius: 50%;

  filter: blur(110px);

  pointer-events: none;
}

.circle-1 {
  width: 300px;
  height: 300px;

  top: 48%;
  right: -100px;

  background:
    rgb(163 211 204 / 60%);
}

.circle-2 {
  width: 400px;
  height: 400px;

  bottom: -130px;
  left: -140px;

  background:
    rgb(98 138 206 / 50%);
}

.circle-3 {
  width: 430px;
  height: 430px;

  top: 48%;
  right: -180px;

  background:
    rgb(163 183 211);
}


/* ============================================================
   15. HOME HERO
   ============================================================ */

.hero {
  min-height:
    calc(100vh - 70px);
}

.slider-thumb::before {
  content: "";

  display: block;

  width: 350px;
  height: 350px;

  background: #171717;

  border:
    1px solid rgba(17, 17, 17, .05);

  border-radius:
    62% 47% 82% 35% /
    45% 45% 80% 66%;

  animation:
    sliderShape 10s ease-in-out infinite;
}

.user-image {
  height: 320px;
}

@keyframes sliderShape {

  0%,
  100% {
    border-radius:
      42% 58% 70% 30% /
      45% 45% 55% 55%;

    transform:
      translate3d(0, 0, 0);
  }

  34% {
    border-radius:
      70% 30% 46% 54% /
      30% 29% 71% 70%;

    transform:
      translate3d(0, 6px, 0);
  }

  67% {
    border-radius:
      100% 60% 60% 100% /
      100% 100% 60% 60%;

    transform:
      translate3d(0, -4px, 0);
  }

}


/* ============================================================
   16. FOOTER
   ============================================================ */

footer a {
  color:
    rgba(255, 255, 255, .62);
}


/* ============================================================
   17. ABOUT — INTRO
   ============================================================ */

.about-intro {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.about-intro-copy {
  max-width: 780px;
}


/* ============================================================
   18. ABOUT — STORY TIMELINE
   ============================================================ */

.story-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;
}

.story-nav {
  display: flex;

  gap: 8px;
}

.story-nav button {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    rgba(255, 255, 255, .05);

  color: #fff;

  border:
    1px solid rgba(255, 255, 255, .14);

  border-radius: 50%;

  transition:
    color .25s ease,
    background-color .25s ease,
    border-color .25s ease;
}

.story-nav button:hover {
  background: #fff;

  color: #111;

  border-color: #fff;
}


/* Progress */
.story-progress-track {
  position: relative;

  width: 100%;
  height: 1px;

  background:
    rgba(255, 255, 255, .12);
}

.story-progress-fill {
  position: absolute;

  top: 0;
  left: 0;

  width: 0;
  height: 1px;

  background: #fff;

  /*
   * JS updates this on every scroll frame.
   * No CSS transition = no lag behind the finger.
   */
  transition: none;
}


/* Horizontal scroller */
.story-scroll {
  display: flex;

  gap: 18px;

  padding-bottom: 8px;

  overflow-x: auto;
  overflow-y: hidden;

  /*
   * IMPORTANT:
   * Keep native scrolling immediate.
   * Arrow buttons use JS behavior:"smooth".
   */
  scroll-behavior: auto;

  scrollbar-width: none;

  cursor: grab;

  /*
   * Leave touch scrolling to iOS / Android.
   */
  touch-action: pan-x pan-y;

  -webkit-overflow-scrolling: touch;

  overscroll-behavior-x: contain;
}

.story-scroll::-webkit-scrollbar {
  display: none;
}

.story-scroll.is-dragging {
  cursor: grabbing;

  user-select: none;
}


/* Story card */
.story-item {
  width: 330px;
  min-width: 330px;

  flex-shrink: 0;

  padding: 25px;

  background:
    linear-gradient(
      252deg,
      rgba(163, 211, 189, .08) 0%,
      rgba(98, 138, 206, .14) 100%
    );

  border:
    1px solid rgba(255, 255, 255, .10);

  border-radius:
    var(--radius-lg);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .05);

  transition:
    transform .3s ease,
    border-color .3s ease;
}

.story-item:hover {
  border-color:
    rgba(255, 255, 255, .18);
}

.story-item-year {
  margin-bottom: 18px;

  color:
    rgba(255, 255, 255, .45);

  font-size: 12px;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.story-item-heading {
  margin-bottom: 5px;

  color: #fff;
}

.story-item-tag {
  display: block;

  margin-bottom: 15px;

  color:
    rgba(255, 255, 255, .45) !important;

  font-size: 12px;

  text-transform: uppercase;
  letter-spacing: .8px;
}

.story-item-body {
  margin-bottom: 0;

  color:
    rgba(255, 255, 255, .68);
}

.story-hint {
  color:
    rgba(255, 255, 255, .40);

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: .7px;
}


/* ============================================================
   19. ABOUT — EXPERIENCE
   ============================================================ */

.experience-item {
  padding: 2rem 0;

  border-bottom:
    1px solid rgba(0, 0, 0, .075);
}

.experience-item:last-child {
  border-bottom: 0;
}

.experience-company {
  position: sticky;

  top: var(--nav-height-offset);
}

.experience-logo {
  width: 42px;
  height: 42px;

  object-fit: contain;

  flex-shrink: 0;
}

.experience-number {
  margin-bottom: 12px;

  color: #999;

  font-size: 12px;

  letter-spacing: 1px;
}

.experience-list {
  padding-left: 18px;

  margin-bottom: 0;
}

.experience-list li {
  margin-bottom: 8px;
}

.experience-list li:last-child {
  margin-bottom: 0;
}


/* ============================================================
   20. ABOUT — EDUCATION
   ============================================================ */

.education-card {
  height: 100%;
}

.education-logo {
  width: 42px;
  height: 42px;

  object-fit: contain;

  flex-shrink: 0;
}

.education-card ul {
  padding-left: 18px;

  margin-bottom: 0;
}


/* ============================================================
   21. PORTFOLIO — INTRO
   ============================================================ */

.portfolio-intro {
  padding-top: 5rem;
  padding-bottom: 4rem;
}


/* ============================================================
   22. PORTFOLIO — PROJECTS
   ============================================================ */

.portfolio-project {
  margin-bottom: 5rem;
}

.portfolio-project:last-child {
  margin-bottom: 0;
}

.project-media {
  position: relative;

  min-height: 320px;

  padding: 2rem;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius:
    var(--radius-lg);
}

.project-media a {
  display: block;

  width: 100%;
}

.project-media img {
  display: block;

  width: 100%;
  height: auto;

  transition:
    transform .45s cubic-bezier(.2, .7, .2, 1);
}

.portfolio-project:hover .project-media img {
  transform:
    scale(1.025);
}


/* Light project media */
.project-media.glass-card {
  background:
    linear-gradient(
      252deg,
      rgba(163, 211, 189, .11) 0%,
      rgba(98, 138, 206, .15) 100%
    ) !important;

  border:
    1px solid rgba(0, 0, 0, .04);

  box-shadow:
    0 12px 35px rgba(15, 23, 42, .055),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}


/* Dark project media */
.bg-secondary .project-media.glass-card {
  background:
    linear-gradient(
      252deg,
      rgba(163, 211, 189, .08) 0%,
      rgba(98, 138, 206, .14) 100%
    ) !important;

  border:
    1px solid rgba(255, 255, 255, .10);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}


/* Project copy */
.project-number {
  color: #929292;

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.bg-secondary .project-number {
  color:
    rgba(255, 255, 255, .42);
}

.project-title {
  margin-bottom: .7rem;
}

.project-description {
  max-width: 700px;

  margin-bottom: .8rem;
}

.project-link {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  font-size: 10px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: .7px;
}

.project-link i {
  transition:
    transform .25s ease;
}

.project-link:hover i {
  transform:
    translateX(4px);
}


/* ============================================================
   23. PORTFOLIO — PROJECT-SPECIFIC MEDIA POSITIONING
   ============================================================ */

.project-copy-trade {
  padding: 2.5rem;
}

.project-reconciliation {
  padding:
    2.5rem 0 0 2.5rem;
}

.project-reconciliation img {
  position: relative;

  top: 25px;
  right: -8%;
}

.project-dispute {
  padding:
    2rem 3rem 0;
}

.project-dispute img {
  position: relative;

  top: 40px;
}

.project-messaging {
  padding: 0;
}

.project-cdm,
.project-revenue {
  padding:
    4rem 3rem;
}

.project-mobile {
  padding: 0;
}

.project-kiosk {
  padding: 3rem;
}

.portfolio-featured .project-content {
  padding-top: 1.5rem;
}


/* ============================================================
   24. LESSONS — INTRO
   ============================================================ */

.lessons-intro {
  padding-top: 5rem;
  padding-bottom: 4rem;
}


/* ============================================================
   25. LESSONS — ITEM
   ============================================================ */

.lesson-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.lesson-image-wrap {
  position: sticky;

  top: var(--nav-height-offset);
}

.lesson-image-card {
  padding: 1rem;
}

.lesson-image-card img {
  display: block;

  width: 100%;
  height: auto;

  border-radius:
    var(--radius-md);
}

.lesson-number {
  color: #949494;

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.lesson-title {
  margin-bottom: .4rem;
}

.lesson-status {
  display: inline-flex;
  align-items: center;

  padding: 5px 9px;

  background:
    var(--soft-gradient);

  color: #333;

  border:
    1px solid rgba(0, 0, 0, .05);

  border-radius: 30px;

  font-size: 9px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: .8px;
}

.lesson-content {
  max-width: 520px;
}

.lesson-field {
  padding: 14px 0;

  border-bottom:
    1px solid rgba(0, 0, 0, .07);
}

.lesson-field:last-child {
  border-bottom: 0;
}

.lesson-label {
  display: block;

  margin-bottom: 4px;

  color: #888;

  font-size: 10px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.lesson-takeaway {
  margin-top: 1.7rem;

  padding-top: 1.7rem;

  border-top:
    1px solid rgba(0, 0, 0, .08);
}


/* Dark lesson */
.bg-secondary .lesson-number {
  color:
    rgba(255, 255, 255, .42);
}

.bg-secondary .lesson-status {
  background:
    rgba(255, 255, 255, .06);

  color: #fff;

  border-color:
    rgba(255, 255, 255, .10);
}

.bg-secondary .lesson-field {
  border-color:
    rgba(255, 255, 255, .09);
}

.bg-secondary .lesson-label {
  color:
    rgba(255, 255, 255, .42);
}

.bg-secondary .lesson-image-card {
  background:
    linear-gradient(
      252deg,
      rgba(163, 211, 189, .08) 0%,
      rgba(98, 138, 206, .14) 100%
    ) !important;

  border:
    1px solid rgba(255, 255, 255, .10);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

.bg-secondary .lesson-takeaway {
  border-color:
    rgba(255, 255, 255, .10);
}


/* ============================================================
   26. PROJECT DETAIL — INTRO
   ============================================================ */

.project-intro {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.project-intro-copy {
  max-width: 820px;
}

.project-kicker {
  color: #888;

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 1.2px;
}


/* ============================================================
   27. PROJECT DETAIL — METRICS
   ============================================================ */

.metric-item {
  padding: 14px 0;

  border-bottom:
    1px solid rgba(0, 0, 0, .07);
}

.metric-item:last-child {
  border-bottom: 0;
}

.bg-secondary .metric-item {
  border-color:
    rgba(255, 255, 255, .10);
}


/* ============================================================
   28. PROJECT DETAIL — MEDIA
   ============================================================ */

.project-image-card {
  padding: 1.3rem;
}

.project-image-card img {
  display: block;

  width: 100%;
  height: auto;

  border-radius:
    var(--radius-md);
}

.sticky-media {
  position: sticky;

  top: var(--nav-height-offset);
}


/* ============================================================
   29. PROJECT DETAIL — CONTENT
   ============================================================ */

.project-copy {
  max-width: 820px;
}

.project-copy p:last-child {
  margin-bottom: 0;
}

.project-list {
  padding-left: 18px;

  margin-bottom: 0;
}

.project-list li {
  margin-bottom: 8px;
}

.project-list li:last-child {
  margin-bottom: 0;
}


/* ============================================================
   30. PROJECT DETAIL — CHALLENGES
   ============================================================ */

.challenge-card {
  height: 100%;

  padding: 1.5rem;
}

.challenge-number {
  margin-bottom: 12px;

  color: #8c8c8c;

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.challenge-card h5 {
  line-height: 1.35;
}

.bg-secondary .challenge-number {
  color:
    rgba(255, 255, 255, .42);
}


/* ============================================================
   31. MOBILE FULL-SCREEN NAV
   ============================================================ */

@media (max-width: 991.98px) {

  /*
   * Entire overlay is one sliding sheet.
   * Links do not animate separately.
   */
  #mainNavbar {
    position: fixed;

    inset: 0;

    z-index: 1040;

    width: 100%;
    height: 100dvh;

    display: flex !important;
    align-items: center;
    justify-content: center;

    background:
      linear-gradient(
        252deg,
        rgba(163, 211, 189, .13) 0%,
        rgba(98, 138, 206, .16) 100%
      ),
      rgba(255, 255, 255, .86);

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    transform:
      translateY(-100%);

    visibility: hidden;

    /*
     * Visibility hides only AFTER the panel
     * has rolled back up.
     */
    transition:
      transform .45s cubic-bezier(.77, 0, .18, 1),
      visibility 0s linear .45s;
  }


  /* Fully open */
  #mainNavbar.show {
    transform:
      translateY(0);

    visibility: visible;

    transition:
      transform .45s cubic-bezier(.77, 0, .18, 1),
      visibility 0s;
  }


  /*
   * Bootstrap temporarily applies .collapsing.
   * Keep the overlay full-screen during BOTH
   * opening and closing.
   */
  #mainNavbar.collapsing {
    position: fixed !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100dvh !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    visibility: visible !important;

    transition:
      transform .45s cubic-bezier(.77, 0, .18, 1) !important;
  }


  /* Opening */
  .navbar:has(
    .navbar-toggler[aria-expanded="true"]
  ) #mainNavbar.collapsing {
    transform:
      translateY(0);
  }


  /* Closing */
  .navbar:has(
    .navbar-toggler[aria-expanded="false"]
  ) #mainNavbar.collapsing {
    transform:
      translateY(-100%);
  }


  /* Center menu */
  #mainNavbar .navbar-nav {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;

    gap: 18px;
  }

  #mainNavbar .nav-item {
    width: 100%;

    margin-left: 0 !important;
    margin-right: 0 !important;

    text-align: center;

    /*
     * No individual animation.
     * The whole glass sheet moves together.
     */
    opacity: 1;
    transform: none;
    transition: none;
  }

  #mainNavbar .nav-link {
    display: inline-block;

    padding: 8px 20px;

    font-size: 14px;
    font-weight: 500;

    letter-spacing: -.01em;
  }

  #mainNavbar .nav-item:last-child {
    margin-top: 12px;
    margin-left: 0 !important;
  }


  /*
   * Brand and burger remain above
   * the fullscreen sheet.
   */
  .navbar-brand,
  .navbar-toggler {
    position: relative;

    z-index: 1050;
  }


  /*
   * Avoid a second navbar glass layer
   * while the overlay itself is open.
   */
  body.nav-open .navbar {
    background: transparent !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    border-bottom-color:
      transparent !important;

    box-shadow:
      none !important;
  }

}


/* ============================================================
   32. TABLET / SMALL DESKTOP
   ============================================================ */

@media (max-width: 991px) {

  section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }


  /* Hero */
  .hero {
    min-height: auto;

    padding-top: 4rem;
  }

  .slider-thumb::before {
    width: 270px;
    height: 270px;
  }

  .user-image {
    height: 240px;
  }


  /* About */
  .about-intro {
    padding-top: 4rem;
  }

  .story-item {
    width: 300px;
    min-width: 300px;
  }

  .experience-company {
    position: static;
  }


  /* Portfolio */
  .portfolio-intro {
    padding-top: 4rem;
  }

  .portfolio-project {
    margin-bottom: 4rem;
  }

  .project-media {
    min-height: 280px;
  }

  .project-cdm,
  .project-revenue {
    padding:
      3rem 2rem;
  }


  /* Lessons */
  .lessons-intro {
    padding-top: 4rem;
  }

  .lesson-image-wrap {
    position: static;
  }

  .lesson-content {
    max-width: none;
  }


  /* Product detail */
  .project-intro {
    padding-top: 4rem;
  }

  .sticky-media {
    position: static;
  }

}


/* ============================================================
   33. MOBILE
   ============================================================ */

@media (max-width: 767px) {

  /* Portfolio */
  .project-media {
    min-height: auto;
  }

  .project-copy-trade {
    padding: 2rem;
  }

  .project-reconciliation {
    padding:
      2rem 0 0 1.5rem;
  }

  .project-dispute {
    padding:
      2rem 2rem 0;
  }

  .project-cdm,
  .project-revenue {
    padding:
      2.5rem 1.5rem;
  }

  .project-kiosk {
    padding:
      2rem 1.5rem;
  }


  /* Lessons */
  .lesson-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

}


/* ============================================================
   34. SMALL MOBILE
   ============================================================ */

@media (max-width: 576px) {

  body {
    font-size: 12.5px;
  }

  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: 30px;
  }


  /* Cards */
  .glass-card {
    border-radius:
      var(--radius-md);
  }


  /* Hero */
  .slider-thumb::before {
    width: 220px;
    height: 220px;
  }

  .user-image {
    height: 200px;
  }


  /* Story */
  .story-header {
    align-items: flex-start;
  }

  .story-item {
    width: 270px;
    min-width: 270px;

    padding: 20px;
  }

  .story-nav button {
    width: 34px;
    height: 34px;
  }


  /* Portfolio */
  .portfolio-project {
    margin-bottom: 3.5rem;
  }

  .project-media {
    border-radius:
      var(--radius-md);
  }


  /* Lessons */
  .lesson-image-card {
    padding: .7rem;
  }


  /* Product detail */
  .project-image-card {
    padding: .8rem;
  }

}


/* ============================================================
   35. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;

    scroll-behavior: auto !important;
  }

}
.story-scroll-wrap {
  position: relative;
}


/* shared edge blur */
.story-scroll-wrap::before,
.story-scroll-wrap::after {
  content: "";

  position: absolute;
  top: 0;
  bottom: 8px;

  width: 45px;

  z-index: 5;

  pointer-events: none;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}


/* LEFT */
.story-scroll-wrap::before {
  left: 0;

  background:
    linear-gradient(
      to right,
      #101010 0%,
      rgba(16, 16, 16, .75) 25%,
      rgba(16, 16, 16, .25) 70%,
      transparent 100%
    );

  mask-image:
    linear-gradient(
      to right,
      #0000009e,
      transparent
    );

  -webkit-mask-image:
    linear-gradient(
      to right,
      #0000009e,
      transparent
    );
}


/* RIGHT */
.story-scroll-wrap::after {
  right: 0;

  background:
    linear-gradient(
      to left,
      #101010 0%,
      rgba(16, 16, 16, .75) 25%,
      rgba(16, 16, 16, .25) 70%,
      transparent 100%
    );

  mask-image:
    linear-gradient(
      to left,
      #000,
      transparent
    );

  -webkit-mask-image:
    linear-gradient(
      to left,
      #000,
      transparent
    );
}