/* =========================================================
   RAPIDO MULTI MEDIA
   STREAMLINED MASTER STYLESHEET
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --panel: #16161a;
  --line: #2b2b2f;

  --text: #f2f1ee;
  --muted: #9d9991;

  --orange: #f26b1d;
  --red: #e5102a;
  --purple: #3a0d4f;

  --max: 1500px;
  --sidebar: 330px;

  --section-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(70px, 9vw, 140px);
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;

  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================================================
   HEADER + NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;

  z-index: 1000;

  display: grid;
  grid-template-columns: 210px 1fr;

  align-items: center;

  gap: 28px;

  padding:
    18px
    clamp(20px, 4vw, 64px);

  background:
    rgba(10, 10, 11, 0.95);

  border-bottom:
    1px solid var(--line);

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

.brand img {
  width: 190px;
  height: auto;
}

.main-nav {
  display: flex;

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

  gap:
    clamp(12px, 2vw, 30px);

  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 0;

  text-decoration: none;
  text-transform: uppercase;

  font-size: 18px;

  letter-spacing: 0.12em;

  border-bottom:
    2px solid transparent;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    padding-left 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);

  border-color:
    var(--orange);
}

.main-nav span {
  color: var(--muted);

  font-size: 17px;

  margin-left: 4px;
}

.menu-toggle {
  display: none;

  padding: 8px 12px;

  background: transparent;

  border:
    1px solid var(--line);

  color: var(--text);

  cursor: pointer;
}


/* =========================================================
   GENERAL SECTIONS + TYPOGRAPHY
   ========================================================= */

.page-section {
  width: 100%;
  max-width: var(--max);

  margin: 0 auto;

  padding:
    var(--section-y)
    var(--section-x);

  border-bottom:
    1px solid var(--line);

  scroll-margin-top: 100px;
}

.eyebrow,
.kicker,
.work-card p {
  font-family:
    "Courier New",
    monospace;

  text-transform: uppercase;

  letter-spacing:
    0.12em;
}

.eyebrow {
  margin:
    0 0 18px;

  color: var(--muted);

  font-size: 11px;
}

.kicker {
  margin:
    0 0 18px;

  color: var(--orange);

  font-size: 12px;
}

.about-copy h1 {
  max-width: 10ch;

  margin: 0;

  font-size:
    clamp(48px, 7vw, 104px);

  line-height: 0.95;

  letter-spacing:
    -0.055em;
}

.section-heading {
  margin-bottom: 50px;

  text-align: left;
}

.section-heading h2 {
  max-width: 13ch;

  margin: 0;

  font-size:
    clamp(42px, 6vw, 86px);

  line-height: 0.95;

  letter-spacing:
    -0.055em;
}

.intro {
  max-width: 700px;

  margin:
    28px 0 0;

  color: #b6b3ac;

  font-size:
    clamp(16px, 1.5vw, 21px);

  line-height: 1.7;
}


/* =========================================================
   STANDARD WORK GRID
   ========================================================= */

.work-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 28px;
}

.work-card {
  position: relative;

  padding-top: 14px;

  border-top:
    1px solid var(--line);

  overflow: visible;
}

.work-card h3 {
  margin:
    14px 0 5px;

  font-size: 22px;
}

.work-card p {
  margin: 0;

  color: var(--muted);

  font-size: 10px;
}


/* =========================================================
   VIDEO + AUDIO
   GLOW + SHINE + FLOAT
   ========================================================= */

.work-card:not(.design-card) > a {
  position: relative;

  display: block;

  width: 100%;

  aspect-ratio:
    16 / 9;

  overflow: hidden;
}

.work-card:not(.design-card) > a img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  cursor: pointer;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.work-card:not(.design-card) > a::after {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: -60%;

  width: 35%;

  background:
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255,255,255,0.05) 25%,
      rgba(255,255,255,0.75) 50%,
      rgba(255,255,255,0.05) 75%,
      transparent 100%
    );

  transform:
    skewX(-20deg);

  opacity: 0;

  z-index: 5;

  pointer-events: none;
}

.work-card:not(.design-card):hover {
  animation:
    portfolioFloat
    2s
    ease-in-out
    infinite;
}

.work-card:not(.design-card):hover > a {
  box-shadow:
    0 0 10px rgba(255,25,25,1),
    0 0 22px rgba(255,25,25,0.90),
    0 0 40px rgba(255,25,25,0.65),
    0 0 65px rgba(255,25,25,0.40);
}

.work-card:not(.design-card):hover > a img {
  transform:
    scale(1.025);

  filter:
    brightness(1.18)
    saturate(1.1);
}

.work-card:not(.design-card):hover > a::after {
  animation:
    portfolioShine
    0.75s
    ease-out
    forwards;
}

@keyframes portfolioFloat {
  0%,
  100% {
    transform:
      translateY(-6px);
  }

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

@keyframes portfolioShine {
  0% {
    left: -60%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    left: 130%;
    opacity: 0;
  }
}


/* =========================================================
   ABOUT
   SAME SPACING AS ALL OTHER SECTIONS
   TEXT + PORTRAIT MATCH HEIGHT
   ========================================================= */

#about {
  position: relative;

  max-width: none;

  min-height: 100vh;

  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(320px, 0.85fr);

  align-items: stretch;

  gap:
    clamp(40px, 6vw, 90px);

  overflow: hidden;

  padding-left:
    var(--section-x);

  padding-right:
    var(--section-x);
}

.about-background-video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  z-index: 0;

  pointer-events: none;
}

.about-video-overlay {
  position: absolute;

  inset: 0;

  background:
    rgba(0,0,0,0.12);

  z-index: 1;

  pointer-events: none;
}

.about-copy,
.about-portrait {
  position: relative;

  z-index: 2;

  align-self: stretch;

  min-height: 0;

  border-radius: 28px;
}

.about-copy {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding:
    40px 45px;

  background:
    rgba(10,10,12,0.58);

  backdrop-filter:
    blur(7px);

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

  box-shadow:
    0 15px 40px
    rgba(0,0,0,0.25);
}

.about-portrait {
  margin: 0;

  overflow: hidden;

  background: transparent;

  box-shadow:
    0 15px 45px
    rgba(0,0,0,0.35);
}

.about-portrait img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position:
    center top;
}


/* =========================================================
   DESIGN
   SHIMMERY BLACK + RED / ORANGE / DARK PURPLE
   ========================================================= */

.design-card {
  text-align: center;

  overflow: visible;
}

.design-frame {
  position: relative;

  display: block;

  width: 300px;
  height: 300px;

  max-width: 100%;

  margin:
    0 auto 25px;

  border-radius: 50%;

  overflow: visible;

  text-decoration: none;

  cursor: pointer;

  z-index: 1;
}

.design-frame::before,
.design-frame::after {
  content: "";

  position: absolute;

  border-radius: 50%;

  opacity: 0;

  pointer-events: none;
}

.design-frame::before {
  inset: -16px;

  background:
    conic-gradient(
      from 0deg,
      #ff1a00 0deg,
      #ff1a00 75deg,
      #ff6500 110deg,
      #ff8a00 170deg,
      var(--purple) 205deg,
      #511260 235deg,
      #ff4a00 285deg,
      #ff1a00 360deg
    );

  filter:
    blur(15px);

  z-index: 1;
}

.design-frame::after {
  inset: -6px;

  background:
    conic-gradient(
      from 0deg,
      #ff1a00,
      #ff6a00,
      var(--purple),
      #ff7600,
      #ff1a00
    );

  z-index: 2;
}

.design-inner {
  position: absolute;

  inset: 4px;

  display: flex;

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

  padding: 30px;

  border-radius: 50%;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 35% 28%,
      #323239 0%,
      #18181d 30%,
      #0b0b0e 62%,
      #020203 100%
    );

  box-shadow:
    inset 0 0 18px rgba(255,255,255,0.08),
    inset 0 0 45px rgba(85,45,110,0.08),
    inset 0 -18px 45px rgba(0,0,0,0.75);

  z-index: 3;
}

.design-inner::after {
  content: "";

  position: absolute;

  top: -20%;
  left: -70%;

  width: 42%;
  height: 140%;

  background:
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255,255,255,0.015) 25%,
      rgba(255,255,255,0.14) 50%,
      rgba(255,255,255,0.025) 75%,
      transparent 100%
    );

  transform:
    skewX(-20deg);

  z-index: 4;

  pointer-events: none;
}

.design-inner img {
  position: relative;

  z-index: 5;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  filter:
    drop-shadow(
      0 5px 10px
      rgba(0,0,0,0.45)
    );

  transition:
    transform 0.45s ease,
    filter 0.35s ease;
}

.design-placeholder {
  position: relative;

  z-index: 5;

  color:
    rgba(255,255,255,0.42);

  font-family:
    "Courier New",
    monospace;

  font-size: 13px;

  font-weight: 700;

  letter-spacing:
    0.15em;
}

.design-frame:hover {
  animation:
    designFloat
    2s
    ease-in-out
    infinite;
}

.design-frame:hover::before,
.design-frame:hover::after {
  opacity: 1;

  animation:
    designRingSpin
    2.4s
    linear
    infinite;
}

.design-frame:hover .design-inner::after {
  animation:
    designShimmer
    1.4s
    ease-in-out
    infinite;
}

.design-frame:hover .design-inner img {
  transform:
    scale(1.28);

  filter:
    brightness(1.12)
    saturate(1.08)
    drop-shadow(
      0 6px 12px
      rgba(0,0,0,0.5)
    );
}

@keyframes designRingSpin {
  from {
    transform:
      rotate(0deg);
  }

  to {
    transform:
      rotate(360deg);
  }
}

@keyframes designShimmer {
  0% {
    left: -70%;
  }

  100% {
    left: 130%;
  }
}

@keyframes designFloat {
  0%,
  100% {
    transform:
      translateY(-5px);
  }

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


/* =========================================================
   SPECIAL DESIGN ITEM
   FILLS CIRCLE + EXTERNAL WEBSITE
   ========================================================= */

.design-inner.design-fill {
  padding: 0;
}

.design-inner.design-fill img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius: 50%;
}

.design-frame:hover .design-inner.design-fill img {
  transform:
    scale(1.10);
}


/* =========================================================
   PHOTOGRAPHY
   FLOAT + VIBRANCE
   ========================================================= */

#photo {
  background: #070708;
}

.photo-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.photo-item {
  display: block;

  width: 100%;

  aspect-ratio:
    4 / 3;

  object-fit: cover;
  object-position: center;

  cursor: zoom-in;

  transition:
    filter 0.35s ease;
}

.photo-item.photo-top {
  object-position:
    center 2%;
}

.photo-item:hover {
  filter:
    saturate(1.45)
    contrast(1.08)
    brightness(1.08);

  animation:
    photoFloat
    2s
    ease-in-out
    infinite;
}

@keyframes photoFloat {
  0%,
  100% {
    transform:
      translateY(-4px);
  }

  50% {
    transform:
      translateY(-9px);
  }
}


/* =========================================================
   PHOTOGRAPHY LIGHTBOX
   ========================================================= */

.photo-lightbox {
  position: fixed;

  inset: 0;

  display: flex;

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

  padding: 30px;

  background:
    rgba(0,0,0,0.95);

  backdrop-filter:
    blur(7px);

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

  z-index: 10000;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.photo-lightbox.active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

.photo-lightbox > img {
  width: auto;
  height: auto;

  max-width:
    calc(100vw - 180px);

  max-height: 92vh;

  object-fit: contain;

  z-index: 10001;

  box-shadow:
    0 20px 70px
    rgba(0,0,0,0.85);
}


/* =========================================================
   DESIGN LIGHTBOX
   ONLY DESIGN ITEMS USING design-lightbox-link
   ========================================================= */

.design-lightbox {
  position: fixed;

  inset: 0;

  display: flex;

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

  padding: 40px;

  background:
    rgba(0,0,0,0.43);

  backdrop-filter:
    blur(18px)
    brightness(0.67);

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

  z-index: 11000;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.design-lightbox.active {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}

.design-lightbox > img {
  display: block;

  width: auto;
  height: auto;

  max-width: 94vw;
  max-height: 92vh;

  object-fit: contain;

  opacity: 0;

  transform:
    scale(0.85);

  filter:
    drop-shadow(
      0 25px 60px
      rgba(0,0,0,0.8)
    );

  transition:
    transform 0.4s ease,
    opacity 0.35s ease;
}

.design-lightbox.active > img {
  opacity: 1;

  transform:
    scale(1);
}


/* =========================================================
   SHARED LIGHTBOX CONTROLS
   ========================================================= */

.lightbox-close {
  position: absolute;

  top: 20px;
  right: 25px;

  width: 50px;
  height: 50px;

  display: flex;

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

  background:
    rgba(0,0,0,0.5);

  color: #ffffff;

  border:
    1px solid
    rgba(255,255,255,0.25);

  border-radius: 50%;

  font-size: 34px;

  cursor: pointer;

  z-index: 11003;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.lightbox-close:hover {
  color: var(--orange);

  border-color:
    var(--orange);

  transform:
    scale(1.1);
}

.lightbox-nav {
  position: absolute;

  top: 50%;

  transform:
    translateY(-50%);

  width: 60px;
  height: 80px;

  display: flex;

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

  background:
    rgba(0,0,0,0.45);

  color: #ffffff;

  border:
    1px solid
    rgba(255,255,255,0.18);

  border-radius: 12px;

  font-size: 42px;

  cursor: pointer;

  z-index: 10003;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}

.lightbox-nav:hover {
  background:
    rgba(229,16,42,0.8);

  transform:
    translateY(-50%)
    scale(1.08);
}

.lightbox-counter {
  position: absolute;

  bottom: 20px;
  left: 50%;

  transform:
    translateX(-50%);

  padding:
    8px 14px;

  background:
    rgba(0,0,0,0.55);

  color:
    rgba(255,255,255,0.85);

  border-radius: 20px;

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;

  letter-spacing:
    0.12em;

  z-index: 10003;
}


/* =========================================================
   CONTACT
   ========================================================= */

#contact {
  min-height: 600px;

  text-align: left;
}

.contact-info {
  display: flex;

  gap: 60px;

  margin:
    35px 0;

  flex-wrap: wrap;

  color:
    rgba(255,255,255,0.8);
}

.contact-info p {
  margin: 0;
}

.contact-info strong {
  color: #ffffff;

  font-size: 13px;

  text-transform: uppercase;

  letter-spacing:
    0.12em;
}

.contact-buttons {
  display: flex;

  align-items: center;

  gap: 25px;

  margin-top: 35px;

  flex-wrap: wrap;
}

.contact-action {
  display: inline-flex;

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

  min-width: 190px;

  padding:
    18px 35px;

  background:
    var(--red);

  color: #ffffff;

  text-decoration: none;
  text-transform: uppercase;

  font-size: 15px;

  font-weight: 700;

  letter-spacing:
    0.10em;

  border:
    1px solid
    var(--red);

  border-radius: 14px;

  cursor: pointer;

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.contact-action:hover {
  background:
    #ef1832;

  filter:
    brightness(1.15)
    saturate(1.1);

  box-shadow:
    0 0 10px rgba(255,25,25,1),
    0 0 22px rgba(255,25,25,0.90),
    0 0 40px rgba(255,25,25,0.65),
    0 0 65px rgba(255,25,25,0.40);

  animation:
    contactFloat
    2s
    ease-in-out
    infinite;
}

@keyframes contactFloat {
  0%,
  100% {
    transform:
      translateY(-6px);
  }

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


/* =========================================================
   FOOTER
   ========================================================= */

@media (min-width: 100px) {

  .site-footer {
    display: flex;

    flex-direction: row;
    align-items: center;
    justify-content: left;

    gap: 18px;

    text-align: left;
  }

  .site-footer img {
    display: flex;

    width: 120px;

    margin: 18px;
  }

  .site-footer p {
    width: auto;

    margin: 19px;

    text-align: right;
  }

}

/* =========================================================
   DESKTOP ONLY — LEFT SIDEBAR
   ========================================================= */

@media (min-width: 1101px) {

  .site-header {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width:
      var(--sidebar);

    height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding:
      38px 28px;

    background:
      rgba(8,8,10,0.96);

    border-right:
      1px solid var(--line);

    border-bottom: none;

    backdrop-filter:
      blur(16px);

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

  .brand {
    display: block;

    width: 100%;

    margin-bottom: 60px;
  }

  .brand img {
    width: 170px;
  }

  .main-nav {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 4px;

    flex-wrap: nowrap;
  }

  .main-nav a {
    width: 100%;

    display: flex;

    justify-content: space-between;

    padding:
      14px 4px;

    border-bottom:
      1px solid
      rgba(255,255,255,0.08);
  }

  .main-nav a:hover,
  .main-nav a.active {
    padding-left: 10px;

    border-bottom-color:
      rgba(242,107,29,0.55);
  }

  .main-nav span {
    margin-left: auto;

    color:
      rgba(255,255,255,0.32);
  }

  .main-nav a.active span {
    color: var(--orange);
  }

  .menu-toggle {
    display: none;
  }

  main {
    width:
      calc(100% - var(--sidebar));

    margin-left:
      var(--sidebar);
  }

  .page-section {
    max-width: none;
  }

  #about {
    width: 100%;

    margin: 0;
  }

  .site-footer {
    width:
      calc(100% - var(--sidebar));

    max-width: none;

    margin-left:
      var(--sidebar);
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

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

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;

    grid-column:
      1 / -1;

    flex-direction: column;

    align-items: flex-start;

    justify-content: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  #about {
    grid-template-columns:
      1fr;

    min-height: auto;

    gap: 35px;
  }

  .about-copy,
  .about-portrait {
    min-height: 0;
  }

  .about-portrait {
    height:
      min(70vh, 650px);
  }

  .work-grid,
  .photo-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 580px) {

  .brand img {
    width: 150px;
  }

  .work-grid,
  .photo-grid {
    grid-template-columns:
      1fr;
  }

  .about-copy h1,
  .section-heading h2 {
    font-size: 44px;
  }

  .about-copy {
    padding:
      30px 26px;

    border-radius: 20px;
  }

  .about-portrait {
    height: 500px;
  }

  .design-frame {
    width: 240px;
    height: 240px;
  }

  .photo-lightbox,
  .design-lightbox {
    padding: 10px;
  }

  .photo-lightbox > img {
    max-width: 96vw;
    max-height: 88vh;
  }

  .design-lightbox > img {
    max-width: 96vw;
    max-height: 86vh;
  }

  .lightbox-nav {
    width: 44px;
    height: 60px;

    font-size: 30px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  .contact-info {
    flex-direction: column;

    gap: 20px;
  }

  .contact-buttons {
    flex-direction: column;

    align-items: flex-start;
  }

  .contact-action {
    width: 100%;

    max-width: 300px;
  }

  .site-footer {
    align-items: flex-start;

    gap: 24px;

    flex-direction: column;
  }
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

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

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    scroll-behavior:
      auto !important;
  }
}
/* =========================================================
   DESIGN CIRCLE WITH LOOPING VIDEO
   ========================================================= */

.design-inner.design-video {
  padding: 0;
}

.design-inner.design-video video {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius: 50%;

  position: relative;
  z-index: 5;

  transition:
    transform 0.45s ease,
    filter 0.35s ease;
}


/* MATCH THE OTHER DESIGN HOVER EFFECT */

.design-frame:hover .design-inner.design-video video {
  transform: scale(1.12);

  filter:
    brightness(1.12)
    saturate(1.12);
}
/* =========================================================
   CONTACT SECTION — VIDEO BACKGROUND
   ========================================================= */

.contact-section {
  position: relative;

  min-height: 750px;

  display: flex;

  align-items: center;

  overflow: hidden;

  isolation: isolate;
}


/* Background video */

.contact-background-video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  z-index: -2;

  pointer-events: none;
}


/* Darken the video */

.contact-video-overlay {
  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, 0.62);

  z-index: -1;

  pointer-events: none;
}


/* Contact content */

.contact-content {
  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 850px;

  padding:
    clamp(35px, 5vw, 70px);

  background:
    rgba(8, 8, 10, 0.48);

  border:
    1px solid
    rgba(255,255,255,0.08);

  border-radius: 28px;

  backdrop-filter:
    blur(5px);

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

  box-shadow:
    0 25px 70px
    rgba(0,0,0,0.4);
}


/* Contact heading */

.contact-content h2 {
  max-width: 800px;

  margin: 0;

  font-size:
    clamp(44px, 6vw, 82px);

  line-height: 0.95;

  letter-spacing:
    -0.055em;
}


/* Contact links */

.contact-info a {
  color: #ffffff;

  text-decoration: none;

  transition:
    color 0.25s ease;
}

.contact-info a:hover {
  color: var(--orange);
}


/* Make the buttons float/glow like the rest */

.contact-action {
  position: relative;

  overflow: hidden;
}

.contact-action::after {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: -60%;

  width: 35%;

  background:
    linear-gradient(
      110deg,
      transparent,
      rgba(255,255,255,0.55),
      transparent
    );

  transform:
    skewX(-20deg);

  opacity: 0;

  pointer-events: none;
}

.contact-action:hover::after {
  animation:
    contactShine
    0.8s
    ease-out
    forwards;
}

@keyframes contactShine {

  0% {
    left: -60%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    left: 130%;
    opacity: 0;
  }

}


/* =========================================================
   SHARED YOUTUBE LIGHTBOX
   VIDEO + AUDIO / SOUND
   ========================================================= */

.youtube-lightbox-link {
  cursor: pointer;
}

.youtube-lightbox {
  position: fixed;
  inset: 0;

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

  padding: 30px;

  background: rgba(0, 0, 0, 0.38);

  backdrop-filter:
    blur(16px)
    brightness(0.72);

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

  z-index: 12000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.youtube-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.youtube-lightbox-window {
  position: relative;

  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;

  background: #000;

  border-radius: 18px;
  overflow: hidden;

  box-shadow:
    0 25px 90px rgba(0,0,0,0.65),
    0 0 30px rgba(255,255,255,0.10);

  transform: scale(0.86);
  opacity: 0;

  transition:
    transform 0.4s ease,
    opacity 0.35s ease;
}

.youtube-lightbox.active .youtube-lightbox-window {
  transform: scale(1);
  opacity: 1;
}

.youtube-lightbox-window iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;
}

.youtube-lightbox-close {
  position: absolute;

  top: 22px;
  right: 28px;

  width: 48px;
  height: 48px;

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

  padding: 0;

  background: rgba(0,0,0,0.62);

  color: #fff;

  border:
    1px solid
    rgba(255,255,255,0.30);

  border-radius: 50%;

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  z-index: 12002;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.youtube-lightbox-close:hover {
  color: var(--orange);

  border-color: var(--orange);

  background: rgba(0,0,0,0.86);

  transform: scale(1.08);
}

@media (max-width: 700px) {

  .youtube-lightbox {
    padding: 14px;
  }

  .youtube-lightbox-window {
    width: 96vw;
    border-radius: 12px;
  }

  .youtube-lightbox-close {
    top: 12px;
    right: 12px;

    width: 42px;
    height: 42px;

    font-size: 26px;
  }

}


/* =========================================================
   MOBILE SECTION ACCORDION
   ABOUT stays fully open.
   VIDEO / DESIGN / PHOTO / SOUND collapse on phones.
   ========================================================= */

.mobile-section-toggle {
  display: none;
}

@media (max-width: 700px) {

  /*
    Collapse the Video / Design / Photo / Sound sections into compact rows.
    ABOUT is not given .mobile-accordion-section, so it stays unchanged.
  */

  .mobile-accordion-section {
    min-height: 0;
    padding:
      0
      var(--section-x);

    border-bottom:
      1px solid
      rgba(255,255,255,0.12);

    scroll-margin-top: 80px;
  }

  /*
    Hide everything except the mobile section button
    until that section is opened.
  */

  .mobile-accordion-section:not(.mobile-open)
  > :not(.mobile-section-toggle) {
    display: none !important;
  }

  .mobile-accordion-section:not(.mobile-open) {
    min-height: 0 !important;
  }

  /*
    Section button
  */

  .mobile-section-toggle {
    position: relative;
    z-index: 20;

    width: 100%;

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

    gap: 20px;

    padding:
      24px
      2px;

    margin: 0;

    background:
      transparent;

    color:
      var(--text);

    border: 0;

    font-family:
      Arial,
      Helvetica,
      sans-serif;

    font-size:
      clamp(24px, 7vw, 34px);

    font-weight: 700;

    line-height: 1;

    letter-spacing:
      -0.035em;

    text-align: left;

    cursor: pointer;

    transition:
      color 0.25s ease,
      text-shadow 0.25s ease,
      transform 0.25s ease;
  }

  /*
    Thin red glow under the row.
  */

  .mobile-section-toggle::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 12px;

    height: 1px;

    background:
      linear-gradient(
        90deg,
        transparent,
        rgba(229,16,42,0.35),
        transparent
      );

    opacity: 0.45;

    transition:
      opacity 0.25s ease,
      box-shadow 0.25s ease;
  }

  .mobile-section-toggle:hover,
  .mobile-section-toggle:focus-visible,
  .mobile-accordion-section.mobile-open
  > .mobile-section-toggle {
    color:
      #ff3348;

    text-shadow:
      0 0 8px rgba(229,16,42,0.65),
      0 0 18px rgba(229,16,42,0.34);
  }

  .mobile-section-toggle:hover::after,
  .mobile-section-toggle:focus-visible::after,
  .mobile-accordion-section.mobile-open
  > .mobile-section-toggle::after {
    opacity: 1;

    box-shadow:
      0 0 8px rgba(229,16,42,0.75),
      0 0 18px rgba(229,16,42,0.35);
  }

  .mobile-section-toggle:focus-visible {
    outline:
      1px solid
      rgba(229,16,42,0.8);

    outline-offset: 5px;
  }

  /*
    + becomes ×-like when open.
  */

  .mobile-toggle-icon {
    flex:
      0 0 auto;

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

    width: 36px;
    height: 36px;

    color:
      var(--red);

    font-size:
      32px;

    font-weight: 300;

    line-height: 1;

    text-shadow:
      0 0 10px rgba(229,16,42,0.45);

    transform:
      rotate(0deg);

    transition:
      transform 0.3s ease,
      color 0.25s ease,
      text-shadow 0.25s ease;
  }

  .mobile-accordion-section.mobile-open
  .mobile-toggle-icon {
    transform:
      rotate(45deg);

    color:
      #ff4659;

    text-shadow:
      0 0 12px rgba(229,16,42,0.75);
  }

  /*
    Open section spacing.
  */

  .mobile-accordion-section.mobile-open {
    padding-bottom:
      58px;
  }

  .mobile-accordion-section.mobile-open
  > .section-heading {
    margin-top:
      28px;
  }

  /*
    CONTACT has a different internal structure.
  */

  .contact-section.mobile-open
  > .contact-content {
    margin-top:
      28px;
  }

  /*
    Reveal animation for the content.
  */

  .mobile-accordion-section.mobile-open
  > :not(.mobile-section-toggle) {
    animation:
      mobileSectionReveal
      0.38s
      ease
      both;
  }

  @keyframes mobileSectionReveal {

    from {
      opacity: 0;
      transform:
        translateY(-10px);
    }

    to {
      opacity: 1;
      transform:
        translateY(0);
    }

  }

}


/* Reduced motion */
@media
(prefers-reduced-motion: reduce) {

  .mobile-section-toggle,
  .mobile-toggle-icon {
    transition: none;
  }

  .mobile-accordion-section.mobile-open
  > :not(.mobile-section-toggle) {
    animation: none;
  }

}


/* =========================================================
   MOBILE CONTACT + FOOTER CENTERING
   Contact stays fully open on phones.
   ========================================================= */

@media (max-width: 700px) {

  /* CONTACT — always visible, centered */
  #contact {
    min-height: 650px;

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

    padding:
      clamp(60px, 12vw, 90px)
      var(--section-x);

    text-align: center;
  }

  #contact .contact-content {
    width: min(100%, 620px);

    margin:
      0 auto;

    padding:
      clamp(30px, 8vw, 48px)
      clamp(22px, 6vw, 38px);

    text-align: center;
  }

  #contact .contact-content h2 {
    margin:
      0 auto;

    text-align: center;
  }

  #contact .contact-content .intro {
    margin:
      28px auto 0;

    text-align: center;
  }

  #contact .contact-info {
    justify-content: center;
    align-items: center;

    text-align: center;
  }

  #contact .contact-info p {
    text-align: center;
  }

  #contact .contact-buttons {
    justify-content: center;
    align-items: center;

    margin-left: auto;
    margin-right: auto;
  }

  #contact .contact-action {
    margin-left: auto;
    margin-right: auto;
  }


  /* FOOTER — centered logo + copyright */
  .site-footer {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 18px;

    text-align: center;
  }

  .site-footer img {
    display: block;

    margin:
      0 auto;

    width: 150px;
  }

  .site-footer p {
    width: 100%;

    margin: 0;

    text-align: center;
  }

}


/* =========================================================
   EXPERIENCE / SOCIAL CARD
   DESKTOP SIDEBAR + MOBILE BOTTOM
   ========================================================= */

.resume-card {
  color: var(--text);
}

.resume-card-label {
  margin: 0 0 18px;

  color: var(--muted);

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;

  font-weight: 700;

  letter-spacing:
    0.22em;

  text-transform: uppercase;
}

.resume-experience-list {
  display: grid;

  gap: 16px;
}

.resume-experience-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: start;

  gap: 18px;
}

.resume-role {
  color: #ffffff;

  font-size: 14px;

  font-weight: 700;

  line-height: 1.3;
}

.resume-time {
  color: var(--muted);

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;

  line-height: 1.4;

  white-space: nowrap;
}

.resume-current {
  display: inline-flex;

  align-items: center;

  gap: 7px;
}

.resume-dot {
  width: 8px;
  height: 8px;

  display: inline-block;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--red);

  box-shadow:
    0 0 8px rgba(229,16,42,0.78);
}

.resume-contact-label {
  margin-top: 32px;
}

.resume-email {
  display: inline-block;

  max-width: 100%;

  color: #ffffff;

  text-decoration: none;

  font-size: 14px;

  font-weight: 700;

  line-height: 1.35;

  overflow-wrap: anywhere;

  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.resume-email:hover,
.resume-email:focus-visible {
  color: #ff4458;

  text-shadow:
    0 0 10px rgba(229,16,42,0.55);
}

.resume-socials {
  display: flex;

  align-items: center;

  gap: 16px;

  margin-top: 24px;
}

.resume-social-link {
  width: 38px;
  height: 38px;

  display: inline-flex;

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

  color:
    rgba(255,255,255,0.72);

  border:
    1px solid
    rgba(255,255,255,0.18);

  border-radius: 10px;

  text-decoration: none;

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

.resume-social-link svg {
  width: 21px;
  height: 21px;

  fill: currentColor;
}

.resume-social-link:hover,
.resume-social-link:focus-visible {
  color: #ffffff;

  border-color:
    rgba(229,16,42,0.82);

  box-shadow:
    0 0 10px rgba(229,16,42,0.55),
    0 0 22px rgba(229,16,42,0.28);

  transform:
    translateY(-2px);
}

.sidebar-resume-card {
  display: none;
}

.mobile-resume-card {
  display: none;
}


/* Desktop sidebar card */
@media (min-width: 1101px) {

  .site-header {
    overflow-y: auto;
  }

  .brand {
    margin-bottom: 38px;
  }

  .sidebar-resume-card {
    width: 100%;

    display: block;

    margin-top: 34px;

    padding:
      24px 0 10px;

    border-top:
      1px solid
      rgba(255,255,255,0.10);
  }

}


/* Mobile bottom card */
@media (max-width: 700px) {

  .mobile-resume-card {
    display: block;

    width:
      calc(100% - (var(--section-x) * 2));

    margin:
      0 auto;

    padding:
      46px
      0;

    border-top:
      1px solid
      rgba(255,255,255,0.12);

    border-bottom:
      1px solid
      rgba(255,255,255,0.12);
  }

  .mobile-resume-card .resume-card-label,
  .mobile-resume-card .resume-email,
  .mobile-resume-card .resume-socials {
    text-align: center;
  }

  .mobile-resume-card .resume-card-label {
    text-align: center;
  }

  .mobile-resume-card .resume-experience-list {
    width: min(100%, 520px);

    margin:
      0 auto;
  }

  .mobile-resume-card .resume-experience-row {
    grid-template-columns:
      minmax(0, 1fr)
      auto;

    gap: 16px;
  }

  .mobile-resume-card .resume-role {
    font-size: 17px;
  }

  .mobile-resume-card .resume-time {
    font-size: 11px;
  }

  .mobile-resume-card .resume-contact-label {
    margin-top: 40px;
  }

  .mobile-resume-card .resume-email {
    display: block;

    width: fit-content;

    margin:
      0 auto;

    font-size: 17px;
  }

  .mobile-resume-card .resume-socials {
    justify-content: center;

    margin-top: 26px;
  }

}


/* =========================================================
   CUSTOM PULSATING PLUS CURSOR
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

  body,
  a,
  button,
  .photo-item,
  .design-frame,
  .youtube-lightbox-link {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;

    width: 28px;
    height: 28px;

    pointer-events: none;
    z-index: 99999;

    opacity: 0;

    transform:
      translate(-50%, -50%)
      scale(1);

    filter:
      drop-shadow(0 0 5px rgba(242,107,29,0.95))
      drop-shadow(0 0 10px rgba(229,16,42,0.55));

    animation:
      cursorPlusPulse
      1.3s
      ease-in-out
      infinite;

    transition:
      width 0.2s ease,
      height 0.2s ease,
      opacity 0.2s ease,
      filter 0.2s ease;
  }

  .custom-cursor::before,
  .custom-cursor::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    background: var(--orange);

    border-radius: 2px;

    transform:
      translate(-50%, -50%);

    transition:
      width 0.2s ease,
      height 0.2s ease,
      background 0.2s ease;
  }

  /* Horizontal bar */
  .custom-cursor::before {
    width: 24px;
    height: 4px;
  }

  /* Vertical bar */
  .custom-cursor::after {
    width: 4px;
    height: 24px;
  }

  .custom-cursor.cursor-visible {
    opacity: 1;
  }

  .custom-cursor.cursor-hover {
    width: 38px;
    height: 38px;

    filter:
      drop-shadow(0 0 7px rgba(242,107,29,1))
      drop-shadow(0 0 15px rgba(229,16,42,0.75));
  }

  .custom-cursor.cursor-hover::before {
    width: 32px;
    height: 5px;
    background: var(--red);
  }

  .custom-cursor.cursor-hover::after {
    width: 5px;
    height: 32px;
    background: var(--red);
  }

  .custom-cursor.cursor-click {
    width: 24px;
    height: 24px;
  }

  .custom-cursor.cursor-click::before {
    width: 20px;
    height: 5px;
    background: #ffffff;
  }

  .custom-cursor.cursor-click::after {
    width: 5px;
    height: 20px;
    background: #ffffff;
  }

  @keyframes cursorPlusPulse {

    0%,
    100% {
      transform:
        translate(-50%, -50%)
        scale(1);
    }

    50% {
      transform:
        translate(-50%, -50%)
        scale(1.18);
    }

  }

}


/* Disable custom cursor on touch devices */

@media (hover: none),
       (pointer: coarse) {

  .custom-cursor {
    display: none;
  }

}


/* =========================================================
   MOBILE ACCORDION — KEEP OPENED SECTION AT THE TOP
   ========================================================= */

@media (max-width: 700px) {

  .mobile-accordion-section {
    /*
      Prevent the browser from trying to preserve the old
      scroll position when another accordion section collapses.
    */
    overflow-anchor: none;

    /*
      Provides a little breathing room below the sticky header
      when the section is scrolled into position.
    */
    scroll-margin-top: 88px;
  }

  .mobile-section-toggle {
    overflow-anchor: none;
  }

}






/* =========================================================
   GLOSSY FLAG LANGUAGE SELECTOR
   ========================================================= */

.language-flags {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  flex-shrink: 0;
}

.language-flag-button {
  position: relative;

  display: block;

  width: 70px;
  aspect-ratio: 8 / 3;

  padding: 0;

  overflow: hidden;

  background: #111;

  border:
    1px solid
    rgba(255,255,255,0.16);

  border-radius: 14px;

  cursor: pointer;

  opacity: 0.62;

  transform:
    scale(0.95);

  filter:
    saturate(0.78)
    brightness(0.90);

  box-shadow:
    0 7px 14px
    rgba(0,0,0,0.30);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


/* Actual flag surface */

.language-flag-button img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: inherit;

  pointer-events: none;
}


/* Glossy highlight like the supplied reference */

.language-flag-button::after {
  content: "";

  position: absolute;

  inset: 0;

  border-radius: inherit;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.02) 32%,
      rgba(0,0,0,0.00) 58%,
      rgba(0,0,0,0.20) 100%
    );

  box-shadow:
    inset 0 1px 1px
    rgba(255,255,255,0.28),
    inset 0 -2px 7px
    rgba(0,0,0,0.22);

  pointer-events: none;
}


.language-flag-button:hover {
  opacity: 0.92;

  transform:
    translateY(-1px)
    scale(1.01);

  filter:
    saturate(1)
    brightness(1.04);
}


/* Active language gets the Rapido glow */

.language-flag-button.selected {
  opacity: 1;

  transform:
    scale(1.07);

  filter:
    saturate(1.08)
    brightness(1.08);

  border-color:
    rgba(242,107,29,0.95);

  box-shadow:
    0 5px 12px rgba(0,0,0,0.35),
    0 0 8px rgba(242,107,29,0.95),
    0 0 18px rgba(229,16,42,0.68),
    0 0 32px rgba(242,107,29,0.34);

  animation:
    glossyFlagGlow
    1.8s
    ease-in-out
    infinite;
}


.language-flag-button:focus-visible {
  outline:
    2px solid
    var(--orange);

  outline-offset: 4px;
}


@keyframes glossyFlagGlow {

  0%,
  100% {
    box-shadow:
      0 5px 12px rgba(0,0,0,0.35),
      0 0 7px rgba(242,107,29,0.82),
      0 0 16px rgba(229,16,42,0.56),
      0 0 28px rgba(242,107,29,0.28);
  }

  50% {
    box-shadow:
      0 5px 12px rgba(0,0,0,0.35),
      0 0 11px rgba(242,107,29,1),
      0 0 24px rgba(229,16,42,0.78),
      0 0 42px rgba(242,107,29,0.46);
  }

}


/* =========================================================
   DESKTOP SIDEBAR PLACEMENT
   Flags sit below logo and above navigation.
   ========================================================= */

@media (min-width: 1101px) {

  .site-header .brand {
    margin-bottom: 24px;
  }

  .site-header > .language-flags {
    justify-content: flex-start;

    width: 100%;

    margin-bottom: 26px;
  }

  .language-flag-button {
    width: 72px;

    border-radius: 15px;
  }

}


/* =========================================================
   TABLET + PHONE HEADER
   Logo | centered flags | Menu
   ========================================================= */

@media (max-width: 1100px) {

  .site-header {
    grid-template-columns:
      auto
      minmax(100px, 1fr)
      auto;

    column-gap:
      clamp(10px, 2.5vw, 24px);
  }

  .site-header > .brand {
    grid-column: 1;

    margin: 0;
  }

  .site-header > .language-flags {
    grid-column: 2;

    justify-self: center;

    margin: 0;
  }

  .site-header > .menu-toggle {
    grid-column: 3;

    justify-self: end;
  }

  .site-header > .main-nav {
    grid-column:
      1 / -1;
  }

}


/* Phone sizing — compact enough to stay between logo + Menu */

@media (max-width: 580px) {

  .site-header {
    padding:
      14px
      16px;

    column-gap: 9px;
  }

  .brand img {
    width: 126px;
  }

  .language-flags {
    gap: 7px;
  }

  .language-flag-button {
    width: 46px;

    border-radius: 10px;
  }

  .menu-toggle {
    padding:
      7px
      9px;

    font-size: 12px;
  }

}


/* Very narrow phones */

@media (max-width: 390px) {

  .brand img {
    width: 112px;
  }

  .language-flag-button {
    width: 42px;
  }

  .language-flags {
    gap: 6px;
  }

}


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

  .language-flag-button.selected {
    animation: none;
  }

}


/* =========================================================
   MARCIAL'S EXPERIENCE — EXTRA HISTORY ROWS
   ========================================================= */

@media (min-width: 1101px) {

  .sidebar-resume-card .resume-experience-list {
    gap: 13px;
  }

  .sidebar-resume-card .resume-contact-label {
    margin-top: 28px;
  }

}



/* =========================================================
   DESKTOP LANGUAGE FLAGS — FULL MENU WIDTH
   ========================================================= */

@media (min-width: 1101px) {

  .site-header > .language-flags {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    width: 100%;

    gap: 12px;

    margin:
      0 0 26px;
  }


  .site-header > .language-flags
  .language-flag-button {
    width: 100%;
    height: 44px;

    aspect-ratio: auto;

    border-radius: 14px;
  }


  .site-header > .language-flags
  .language-flag-button img {
    width: 100%;
    height: 100%;

    object-fit: cover;
  }

}


/* =========================================================
   LANGUAGE FLAGS — 25% SLIMMER HEIGHT
   ========================================================= */

.language-flag-button {
  aspect-ratio: 8 / 3;
}

@media (min-width: 1101px) {

  .site-header > .language-flags
  .language-flag-button {
    height: 44px;
  }

}


/* =========================================================
   DESKTOP MENU — BOLD / LEFT ALIGNED / NO NUMBERS
   ========================================================= */

@media (min-width: 1101px) {

  .main-nav {
    align-items: stretch;
  }

  .main-nav a {
    display: block;

    width: 100%;

    text-align: left;

    font-weight: 700;
  }

  /*
    Hide the original 01 / 02 / 03 / etc. number spans
    on desktop while keeping the translated text label.
  */
  .main-nav a > span:not(.nav-label) {
    display: none;
  }

  .main-nav .nav-label {
    display: inline;
  }

}


/* =========================================================
   DESKTOP HEADER + MENU REFINEMENT
   ========================================================= */

@media (min-width: 1101px) {

  /* Center the Rapido logo in the desktop heading/sidebar */
  .site-header > .brand {
    width: 100%;

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

    text-align: center;
  }

  .site-header > .brand img {
    display: block;

    margin-left: auto;
    margin-right: auto;
  }


  /* Desktop menu typography */
  .main-nav a {
    font-size: 11px;
    font-weight: 700;

    text-align: left;

    color: #a84a12;

    border-color: transparent;

    text-shadow: none;

    transition:
      color 0.25s ease,
      text-shadow 0.25s ease,
      border-color 0.25s ease,
      padding-left 0.25s ease;
  }


  /* Dark orange on normal menu items */
  .main-nav a .nav-label {
    color: inherit;
  }


  /* Brighter orange on hover */
  .main-nav a:hover {
    color: #ff7a1a;

    border-color: #ff7a1a;

    text-shadow:
      0 0 5px rgba(255,122,26,0.75),
      0 0 12px rgba(242,107,29,0.55);
  }


  /* Bright glowing orange on selected section */
  .main-nav a.active {
    color: #ff8a1f;

    border-color: #ff8a1f;

    text-shadow:
      0 0 4px rgba(255,138,31,1),
      0 0 9px rgba(255,122,26,0.95),
      0 0 18px rgba(242,107,29,0.75),
      0 0 30px rgba(229,16,42,0.30);
  }

}


/* =========================================================
   EXPERIENCE CARD — ALL TEXT 9PX
   ========================================================= */

.resume-card,
.resume-card p,
.resume-card span,
.resume-card a,
.resume-card-label,
.resume-role,
.resume-time,
.resume-email {
  font-size: 12px;
}

.resume-card-label {
  line-height: 1.4;
}

.resume-role,
.resume-time,
.resume-email {
  line-height: 1.45;
}



/* =========================================================
   SECTION HEADING VIDEO BACKGROUNDS
   VIDEO / DESIGN / PHOTO / SOUND
   ========================================================= */

#video .section-heading,
#design .section-heading,
#photo .section-heading,
#audio .section-heading {
  position: relative;

  min-height:
    clamp(300px, 34vw, 430px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  overflow: hidden;

  margin-bottom: 50px;

  padding:
    clamp(36px, 5vw, 72px)
    clamp(28px, 5vw, 72px);

  border:
    1px solid
    rgba(255,255,255,0.08);

  border-radius: 26px;

  background: #080809;

  box-shadow:
    0 22px 60px
    rgba(0,0,0,0.30);

  isolation: isolate;
}


/* Background video itself */

.section-heading-background-video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  z-index: 0;

  pointer-events: none;

  filter:
    saturate(0.90)
    brightness(0.78);
}


/*
  Dark gradient over the video:
  strongest behind the copy on the left,
  lighter toward the right.
*/

#video .section-heading::after,
#design .section-heading::after,
#photo .section-heading::after,
#audio .section-heading::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(3,3,4,0.96) 0%,
      rgba(3,3,4,0.90) 20%,
      rgba(5,5,7,0.78) 42%,
      rgba(5,5,7,0.52) 64%,
      rgba(5,5,7,0.28) 82%,
      rgba(5,5,7,0.16) 100%
    );
}


/* Keep all heading copy above the video + gradient */

#video .section-heading > :not(.section-heading-background-video),
#design .section-heading > :not(.section-heading-background-video),
#photo .section-heading > :not(.section-heading-background-video),
#audio .section-heading > :not(.section-heading-background-video) {
  position: relative;

  z-index: 2;
}


/* Give the large heading a bit more readable width over video */

#video .section-heading h2,
#design .section-heading h2,
#photo .section-heading h2,
#audio .section-heading h2 {
  max-width: 14ch;

  text-shadow:
    0 2px 8px rgba(0,0,0,0.65),
    0 0 22px rgba(0,0,0,0.35);
}


#video .section-heading .intro,
#design .section-heading .intro,
#photo .section-heading .intro,
#audio .section-heading .intro {
  max-width: 680px;

  color:
    rgba(242,241,238,0.88);

  text-shadow:
    0 2px 8px
    rgba(0,0,0,0.70);
}


/* Slightly strengthen the small orange label over video */

#video .section-heading .kicker,
#design .section-heading .kicker,
#photo .section-heading .kicker,
#audio .section-heading .kicker {
  color: #ff7a1a;

  text-shadow:
    0 0 10px
    rgba(242,107,29,0.30);
}


/* =========================================================
   MOBILE HEADING VIDEO BANNERS
   ========================================================= */

@media (max-width: 700px) {

  #video .section-heading,
  #design .section-heading,
  #photo .section-heading,
  #audio .section-heading {
    min-height: 300px;

    margin-bottom: 34px;

    padding:
      34px
      22px;

    border-radius: 20px;
  }


  /*
    Keep the left side very dark on small screens because
    almost all of the text occupies that area.
  */

  #video .section-heading::after,
  #design .section-heading::after,
  #photo .section-heading::after,
  #audio .section-heading::after {
    background:
      linear-gradient(
        90deg,
        rgba(3,3,4,0.97) 0%,
        rgba(3,3,4,0.91) 35%,
        rgba(5,5,7,0.68) 70%,
        rgba(5,5,7,0.38) 100%
      );
  }


  .section-heading-background-video {
    object-position: center;
  }

}


/* Respect reduced-motion settings */

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

  .section-heading-background-video {
    display: none;
  }

}


/* =========================================================
   FULL-SECTION VIDEO BACKGROUNDS
   ABOUT / VIDEO / DESIGN / PHOTO / SOUND
   Contact intentionally keeps its own existing background.
   ========================================================= */

#about,
#video,
#design,
#photo,
#audio {
  position: relative;

  isolation: isolate;

  background: transparent !important;
}


/* Shared background video */

#about > .section-background-video,
#video > .section-background-video,
#design > .section-background-video,
#photo > .section-background-video,
#audio > .section-background-video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  z-index: -2;

  pointer-events: none;

  filter:
    brightness(0.72)
    saturate(0.92);
}


/*
  Full-section left-side dark gradient.
  Strongest behind the text at the left, then gradually
  reveals more of the background video toward the right.
*/

#about::before,
#video::before,
#design::before,
#photo::before,
#audio::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: -1;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(2,2,3,0.96) 0%,
      rgba(3,3,4,0.91) 18%,
      rgba(4,4,6,0.78) 38%,
      rgba(5,5,7,0.56) 60%,
      rgba(5,5,7,0.30) 80%,
      rgba(5,5,7,0.16) 100%
    );
}


/*
  About already had its own flat overlay.
  The new section-wide gradient replaces it.
*/

#about .about-video-overlay {
  display: none;
}


/* =========================================================
   HEADING AREAS
   Background is now the WHOLE section, so remove the old
   boxed video-heading treatment.
   ========================================================= */

#video .section-heading,
#design .section-heading,
#photo .section-heading,
#audio .section-heading {
  position: relative;

  min-height: 0;

  display: block;

  overflow: visible;

  margin-bottom: 50px;

  padding: 0;

  border: 0;

  border-radius: 0;

  background: transparent;

  box-shadow: none;

  isolation: auto;
}


/* Disable the old heading overlay now that the gradient
   covers the entire section. */

#video .section-heading::after,
#design .section-heading::after,
#photo .section-heading::after,
#audio .section-heading::after {
  display: none;
}


/* Text remains readable against the moving background. */

#video .section-heading h2,
#design .section-heading h2,
#photo .section-heading h2,
#audio .section-heading h2,
#about .about-copy h1 {
  text-shadow:
    0 2px 8px rgba(0,0,0,0.72),
    0 0 24px rgba(0,0,0,0.42);
}

#video .section-heading .intro,
#design .section-heading .intro,
#photo .section-heading .intro,
#audio .section-heading .intro,
#about .about-copy .intro {
  text-shadow:
    0 2px 8px rgba(0,0,0,0.75);
}


/* =========================================================
   SLIGHTLY ROUNDED VIDEO + PHOTO FRAMES
   ========================================================= */

/* Video portfolio thumbnails */

#video .work-card > a {
  border-radius: 12px;
}

#video .work-card > a img {
  border-radius: inherit;
}


/* Photography grid */

#photo .photo-item {
  border-radius: 12px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  /*
    On narrow screens keep more of the left side dark because
    nearly all heading copy occupies that region.
  */

  #about::before,
  #video::before,
  #design::before,
  #photo::before,
  #audio::before {
    background:
      linear-gradient(
        90deg,
        rgba(2,2,3,0.97) 0%,
        rgba(3,3,4,0.93) 30%,
        rgba(4,4,6,0.75) 68%,
        rgba(5,5,7,0.42) 100%
      );
  }


  #video .section-heading,
  #design .section-heading,
  #photo .section-heading,
  #audio .section-heading {
    min-height: 0;

    margin-bottom: 34px;

    padding: 0;

    border-radius: 0;
  }


  #video .work-card > a,
  #photo .photo-item {
    border-radius: 10px;
  }

}


/* =========================================================
   REDUCED MOTION
   Keep a dark fallback if motion is reduced.
   ========================================================= */

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

  #about > .section-background-video,
  #video > .section-background-video,
  #design > .section-background-video,
  #photo > .section-background-video,
  #audio > .section-background-video {
    display: none;
  }

  #about,
  #video,
  #design,
  #photo,
  #audio {
    background:
      #09090b !important;
  }

}


/* =========================================================
   ABOUT — RESTORE ORIGINAL VIDEO BACKGROUND
   ========================================================= */

/*
  About keeps its original video:
  assets/images/214363_medium.mp4

  The full-section headbackgournd.mp4 treatment applies only
  to Video, Design, Photo and Sound.
*/

#about::before {
  display: none;
}


#about > .about-background-video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  z-index: 0;

  pointer-events: none;

  filter: none;
}


#about .about-video-overlay {
  display: block;

  position: absolute;

  inset: 0;

  background:
    rgba(0,0,0,0.12);

  z-index: 1;

  pointer-events: none;
}


#about .about-copy,
#about .about-portrait {
  position: relative;

  z-index: 2;
}


/* Keep the original About text-card treatment */

#about .about-copy {
  background:
    rgba(10,10,12,0.58);

  backdrop-filter:
    blur(7px);

  -webkit-backdrop-filter:
    blur(7px);
}
/* =========================================================
   DESKTOP FOOTER — EXACT SECTION LEFT ALIGNMENT
   ========================================================= */

@media (min-width: 1101px) {

  .site-footer {
    width: 100%;
    max-width: none;

    /* Footer is already inside the shifted <main> */
    margin-left: 0;
    margin-right: 0;

    padding-left: var(--section-x);
    padding-right: var(--section-x);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    gap: 18px;

    text-align: left;
  }

  .site-footer img {
    display: block;

    width: 120px;

    margin: 0;
  }

  .site-footer p {
    width: auto;

    margin: 0;

    text-align: left;
  }

}
/* =========================================================
   PHONE ABOUT — 2/3 TEXT + 1/3 PORTRAIT
   MATCHED HEIGHT
   ========================================================= */

@media (max-width: 700px) {

  #about {
    display: grid;

    grid-template-columns:
      minmax(0, 2fr)
      minmax(110px, 1fr);

    align-items: stretch;

    gap: 14px;

    min-height: auto;

    padding:
      55px
      20px;
  }


  /* TEXT SIDE */

  #about .about-copy {
    min-width: 0;

    height: 100%;

    padding:
      24px
      20px;

    border-radius: 20px;

    display: flex;

    flex-direction: column;

    justify-content: center;
  }


  #about .about-copy h1 {
    font-size:
      clamp(34px, 9vw, 46px);

    line-height: 0.95;
  }


  #about .about-copy .intro {
    font-size: 14px;

    line-height: 1.55;

    margin-top: 20px;
  }


  #about .eyebrow,
  #about .kicker {
    font-size: 10px;
  }


  /* PORTRAIT SIDE */

  #about .about-portrait {
    width: 100%;

    height: 100%;

    min-height: 100%;

    margin: 0;

    align-self: stretch;

    border-radius: 20px;

    overflow: hidden;
  }


  #about .about-portrait img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position:
      center top;
  }

}