/* Basic reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #080808;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 20px;
  left: 50%;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;

  width: calc(100% - 40px);
  min-height: 64px;
  padding: 0 clamp(1.5rem, 3vw, 3.5rem);

  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);

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

  transform: translateX(-50%);
}

.logo {
  color: #111111;
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 1.75rem);
}

.navigation a {
  color: #111111;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.navigation a:not(.contact-link) {
  position: relative;
}

.navigation a:not(.contact-link)::after {
  position: absolute;
  bottom: -7px;
  left: 0;

  width: 0;
  height: 2px;

  background: #111111;
  content: "";
  transition: width 180ms ease;
}

.navigation a:not(.contact-link):hover::after {
  width: 100%;
}

.navigation .contact-link {
  padding: 0.65rem 1.2rem;
  color: #ffffff;
  background: #080808;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.navigation .contact-link:hover {
  color: #080808;
  background: #eeeeee;
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;

  min-height: 100svh;
  overflow: hidden;

  background: #111111;
}

/* Fullscreen background video */
.hero-video {
  position: absolute;
  z-index: -1;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

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

@media (max-width: 800px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
  }

  .site-header .navigation a:not(.contact-link) {
    display: none;
  }
}

/* Button positioned over video */
.work-button {
  position: absolute;
  z-index: 2;
  bottom: clamp(2rem, 6vh, 5rem);
  left: 50%;

  min-width: 230px;
  padding: 1rem 2rem;

  color: #ffffff;
  background: #080808;
  border: 1px solid #080808;
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;

  transform: translateX(-50%);
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.work-button:hover {
  color: #080808;
  background: #ffffff;
  transform: translateX(-50%) translateY(-4px);
}

.hero {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 100vh;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at top,
      rgba(0, 0, 0, 0.055),
      transparent 45%
    ),
    #ffffff;
}


.services span {
  font-size: clamp(0.6rem, 0.85vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-bottom-content {
  position: absolute;
  z-index: 2;
  bottom: clamp(2rem, 7vh, 6rem);
  left: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4rem, 4vh, 3.5rem);

  width: min(90%, 1100px);
  text-align: center;

  transform: translateX(-50%);
}

.hero-intro h1 {
  margin: 0 0 0.75rem;

  color: #111111;
  font-size: clamp(0.5rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-intro p {
  margin: 0;

  color: #b5b5b5;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-intro p span {
  margin-inline: 0.3rem;
}

/* Knappen er nu placeret af hero-bottom-content */
.hero-bottom-content .work-button {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
}

.hero-bottom-content .work-button:hover {
  transform: translateY(-4px);
}


/* Keeps the real heading available to screen readers and search engines */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

/* Bottom hero button */
.work-button {
  position: absolute;
  bottom: 9vh;
  left: 50%;
  transform: translateX(-50%);

  min-width: 180px;
  padding: 0.7rem 1rem;

  color: #ffffff;
  background: #080808;
  border-radius: 999px;

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background 180ms ease,
    transform 180ms ease;
}

.work-button:hover {
  background: #333333;
  transform: translateX(-50%) translateY(-3px);
}

/* Tablet and mobile */

@media (max-width: 800px) {
  .site-header {
    min-height: 72px;
  }

  .navigation a:not(.contact-link) {
    display: none;
  }

  .hero {
    align-items: center;
    padding-inline: 1.5rem;
  }

  .services {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: clamp(1rem, 10vw, 0.5rem);
    line-height: 0.88;
  }

  .subtitle {
    font-size: clamp(3rem, 14vw, 5.5rem);
    line-height: 0.9;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 150px;
    font-size: 0.75rem;
  }

  .navigation .contact-link {
    padding: 0.7rem 1rem;
    font-size: 0.65rem;
  }

  .services {
    gap: 0.65rem 1rem;
  }

  .work-button {
    min-width: 210px;
  }
}
/* Selected work */
.work-section {
  display: block;
  min-height: 100vh;

  padding:
    clamp(5rem, 8vw, 9rem)
    clamp(1.5rem, 4vw, 5rem)
    clamp(8rem, 12vw, 14rem);

  background-color: #fafafa;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.12) 0.7px,
    transparent 0.8px
  );
  background-size: 9px 9px;

  /* Sticky virker ikke, hvis denne er overflow: hidden */
  overflow: visible;
}

/* Left-side heading */
.work-heading {
  z-index: 20;
  top: 105px;

  display: flex;
  align-items: center;

  width: 100%;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  padding: 0.8rem 0;
}

.work-heading span {
  color: #777777;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}


.vertical-work {
  gap: 0.15em;
  line-height: 0.8;
}


.vertical-work {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  margin: 2rem 0 0;

  color: #080808;
  font-size: clamp(4rem, 7vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.72;
  text-transform: uppercase;
}

.vertical-work span {
  display: block;
}



@media (max-width: 900px) {
  .vertical-work {
    flex-direction: row;
    gap: 0;
    font-size: clamp(3.5rem, 16vw, 6rem);
    line-height: 1;
  }

  .work-heading {
    position: static;
  }
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2rem, 3vw, 4rem) clamp(1rem, 2vw, 2rem);
}

.project-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

/* Første kolonne */
.project-card:nth-child(3n + 1) {
  margin-top: 0;
}

/* Anden kolonne */
.project-card:nth-child(3n + 2) {
  margin-top: 0px;
}

/* Tredje kolonne */
.project-card:nth-child(3n + 3) {
  margin-top: 0px;
}

/* Image area */
.project-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e7e7e7;
  border-radius: 18px;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-number {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  left: 1.25rem;

  color: rgba(0, 0, 0, 0.65);
  font-size: 0.7rem;
}

/* Information below image */
.project-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;

  min-height: 86px;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.project-info h3 {
  margin: 0 0 0.4rem;

  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-info p {
  margin: 0;
  color: #8b8b8b;
  font-size: 0.8rem;
}

.project-arrow {
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 200ms ease;
}

/* Hover effects */
.project-card:hover .project-image img {
  transform: scale(1.035);
}

.project-card:hover .project-arrow {
  transform: translate(4px, -4px);
}

/* Tablet */
@media (max-width: 900px) {
  .work-section {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .work-heading {
    position: static;
  }

  .work-heading h2 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
  }
}

/* Mobile */
@media (max-width: 650px) {
  .work-section {
    padding-top: 6rem;
  }

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

  .project-info {
    min-height: auto;
  }
}

/* Reduce motion for users who request it */
@media (prefers-reduced-motion: reduce) {
  .project-image img,
  .project-arrow {
    transition: none;
  }
}
/* About section */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;

  min-height: 100vh;
  padding: clamp(5rem, 9vw, 10rem) clamp(1.5rem, 5vw, 6rem);
  background: #111111;
}

/* Portrait */
.about-image {
  min-height: 650px;
  overflow: hidden;
  background: #292929;
  border-radius: 18px;
}

.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);

  transition:
    filter 400ms ease,
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.about-image:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Text area */
.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(3rem, 7vw, 8rem);
  color: #ffffff;
}

.section-label {
  display: block;
  margin-bottom: clamp(2rem, 4vw, 4rem);

  color: #999999;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-content h2 {
  max-width: 760px;
  margin: 0 0 clamp(2rem, 4vw, 4rem);

  font-size: clamp(2.4rem, 4.8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.about-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);

  max-width: 760px;
  margin-bottom: 3rem;
}

.about-text p {
  margin: 0;
  color: #bdbdbd;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.65;
}

/* Contact button */
.about-button {
  align-self: flex-start;
  padding: 0.9rem 1.6rem;

  color: #111111;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.about-button:hover {
  color: #ffffff;
  background: transparent;
  transform: translateY(-3px);
}

/* Tablet */
@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .about-image {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .about-content {
    padding: 5rem clamp(1.5rem, 6vw, 4rem);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .about-text {
    grid-template-columns: 1fr;
  }

  .about-content h2 {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
  }
}
/* Skills section */
.skills-section {
  min-height: 100vh;
  padding: clamp(6rem, 10vw, 11rem) clamp(1.5rem, 5vw, 6rem);

  /* Small dotted background */
  background-color: #fafafa;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.12) 0.7px,
    transparent 0.8px
  );
  background-size: 9px 9px;
}

.skills-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  align-items: end;
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.skills-heading .section-label {
  margin: 0;
  color: #777777;
}

.skills-heading h2 {
  max-width: 900px;
  margin: 0;

  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

/* Program icons */
.program-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.program-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  padding: clamp(1.5rem, 3vw, 3rem) 0.75rem;

  color: #111111;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.2);

  font: inherit;
  cursor: pointer;

  transition:
    color 180ms ease,
    background 180ms ease;
}

.program-button:last-child {
  border-right: 0;
}

.program-button:hover,
.program-button.is-active {
  color: #ffffff;
  background: #111111;
}

.program-button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid #4d8eff;
  outline-offset: -3px;
}

.program-icon {
  display: grid;
  place-items: center;

  width: clamp(3.5rem, 5vw, 5rem);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 18%;

  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.program-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Details shown after selecting a program */
.program-details {
  display: grid;
  grid-template-columns:
    minmax(80px, 0.2fr)
    minmax(250px, 1fr)
    minmax(220px, 0.65fr);
  gap: clamp(2rem, 5vw, 6rem);

  padding: clamp(3rem, 6vw, 6rem) 0;
}

.details-number {
  color: #999999;
  font-size: 0.75rem;
}

.details-label {
  margin: 0 0 0.75rem;
  color: #777777;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.details-content h3 {
  margin: 0 0 2rem;

  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.details-description {
  max-width: 650px;
  margin: 0;
  color: #555555;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

.details-list {
  align-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.details-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Subtle animation when content changes */
.program-details.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.program-details {
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

/* Tablet */
@media (max-width: 900px) {
  .skills-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .program-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-button:nth-child(3) {
    border-right: 0;
  }

  .program-button:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  .program-details {
    grid-template-columns: 60px 1fr;
  }

  .details-list {
    grid-column: 2;
  }
}

/* Mobile */
@media (max-width: 550px) {
  .program-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-button:nth-child(3) {
    border-right: 1px solid rgba(0, 0, 0, 0.2);
  }

  .program-button:nth-child(even) {
    border-right: 0;
  }

  .program-button:not(:nth-last-child(-n + 2)) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  .program-details {
    grid-template-columns: 1fr;
  }

  .details-list {
    grid-column: auto;
  }
}

/* Custom cursor — hero section only */
.hero {
  cursor: none;
}

.hero a,
.hero button {
  cursor: none;
}

.hero-cursor {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;

  width: 120px;
  height: 120px;
  border-radius: 50%;

  background: #ffffff;
  mix-blend-mode: difference;

  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.hero-cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hero-cursor.is-hovering {
  transform: translate(-50%, -50%) scale(1.8);
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero,
  .hero a,
  .hero button {
    cursor: auto;
  }

  .hero-cursor {
    display: none;
  }
}

/* Contact section */
.contact-section {
  display: flex;
  flex-direction: column;

  min-height: auto;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;

  color: #ffffff;
  background: #0a0a0a;
}

.contact-top {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-label {
  color: #888888;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-intro {
  max-width: 430px;
  margin: 0;

  color: #aaaaaa;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.55;
}

/* Main contact content */
.contact-main {
  padding: 0;
}

.contact-main h2 {
  max-width: 1300px;
  margin: 0 0 clamp(3rem, 3vw, 6rem);

  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.050em;
  line-height: 0.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 0;

}

.contact-button {
    align-self: flex-start;
  padding: 0.5rem 1.6rem;

  color: #111111;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.contact-button span:last-child {
  font-size: 1rem;
  transition: transform 180ms ease;
}

.contact-button:hover {
  color: #ffffff;
  background: transparent;
  transform: translateY(-3px);
}

.contact-button:hover span:last-child {
  transform: translate(4px, -4px);
}

.contact-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .contact-actions {
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
  }
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem) 0;

  min-height: 100px;
}

.contact-main h2 {
  margin: 0;

  font-size: clamp(3.5rem, 7vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.coffee-image {
  display: block;
  justify-self: center;

  width: min(100%, 520px);
  height: auto;

  opacity: 0.45;
  transform: rotate(3deg);
  transition:
    opacity 250ms ease,
    transform 350ms ease;
}

.coffee-image:hover {
  opacity: 0.8;
  transform: rotate(0deg) scale(1.23);
}

@media (max-width: 800px) {
  .contact-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 0;
  }

  .coffee-image {
    width: min(80vw, 380px);
  }
}

/* Footer */
.contact-footer {
  display: grid;
  margin-top: 2rem;
  padding: 2rem 0 0;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-footer p {
  margin: 0;
  color: #888888;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-footer p:last-child {
  text-align: right;
}

/* Mobile */
@media (max-width: 700px) {
  .contact-section {
    min-height: 90vh;
    padding: 2rem 1.5rem;
  }

  .contact-top {
    grid-template-columns: 1fr;
  }

  .contact-main h2 {
    font-size: clamp(3.8rem, 18vw, 6rem);
    line-height: 0.84;
  }

  .contact-email {
    font-size: clamp(1.1rem, 5.5vw, 1.7rem);
  }

  .contact-footer {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .contact-footer p:last-child {
    text-align: left;
  }
}

/* Elements before they enter the viewport */
.fade-in {
  opacity: 0;
  transform: translateY(40px);

  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Added by JavaScript */
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional directions */
.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-right {
  transform: translateX(50px);
}

.fade-in-left.is-visible,
.fade-in-right.is-visible {
  transform: translateX(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.fade-in,
.fade-in-left,
.fade-in-right {
  transition:
    opacity var(--duration, 700ms) ease var(--delay, 0ms),
    transform var(--duration, 700ms)
      cubic-bezier(0.2, 0.7, 0.2, 1)
      var(--delay, 0ms);
}

.coffee-image {
  transition:
    opacity 700ms ease var(--delay, 0ms),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1)
      var(--delay, 0ms);
}


/* ========================================
   PROJECT PAGE
======================================== */

.project-page {
  margin: 0;
  background: #ffffff;
}

/* Project header */
.project-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;

  width: 100%;
  min-height: 72px;
  padding: 0 clamp(1.5rem, 3vw, 3.5rem);

  background: rgba(235, 244, 239, 0.87);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

/* Hero */
.project-hero {
  position: relative;

  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;

  background: #82ad98;
}

.project-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/*
  A light color layer makes the image look closer
  to the muted green reference.
*/
.project-hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(113, 169, 142, 0.12);
  pointer-events: none;
}

/* Project title */
.project-hero-content {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 4vw, 5rem);
  bottom: clamp(2rem, 5vw, 5rem);

  max-width: min(90vw, 1100px);
  color: #ffffff;
  text-align: right;
}

.project-category {
  margin: 0 0 1rem;

  font-size: clamp(0.6rem, 0.8vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-hero-content h1 {
  margin: 0;

  color: #ffffff;
  font-size: clamp(4rem, 10vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

/* Back link */
.project-back {
  position: absolute;
  z-index: 3;
  top: calc(72px + 2rem);
  left: clamp(1.5rem, 4vw, 5rem);

  display: inline-flex;
  align-items: center;
  gap: 0.7rem;

  padding: 0.8rem 1.2rem;

  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;

  backdrop-filter: blur(8px);

  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.project-back:hover {
  color: #111111;
  background: #ffffff;
  transform: translateX(-4px);
}

/* Scroll link */
.project-scroll {
  position: absolute;
  z-index: 3;
  bottom: clamp(2rem, 4vw, 4rem);
  left: clamp(1.5rem, 4vw, 5rem);

  display: flex;
  align-items: center;
  gap: 0.8rem;

  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-scroll span:last-child {
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.project-scroll:hover span:last-child {
  transform: translateY(5px);
}

/* Project information */
.project-information {
  padding:
    clamp(6rem, 10vw, 11rem)
    clamp(1.5rem, 5vw, 6rem);
}

.project-information-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) 1fr;
  gap: clamp(2rem, 6vw, 7rem);

  margin-bottom: clamp(5rem, 9vw, 9rem);
}

.project-information-heading > span,
.project-next-label {
  color: #888888;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-information-heading h2 {
  max-width: 1100px;
  margin: 0;

  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.project-information-content {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: clamp(4rem, 10vw, 12rem);
}

.project-meta {
  display: grid;
  align-content: start;
}

.project-meta div {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.project-meta div:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.project-meta span {
  color: #999999;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-meta p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.project-text {
  max-width: 800px;
}

.project-text p {
  margin: 0 0 2rem;

  color: #333333;
  font-size: clamp(0.7rem, 2vw, 1.2rem);
  letter-spacing: -0.025em;
  line-height: 1.45;
}

/* Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);

  padding: 0 clamp(1.5rem, 3vw, 3rem);
}

.project-gallery figure {
  margin: 0;
  overflow: hidden;
  background: #eeeeee;
}

.project-gallery-wide {
  grid-column: 1 / -1;
}

.project-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
}

.project-gallery video {
  display: block;
  width: 100%;
  height: auto;
}

/* Next project */
.project-next {
  padding:
    clamp(7rem, 12vw, 13rem)
    clamp(1.5rem, 5vw, 6rem);
}

.project-next-label {
  display: block;
  margin-bottom: 2rem;
}

.project-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  padding: 2rem 0;
  color: #111111;
  border-top: 1px solid #aaaaaa;
  border-bottom: 1px solid #aaaaaa;

  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-next a span:last-child {
  transition: transform 200ms ease;
}

.project-next a:hover span:last-child {
  transform: translate(8px, -8px);
}

/* Project footer */
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 2rem clamp(1.5rem, 5vw, 6rem);
  color: #888888;
  background: #080808;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-footer a {
  color: inherit;
  text-decoration: none;
}

.project-footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .project-hero {
    height: 100svh;
    min-height: 600px;
  }

  .project-hero-image {
    object-position: center;
  }

  .project-category {
    display: none;
  }

  .project-hero-content {
    right: 1.5rem;
    bottom: 5rem;
    left: 1.5rem;
  }

  .project-hero-content h1 {
    font-size: clamp(3.8rem, 19vw, 7rem);
    text-align: left;
  }

  .project-scroll {
    display: none;
  }

  .project-information-heading,
  .project-information-content {
    grid-template-columns: 1fr;
  }

  .project-information-heading {
    gap: 2rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery-wide {
    grid-column: auto;
  }

  .project-gallery img {
    min-height: 350px;
  }
}

.project-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  background: #82ad98;
}

.page-transition {
  position: fixed;
  z-index: 1000000;
  inset: 0;

  background: #080808;
  pointer-events: none;

  transform: translateY(100%);
}

/* Dækker siden inden navigation */
.page-transition.is-leaving {
  background: #000000;
  pointer-events: auto;
  animation: cover-page 550ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* Afslører den nye side */
.page-transition.is-entering {
  background: #000000;
  pointer-events: auto;
  animation: reveal-page 650ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes cover-page {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes reveal-page {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    display: none;
  }
}