/* --- PREVENT THEME FLASH --- */
/* This class kills all transitions temporarily */
.preload {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  transition: none !important;
}

.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  transition: none !important;
}

/* --- CSS VARIABLES (THEMING) --- */
:root {
  --bg-color: #151718;
  --bg-color-alt: #222526;
  --bg-color-mark: #3b3b3b;
  --text-color: #fbfbfb;
  --text-color-invert: #151718;
  --text-color-gray: #909090;
  --accent-color: #ffffff;
  --hover-accent: #00fff2;
  --hover-accent-invert: #00a39b;
  --overlay-color: rgba(21, 23, 24, 0.6);
  --nav-bg: rgba(21, 23, 24, 0.5);
  --shadow: rgba(251, 251, 251, 0.35);
  --form-control-border: #808080;
  --white: #ffffff;
  --black: #000000;
  --error: #ff4d4d;
  --bw: #000000;
  --hero-bg-image: url('../images/mm-hero-dark.webp');
}

[data-theme="light"] {
  --bg-color: #fbfbfb;
  --bg-color-alt: #f5f5f5;
  --bg-color-mark: #efefef;
  --text-color: #151718;
  --text-color-invert: #fbfbfb;
  --text-color-gray: #808080;
  --accent-color: #000000;
  --hover-accent: #00a39b;
  --hover-accent-invert: #00fff2;
  --overlay-color: rgba(251, 251, 251, 0.65);
  --nav-bg: rgba(251, 251, 251, 0.8);
  --shadow: rgba(21, 23, 24, 0.15);
  --form-control-border: #808080;
  --white: #ffffff;
  --black: #000000;
  --error: #ff4d4d;
  --bw: #ffffff;
  --hero-bg-image: url('../images/mm-hero-light.webp');
}

/* --- RESETS --- */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  cursor: none;
  font-family: "dorival-ui-variable", sans-serif;
  font-variation-settings: 'wdth' 100, 'wght' 400, 'slnt' 0;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;

  & {
    @media (max-width: 768px) {
      cursor: auto;
    }
  }

  &.no-scroll {
    overflow: hidden !important;
  }

  &.bodyprojects {
    background-color: var(--bw);
  }
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--hover-accent-invert);
  background: var(--text-color);
}

a,
button,
input,
textarea,
label,
.btn,
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled),
button:not(:disabled) {
  cursor: none;

  & {
    @media (max-width: 768px) {
      cursor: pointer;
    }
  }
}

a {
  text-decoration: none;
  color: inherit;
  color: var(--text-color);
  text-decoration: dotted underline;
  transition: ease 0.5s color;

  &:hover {
    color: var(--hover-accent);
  }

  &:focus {
    outline: none;
    box-shadow: none;
  }

  &:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem var(--shadow);
  }
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1 {
  font-size: calc(1.625rem + 4.5vw);
  line-height: 1.2;
  font-variation-settings: 'wdth' 100, 'wght' 200, 'slnt' 0 !important;
}

h2 {
  font-variation-settings: 'wdth' 100, 'wght' 300, 'slnt' 0 !important;
  font-size: calc(1.5rem + 3.5vw);
}

h3 {
  font-variation-settings: 'wdth' 100, 'wght' 400, 'slnt' 0 !important;
  font-size: calc(1.375rem + 2.8vw);
}

h4 {
  font-variation-settings: 'wdth' 100, 'wght' 400, 'slnt' 0 !important;
  font-size: calc(1.25rem + 2.5vw);
}

h5 {
  font-variation-settings: 'wdth' 100, 'wght' 400, 'slnt' 0 !important;
  font-size: calc(1.3rem + 1.10vw);
}

h6 {
  font-variation-settings: 'wdth' 100, 'wght' 400, 'slnt' 0 !important;
  font-size: calc(1.125rem + .5vw);
}

p {
  font-variation-settings: 'wdth' 100, 'wght' 300, 'slnt' 0 !important;

  &.light {
    font-variation-settings: 'wdth' 100, 'wght' 200, 'slnt' 0 !important;
  }
}

::placeholder {
  color: var(--text-color) !important;
  opacity: .6 !important;
}

/* --- BOOTSTRAP CUSTOMIZATIONS --- */
.btn,
.tooltip {
  font-family: "dorival-ui-variable", sans-serif;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .2rem var(--shadow);
}

.tooltip-inner {
  background-color: var(--hover-accent);
  color: var(--text-color-invert);
  font-size: .8rem;
  border-radius: .2rem;
  padding: .2rem .3rem;
}

.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
  border-left-color: var(--hover-accent);
}

.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: var(--hover-accent);
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
  border-top-color: var(--hover-accent);
}

.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
  border-right-color: var(--hover-accent);
}

/* --- ANIMATIONS --- */
.reveal-text,
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-600 {
  transition-delay: 0.6s;
}

.fade-in {
  opacity: 1;
  transition: opacity 1s ease;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;

  & {
    @media (max-width: 768px) {
      display: none;
    }
  }
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-color);
  transition: background-color 0.2s;
  background-color: var(--cursor-custom-color, var(--text-color));
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--text-color);
  transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
  border-color: var(--cursor-custom-color, var(--text-color));
}

body.hovering .cursor-outline {
  width: 80px;
  height: 80px;
  background-color: transparent;
  border-color: var(--hover-accent);
}

body.hovering .cursor-outline {
  background-color: transparent;
  border-color: var(--cursor-custom-color, var(--hover-accent));
}

body.hovering .cursor-dot {
  background-color: var(--hover-accent);
}

body.text-hover .cursor-dot {
  width: 2px;
  height: 24px;
  border-radius: 0;
  background-color: var(--text-color);
  background-color: var(--cursor-custom-color, var(--text-color));
  transition: width 0.2s, height 0.2s, border-radius 0.2s;
}

/* 2. Hide the OUTLINE circle completely */
body.text-hover .cursor-outline {
  opacity: 0;
  width: 0;
  height: 0;
}

.magnetic {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

/* --- INVERSE CURSOR LOGIC --- */
/* When hovering over high-contrast or problematic images */
body.cursor-invert .cursor-outline {
  border-color: transparent;
  background-color: var(--black);
  width: 80px;
  height: 80px;
  mix-blend-mode: exclusion;
  -webkit-backdrop-filter: invert(100%);
  backdrop-filter: invert(100%);
}

body.cursor-invert .cursor-dot {
  -webkit-backdrop-filter: invert(1);
  backdrop-filter: invert(1);
  background-color: var(--white);
  mix-blend-mode: exclusion;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* --- NAVIGATION --- */
/* Default State: Transparent & Spaced out */
.navbar {
  background: var(--bg-color);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;

  & {
    @media (max-width: 768px) {
      margin-top: 0;
    }
  }

  &.fixed-top {
    @media (max-width: 768px) {
      position: absolute;
    }
  }
}

/* Scrolled State: Background, Blur & Compact */
.navbar.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding-top: .7rem !important;
  padding-bottom: .7rem !important;
  box-shadow: 0 2px 20px var(--shadow);
  transition: ease 0.4s all;

  @media (max-width: 768px) {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
}

.nav-link {
  font-size: .9rem;
  font-variation-settings: 'wdth' 100, 'wght' 300, 'slnt' 0;

  & {
    @media (max-width: 768px) {
      font-size: 3rem;
    }

    @media (max-width: 576px) {
      font-size: 1.4rem;
    }
  }

  &.active {
    font-variation-settings: 'wdth' 100, 'wght' 500, 'slnt' 0;
    pointer-events: none;
    color: var(--hover-accent) !important;
  }

  &:focus {
    outline: none;
    box-shadow: none;
    color: var(--text-color);
  }

  &:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem var(--shadow);
    color: var(--text-color);
  }
}

.navbar-brand,
.nav-link,
.btn-link,
.btn-outline-custom {
  color: var(--text-color);
  transition: color 0.6s ease, border-color 0.6s ease;

  & {
    @media (max-width: 768px) {
      transition: ease 0.3s;
    }
  }
}

.navbar-brand.hover-trigger:hover,
.nav-link.hover-trigger:hover,
.btn-link.hover-trigger:hover,
.navbar-brand:focus {
  color: var(--hover-accent) !important;
}

.navbar-toggler {
  color: var(--text-color) !important;
  border-color: var(--text-color) !important;

  &:hover span {
    background-color: var(--hover-accent);
  }

  &:focus,
  &:focus-visible {
    outline: none;
    box-shadow: none;
  }
}

.navbar-collapse {
  position: inherit;
  background-color: transparent;
  padding: 0;

  & {
    @media (max-width: 768px) {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 70%;
      background-color: var(--bg-color);
      padding: 3rem;
      z-index: 100;
      box-shadow: 0px 0px 20px 0px var(--shadow);
    }
  }
}

.navbar-collapse.collapsing {
  height: 100vh;
  left: -75%;
  transition: height 0s ease;
}

.navbar-collapse.show {
  height: 100%;
  transition: left 400ms ease-in-out;
}

.navbar-toggler.collapsed~.navbar-collapse {
  transition: left 400ms ease-in;
}

.navbar-toggler {
  & {
    @media (max-width: 768px) {
      position: fixed;
      top: 1em;
      right: 1em;
    }
  }
}

.navbar-brand.active {
  pointer-events: none;
}

.navbar-brand svg {
  height: 40px;
  width: auto;
  fill: currentColor;
  stroke: currentColor;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.navbar-brand.hover-trigger:hover svg {
  fill: var(--hover-accent);
  stroke: var(--hover-accent);
}

/* Define the shape and color of the hamburger lines */
.navbar-toggler span {
  display: block;
  background-color: var(--text-color);
  height: 3px;
  width: 25px;
  margin-top: 5px;
  margin-bottom: 5px;
  position: relative;
  left: 0;
  opacity: 1;
  transition: all 0.35s ease-out;
  transform-origin: center left;
}

/* top line needs a little padding */
.navbar-toggler span:nth-child(1) {
  margin-top: 0.3em;
}

/*** Animate collapse into X. */
/* top line rotates 45 degrees clockwise and moves up and in a bit to close the center of the X in the center of the button */
.navbar-toggler:not(.collapsed) span:nth-child(1) {
  transform: translate(15%, -33%) rotate(45deg);
}

/* center line goes transparent */
.navbar-toggler:not(.collapsed) span:nth-child(2) {
  opacity: 0;
}

/* bottom line rotates 45 degrees counter clockwise, in, and down a bit to close the center of the X in the center of the button  */
.navbar-toggler:not(.collapsed) span:nth-child(3) {
  transform: translate(15%, 33%) rotate(-45deg);
}

/*** Animate collapse open into hamburger menu */
/* top line moves back to initial position and rotates back to 0 degrees */
.navbar-toggler span:nth-child(1) {
  transform: translate(0%, 0%) rotate(0deg);
}

/* middle line goes back to regular color and opacity */
.navbar-toggler span:nth-child(2) {
  opacity: 1;
}

/* bottom line goes back to initial position and rotates back to 0 degrees */
.navbar-toggler span:nth-child(3) {
  transform: translate(0%, 0%) rotate(0deg);
}

#lang-toggle {
  font-size: .8rem;
  border: .1rem solid;
  padding: .1rem .4rem;
}

/* MODAL (LIGHTBOX) */

.modal,
.modal-lg,
.modal-xl,
.modal-dialog,
.modal-dialog-centered {
  width: 100% !important;
  min-width: 90% !important;

  & {
    @media (max-width: 576px) {
      width: auto !important;
      min-width: auto !important;
    }
  }
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  /*min-height: calc(100% - 1rem);*/
  width: 100%;
}

.modal.fade .modal-dialog {
  transition: transform .3s ease-out;
  transform: scale(0.9);
}

.modal.show .modal-dialog {
  transform: scale(1);
}

.modal-content {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.modal-body {
  padding: 0;
  text-align: center;
  position: relative;
}

.modal-header {
  border: none;
  padding: 0;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;

  & .btn-close {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
  }
}

#lightboxImage {
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#lightboxCaption {
  color: var(--white);
  margin-top: 1rem;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  cursor: pointer;

  & i {
    color: var(--white);
  }
}

.btn-nav:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white);
}

.btn-nav.d-none {
  display: none;
}

.btn-prev {
  left: 10px;
}

.btn-next {
  right: 10px;
}

/* --- CUSTOM --- */
.btn-custom {
  background-color: transparent;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  padding: 15px 40px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;

  &:hover {
    background-color: var(--hover-accent);
    border-color: var(--hover-accent);
    color: var(--text-color-invert);
    transform: scale(1.02);
  }

  & {
    @media (max-width: 768px) {
      padding: 10px 26px;
      border-radius: 50px;
    }
  }
}

.btn-outline-custom {
  border-color: var(--text-color);
}

.btn-outline-custom:hover {
  background-color: transparent;
  border-color: var(--hover-accent);
  color: var(--hover-accent) !important;
}

.bg-color {
  background-color: var(--bg-color);
  transition: background-color 0.5s ease;
}

.bg-color-alt {
  background-color: var(--bg-color-alt);
  transition: background-color 0.5s ease;
}

footer a i {
  font-size: 1.5em;
}

mark {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 0 .2rem;
  border-radius: .2rem;
  font-variation-settings: 'wdth' 100, 'wght' 450, 'slnt' 0;
  transition: ease 0.5s all;
}

/* --- HOMEPAGE --- */
#hero-bg {
  background-image: var(--hero-bg-image);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-image 0.5s ease-in-out;
}

.overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-color);
  z-index: 1;
  transition: background 0.5s ease;
}

header a#arrow-down {
  z-index: 10;
  position: absolute;
  bottom: 2em;
  transition: .5s ease;

  &:hover {
    transform: translateY(2px);

    & i {
      color: var(--hover-accent);
    }
  }

  &:active:focus {
    outline: none;
    box-shadow: none;
  }

  &:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .1rem var(--shadow);
  }
}

header a i {
  color: var(--text-color);
  font-size: 3em;
  transition: .5s ease;
}

header h1 {
  font-size: calc(1.625rem + 4.5vw);
  line-height: 1.2;
  font-variation-settings: 'wdth' 100, 'wght' 200, 'slnt' 0;
}

/* --- WORKS --- */
#password-block {
  padding: 8em 0;

  & {
    @media (max-width: 992px) {
      padding: 6em 0;
    }
  }

  & {
    @media (max-width: 768px) {
      padding: 4em 0;
    }
  }

  & {
    @media (max-width: 576px) {
      padding: 2em 0;
    }
  }

  & {
    @media (max-width: 576px) and (max-height: 900px) {
      padding: 8em 0;
    }
  }

  & {
    @media (max-width: 576px) and (max-height: 800px) {
      padding: 3.5em 0;
    }
  }

  & {
    @media (max-width: 576px) and (max-height: 700px) {
      padding: 2em 0;
    }
  }

  &.password-block-home {
    padding: .5em 0 4em !important;
  }

}

.password-card {
  width: 60%;
  margin: 0 auto;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
  padding: 4em;
  box-shadow: 0 4px 20px var(--shadow);

  & {
    @media (max-width: 992px) {
      width: 90%;
    }
  }

  & {
    @media (max-width: 768px) {
      width: 100%;
      padding: 2em;
    }
  }

  & {
    @media (max-width: 576px) {
      padding: 1.5em;
    }
  }
}

.password-card a#access-portfolio i {
  font-size: 3em;
  line-height: 1em;
  color: var(--text-color);
  transition: ease .2s;

  &:hover {
    color: var(--hover-accent);
  }

  &::before {
    vertical-align: -.155em;
  }

  & {
    @media (max-width: 576px) {
      font-size: 2.45em;
    }
  }
}

.password-card form {
  width: 100%;
  margin: 0 auto;
}

.password-card .form-control {
  background-color: transparent;
  color: var(--text-color);
  border-radius: .5em;
  border: 3px solid var(--text-color);
  padding: .6rem 1rem;

  & {
    @media (max-width: 576px) {
      font-size: .9rem;
      padding: .4rem .8rem;
    }
  }
}

.password-card .form-control:focus,
.password-card .form-control:focus-visible {
  border: 3px solid var(--hover-accent);
  box-shadow: 0 0 0 .2rem var(--shadow);
}

#error-message {
  width: 80%;
  margin: .3rem 0 0;
  color: var(--error);
  font-size: .9rem;

  & {
    @media (max-width: 992px) {
      width: 100%;
    }
  }
}

.project-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
  opacity: 0.5 !important;
}

.project-info {
  z-index: 10;
  pointer-events: none;
  width: 100%;
  transition: ease .5s all;
  padding: 2rem 1rem;
  position: absolute;
  bottom: 0;
  background: var(--bg-color);

  & h4 {
    font-variation-settings: 'wdth' 100, 'wght' 500, 'slnt' 0;
    font-size: calc(1rem + 1.05vw);
    margin-bottom: .3rem;
  }

  & p {
    font-variation-settings: 'wdth' 100, 'wght' 300, 'slnt' 0;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    color: var(--text-color-gray);
  }
}

.project-card:hover .project-info {
  opacity: 1 !important;
}

a.project-card-link {
  color: var(--text-color);

  &:hover {
    color: var(--text-color);
  }
}

#works {
  margin-top: 100px;
  background-color: var(--bg-color-alt);
  transition: background-color 0.5s ease;
}

/* Filter Buttons */
.filter-btn {
  background: none;
  border: none;
  color: var(--text-color);
  opacity: 0.5;
  font-variation-settings: 'wdth' 100, 'wght' 350, 'slnt' 0;
  text-transform: uppercase;
  letter-spacing: .15em;
  transition: opacity 0.3s ease, color 0.3s ease;
  padding: .7em;

  & {
    @media (max-width: 576px) {
      font-size: .9rem;
      padding: .5em;
      display: block;
    }
  }
}

.filter-btn.active,
.filter-btn:hover {
  opacity: 1;
  color: var(--hover-accent);
}

.filter-btn.active {
  cursor: none;
  pointer-events: none;
  font-variation-settings: 'wdth' 100, 'wght' 550, 'slnt' 0;

}

.project-item-wrapper {
  display: block;
}

.project-item-wrapper.hide {
  display: none;
  transition: ease 2s all;
}

#project {
  margin-top: 100px;
  transition: background-color 0.5s ease;
}

.project-sidebar {
  width: 200px;
  transition: ease 0.5s all;

  & p {
    margin-bottom: .8rem;
    font-variation-settings: 'wdth' 100, 'wght' 400, 'slnt' 0 !important;
    font-size: .85rem;
    line-height: 1rem;
  }

  & h6 {
    font-variation-settings: 'wdth' 100, 'wght' 500, 'slnt' 0 !important;
    font-size: .9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: .4 !important;
  }

  & a {
    color: var(--text-color);
    transition: ease 0.3s color;
    text-decoration: none;
    opacity: .8 !important;

    &.active {
      font-variation-settings: 'wdth' 100, 'wght' 500, 'slnt' 0;
      pointer-events: none;
      color: var(--hover-accent) !important;
    }

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

  & {
    @media (max-width: 768px) {
      display: none;
    }
  }
}

.project-content {
  width: calc(100% - 200px);
  transition: ease 0.5s all;

  & {
    @media (max-width: 768px) {
      width: 100%;
    }
  }

  & h1 {
    font-size: calc(1.425rem + 3.5vw);
    line-height: 1;
    font-variation-settings: 'wdth' 100, 'wght' 500, 'slnt' 0 !important;
    letter-spacing: .1rem;
    color: var(--hover-accent);
  }

  & h5 {
    color: var(--hover-accent);
    letter-spacing: .1rem;
  }

  & h6 {
    font-variation-settings: 'wdth' 100, 'wght' 600, 'slnt' 0 !important;
    font-size: calc(1.3rem + .8vw);
    letter-spacing: .1rem;
  }

  & p {
    font-size: calc(1rem + .2vw);
    line-height: 1.6;

    &.small {
      font-size: .95rem;
      color: var(--text-color);
      line-height: 1.4;
    }

    & strong {
      font-variation-settings: 'wdth' 100, 'wght' 500, 'slnt' 0 !important;
    }

    &.summary {
      font-size: calc(1rem + .5vw);
      line-height: 1.6;
      font-variation-settings: 'wdth' 100, 'wght' 350, 'slnt' 0 !important;
    }
  }

  & .caption {
    font-size: .9rem;
    color: var(--text-color-gray);
    line-height: 1.4;
  }

  & mark {
    background-color: var(--bg-color-mark);
  }
}

.project-hero {
  margin-bottom: 2rem;

  & img {
    box-shadow: 0 4px 20px var(--shadow);
    height: 450px;
    width: 100%;
    object-fit: cover;
  }

  & {
    @media (max-width: 768px) {
      & img {
        height: 250px;
      }
    }
  }
}

.project-images {
  margin-bottom: 2rem;

  & img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1.5rem;
  }

  & .gallery-item {
    cursor: zoom-in;
  }
}

.project-highlight {
  background-color: var(--bg-color-alt);
  box-shadow: 0 0 20px var(--shadow);
  transition: background-color 0.5s ease;
  border: 2px solid var(--hover-accent);

  & h6 {
    font-variation-settings: 'wdth' 100, 'wght' 600, 'slnt' 0 !important;
    font-size: calc(1.6rem + .5vw);
    color: var(--hover-accent);
    letter-spacing: normal;
  }

  & p {
    font-size: calc(1rem + .2vw);
    line-height: 1.6;

    & strong {
      font-variation-settings: 'wdth' 100, 'wght' 500, 'slnt' 0;
    }
  }

  &.project-results {
    background-color: var(--hover-accent);
    color: var(--text-color-invert);

    & h5 {
      color: var(--text-color-invert);
    }

    & p {
      font-size: calc(1rem + .5vw);
    }
  }
}

/* --- ABOUT --- */
.header-about {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: opacity 1s ease-in;
  background-image: url(../images/bkg-about.webp);
  margin-top: 100px;
  height: 60vh;
  color: var(--white);
}

.header-about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 24, 0.7);
  z-index: 1;
  transition: background 0.5s ease;
}

header#about-header h1 {
  font-size: calc(2rem + 2vw);
  line-height: 1.2;
  font-variation-settings: 'wdth' 100, 'wght' 900, 'slnt' 0;
  color: var(--hover-accent);
}

header#about-header p {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .4rem;
  font-variation-settings: 'wdth' 100, 'wght' 300, 'slnt' 0;
  color: var(--white);
  opacity: .7;
}

#about-content {
  background-color: var(--bg-color-alt);
  transition: background-color 0.5s ease;

  & p {
    font-size: calc(1.275rem + .6vw);
    font-variation-settings: 'wdth' 100, 'wght' 250, 'slnt' 0;
    line-height: 1.4;
  }

  & h4 {
    color: var(--hover-accent);
  }
}

/* --- CONTACT --- */

#contact-content {
  margin-top: 100px;
  background-color: var(--bg-color-alt);
  transition: background-color 0.5s ease;
}

#contact-content .form-control {
  background-color: transparent;
  color: var(--text-color);
  border-radius: .5em;
  border: 3px solid var(--text-color);
  padding: .6rem 1rem;

  & {
    @media (max-width: 576px) {
      font-size: .9rem;
      padding: .4rem .8rem;
    }
  }
}

#contact-content .form-control:focus,
#contact-content .form-control:focus-visible {
  border: 3px solid var(--hover-accent);
  box-shadow: 0 0 0 .2rem var(--shadow);
}

.invalid-feedback {
  color: var(--error);
}