/** 
 * Theme Name: Portfolio
 * Author: Jawon Winbush
 * Author URI: https://www.jwinbush.com
 * Description: Custom WordPress theme built by Jawon Winbush for his personal portfolio site.
 * Version: 1.1.4
 *
 * @package portfolio
 * @charset "UTF-8"
 */

/**
 * Table of Contents
 * -----------------
 * 1. Global Settings
 * 2. Typography
 * 3. Utils
 * 4. Site Header
 * 5. Drawer
 * 6. Hero Section
 * 7. Team Section
 * 8. About Section
 * 9. Banner Section
 * 10. Footer Page
 * 11. Inside Pages
 */

/* ======================== */
/* 1. Global Settings */
/* ======================== */
:root {
  --color-white: #ffffff;
  --color-neutral-100: #f4f4f4; /* lightest gray, subtle backgrounds */
  --color-neutral-200: #EDEDED; /* light gray, borders/dividers */
  --color-neutral-400: #a7a7a7; /* mid gray, muted text/icons */
  --color-neutral-900: #181818; /* near-black, dark backgrounds/text */
  --color-black: #000000;
  --color-primary: #FF5E1A; /* main accent/brand color */
  --color-secondary: #D6440A; /* darker accent, used for hover/gradients */

  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-hover: rgba(0, 0, 0, 0.4);

  --shadow: 0 0 10px var(--shadow-color);
  --shadow-hover: 0 0 10px var(--shadow-color-hover);
  --shadow-alt: 0 5px 10px var(--shadow-color);

  --gutter: 2rem;

  /* Gap scale */
  --gap-3xs: 0.25rem;
  --gap-2xs: 0.5rem;
  --gap-xs: 0.6rem;
  --gap-sm: 0.75rem;
  --gap-sm-alt: 0.85rem;
  --gap-base: 1rem;
  --gap-md: 1.25rem;
  --gap-lg: 1.5rem;
  --gap-lg-alt: 1.75rem;
  --gap-xl: 2rem;
  --gap-2xl: 2.5rem;
  --gap-3xl: 3rem;
  --gap-4xl: 4rem;

  /* Transform scale values */
  --scale-hidden: 0;
  --scale-visible: 1;
  --scale-hover: 1.1;
  --scale-pulse: 2.5;

  /* Transition durations */
  --duration-fast: 0.15s;
  --duration-sm: 0.2s;
  --duration-base: 0.25s;
  --duration-md: 0.3s;
  --duration-lg: 0.35s;
  --duration-xl: 0.4s;
  --duration-2xl: 0.45s;
  --duration-3xl: 0.5s;
  --duration-4xl: 0.6s;

  /* Easing curves */
  --ease-out-expo: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-drawer: cubic-bezier(0.65, 0, 0.35, 1);

  --transition: var(--duration-base) ease;

  --max-w-max: 82rem;
  --max-w-content: 60rem;
  --max-w-text: 50rem;
  --border-radius: 1rem;

  --ff-heading: "proxima-nova", sans-serif;
  --ff-body: "proxima-nova", sans-serif;

  --fs-xs: clamp(0.55rem, 0.2vw + 0.5rem, 0.8rem);
  --fs-sm: clamp(0.7rem, 0.25vw + 0.6rem, 0.9rem);
  --fs-base: clamp(0.85rem, 0.35vw + 0.7rem, 1.1rem);
  --fs-md: clamp(1rem, 0.5vw + 0.85rem, 1.4rem);
  --fs-lg: clamp(1.2rem, 0.8vw + 1rem, 1.75rem);
  --fs-xl: clamp(1.5rem, 1.1vw + 1.2rem, 2rem);
  --fs-2xl: clamp(1.75rem, 1.5vw + 1.4rem, 2.7rem);
  --fs-2xl-alt: clamp(1.75rem, 1.5vw + 1.4rem, 2.5rem);
  --fs-3xl: clamp(2rem, 2vw + 1.5rem, 3.6rem);
  --fs-4xl: clamp(3.25rem, 2.5vw + 2rem, 4.5rem);

  --header-height: var(--dynamic-header-height, 120px);
}

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Offsets anchor/in-page scrolling so section tops don't land under the fixed .site-header. */
  scroll-padding-top: 6rem;

  @media (max-width: 1024px) {
    scroll-padding-top: 8.5rem;
  }

  @media (max-width: 500px) {
    scroll-padding-top: 7.5rem;
  }
}

html,
body {
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
}

.container {
  max-width: var(--max-w-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 6rem;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

b,
strong {
  font-weight: bolder;
}

embed,
iframe,
object,
img {
  display: block;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ======================== */
/* 2. Typography */
/* ======================== */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ff-heading);
  line-height: 1;
}

h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  letter-spacing: 1.5px;
  /* line-height: 149%; */
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: 500;
  margin: 0 0 1rem 0;
}

h2.title,
.title {
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-base);
  margin-bottom: 1rem;

  &::before,
  &::after {
    content: '';
    width: 2rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    flex-shrink: 0;
  }
}

.section-subtitle {
  text-align: center;
  font-size: var(--fs-base);
  color: var(--color-neutral-900);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 300;
}

.recent-projects .section-subtitle,
.before-after .section-subtitle,
.approach .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}


h3 {
  font-size: var(--fs-xl);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  font-family: var(--ff-body);
}

h5,
h6 {
  font-size: var(--fs-md);
  margin: 0 0 0.5rem 0;
}

p {
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  font-family: var(--ff-body);
}

ul li {
  letter-spacing: 0px;
  font-family: var(--ff-body);
}

a {
  text-decoration: none;
  transition: var(--transition);
  font-size: var(--fs-sm);
  cursor: pointer;

  &:has(svg) {
    display: flex;
  }
}

@media (max-width: 1024px) {
  :root {
    --fs-2xl-alt: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-2xl: 3.15rem;
    --fs-2xl-alt: 1.75rem;
  }
}

@media (max-width: 500px) {
  :root {
    --fs-2xl-alt: 1.375rem;
  }
}

/* ======================== */
/* 3. Utils */
/* ======================== */
.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;
}

hr {
  display: block;
  height: 1px;
  width: 100%;
  border: none;
  background-color: currentColor;
  /* matches text color */
  margin-block: 1.5rem;
}

.btn,
.button,
.frm_button_submit {
  text-transform: uppercase;
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  font-weight: 400;
  background-color: var(--color-black);
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  letter-spacing: 0.25px;
  min-width: 125px;
  text-align: center;
  cursor: pointer;
  transition: var(--duration-md);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.btn,
.button {
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.18) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left var(--duration-3xl) ease;
  }

  &:hover::before {
    left: 125%;
  }

  @media (max-width: 768px) {
    font-size: var(--fs-md);
  }
}

.btn {
  &.btn--black {
    background-color: var(--color-black);

    &:hover {
      background-color: #323232;
    }
  }

  &.btn--white {
    background-color: var(--color-white);
    color: var(--color-black);
  }

  &.btn--orange {
    background-color: var(--color-primary);
    color: var(--color-white);
  }
}

.button {
  background-color: var(--color-black);
}

.frm_button_submit {
  background: linear-gradient(to right, var(--color-black), var(--color-neutral-900)) !important;
  color: var(--color-white) !important;
  padding: 0.75rem 1.25rem !important;
  border: none !important;

  &::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    flex-shrink: 0;
  }
}

/**************************************************
   * 4. === Site Header ===
   **************************************************/

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1002;
  background-color: transparent;

  /* Scrolled */
  &.site-header--scrolled {
    background: black;

    .site-logo img {
      filter: brightness(0.94);
      max-width: 5rem;
    }

    #primary-menu li a {
      color: var(--color-white);

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

  /* Responsive */
  @media (max-width: 1024px) {
    &__branding {
      gap: var(--gap-base);
      padding: 0;
    }
  }
}

.site-header__branding {
  /* Locked to the logo's largest (unscrolled) width so the scrolled-state
     shrink doesn't reflow the nav/socials/hamburger next to it. */
  width: 7rem;
  flex-shrink: 0;
}

.site-header__bar {
  padding-inline: var(--gutter);
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w-max);
  margin-inline: auto;

  @media (max-width: 1024px) {
    padding: 2rem 3rem;
  }

  @media (max-width: 768px) {
    padding: var(--gutter);
  }

  @media (max-width: 500px) {
    padding: 1.5rem 2rem;
  }
}

.site-header__socials {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.site-header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  transition: var(--duration-base) ease;
}

.site-header__social-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(255, 94, 26, 0.08);
}

.site-logo img {
  max-width: 7rem;
  width: 100%;
  transition: max-width var(--duration-md) ease;
  object-fit: cover;
  filter: brightness(0.94);

  @media (max-width: 1024px) {
    max-width: 7rem;
  }

  @media (max-width: 768px) {
    max-width: 7rem;
  }
}

/* Logo will become dark on white background, when drawer is open */
/* .home .site-logo img.dark {
  filter: invert(1);
} */

/* === Navigation === */
#primary-menu {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  margin: 0;
  gap: var(--gap-base);

  li {
    list-style: none;

    a {
      padding: 0.75rem 1.75rem;
      display: inline-block;
      text-decoration: none;
      color: var(--color-white);
      font-weight: 400;
      transition: color var(--duration-md) ease, background var(--duration-md) ease;
      text-transform: uppercase;
      position: relative;

      &::after {
        content: "";
        position: absolute;
        left: 1.75rem;
        right: 1.75rem;
        bottom: 0.5rem;
        height: 2px;
        background: var(--color-primary);
        transform: scaleX(var(--scale-hidden));
        transform-origin: center;
        transition: transform var(--duration-md) ease;
      }

      &:hover::after {
        transform: scaleX(var(--scale-visible));
      }
    }
  }

  /* Sub-menu */
  .sub-menu li a {
    background: none !important;
    margin-inline-start: 0;
    color: var(--color-black);
    padding: 1rem 2rem;
  }
}

/* Inside pages — active state */
body:not(.home) #primary-menu li a.active {
  color: var(--color-black);
}

.menu-item-has-children {
  /* Submenu Container */
  ul {
    position: absolute;
    display: block;
    width: auto;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--duration-md) ease, transform var(--duration-md) ease, max-height var(--duration-md) ease;
    background-color: var(--color-white);
    box-shadow: var(--shadow);

    /* Submenu Items */
    li {
      width: 100%;

      /* Submenu Links */
      a {
        display: block;
        width: 100%;
        padding: 1rem;
        color: var(--orange);
        transition: color var(--duration-md) ease;

        /* Hover effect for submenu links */
        &:hover {
          color: var(--color-black);
        }
      }
    }
  }

  /* Reveal submenu on hover */
  &:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 500px;
    /* submenu height */
  }
}

.main-navigation .menu-item:has(.sub-menu):hover .sub-menu {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .site-header__bar #site-navigation {
    display: none;
  }

  ul.sub-menu {
    display: none;
  }

  .hamburger__wrapper {
    display: block !important;
  }

  .site-header__socials {
    display: none;
  }
}

/* === Hamburger Menu === */
.hamburger__wrapper {
  cursor: pointer;
  display: none;
  position: relative;
  z-index: 11000;
  padding: 1rem;
  transition: background-color var(--duration-md) ease;
}

/* .hamburger__wrapper.navy {
	background-color: var(--color-black);
} */

.hamburger {
  position: relative;
  width: 2rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);

  /* Hamburger Lines */
  .hamburger__line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;

    &::before,
    &::after {
      content: "";
      position: absolute;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: var(--color-white);
      border-radius: 2px;
      transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.08s,
                  top 0.25s ease,
                  background-color 0.3s ease 0.08s;
    }

    &::before {
      top: -8px;
    }

    &::after {
      top: 8px;
    }
  }

  /* Open (X) State — the middle bar collapses first, then the outer bars
     swing into an X with a slight bounce, turning brand-orange. The whole
     icon also does a quarter-turn for extra flourish. */
  &.hamburger--open {
    transform: rotate(90deg);

    .hamburger__line {
      background-color: transparent;

      &::before {
        top: 0;
        background-color: var(--color-primary);
        transform: rotate(45deg);
      }

      &::after {
        top: 0;
        background-color: var(--color-primary);
        transform: rotate(-45deg);
      }
    }
  }
}

.no-scroll {
  overflow: hidden;
}

/**************************************************
   * 5. === Drawer ===*
   **************************************************/
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-md) ease, visibility var(--duration-md) ease;

  &.drawer-overlay--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.drawer {
  padding-block-start: 136px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: #0a0a0a;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform var(--duration-xl) var(--ease-drawer), opacity var(--duration-md) ease;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;

  /* Layer — blueprint grid lines, matching the front-page hero */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(147, 197, 253, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(147, 197, 253, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    pointer-events: none;
    z-index: 0;
  }

  /* Layer — decorative orange radial glow, bottom-left corner */
  &::after {
    content: "";
    position: absolute;
    width: 50vw;
    height: 50vw;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  &.drawer--open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  #drawer-navigation {
    width: 100%;
    position: relative;
    z-index: 1;

    ul li a {
      color: var(--color-white);
      font-family: var(--ff-body);
      font-weight: 600;
    }
  }

  .menu-main-menu-container {
    height: 100%;
  }

  .menu {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* #primary-menu li a (desktop nav rule) sets display:inline-block at higher
     specificity (ID selector) — #primary-menu is repeated here so this wins. */
  #primary-menu.menu li a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: var(--fs-3xl);
    padding-block: 1rem;
    font-weight: 700;

    &::before {
      content: "";
      display: inline-block;
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      background-repeat: no-repeat;
      background-size: contain;
    }
  }

  .menu-item a[href$="#about"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5E1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
  }

  .menu-item a[href$="#work"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5E1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E");
  }

  .menu-item a[href$="#skills"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5E1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'%3E%3C/polyline%3E%3Cpolyline points='8 6 2 12 8 18'%3E%3C/polyline%3E%3C/svg%3E");
  }

  .menu-item a[href*="/blogs"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5E1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'%3E%3C/path%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'%3E%3C/path%3E%3C/svg%3E");
  }

  .menu-item a[href$="#contact"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5E1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'%3E%3C/rect%3E%3Cpath d='M2 6l10 7 10-7'%3E%3C/path%3E%3C/svg%3E");
  }

  .sub-menu {
    display: none !important;

    .menu-item a {
      padding: 0.5rem 0;
      font-size: var(--fs-md);
    }
  }

  #primary-menu li a.active {
    color: var(--color-primary);
  }

  @media (max-width: 1024px) {
    padding-block-start: 128px;
  }

  @media (max-width: 500px) {
    padding-block-start: 112px;
  }

  /* Tablet — docked panel instead of a full-screen takeover */
  @media (min-width: 769px) and (max-width: 1024px) {
    left: auto;
    right: 0;
    width: min(26rem, 90vw);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  }
}

.drawer__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2rem 3rem;
  color: var(--color-white);
  height: 100dvh;
  position: relative;
  z-index: 1;

  /* Acts as a spacer to space out drawer evenly*/
  &::before {
    content: "";
    flex: 0;
    /* acts like a flexible spacer */
  }

  @media (max-width: 1024px) {
    padding: var(--gutter);
  }

  @media (max-width: 768px) {
    padding: var(--gutter);
  }

  @media (max-width: 500px) {
    padding: 2rem;
  }
}

.drawer__credits {
  text-align: center;
  display: flex;
  flex-direction: column;

  p {
    margin-bottom: 0;
    font-size: var(--fs-xs);
    color: var(--color-neutral-400);
  }
}

.drawer__details {
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  gap: var(--gap-base);
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
}

.drawer__socials {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.drawer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  transition: var(--duration-base) ease;
  cursor: pointer;

  &:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(255, 94, 26, 0.08);
  }
}

/****************************/
/** == ** Front Page ** == **/
/***************************/

/****************************/
/** 6. == ** Hero Section ** == **/
/***************************/

/**
 * Hero layer stack (bottom → top):
 *
 *  .hero (solid near-black background)                z-index: auto
 *  .hero__wrapper::before — blueprint grid lines        z-index: 1
 *  .hero::after   — orange radial glow (bottom-left)   z-index: 1
 *  .hero__wrapper > *  — content                        z-index: 2
 */
.hero {
  position: relative;
  min-height: 40rem;
  width: 100%;
  background: #0a0a0a;
  overflow: hidden;

  /**
   * Layer — blueprint grid lines.
   * Positioned on .hero__wrapper (not .hero) so the mask only clips
   * the grid. mask-image fades it from visible (bottom-left) to
   * transparent (top-right) at 45°.
   * Note: .hero__wrapper has no explicit position so this pseudo-element
   * is positioned relative to .hero (nearest positioned ancestor).
   */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(147, 197, 253, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(147, 197, 253, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    pointer-events: none;
    z-index: 1;
  }

  /* Layer — decorative orange radial glow, bottom-left corner */
  &::after {
    content: "";
    position: absolute;
    width: 50vw;
    height: 50vw;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
  }
}

.hero__wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  max-width: var(--max-w-max);
  padding-inline: 2rem;
  padding-block: 8rem 2.5rem;
  gap: var(--gap-3xl);
}

.hero-video {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: bottom;
}

.hero-video video {
  width: 100%;
  height: 100%;
}

.hero__content {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: var(--gap-4xl);
  width: 100%;
  animation: fadeUp 1s ease-out forwards;
}

.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-lg-alt);
  color: var(--color-white);
}

.hero__btns {
  display: flex;
  gap: var(--gap-base);
  flex-wrap: wrap;

  /* Ghost variant of the white button, scoped to the dark hero */
  .btn--white {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);

    &:hover {
      background: rgba(255, 255, 255, 0.1);
    }
  }
}

.hero__title {
  font-weight: 800;
  font-size: var(--fs-4xl);
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--color-white);
  margin-bottom: 0 !important;

  .accent {
    color: var(--color-primary);
  }
}

.hero__text p {
  max-width: 46ch;
  width: 100%;
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
}

/* ---- Visual column: code panel + tech badges ---- */

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.hero-code {
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  .hero-code__token--keyword { color: #c586c0; }
  .hero-code__token--string { color: var(--color-primary); }

  @media (max-width: 600px) {
    padding: 1.25rem;
  }
}

.hero-code__header {
  display: flex;
  gap: var(--gap-2xs);
  margin-bottom: 1.25rem;
}

.hero-code__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;

  &.hero-code__dot--red    { background: #ff5f56; }
  &.hero-code__dot--yellow { background: #ffbd2e; }
  &.hero-code__dot--green  { background: var(--color-primary); }
}

.hero-code__line {
  display: flex;
  gap: var(--gap-base);
  font-size: var(--fs-sm);
  line-height: 1.9;
  white-space: pre;

  .hero-code__line-number {
    flex-shrink: 0;
    width: 1.4rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
  }

  .hero-code__line-code {
    color: #e8e8e8;
  }
}

/* ---- Stats bar ---- */

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat:last-child {
  border-right: none;
}

.hero__stat-num {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-primary);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Scroll cue ---- */

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xs);
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero__scroll-wheel {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-primary);
  animation: hero__scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes hero__scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 1024px) {
  .hero__wrapper {
    padding-block-start: 10rem;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--gap-3xl);
  }
}

@media (max-width: 768px) {
  .hero__wrapper {
    padding-block: 10rem 2rem;
    gap: var(--gap-2xl);
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stat:nth-child(1),
  .hero__stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero__stat:nth-child(2) {
    border-right: none;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: var(--fs-3xl);
  }

  .hero-code__line {
    font-size: var(--fs-xs);
    gap: var(--gap-xs);
  }
}

@media (max-width: 500px) {
  .hero__wrapper {
    padding-block-start: 9rem;
  }
}

/****************************/
/* ** Home About Teaser **  */
/***************************/

.about {
  background-color: var(--color-white);
  position: relative;
}

.about__wrapper {
  padding-block: 5rem;
}

.about__content {
  display: grid;
  grid-template-columns: minmax(0, 19rem) 1fr;
  gap: var(--gap-xl) var(--gap-4xl);
}

.about__image-dots {
  position: absolute;
  top: 2.5rem;
  left: -1.75rem;
  width: 6rem;
  height: 6rem;
  background-image: radial-gradient(var(--color-primary) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.5;
  z-index: 0;
}

.about__image {
  position: relative;
  grid-column: 1;
  grid-row: 1;

  img,
  .about__map {
    position: relative;
    z-index: 1;
    width: 100%;
    border: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-alt);
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .about__map {
    filter: grayscale(1) invert(90%) contrast(90%);
  }
}

.about__meta {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: var(--gap-base);
}

.about__meta-item {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  color: var(--color-primary);

  .about__status-dot {
    margin-left: 2px;
  }

  div {
    display: flex;
    flex-direction: column;
  }
}

.about__status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-primary);
    animation: about__status-pulse 2s ease-out infinite;
  }
}

@keyframes about__status-pulse {
  0% {
    transform: scale(var(--scale-visible));
    opacity: 0.6;
  }
  100% {
    transform: scale(var(--scale-pulse));
    opacity: 0;
  }
}

.about__meta-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-black);
}

.about__meta-sub {
  font-size: var(--fs-xs);
  color: var(--color-neutral-900);
  opacity: 0.65;
}

.about__meta-divider {
  width: 1px;
  align-self: stretch;
  background: var(--color-neutral-100);
}

.about__text {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--color-neutral-900);
}

.about__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.about__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--color-black);
  margin-bottom: 1.25rem;

  .accent {
    color: var(--color-primary);
  }
}

.about__lead {
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.6;
}

.about__divider {
  border: none;
  border-top: 1px solid var(--color-neutral-100);
  margin: 1.5rem 0;
}

.about__quote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1.25rem;
  margin: 0 0 1.75rem;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-neutral-900);
}

@media (max-width: 768px) {
  .about__content {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .about__image,
  .about__meta,
  .about__text {
    grid-column: 1;
  }

  .about__image {
    display: none;
  }

  .about__meta {
    display: none;
  }

  .about__text {
    grid-row: 3;
  }

  .about__image img,
  .about__image .about__map {
    max-width: 14rem;
    margin-inline: auto;
  }

  .about__eyebrow.title {
    justify-content: center;
  }

  .about__quote {
    text-align: left;
  }
}

/****************************/
/* 7. ** Recent Projects **  */
/***************************/

/**
 * Multi-layer background technique (used here and in .approach).
 *
 * background-image layers stack top-to-bottom in source order:
 *   1. Dark tint gradient  — covers the full element (100% 100%)
 *   2. background image    — silver-alt.webp scaled to cover
 *
 * background-color: var(--color-black) is the final fallback shown while
 * the image loads or if it fails.
 *
 * background-size must list a value for every background-image layer.
 * Gradients use "100% 100%" (fill the element); only the image uses "cover".
 */
.recent-projects {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.88)),
    url('assets/images/silver-alt.webp');
  background-color: var(--color-black);
  background-size: 100% 100%, cover;
  background-position: center, center;
  position: relative;
  overflow: hidden;
}

.recent-projects__wrapper {
  padding-block: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;

  .projects-splide {
    width: 100%;
  }
}

.recent-projects__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.recent-projects__title {
  color: var(--color-neutral-100);
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;

  .accent {
    color: var(--color-primary);
  }
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-xl);
}

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

/* ---- Projects slider (Latest Work + Personal Work, home page) ---- */

.projects-splide {
  .splide__track {
    overflow: visible;
  }

  .splide__slide {
    height: auto;
  }
}

.projects-splide__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-base);
  margin-bottom: 3rem;
}

.projects-splide__heading .section-subtitle {
  text-align: left;
  margin-inline: 0;
  margin-bottom: 0;
}

.projects-splide .splide__arrows {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.projects-splide .splide__arrow {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  opacity: 1;
  transition: opacity var(--duration-base) ease, transform var(--duration-base) ease;

  &:hover:not(:disabled) {
    opacity: 0.85;
    transform: translateY(-2px);
  }

  &:disabled {
    opacity: 0.3;
    cursor: default;
  }
}

.recent-projects .splide__arrow {
  background: var(--color-white);
  color: var(--color-black);
}

.projects-splide .splide__arrow svg {
  fill: none;
  stroke: currentColor;
}

.projects-splide .splide__arrow--prev svg {
  transform: none;
}

/* ---- Project cards (Latest Work + Personal Work) ---- */

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8/5;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  transition: background-size var(--duration-md) ease;

  /* Bottom gradient (default) — legibility for the caption */
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
    opacity: 1;
    transition: opacity var(--duration-md) ease-in-out;
  }

  /* Full gradient (hover) — backs the pulled-in content, darker than the default */
  &::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.85) 65%, rgba(0, 0, 0, 0.25) 100%);
    opacity: 0;
    transition: opacity var(--duration-md) ease-in-out;
  }

  &:hover {
    background-size: calc(var(--scale-hover) * 100%) auto;

    &::before {
      opacity: 0;
    }

    &::after {
      opacity: 1;
    }

    .project-card__content {
      opacity: 1;
      pointer-events: auto;
    }

    .project-card__caption {
      opacity: 0;

      svg {
        transform: translateX(4px);
      }
    }
  }
}

.project-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2rem;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--gap-sm-alt);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-md) ease;

  @media (max-width: 768px) {
    padding: 1.5rem;
  }
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-base);
}

.project-card__category {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.project-card__year {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.project-card__year-line {
  width: 2.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

.project-card__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 0;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-2xs);

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

.project-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.85);

  .project-card__tag-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
  }
}

.project-card__excerpt {
  max-width: 40ch;
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.project-card__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: 0.25rem;

  .btn {
    padding: 0.6rem 1.1rem;
    font-size: var(--fs-xs);
    min-width: auto;
  }
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color var(--duration-base) ease, color var(--duration-base) ease;

  &:hover {
    background: var(--color-white);
    color: var(--color-black);
  }
}

.btn--outline-green {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: background-color var(--duration-base) ease, color var(--duration-base) ease;

  &:hover {
    background: var(--color-primary);
    color: var(--color-white);
  }
}

/* Default caption — name + arrow, visible until hover pulls in the full content */
.project-card__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-base);
  padding: 1.25rem 1.5rem;
  color: var(--color-white);
  opacity: 1;
  transition: opacity var(--duration-md) ease;
}

.project-card__caption-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-white);
  text-decoration: none;
}

.project-card__caption svg {
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--duration-base) ease;
}

/* Touch devices have no hover — the excerpt/tags/buttons in
   .project-card__content would otherwise be permanently unreachable,
   so show them by default and drop the redundant caption overlay. */
@media (hover: none) {
  .project-card {
    &::before {
      opacity: 0;
    }

    &::after {
      opacity: 1;
    }
  }

  .project-card__caption {
    display: none;
  }

  .project-card__content {
    opacity: 1;
    pointer-events: auto;
  }
}

/****************************/
/* 8. ** Personal Projects **  */
/***************************/

.personal-projects {
  background-color: var(--color-neutral-100);
  position: relative;
}

.personal-projects__wrapper {
  padding-block: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;

  .projects-splide {
    width: 100%;
  }
}

.personal-projects__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.personal-projects__title {
  color: var(--color-black);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;

  .accent {
    color: var(--color-primary);
  }
}


/****************************/
/* 9. ** Skills **  */
/***************************/

.skills {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)),
    radial-gradient(ellipse 55% 50% at 90% 80%, rgba(27, 185, 94, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 8% 15%, rgba(27, 185, 94, 0.18) 0%, transparent 60%),
    url('assets/images/silver-alt.webp');
  background-color: var(--color-black);
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: center, center, center, center;
  position: relative;
  overflow: hidden;
  padding-block: 0 5rem;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  /* Blueprint grid */
  &::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(147, 197, 253, 0.065) 1px, transparent 1px),
      linear-gradient(90deg, rgba(147, 197, 253, 0.065) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 70%);
    mask-image: linear-gradient(to top, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
}

.skills__wrapper {
  position: relative;
  z-index: 1;
}

.skills__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.skills__title {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 0;
}

.skills .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

/*
 * Edge fade masks the cards themselves to transparent instead of painting a
 * solid-color gradient over them — that way whatever the section's actual
 * background is (the tinted photo, not a flat color) shows through exactly,
 * with no color-matching guesswork.
 */
.skills__track-wrapper {
  overflow: hidden;
  width: 100%;
  padding-block: 0.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-base);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10rem, black calc(100% - 10rem), transparent);
  mask-image: linear-gradient(to right, transparent, black 10rem, black calc(100% - 10rem), transparent);
}

.skills__track {
  display: flex;
  gap: var(--gap-base);
  width: max-content;
  animation: skills-scroll 35s linear infinite;
}

.skills__track--reverse {
  animation-name: skills-scroll-reverse;
  animation-duration: 40s;
}

@keyframes skills-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes skills-scroll-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.skills__card {
  color: var(--color-white);
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: center;
  font-weight: 500;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xs);
  cursor: default;

  img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    /* Brand-colored source SVGs desaturated to grayscale, keeping their
       original light/dark detail instead of flattening to one color.
       Contrast/brightness pushed up since saturated brand colors tend to
       land as flat mid-gray once desaturated. */
    filter: grayscale(1) contrast(1.4) brightness(1.4);
  }
}

/****************************/
/* 9. ** My Approach **  */
/***************************/

.approach {
  display: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)),
    radial-gradient(ellipse 55% 50% at 90% 80%, rgba(27, 185, 94, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 8% 15%, rgba(27, 185, 94, 0.18) 0%, transparent 60%),
    url('assets/images/silver-alt.webp');
  background-color: var(--color-black);
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: center, center, center, center;
  padding-block: 0 6rem;
  overflow: hidden;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  /* Blueprint grid */
  &::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(147, 197, 253, 0.065) 1px, transparent 1px),
      linear-gradient(90deg, rgba(147, 197, 253, 0.065) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 70%);
    mask-image: linear-gradient(to top, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
}

.approach__wrapper {
  position: relative;
  z-index: 1;
}

.approach__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.approach__title {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 4rem;
}

.approach__track {
  position: relative;
}

/* Dotted connector line */
.approach__line {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 3px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1.5px, transparent 1.5px);
  background-size: 10px 3px;
  background-repeat: repeat-x;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Traveling glow dot */
.approach__dot-traveler {
  position: absolute;
  top: 7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  animation: traveler-pulse 1.4s ease-in-out infinite;
}

@keyframes traveler-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0   rgba(200, 200, 200, 0.7),
      0 0 8px 2px rgba(200, 200, 200, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(200, 200, 200, 0),
      0 0 16px 5px rgba(200, 200, 200, 0.2);
  }
}

.approach__steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gap-base);
  position: relative;
  z-index: 1;
}

.approach__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  align-self: stretch;

  &.active {
    .approach__node {
      background: var(--color-primary);
      border-color: var(--color-primary);
      box-shadow: 0 0 0 4px rgba(200, 200, 200, 0.2);
    }

    .approach__card {
      opacity: 1;
      transform: translateY(0);
      background: rgba(0, 0, 0, 0.2);
      border-color: rgba(200, 200, 200, 0.35);
      box-shadow: 0 16px 40px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
  }
}

.approach__node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: background var(--duration-lg) ease, border-color var(--duration-lg) ease, box-shadow var(--duration-lg) ease;
}

/* Glass card */
.approach__card {
  margin-top: 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
  width: calc(100% - 1.5rem);
  flex: 1;
  opacity: 0.35;
  transform: translateY(8px);
  transition: opacity var(--duration-2xl) ease, transform var(--duration-2xl) ease, border-color var(--duration-2xl) ease, background var(--duration-2xl) ease;

  h3 {
    font-size: var(--fs-base);
    color: var(--color-white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
  }

  p {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    margin: 0;
  }
}

.approach__number {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

/* Mobile — vertical stack */
@media (max-width: 768px) {
  .approach__line,
  .approach__dot-traveler {
    display: none;
  }

  .approach__steps {
    flex-direction: column;
    gap: var(--gap-base);
  }

  .approach__step {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--gap-md);
  }

  .approach__card {
    opacity: 1;
    transform: none;
    width: 100%;
  }

  .approach__node {
    margin-top: 0.15rem;
    flex-shrink: 0;
  }
}

/****************************/
/* 10. ** Contact Us **  */
/***************************/

.contact {
  position: relative;
  background-color: var(--color-white);
}

.contact__wrapper {
  position: relative;
  margin-inline: auto;
  z-index: 1;
}

.contact__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 90ch;
  margin-inline: auto;
}

.contact__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact__title {
  color: var(--color-black);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;

  .accent {
    color: var(--color-primary);
  }
}

.contact__subtitle {
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-neutral-900);
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

.contact__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-base);
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: var(--color-white);
  text-decoration: none;
  transition: var(--duration-base) ease;

  &:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
  }
}

.contact__btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: rgba(255, 94, 26, 0.1);
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact__btn-label {
  font-size: var(--fs-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-black);
}

.contact__btn-arrow {
  color: var(--color-primary);
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.contact__divider {
  position: relative;
  width: 100%;
  max-width: 50rem;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;

  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translate(-50%, -50%);
  }
}

.contact__signature {
  display: flex;
  align-items: center;
  gap: var(--gap-base);
  text-align: left;
}

.contact__signature-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact__signature-text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3xs);

  p {
    margin-bottom: 0;
    font-size: var(--fs-sm);
    color: var(--color-neutral-400);
    font-weight: 300;
  }
}

.contact__signature-label {
  font-size: var(--fs-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-black);
}

@media (max-width: 768px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
    row-gap: 0rem;
    text-align: center;
  }

  .contact__content {
    align-items: center;
    row-gap: var(--gap-lg);
  }

  .contact__content a {
    margin-inline: auto;
  }

  .contact__btns {
    flex-direction: column;
    align-items: stretch;
  }

  .contact__signature {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 550px) {
  .contact__wrapper {
    /* overriding 6rem padding from container */
    padding-top: 4rem;
  }

  .contact__title {
    font-size: var(--fs-4xl);
    line-height: 1.1;
  }
}

/****************************/
/* ** About Me **          */
/***************************/

.inner-container {
  max-width: var(--max-w-content);
  margin-inline: auto;
  width: 100%;
}

.about-me-intro {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;

  /* Layer — blueprint grid lines, matching the front-page hero */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(147, 197, 253, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(147, 197, 253, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    pointer-events: none;
    z-index: 0;
  }

  /* Layer — decorative orange radial glow, bottom-left corner */
  &::after {
    content: "";
    position: absolute;
    width: 34vw;
    height: 34vw;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }
}

.about-me-education {
  background-color: var(--color-black);
  position: relative;
  overflow: hidden;

  &::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%23FAF8F1' fill-opacity='0.25'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    -webkit-mask-image:
      radial-gradient(ellipse 65% 65% at 0% 100%, black 0%, transparent 100%),
      radial-gradient(ellipse 55% 55% at 100% 0%, black 0%, transparent 100%);
    -webkit-mask-composite: add;
    mask-image:
      radial-gradient(ellipse 65% 65% at 0% 100%, black 0%, transparent 100%),
      radial-gradient(ellipse 55% 55% at 100% 0%, black 0%, transparent 100%);
    mask-composite: add;
    pointer-events: none;
    z-index: 0;
  }
}

.about-me-skills {
  background-color: var(--color-white);
  position: relative;
}

.about-me-intro__wrapper,
.about-me-skills__wrapper,
.about-me-education__wrapper {
  padding-block: 4rem;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* .inner-container (below) also sets padding-block-start at the same specificity;
   the compound selector here ensures this override always wins regardless of source order. */
.about-me-intro__wrapper.inner-container {
  padding-block-start: 7rem;

  @media (max-width: 1024px) {
    padding-block-start: 9rem;
  }

  @media (max-width: 500px) {
    padding-block-start: 8rem;
  }
}

.about-me-intro__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.about-me-intro__title {
  color: var(--color-white);
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 1.25rem;
}


.about-me-skills__eyebrow,
.about-me-education__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.about-me-skills__title,
.about-me-education__title {
  color: var(--color-black);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 1.25rem;
}

.about-me-education__title {
  color: var(--color-white);
}

.about-me-intro__body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  max-width: 70ch;
  margin-inline: auto;
  color: rgb(255, 255, 255);
  line-height: 1.6;
  font-size: var(--fs-md);
  font-weight: 300;

  strong {
    color: var(--color-primary);
    font-weight: 700;
  }
}

.about-me-intro__lead {
  font-size: var(--fs-xl);
  line-height: 1.5;
}

.about-me-skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  list-style: none;
  padding: 0;
  margin: 0;

  li {
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);

    &::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0.5px, transparent 0.5px);
      background-size: 4px 4px;
      pointer-events: none;
    }
  }
}

.about-me-education__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.about-me-education__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-primary);
}

.about-me-education__school {
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--fs-md);
}

.about-me-education__degree {
  color: var(--color-white);
  font-size: var(--fs-lg);
  font-weight: 500;
}

.about-me-education__dates {
  color: var(--color-white);
  font-size: var(--fs-md);
}

.about-me-work {
  background-color: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

.about-me-work__wrapper {
  padding-block: 4rem;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.about-me-work__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.about-me-work__title {
  color: var(--color-black);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 1.25rem;
}

.about-me-work__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3xl);
}

.about-me-work__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-primary);
}

.about-me-work__role {
  font-weight: 700;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--fs-md);
}

.about-me-work__company {
  color: var(--color-black);
  font-size: var(--fs-lg);
  font-weight: 500;
}

.about-me-work__dates {
  color: var(--color-black);
  font-size: var(--fs-md);
  margin-bottom: 0.5rem;
}

.about-me-work__duties {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-black);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.5;
  list-style: none;
  padding: 0;
  margin: 0;

  li {
    position: relative;
    padding-left: 1.25rem;

    &::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.55em;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
    }
  }
}

.about-me-work__note {
  color: var(--color-black);
  font-size: var(--fs-md);
  font-style: italic;
  margin-top: 0.35rem;
}

/****************************/
/* ** Single Project **    */
/***************************/

.single-project {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;

  /* Layer — blueprint grid lines, matching the front-page hero */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(147, 197, 253, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(147, 197, 253, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    pointer-events: none;
    z-index: 0;
  }

  /* Layer — decorative orange radial glow, bottom-left corner */
  &::after {
    content: "";
    position: absolute;
    width: 34vw;
    height: 34vw;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }
}

.single-project__wrapper {
  padding-block: 7rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-4xl);
  align-items: center;
  position: relative;
  z-index: 1;

  @media (max-width: 1024px) {
    padding-block-start: 9rem;
  }

  @media (max-width: 500px) {
    padding-block-start: 8rem;
  }
}

.single-project__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.single-project__category {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.single-project__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.single-project__body {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  line-height: 1.7;
  max-width: 60ch;

  strong {
    color: var(--color-white);
    font-weight: 700;
  }

  p {
    margin-bottom: 1rem;
  }
}

.single-project__btns {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.single-project__image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(59, 42, 26, 0.15);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 768px) {
  .single-project__wrapper {
    grid-template-columns: 1fr;
    gap: var(--gap-2xl);
  }

  .single-project__image {
    order: -1;
  }
}

/****************************/
/* ** Before & After **    */
/****************************/

.before-after {
  background-color: var(--color-black);
  position: relative;
  overflow: hidden;
}

.before-after__wrapper {
  padding-block: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.before-after__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.before-after__title {
  color: var(--color-neutral-100);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 1.25rem;
}

.before-after__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  width: 100%;
}

.before-after__figure {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(41, 29, 18, 0.25);

  img {
    width: 100%;
    height: auto;
    display: block;
  }

  &--scrolled .before-after__scroll-hint {
    opacity: 0;
  }
}

.before-after__figure-scroll {
  height: 420px;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;

  &::-webkit-scrollbar {
    width: 4px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }

  @media (max-width: 768px) {
    height: 300px;
  }
}

.before-after__scroll-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(26, 18, 12, 0.82));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.85rem;
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 10px 10px;
  transition: opacity var(--duration-xl) ease;

  span {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.7);
    animation: hint-fade 1.8s ease-in-out infinite;
  }
}

@keyframes hint-fade {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.before-after__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  z-index: 3;

  &--before {
    background: rgba(26, 18, 12, 0.85);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  &--after {
    background: var(--color-primary);
    color: var(--color-black);
    border: 1px solid var(--color-primary);
  }
}

@media (max-width: 600px) {
  .before-after__grid {
    grid-template-columns: 1fr;
  }
}

/****************************/
/* ** Projects Archive **  */
/***************************/

.projects {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;

  /* Layer — blueprint grid lines, matching the front-page hero */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(147, 197, 253, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(147, 197, 253, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    pointer-events: none;
    z-index: 0;
  }

  /* Layer — decorative orange radial glow, bottom-left corner */
  &::after {
    content: "";
    position: absolute;
    width: 34vw;
    height: 34vw;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
  }
}

.projects__wrapper {
  padding-block: 7rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;

  .projects-grid {
    width: 100%;
  }

  @media (max-width: 1024px) {
    padding-block-start: 9rem;
  }

  @media (max-width: 500px) {
    padding-block-start: 8rem;
  }
}

.projects__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.projects__title {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 1.25rem;
}

.projects__pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;

  .nav-links {
    display: flex;
    align-items: center;
    gap: var(--gap-2xs);
  }

  .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 5px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-white);
    background-color: transparent;
    transition: background-color var(--duration-sm) ease, color var(--duration-sm) ease;
    text-decoration: none;

    &:hover,
    &.current {
      background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
      color: var(--color-white);
    }
  }
}

/****************************/
/* ** Dot Texture Overlay ** */
/***************************/

.before-after::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%23FAF8F1' fill-opacity='0.25'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  -webkit-mask-image:
    radial-gradient(ellipse 65% 65% at 0% 100%, black 0%, transparent 100%),
    radial-gradient(ellipse 55% 55% at 100% 0%, black 0%, transparent 100%);
  -webkit-mask-composite: add;
  mask-image:
    radial-gradient(ellipse 65% 65% at 0% 100%, black 0%, transparent 100%),
    radial-gradient(ellipse 55% 55% at 100% 0%, black 0%, transparent 100%);
  mask-composite: add;
  pointer-events: none;
  z-index: 0;
}

/* ** Blueprint Grid — Recent Projects & Footer ** */
.recent-projects::after,
.site-footer__wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(147, 197, 253, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.065) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 70%);
  mask-image: linear-gradient(to top, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/****************************/
/* ** Decorative Blobs **  */
/***************************/

.recent-projects::before,
.personal-projects::before,
.before-after::before,
.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

/* Recent Projects */
.recent-projects::before {
  width: 60rem;
  height: 60rem;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.2) 0%, transparent 65%);
}


/* Before-After */
.before-after::before {
  width: 70rem;
  height: 70rem;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.15) 0%, transparent 65%);
}

/* Contact — black bg */
.contact::before {
  width: 65rem;
  height: 65rem;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.10) 0%, transparent 65%);
}

/****************************/
/** 11. Back to Top  **/
/***************************/
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  opacity: 0;
  transition: var(--duration-md) ease-in-out;

  &.back-to-top--visible {
    opacity: 1;
  }

  svg {
    color: var(--color-white);
    width: 18px;
    height: 18px;
    transform: rotate(180deg);
  }
}

.back-to-top__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background-color: color-mix(in srgb, var(--color-primary) 55%, transparent);
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  transition: var(--duration-md) ease-in-out;
  cursor: pointer;

  &:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
  }
}

/****************************/
/** 11. Footer  **/
/***************************/
.site-footer {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    width: 40vw;
    height: 40vw;
    bottom: -10%;
    right: 5%;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
  }
}

.site-footer__wrapper {
  width: 100%;
  background: transparent;
  padding-block: 5rem 2.5rem;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.site-footer__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap-3xl);
  color: var(--color-white);
}

/* ---- Column grid ---- */

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap-3xl);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  max-width: 24rem;

  .site-logo {
    max-width: 6rem;
  }
}

.site-footer__brand-text {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.site-footer__socials {
  display: flex;
  gap: var(--gap-sm);
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  transition: var(--duration-base) ease;

  &:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(255, 94, 26, 0.08);
  }
}

.site-footer__col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.75rem;

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
  }
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm-alt);
  margin: 0;
  padding: 0;

  a {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-2xs);
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: color var(--duration-base) ease;

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

.site-footer__list-chevron {
  flex-shrink: 0;
  color: var(--color-primary);
}

.site-footer__tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xs);
}

.site-footer__tech-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-2xs);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.8);

  i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
  }
}

/* ---- CTA banner ---- */

.footer-cta {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem 2.5rem;
}

.footer-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-cta-text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-3xs);
  flex: 1;

  p {
    margin-bottom: 0;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
  }
}

.footer-cta-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
}

.footer-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  background: transparent;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: var(--duration-base) ease;

  &:hover {
    background: var(--color-primary);
    color: var(--color-black);
  }
}

/* ---- Divider + bottom bar ---- */

.site-footer__divider {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translate(-50%, -50%);
  }
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.site-footer__copyright {
  margin-bottom: 0;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__legal {
  display: flex;
  gap: var(--gap-lg);

  a {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--duration-base) ease;

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

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--gap-2xl);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .site-footer__wrapper {
    padding-block: 4rem 2rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/****************************/
/** 12. Inside Pages  **/
/***************************/

/* Featured image banner at the top of single posts, archives, search & 404 */
.featured-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 30rem;
  background-color: var(--color-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: var(--gutter);

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
  }

  @media (max-width: 1024px) {
    min-height: 18rem;
  }

}

.featured-image-title {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

/* Grey background at the top of inside pages */
.grey-background {
  overflow: hidden;
  position: relative;
  /* ensure ::before is positioned correctly */

  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    aspect-ratio: 5.45/1;
    min-height: 27.25rem;
    width: 100%;
    background-color: var(--color-neutral-200);
    z-index: 0;

    /* Tablet breakpoint (adjust as needed) */
    @media (max-width: 1024px) {
      min-height: 28.25rem;
    }

    /* Mobile breakpoint (adjust as needed) */
    @media (max-width: 500px) {
      min-height: 36rem;
      aspect-ratio: 3/4.05;
    }
  }
}

/* Scrolled */
.site-header--scrolled {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: none;
  backdrop-filter: blur(8px);
}

.inner-container p {
  padding: 0;
  margin: 0 0 1rem 0;
}

.inner-container {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 5rem;

  @media (max-width: 768px) {
    padding: 2rem;
  }

  @media (max-width: 500px) {
    padding: 2rem;
  }
}

/* Main content section — matches the dark treatment used across inside pages */
.content {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;

  /* Layer — blueprint grid lines, matching the front-page hero */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(147, 197, 253, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(147, 197, 253, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    mask-image: linear-gradient(45deg, black 15%, transparent 55%);
    pointer-events: none;
    z-index: 0;
  }

  /* Layer — decorative orange radial glow, bottom-left corner */
  &::after {
    content: "";
    position: absolute;
    width: 34vw;
    height: 34vw;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  .content__wrapper {
    position: relative;
    z-index: 1;
  }

  .entry-content {
    &,
    p,
    li {
      color: var(--color-neutral-100);
    }

    a {
      color: var(--color-primary);
    }

    h1,
    h2,
    h3,
    h4 {
      color: var(--color-white);
    }
  }
}

.entry-header {
  display: none;
}

/* === Coming Soon (blog archive placeholder) === */
.coming-soon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 32rem;
}

.coming-soon__wrapper {
  padding-block: 9rem 6rem;
  text-align: center;

  @media (max-width: 1024px) {
    padding-block-start: 11rem;
  }

  @media (max-width: 500px) {
    padding-block-start: 10rem;
  }
}

.coming-soon__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.coming-soon__title {
  color: var(--color-white);
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.coming-soon__subtitle {
  max-width: 46ch;
  margin-inline: auto!important;
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

/* Breadcrumb */
.breadcrumb {
  padding-block: 3rem 0;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap-base);

  svg {
    color: var(--color-black);
    transform: rotate(270deg);
  }

  a {
    color: var(--color-black);
    text-decoration: none;
    transition: color var(--duration-sm) ease;
    font-size: var(--fs-sm);

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

/* Kadence */
.contact-map {
  height: 100% !important;
}

/* Edit Button */
.post-edit-link {
  color: var(--color-white) !important;
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: fit-content;
  padding: 0.5em 1em;
  margin: 1em;
  text-decoration: none !important;
  background-color: var(--orange);
  transition: var(--duration-md) ease-in-out;
  z-index: 2;
  display: none;
}

/* === 404 Error Page === */
.upcoming-events-wrapper {
  position: relative;
  background-color: var(--color-white);
}

.error-page {
  text-align: center;
}

/* === Loading Screen === */
/**
 * Only rendered on the home page (via PHP is_front_page() check).
 * Covers the full viewport above everything (z-index 100000).
 * JS drives the bar width and removes .is-loading from body when done.
 */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background-color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-4xl) ease, visibility var(--duration-4xl) ease;

  &--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.site-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-2xl);
  width: min(280px, 60vw);
}

.site-loader__logo {
  width: 100%;
  max-width: 120px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-3xl) ease, transform var(--duration-3xl) ease;

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

.site-loader__bar-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.site-loader__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
  border-radius: 2px;
  transition: width var(--duration-xl) var(--ease-out-expo);
}

/* Prevent flash of content while loader is active */
body.is-loading {
  overflow: hidden;
}

/**
 * === Custom Cursor ===
 *
 * Two elements: .cursor__dot (5px filled circle, snaps to mouse) and
 * .cursor__ring (30px ring, follows with JS lerp lag — see initCursor()).
 *
 * mix-blend-mode: difference makes the white cursor invert against the
 * page background automatically — appears black on light sections,
 * white on dark sections — without any JS color switching.
 *
 * cursor: none is scoped to body.has-custom-cursor (added by JS) so
 * touch/pointer devices that never run initCursor() keep the native
 * cursor. The @media (hover:hover) guard adds a second layer of safety.
 */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor [role="button"],
  body.has-custom-cursor input,
  body.has-custom-cursor select,
  body.has-custom-cursor textarea,
  body.has-custom-cursor label {
    cursor: none !important;
  }
}

.cursor__dot {
  width: 5px;
  height: 5px;
  background: var(--color-white);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--duration-md) ease, transform var(--duration-fast) ease;
  mix-blend-mode: difference;
}

.cursor__ring {
  width: 30px;
  height: 30px;
  border: 1.5px solid white;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width var(--duration-base) ease, height var(--duration-base) ease, opacity var(--duration-md) ease;
  mix-blend-mode: difference;

  &.cursor__ring--hovered {
    width: 48px;
    height: 48px;
    border-color: white;
  }
}

.cursor__dot--visible,
.cursor__ring--visible {
  opacity: 1;
}

.cursor__ripple {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(200, 200, 200, 0.7);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
}


/* === Text Selection === */
::selection {
  background-color: rgba(255, 94, 26, 0.35);
  color: inherit;
}

/* === Keyframes === */
/* Menu bob */
@keyframes menu-bob {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-4px); }
  50%  { transform: translateY(-6px); }
  75%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* Fade Up */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

