/* =========================================
   1. FONTS
   ========================================= */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* =========================================
   2. DESIGN SETTINGS
   Change these values to adjust the whole site
   ========================================= */
:root {
  /* Colors */
  --green: #000dff;
  --black: #050505;
  --white: #fff;
  /* Spacing */
  --page-gutter: clamp(40px, 3vw, 50px);
  --grid-gap: 5px;
  /* Fonts: change these independently */
  --font-intro: Arial, Georgia, serif;
  --font-navigation: Arial, Helvetica, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-project-title: "Playfair Display", Georgia, serif;
  --font-description: Arial, Helvetica, sans-serif;
  --font-bio: Arial, Helvetica, sans-serif;
  /* Desktop panel proportions */
  --left-panel: 2fr;
  --right-panel: 0.8fr;
}
/* =========================================
   3. GLOBAL SETTINGS
   ========================================= */
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-description);
}
button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
/* =========================================
   4. INTRO SCREEN
   Background image, name and navigation
   ========================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--black);
  background: #010101;
}

/* INTRO BACKGROUND VIDEO */

.intro-video {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

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

  pointer-events: none;

  transform: translateY(0);
  transition: transform .9s cubic-bezier(.7, 0, .2, 1);
}

.intro-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}
.intro-nav {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 25px 1.8%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-name,
nav button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  white-space: nowrap;
}
.site-name {
  font-family: var(--font-intro);
  font-size: clamp(14px, 1.4vw, 22px);
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.6vw, 26px);
}
nav button {
  font-family: var(--font-navigation);
  font-size: clamp(14px, 1.4vw, 22px);
  transition: color .2s ease;
}
nav button:hover,
nav button.active {
  color: var(--green);
}
.intro nav button:hover {
  color: #5610e3;
}
/* Connected project image and title hover */
.project-title.hover-highlight {
  font-weight: 700;
}
.project-image img {
  transition: transform 0.5s ease;
}
.project-image.hover-highlight img {
  transform: scale(1.04);
}
.project-title,
.project-image {
  transition: opacity 0.2s ease, font-weight 0.2s ease;
  container-type: inline-size;
overflow: visible;
}
/* =========================================
   5. WORKSPACE
   The layer revealed after opening the site
   ========================================= */
.workspace {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateY(100%);
  visibility: hidden;
  transition:
    transform .9s cubic-bezier(.7, 0, .2, 1),
    visibility 0s linear .9s;
}
body.workspace-open .intro {
  transform: none;
}
body.workspace-open .intro-video {
  transform: translateY(-85%);
}
body.workspace-open .intro-shade {
  transform: translateY(-100%);
  transition: transform .9s cubic-bezier(.7, 0, .2, 1);
}
body.workspace-open .workspace {
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}
/* Workspace header */
.workspace-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  flex: 0 0 auto;
  min-height: 100px;
  padding: 25px 0%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: transparent;
}
.workspace-header nav {
  margin-left: auto;
  background: transparent;
}
/* Workspace header */
.workspace-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  flex: 0 0 auto;
  min-height: 100px;
  padding: 25px 1%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: transparent;
}
.workspace-header nav {
  margin-left: auto;
  background: transparent;
}
/* Workspace header typography */
.workspace-header .site-name,
.workspace-header nav button {
  border: none;
  padding: 7px 0;
  background: transparent;
  color: var(--black);
  -webkit-text-stroke: 0;
  text-shadow: none;
  font-weight: 700;
  transition: none;
}
/* No glow on hover or active */
.workspace-header .site-name:hover,
.workspace-header nav button:hover,
.workspace-header nav button.active,
.workspace-header .site-name:active,
.workspace-header nav button:active {
  color: var(--black);
  text-shadow: none;
}
/* Hide workspace header when scrolling down */
.workspace-header {
  transition: transform 0.3s ease;
}
.workspace-header.header-hidden {
  transform: translateY(-100%);
}
/* Hide workspace header when scrolling down */
.workspace-header {
  transition: transform 0.3s ease;
}
.workspace-header.header-hidden {
  transform: translateY(-100%);
}
/* =========================================
   6. LEFT / RIGHT PANEL DIVISION
   ========================================= */
.split-view {
  position: relative;
  display: block;
  width: 100%;
  height: calc(100% - 100px);
  min-width: 0;
  min-height: 0;
  margin: 100px 0 0;
  overflow: hidden;
  transition: transform .75s cubic-bezier(.7, 0, .2, 1);
}
/* =========================================
   7. LEFT PANEL — IMAGE GRID
   ========================================= */
.visual-pane {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 clamp(18px, 2vw, 34px) 38px var(--page-gutter);
}
.visual-pane::-webkit-scrollbar {
  display: none;
}
.project-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.68 / 1;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  text-align: left;
}
.project-image.collaboration {
  background: var(--green);
}
.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.project-image:hover img,
.project-image.is-highlighted img,
.project-image.hover-highlight img {
  transform: scale(1.05);
}
.project-image:focus-visible {
  outline-offset: -3px;
}
/* =========================================
   8. RIGHT PANEL — PROJECT LIST
   ========================================= */
.text-pane {
  padding: 20px var(--page-gutter) 50px clamp(18px, 2.5vw, 42px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.pane-heading {
  display: none;
}
.project-list {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 0;
  text-align: left;
  border: 0;
}
.project-item {
  margin: 0 0 6px;
  border: 0;
}
/* Project titles */
.project-title {
  display: block;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-project-title);
  font-style: italic;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 500;
  line-height: 1.3;
}
.project-title:hover,
.project-item.expanded .project-title {
  font-weight: 700;
}
/* Works — italic titles and descriptions */
.project-list.works .project-title {
  font-style: italic !important;
}
/* Project descriptions */
.project-description {
  display: none;
  padding: 0 0 20px;
  max-width: 520px;
  color: #444;
  font-family: var(--font-description);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.project-item.expanded .project-description {
  display: block;
}
.project-description p {
  margin: 0 0 10px;
}
/* =========================================
   9. SELECTED PROJECT IMAGE
   ========================================= */
.project-view {
  min-height: 100%;
  background: #fff;
  color: var(--black);
}
/* =========================================
   PROJECT PAGE BACKGROUND
   ========================================= */
.project-hero,
.project-gallery-section,
.project-gallery,
.project-additional-section,
.project-bottom-navigation {
  background-color: #fff;
  color: var(--black);
}
.back-to-grid {
  margin: 0 0 20px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
  color: #555;
}
.back-to-grid:hover {
  color: var(--green);
}
.featured-figure {
  margin: 0;
}
.featured-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top left;
}
.image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #050505;
}
.image-placeholder.collaboration {
  background: var(--green);
}
.featured-figure figcaption {
  padding: 10px 0 22px;
  color: #555;
  font-size: 12px;
}
/* =========================================
   11. TABLET AND MOBILE
   ========================================= */
@media (max-width: 760px) {
  :root {
    --page-gutter: 20px;
    --grid-gap: 10px;
  }
  .intro-nav {
    width: calc(100% - 40px);
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .intro-nav nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  nav button {
    font-size: 17px;
  }
  .site-name {
    font-size: 20px;
  }
  .workspace-header {
    min-height: auto;
    padding: 18px 20px 16px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .workspace-header nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
  }
  .workspace-header nav button {
    font-size: 16px;
  }
  .split-view {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(38vh, 46%) minmax(0, 1fr);
  }
  .visual-pane {
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
  }
.text-pane {
  padding: 0 var(--page-gutter) 50px clamp(18px, 2.5vw, 42px);
  display: flex;
  flex-direction: column;
}
  .pane-heading h1 {
    font-size: 27px;
    margin-bottom: 16px;
  }
  .project-image {
    aspect-ratio: 1.35 / 1;
  }
  .project-title {
    padding: 12px 0;
    font-size: 17px;
  }
  .project-view .featured-figure img {
    max-height: 100%;
  }
}
/* =========================================
   12. SMALL PHONES
   ========================================= */
@media (max-width: 380px) {
  .workspace-header nav {
    gap: 12px;
  }
  .workspace-header nav button {
    font-size: 14px;
  }
  .split-view {
    grid-template-rows: minmax(34vh, 42%) minmax(0, 1fr);
  }
}
/* =========================================
   13. ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================
   BIO — CUSTOM COMPOSITION
   ========================================= */
.bio-view {
  /* Background */
  --bio-background: #010101;
  /* Biography */
  --bio-text-width: 680px;
  --bio-text-size: 16px;
  --bio-text-color: #ffffff;
  --bio-line-height: 1.7;
  --bio-paragraph-gap: 16px;
  /* Download CV */
  --bio-cv-color: #ff5900;
  --bio-cv-size: 12px;
  /* Media coverage */
  --media-top-spacing: 60px;
  --media-title-size: 40px;
  --media-title-bottom-spacing: 15px;
  --media-link-size: 20px;
  --media-link-gap: 12px;
}


/* PAGE LAYOUT */

.bio-view:not([hidden]) {
  position: relative;
  display: grid;

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

  width: 100%;
  height: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

  align-items: stretch;
  overflow-y: auto;
  overflow-x: hidden;

  background: #010101;
}


/* LEFT HALF — BIOGRAPHY */

.bio-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 100%;
  max-width: none;
  min-height: 100%;

  margin: 0;
  padding: 120px 10% 60px;

  text-align: left;
}


/* HIDE ABOUT HEADING */

.about-title {
  display: none;
}


/* BIOGRAPHY TEXT */

.bio-statement {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--bio-text-size);
  font-weight: 400;
  font-style: normal;

  line-height: var(--bio-line-height);
  color: var(--bio-text-color);

  margin: 0 0 var(--bio-paragraph-gap);
}


/* RIGHT HALF — FULL-SCREEN PORTRAIT */

.bio-view .bio-visual {
  position: sticky;
  top: 0;

  display: block;

  width: 100%;
  height: 100vh;
  height: 100svh;

  margin: 0;
  padding: 0;

  overflow: hidden;
}

.bio-visual img {
  display: block;

  width: 100%;
  height: 100%;

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

  border: none;
  outline: none;
}


/* DOWNLOAD CV */


/* =========================================
   BIO — EXTERNAL LINKS
   ========================================= */

.bio-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;

  /* Distance between buttons */
  gap: 60px;

  /* Distance from biography */
  margin-top: 120px;
}


/* LINK APPEARANCE */

.bio-copy .bio-links a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;

  color: #ff5900;
  text-decoration: none;

  transition: color 0.2s ease;
}


/* HOVER EFFECT */

.bio-copy .bio-links a:hover {
  color: #ffffff;
}


/* MEDIA COVERAGE */
.bio-external-links {
  display: none;
  margin-top: var(--media-top-spacing);
  text-align: center;
}
/* MEDIA COVERAGE — TITLE */
.external-links-title {
  font-family: var(--font-project-title);
  font-style: italic;
  font-weight: 400;
  font-size: var(--media-title-size);
  text-transform: none;
  line-height: 0.9;
  letter-spacing: 1px;
  color: #080810;
  -webkit-text-stroke: 0.2px #0000e6;
  paint-order: stroke fill;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--media-title-bottom-spacing);
}

.about-title {
  margin-bottom: 30px;
}

/* MEDIA COVERAGE — LINKS */
.external-links-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--media-link-gap);
}
.bio-copy .external-links-list a {
  font-family: var(--font-project-title);
  font-size: var(--media-link-size);
  font-style: italic;
  font-weight: 400;
  color: #ff5900c3;
  text-decoration: none;
}
.bio-copy .external-links-list a:hover {
  color: #ffffff;
}
/* HIDE OLD ARTICLES SECTION */
.bio-articles,
.press-prompt {
  display: none;
}

/* =========================================
   BIO — MOBILE
   ========================================= */

@media (max-width: 760px) {

  .bio-view {
    --bio-text-size: 17px;
  }

  .bio-view:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .bio-copy {
    min-height: auto;
    padding: 140px 25px 50px;
  }

  .bio-view .bio-visual {
    position: relative;
    top: auto;

    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .bio-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* =========================================
   PROJECT PAGE TRANSITIONS
   ========================================= */
.split-view {
  position: relative;
  transform: translateY(0);
  transition: transform .75s cubic-bezier(.7, 0, .2, 1);
}
.split-view.is-leaving {
  transform: translateY(-100%);
}
/* =========================================
   FULL-SCREEN PROJECT PAGE
   ========================================= */
.project-view {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #fff;
  transform: translateY(100%);
  transition: transform .75s cubic-bezier(.7, 0, .2, 1);
}
.project-view::-webkit-scrollbar {
  display: none;
}
.project-view.is-active {
  transform: translateY(0);
}
/* =========================================
   FULL-SCREEN VIDEO
   ========================================= */
.project-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 550px;
  overflow: hidden;
  background: #ffffff;
}
.project-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* LOCAL MP4 BACKGROUND VIDEO */

.project-local-video {
  position: absolute;
  inset: 0;
  display: block;

  width: 100%;
  height: 100%;

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

  pointer-events: none;
  opacity: 0;

  transition: opacity 0.4s ease;
}

/* =========================================
   PROJECT VIDEO — LOADING ANIMATION
   ========================================= */

.project-video-loader {
  position: absolute;
  inset: 0;
  z-index: 5;

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

  background: #010101;
  color: #ff5900;

  flex-direction: column;
  gap: 15px;
}

.project-video-loader svg {
  width: 65px;
  height: 65px;
}

.project-video-loader circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.project-video-loader circle.is-filled {
  fill: currentColor;
}
/* =========================================
   PROJECT TITLE AND FORMAT
   Positioned over video on the right
   ========================================= */
.project-overlay {
  position: absolute;
  z-index: 2;
  top: 80%;
  right: var(--page-gutter);
  transform: translateY(-50%);
  width: min(34vw, 440px);
  max-height: calc(100% - 180px);
  overflow-y: auto;
  color: white;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.project-overlay h1 {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-size: clamp(25px, 3vw, 43px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
}
.project-overlay p {
  margin: 0 0 14px;
  font-family: var(--font-description);
  font-size: 14px;
  line-height: 1.55;
}
/* =========================================
   BACK TO PROJECTS
   ========================================= */
.project-back {
  position: absolute;
  top: 115px;
  left: var(--page-gutter);
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  font-family: var(--font-description);
  font-size: 13px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.project-back:hover {
  color: var(--green);
}
/* Header appears over the video */
body.project-open .workspace-header {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
body.project-open .workspace-header .site-name,
body.project-open .workspace-header nav button {
  color: var(--white);
}
body.project-open .workspace-header nav button:hover,
body.project-open .workspace-header nav button.active {
  color: var(--green);
}
/* =========================================
   HORIZONTAL IMAGE SLIDER
   ========================================= */
.project-gallery-section {
  width: 100%;
  padding: 5px 5px 5px 5px;
  margin: 0;
  background: white;
}
.project-gallery {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x;
  }

/* HORIZONTAL SCROLLBAR */

.project-gallery {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.project-gallery:hover {
  scrollbar-color: #ff5900 transparent;
}

.project-gallery::-webkit-scrollbar {
  height: 5px;
}

.project-gallery::-webkit-scrollbar-track {
  background: transparent;
}

.project-gallery::-webkit-scrollbar-thumb {
  background: transparent;
}

.project-gallery:hover::-webkit-scrollbar-thumb {
  background: #ff5900;
}
.gallery-image {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 80vh;
  max-width: none;
  margin: 0;
  object-fit: contain;
  scroll-snap-align: start;
}
/* VIMEO VIDEO INSIDE GALLERY */

.gallery-video {
  display: block;
  flex: 0 0 auto;
  height: 80vh;
  width: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  margin: 0;
  background: #000;
  scroll-snap-align: start;
}

/* MOBILE GALLERY VIDEO */

@media (max-width: 760px) {
  .gallery-video {
    height: 48vh;
  }
}
/* =========================================
   ADDITIONAL PROJECT DESCRIPTION
   Centred below the image slider
   ========================================= */
.project-additional-section {
  width: 100%;
  min-height: 65vh;
  padding: 100px var(--page-gutter);
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: clamp(35px, 15vw, 120px);
  align-items: start;
background: #fff;
}
/* LEFT COLUMN: PROJECT INFORMATION */
.project-information {
  width: 100%;
  font-family: var(--font-description);
  font-size: 13px;
  line-height: 1;
}
.project-information h2 {
  margin: 0 0 35px;
  font-family: var(--font-project-title);
  font-size: 23px;
  font-weight: 400;
  opacity: 0;
}
.project-information h3 {
  margin: 0 0 12px;
  font-family: var(--font-description);
  font-size: 13px;
  font-weight: 700;
}
.project-info-main,
.project-info-team,
.project-info-collaboration,
.project-info-media {
  margin-bottom: 35px;
}
.project-info-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-bottom: 5px;
}
.project-info-row span:first-child {
  opacity: 0.55;
}
.project-info-row span:last-child {
  text-align: left;
}
.project-info-row[hidden],
.project-information [hidden] {
  display: none !important;
}
/* MEDIA LINKS */
.project-info-media a {
  display: block;
  width: fit-content;
  color: black;
  text-decoration: none;
  margin-bottom: 6px;
}
.project-info-media a:hover {
  color: var(--green);
}
/* RIGHT COLUMN: LONG DESCRIPTION */
.project-additional-description {
  width: 100%;
  max-width: 850px;
  margin: 0;
  font-family: var(--font-description);
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}
.project-additional-description p {
  margin: 0 0 20px;
}
.project-description-author {
  margin-top: 35px !important;
  font-size: 13px;
  opacity: 0.55;
}
/* =========================================
   MOBILE PROJECT PAGE
   ========================================= */
@media (max-width: 760px) {
  .project-hero {
    min-height: 600px;
  }
  .project-overlay {
    top: auto;
    right: 20px;
    bottom: 45px;
    left: 20px;
    transform: none;
    width: auto;
    max-height: 55%;
  }
  .project-overlay h1 {
    font-size: 29px;
    margin-bottom: 14px;
  }
  .project-overlay p {
    font-size: 13px;
  }
  .project-back {
    top: 125px;
    left: 20px;
  }
/* MOBILE SLIDESHOW */

.project-gallery-section {
  padding: 5px 5px 0px;
}

.project-gallery {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: auto;

  gap: 0;
  overflow: hidden;

  scroll-snap-type: none;
  touch-action: pan-y;
  scrollbar-width: none;
}

.gallery-image {
  flex: 0 0 auto;

  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 55svh;

  object-fit: contain;
  scroll-snap-align: none;
}

.gallery-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  scroll-snap-align: none;
}

/* SLIDESHOW NAVIGATION */

.gallery-slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  padding: 5px 15px;

  color: #ff5900;
  background: transparent;
}

.gallery-slideshow-controls button {
  background: transparent;
  border: none;

  min-width: 44px;
  min-height: 44px;

  color: #ff5900;
  font-size: 28px;
  font-weight: 400;
}

.gallery-slideshow-counter {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
}
.project-additional-section {
  grid-template-columns: 1fr;
  row-gap: 55px;
  padding: 25px 25px 65px;
}
  .project-information {
    font-size: 12px;
  }
  .project-additional-description {
    font-size: 14px;
  }
}
/* =========================================
   ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  .split-view,
  .project-view {
    transition: none;
  }
  .project-gallery {
    scroll-behavior: auto;
  }
}
/* =========================================
   PROJECT BOTTOM NAVIGATION
   ========================================= */
.project-bottom-navigation {
  width: 100%;
  padding: 35px var(--page-gutter) 45px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 35px;
  background: white;
}
.project-bottom-navigation button {
  appearance: none;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  background: transparent;
  color: rgb(8, 0, 255);
  font-family: var(--font-description);
  font-size: 13px;
  font-weight: 700;
  text-shadow: none;
  cursor: pointer;
  text-align: left;
}
.project-bottom-navigation button:hover {
  color: var(--green);
}
.project-bottom-navigation button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
/* =========================================
   MAIN PAGE LAYOUT — WORKS AND BIO
   ========================================= */
/* WORKS */
.works-view {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--page-gutter) 50px;
  scrollbar-width: none;
}
.works-view::-webkit-scrollbar {
  display: none;
}
/* MOBILE */
@media (max-width: 760px) {
  .split-view {
    height: calc(100% - 90px);
    margin-top: 90px;
  }
  .works-view {
    padding: 0 20px 30px;
  }
}
/* INTRO HEADER TRANSITION */
.workspace-header {
  opacity: 1;
  transition: opacity .15s ease;
}
body.intro-transition .workspace-header {
  opacity: 0;
}
.intro-transition-header {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  margin: 0;
  transform-origin: top left;
  will-change: transform;
}
.intro-transition-header button {
  pointer-events: none;
}
/* =========================================
   PROJECT PAGE — DARK BACKGROUND
   ========================================= */
.project-view {
  background: #fff;
  color: var(--black);
}
.project-hero,
.project-gallery-section,
.project-gallery,
.project-additional-section,
.project-bottom-navigation {
  background: #fff;
  color: var(--black);
}
.project-information,
.project-description-column {
  color: var(--black);
}
.project-info-media a {
  color: var(--black);
}
.project-bottom-navigation button {
  color: var(--black);
}
/* =========================================
   WORKS — GRID SETTINGS
   ========================================= */

.works-view {
  --works-columns: 3;
  --works-rows: 2;
  --works-horizontal-gap: 0px;
  --works-vertical-gap: 0px;

  position: relative;
  padding: 0;
  isolation: isolate;
}

.image-grid {
  display: grid;

  grid-template-columns: repeat(var(--works-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--works-rows), minmax(0, 1fr));

  column-gap: var(--works-horizontal-gap);
  row-gap: var(--works-vertical-gap);

  width: 100%;
  height: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

  align-items: stretch;
}

.project-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

/* Image */

.project-image {
  position: relative;
  display: block;

  width: 100%;
  height: 100%;
  aspect-ratio: auto;

  padding: 0;
  border: 0;
  overflow: visible;

  container-type: inline-size;
  background: #050505;
  cursor: pointer;
  text-align: center;
}

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

/* Title over the entire image */
.project-card-title {
  position: absolute;
  inset: 0 -15%;
  z-index: 10;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Typography */
  font-family: var(--font-project-title);
  font-style: italic;
  font-weight: 200;
  font-size: 10cqw;
  text-transform: none;
  line-height: 1.15;
  letter-spacing: 1px;
  text-align: center;
  white-space: pre-line;
 /* Text colour and outline */
color: #ffffff;
-webkit-text-stroke: 0.5px  #0000e6;
paint-order: stroke fill;
/* White glow */
text-shadow:
  0 0 5px rgba(45, 3, 255, 0.9),
  0 0 15px rgba(0, 0, 0, 0.8),
  0 0 30px rgba(0, 0, 0, 0.6);
  padding: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
/* Bring hovered project to the front */
.project-card:hover,
.project-card:focus-within {
  z-index: 50;
}
/* Reveal title */
.project-image:hover .project-card-title,
.project-image:focus-visible .project-card-title {
  opacity: 1;
}
/* Keyboard accessibility */
.project-image:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
/* MOBILE — WORKS GRID */

@media (max-width: 760px) {

  .works-view {
  padding: 40px 0 0;
}

  .image-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    width: 100%;
    margin: 0;
    max-width: none;
    height: auto;
  }

  .image-grid .project-card {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .image-grid .project-card .project-image {
    aspect-ratio: 1.3 / 1;
    height: auto;
    width: 100%;
    border: none;
  }

  .image-grid .project-image img {
    outline: none;
    border: none;
    box-shadow: none;
  }

  .image-grid .project-image {
    --hover-scale: 1;
    --hover-brightness: 1;
  }

  .project-card-title {
    inset: 8%;
    font-size: 5cqw;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }
}

/* Plain white page surfaces; media retain their original appearance. */
.works-view {
  background: #010101;
}
.bio-view, .split-view {
  background: #fff;
}
/* LANDING PAGE — ORIGINAL BACKGROUND */
/* RESTORE ORIGINAL LANDING PAGE */
.intro-shade {
  background: transparent !important;
}
.intro-nav button {
  color: #fff !important;
}
/* WORKS — DARK BACKGROUND AND WHITE HEADER */
body:has(.works-view:not([hidden])):not(.project-open) .workspace {
  background: #010101;
}
body:has(.works-view:not([hidden])):not(.project-open) .workspace-header .site-name,
body:has(.works-view:not([hidden])):not(.project-open) .workspace-header nav button {
  color: #fff;
}
/* =========================================
   WORKS — PLAIN BLACK BACKGROUND
   ========================================= */
:root {
  --works-background: #010101;
  --glow-color: #ff5900; /* Retained for Bio text and project scrollbar. */
}
body:not(.project-open) .workspace {
  background: var(--works-background);
}
body:not(.project-open) .split-view {
  background: transparent;
  z-index: 1;
}
body:not(.project-open) .works-view {
  background: var(--works-background);
}
body:not(.project-open) .workspace-header {
  background: transparent;
  z-index: 100;
}
/* =========================================
   WORKS — IMAGE HOVER EFFECT
   ========================================= */
.project-image {
  --hover-stroke-color: #ff660000;
  --hover-stroke-width: 0px;
  --hover-scale: 0.95;
  --hover-brightness: 1.15;
  --hover-duration: 0.5s;
  background: transparent;
}
.project-image img {
  transform: scale(1);
  filter: brightness(1);
  clip-path: none;
  outline: var(--hover-stroke-width) solid transparent;
  outline-offset: calc(-1 * var(--hover-stroke-width));
  transition:
    transform var(--hover-duration) ease,
    filter var(--hover-duration) ease,
    outline-color var(--hover-duration) ease;
}
.project-image:hover img,
.project-image.is-highlighted img,
.project-image.hover-highlight img {
  transform: scale(var(--hover-scale));
  filter: brightness(var(--hover-brightness));
  outline-color: var(--hover-stroke-color);
}
/* Remove the previous separate outline */
.project-image::after {
  content: none;
}
.workspace-header nav button {
  color: #ffffff;
}
/* =========================================
   NAVIGATION — ACTIVE SECTION COLOR
   ========================================= */
/* Works selected */
body:has(.works-view:not([hidden])):not(.project-open)
.workspace-header nav button[data-open="works"] {
  color: var(--green);
}
/* Bio selected */
body:has(.bio-view:not([hidden])):not(.project-open)
.workspace-header nav button[data-open="bio"] {
  color: var(--green);
}

/* =========================================
   BIO — FULL-SCREEN COMPOSITION
   ========================================= */

/* Black background */

body:has(.bio-view:not([hidden])):not(.project-open)
.workspace {
  background: #010101;
}


/* Remove outer border */

body:has(.bio-view:not([hidden])):not(.project-open)
.workspace::after {
  box-shadow: none;
}


/* Extend About page behind the header */

body:has(.bio-view:not([hidden])):not(.project-open)
.split-view {
  height: 100%;
  margin-top: 0;
  background: #010101;
  z-index: 1;
}


/* White navigation */

body:has(.bio-view:not([hidden])):not(.project-open)
.workspace-header .site-name,

body:has(.bio-view:not([hidden])):not(.project-open)
.workspace-header nav button {
  color: #ffffff;
}


/* Active About button */

body:has(.bio-view:not([hidden])):not(.project-open)
.workspace-header nav button[data-open="bio"] {
  color: #ffffff;
}


/* CV link hover */

.bio-copy .bio-cv:hover {
  color: #ffffff;
}

/* =========================================
   PROJECT PAGE — ORANGE SCROLLBAR
   ========================================= */
.project-view {
  --scrollbar-width: 5px;
  --scrollbar-color: var(--glow-color);
  --scrollbar-background: #010101;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-color)
                   var(--scrollbar-background);
}
.project-view::-webkit-scrollbar {
  display: block;
  width: var(--scrollbar-width);
}
.project-view::-webkit-scrollbar-track {
  background: var(--scrollbar-background);
}
.project-view::-webkit-scrollbar-thumb {
  background: var(--scrollbar-color);
  border-radius: 0;
}
/* =========================================
   PROJECT GALLERY — FULLSCREEN LIGHTBOX
   ========================================= */
.project-gallery img {
  cursor: zoom-in;
}
.gallery-image:hover {
  outline-color: #864b2300;
}
.gallery-lightbox {
  --lightbox-background: #010101;
  --lightbox-color: #693a2000;
  --lightbox-image-width: 85vw;
  --lightbox-image-height: 88vh;
  --lightbox-button-size: 28px;
  --lightbox-border: 0px;
  --lightbox-speed: 0.35s;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lightbox-background);
  box-shadow: inset 0 0 0
    var(--lightbox-border) var(--lightbox-color);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--lightbox-speed) ease,
    visibility var(--lightbox-speed) ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Fullscreen photograph */
.gallery-lightbox-image {
  display: block;

  width: auto;
  height: auto;

  max-width: 100vw;
  max-height: 80svh;

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

  border: none;
  outline: none;
  box-shadow: none;
}

/* Navigation buttons */
.gallery-lightbox button {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0px;
  color: var(--lightbox-color);
  font-family: Arial, sans-serif;
  font-size: var(--lightbox-button-size);
  font-weight: 300;
  cursor: pointer;
}
.gallery-lightbox button:hover {
  color: #ffffff;
}
.gallery-lightbox-close {
  top: 15px;
  right: 20px;
  position: absolute;
z-index: 2;
color: #ff5900;
background: transparent;
border: none;
}
.gallery-lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
z-index: 2;
color: #ff5900;
background: transparent;
border: none;
}
.gallery-lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
z-index: 2;
color: #ff5900;
background: transparent;
border: none;
}
/* Image counter */
.gallery-lightbox-counter {
  display: none;
}

/* Mobile */
@media (max-width: 760px) {
  .gallery-lightbox {
    --lightbox-image-width: 94vw;
    --lightbox-image-height: 80vh;
    --lightbox-button-size: 22px;
  }
  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    top: auto;
    bottom: 10px;
    transform: none;
  }
}
/* =========================================
   BIO — HORIZONTAL SLIDE ANIMATION
   ========================================= */
:root {
  --bio-slide-speed: 750ms;
  --bio-slide-easing: cubic-bezier(0.65, 0, 0.35, 1);
}
body:not(.project-open) .bio-view.bio-sliding {
  position: absolute;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  max-width: none;
  background: #010101 !important;
  opacity: 1;
  box-shadow: inset 1px 0 0 #ffffff;
}
@keyframes bio-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes bio-slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
.bio-view.bio-entering {
  animation: bio-slide-in
    var(--bio-slide-speed)
    var(--bio-slide-easing) both;
}
.bio-view.bio-leaving {
  animation: bio-slide-out
    var(--bio-slide-speed)
    var(--bio-slide-easing) both;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --bio-slide-speed: 1ms;
  }
}
/* =========================================
   WORKS — PUSH TRANSITION WITH BIO
   ========================================= */
@keyframes works-slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes works-slide-in {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
.works-view.works-leaving {
  animation: works-slide-out
    var(--bio-slide-speed)
    var(--bio-slide-easing) both;
}
.works-view.works-entering {
  animation: works-slide-in
    var(--bio-slide-speed)
    var(--bio-slide-easing) both;
}
/* =========================================
   BIO — LOADING SCREEN
   ========================================= */
:root {
  --bio-loader-color: #ff5900;
  --bio-loader-size: 65px;
  --bio-loader-background: #010101;
}
.bio-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bio-loader-background);
  color: var(--bio-loader-color);
  flex-direction: column;
  gap: 15px;
}
.bio-loader svg {
  width: var(--bio-loader-size);
  height: var(--bio-loader-size);
}
.bio-loader circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.bio-loader circle.is-filled {
  fill: currentColor;
}

/* =========================================
   PROJECT — VIDEO EXCERPTS
   ========================================= */

.project-excerpts {
  --excerpts-top-spacing: 120px;
  --excerpts-title-size: 40px;
  --excerpts-title-spacing: 50px;
  --excerpts-video-width: 100%;
  --excerpts-video-gap: 10px;

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

  margin: var(--excerpts-top-spacing) 0 0;
  text-align: left;
}

.project-excerpts[hidden] {
  display: none;
}

/* TITLE */

.project-excerpts .excerpts-title {
  font-family: var(--font-project-title);
  font-size: var(--excerpts-title-size);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  line-height: 0.9;
  letter-spacing: 1px;

  color: #0000e6;
  -webkit-text-stroke: 2px #ffffff;
  paint-order: stroke fill;
  margin: 0 0 var(--excerpts-title-spacing);
  text-align: left;
}

/* VERTICAL VIDEO COLUMN */

.project-excerpts-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  gap: var(--excerpts-video-gap);
}

/* INDIVIDUAL VIDEO */

.project-excerpt-video {
  display: block;
  flex: 0 0 auto;
  width: var(--excerpts-video-width);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: #010101;
}

/* MOBILE */

@media (max-width: 760px) {
  .project-excerpts {
    --excerpts-top-spacing: 60px;
    --excerpts-title-spacing: 30px;
    --excerpts-title-size: 18px;
    --excerpts-video-width: 100%;
  }
}

/* =========================================
   LOADING ANIMATION — TEXT
   ========================================= */

.loader-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #ff5900;
  text-align: center;
}