/* ========================================
   DESIGN SYSTEM
======================================== */

:root {
  /* Typography — Sizes */
  --font-heading: 32px;
  --font-body: 16px;
  --font-small: 14px;
  --font-large: 20px;

  /* Typography — Weights */
  --weight-heading: 500;
  --weight-body: 300;
  --weight-small: 400;
  --weight-large: 500;

  /* Colours */
  --color-background: #ffffff;
  --color-text: #201d1e;
}

/* ========================================
   1. GLOBAL STYLES
======================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: "Inter", Arial, sans-serif;
  font-weight: var(--weight-body);
}

/* ========================================
   2. SHARED COMPONENTS
======================================== */

/* Fixed navigation with adaptive colours */

.work-header,
.project-header,
.about-header {
  position: fixed;
  top: 40px;
  left: 40px;
  right: 40px;

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

  z-index: 100;
  mix-blend-mode: difference;

  pointer-events: none;
}

.work-header a,
.work-header button,
.project-header a,
.project-header button,
.about-header a,
.about-header button {
  pointer-events: auto;
}

/* White navigation elements before blending */

.work-header .work-logo img,
.project-header .work-logo img,
.about-header .work-logo img {
  filter: brightness(0) invert(1);
}

.work-header .menu-toggle span,
.project-header .menu-toggle span,
.about-header .menu-toggle span {
  background-color: #ffffff;
}

/* Navigation links */

.home-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.home-nav a {
  color: #000000;
  text-decoration: none;
  font-size: clamp(18px, 1.67vw, 32px);
  font-weight: 300;
  line-height: 1.5;
}

/* Hamburger button */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  width: 44px;
  height: 44px;
  padding: 8px;

  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #000000;
}

/* Menu content */

.menu-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.menu-email,
.menu-close {
  display: none;
}

/* Hamburger menu animation */

.home-nav {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-nav.is-open {
  transform: translateY(0);
}

.home-nav.is-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 350px;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;

  padding: 40px;
  background-color: #211e1e;
}

/* Horizontal navigation */

.home-nav.is-open .menu-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;

  padding-right: 100px;
}

.home-nav.is-open .menu-links a {
  color: #fff;
  font-size: var(--font-large);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

/* Email */

.home-nav.is-open .menu-email {
  display: block;
  color: #fff;
  font-size: var(--font-body);
  font-weight: 300;
  text-decoration: none;
}

/* Close button */

.home-nav.is-open .menu-close {
  display: block;
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 1;
  color: #fff;

  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-close span {
  position: absolute;
  top: 19px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
}

.menu-close span:first-child {
  transform: rotate(45deg);
}

.menu-close span:last-child {
  transform: rotate(-45deg);
}

/* Reusable image styling */

.wordmark-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ========================================
   3. HOMEPAGE
======================================== */

/* Main layout */

.home {
  height: 100vh;
  height: 100dvh;
  padding: 40px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

/* Header */

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* Introduction */

.home-intro {
  flex: 1;
  max-width: 560px;
  min-width: 0;
}

.home-intro p {
  margin: 0;
  font-size: clamp(18px, 1.67vw, 32px);
  font-weight: 300;
  line-height: 1.2;
  text-wrap: pretty;
}

/* Wordmark */

.home-wordmark {
  width: 100%;
}

/* Wordmark versions */

.wordmark-horizontal {
  display: block;
}

.wordmark-stacked {
  display: none;
}

.home-wordmark.use-stacked .wordmark-horizontal {
  display: none;
}

.home-wordmark.use-stacked .wordmark-stacked {
  display: block;
}

/* ========================================
   4. WORK PAGE
======================================== */

/* Main layout */

.work {
  min-height: 100vh;
  padding: 40px;
}

/* Header */

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Monogram */

.work-logo img {
  display: block;
  width: 50px;
  height: auto;
}

/* Work page hamburger */

.work .menu-toggle {
  display: flex;
}

/* Work page navigation */

.work .home-nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: 1000;

  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;

  padding: 40px;
  background-color: #211e1e;

  transform: translateY(-100%);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.5s;
  visibility: hidden;
  pointer-events: none;
}

.work .home-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

/* Work page title */

.work-title {
  width: clamp(280px, 32vw, 480px);
  max-width: 100%;
  margin: 160px 0 100px;
}

.work-title img {
  display: block;
  width: 100%;
  height: auto;
}

/* Project listing */

.work-projects {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 4vw, 60px);
}

/* Individual project */

.project {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}

/* Project image container */

.project-image {
  width: 100%;
  aspect-ratio: 1178 / 650;
  border-radius: 12px;
  overflow: hidden;
}

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

/* Project information */

.project-info {
  display: flex;
  width: 90%;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.project-title {
  margin: 0;
  font-size: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: 1;
}

.project-info p {
  margin: 0;
  font-size: var(--font-body);
  font-weight: var(--weight-body);
  line-height: 1.2;
}

.project-link {
  color: #000000;
  font-size: var(--font-body);
  font-weight: var(--weight-body);
  text-decoration: none;
}

/* ========================================
   5. PROJECT PAGE
======================================== */

/* Main layout */

.project-page {
  padding: 40px;
}

/* Header */

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Project hero */

.project-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 80px;
  border-radius: 12px;
  overflow: hidden;
}

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

/* Project page hamburger */

.project-page .menu-toggle {
  display: flex;
}

/* Project page navigation */

.project-page .home-nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: 1000;

  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;

  padding: 40px;
  background-color: #211e1e;

  transform: translateY(-100%);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.5s;
  visibility: hidden;
  pointer-events: none;
}

.project-page .home-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

/* Project introduction */

.project-introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 60px 0 100px;
}

/* Project information */

.project-details {
  display: flex;
  flex-direction: column;
}

.project-name {
  margin: 0 0 40px;
  font-size: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: 1;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-label {
  color: #a3a3a3;
  font-size: var(--font-small);
  font-weight: var(--weight-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Project metadata */

.project-meta p {
  margin: 0;
  font-size: var(--font-body);
  font-weight: var(--weight-body);
  line-height: 1.4;
}

/* Project introduction description */

.project-description {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-description p {
  margin: 0;
  font-size: var(--font-body);
  font-weight: var(--weight-body);
  line-height: 1.5;
}

/* Project gallery */

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Full-width images */

.gallery-full {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* Two-column images */

.gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery-image {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
}

/* Full-width images and videos */

.gallery-full img,
.gallery-full video {
  display: block;
  width: 100%;
  height: auto;
}

/* Two-column images and videos */

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

/* Gallery text */

.gallery-text {
  width: calc((100% - 20px) / 2);
  font-weight: var(--weight-body);
  margin-left: auto;
  padding: 40px 0;
}

/* Gallery descriptions */

.gallery-text p {
  margin: 0;
  font-size: var(--font-body);
  line-height: 1.5;
}

/* More projects */

.more-projects {
  border-top: 1px solid #000;
  padding-top: 60px;
  margin-top: 100px;
  margin-bottom: 100px;
}

.more-projects-heading {
  margin: 0 0 40px;
  text-align: center;
  font-size: 24px;
  font-weight: var(--weight-heading);
  line-height: 1.2;
}

/* Three-column layout */

.more-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

/* Individual project cards */

.more-project-card {
  display: block;
  min-width: 0;
  color: #000;
  text-decoration: none;
}

/* Project thumbnail */

.more-project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

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

/* Information below thumbnail */

.more-project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
}

.more-project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.more-project-name,
.more-project-tagline,
.more-project-link {
  font-size: var(--font-small);
  font-weight: var(--weight-small);
  line-height: 1.4;
}

.more-project-tagline {
  color: #999;
}

.more-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.more-project-link svg {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ========================================
   6. ABOUT PAGE
======================================== */

/* Main layout */

.about-page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #201d1e;
}

/* About page hamburger */

.about-page .menu-toggle {
  display: flex;
}

/* About page dropdown */

.about-page .home-nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: 1000;

  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;

  padding: 40px;
  background-color: #211e1e;

  transform: translateY(-100%);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.5s;

  visibility: hidden;
  pointer-events: none;
}

.about-page .home-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

/* About page dropdown colours */

.about-page .home-nav {
  background-color: #ffffff;
}

.about-page .home-nav.is-open .menu-links a,
.about-page .home-nav.is-open .menu-email {
  color: #201d1e;
}

.about-page .home-nav.is-open .menu-close span {
  background-color: #201d1e;
}

/* Intro styling */

.about-intro {
  position: absolute;
  top: 20%;
  left: 40px;
  width: 48%;
  max-width: 780px;
  z-index: 2;
}

.about-intro h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 1.9vw, 32px);
  font-weight: 200;
  line-height: 1.22;
}

.about-full-name {
  white-space: nowrap;
}

.about-inline-logo {
  display: inline-block;
  width: auto;
  height: 1.12em;
  vertical-align: -0.35em;
  margin-right: 2px;
}

/* Prevent specific words from breaking across lines */

.no-wrap {
  white-space: nowrap;
}

/* Interactive artwork container */

.about-artwork {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-object {
  pointer-events: auto;
}

/* Shared interactive illustration styling */

.about-object {
  position: absolute;
  display: block;
  height: auto;

  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;

  will-change: transform;
  cursor: grab;
}

/* Individual illustration positions */

.about-motion-design {
  width: 14%;
  top: 40%;
  left: 39%;
}

.about-brand-systems {
  width: 16%;
  top: 49%;
  right: 27%;
}

.about-digital-applications {
  width: 28%;
  top: 74%;
  left: 30%;
}

.about-editorial {
  width: 12%;
  top: 8%;
  right: 9%;
}

.about-illustration {
  width: 18%;
  top: 45%;
  left: 6%;
}

.about-packaging {
  width: 12%;
  top: 46%;
  left: 24%;
}

.about-print {
  width: 3.5%;
  top: 36%;
  right: 6%;
}

.about-type-design {
  width: 36%;
  top: 72%;
  right: 12%;
}

.about-visual-identity {
  width: 20%;
  top: 60%;
  left: 3%;
}

.about-website-design {
  width: 34%;
  top: 23%;
  right: 12%;
}

/* About page figure legend */

.about-legend {
  position: absolute;
  right: 3.3%;
  bottom: 5%;

  z-index: 2;

  color: #ffffff;
  font-size: 14px;
  font-style: italic;
  font-size: var(--font-small);
  font-weight: 200;
  line-height: 1.6;
  text-align: right;
}

.about-legend p {
  margin: 0;
}

/* About page quote */

.about-quote {
  white-space: nowrap;
}

.crossed-out {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* =========================================
   PLAYGROUND PAGE
========================================= */

.playground-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #201d1e;
  overflow: hidden;
}

/* Centred coming soon artwork */

.playground-content {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 40px;
}

.playground-content h1 {
  margin: 0;
  width: min(100%, 950px);
}

.playground-content img {
  display: block;
  width: 100%;
  height: auto;
}

/* Playground navigation */

.playground-header {
  position: fixed;
  top: 40px;
  left: 40px;
  right: 40px;

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

  z-index: 100;
  mix-blend-mode: difference;
  pointer-events: none;
}

.playground-header a,
.playground-header button {
  pointer-events: auto;
}

.playground-header .work-logo img {
  filter: brightness(0) invert(1);
}

.playground-header .menu-toggle {
  display: flex;
}

.playground-header .menu-toggle span {
  background-color: #ffffff;
}

/* Dropdown panel */

.playground-page .home-nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: 1000;

  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;

  padding: 40px;
  background-color: #ffffff;

  transform: translateY(-100%);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.5s;

  visibility: hidden;
  pointer-events: none;
}

.playground-page .home-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

/* Light dropdown, dark text */

.playground-page .home-nav.is-open .menu-links a,
.playground-page .home-nav.is-open .menu-email {
  color: #201d1e;
}

.playground-page .home-nav.is-open .menu-close span {
  background-color: #201d1e;
}

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

.contact-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px;
  background-color: #ffffff;

  display: flex;
  flex-direction: column;
}

/* Fixed navigation */

.contact-header {
  position: fixed;
  top: 40px;
  left: 40px;
  right: 40px;

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

  z-index: 100;
  mix-blend-mode: difference;
  pointer-events: none;
}

.contact-header a,
.contact-header button {
  pointer-events: auto;
}

.contact-header .work-logo img {
  filter: brightness(0) invert(1);
}

.contact-header .menu-toggle {
  display: flex;
}

.contact-header .menu-toggle span {
  background-color: #ffffff;
}

/* Dropdown */

.contact-page .home-nav {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: 1000;

  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;

  padding: 40px;
  background-color: #211e1e;

  transform: translateY(-100%);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.5s;

  visibility: hidden;
  pointer-events: none;
}

.contact-page .home-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

/* Introduction */

.contact-intro {
  margin-top: 110px;
  max-width: 620px;
}

.contact-intro h1 {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 32px);
  font-weight: 300;
  line-height: 1.2;
}

/* Large contact links */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;

  margin-top: auto;
}

.contact-links {
  --contact-font-size: 9.8vw;

  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  width: 100%;
}

.contact-links a {
  display: block;
  color: #201d1e;
  text-decoration: none;

  font-size: var(--contact-font-size);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.contact-email {
  align-self: flex-start;
}

.contact-email {
  align-self: flex-start;
  width: max-content;
}
.contact-social {
  align-self: flex-start;
}

.contact-email {
  align-self: flex-start;
}

.contact-phone {
  align-self: flex-end;
}

.contact-social {
  align-self: flex-start;
}

/* ========================================
   6. RESPONSIVE STYLES
======================================== */

/* Tablet and mobile */

@media (max-width: 900px) {
  /* Work page responsive layout */

  .work {
    padding: 24px;
  }

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

  .project-image {
    grid-row: 1;
  }

  .project-info {
    grid-row: 2;
  }

  .work-title {
    margin: 120px 0 60px;
  }

  /* Homepage layout */

  .home {
    padding: 24px;
    gap: 32px;
  }

  .home-header {
    position: relative;
  }

  .home-intro {
    max-width: 60%;
  }

  /* Homepage hamburger */

  .home .menu-toggle {
    display: flex;
  }

  /* Homepage navigation dropdown */

  .home .home-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    z-index: 1000;

    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;

    padding: 40px;
    background-color: #211e1e;

    transform: translateY(-100%);
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.5s;
    visibility: hidden;
    pointer-events: none;
  }

  .home .home-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;

    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  /* Fixed navigation — tablet and mobile */

  .work-header,
  .project-header,
  .about-header {
    top: 24px;
    left: 24px;
    right: 24px;
  }

  /* About intro — tablet */

  .about-intro {
    left: 24px;
  }

  /* About legend — tablet */

  .about-legend {
    right: 4%;
    bottom: 4%;
    font-size: 13px;
  }

  /* Footer responsive styles */

  .site-footer {
    padding: 24px;
    gap: 60px;
  }

  .footer-nav {
    gap: 16px 24px;
  }

  /* Project page responsive layout */

  .project-page {
    padding: 24px;
  }

  /* Project hero spacing */

  .project-hero {
    margin-top: 70px;
  }

  /* Project introduction */

  .project-introduction {
    grid-template-columns: 1fr;
    gap: 60px;
    margin: 40px 0 60px;
  }

  .project-name {
    margin-bottom: 32px;
  }

  .project-meta {
    gap: 28px;
  }

  .project-meta-item {
    gap: 4px;
  }

  /* Project gallery */

  .project-gallery {
    gap: 16px;
  }

  .gallery-pair {
    gap: 16px;
  }

  .gallery-text {
    width: 100%;
    padding: 24px 0;
  }

  .next-project {
    margin-bottom: 60px;
  }

  .next-project-label {
    margin-bottom: 24px;
  }

  /* More projects */

  .more-projects {
    padding-top: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .more-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .more-projects-heading {
    margin-bottom: 32px;
  }

  /* About illustrations — tablet */

  .about-motion-design {
    width: 24%;
    top: 54%;
    left: 36%;
  }

  .about-brand-systems {
    width: 26%;
    top: 55%;
    right: 8%;
  }

  .about-digital-applications {
    width: 36%;
    top: 84%;
    left: 36%;
  }

  .about-editorial {
    width: 22%;
    top: 25%;
    right: 13%;
  }

  .about-illustration {
    width: 26%;
    top: 49%;
    left: 5%;
  }

  .about-packaging {
    width: 20%;
    top: 58%;
    left: 12%;
  }

  .about-print {
    width: 5%;
    top: 30%;
    right: 3%;
  }

  .about-type-design {
    width: 52%;
    top: 75%;
    right: 4%;
  }

  .about-visual-identity {
    width: 26%;
    top: 76%;
    left: 5%;
  }

  .about-website-design {
    width: 56%;
    top: 36%;
    right: 12%;
  }

  /* Playground — tablet */

  .playground-header {
    top: 24px;
    left: 24px;
    right: 24px;
  }

  .playground-content {
    padding: 80px 24px;
  }

  /* Contact — tablet */

  .contact-page {
    padding: 24px;
  }

  .contact-header {
    top: 24px;
    left: 24px;
    right: 24px;
  }

  .contact-intro {
    margin-top: 120px;
    max-width: 540px;
  }

  /* Contact introduction — tablet */

  .contact-intro h1 {
    font-size: 24px;
    line-height: 1.25;
  }
}

/* Small mobile screens */

@media (max-width: 600px) {
  /* Homepage typography */
  .home-intro {
    max-width: 72%;
  }

  /* Work page typography */

  .project-title {
    font-size: 20px;
    line-height: 1.2;
  }

  .project-info p {
    line-height: 1.4;
  }

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

  /* Mobile typography */

  :root {
    --font-heading: 24px;
    --font-body: 14px;
    --font-large: 18px;
  }

  .more-projects-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile hamburger menu */

  .home .home-nav,
  .work .home-nav,
  .project-page .home-nav,
  .about-page .home-nav {
    height: 410px;
    padding: 24px;
  }

  .home-nav.is-open .menu-links {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    padding-right: 60px;
  }

  .home-nav.is-open .menu-links a {
    font-size: 24px;
    line-height: 1.2;
  }

  .home-nav.is-open .menu-close {
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
  }

  .menu-close span {
    top: 15px;
  }

  /* About intro — mobile */

  .about-intro {
    width: calc(100% - 60px);
  }

  .about-intro h1 {
    font-size: 16px;
    line-height: 1.25;
  }

  /* About legend — mobile */

  .about-legend {
    left: 8%;
    bottom: 4%;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
  }

  /* About illustration mobile layout */

  .about-flower {
    width: 10%;
    top: 38%;
    left: 6%;
  }

  /* About quote — mobile */

  .about-quote {
    white-space: normal;
  }

  /* About illustrations — mobile */

  .about-motion-design {
    width: 24%;
    top: 58%;
    right: 40%;
  }

  .about-brand-systems {
    width: 24%;
    top: 58%;
    right: 12%;
  }

  .about-digital-applications {
    width: 36%;
    top: 87%;
    left: 46%;
  }

  .about-editorial {
    width: 20%;
    top: 46%;
    left: 9%;
  }

  .about-illustration {
    width: 26%;
    top: 54%;
    left: 5%;
  }

  .about-packaging {
    width: 20%;
    top: 60%;
    left: 9%;
  }

  .about-print {
    width: 5%;
    top: 56%;
    right: 3%;
  }

  .about-type-design {
    width: 58%;
    top: 74%;
    right: 4%;
  }

  .about-visual-identity {
    width: 26%;
    top: 76%;
    left: 7%;
  }

  .about-website-design {
    width: 56%;
    top: 36%;
    right: 12%;
  }

  /* Playground — mobile */

  .playground-page .home-nav {
    height: 410px;
    padding: 24px;
  }

  .playground-content {
    padding: 80px 24px;
  }

  .playground-content h1 {
    width: 100%;
  }

  /* Project description — mobile */

  .project-name {
    margin-bottom: 28px;
  }

  .project-meta {
    gap: 24px;
  }

  .project-meta-label {
    letter-spacing: 0.14em;
  }

  .project-meta-item {
    gap: 4px;
  }

  .project-description {
    gap: 16px;
  }

  /* Contact — mobile */

  .contact-page .home-nav {
    height: 410px;
    padding: 24px;
  }

  .contact-intro {
    margin-top: 100px;
    max-width: 100%;
  }

  /* Contact introduction — mobile */

  .contact-intro h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  .contact-links a {
    line-height: 1.25;
  }
}

/* About illustrations — short landscape screens */

@media (min-width: 601px) and (max-height: 700px) {
  .about-motion-design {
    width: 12%;
    top: 56%;
    left: 38%;
  }

  .about-brand-systems {
    width: 14%;
    top: 58%;
    right: 18%;
  }

  .about-digital-applications {
    width: 20%;
    top: 78%;
    left: 38%;
  }

  .about-editorial {
    width: 12%;
    top: 14%;
    right: 12%;
  }

  .about-illustration {
    width: 13%;
    top: 48%;
    left: 5%;
  }

  .about-packaging {
    width: 10%;
    top: 57%;
    left: 17%;
  }

  .about-print {
    width: 3%;
    top: 40%;
    right: 4%;
  }

  .about-type-design {
    width: 25%;
    top: 76%;
    right: 12%;
  }

  .about-visual-identity {
    width: 14%;
    top: 72%;
    left: 5%;
  }

  .about-website-design {
    width: 25%;
    top: 38%;
    right: 12%;
  }
}

/* ========================================
   7. FOOTER
======================================== */

.site-footer {
  background-color: #f2f2f2;
  padding: 40px;

  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* Footer navigation */

.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-nav a {
  color: #000000;
  text-decoration: none;
  font-size: var(--font-body);
  font-weight: var(--weight-body);
  line-height: 1.2;
}

/* Footer wordmark */

.footer-wordmark {
  width: 100%;
}

.footer-wordmark a,
.footer-wordmark img {
  display: block;
  width: 100%;
}

.footer-wordmark img {
  height: auto;
}

/* Mobile footer */

@media (max-width: 600px) {
  .site-footer {
    padding: 20px;
    gap: 60px;
  }

  .footer-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    width: 100%;
  }

  .footer-nav a {
    white-space: nowrap;
  }
}
/* Narrow mobile footer */

@media (max-width: 360px) {
  .footer-nav a {
    font-size: 12px;
  }
}
/* Extra narrow mobile footer */

@media (max-width: 319px) {
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
  }

  .footer-nav a {
    font-size: 14px;
  }
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
  .home .home-nav,
  .work .home-nav,
  .project-page .home-nav {
    transition: none;
  }
}

/* Custom cursor */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 2147483647;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    width 0.25s ease,
    height 0.25s ease;
  will-change: transform;
}

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

/* Enlarge cursor over clickable elements */

.custom-cursor.is-hovering {
  width: 34px;
  height: 34px;
}

/* Hide default cursor when custom cursor is active */

html.has-custom-cursor,
html.has-custom-cursor body,
html.has-custom-cursor body * {
  cursor: none !important;
}

/* Keep text editing usable */

html.has-custom-cursor input,
html.has-custom-cursor textarea,
html.has-custom-cursor [contenteditable="true"] {
  cursor: text !important;
}

/* Page transitions */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: #0f0e0e;
  z-index: 2147483646;
  pointer-events: none;
  transform: translateY(100%);
}

/* Panel rises from the bottom */

html.page-leaving body::after {
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Panel starts covering the incoming page */

html.page-arriving body::after {
  transform: translateY(0);
}

/* Panel continues upward to reveal the new page */

html.page-revealing body::after {
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Hide custom cursor during transitions */

html.page-leaving .custom-cursor,
html.page-arriving .custom-cursor,
html.page-revealing .custom-cursor {
  opacity: 0 !important;
}

/* Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
  body::after {
    display: none;
  }
}

/* Clickable text hover effect */

a {
  transition: font-weight 0.2s ease;
}

a:hover {
  font-weight: 600;
}

/* Homepage intro screen */

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #201d1e;
  z-index: 2147483647;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 1.25s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Show intro on first visit */

html.intro-loading .loading-overlay {
  display: flex;
}

html.intro-loading {
  overflow: hidden;
}

/* Loading screen logo */

.loading-logo {
  display: block;
  width: 100px;
  max-width: 30vw;
  height: auto;
}

/* Slide screen upward */

html.intro-exiting .loading-overlay {
  transform: translateY(-100%);
}

/* Hide custom cursor during intro */

html.intro-loading .custom-cursor {
  opacity: 0 !important;
}

/* Accessibility */

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