:root {
  --bg: #F7F6F4;
  --ink: #242424;
  --muted: #AFAEAD;
  --number: #E6E6E4;
  --edge-x: clamp(40px, 6.3vw, 128px);
  --edge-y: clamp(36px, 6.8vh, 86px);
  --rail-w: clamp(220px, 18vw, 330px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.projects-page {
  position: relative;
  min-height: 100svh;
  background: var(--bg);
}

.projects-brand {
  position: fixed;
  z-index: 30;
  left: var(--edge-x);
  bottom: var(--edge-y);
  width: clamp(210px, 18vw, 342px);
  line-height: 0;
}
.projects-brand img { display: block; width: 100%; height: auto; }

.projects-rail {
  position: fixed;
  z-index: 40;
  inset: 0 0 0 auto;
  width: var(--rail-w);
  height: 100svh;
  pointer-events: none;
}

.rail-toggle {
  position: absolute;
  top: var(--edge-y);
  right: var(--edge-x);
  width: 56px;
  height: 56px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
}
.rail-toggle__glyph {
  position: relative;
  width: 56px;
  height: 56px;
  transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 180ms ease;
}
.rail-toggle__glyph::before,
.rail-toggle__glyph::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}
.rail-toggle__glyph::before { width: 54px; height: 1.35px; }
.rail-toggle__glyph::after  { width: 1.35px; height: 54px; }
.rail-toggle.is-open .rail-toggle__glyph { transform: rotate(45deg); }

.projects-nav {
  position: absolute;
  top: clamp(170px, 15vh, 196px);
  right: var(--edge-x);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(10px, 1vh, 16px);
  pointer-events: none;
}
.projects-nav a {
  font-size: clamp(21px, 1.55vw, 33px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: .015em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(38px);
  transition: opacity 180ms ease-out, transform 260ms cubic-bezier(.22,.61,.36,1), color 150ms ease;
  transition-delay: calc(var(--i) * 72ms);
}
.projects-nav.is-open { pointer-events: auto; }
.projects-nav.is-open a { opacity: 1; transform: translateX(0); }
.projects-nav:not(.is-open) a { transition-delay: 0ms; transition-duration: 110ms; }
.projects-nav a.is-current { color: var(--muted); }
.projects-nav a:hover { color: var(--muted); }

.projects-language {
  position: absolute;
  right: var(--edge-x);
  bottom: var(--edge-y);
  display: flex;
  gap: .42em;
  align-items: center;
  font-size: clamp(10px, .68vw, 14px);
  line-height: 1;
  letter-spacing: .03em;
  color: var(--muted);
  pointer-events: auto;
}
.projects-language a:hover { color: var(--ink); }

.project-list {
  width: min(100%, 820px);
  margin-left: clamp(500px, 42vw, 650px);
  padding: clamp(120px, 13vh, 150px) 0 180px;
}

.project-row {
  display: grid;
  grid-template-columns: clamp(170px, 10.8vw, 210px) minmax(500px, 560px);
  gap: clamp(28px, 2.3vw, 42px);
  align-items: start;
  margin-bottom: clamp(44px, 4.6vh, 72px);
}

.project-copy {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.project-number {
  align-self: flex-end;
  color: var(--number);
  font-size: clamp(88px, 6.7vw, 144px);
  line-height: .82;
  font-weight: 300;
  letter-spacing: -.055em;
  margin: 12px 0 82px;
}
.project-meta { width: 100%; }
.project-meta h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(15px, .98vw, 19px);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -.01em;
}
.project-meta p { margin: 0; }
.project-place {
  margin-top: 12px !important;
  color: var(--muted);
  font-size: clamp(10px, .6vw, 12px);
  line-height: 1.2;
  font-weight: 300;
}
.project-year {
  margin-top: 28px !important;
  color: var(--muted);
  font-size: clamp(10px, .6vw, 12px);
  line-height: 1;
  font-weight: 300;
}

.project-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eceae7;
}
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1320px) {
  .project-list { margin-left: 360px; width: calc(100% - 600px); }
  .project-row { grid-template-columns: 165px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  :root { --edge-x: 26px; --edge-y: 28px; }
  .projects-brand { position: absolute; width: min(54vw, 260px); bottom: auto; top: 26px; }
  .projects-rail { width: 100%; height: auto; inset: 0 0 auto 0; }
  .rail-toggle { top: 22px; right: 24px; width: 50px; height: 50px; }
  .rail-toggle__glyph { width: 44px; height: 44px; }
  .rail-toggle__glyph::before { width: 42px; }
  .rail-toggle__glyph::after { height: 42px; }
  .projects-nav { top: 90px; right: 24px; gap: 8px; padding: 14px 0; }
  .projects-nav a { font-size: 22px; }
  .projects-language { position: fixed; right: 24px; bottom: 24px; font-size: 11px; }
  .project-list { width: 100%; margin: 0; padding: 140px 24px 120px; }
  .project-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 56px;
  }
  .project-copy { order: 2; width: 100%; align-items: flex-start; text-align: left; flex-direction: row; gap: 24px; }
  .project-number { margin: 0; font-size: 64px; line-height: .8; }
  .project-meta { padding-top: 4px; }
  .project-meta h2 { font-size: 15px; }
  .project-year { margin-top: 16px !important; }
  .project-media { order: 1; aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Project detail overlay */
body.detail-open { overflow: hidden; }

.project-media {
  cursor: pointer;
}
.project-media img {
  transition: opacity 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .project-media:hover img {
    opacity: .68;
  }
}
.project-media:focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 5px;
}
.project-media:focus-visible img {
  opacity: .68;
}

.project-detail {
  --detail-rail: clamp(260px, 18.25vw, 300px);
  --detail-vpad: clamp(38px, 5.7vh, 62px);
  position: fixed;
  z-index: 100;
  inset: 0;
  background: var(--bg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--detail-rail);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.project-detail.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.detail-media {
  position: relative;
  align-self: stretch;
  margin: var(--detail-vpad) 0;
  overflow: hidden;
  background: #eceae7;
  touch-action: pan-y;
  cursor: grab;
}
.detail-media.is-dragging { cursor: grabbing; }
.detail-media.is-contain { background: var(--bg); }
.detail-media.is-contain .detail-image { object-fit: contain; }
.detail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transform: translate3d(0,0,0);
  opacity: 1;
  will-change: transform, opacity;
}

.detail-panel {
  position: relative;
  min-width: 0;
  height: 100svh;
  background: var(--bg);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 260ms ease 150ms, transform 360ms cubic-bezier(.22,.61,.36,1) 150ms;
}
.project-detail.is-ready .detail-panel {
  opacity: 1;
  transform: translateX(0);
}

.detail-close {
  position: absolute;
  top: calc(var(--edge-y) + 28px);
  right: calc(var(--edge-x) + 28px);
  transform: translate(50%, -50%);
  width: 112px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: clamp(20px, 1.45vw, 28px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -.02em;
  text-align: center;
  cursor: pointer;
}
.detail-close:hover { color: var(--ink); }

.detail-info {
  position: absolute;
  right: var(--edge-x);
  top: 68.5%;
  transform: translateY(-50%);
  width: calc(100% - var(--edge-x) - 26px);
  text-align: right;
  color: var(--ink);
}
.detail-title {
  margin: 0;
  font-size: clamp(14px, .95vw, 18px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -.01em;
}
.detail-place,
.detail-year {
  margin: 0;
  color: var(--muted);
  font-size: clamp(9px, .58vw, 11px);
  line-height: 1.2;
  font-weight: 300;
}
.detail-place { margin-top: 13px; }
.detail-year { margin-top: 28px; }

.detail-arrows {
  position: absolute;
  right: var(--edge-x);
  bottom: var(--edge-y);
  display: flex;
  align-items: center;
  gap: clamp(22px, 1.65vw, 34px);
}
.detail-arrow {
  width: 28px;
  height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.detail-arrow:hover { color: var(--ink); }
.detail-arrow span {
  width: 13px;
  height: 13px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  display: block;
}
.detail-prev span { transform: rotate(-135deg); }
.detail-next span { transform: rotate(45deg); }

.detail-transition-clone {
  position: fixed;
  z-index: 130;
  margin: 0;
  padding: 0;
  object-fit: cover;
  pointer-events: none;
  will-change: left, top, width, height, opacity, object-position;
}

.projects-page.detail-background-hidden > .projects-brand,
.projects-page.detail-background-hidden > .projects-rail {
  opacity: 0;
  pointer-events: none;
}
.projects-brand,
.projects-rail {
  transition: opacity 160ms ease;
}

@media (max-width: 980px) {
  .project-detail {
    --detail-rail: 100%;
    --detail-vpad: 0px;
    display: block;
    background: var(--bg);
  }
  .detail-media {
    position: absolute;
    inset: 0 0 auto 0;
    height: 70svh;
    margin: 0;
  }
  .detail-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30svh;
    background: var(--bg);
  }
  .detail-close {
    top: 28px;
    right: 24px;
    transform: none;
    width: auto;
    font-size: 17px;
  }
  .detail-info {
    top: 50%;
    left: 24px;
    right: auto;
    width: calc(100% - 130px);
    text-align: left;
  }
  .detail-arrows {
    right: 24px;
    bottom: 28px;
  }
}


/* ================================================================
   MOBILE PROJECTS
   Art-directed from the supplied iPhone 17 Pro Max mockups.
   Desktop rules above remain untouched.
   ================================================================ */
@media (max-width: 699px) {
  :root {
    --mobile-project-edge: clamp(16px, 4.55vw, 20px);
    --mobile-project-x: clamp(18px, 4.7vw, 21px);
    --mobile-project-copy-gap: var(--mobile-project-x);
    --mobile-project-next-gap: calc(var(--mobile-project-x) * 2);
    --mobile-project-toggle-size: 50px;
    --mobile-project-toggle-top: calc(env(safe-area-inset-top, 0px) + 58px);
    /* + bottom → first image = about 1.6X */
    --mobile-project-list-top: calc(
      var(--mobile-project-toggle-top)
      + var(--mobile-project-toggle-size)
      + (var(--mobile-project-x) * 1.6)
    );
    --mobile-project-list-top-open: calc(env(safe-area-inset-top, 0px) + 372px);
  }

  html {
    background: var(--bg);
  }

  body {
    background: var(--bg);
    overflow-x: hidden;
  }

  .projects-page {
    min-height: 100svh;
    background: var(--bg);
    padding: 0;
  }

  /* Invisible header: same colour as the site, therefore the only visible
     boundary is where scrolling imagery disappears underneath it. */
  .projects-page::before {
    content: "";
    position: fixed;
    z-index: 24;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-project-list-top);
    background: var(--bg);
    pointer-events: none;
    transition: height 620ms cubic-bezier(.22,.61,.36,1);
  }

  .projects-page.menu-open::before {
    height: var(--mobile-project-list-top-open);
  }

  /* Brand and + occupy exactly the same horizontal edge system as mobile home. */
  .projects-brand {
    position: fixed;
    z-index: 42;
    left: var(--mobile-project-edge);
    top: calc(env(safe-area-inset-top, 0px) + 69px);
    bottom: auto;
    width: min(35vw, 154px);
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 250ms ease,
      transform 360ms cubic-bezier(.22,.61,.36,1);
  }

  .projects-rail {
    position: fixed;
    z-index: 41;
    inset: 0;
    width: 100%;
    height: 100svh;
    pointer-events: none;
  }

  .rail-toggle {
    position: absolute;
    top: var(--mobile-project-toggle-top);
    right: var(--mobile-project-edge);
    width: var(--mobile-project-toggle-size);
    height: var(--mobile-project-toggle-size);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .rail-toggle__glyph {
    width: 44px;
    height: 44px;
  }
  .rail-toggle__glyph::before { width: 43px; height: 1.25px; }
  .rail-toggle__glyph::after  { width: 1.25px; height: 43px; }

  .projects-nav {
    top: calc(env(safe-area-inset-top, 0px) + 170px);
    right: var(--mobile-project-edge);
    gap: clamp(14px, 1.75svh, 18px);
    padding: 0;
    align-items: flex-end;
  }

  .projects-nav a {
    font-size: clamp(19px, 5.15vw, 23px);
    line-height: 1;
    letter-spacing: .01em;
    transform: translateX(30px);
    transition:
      opacity 360ms ease-out,
      transform 520ms cubic-bezier(.22,.61,.36,1),
      color 150ms ease;
    transition-delay: calc(var(--i) * 125ms);
  }

  .projects-nav:not(.is-open) a {
    transition-delay: 0ms;
    transition-duration: 130ms;
  }

  .projects-language {
    display: none;
  }

  /* Content begins below the invisible header and moves down when menu opens. */
  .project-list {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding:
      var(--mobile-project-list-top)
      var(--mobile-project-edge)
      calc(env(safe-area-inset-bottom, 0px) + 82px);
    transition: padding-top 620ms cubic-bezier(.22,.61,.36,1);
  }

  .projects-page.menu-open .project-list {
    padding-top: var(--mobile-project-list-top-open);
  }

  .project-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0 0 var(--mobile-project-next-gap);
    padding: 0;
  }

  .project-media {
    order: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eceae7;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
  }

  .project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 180ms ease;
  }

  /* Finger-down cue while normal vertical scrolling is still allowed. */
  .project-media:active img,
  .project-media.is-touching img {
    opacity: .66;
  }

  .project-copy {
    order: 2;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr minmax(0, 2.35fr);
    gap: 0;
    align-items: start;
    padding-top: var(--mobile-project-copy-gap);
    text-align: right;
  }

  .project-number {
    align-self: start;
    justify-self: start;
    margin: 0;
    color: var(--number);
    font-size: clamp(68px, 19vw, 86px);
    line-height: .78;
    font-weight: 300;
    letter-spacing: -.06em;
  }

  .project-meta {
    justify-self: end;
    width: 100%;
    padding: 0;
    text-align: right;
  }

  .project-meta h2 {
    margin: 0;
    font-size: clamp(13px, 3.65vw, 16px);
    line-height: 1.08;
    font-weight: 300;
    letter-spacing: -.015em;
  }

  .project-place {
    margin-top: clamp(9px, 2.5vw, 12px) !important;
    font-size: clamp(8px, 2.05vw, 9.5px);
    line-height: 1.2;
  }

  .project-year {
    margin-top: clamp(21px, 5.5vw, 25px) !important;
    font-size: clamp(9px, 2.25vw, 10.5px);
    line-height: 1;
    color: var(--ink);
  }

  /* On menu open the list moves; the copy/media remain a single rigid block. */
  .projects-page.menu-open .project-row:first-child {
    margin-top: 0;
  }

  /* Entry sequence when arriving from Home:
     white field first, then brand/+, then cards in quick descending order. */
  body.projects-from-home .projects-brand,
  body.projects-from-home .rail-toggle {
    opacity: 0;
    transform: translateY(-8px);
  }

  body.projects-from-home.projects-enter .projects-brand,
  body.projects-from-home.projects-enter .rail-toggle {
    opacity: 1;
    transform: translateY(0);
  }

  body.projects-from-home .project-row {
    opacity: 0;
    transform: translateY(-15px);
  }

  body.projects-from-home.projects-enter .project-row {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 360ms ease-out,
      transform 520ms cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--entry-delay, 250ms);
  }

  /* Keep detail overlay rules separate; its mobile optimisation is next. */
}

@media (max-width: 390px) {
  :root {
    --mobile-project-edge: 16px;
    --mobile-project-x: 17px;
  }

  .projects-brand {
    width: min(36vw, 138px);
  }

  .project-number {
    font-size: 66px;
  }

  .project-meta h2 {
    font-size: 13px;
  }
}

/* Home → Projects fast page fade */
body.page-leaving-projects {
  opacity: 0;
  transition: opacity 220ms ease-out;
}


/* ================================================================
   MOBILE PROJECTS — v2 alignment refinements
   ================================================================ */
@media (max-width: 699px) {
  :root {
    /* Images sit closer to the screen edge: ~half the previous white strip. */
    --mobile-project-media-edge: calc(var(--mobile-project-edge) * .5);

    /* New text/number inset:
       viewport margin = .5X (media edge) + 1.3X = 1.8X total. */
    --mobile-project-copy-inset: calc(var(--mobile-project-edge) * 1.3);
  }

  /* Logo's left margin becomes 1.5x the previous value. Its vertical CENTER,
     not its top edge, now aligns with the + / X button center. */
  .projects-brand {
    left: calc(var(--mobile-project-edge) * 1.5);
    top: calc(
      var(--mobile-project-toggle-top)
      + (var(--mobile-project-toggle-size) / 2)
    );
    transform: translateY(-50%);
  }

  /* Preserve the same center line during the page-entry animation. */
  body.projects-from-home .projects-brand {
    transform: translateY(calc(-50% - 8px));
  }

  body.projects-from-home.projects-enter .projects-brand {
    transform: translateY(-50%);
  }

  /* Halve the left/right white strip around project images. */
  .project-list {
    padding-left: var(--mobile-project-media-edge);
    padding-right: var(--mobile-project-media-edge);
  }

  /* Pull the information block left and push the large numeral right
     by the exact same amount, giving both a 1.8X viewport inset. */
  .project-copy {
    padding-left: var(--mobile-project-copy-inset);
    padding-right: var(--mobile-project-copy-inset);
  }

  .project-number {
    justify-self: start;
  }

  .project-meta {
    justify-self: end;
  }
}

@media (max-width: 390px) {
  .projects-brand {
    /* Keep the same center-based alignment on smaller iPhones. */
    top: calc(
      var(--mobile-project-toggle-top)
      + (var(--mobile-project-toggle-size) / 2)
    );
  }
}


/* ================================================================
   MOBILE PROJECT DETAIL — slow cinematic pan
   ================================================================ */
@media (max-width: 699px) {
  .detail-media {
    overflow: hidden;
    background: var(--bg);
  }

  /* Even projects 21–24, which are shown contained on desktop,
     use the cinematic crop+pan treatment on mobile. */
  .detail-media.is-contain .detail-image.mobile-detail-pan,
  .detail-image.mobile-detail-pan {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: left center;
    animation:
      mobileProjectDetailPan 46s cubic-bezier(.18,.56,.25,1) 0s forwards;
    will-change: object-position, transform, opacity;
  }

  @keyframes mobileProjectDetailPan {
    from { object-position: left center; }
    to   { object-position: right center; }
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 699px) {
  .detail-image.mobile-detail-pan {
    animation: none !important;
    object-position: center center;
  }
}


/* ================================================================
   MOBILE PROJECTS — understated copyright footer
   ================================================================ */
@media (max-width: 699px) {
  .projects-footer {
    position: relative;
    z-index: 3;
    margin-left: calc(var(--mobile-project-edge) * 1.5);
    width: 35vw; /* ends ~15% before viewport center */
    padding:
      clamp(18px, 4.5vw, 22px)
      0
      calc(env(safe-area-inset-bottom, 0px) + clamp(34px, 8vw, 48px));
  }

  .projects-footer p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(8px, 1.9vw, 9px);
    line-height: 1.35;
    font-weight: 300;
    letter-spacing: .015em;
    opacity: .78;
  }
}


/* ================================================================
   MOBILE PROJECTS FOOTER — v8 visibility fix
   ================================================================ */
@media (max-width: 699px) {
  .projects-footer {
    display: block !important;
    position: relative;
    z-index: 5;
    margin-left: calc(var(--mobile-project-edge) * 1.5);
    width: 35vw;
    padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 46px);
    margin-top: 10px;
    color: var(--muted);
  }

  .projects-footer p {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: clamp(8px, 1.9vw, 9px);
    line-height: 1.35;
    font-weight: 300;
    letter-spacing: .015em;
    opacity: .78;
  }
}


/* ================================================================
   IPAD PRO — PROJECTS
   1024×1366 portrait / 1366×1024 landscape
   ================================================================ */

/* Footer is mobile-only. */
.projects-footer {
  display: none;
}
@media (max-width: 699px) {
  .projects-footer {
    display: block !important;
  }
}

@media (min-width: 700px) and (max-width: 1366px) {
  /* Keep a clean fixed white menu rail, like the desktop composition. */
  .projects-rail {
    width: clamp(210px, 17.5vw, 242px);
    height: 100svh;
    inset: 0 0 0 auto;
    background: var(--bg);
  }

  .projects-nav {
    right: var(--edge-x);
  }

  .projects-language {
    right: var(--edge-x);
  }

  /* Keep the original desktop-style project anatomy on tablet. */
  .project-row {
    display: grid;
    flex-direction: initial;
    align-items: start;
  }

  .project-copy {
    order: initial;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0;
    padding: 0;
  }

  .project-media {
    order: initial;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .project-meta {
    padding: 0;
    text-align: right;
  }

  /* Explicitly suppress the mobile copyright on iPad. */
  .projects-footer {
    display: none !important;
  }

  /* Tablet detail retains the desktop frame/panel proportions. */
  .project-detail {
    --detail-rail: clamp(210px, 19vw, 250px);
    --detail-vpad: clamp(38px, 5.4vh, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--detail-rail);
  }

  .detail-media {
    position: relative;
    inset: auto;
    height: auto;
    align-self: stretch;
    margin: var(--detail-vpad) 0;
    overflow: hidden;
    background: #eceae7;
  }

  .detail-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    height: 100svh;
  }

  .detail-close {
    top: calc(var(--edge-y) + 28px);
    right: calc(var(--edge-x) + 28px);
    transform: translate(50%, -50%);
    width: 112px;
    font-size: clamp(18px, 1.55vw, 23px);
  }

  .detail-info {
    left: auto;
    right: var(--edge-x);
    top: 68.5%;
    width: calc(100% - var(--edge-x) - 22px);
    text-align: right;
  }

  .detail-arrows {
    right: var(--edge-x);
    bottom: var(--edge-y);
  }

  /* Crop to the fixed detail frame and travel only across the image overflow. */
  .detail-media.is-contain .detail-image.mobile-detail-pan,
  .detail-image.mobile-detail-pan {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: left center;
    animation:
      ipadProjectDetailPan var(--detail-pan-duration, 42s)
      cubic-bezier(.18,.56,.25,1) 0s forwards;
    will-change: object-position, transform, opacity;
  }

  @keyframes ipadProjectDetailPan {
    from { object-position: left center; }
    to   { object-position: right center; }
  }
}

/* Landscape: pull the whole project composition left,
   enlarge the images, reserve the clean right-side menu rail. */
@media (min-width: 700px) and (max-width: 1366px) and (orientation: landscape) {
  .project-list {
    width: calc(100% - 600px);
    margin-left: 360px;
    padding: clamp(96px, 10.3vh, 112px) 0 150px;
  }

  .project-row {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: clamp(27px, 2.25vw, 31px);
    margin-bottom: clamp(42px, 4.6vh, 50px);
  }

  .project-number {
    margin: 10px 0 70px;
    font-size: clamp(82px, 6.4vw, 90px);
  }

  .project-meta h2 {
    font-size: 14px;
  }

  .project-place,
  .project-year {
    font-size: 9px;
  }
}

/* Portrait: larger images and much tighter vertical rhythm than the old tablet view. */
@media (min-width: 700px) and (max-width: 1366px) and (orientation: portrait) {
  .project-list {
    width: 545px;
    max-width: calc(100% - 470px);
    margin-left: 260px;
    padding: clamp(164px, 13.2vh, 188px) 0 150px;
  }

  .project-row {
    grid-template-columns: 150px minmax(0, 375px);
    gap: 20px;
    margin-bottom: clamp(44px, 3.7vh, 52px);
  }

  .project-number {
    margin: 8px 0 62px;
    font-size: 72px;
    line-height: .82;
  }

  .project-meta h2 {
    font-size: 13px;
    line-height: 1.06;
  }

  .project-place {
    margin-top: 9px !important;
    font-size: 8.5px;
  }

  .project-year {
    margin-top: 20px !important;
    font-size: 8.5px;
  }

  .projects-brand {
    width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 700px) and (max-width: 1366px) {
  .detail-image.mobile-detail-pan {
    animation: none !important;
    object-position: center center;
  }
}


/* ================================================================
   PROJECTS — UNIVERSAL ENTRY SEQUENCE
   Desktop + iPad + mobile
   ================================================================ */
body.projects-sequence .project-row {
  opacity: 0;
  transform: translate3d(0, -16px, 0);
}

body.projects-sequence.projects-sequence-in .project-row {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 340ms ease-out,
    transform 460ms cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--project-entry-delay, 0ms);
}

/* Existing mobile/from-home choreography can still animate the brand/menu,
   but row timing is owned by this universal sequence. */
@media (max-width: 699px) {
  body.projects-sequence.projects-from-home .project-row,
  body.projects-sequence.projects-from-home.projects-enter .project-row {
    transition:
      opacity 340ms ease-out,
      transform 460ms cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--project-entry-delay, 0ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.projects-sequence .project-row,
  body.projects-sequence.projects-sequence-in .project-row {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ================================================================
   IPAD AIR + IPAD MINI — PROJECTS REFINEMENT
   Air: 820×1180 / 1180×820
   mini: 768×1024 / 1024×768
   ================================================================ */

@media (min-width: 700px) and (max-width: 980px) {
  :root {
    --edge-x: clamp(28px, 3.7vw, 34px);
    --edge-y: clamp(30px, 4.1vh, 38px);
  }

  /* Undo the legacy <=980 phone-like header treatment. */
  .projects-brand {
    position: fixed;
    left: var(--edge-x);
    top: auto;
    bottom: var(--edge-y);
    width: clamp(165px, 22vw, 190px);
  }

  .projects-rail {
    position: fixed;
    inset: 0 0 0 auto;
    width: clamp(168px, 21vw, 188px);
    height: 100svh;
    background: var(--bg);
  }

  .rail-toggle {
    top: var(--edge-y);
    right: var(--edge-x);
    width: 52px;
    height: 52px;
  }

  .rail-toggle__glyph {
    width: 48px;
    height: 48px;
  }

  .rail-toggle__glyph::before {
    width: 46px;
    height: 1.2px;
  }

  .rail-toggle__glyph::after {
    width: 1.2px;
    height: 46px;
  }

  .projects-nav {
    top: clamp(126px, 13.8vh, 152px);
    right: var(--edge-x);
    gap: 9px;
    padding: 0;
  }

  .projects-nav a {
    font-size: clamp(17px, 2.35vw, 20px);
  }

  .projects-language {
    position: fixed;
    right: var(--edge-x);
    bottom: var(--edge-y);
    font-size: 10px;
  }

  /* Restore desktop/tablet anatomy fully. */
  .project-row {
    display: grid;
    flex-direction: initial;
    align-items: start;
  }

  .project-copy {
    order: initial;
    width: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0;
  }

  .project-number {
    align-self: flex-end;
  }

  .project-meta {
    padding-top: 0;
    text-align: right;
  }

  .project-media {
    order: initial;
    aspect-ratio: 16 / 9;
  }

  .projects-footer {
    display: none !important;
  }
}

/* Air + mini PORTRAIT:
   larger imagery, tighter rows, and a proper right menu rail. */
@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  .project-list {
    margin-left: clamp(136px, 18vw, 150px);
    width: calc(100% - clamp(136px, 18vw, 150px) - clamp(176px, 22vw, 188px));
    max-width: none;
    padding: clamp(142px, 13.5vh, 162px) 0 130px;
  }

  .project-row {
    grid-template-columns: clamp(94px, 12.5vw, 104px) minmax(0, 1fr);
    gap: clamp(14px, 2vw, 17px);
    margin-bottom: clamp(38px, 4.2vh, 46px);
  }

  .project-number {
    margin: 7px 0 clamp(48px, 5.6vh, 58px);
    font-size: clamp(58px, 7.9vw, 64px);
    line-height: .82;
  }

  .project-meta h2 {
    font-size: clamp(11px, 1.55vw, 12px);
    line-height: 1.06;
  }

  .project-place {
    margin-top: 8px !important;
    font-size: clamp(7.4px, 1vw, 8px);
  }

  .project-year {
    margin-top: 17px !important;
    font-size: clamp(7.4px, 1vw, 8px);
  }
}

/* Air + mini LANDSCAPE:
   bring the project body left and let the images breathe, while the menu
   stays in its own clean white block on the right. */
@media (min-width: 700px) and (max-width: 1200px) and (orientation: landscape) {
  .project-list {
    margin-left: clamp(178px, 17.8vw, 210px);
    width: calc(
      100%
      - clamp(178px, 17.8vw, 210px)
      - clamp(184px, 18.5vw, 205px)
      - 20px
    );
    padding: clamp(78px, 9.8vh, 94px) 0 130px;
  }

  .project-row {
    grid-template-columns: clamp(112px, 11.5vw, 132px) minmax(0, 1fr);
    gap: clamp(19px, 2.25vw, 25px);
    margin-bottom: clamp(34px, 4.7vh, 42px);
  }

  .project-number {
    margin: 8px 0 clamp(50px, 6.5vh, 62px);
    font-size: clamp(66px, 6.7vw, 78px);
  }

  .project-meta h2 {
    font-size: clamp(11px, 1.2vw, 13px);
  }

  .project-place,
  .project-year {
    font-size: clamp(7.5px, .82vw, 8.5px);
  }
}

/* Slightly smaller detail rail on Air / mini, keeping the image frame large.
   The image still pans only across the cropped overflow. */
@media (min-width: 700px) and (max-width: 1200px) {
  .project-detail {
    --detail-rail: clamp(178px, 18.5vw, 220px);
    --detail-vpad: clamp(30px, 4.7vh, 44px);
  }

  .detail-close {
    width: 94px;
    font-size: clamp(16px, 1.65vw, 20px);
  }

  .detail-info {
    width: calc(100% - var(--edge-x) - 14px);
  }
}


/* ================================================================
   IPAD AIR + IPAD MINI — v2
   Preserve desktop / iPad Pro / iPhone exactly as-is.
   ================================================================ */

/* AIR + MINI — PORTRAIT */
@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  /* Logo: ~30% smaller, while left and bottom anchors stay unchanged.
     Because left/bottom positioning is untouched, it visually shrinks
     toward the bottom-left corner as requested. */
  .projects-brand {
    width: clamp(112px, 15.4vw, 126px);
    left: var(--edge-x);
    bottom: var(--edge-y);
  }

  /* Shift the entire project composition toward the menu and reduce
     the image column by roughly 15%, while keeping the right-side rail
     and right boundary essentially unchanged. */
  .project-list {
    margin-left: clamp(188px, 24.7vw, 203px);
    width: calc(
      100%
      - clamp(188px, 24.7vw, 203px)
      - clamp(176px, 22vw, 188px)
    );
    max-width: none;
  }

  .project-row {
    grid-template-columns: clamp(92px, 12.2vw, 100px) minmax(0, 1fr);
    gap: clamp(13px, 1.8vw, 16px);
  }

  /* A tiny typography reduction prevents the shifted text block from
     feeling cramped on the Mini, without changing its hierarchy. */
  .project-meta h2 {
    font-size: clamp(10.5px, 1.48vw, 11.5px);
  }

  .project-place,
  .project-year {
    font-size: clamp(7px, .96vw, 7.8px);
  }
}

/* AIR + MINI — LANDSCAPE */
@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  /* Same 30% logo reduction, preserving left/bottom whitespace. */
  .projects-brand {
    width: clamp(116px, 11.25vw, 133px);
    left: var(--edge-x);
    bottom: var(--edge-y);
  }

  /* Move text + images together toward the menu.
     The right reserve stays nearly the same, so most of the reduction
     happens from the left side and the image shrinks ~15%. */
  .project-list {
    margin-left: clamp(252px, 25.1vw, 296px);
    width: calc(
      100%
      - clamp(252px, 25.1vw, 296px)
      - clamp(184px, 18.5vw, 205px)
      - 20px
    );
  }

  .project-row {
    grid-template-columns: clamp(104px, 10.7vw, 122px) minmax(0, 1fr);
    gap: clamp(17px, 1.9vw, 22px);
  }

  .project-number {
    font-size: clamp(60px, 6vw, 70px);
  }

  .project-meta h2 {
    font-size: clamp(10.5px, 1.08vw, 12px);
  }

  .project-place,
  .project-year {
    font-size: clamp(7px, .74vw, 8px);
  }
}

/* MINI LANDSCAPE is exactly 1024×768 and needs a touch more breathing room
   between the reduced logo and the project text than the Air. */
@media (min-width: 901px) and (max-width: 1060px) and (orientation: landscape) {
  .projects-brand {
    width: 116px;
  }

  .project-list {
    margin-left: 252px;
    width: calc(100% - 252px - 188px - 18px);
  }

  .project-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 17px;
  }
}


/* ================================================================
   IPAD AIR + IPAD MINI — v3
   Fine tuning from Air/Mini screenshots.
   Desktop, iPad Pro and iPhone remain untouched.
   ================================================================ */

/* ------------------------------------------------
   PORTRAIT — iPad mini + iPad Air only
   ------------------------------------------------ */
@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  /* Logo:
     left gap = 1.25x
     bottom gap = 0.9x */
  .projects-brand {
    left: calc(var(--edge-x) * 1.2);
    bottom: calc(var(--edge-y) * .9);
  }

  /* Keep the left anchor, but let the image grow toward the menu.
     This cuts the image→menu whitespace by roughly one third. */
  .project-list {
    margin-left: clamp(188px, 24.7vw, 203px);
    width: calc(
      100%
      - clamp(188px, 24.7vw, 203px)
      - clamp(132px, 17vw, 145px)
    );
    max-width: none;
  }
}

/* ------------------------------------------------
   MINI LANDSCAPE ONLY
   ------------------------------------------------ */
@media (min-width: 901px) and (max-width: 1060px) and (orientation: landscape) {
  /* Keep left gap untouched; reduce only the bottom gap to 0.7x. */
  .projects-brand {
    bottom: calc(var(--edge-y) * .7);
  }
}

/* ------------------------------------------------
   AIR + MINI — common project-copy geometry
   Portrait: 768–900
   Landscape: 901–1180
   Explicitly excludes iPad Pro.
   ------------------------------------------------ */
@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait),
       (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {

  /* Make text column exactly share the image's vertical frame. */
  .project-row {
    align-items: stretch;
  }

  .project-copy {
    position: relative;
    display: block;
    height: 100%;
    min-height: 0;
    padding: 0;
    text-align: right;
  }

  /* Number always remains safely inside the image's top boundary.
     15% top inset. */
  .project-number {
    position: absolute;
    top: 15%;
    right: 0;
    margin: 0;
    line-height: .82;
    transform: none;
  }

  .project-meta {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
  }

  /* Main two-line title sits 12% below the image's vertical centre. */
  .project-meta h2 {
    position: absolute;
    top: 62%;
    right: 0;
    width: 100%;
    margin: 0;
    transform: translateY(-50%);
    text-align: right;
  }

  /* Address follows the title without disturbing the year anchor. */
  .project-place {
    position: absolute;
    top: calc(62% + 20px);
    right: 0;
    width: 100%;
    margin: 0 !important;
    text-align: right;
  }

  /* Symmetry:
     number top → image top = year bottom → image bottom = 15%. */
  .project-year {
    position: absolute;
    right: 0;
    bottom: 15%;
    width: 100%;
    margin: 0 !important;
    text-align: right;
  }
}

/* Mini portrait needs a hair tighter place/title relation. */
@media (min-width: 700px) and (max-width: 790px) and (orientation: portrait) {
  .project-place {
    top: calc(62% + 18px);
  }
}


/* ================================================================
   PROJECT TITLE LINE CONTROL — v4
   ================================================================ */
.project-title-break {
  display: block;
}

/* On phones, keep natural wrapping instead of forcing the tablet line split. */
@media (max-width: 699px) {
  .project-title-break {
    display: none;
  }
}


/* ================================================================
   TABLET LOGO POSITION — HARD OVERRIDE
   Fixes Air / mini spacing not being visually applied.
   Phone (<700px) and desktop (>1366px) are untouched.
   ================================================================ */
@media (min-width: 700px) and (max-width: 1366px) {
  .projects-page > .projects-brand {
    position: fixed !important;
    top: auto !important;
    transform: none !important;
  }
}

/* iPad mini + iPad Air — PORTRAIT
   Requested final spacing:
   left gap = 1.2x
   bottom gap = 0.9x */
@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  .projects-page > .projects-brand {
    left: calc(var(--edge-x) * 1.2) !important;
    bottom: calc(var(--edge-y) * .9) !important;
    width: clamp(112px, 15.4vw, 126px) !important;
  }
}

/* iPad mini — LANDSCAPE
   Requested bottom gap = 0.7x. */
@media (min-width: 700px) and (max-width: 1060px) and (orientation: landscape) {
  .projects-page > .projects-brand {
    left: var(--edge-x) !important;
    bottom: calc(var(--edge-y) * .7) !important;
    width: 116px !important;
  }
}

/* iPad Air — LANDSCAPE
   User asked not to move this one; lock the approved position explicitly. */
@media (min-width: 1061px) and (max-width: 1200px) and (orientation: landscape) {
  .projects-page > .projects-brand {
    left: var(--edge-x) !important;
    bottom: var(--edge-y) !important;
    width: clamp(116px, 11.25vw, 133px) !important;
  }
}

/* iPad Pro — explicitly lock it to the approved tablet bottom-left system.
   This prevents old <=1320 / <=980 rules from ever taking control. */
@media (min-width: 901px) and (max-width: 1100px) and (orientation: portrait) {
  .projects-page > .projects-brand {
    left: var(--edge-x) !important;
    bottom: var(--edge-y) !important;
    width: 210px !important;
  }
}

@media (min-width: 1201px) and (max-width: 1366px) and (orientation: landscape) {
  .projects-page > .projects-brand {
    left: var(--edge-x) !important;
    bottom: var(--edge-y) !important;
    width: clamp(210px, 18vw, 246px) !important;
  }
}


/* ================================================================
   TABLET LOGO POSITION — v2 portrait refinements
   Air unchanged. All landscape layouts unchanged.
   ================================================================ */

/* iPad mini — PORTRAIT ONLY
   Current left gap × 1.35.
   Current effective left gap was 1.2 × edge-x, so new value = 1.62 × edge-x.
   Bottom gap stays exactly as it is now (0.9 × edge-y). */
@media (min-width: 700px) and (max-width: 790px) and (orientation: portrait) {
  .projects-page > .projects-brand {
    left: calc(var(--edge-x) * 1.62) !important;
    bottom: calc(var(--edge-y) * .9) !important;
  }
}

/* iPad Pro — PORTRAIT ONLY
   Current bottom gap × 0.6.
   Current left gap × 1.15. */
@media (min-width: 901px) and (max-width: 1100px) and (orientation: portrait) {
  .projects-page > .projects-brand {
    left: calc(var(--edge-x) * 1.15) !important;
    bottom: calc(var(--edge-y) * .6) !important;
  }
}


/* ================================================================
   TABLET LANGUAGE ALIGNMENT
   iPad Pro / Air / Mini, portrait + landscape only.
   Desktop and phones are untouched.
   ================================================================ */
@media (min-width: 700px) and (max-width: 1366px) and (pointer: coarse) {
  .projects-language {
    display: flex !important;
    bottom: var(--tablet-language-bottom) !important;
  }
}


/* ================================================================
   TABLET TR/EN — FIXED PROJECTS-PAGE POSITION
   iPad Pro / Air / Mini, portrait + landscape.
   Desktop and phones untouched.
   ================================================================ */
@media (min-width: 700px) and (max-width: 1366px) {
  .projects-language {
    display: flex !important;
    position: fixed !important;
    z-index: 55;
    top: auto !important;
    transform: none !important;
  }
}

/* mini + Air portrait */
@media (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  .projects-language {
    right: clamp(28px, 3.7vw, 34px) !important;
    bottom: calc(clamp(30px, 4.1vh, 38px) * .9) !important;
  }
}

/* mini landscape */
@media (min-width: 700px) and (max-width: 1060px) and (orientation: landscape) {
  .projects-language {
    right: var(--edge-x) !important;
    bottom: calc(var(--edge-y) * .7) !important;
  }
}

/* Air landscape */
@media (min-width: 1061px) and (max-width: 1200px) and (orientation: landscape) {
  .projects-language {
    right: var(--edge-x) !important;
    bottom: var(--edge-y) !important;
  }
}

/* Pro portrait */
@media (min-width: 901px) and (max-width: 1100px) and (orientation: portrait) {
  .projects-language {
    right: var(--edge-x) !important;
    bottom: calc(var(--edge-y) * .6) !important;
  }
}

/* Pro landscape */
@media (min-width: 1201px) and (max-width: 1366px) and (orientation: landscape) {
  .projects-language {
    right: var(--edge-x) !important;
    bottom: var(--edge-y) !important;
  }
}


/* ================================================================
   GLOBAL TABLET LOGO CONSISTENCY v1
   Exact logo size + position copied from the approved Projects page.
   Applies only to iPad Mini / Air / Pro, portrait + landscape.
   Desktop and phone layouts are untouched.
   ================================================================ */

/* iPad Mini — portrait */
@media (min-width: 700px) and (max-width: 790px) and (orientation: portrait) {
  .projects-brand {
    position: fixed !important;
    top: auto !important;
    left: calc(clamp(28px, 3.7vw, 34px) * 1.62) !important;
    bottom: calc(clamp(30px, 4.1vh, 38px) * .9) !important;
    width: clamp(112px, 15.4vw, 126px) !important;
    transform: none !important;
  }
}

/* iPad Air — portrait */
@media (min-width: 791px) and (max-width: 900px) and (orientation: portrait) {
  .projects-brand {
    position: fixed !important;
    top: auto !important;
    left: calc(clamp(28px, 3.7vw, 34px) * 1.2) !important;
    bottom: calc(clamp(30px, 4.1vh, 38px) * .9) !important;
    width: clamp(112px, 15.4vw, 126px) !important;
    transform: none !important;
  }
}

/* iPad Pro — portrait */
@media (min-width: 901px) and (max-width: 1100px) and (orientation: portrait) {
  .projects-brand {
    position: fixed !important;
    top: auto !important;
    left: calc(clamp(40px, 6.3vw, 128px) * 1.15) !important;
    bottom: calc(clamp(36px, 6.8vh, 86px) * .6) !important;
    width: 210px !important;
    transform: none !important;
  }
}

/* iPad Mini — landscape */
@media (min-width: 700px) and (max-width: 1060px) and (orientation: landscape) {
  .projects-brand {
    position: fixed !important;
    top: auto !important;
    left: clamp(40px, 6.3vw, 128px) !important;
    bottom: calc(clamp(36px, 6.8vh, 86px) * .7) !important;
    width: 116px !important;
    transform: none !important;
  }
}

/* iPad Air — landscape */
@media (min-width: 1061px) and (max-width: 1200px) and (orientation: landscape) {
  .projects-brand {
    position: fixed !important;
    top: auto !important;
    left: clamp(40px, 6.3vw, 128px) !important;
    bottom: clamp(36px, 6.8vh, 86px) !important;
    width: clamp(116px, 11.25vw, 133px) !important;
    transform: none !important;
  }
}

/* iPad Pro — landscape */
@media (min-width: 1201px) and (max-width: 1366px) and (orientation: landscape) {
  .projects-brand {
    position: fixed !important;
    top: auto !important;
    left: clamp(40px, 6.3vw, 128px) !important;
    bottom: clamp(36px, 6.8vh, 86px) !important;
    width: clamp(210px, 18vw, 246px) !important;
    transform: none !important;
  }
}


/* ================================================================
   IPHONE LANDSCAPE v1 — PROJECTS
   Projects remains the only vertically scrollable primary page.
   ================================================================ */
@media (min-width: 700px) and (max-width: 1000px) and (max-height: 560px) and (orientation: landscape) {
  .projects-page > .projects-brand {
    position: fixed !important;
    top: auto !important;
    left: clamp(40px, 6.3vw, 128px) !important;
    bottom: calc(clamp(36px, 6.8vh, 86px) * .7) !important;
    width: 116px !important;
    transform: none !important;
  }

  .rail-toggle {
    top: 30px !important;
    right: 34px !important;
    width: 52px !important;
    height: 52px !important;
  }

  .rail-toggle__glyph {
    width: 48px !important;
    height: 48px !important;
  }

  .rail-toggle__glyph::before {
    width: 46px !important;
    height: 1.2px !important;
  }

  .rail-toggle__glyph::after {
    width: 1.2px !important;
    height: 46px !important;
  }

  .projects-nav {
    top: 126px !important;
    right: 34px !important;
    gap: 9px !important;
    padding: 0 !important;
  }

  .projects-nav a {
    font-size: 20px !important;
    line-height: 1.08 !important;
    letter-spacing: .015em !important;
  }

  .projects-language {
    display: flex !important;
    position: fixed !important;
    top: auto !important;
    right: 42px !important;
    bottom: calc(clamp(36px, 6.8vh, 86px) * .7) !important;
    font-size: 10px !important;
    transform: none !important;
  }
}
