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

:root {

  --bg-dark: #04110e;
  --bg-green: #071814;

  --forest-dark: #0a1d18;
  --forest: #113028;

  --moss: #718062;
  --olive: #97946a;

  --bronze-dark: #725538;
  --bronze: #a77c49;
  --gold: #c89d60;

  --sand: #d1c09b;
  --cream: #eee6d5;

  --text: #ece8df;
  --muted: #a29f95;

}


/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {

  background: var(--bg-dark);

  color: var(--text);

  font-family: "Inter", sans-serif;

  overflow-x: hidden;
}


a {
  text-decoration: none;
  color: inherit;
}


button {
  font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.main-header {

  height: 115px;

  background:
          linear-gradient(
                  180deg,
                  #0b1b16,
                  #071510
          );

  display: flex;

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

  position: relative;

  border-top:
          3px solid
          rgba(194, 153, 90, 0.4);

}


.site-title {

  font-family: "Cinzel", serif;

  font-size: clamp(32px, 4vw, 57px);

  font-weight: 500;

  color: var(--cream);

  letter-spacing: 3px;

  position: relative;

  padding: 10px 32px;

}


/* lille fantasy-ornament under navnet */

.site-title::after {

  content: "";

  position: absolute;

  bottom: 0;

  left: 50%;

  transform: translateX(-50%);

  width: 65%;

  height: 1px;

  background:
          linear-gradient(
                  to right,
                  transparent,
                  var(--bronze),
                  transparent
          );

}


/* =========================================================
   FIXED HAMBURGER
========================================================= */

.menu-toggle {

  position: fixed;

  top: 29px;
  left: 32px;

  width: 58px;
  height: 58px;

  z-index: 1000;

  border:
          1px solid
          rgba(200, 157, 96, 0.35);

  border-radius: 50%;

  background:
          rgba(6, 20, 16, 0.86);

  backdrop-filter: blur(15px);

  display: flex;

  flex-direction: column;

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

  gap: 6px;

  cursor: pointer;

  transition: 0.35s;
}


.menu-toggle span {

  width: 24px;
  height: 1px;

  background: var(--cream);

  transition: 0.35s;

}


.menu-toggle:hover {

  background: var(--bronze);

  box-shadow:
          0 0 35px
          rgba(167, 124, 73, 0.25);

}


.menu-toggle:hover span {

  background: #07120e;

}


/* X når menu er åben */

.menu-toggle.active span:nth-child(1) {

  transform:
          translateY(7px)
          rotate(45deg);

}


.menu-toggle.active span:nth-child(2) {

  opacity: 0;

}


.menu-toggle.active span:nth-child(3) {

  transform:
          translateY(-7px)
          rotate(-45deg);

}


/* =========================================================
   TOP NAVIGATION
========================================================= */

.top-navigation {

  min-height: 58px;

  background:
          rgba(10, 28, 22, 0.97);

  display: flex;

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

  gap: clamp(30px, 7vw, 110px);

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

  border-bottom:
          1px solid
          rgba(200, 157, 96, 0.16);

  position: relative;

  z-index: 50;

}


.top-navigation > a,
.nav-project-button {

  border: 0;
  background: transparent;

  color: rgba(238, 230, 213, 0.72);

  font-size: 14px;

  text-transform: uppercase;

  letter-spacing: 2px;

  cursor: pointer;

  padding: 19px 5px;

  position: relative;

  transition: 0.3s;

}


.top-navigation > a::after,
.nav-project-button::after {

  content: "";

  position: absolute;

  bottom: 12px;

  left: 50%;

  width: 0;
  height: 1px;

  background: var(--gold);

  transform: translateX(-50%);

  transition: 0.3s;

}


.top-navigation > a:hover,
.nav-project-button:hover,
.top-navigation > a.active {

  color: var(--cream);

}


.top-navigation > a:hover::after,
.top-navigation > a.active::after,
.nav-project-button:hover::after {

  width: 75%;

}


/* =========================================================
   TOP DROPDOWN
========================================================= */

.nav-dropdown {

  position: relative;

}


.nav-project-button {

  display: flex;

  gap: 8px;

  align-items: center;

}


.nav-project-button span {

  font-size: 12px;

  transition: 0.3s;

}


.nav-dropdown:hover .nav-project-button span {

  transform: rotate(180deg);

}


.dropdown-menu {

  position: absolute;

  top: calc(100% + 1px);
  left: 50%;

  transform:
          translateX(-50%)
          translateY(12px);

  width: 220px;

  background:
          rgba(7, 24, 19, 0.97);

  border:
          1px solid
          rgba(200, 157, 96, 0.2);

  box-shadow:
          0 30px 60px
          rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(18px);

  opacity: 0;

  visibility: hidden;

  transition: 0.3s;

}


.dropdown-menu::before {

  content: "";

  position: absolute;

  top: 0;
  left: 20px;
  right: 20px;

  height: 1px;

  background:
          linear-gradient(
                  to right,
                  transparent,
                  var(--gold),
                  transparent
          );

}


.dropdown-menu a {

  display: block;

  padding: 16px 22px;

  font-size: 12px;

  letter-spacing: 1.5px;

  color: var(--muted);

  transition: 0.25s;

}


.dropdown-menu a:hover {

  background:
          rgba(167, 124, 73, 0.08);

  color: var(--gold);

  padding-left: 28px;

}


.nav-dropdown:hover .dropdown-menu {

  opacity: 1;

  visibility: visible;

  transform:
          translateX(-50%)
          translateY(0);

}


/* =========================================================
   HERO
========================================================= */

.hero {

  height:
          calc(100vh - 173px);

  min-height: 650px;

  position: relative;

  overflow: hidden;

  display: flex;

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

  background:
          radial-gradient(
                  circle at 20% 48%,
                  rgba(14, 62, 49, 0.34),
                  transparent 46%
          ),
          radial-gradient(
                  circle at 84% 18%,
                  rgba(9, 41, 33, 0.26),
                  transparent 32%
          ),
          linear-gradient(
                  180deg,
                  #06120f 0%,
                  #04110e 62%,
                  #04110e 100%
          );

}


/* VIDEO */

.hero-video {

  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 0;

}


/* VIDEO OVERLAY */

.hero-overlay {

  position: absolute;

  inset: 0;

  z-index: 1;

  background:

          linear-gradient(
                  to bottom,
                  rgba(9, 14, 10, 0.28),
                  rgba(9, 14, 10, 0.45) 45%,
                  rgba(9, 14, 10, 0.86)
          ),

          radial-gradient(
                  circle at center,
                  transparent 15%,
                  rgba(6, 10, 7, 0.32) 100%
          );

}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {

  position: relative;

  z-index: 5;

  text-align: center;

  width: min(850px, 88%);

}


.hero-label {

  color: var(--gold);

  font-size: 10px;

  letter-spacing: 5px;

}


.hero-title-frame {

  margin-top: 22px;

  display: flex;

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

  gap: 28px;

}


.frame-decoration {

  width: 90px;
  height: 1px;

  background:
          linear-gradient(
                  to right,
                  transparent,
                  var(--bronze)
          );

}


.frame-decoration.right {

  transform: rotate(180deg);

}


.hero h1 {

  font-family: "Cinzel", serif;

  font-weight: 500;

  font-size:
          clamp(52px, 7vw, 105px);

  line-height: 0.95;

  text-shadow:
          0 12px 30px
          rgba(0, 0, 0, 0.5);

}


.hero h1 span {

  display: block;

  color: var(--sand);

  font-weight: 400;

}


.hero-content p {

  margin:
          30px auto 0;

  width: min(490px, 100%);

  font-size: 14px;

  line-height: 1.8;

  color:
          rgba(238, 230, 213, 0.65);

}


/* =========================================================
   HERO BUTTON
========================================================= */

.hero-button {

  display: inline-flex;

  align-items: center;

  gap: 25px;

  margin-top: 35px;

  padding:
          14px
          2px;

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

  color: var(--cream);

  font-size: 11px;

  letter-spacing: 2.5px;

  text-transform: uppercase;

  transition: 0.3s;

}


.hero-button span {

  transition: 0.3s;

}


.hero-button:hover {

  color: var(--gold);

}


.hero-button:hover span {

  transform:
          translateY(5px);

}


/* =========================================================
   HERO GLOW
========================================================= */

.hero-glow {

  position: absolute;

  z-index: 2;

  width: 600px;
  height: 600px;

  border-radius: 50%;

  filter: blur(150px);

  opacity: 0.08;

  pointer-events: none;

}


.glow-left {

  left: -300px;

  bottom: -250px;

  background: #ad7a42;

}


.glow-right {

  right: -260px;

  top: -180px;

  background: #708561;

}


/* =========================================================
   HERO SCROLL
========================================================= */

.hero-scroll {

  position: absolute;

  z-index: 5;

  right: 55px;
  bottom: 35px;

  display: flex;

  align-items: center;

  gap: 15px;

  font-size: 8px;

  letter-spacing: 3px;

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

}


.scroll-line {

  width: 70px;
  height: 1px;

  background:
          rgba(255, 255, 255, 0.15);

  position: relative;

  overflow: hidden;

}


.scroll-line::after {

  content: "";

  position: absolute;

  left: -40%;
  top: 0;

  width: 40%;
  height: 100%;

  background: var(--gold);

  animation:
          scrollAnimation
          2.2s
          infinite;

}


@keyframes scrollAnimation {

  100% {
    left: 100%;
  }

}


/* =========================================================
   PARTICLES
========================================================= */

.particles {

  position: absolute;

  inset: 0;

  z-index: 3;

  pointer-events: none;

}


.particle {

  position: absolute;

  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: #d7b272;

  opacity: 0;

  box-shadow:
          0 0 8px
          rgba(215, 178, 114, 0.5);

  animation:
          floatParticle
          linear
          infinite;

}


@keyframes floatParticle {

  0% {

    transform:
            translateY(30px);

    opacity: 0;

  }


  20% {

    opacity: 0.5;

  }


  80% {

    opacity: 0.2;

  }


  100% {

    transform:
            translateY(-260px);

    opacity: 0;

  }

}


/* =========================================================
   SIDE MENU
========================================================= */

.side-menu {

  position: fixed;

  top: 0;
  left: 0;

  z-index: 900;

  width:
          min(430px, 88vw);

  height: 100vh;

  background:

          radial-gradient(
                  circle at 20% 20%,
                  rgba(90, 116, 79, 0.14),
                  transparent 35%
          ),

          #071611;

  border-right:
          1px solid
          rgba(200, 157, 96, 0.22);

  padding:
          120px
          45px
          40px;

  will-change: transform;

  transform:
          translate3d(-100%, 0, 0);

  transition:
          transform
          0.6s
          cubic-bezier(.76, 0, .24, 1);

  display: flex;

  flex-direction: column;



}


.side-menu.open {
  transform: translate3d(0, 0, 0);
}


/* decorative top border */

.side-menu-decoration {

  position: absolute;

  top: 94px;

  left: 45px;

  width: 120px;
  height: 1px;

  background:
          linear-gradient(
                  to right,
                  var(--gold),
                  transparent
          );

}


.side-small {

  color: var(--gold);

  letter-spacing: 4px;

  font-size: 10px;

}


.side-menu h2 {

  font-family: "Cinzel", serif;

  font-size: 48px;

  margin-top: 12px;

  font-weight: 500;

}


.side-menu h2 span {

  color: var(--moss);

}


/* =========================================================
   SIDE NAVIGATION
========================================================= */

.side-navigation {

  margin-top: 65px;

}


.side-navigation > a,
.side-project-button {

  width: 100%;

  min-height: 62px;

  border: 0;

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

  background: transparent;

  display: flex;

  align-items: center;

  gap: 20px;

  color:
          rgba(238, 230, 213, 0.75);

  font-family: "Cinzel", serif;

  font-size: 19px;

  cursor: pointer;

  text-align: left;

  transition: 0.3s;

}


.side-navigation > a > span,
.side-project-button div span {

  color: var(--bronze);

  font-family: "Inter", sans-serif;

  font-size: 10px;

  letter-spacing: 2px;

}


.side-navigation > a:hover,
.side-project-button:hover {

  color: var(--gold);

  padding-left: 7px;

}


.side-project-button {

  justify-content: space-between;

}


.side-project-button div {

  display: flex;

  gap: 20px;

  align-items: center;

}


.side-arrow {

  font-family: "Inter", sans-serif;

  font-size: 23px;

  transition: 0.3s;

}


.side-project-button.open .side-arrow {

  transform:
          rotate(45deg);

}


/* SIDE SUBMENU */

.side-submenu {

  max-height: 0;

  overflow: hidden;

  transition:
          max-height
          0.4s ease;

}


.side-submenu.open {

  max-height: 180px;

}


.side-submenu a {

  display: block;

  padding:
          11px
          0
          11px
          45px;

  font-size: 12px;

  letter-spacing: 1.2px;

  color: var(--muted);

  transition: 0.25s;

}


.side-submenu a:hover {

  color: var(--gold);

  padding-left: 53px;

}


/* =========================================================
   SIDE BOTTOM
========================================================= */

.side-menu-bottom {

  margin-top: auto;

  display: flex;

  justify-content: space-between;

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

  font-size: 10px;

  letter-spacing: 1px;

}


/* =========================================================
   OVERLAY
========================================================= */

.menu-overlay {

  position: fixed;

  inset: 0;

  z-index: 800;

  background:
          rgba(3, 6, 4, 0.68);

  opacity: 0;

  visibility: hidden;

  transition: 0.4s;

}


.menu-overlay.active {

  opacity: 1;

  visibility: visible;

}


/* =========================================================
   PREVIEW SECTION
========================================================= */

.preview-section {

  min-height: 550px;

  padding:
          130px
          8vw;

  background:

          radial-gradient(
                  circle at 15% 50%,
                  rgba(77, 102, 69, 0.15),
                  transparent 35%
          ),

          var(--bg-dark);

}


.preview-small {

  color: var(--gold);

  font-size: 10px;

  letter-spacing: 4px;

}


.preview-section h2 {

  font-family: "Cinzel", serif;

  font-size:
          clamp(50px, 7vw, 105px);

  margin-top: 15px;

  font-weight: 500;

}


.preview-section p {

  color: var(--muted);

  width:
          min(480px, 100%);

  line-height: 1.8;

  margin-top: 30px;

}


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

@media (max-width: 750px) {

  .main-header {

    height: 95px;

  }


  .site-title {

    font-size: 31px;

  }


  .menu-toggle {

    width: 48px;
    height: 48px;

    left: 18px;
    top: 23px;

  }


  .top-navigation {

    min-height: 52px;

    gap: 20px;

    padding:
            0
            10px;

  }


  .top-navigation > a,
  .nav-project-button {

    font-size: 10px;

    letter-spacing: 1px;

  }


  .hero {

    height:
            calc(100vh - 147px);

  }


  .frame-decoration {

    display: none;

  }


  .hero-title-frame {

    display: block;

  }


  .hero-content p {

    font-size: 13px;

  }


  .hero-scroll {

    display: none;

  }


  .side-menu {

    padding:
            105px
            30px
            30px;

  }


  .side-menu-decoration {

    left: 30px;

    top: 87px;

  }


  .side-menu h2 {

    font-size: 40px;

  }

}

/* =========================================================
   3D PROJECT SHOWCASE
========================================================= */

.project-showcase {
  position: relative;
  min-height: 980px;
  margin-top: -1px;
  padding: 132px 0 90px;
  overflow: hidden;

  background:
          radial-gradient(
                  circle at 50% 20%,
                  rgba(13, 54, 43, 0.23),
                  transparent 28%
          ),
          radial-gradient(
                  circle at 50% 58%,
                  rgba(10, 40, 32, 0.16),
                  transparent 34%
          ),
          radial-gradient(
                  circle at 50% 100%,
                  rgba(167, 124, 73, 0.08),
                  transparent 38%
          ),
          linear-gradient(
                  to bottom,
                  #04110e 0%,
                  #04110e 10%,
                  #05140f 30%,
                  var(--bg-dark) 100%
          );
}

.project-showcase::before {
  content: none;
}

.project-showcase-heading {
  position: relative;
  z-index: 4;

  width: min(1280px, 84vw);
  margin: 0 auto 20px;
}

.project-showcase-heading h2 {
  margin-top: 14px;

  font-family: "Cinzel", serif;
  font-size: clamp(50px, 6.5vw, 96px);
  font-weight: 500;
  line-height: 1;

  color: var(--cream);
}

.project-showcase-heading > p {
  width: min(520px, 100%);
  margin-top: 24px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.gothic-carousel-shell {
  position: relative;

  width: 100%;
  height: 680px;

  margin-top: -35px;

  overflow: hidden;
}

.gothic-carousel {
  position: absolute;
  inset: 0;

  z-index: 1;

  cursor: pointer;
  touch-action: pan-y;
}

.gothic-carousel:active {
  cursor: grabbing;
}

.gothic-carousel canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;

  z-index: 2;

  width: min(18vw, 280px);

  pointer-events: none;
}

.carousel-fade-left {
  left: 0;

  background:
          linear-gradient(
                  to right,
                  var(--bg-dark),
                  rgba(10, 15, 11, 0.76) 35%,
                  transparent
          );
}

.carousel-fade-right {
  right: 0;

  background:
          linear-gradient(
                  to left,
                  var(--bg-dark),
                  rgba(10, 15, 11, 0.76) 35%,
                  transparent
          );
}

.carousel-arrow {
  position: absolute;
  top: 50%;

  z-index: 5;

  width: 58px;
  height: 58px;

  transform: translateY(-50%);

  border:
          1px solid
          rgba(200, 157, 96, 0.34);

  border-radius: 50%;

  background:
          rgba(10, 15, 11, 0.72);

  backdrop-filter: blur(12px);

  color: var(--cream);

  display: grid;
  place-items: center;

  cursor: pointer;

  transition:
          background 0.3s,
          border-color 0.3s,
          transform 0.3s;
}

.carousel-arrow:hover {
  background: var(--bronze);
  border-color: var(--gold);

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

.carousel-arrow span {
  font-size: 21px;
  line-height: 1;
}

.carousel-arrow-left {
  left: clamp(20px, 5vw, 80px);
}

.carousel-arrow-right {
  right: clamp(20px, 5vw, 80px);
}

.carousel-project-info {
  position: absolute;

  left: 50%;
  bottom: 36px;

  z-index: 5;

  width: min(560px, 78vw);

  transform: translateX(-50%);

  text-align: center;

  pointer-events: none;
}

.carousel-project-number {
  display: block;

  color: var(--gold);

  font-size: 10px;
  letter-spacing: 3px;
}

.carousel-project-info h3 {
  margin-top: 10px;

  font-family: "Cinzel", serif;

  font-size:
          clamp(24px, 3vw, 38px);

  font-weight: 500;

  color: var(--cream);
}

.carousel-project-info p {
  margin-top: 7px;

  color: var(--muted);

  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.carousel-dots {
  position: absolute;

  left: 50%;
  bottom: 6px;

  z-index: 6;

  transform: translateX(-50%);

  display: flex;
  align-items: center;

  gap: 9px;
}

.carousel-dot {
  width: 18px;
  height: 3px;

  border: 0;

  background:
          rgba(238, 230, 213, 0.18);

  cursor: pointer;

  transition:
          width 0.3s,
          background 0.3s;
}

.carousel-dot.active {
  width: 38px;

  background: var(--gold);
}


/* =========================================================
   3D CAROUSEL · MOBILE
========================================================= */

@media (max-width: 750px) {

  .project-showcase {
    min-height: 820px;
    padding-top: 90px;
  }

  .project-showcase-heading {
    width: 88vw;
  }

  .gothic-carousel-shell {
    height: 570px;
    margin-top: -5px;
  }

  .carousel-arrow {
    width: 46px;
    height: 46px;

    top: 47%;
  }

  .carousel-arrow-left {
    left: 12px;
  }

  .carousel-arrow-right {
    right: 12px;
  }

  .carousel-fade {
    width: 10vw;
  }

  .carousel-project-info {
    bottom: 31px;
  }

  .carousel-dots {
    bottom: 3px;
  }
}

/* =========================================================
   ABOUT PAGE
========================================================= */

.about-page {
  background: var(--bg-dark);
}


/* =========================================================
   ABOUT HERO
========================================================= */

.about-hero {
  position: relative;

  min-height: calc(100vh - 173px);

  padding:
          0
          8vw;

  display: flex;
  align-items: stretch;

  overflow: hidden;

  background:
          radial-gradient(
                  circle at 74% 45%,
                  rgba(113, 128, 98, 0.16),
                  transparent 30%
          ),
          radial-gradient(
                  circle at 20% 70%,
                  rgba(167, 124, 73, 0.11),
                  transparent 38%
          ),
          linear-gradient(
                  135deg,
                  #06120f,
                  #0a1915 55%,
                  #06120f
          );

  border-bottom:
          1px solid
          rgba(200, 157, 96, 0.15);
}


.about-hero::before {
  content: "";

  position: absolute;

  top: 54px;
  right: 7vw;

  width: 38vw;
  max-width: 660px;
  aspect-ratio: 1 / 1;

  border:
          1px solid
          rgba(200, 157, 96, 0.08);

  transform: rotate(45deg);

  pointer-events: none;
}


.about-hero::after {
  content: "";

  position: absolute;

  top: 120px;
  right: calc(7vw + 90px);

  width: 28vw;
  max-width: 460px;
  aspect-ratio: 1 / 1;

  border:
          1px solid
          rgba(113, 128, 98, 0.10);

  transform: rotate(45deg);

  pointer-events: none;
}


.about-ambient {
  position: absolute;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  filter: blur(150px);

  opacity: 0.12;

  pointer-events: none;
}


.about-ambient-left {
  left: -270px;
  bottom: -220px;

  background: var(--bronze);
}


.about-ambient-right {
  right: -220px;
  top: -130px;

  background: var(--moss);
}


/* HERO STAGE */

.about-hero-inner {
  position: relative;

  z-index: 5;

  width: min(1500px, 100%);
  min-height: clamp(700px, 78vh, 900px);

  margin: 0 auto;
}


/* INTRO */

.about-hero-intro {
  position: absolute;

  left: 0;
  top: 50%;

  transform: translateY(-52%);

  z-index: 7;

  width: min(560px, 38vw);
}


.about-eyebrow {
  display: inline-block;

  color: var(--gold);

  font-size: 10px;

  letter-spacing: 4px;

  text-transform: uppercase;
}


.about-hero h1 {
  margin-top: 18px;

  font-family: "Cinzel", serif;

  font-size:
          clamp(88px, 10.2vw, 175px);

  font-weight: 500;

  line-height: 0.82;

  letter-spacing: -3px;

  color: var(--cream);
}


.about-hero h1 span {
  display: block;

  margin-left:
          clamp(60px, 7vw, 115px);

  color: transparent;

  -webkit-text-stroke:
          1px
          rgba(151, 148, 106, 0.75);

  text-stroke:
          1px
          rgba(151, 148, 106, 0.75);

  font-weight: 400;
}


.about-role {
  margin-top: 34px;

  color: var(--sand);

  font-family: "Cinzel", serif;

  font-size:
          clamp(18px, 1.55vw, 31px);

  letter-spacing: 1px;

  line-height: 1.45;
}


.about-introduction {
  width: min(540px, 100%);

  margin-top: 22px;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.95;
}


.about-hero-actions {
  margin-top: 42px;

  display: flex;

  flex-wrap: wrap;

  gap: 30px;
}


.about-primary-button,
.about-secondary-button {
  display: inline-flex;

  align-items: center;

  gap: 22px;

  padding:
          14px
          2px;

  color: var(--cream);

  font-size: 10px;

  letter-spacing: 2.5px;

  text-transform: uppercase;

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

  transition:
          color 0.3s,
          border-color 0.3s;
}


.about-primary-button span,
.about-secondary-button span {
  transition: transform 0.3s;
}


.about-primary-button:hover,
.about-secondary-button:hover {
  color: var(--gold);

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


.about-primary-button:hover span {
  transform: translateY(5px);
}


.about-secondary-button:hover span {
  transform:
          translate(3px, -3px);
}


/* PORTRAIT */

.about-portrait-wrap {
  position: absolute;

  left: 50%;
  bottom: 0;

  transform: translateX(-50%);

  z-index: 4;

  width: min(44vw, 650px);
  height: 100%;

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

  pointer-events: none;
}


.about-portrait-wrap::before {
  content: "";

  position: absolute;

  width: min(34vw, 500px);
  aspect-ratio: 1 / 1;

  border:
          1px solid
          rgba(200, 157, 96, 0.10);

  transform:
          translateY(10px)
          rotate(45deg);

  z-index: 1;
}


.about-portrait-wrap::after {
  content: "";

  position: absolute;

  width: min(49vw, 760px);
  aspect-ratio: 1 / 1;

  border:
          1px solid
          rgba(113, 128, 98, 0.09);

  transform:
          translateY(-28px)
          rotate(45deg);

  z-index: 0;
}


.about-portrait-frame {
  position: relative;

  z-index: 3;

  width: 100%;
  height: 100%;

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


.about-portrait {
  display: block;

  width: 100%;
  max-width: 620px;
  height: auto;

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

  filter:
          drop-shadow(0 35px 70px rgba(0, 0, 0, 0.42))
          drop-shadow(0 0 30px rgba(167, 124, 73, 0.06));
}


/* IDENTITY CARD */

.about-identity-card {
  position: absolute;

  right: 0;
  top: 50%;

  transform: translateY(-48%);

  z-index: 7;

  width: min(320px, 22vw);

  padding:
          38px
          36px;

  background:
          linear-gradient(
                  145deg,
                  rgba(31, 45, 33, 0.66),
                  rgba(11, 17, 12, 0.82)
          );

  border:
          1px solid
          rgba(200, 157, 96, 0.19);

  box-shadow:
          0 35px 80px
          rgba(0, 0, 0, 0.28);
}


.about-identity-card::before,
.about-identity-card::after {
  content: "";

  position: absolute;

  width: 30px;
  height: 40px;

  pointer-events: none;
}


.about-identity-card::before {
  top: -1px;
  left: -1px;

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

  border-left:
          1px solid
          var(--gold);
}


.about-identity-card::after {
  right: -1px;
  bottom: -1px;

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

  border-bottom:
          1px solid
          var(--gold);
}


.identity-number {
  display: block;

  color:
          rgba(200, 157, 96, 0.36);

  font-family: "Cinzel", serif;

  font-size: 56px;

  line-height: 1;
}


.identity-line {
  width: 65px;
  height: 1px;

  margin:
          24px
          0
          31px;

  background:
          linear-gradient(
                  to right,
                  var(--gold),
                  transparent
          );
}


.identity-label {
  display: block;

  margin-top: 24px;

  color: var(--bronze);

  font-size: 8px;

  letter-spacing: 3px;

  text-transform: uppercase;
}


.about-identity-card strong {
  display: block;

  margin-top: 7px;

  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size: 17px;

  font-weight: 400;
}


.about-identity-card .status-available {
  color: #a9b99c;
}


/* SCROLL */

.about-scroll {
  position: absolute;

  z-index: 8;

  right: 5vw;
  bottom: 26px;

  display: flex;

  align-items: center;

  gap: 18px;

  color:
          rgba(238, 230, 213, 0.32);

  font-size: 7px;

  letter-spacing: 3px;
}


.about-scroll div {
  width: 75px;
  height: 1px;

  background:
          linear-gradient(
                  to right,
                  rgba(238, 230, 213, 0.12),
                  var(--bronze)
          );
}


/* =========================================================
   SHARED ABOUT SECTIONS
========================================================= */

.section-divider {
  position: relative;
}


.section-divider::before {
  content: "";

  position: absolute;

  top: 0;

  left: 8vw;
  right: 8vw;

  height: 1px;

  background:
          linear-gradient(
                  to right,
                  transparent,
                  rgba(200, 157, 96, 0.22),
                  transparent
          );
}


.about-profile,
.about-quickfacts,
.about-expertise,
.about-tools,
.about-resume,
.about-personal {
  padding:
          130px
          8vw;

  background: var(--bg-dark);
}


.about-section-heading {
  width: min(1300px, 100%);

  margin:
          0
          auto
          75px;

  display: flex;

  gap: 28px;

  align-items: flex-start;
}


.about-section-number {
  margin-top: 8px;

  color:
          rgba(200, 157, 96, 0.35);

  font-family: "Cinzel", serif;

  font-size: 15px;
}


.about-section-heading h2 {
  margin-top: 12px;

  font-family: "Cinzel", serif;

  font-size:
          clamp(42px, 5vw, 76px);

  line-height: 1;

  font-weight: 500;

  color: var(--cream);
}


/* =========================================================
   ABOUT QUICK FACTS
========================================================= */

.about-quickfacts {
  position: relative;

  padding:
          95px
          8vw;

  background:
          linear-gradient(
                  180deg,
                  #071510,
                  #06120f
          );
}


.quickfacts-inner {
  width: min(1450px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
          0.45fr
          1fr;

  gap: clamp(45px, 6vw, 85px);

  align-items: stretch;
}


.quickfacts-intro {
  display: flex;

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

  padding-right: 30px;
}


.quickfacts-intro h2 {
  margin-top: 15px;

  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size:
          clamp(32px, 4vw, 58px);

  font-weight: 500;

  line-height: 1.05;
}


.quickfacts-grid {
  display: grid;

  grid-template-columns:
          repeat(4, 1fr);

  gap: 1px;

  background:
          rgba(200, 157, 96, 0.14);
}


.quickfact-card {
  position: relative;

  min-height: 260px;

  padding:
          78px
          26px
          30px;

  display: flex;

  flex-direction: column;
  justify-content: flex-start;

  overflow: hidden;

  background:
          linear-gradient(
                  155deg,
                  rgba(23, 34, 25, 0.96),
                  rgba(10, 15, 11, 0.98)
          );

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


.quickfact-card::before {
  content: "";

  position: absolute;

  inset:
          0
          0
          auto;

  height: 3px;

  background:
          linear-gradient(
                  90deg,
                  var(--gold),
                  rgba(113, 128, 98, 0.35),
                  transparent
          );

  transform:
          translateX(-100%);

  transition:
          transform 0.45s ease;
}


.quickfact-card:hover {
  transform:
          translateY(-7px);

  background:
          linear-gradient(
                  155deg,
                  rgba(38, 56, 42, 0.98),
                  rgba(12, 20, 14, 0.98)
          );
}


.quickfact-card:hover::before {
  transform:
          translateX(0);
}


.quickfact-card span {
  position: absolute;

  top: 24px;
  left: 26px;

  color:
          rgba(200, 157, 96, 0.40);

  font-family: "Cinzel", serif;

  font-size: 18px;
}


.quickfact-card strong {
  min-height: 52px;

  display: flex;
  align-items: flex-start;

  color: var(--cream);

  font-family: "Cinzel", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}


.quickfact-card p {
  margin-top: 16px;

  color:
          rgba(238, 230, 213, 0.64);

  font-size: 13px;

  line-height: 1.75;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-layout {
  width: min(1180px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
          1.25fr
          0.75fr;

  gap: clamp(70px, 10vw, 150px);

  align-items: start;
}


.profile-lead {
  color: var(--sand);

  font-family: "Cinzel", serif;

  font-size:
          clamp(22px, 2.4vw, 34px);

  line-height: 1.55;
}


.profile-copy {
  margin-top: 45px;

  display: grid;

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

  gap:
          28px
          40px;
}


.profile-copy p {
  color:
          rgba(238, 230, 213, 0.64);

  font-size: 15px;

  line-height: 1.9;
}


.profile-copy p:last-child {
  grid-column: 2;
}


.profile-highlights {
  margin-top: 38px;

  display: grid;

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

  gap: 1px;

  background:
          rgba(200, 157, 96, 0.14);
}


.profile-highlights div {
  min-height: 112px;

  padding:
          23px
          22px;

  display: flex;

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

  background:
          rgba(13, 20, 15, 0.96);
}


.profile-highlights span {
  color: var(--bronze);

  font-size: 8px;

  letter-spacing: 2px;

  text-transform: uppercase;
}


.profile-highlights strong {
  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size: 17px;

  font-weight: 500;

  line-height: 1.3;
}


.profile-quote {
  position: relative;

  padding:
          55px
          0
          0
          40px;

  border-left:
          1px solid
          rgba(200, 157, 96, 0.25);
}


.quote-mark {
  position: absolute;

  top: -15px;
  left: 24px;

  color:
          rgba(200, 157, 96, 0.18);

  font-family: Georgia, serif;

  font-size: 90px;

  line-height: 0;
}


.profile-quote blockquote {
  position: relative;

  z-index: 2;

  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size:
          clamp(19px, 2vw, 26px);

  line-height: 1.65;
}


.quote-name {
  display: block;

  margin-top: 27px;

  color: var(--bronze);

  font-size: 10px;

  letter-spacing: 2px;

  text-transform: uppercase;
}


/* =========================================================
   EXPERTISE
========================================================= */

.about-expertise {
  background:
          radial-gradient(
                  circle at 50% 50%,
                  rgba(70, 94, 64, 0.10),
                  transparent 45%
          ),
          var(--bg-dark);
}


.expertise-grid {
  width: min(1300px, 100%);

  margin: 0 auto;

  display: grid;

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

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

  border-left:
          1px solid
          rgba(255, 255, 255, 0.07);
}


.expertise-card {
  position: relative;

  min-height: 330px;

  padding:
          42px
          45px;

  border-right:
          1px solid
          rgba(255, 255, 255, 0.07);

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

  background:
          rgba(17, 25, 19, 0.30);

  overflow: hidden;

  transition:
          background 0.4s,
          transform 0.4s;
}


.expertise-card::before {
  content: "";

  position: absolute;

  inset:
          0
          0
          auto;

  height: 1px;

  background:
          linear-gradient(
                  90deg,
                  transparent,
                  rgba(200, 157, 96, 0.65),
                  transparent
          );

  opacity: 0;

  transition: opacity 0.35s;
}


.expertise-card:hover {
  background:
          rgba(38, 56, 42, 0.33);

  transform:
          translateY(-5px);
}


.expertise-card:hover::before {
  opacity: 1;
}


.expertise-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  color: var(--bronze);

  font-size: 10px;

  letter-spacing: 2px;
}


.expertise-symbol {
  color:
          rgba(200, 157, 96, 0.45);

  font-family: "Cinzel", serif;

  font-size: 30px;
}


.expertise-card h3 {
  margin-top: 53px;

  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size:
          clamp(25px, 2.5vw, 35px);

  font-weight: 500;
}


.expertise-card p {
  width: min(450px, 100%);

  margin-top: 20px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.85;
}


.expertise-card .expertise-result {
  margin-top: 18px;

  color:
          rgba(209, 192, 155, 0.82);

  font-size: 12px;

  line-height: 1.65;
}


.expertise-tags {
  margin-top: 31px;

  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}


.expertise-tags span {
  padding:
          7px
          10px;

  color:
          rgba(238, 230, 213, 0.60);

  border:
          1px solid
          rgba(200, 157, 96, 0.17);

  font-size: 8px;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}


/* =========================================================
   TOOLS
========================================================= */

.tools-grid {
  width: min(1300px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
          repeat(4, 1fr);

  gap: 1px;

  background:
          rgba(200, 157, 96, 0.12);
}


.tool-item {
  position: relative;

  min-height: 155px;

  padding: 27px;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  background: #071510;

  overflow: hidden;

  transition: background 0.3s;
}


.tool-item:hover {
  background: var(--forest-dark);
}


.tool-item > span {
  margin-bottom: auto;

  color:
          rgba(200, 157, 96, 0.38);

  font-size: 8px;

  letter-spacing: 2px;
}


.tool-item strong {
  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size: 18px;

  font-weight: 500;
}


.tool-item small {
  margin-top: 7px;

  color: var(--muted);

  font-size: 10px;

  line-height: 1.5;

  letter-spacing: 1px;

  text-transform: uppercase;
}


.tool-meter {
  position: relative;

  width: 100%;
  height: 2px;

  margin-top: 18px;

  background:
          rgba(238, 230, 213, 0.08);
}


.tool-meter::after {
  content: "";

  position: absolute;

  inset: 0;

  width: var(--tool-level);

  background:
          linear-gradient(
                  90deg,
                  var(--gold),
                  var(--moss)
          );

  transform-origin: left;

  transform:
          scaleX(0.55);

  transition:
          transform 0.45s ease;
}


.tool-item:hover .tool-meter::after,
.tool-item.is-visible .tool-meter::after {
  transform:
          scaleX(1);
}


/* =========================================================
   RESUME
========================================================= */

.about-resume {
  background:
          radial-gradient(
                  circle at 14% 40%,
                  rgba(167, 124, 73, 0.07),
                  transparent 30%
          ),
          var(--bg-dark);
}


.resume-columns {
  width: min(1200px, 100%);

  margin: 0 auto;

  display: grid;

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

  gap: clamp(80px, 10vw, 145px);
}


.resume-column-title {
  margin-bottom: 50px;
}


.resume-column-title > span {
  color: var(--gold);

  font-size: 18px;

  letter-spacing: 3px;
}


.resume-column-title h3 {
  margin-top: 10px;

  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size: 45px;

  font-weight: 500;
}


.timeline {
  position: relative;

  padding-left: 28px;

  border-left:
          1px solid
          rgba(200, 157, 96, 0.18);
}


.timeline-item {
  position: relative;

  padding:
          0
          0
          55px
          28px;
}


.timeline-item:last-child {
  padding-bottom: 0;
}


.timeline-marker {
  position: absolute;

  top: 7px;
  left: -34px;

  width: 11px;
  height: 11px;

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

  border-radius: 50%;

  background: var(--bg-dark);
}


.timeline-item.is-visible .timeline-marker {
  background: var(--bronze);

  box-shadow:
          0 0 16px
          rgba(167, 124, 73, 0.28);
}


.timeline-item.active .timeline-marker {
  background: var(--gold);

  box-shadow:
          0 0 18px
          rgba(200, 157, 96, 0.34);
}


.timeline-date {
  color: var(--bronze);

  font-size: 12px;

  letter-spacing: 2.5px;
}


.timeline-item h4 {
  margin-top: 11px;

  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size: 23px;

  font-weight: 500;
}


.timeline-place {
  margin-top: 6px !important;

  color: var(--sand) !important;

  font-size: 10px !important;

  letter-spacing: 1px;

  text-transform: uppercase;
}


.timeline-item p {
  width: min(410px, 100%);

  margin-top: 15px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.8;
}


/* =========================================================
   PERSONAL
========================================================= */

.personal-layout {
  width: min(1180px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
          1fr
          0.8fr;

  gap: clamp(80px, 12vw, 170px);

  align-items: start;
}


.personal-text {
  display: grid;

  gap: 26px;
}


.personal-text p {
  color: var(--muted);

  font-size: 15px;

  line-height: 1.95;
}


.personal-text p:first-child {
  color: var(--sand);

  font-size: 18px;
}


.interest-list {
  border-top:
          1px solid
          rgba(255, 255, 255, 0.07);
}


.interest-list div {
  min-height: 70px;

  display: grid;

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

  align-items: center;

  column-gap: 25px;

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

  transition:
          padding-left 0.3s,
          color 0.3s;
}


.interest-list div:hover {
  padding-left: 10px;
}


.interest-list span {
  grid-row:
          1
          / span 2;

  color: var(--bronze);

  font-size: 8px;

  letter-spacing: 2px;
}


.interest-list strong {
  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size: 18px;

  font-weight: 400;
}


.interest-list small {
  margin-top: 6px;

  color:
          rgba(238, 230, 213, 0.44);

  font-size: 10px;

  letter-spacing: 1px;

  text-transform: uppercase;
}


/* =========================================================
   ABOUT SCROLL MOTION
========================================================= */

.about-progress-track {
  position: fixed;

  left: 28px;
  top: 150px;
  bottom: 34px;

  z-index: 850;

  width: 1px;

  background:
          rgba(238, 230, 213, 0.08);

  pointer-events: none;
}


.about-progress-fill {
  width: 100%;
  height: 100%;

  background:
          linear-gradient(
                  180deg,
                  var(--gold),
                  var(--moss)
          );

  transform:
          scaleY(0);

  transform-origin: top;
}


.about-reveal {
  opacity: 0;

  transform:
          translateY(32px);

  transition:
          opacity 0.72s ease,
          transform 0.72s ease;

  transition-delay:
          var(--reveal-delay, 0ms);
}


.about-reveal.is-visible {
  opacity: 1;

  transform:
          translateY(0);
}


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

  .about-reveal {
    opacity: 1;

    transform: none;

    transition: none;
  }


  .tool-meter::after {
    transform:
            scaleX(1);
  }

}



/* =========================================================
   CTA
========================================================= */

.about-cta {
  position: relative;

  padding:
          160px
          8vw;

  text-align: center;

  overflow: hidden;

  background:
          radial-gradient(
                  circle at 50% 55%,
                  rgba(113, 128, 98, 0.14),
                  transparent 34%
          ),
          #06120f;

  border-top:
          1px solid
          rgba(200, 157, 96, 0.15);
}


.about-cta::before {
  content: "";

  position: absolute;

  width: 480px;
  height: 480px;

  top: 50%;
  left: 50%;

  transform:
          translate(-50%, -50%)
          rotate(45deg);

  border:
          1px solid
          rgba(200, 157, 96, 0.07);

  pointer-events: none;
}


.about-cta h2 {
  position: relative;

  z-index: 2;

  margin:
          22px
          auto
          0;

  font-family: "Cinzel", serif;

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

  font-weight: 500;

  line-height: 1.05;

  color: var(--cream);
}


.about-cta h2 span {
  display: block;

  color: var(--moss);
}


.about-cta p {
  position: relative;

  z-index: 2;

  width: min(520px, 100%);

  margin:
          27px
          auto
          0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.8;
}


.about-cta-button {
  position: relative;

  z-index: 2;

  display: inline-flex;

  align-items: center;

  gap: 24px;

  margin-top: 40px;

  padding:
          15px
          2px;

  color: var(--cream);

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

  font-size: 10px;

  letter-spacing: 2.5px;

  text-transform: uppercase;

  transition: color 0.3s;
}


.about-cta-button span {
  transition: transform 0.3s;
}


.about-cta-button:hover {
  color: var(--gold);
}


.about-cta-button:hover span {
  transform:
          translate(4px, -4px);
}


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

.about-footer {
  min-height: 110px;

  padding:
          30px
          8vw;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  background: #05100d;

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

  color:
          rgba(238, 230, 213, 0.34);

  font-size: 10px;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}


.about-footer a {
  color: var(--cream);

  font-family: "Cinzel", serif;

  font-size: 15px;

  letter-spacing: 2px;
}


/* ACTIVE SIDE MENU ITEM */

.side-navigation > a.active {
  color: var(--gold);

  padding-left: 7px;
}


/* =========================================================
   ABOUT RESPONSIVE
========================================================= */

@media (max-width: 1180px) {

  .about-hero {
    padding:
            60px
            6vw
            30px;
  }

  .about-hero-inner {
    min-height: 760px;
  }

  .about-hero-intro {
    width: min(470px, 42vw);
  }

  .about-portrait-wrap {
    width: min(48vw, 540px);
  }

  .about-identity-card {
    width: min(290px, 24vw);
  }


  .quickfacts-inner {
    grid-template-columns: 1fr;
  }


  .quickfacts-intro {
    max-width: 620px;

    padding-right: 0;
  }


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

}


@media (max-width: 980px) {

  .about-hero {
    min-height: auto;

    padding:
            85px
            6vw
            80px;
  }

  .about-hero-inner {
    min-height: auto;

    display: flex;
    flex-direction: column;

    gap: 38px;
  }

  .about-hero-intro,
  .about-portrait-wrap,
  .about-identity-card {
    position: relative;

    top: auto;
    left: auto;
    right: auto;
    bottom: auto;

    transform: none;
  }

  .about-hero-intro {
    order: 1;

    width: 100%;
    max-width: 100%;
  }

  .about-portrait-wrap {
    order: 2;

    width: 100%;
    height: auto;

    margin: 0 auto;

    display: flex;
    justify-content: center;
  }

  .about-portrait-wrap::before {
    width: min(58vw, 340px);
  }

  .about-portrait-wrap::after {
    width: min(72vw, 460px);
  }

  .about-portrait {
    max-width: 390px;
  }

  .about-identity-card {
    order: 3;

    width: min(520px, 100%);

    margin: 0 auto;
  }

  .about-scroll {
    display: none;
  }


  .about-profile,
  .about-quickfacts,
  .about-expertise,
  .about-tools,
  .about-resume,
  .about-personal {
    padding:
            95px
            6vw;
  }


  .about-progress-track {
    display: none;
  }


  .about-section-heading {
    margin-bottom: 52px;
  }


  .profile-layout,
  .resume-columns,
  .personal-layout {
    grid-template-columns: 1fr;

    gap: 55px;
  }


  .profile-copy,
  .expertise-grid {
    grid-template-columns: 1fr;
  }


  .profile-copy p:last-child {
    grid-column: auto;
  }

}


@media (max-width: 750px) {

  .about-hero h1 {
    font-size:
            clamp(62px, 19vw, 98px);

    letter-spacing: -2px;
  }

  .about-hero h1 span {
    margin-left: 24px;
  }

  .about-role {
    font-size: 16px;
  }

  .about-introduction {
    font-size: 14px;
  }

  .about-hero-actions {
    gap: 18px;
  }

  .about-portrait {
    max-width: 310px;
  }

  .about-portrait-wrap::before {
    width: 220px;
  }

  .about-portrait-wrap::after {
    width: 300px;
  }


  .quickfacts-grid,
  .profile-highlights {
    grid-template-columns: 1fr;
  }


  .quickfact-card {
    min-height: 220px;
  }


  .about-section-heading {
    gap: 18px;
  }


  .about-section-heading h2 {
    font-size:
            clamp(34px, 11vw, 54px);
  }

}


@media (max-width: 470px) {

  .about-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-portrait-wrap::before {
    width: 210px;
  }

  .about-portrait-wrap::after {
    width: 270px;
  }

  .about-portrait {
    max-width: 250px;
  }


  .tools-grid {
    grid-template-columns: 1fr;
  }


  .about-identity-card {
    padding:
            30px
            25px;
  }

}

/* =========================================================
   HERO VIDEO – komplet video, lydknap og bundplaceret CTA
========================================================= */
.hero {
  height: calc(100vh - 173px);
  height: calc(100dvh - 173px);
  min-height: 0;
  isolation: isolate;
}

.hero-video {
  object-fit: contain; /* Vis hele videoen uden at beskære kanterne */
  object-position: center;
  background: #06120f;
}

/* Mere gennemsigtig toning, så videoen fortsat er tydelig
   og blender bedre ned i næste sektion */
.hero-overlay {
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(6, 18, 15, 0.08) 0%,
    rgba(6, 18, 15, 0.10) 54%,
    rgba(4, 17, 14, 0.42) 82%,
    rgba(4, 17, 14, 0.78) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 29px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 220px);
  text-align: center;
  z-index: 6;
}

.hero-button {
  margin-top: 0;
  padding: 12px 4px;
}

.hero-sound-button {
  position: absolute;
  top: 25px;
  right: 30px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 112px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--cream);
  border: 1px solid rgba(200, 157, 96, 0.45);
  border-radius: 24px;
  background: rgba(6, 20, 16, 0.78);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-sound-button:hover,
.hero-sound-button:focus-visible {
  background: rgba(20, 54, 40, 0.95);
  border-color: var(--gold);
}

.sound-icon { width: 19px; height: 19px; flex: none; }
.sound-icon-on { display: none; }
.hero-sound-button.sound-on .sound-icon-on { display: block; }
.hero-sound-button.sound-on .sound-icon-off { display: none; }
.sound-button-text { font-size: 10px; letter-spacing: 1.5px; white-space: nowrap; }

@media (max-width: 750px) {
  .hero {
    height: calc(100vh - 147px);
    height: calc(100dvh - 147px);
    min-height: 0;
  }
  .hero-content {
    bottom: 20px;
    max-width: calc(100% - 36px);
  }
  .hero-button { font-size: 10px; letter-spacing: 1.6px; }
  .hero-sound-button {
    top: 14px;
    right: 14px;
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  .sound-button-text { display: none; }
}

/* Videobaggrund – samme mørke, kølige grøn som introvideoen.
   Den ses kun, når hele videoen vises med object-fit: contain. */
.hero { background-color: #04110e; }
.hero-video { background: linear-gradient(180deg, #06120f 0%, #04110e 100%); }


/* =========================================================
   NATURTEMA V3 – SAMMENHÆNGENDE SKOVGRØN, INGEN GLOW
========================================================= */
:root {
  --bg-dark: #04130f;
  --bg-green: #071913;
  --forest-dark: #091e17;
  --forest: #123126;
  --moss: #66745c;
  --olive: #918d65;
}

body, .about-page { background-color: var(--bg-dark); }
.main-header {
  background: linear-gradient(180deg, #081b15 0%, #061711 100%);
}
.top-navigation { background: #091d16; }

/* Glød fjernes – kun den rene mørkegrønne baggrund og dekorative linjer */
.hero-glow, .about-ambient { display: none !important; }
.hero {
  --video-side-space: 0px;
  background: #04130f;
}
.hero-video { background: transparent; }
.hero-overlay {
  background: linear-gradient(to bottom,
    rgba(4,19,15,0.035) 0%,
    rgba(4,19,15,0.025) 62%,
    rgba(4,19,15,0.28) 88%,
    rgba(4,19,15,0.62) 100%);
}

/* Træsøjler fylder KUN ledige områder ved object-fit: contain. */
.video-side-ornament {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--video-side-space);
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  background: #04130f;
  transition: width 0.18s ease-out;
}
.video-side-left { left: 0; }
.video-side-right { right: 0; transform: scaleX(-1); }
.video-side-ornament::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/images/ancient-tree.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: .92;
}
.video-side-ornament::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 65%, #04130f 100%);
  pointer-events: none;
}

/* Dekorativ gotisk adskillelse mellem heroen og projekterne. */
.project-showcase {
  margin-top: 0;
  padding-top: 145px;
  background: #04130f;
}
.project-showcase::before {
  content: "";
  position: absolute;
  display: block;
  height: 2px;
  top: 0;
  left: 5%;
  right: 5%;
  background: linear-gradient(to right,
    transparent 0%, rgba(150,127,77,.26) 16%,
    rgba(192,158,95,.62) 50%, rgba(150,127,77,.26) 84%,
    transparent 100%);
  z-index: 8;
}
.project-showcase::after {
  content: "❖";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  font-family: "Cinzel", serif;
  font-size: 26px;
  line-height: 26px;
  color: #a88d58;
  background: #04130f;
  padding: 0 23px;
  text-shadow: none;
}

/* Om mig – samme grønne nuancer og uden lyse, udtværede baggrundsgløder. */
.about-hero,
.about-quickfacts,
.about-profile,
.about-expertise,
.about-tools,
.about-resume,
.about-personal,
.about-cta {
  background: #04130f;
}
.about-hero { border-bottom: 0; }
.about-hero::before,
.about-hero::after { opacity: .45; }
.about-cta { border-top-color: rgba(169,139,82,.24); }
.about-footer { background: #061711; }

/* Ens, underspillede adskillere på Om mig-siden. */
.section-divider::before {
  background: linear-gradient(to right, transparent,
    rgba(177,147,85,.35) 30%, rgba(177,147,85,.35) 70%, transparent);
}
@media (max-width: 750px) {
  .project-showcase { padding-top: 100px; }
  .video-side-ornament::before { opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .video-side-ornament { transition: none; }
}


/* =========================================================
   SLOT-PORT / FORSIDE – 13. NOVEMBER
   Ligger oven over hero, og stikker op gennem navigationen.
   Juster --castle-top og --castle-height-offset efter behov.
========================================================= */
body:not(.about-page):not(.contact-page) { --castle-top: 52px; }

.castle-hero-frame {
  position: absolute;
  left: 0;
  top: var(--castle-top);
  width: 100%;
  height: calc(100dvh - var(--castle-top));
  z-index: 48;
  pointer-events: none;
  overflow: visible;
}
.castle-hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
}
/* Navigationen bliver liggende øverst og alle links forbliver aktive. */
.top-navigation { z-index: 50; }
/* Heroens indhold ligger inde i porten. */
.hero { isolation: auto; }
.hero-video {
  inset: auto;
  left: 50%;
  top: 11%;
  transform: translateX(-50%);
  width: 69%;
  height: 84%;
  object-fit: contain;
}
/* Mørke sidestykker og den gamle trægrafik er ikke længere nødvendige. */
.video-side-ornament { display: none !important; }
/* Lydknappen og CTA skal stadig kunne klikkes selv om rammen ligger foran. */
.hero-sound-button, .hero-content, .hero-scroll { z-index: 60; }

@media (max-width: 1000px) {
  .castle-hero-frame { top: 83px; height: calc(100dvh - 83px); }
  .hero-video { width: 76%; height: 78%; top: 15%; }
}
@media (max-width: 750px) {
  /* På mobil bliver porten i selve heroen for ikke at overdække nav/menu. */
  .castle-hero-frame { top: 147px; height: calc(100dvh - 147px); z-index: 4; }
  .hero-video { width: 78%; height: 70%; top: 18%; }
  .hero-sound-button { z-index: 60; }
}


/* =========================================================
   SLOT-PORT V2 – større og FORAN menubaren
   Testversion: mere sten i siderne og højere tårne.
========================================================= */
body:not(.about-page):not(.contact-page) {
  --castle-top: -12px;
}
body:not(.about-page):not(.contact-page) .castle-hero-frame {
  left: -7%;
  top: var(--castle-top);
  width: 114%;
  height: calc(100dvh + 22px);
  z-index: 80; /* foran både menu og header */
  pointer-events: none; /* menulinks kan stadig klikkes */
}
body:not(.about-page):not(.contact-page) .castle-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
/* Hold brugerfladeelementerne oven på den dekorative port. */
body:not(.about-page):not(.contact-page) .menu-toggle { z-index: 1000; }
body:not(.about-page):not(.contact-page) .hero-sound-button,
body:not(.about-page):not(.contact-page) .hero-content,
body:not(.about-page):not(.contact-page) .hero-scroll { z-index: 85; }

@media (max-width: 1000px) {
  body:not(.about-page):not(.contact-page) .castle-hero-frame {
    left: -9%;
    width: 118%;
    top: 0;
    height: calc(100dvh + 10px);
  }
}
@media (max-width: 750px) {
  /* Mobil: undgå at dække hele den smalle navigation. */
  body:not(.about-page):not(.contact-page) .castle-hero-frame {
    left: -16%;
    width: 132%;
    top: 145px;
    height: calc(100dvh - 145px);
    z-index: 4;
  }
}

/* =========================================================
   SLOT-PORT V3 – sten under navigation og nederst over næste sektion
   Rediger kun disse regler ved finjustering.
========================================================= */
@media (min-width: 751px) {
  body:not(.about-page):not(.contact-page) .castle-hero-frame {
    top: 14px;                 /* 26 px lavere end den gamle -12px */
    height: calc(100dvh + 43px); /* bundstenene rækker ned i næste sektion */
    z-index: 80;
  }
  /* Navigationsteksten ligger synligt OVENPÅ murens øverste sten.
     Den grønne menuplade fjernes helt. */
  body:not(.about-page):not(.contact-page) .top-navigation {
    z-index: 92;
    background: transparent !important;
    border: 0;
    min-height: 58px;
    pointer-events: none;
  }
  body:not(.about-page):not(.contact-page) .top-navigation > a,
  body:not(.about-page):not(.contact-page) .top-navigation .nav-dropdown,
  body:not(.about-page):not(.contact-page) .top-navigation button { pointer-events: auto; }
  body:not(.about-page):not(.contact-page) .top-navigation > a,
  body:not(.about-page):not(.contact-page) .nav-project-button {
    color: #19211c;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255,255,255,.55);
  }
  body:not(.about-page):not(.contact-page) .top-navigation > a:hover,
  body:not(.about-page):not(.contact-page) .top-navigation > a.active,
  body:not(.about-page):not(.contact-page) .nav-project-button:hover { color: #38582b; }
}
body:not(.about-page):not(.contact-page) .hero { height: calc(100dvh - 173px + 43px); min-height: 0; }
body:not(.about-page):not(.contact-page) .hero-content {
  bottom: 85px;
  width: max-content;
  max-width: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 96;
}
body:not(.about-page):not(.contact-page) .hero-button { margin: 0; padding: 9px 4px; }
body:not(.about-page):not(.contact-page) .hero-sound-button {
  position: static;
  min-width: 114px;
  min-height: 38px;
  height: auto;
  width: auto;
  padding: 9px 14px;
  z-index: auto;
}
body:not(.about-page):not(.contact-page) .hero-scroll { display: none !important; }
/* Klikfladen dækker videoens centrum, men ikke CTA eller menuerne. */
body:not(.about-page):not(.contact-page) .hero-play-area {
  position: absolute;
  z-index: 83;
  inset: 9% 19% 16%;
  display: grid;
  place-items: center;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: white;
}
body:not(.about-page):not(.contact-page) .hero-play-area:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -8px;
}
.hero-play-feedback {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(3,14,11,.75);
  font-size: 28px;
  opacity: 0;
  transform: scale(.87);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.hero-play-area.show-feedback .hero-play-feedback { opacity: 1; transform: scale(1); }
.hero-play-area.is-paused .hero-play-feedback::after { content: '▶'; margin-left: 4px; }
.hero-play-area:not(.is-paused) .hero-play-feedback::after { content: 'Ⅱ'; }
@media (max-width: 1000px) and (min-width: 751px) {
  body:not(.about-page):not(.contact-page) .castle-hero-frame { top: 14px; height: calc(100dvh + 43px); }
}
@media (max-width: 750px) {
  body:not(.about-page):not(.contact-page) .hero { height: calc(100dvh - 147px + 10px); }
  body:not(.about-page):not(.contact-page) .hero-content { bottom: 25px; gap: 8px; }
  body:not(.about-page):not(.contact-page) .hero-sound-button { min-width: 42px; padding: 8px 12px; }
  body:not(.about-page):not(.contact-page) .hero-play-area { inset: 20% 12% 21%; }
}

/* =========================================================
   SLOT-PORT V4 – præcis bundlinje og læsbar navigation
   Hero beholder den oprindelige viewport-højde.
========================================================= */
@media (min-width: 751px) {
  /* Slottets nederste sten og næste sektions start flugter med
     skærmens nederste kant – ingen ekstra hero-højde. */
  body:not(.about-page):not(.contact-page) .hero {
    height: calc(100vh - 173px);
    height: calc(100dvh - 173px);
    min-height: 0;
  }
  body:not(.about-page):not(.contact-page) .castle-hero-frame {
    top: 14px;
    height: calc(100vh - 14px);
    height: calc(100dvh - 14px);
  }

  /* Giv de fire navigationspunkter tydelige, diskrete
     knapper oven på broens flade stenrække. */
  body:not(.about-page):not(.contact-page) .top-navigation {
    background: transparent !important;
    border: 0;
    z-index: 92;
    gap: clamp(14px, 3.25vw, 60px);
    pointer-events: none;
  }
  body:not(.about-page):not(.contact-page) .top-navigation > a,
  body:not(.about-page):not(.contact-page) .top-navigation .nav-dropdown {
    transform: translateY(70px);
    pointer-events: auto;
  }
  body:not(.about-page):not(.contact-page) .top-navigation > a,
  body:not(.about-page):not(.contact-page) .top-navigation .nav-project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 9px 17px;
    border: 1px solid rgba(210, 180, 123, .72);
    border-radius: 6px;
    background: rgba(9, 27, 22, .94);
    box-shadow: 0 3px 8px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.08);
    color: #f1e8d4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  body:not(.about-page):not(.contact-page) .top-navigation > a:hover,
  body:not(.about-page):not(.contact-page) .top-navigation > a.active,
  body:not(.about-page):not(.contact-page) .top-navigation .nav-project-button:hover {
    background: rgba(30, 64, 44, .98);
    border-color: #d3b47c;
    color: #fff3d9;
    box-shadow: 0 3px 11px rgba(0,0,0,.5), inset 0 0 0 1px rgba(209,179,119,.1);
  }
  body:not(.about-page):not(.contact-page) .top-navigation > a::after,
  body:not(.about-page):not(.contact-page) .top-navigation .nav-project-button::after {
    display: none;
  }
  /* Dropdown skal blive under projektknappen. */
  body:not(.about-page):not(.contact-page) .top-navigation .dropdown-menu {
    z-index: 110;
  }
}

/* Samme regel på mobil: port og sektionsskel skal ende samtidigt.
   Behold den almindelige mobile navigation frem for at lægge
   knapper oven på de for små sten. */
@media (max-width: 750px) {
  body:not(.about-page):not(.contact-page) .hero {
    height: calc(100vh - 147px);
    height: calc(100dvh - 147px);
    min-height: 0;
  }
  body:not(.about-page):not(.contact-page) .castle-hero-frame {
    height: calc(100vh - 145px);
    height: calc(100dvh - 145px);
  }
}


/* =========================================================
   SLOT-PORT V5 – ens skovgrøn, bundsten til viewport-kant,
   lydknappen uændret og Udforsk-knappen nedenunder.
   Vi ændrer ikke hero-sektionens højde.
========================================================= */
:root { --castle-unified-green: #081b15; }
body:not(.about-page):not(.contact-page),
body:not(.about-page):not(.contact-page) .main-header,
body:not(.about-page):not(.contact-page) .hero,
body:not(.about-page):not(.contact-page) .project-showcase {
  background: var(--castle-unified-green);
}
/* Brug en fælles baggrund bag menuen og slottet uden grønne farveskift. */
body:not(.about-page):not(.contact-page) .top-navigation { background: transparent !important; }
@media (min-width: 751px) {
  /* Rammens nederste sten flyttes ca. 20 px ned, mens sektionsgrænsen
     forbliver præcis nederst i viewporten ved første visning. */
  body:not(.about-page):not(.contact-page) .castle-hero-frame {
    top: 34px;
    height: calc(100dvh - 14px);
  }
  /* Lydknappen bliver hvor den var, men Udforsk flyttes nedenunder. */
  body:not(.about-page):not(.contact-page) .hero-content { bottom: 40px; }
}
/* Ingen separat underliggende farveflade foran videoens sideområder. */
body:not(.about-page):not(.contact-page) .hero-video { background: transparent; }

/* =========================================================
   SLOT-PORT V6 — navigation over broen, video til bund og
   ensfarvet 3D-karrusel uden mørke sidefelter.
   Disse overrides gælder kun forsiden.
========================================================= */
@media (min-width: 751px) {
  /* Menuknapper mellem stregen under navnet og slottets takker. */
  body:not(.about-page):not(.contact-page) .top-navigation > a,
  body:not(.about-page):not(.contact-page) .top-navigation .nav-dropdown {
    transform: translateY(-12px);
  }

  /* Udfyld portåbningens højde frem til nederste stenrække.
     cover udfylder uden sorte bånd, men kan beskære videoen en smule. */
  body:not(.about-page):not(.contact-page) .hero-video {
    left: 50%;
    top: 64px;
    width: 67%;
    height: calc(100% - 64px);
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center center;
  }
}

/* Fjern de mørke gradientpaneler ved begge karruselpile. */
body:not(.about-page):not(.contact-page) .carousel-fade,
body:not(.about-page):not(.contact-page) .carousel-fade-left,
body:not(.about-page):not(.contact-page) .carousel-fade-right {
  display: none !important;
  background: none !important;
}
/* Samme skovgrønne grundfarve bag hele karussellen. */
body:not(.about-page):not(.contact-page) .gothic-carousel-shell,
body:not(.about-page):not(.contact-page) .gothic-carousel {
  background: transparent;
}

@media (max-width: 750px) {
  /* Undgå at beskære hele mobilvideoen for at fylde en smal port. */
  body:not(.about-page):not(.contact-page) .hero-video {
    width: 78%;
    top: 15%;
    height: 82%;
    object-fit: contain;
  }
}

/* =========================================================
   SLOT-PORT V8 – MOBIL: klip broen væk, kun sidemure.
   Desktop påvirkes ikke. Alle mål kan justeres her.
========================================================= */
@media (max-width: 750px) {
  body:not(.about-page):not(.contact-page) {
    --mobile-castle-header: 147px; /* header + mobilnavigation */
    --mobile-castle-stone: 10px; /* frihold nederste stenkant */
  }

  /* Hero slutter præcis i viewportens bund, så skillelinjen
     starter umiddelbart under portens nederste stenrække. */
  body:not(.about-page):not(.contact-page) .hero {
    height: calc(100vh - var(--mobile-castle-header));
    height: calc(100dvh - var(--mobile-castle-header));
    min-height: 0;
    overflow: hidden;
  }

  /* Frame er et udsnitsvindue: borgens top er uden for vinduet,
     men billedets bundsten holdes fast ved heroens nederste kant. */
  body:not(.about-page):not(.contact-page) .castle-hero-frame {
    position: absolute;
    top: var(--mobile-castle-header);
    left: -16%;
    width: 132%;
    height: calc(100vh - var(--mobile-castle-header));
    height: calc(100dvh - var(--mobile-castle-header));
    overflow: hidden;
    z-index: 55;
    pointer-events: none;
  }
  body:not(.about-page):not(.contact-page) .castle-hero-frame img {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 185%; /* klip øverste ca. 46 % væk */
    max-width: none;
    object-fit: fill;
    transform: none;
  }

  /* Selve videoen er synlig helt fra navigationslinjen
     til lige over slottets bundsten. På den smalle mobilflade
     beskærer cover siderne af videobilledet (ikke proportioner). */
  body:not(.about-page):not(.contact-page) .hero-video {
    position: absolute;
    inset: auto;
    top: 0;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    height: calc(100% - var(--mobile-castle-stone));
    object-fit: cover;
    object-position: center center;
    background: transparent;
    z-index: 0;
  }

  /* Styring forbliver synlig inden for de nederste sten. */
  body:not(.about-page):not(.contact-page) .hero-content {
    bottom: 32px;
    gap: 8px;
    z-index: 96;
  }
  body:not(.about-page):not(.contact-page) .hero-play-area {
    inset: 3% 13% 22%;
    z-index: 83;
  }

  /* Adskillelsesstregen flugter med slutningen af heroen. */
  body:not(.about-page):not(.contact-page) .project-showcase {
    margin-top: 0;
    position: relative;
  }
  body:not(.about-page):not(.contact-page) .project-showcase::before {
    top: 0;
  }
}


/* =========================================================
   SLOT-PORT V9 – MOBIL: fuldbredde-video + KUN STENBROEN
   Desktop er uændret. Billedet borgbro-mobil.png er et udsnit
   af den originale borgport, ikke en ny illustration.
========================================================= */
@media (max-width: 750px) {
  :root {
    --mobile-bridge-height: clamp(92px, 28vw, 132px);
  }

  /* Fjern hele den gamle borgport med tårne på mobil. */
  body:not(.about-page):not(.contact-page) .castle-hero-frame {
    display: none !important;
  }

  /* Behold heroens enkle mobilhøjde og den gule streg i bunden. */
  body:not(.about-page):not(.contact-page) .hero {
    position: relative;
    height: calc(100dvh - 147px);
    min-height: 0;
    overflow: hidden;
    background: var(--castle-unified-green, #081b15);
  }

  /* Videoen starter UNDER stenbroen, fylder hele bredden,
     og bruger contain så den ikke zoomer voldsomt ind. */
  body:not(.about-page):not(.contact-page) .hero-video {
    position: absolute;
    top: var(--mobile-bridge-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100% - var(--mobile-bridge-height)) !important;
    max-width: none;
    transform: none !important;
    object-fit: contain;
    object-position: center top;
    background: var(--castle-unified-green, #081b15);
    z-index: 0;
  }

  /* Et grønt felt skjuler alt over broen, så videoen ikke kan ses der. */
  body:not(.about-page):not(.contact-page) .hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--mobile-bridge-height) + 1px);
    background: var(--castle-unified-green, #081b15);
    z-index: 46;
    pointer-events: none;
  }

  /* Stenbroen er lidt større end skærmen, så siderne ikke bliver klippet. */
  body:not(.about-page):not(.contact-page) .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 108%;
    height: var(--mobile-bridge-height);
    transform: translateX(-50%);
    background-image: url("assets/images/borgbro-mobil.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
    z-index: 47;
    pointer-events: none;
  }

  /* Knapper skal ligge nederst over videoen. */
  body:not(.about-page):not(.contact-page) .hero-content {
    position: absolute;
    bottom: 22px;
    z-index: 96;
  }

  body:not(.about-page):not(.contact-page) .hero-play-area {
    inset: var(--mobile-bridge-height) 0 20%;
    z-index: 83;
  }
}


/* =========================================================
   V11 – MOBIL: video direkte under broen og ingen tom hero-bund.
   Desktop er uændret. Videoen beholder sit 16:9-format.
========================================================= */
@media (max-width: 750px) {
  :root {
    --mobile-video-height: 56.25vw; /* 16:9 i skærmens fulde bredde */
    --mobile-controls-height: 86px;
  }

  body:not(.about-page):not(.contact-page) .hero {
    height: calc(var(--mobile-bridge-height) + var(--mobile-video-height) + var(--mobile-controls-height)) !important;
    min-height: 0 !important;
    max-height: none;
  }

  /* Video starter lidt bag stenbuen; broen dækker den øverste kant. */
  body:not(.about-page):not(.contact-page) .hero-video {
    top: calc(var(--mobile-bridge-height) - 14px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: var(--mobile-video-height) !important;
    object-fit: contain !important;
    object-position: center top !important;
    background: transparent !important;
  }

  /* Maskér kun det øverste felt bag stentakkerne. */
  body:not(.about-page):not(.contact-page) .hero::after {
    height: calc(var(--mobile-bridge-height) - 14px) !important;
  }

  /* Stenbroens udseende og bredde fra V10 er uændret. */
  body:not(.about-page):not(.contact-page) .hero-content {
    bottom: 9px !important;
    gap: 3px;
    z-index: 96;
  }
  body:not(.about-page):not(.contact-page) .hero-sound-button {
    min-height: 34px;
    padding: 6px 12px;
  }
  body:not(.about-page):not(.contact-page) .hero-button {
    padding: 6px 4px;
  }
  body:not(.about-page):not(.contact-page) .hero-play-area {
    inset: calc(var(--mobile-bridge-height) - 14px) 0 var(--mobile-controls-height) !important;
  }
  body:not(.about-page):not(.contact-page) .project-showcase {
    margin-top: 0 !important;
  }
}

/* =========================================================
   FORSIDE – ekstra plads til 3D-rammer i projekter
========================================================= */

body:not(.about-page):not(.contact-page) .project-showcase {
  min-height: 1040px;
  padding-bottom: 120px;
  overflow: visible;
}

body:not(.about-page):not(.contact-page) .gothic-carousel-shell {
  height: 760px;
  overflow: visible;
}

body:not(.about-page):not(.contact-page) .carousel-project-info {
  bottom: 48px;
}

body:not(.about-page):not(.contact-page) .carousel-dots {
  bottom: 16px;
}

@media (max-width: 750px) {
  body:not(.about-page):not(.contact-page) .project-showcase {
    min-height: 860px;
    padding-bottom: 90px;
  }

  body:not(.about-page):not(.contact-page) .gothic-carousel-shell {
    height: 600px;
  }
}

/* =========================================================
   HOBBYER V2 – synlige pop-in-effekter og overlappende figurer
========================================================= */
.about-hobbies {
  position: relative;
  overflow: visible;
  padding: 105px 0 125px;
  background: var(--bg-dark);
}
.about-hobbies > .about-section-heading {
  width: min(1300px, 84vw);
  margin-bottom: 78px;
}
.hobbies-stack {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}
.hobby-panel {
  position: relative;
  width: 100%;
  height: clamp(520px, 64vh, 670px);
  overflow: visible; /* figurerne kan stikke op i forrige sektion */
  border-top: 1px solid rgba(200, 157, 96, .19);
}
.hobby-panel:last-child { border-bottom: 1px solid rgba(200,157,96,.19); }
.hobby-football { z-index: 2; background: #17271f; }
.hobby-gaming { z-index: 1; background: #0c1915; }
.hobby-panel-title {
  position: absolute;
  z-index: 6;
  top: 46px;
  left: 50%;
  width: min(600px, 52vw);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.hobby-panel-number {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 3px;
}
.hobby-panel-title h3 {
  margin-top: 12px;
  color: var(--cream);
  font-family: "Cinzel", serif;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.1;
  font-weight: 500;
}
.hobby-description {
  max-width: 540px;
  margin: 23px auto 0;
  color: rgba(238,230,213,.78);
  font-family: "Inter", sans-serif;
  font-size: clamp(13px, .98vw, 16px);
  line-height: 1.9;
  letter-spacing: .15px;
  text-wrap: balance;
}
.hobby-art {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
}
/* =========================================================
   HOBBYER V5 – flydende bevægelse og smooth hover
   Position -> hover -> idle: hver effekt har sit eget lag.
   Ingen pinde eller scroll-udløsning.
========================================================= */
.hobby-puppet {
  position: absolute;
  display: block;
  width: max-content;
  max-width: none;
  height: auto;
  pointer-events: auto;
  cursor: default;
  transform: none;
  animation: none;
  isolation: isolate;
}

/* Hover ligger på sit eget lag, ikke på det animerede element. */
.puppet-assembly {
  display: block;
  position: relative;
  width: max-content;
  height: 100%;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 950ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.hobby-puppet:hover .puppet-assembly {
  transform: translate3d(0, -19px, 0) scale(1.025);
}

/* Dette indre lag vipper altid, også når man holder musen over. */
.puppet-motion {
  display: block;
  width: max-content;
  height: 100%;
  transform-origin: var(--pivot-x, 50%) 72%;
  animation: hobby-idle var(--sway-time, 6.5s) ease-in-out infinite;
  animation-delay: var(--motion-delay, 0s);
  will-change: transform;
}
.hobby-image {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 13px 12px rgba(0,0,0,.28));
  transition: filter 950ms cubic-bezier(.22, 1, .36, 1);
}
.hobby-puppet:hover .hobby-image {
  filter: drop-shadow(0 21px 16px rgba(0,0,0,.40));
}

/* Håndholdt, kontinuerlig bevægelse uden synkroniserede stop. */
@keyframes hobby-idle {
  0%, 100% { transform: translate3d(0, 1px, 0) rotate(-0.65deg); }
  25% { transform: translate3d(1.2px, -1.5px, 0) rotate(0.55deg); }
  50% { transform: translate3d(-1px, 0, 0) rotate(-0.4deg); }
  75% { transform: translate3d(1px, -2px, 0) rotate(0.7deg); }
}

/* Den eksisterende størrelse og placering af alle seks figurer. */
.image-player { left: -1.5%; top: -17%; height: 70%; --motion-delay: -.6s; --sway-time: 6.5s; --pivot-x: 65%; }
.image-ball { left: 7%; top: 34%; height: 31%; --motion-delay: -2.2s; --sway-time: 5.5s; --pivot-x: 35%; }
.image-trophy { left: 3%; bottom: 2%; height: 39%; --motion-delay: -1.8s; --sway-time: 7.2s; }
.image-goalkeeper { right: -1%; top: -22%; height: 85%; --motion-delay: -3.2s; --sway-time: 6s; --pivot-x: 40%; }
.image-goal { right: -1%; bottom: -3%; height: 60%; --motion-delay: -1.3s; --sway-time: 7.8s; }
.image-boot { right: 14%; bottom: 4%; height: 29%; --motion-delay: -3.8s; --sway-time: 5.9s; }

@media (max-width: 980px) {
  .hobby-panel { height: clamp(490px, 65vh, 610px); }
  .hobby-panel-title { width: min(500px, 55vw); }
  .image-player { left: -6%; height: 62%; }
  .image-goalkeeper { right: -7%; height: 73%; }
  .image-goal { right: -4%; height: 51%; }
  .image-ball { left: 8%; height: 25%; }
  .image-trophy { height: 33%; }
  .image-boot { right: 16%; height: 25%; }
}
@media (max-width: 750px) {
  .about-hobbies { padding: 75px 0 100px; }
  .about-hobbies > .about-section-heading { width: 88vw; margin-bottom: 60px; }
  .hobby-panel { height: clamp(510px, 76svh, 660px); }
  .hobby-panel-title { top: 135px; width: min(80vw, 400px); }
  .hobby-panel-title h3 { font-size: clamp(35px, 9vw, 53px); }
  .hobby-description { font-size: 13px; line-height: 1.7; margin-top: 15px; }
  .image-player { left: -16%; top: -9%; height: 39%; }
  .image-ball { left: 8%; top: 48%; height: 19%; }
  .image-trophy { left: 2%; bottom: 1%; height: 25%; }
  .image-goalkeeper { right: -22%; top: -12%; height: 44%; }
  .image-goal { right: -13%; bottom: -3%; height: 30%; }
  .image-boot { right: 16%; bottom: 10%; height: 17%; }
  .hobby-puppet:hover .puppet-assembly { transform: translate3d(0,-11px,0) scale(1.015); }
}


/* =========================================================
   V6 – PROFIL UDEN KORT FORTALT / HOBBYER-SIDEBLOK
========================================================= */
.about-page .profile-layout {
  display: block;
  width: min(1250px, 100%);
  margin-inline: auto;
}
.about-page .profile-main { width: 100%; max-width: none; }
.about-page .profile-lead {
  max-width: 1050px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.55;
}
.about-page .profile-copy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 90px);
  max-width: 1180px;
}
.about-page .profile-copy p:last-child { grid-column: auto; }
.about-page .profile-highlights { max-width: 1180px; }

/* Gamingfigurer – samme svævende animation og samme hoverlag som fodbold. */
.gaming-controller {
  left: -2%; top: 6%; height: 61%;
  --motion-delay: -2.4s; --sway-time: 8.6s; --pivot-x: 45%;
}
.gaming-saber {
  right: -1%; top: -17%; height: 77%;
  --motion-delay: -3.7s; --sway-time: 9.3s; --pivot-x: 62%;
}
.gaming-creeper {
  right: 4%; bottom: -5%; height: 42%;
  --motion-delay: -1.8s; --sway-time: 8s; --pivot-x: 48%;
}
@media (max-width: 980px) {
  .gaming-controller { left: -9%; top: 11%; height: 49%; }
  .gaming-saber { right: -14%; top: -10%; height: 64%; }
  .gaming-creeper { right: 2%; height: 35%; }
}
@media (max-width: 750px) {
  .about-page .profile-copy { grid-template-columns: 1fr; }
  .gaming-controller { left: -16%; top: 1%; height: 31%; }
  .gaming-saber { right: -30%; top: -5%; height: 40%; }
  .gaming-creeper { right: -6%; bottom: 0; height: 25%; }
}

/* =========================================================
   KONTAKT – enkelt selvstændigt layout
========================================================= */
.contact-page { min-height: 100vh; background: var(--bg-dark); }
.contact-main {
  position: relative;
  min-height: calc(100svh - 173px);
  padding: clamp(85px, 12vh, 150px) 8vw 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.contact-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(33,74,57,.25),transparent 50%);
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; width: min(800px, 100%); text-align: center; }
.contact-kicker { font-size: 11px; color: var(--gold); letter-spacing: 4px; text-transform: uppercase; }
.contact-inner h1 { margin: 19px 0 24px; font-family: "Cinzel",serif; font-size: clamp(57px, 9vw, 112px); font-weight: 500; color: var(--cream); }
.contact-inner > p { max-width: 610px; margin: 0 auto; color: var(--muted); line-height: 1.9; font-size: clamp(14px, 1.3vw, 17px); }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 43px 0 0; }
.contact-action { padding: 17px 26px; border: 1px solid rgba(200,157,96,.38); color: var(--cream); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; transition: background .35s ease, color .35s ease, transform .35s ease; }
.contact-action:hover { background: rgba(200,157,96,.15); color: var(--gold); transform: translateY(-3px); }
.contact-action.primary { background: var(--bronze); color: #07120e; }
.contact-action.primary:hover { background: var(--gold); color: #07120e; }
.contact-note { margin-top: 38px; font-size: 11px; color: var(--bronze); letter-spacing: .6px; }
@media (max-width: 750px) { .contact-main { min-height: calc(100svh - 130px); padding: 80px 7vw; } .contact-actions { flex-direction: column; } }

/* =========================================================
   V7 – Sværd går ind over Fodbold-sektionen
========================================================= */
.about-hobbies .hobby-gaming { z-index: 5; }
.about-hobbies .hobby-football { z-index: 4; }
.about-hobbies .gaming-saber { top: -39%; z-index: 12; }
@media (max-width: 980px) { .about-hobbies .gaming-saber { top: -31%; } }
@media (max-width: 750px) { .about-hobbies .gaming-saber { top: -23%; right: -30%; } }

/* =========================================================
   V7 – Projektsider og kontaktside
========================================================= */
.project-category-page { background: var(--bg-dark); }
.portfolio-listing { min-height: 75vh; padding: clamp(80px,9vw,140px) 6vw 120px; background: #04110e; }
.listing-inner { width: min(1260px,100%); margin: auto; }
.listing-kicker { color:var(--gold); font-size:11px; letter-spacing:3.5px; }
.listing-heading { font: 500 clamp(46px,7vw,90px)/1.12 'Cinzel',serif; color:var(--cream); margin:18px 0 18px; }
.listing-intro { color:var(--muted); max-width:720px; line-height:1.85; font-size:15px; }
.listing-rule { height:1px; background:linear-gradient(90deg,var(--bronze),transparent); margin:56px 0 35px; opacity:.55; }
.portfolio-project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.portfolio-project-card { display:flex; flex-direction:column; border:1px solid rgba(200,157,96,.2); background:linear-gradient(140deg,#101f19,#071610); overflow:hidden; transition:transform .5s cubic-bezier(.22,1,.36,1),border-color .5s; }
.portfolio-project-card:hover { transform:translateY(-7px); border-color:rgba(200,157,96,.56); }
.portfolio-project-visual { min-height:220px; aspect-ratio:16/9; display:grid; place-items:center; background:radial-gradient(circle at 35% 35%,#234034,#0b1b15 70%); border-bottom:1px solid rgba(200,157,96,.13); overflow:hidden; }
.portfolio-project-visual img { width:100%; height:100%; object-fit:cover; }
.portfolio-project-visual span { color:rgba(200,157,96,.52); font:500 clamp(30px,4vw,52px) 'Cinzel',serif; }
.portfolio-project-content { padding:30px; flex:1; display:flex; flex-direction:column; gap:15px; }
.portfolio-project-meta { color:var(--gold); font-size:10px; letter-spacing:2.5px; text-transform:uppercase; }
.portfolio-project-card h2 { color:var(--cream); font:500 clamp(22px,2.4vw,31px) 'Cinzel',serif; }
.portfolio-project-card p { color:var(--muted); line-height:1.8; font-size:13px; }
.portfolio-project-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:auto; padding-top:12px; }
.portfolio-project-tags span { border:1px solid rgba(200,157,96,.22); padding:7px 10px; color:var(--sand); text-transform:uppercase; letter-spacing:1px; font-size:9px; }
.project-category-navigation { margin-top:55px; display:flex; gap:12px; flex-wrap:wrap; }
.project-category-navigation a { border:1px solid rgba(200,157,96,.35); padding:13px 20px; color:var(--cream); font-size:12px; letter-spacing:1px; transition:background .3s; }
.project-category-navigation a:hover { background:rgba(200,157,96,.15); }
.project-category-navigation .current { background:rgba(200,157,96,.13); border-color:var(--bronze); }
.contact-main { align-items:flex-start; }
.contact-inner.contact-expanded { width:min(1050px,100%); }
.contact-columns { display:grid;grid-template-columns:1.45fr .9fr;text-align:left;gap:32px;margin-top:48px; }
.contact-form-box,.contact-social-box { background:#0b1c16; padding:clamp(22px,3vw,40px); border:1px solid rgba(200,157,96,.23); }
.contact-form-box h2,.contact-social-box h2 { color:var(--cream);font:500 26px 'Cinzel',serif;margin-bottom:23px; }
.contact-form { display:grid;gap:18px; }
.contact-form label { display:grid;gap:8px;color:var(--sand);font-size:11px;text-transform:uppercase;letter-spacing:1.5px; }
.contact-form input,.contact-form textarea { width:100%;border:1px solid rgba(200,157,96,.28);border-radius:0;background:#06140f;padding:14px 15px;color:var(--cream);font:400 14px 'Inter',sans-serif;outline:none; }
.contact-form input:focus,.contact-form textarea:focus { border-color:var(--gold); }
.contact-form textarea { resize:vertical;min-height:155px; }
.contact-form button { cursor:pointer;border:1px solid var(--bronze);background:var(--bronze);color:#04110e;padding:15px;font:600 12px 'Inter',sans-serif;text-transform:uppercase;letter-spacing:2px;transition:background .35s,transform .35s; }
.contact-form button:hover { background:var(--gold);transform:translateY(-2px); }
.contact-smallprint { color:var(--muted);font-size:12px;line-height:1.75;margin-top:15px; }
.contact-social-links { display:flex;flex-direction:column;gap:12px; }
.contact-social-links a,.contact-social-links .social-disabled { display:flex;justify-content:space-between;align-items:center;padding:15px 17px;border:1px solid rgba(200,157,96,.23);color:var(--cream);font-size:13px;transition:background .3s,border-color .3s; }
.contact-social-links a:hover { background:rgba(200,157,96,.1);border-color:var(--gold); }
.contact-social-links .social-disabled { opacity:.47;cursor:not-allowed; }
.contact-alert { padding:14px 16px;border:1px solid var(--bronze);margin-top:20px;color:var(--cream);font-size:13px;line-height:1.7; }
.contact-alert.error { border-color:#a65c53; }
.form-honeypot { position:absolute!important;left:-99999px!important;opacity:0!important; }
@media(max-width:800px) { .portfolio-project-grid,.contact-columns { grid-template-columns:1fr; }.contact-main { padding:70px 5vw 100px; }.portfolio-listing { padding:75px 5vw 100px; } }
@media(max-width:560px) { .portfolio-project-visual { min-height:165px; }.portfolio-project-content { padding:22px; }.listing-rule {margin:36px 0 25px;} }

/* V8: Gaming-figurer – mere naturligt overlap mellem de to paneler.
   Placeres efter tidligere media queries for at overskrive dem. */
@media (min-width: 981px) {
  .about-hobbies .gaming-saber { top: -24%; }
  .about-hobbies .gaming-creeper { bottom: 8%; }
}
@media (min-width: 751px) and (max-width: 980px) {
  .about-hobbies .gaming-saber { top: -20%; }
  .about-hobbies .gaming-creeper { bottom: 7%; }
}
@media (max-width: 750px) {
  .about-hobbies .gaming-saber { top: -14%; }
  .about-hobbies .gaming-creeper { bottom: 7%; }
}

/* Tilgængelig overskrift på forsiden samt tastatur-adgang til dropdown */
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.nav-dropdown:focus-within .dropdown-menu { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
:where(a,button,input,textarea):focus-visible { outline:2px solid var(--gold); outline-offset:4px; }

/* =========================================================
   V9 - Fælles header/navigation på alle undersider
   Forsidens originale slot/menu-layout bevares uændret.
========================================================= */

/* Den gamle scrollfremdrift på Om mig er fjernet i JS.
   Reglen skjuler også en eventuel cachet version. */
.about-page .about-progress-track,
.about-page .about-progress-fill { display: none !important; }

/* Knapperne fra startsidens menu bruges også på alle undersider. */
@media (min-width: 751px) {
  body.about-page .top-navigation,
  body.contact-page .top-navigation {
    gap: clamp(14px, 3.25vw, 60px);
    min-height: 58px;
    background: #091d16;
    border-top: 0;
    border-bottom: 1px solid rgba(200,157,96,.16);
    z-index: 92;
  }

  body.about-page .top-navigation > a,
  body.about-page .top-navigation .nav-dropdown,
  body.contact-page .top-navigation > a,
  body.contact-page .top-navigation .nav-dropdown {
    transform: translateY(-12px);
  }

  body.about-page .top-navigation > a,
  body.about-page .top-navigation .nav-project-button,
  body.contact-page .top-navigation > a,
  body.contact-page .top-navigation .nav-project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 9px 17px;
    border: 1px solid rgba(210,180,123,.72);
    border-radius: 6px;
    background: rgba(9,27,22,.94);
    box-shadow: 0 3px 8px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.08);
    color: #f1e8d4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  body.about-page .top-navigation > a:hover,
  body.about-page .top-navigation > a.active,
  body.about-page .top-navigation .nav-project-button:hover,
  body.about-page .top-navigation .nav-project-button.active,
  body.contact-page .top-navigation > a:hover,
  body.contact-page .top-navigation > a.active,
  body.contact-page .top-navigation .nav-project-button:hover,
  body.contact-page .top-navigation .nav-project-button.active {
    background: rgba(30,64,44,.98);
    border-color: #d3b47c;
    color: #fff3d9;
    box-shadow: 0 3px 11px rgba(0,0,0,.5), inset 0 0 0 1px rgba(209,179,119,.1);
  }

  body.about-page .top-navigation > a::after,
  body.about-page .top-navigation .nav-project-button::after,
  body.contact-page .top-navigation > a::after,
  body.contact-page .top-navigation .nav-project-button::after { display: none; }

  body.about-page .top-navigation .dropdown-menu,
  body.contact-page .top-navigation .dropdown-menu { z-index: 110; }
}

/* Samme afstand/knapper på små skærme, uden at presse teksten ud. */
@media (max-width: 750px) {
  .top-navigation { gap: clamp(5px, 1.8vw, 20px); padding-inline: 8px; }
  .top-navigation > a,
  .top-navigation .nav-project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px clamp(5px,1.5vw,12px);
    font-size: clamp(8px,2vw,11px);
    line-height: 1.25;
    letter-spacing: .5px;
    border: 1px solid rgba(210,180,123,.45);
    border-radius: 4px;
    background: rgba(9,27,22,.94);
    color: #f1e8d4;
  }
  .top-navigation > a.active,
  .top-navigation .nav-project-button.active {
    border-color: var(--gold);
    background: rgba(30,64,44,.98);
  }
  .top-navigation > a::after,
  .top-navigation .nav-project-button::after { display: none; }
}


/* =========================================================
   V10 – Tættere header på undersiderne
   Knappernes lodrette position er bevaret: den ekstra luft
   UNDER dem er fjernet, uden at ændre startsidens slotslayout.
========================================================= */
@media (min-width: 751px) {
  body.about-page .top-navigation,
  body.contact-page .top-navigation,
  body.project-category-page .top-navigation {
    min-height: 35px;
    height: 35px;
    padding-block: 0;
    gap: clamp(14px, 3.25vw, 60px);
    background: #091d16;
    border-bottom: 1px solid rgba(200,157,96,.16);
  }
  body.about-page .top-navigation > a,
  body.about-page .top-navigation .nav-dropdown,
  body.contact-page .top-navigation > a,
  body.contact-page .top-navigation .nav-dropdown,
  body.project-category-page .top-navigation > a,
  body.project-category-page .top-navigation .nav-dropdown {
    transform: none;
  }
  body.project-category-page .top-navigation > a,
  body.project-category-page .top-navigation .nav-project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 9px 17px;
    border: 1px solid rgba(210,180,123,.72);
    border-radius: 6px;
    background: rgba(9,27,22,.94);
    color: #f1e8d4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.7px;
  }
  body.project-category-page .top-navigation > a::after,
  body.project-category-page .top-navigation .nav-project-button::after { display:none; }
  body.project-category-page .top-navigation > a.active,
  body.project-category-page .top-navigation .nav-project-button.active { background: rgba(30,64,44,.98); border-color:var(--gold); }
}

/* =========================================================
   V10 – Mobil: profilbillede ved siden af OSKAR EMDE
   Teksten under navnet får sin egen fulde bredde.
========================================================= */
@media (max-width: 750px) {
  body.about-page .about-hero {
    padding-top: 55px;
  }
  body.about-page .about-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
  }
  body.about-page .about-hero-intro {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
  }
  body.about-page .about-hero h1 {
    width: 60%;
    margin-top: 15px;
    font-size: clamp(48px, 14vw, 77px);
    line-height: .96;
    letter-spacing: -1.5px;
  }
  body.about-page .about-hero h1 span { margin-left: 10px; }
  body.about-page .about-portrait-wrap {
    position: absolute;
    z-index: 3;
    top: 8px;
    right: -2vw;
    bottom: auto;
    left: auto;
    order: initial;
    width: 43%;
    height: 215px;
    margin: 0;
    transform: none;
    align-items: flex-end;
    overflow: hidden;
  }
  body.about-page .about-portrait-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  body.about-page .about-portrait {
    width: 100%;
    max-width: none;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
  }
  body.about-page .about-portrait-wrap::before,
  body.about-page .about-portrait-wrap::after { display: none; }
  body.about-page .about-role {
    clear: both;
    margin-top: 70px;
  }
  body.about-page .about-introduction { max-width: 100%; }
}
@media (max-width: 390px) {
  body.about-page .about-hero h1 { font-size: clamp(43px, 13.2vw, 54px); }
  body.about-page .about-portrait-wrap { width: 42%; height: 185px; right: -3vw; }
  body.about-page .about-role { margin-top: 58px; }
}

/* =========================================================
   V10 – Ingen vandret tekst-overflow i uddannelse/erfaring
========================================================= */
@media (max-width: 980px) {
  body.about-page .resume-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 55px;
  }
  body.about-page .resume-column,
  body.about-page .timeline,
  body.about-page .timeline-item,
  body.about-page .resume-column-title {
    min-width: 0;
    max-width: 100%;
  }
  body.about-page .resume-column-title h3 {
    font-size: clamp(25px, 6.6vw, 42px);
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
  body.about-page .resume-column-title > span {
    font-size: clamp(10px, 2.7vw, 15px);
    letter-spacing: 1.5px;
    overflow-wrap: anywhere;
  }
  body.about-page .timeline {
    padding-left: clamp(12px, 3.5vw, 24px);
  }
  body.about-page .timeline-item {
    padding-left: clamp(10px, 3.5vw, 24px);
    padding-right: 0;
    overflow-wrap: anywhere;
  }
  body.about-page .timeline-item h4 {
    font-size: clamp(18px, 5.4vw, 23px);
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  body.about-page .timeline-item p,
  body.about-page .timeline-place,
  body.about-page .timeline-date {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  body.about-page .timeline-marker { left: calc(-1 * clamp(17px, 4.5vw, 31px)); }
}

/* =========================================================
   V11 – Fritstående navigationsknapper, ingen bagvedliggende bar
   Bevarer knappositioner, størrelse og alle menupunkter.
========================================================= */
body .top-navigation {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
body .top-navigation::before,
body .top-navigation::after {
  content: none !important;
  display: none !important;
}
/* Ingen flade bag knapperne – kun knapperne har egen baggrund. */
@media (min-width: 751px) {
  body.about-page .top-navigation,
  body.contact-page .top-navigation,
  body.project-category-page .top-navigation {
    background: transparent !important;
    border: 0 !important;
  }
}
