/* The mast follows long specification and project sections. */
.mast {
  position: fixed;
  inset: 0 0 auto;
  margin: 0;
  padding-inline: var(--gutter);
  width: 100%;
  color: white;
  z-index: 8;
  border: 0;
  background: linear-gradient(#11191d2e, transparent);
  transition:
    background-color 0.25s,
    color 0.25s,
    height 0.25s;
}
.mast:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.32;
  pointer-events: none;
}
.mast-paper {
  height: 64px;
  background: var(--paper);
  color: var(--ink);
}
.mast-paper .wordmark-shape {
  width: 104px;
}
.mast-paper .quote-btn {
  border-color: var(--ink);
}
.mast-paper .quote-btn:hover {
  background: var(--ink);
  color: white;
}
section[id],
#notes-title {
  scroll-margin-top: 70px;
}
#top {
  scroll-margin-top: 0;
}
.hero-media::after {
  z-index: 3;
}
.hero-shot {
  transition: none;
}
@property --blade-cut {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.shutter-out {
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  mask-image: linear-gradient(
    90deg,
    transparent 0 var(--blade-cut),
    black var(--blade-cut) 100%
  );
  mask-size: 12.5% 100%;
  animation: shutter 0.72s cubic-bezier(0.6, 0.03, 0.21, 1) both;
}
@keyframes shutter {
  from {
    --blade-cut: 0%;
  }
  to {
    --blade-cut: 100%;
  }
}
@keyframes title-rise {
  from {
    opacity: 0;
    transform: translateY(0.18em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-copy h1 {
  animation: title-rise 0.85s cubic-bezier(0.19, 0.8, 0.29, 1) both;
}
.hero-copy h1 em {
  animation: title-rise 0.88s 0.07s cubic-bezier(0.19, 0.8, 0.29, 1) both;
}
.inspect-trigger {
  position: absolute;
  left: 63%;
  top: 42%;
  display: flex;
  align-items: center;
  padding: 0;
  color: white;
  text-align: left;
  transition:
    top 0.55s,
    left 0.55s;
}
.hero[data-project="berwick"] .inspect-trigger {
  left: 65%;
  top: 39%;
}
.hero[data-project="cheltenham"] .inspect-trigger {
  left: 61%;
  top: 38%;
}
.inspect-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid #fffe;
  background: #18232788;
  font: 21px/1 Arial;
}
.inspect-pin::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #fffa;
  border-radius: 50%;
  transition: transform 0.25s;
}
.inspect-leader {
  width: clamp(20px, 3vw, 58px);
  height: 1px;
  background: #fffd;
}
.inspect-tag {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 13px 10px;
  background: rgba(19, 30, 33, 0.84);
  backdrop-filter: blur(12px);
  border-left: 1px solid #ffffffa8;
}
.inspect-tag small,
.file-head > span {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.inspect-tag strong {
  font-size: 14px;
  letter-spacing: -0.015em;
  font-weight: 500;
  line-height: 1.25;
}
.inspect-trigger:hover .inspect-pin::before,
.inspect-trigger:focus-visible .inspect-pin::before {
  transform: scale(1.18);
}
.inspect-trigger:hover .inspect-tag {
  background: #1d3034;
}
body:has(.field-notes[open]) {
  overflow: hidden;
}
.field-notes {
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  max-width: calc(100vw - 36px);
  width: 1120px;
  max-height: 92svh;
  overflow: auto;
  overscroll-behavior: contain;
}
.field-notes::backdrop {
  background: #0c171bc9;
  backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) {
  .field-notes {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity .32s ease,
      transform var(--disclosure-time) var(--disclosure-ease);
  }
  .field-notes[open]:not(.is-closing) {
    opacity: 1;
    transform: none;
  }
  .field-notes::backdrop {
    opacity: 0;
    transition: opacity .32s ease;
  }
  .field-notes[open]:not(.is-closing)::backdrop {
    opacity: 1;
  }
  @starting-style {
    .field-notes[open]:not(.is-closing) {
      opacity: 0;
      transform: translateY(12px);
    }
    .field-notes[open]:not(.is-closing)::backdrop {
      opacity: 0;
    }
  }
}
.file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 2;
}
.file-close {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 5px;
}
.file-close span {
  font-size: 22px;
  font-weight: 350;
}
.file-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}
.file-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.file-stage {
  position: relative;
  isolation: isolate;
  min-height: 340px;
  flex: 1;
  overflow: hidden;
  background: #fff;
}
.file-image,
.file-previous {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.file-stage.profile-view .file-image,
.file-previous.was-profile {
  object-fit: contain;
  padding: 15px 10px 39px;
  background: white;
}
.file-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: 100%;
  width: fit-content;
  padding: 7px 12px;
  background: #142023de;
  color: white;
  font-size: 12px;
}
.profile-view .file-caption {
  background: #fff;
  color: #464e4c;
}
.file-views {
  display: flex;
  border-top: 1px solid var(--line);
}
.file-views button {
  transition: background-color var(--feedback-time) ease, color var(--feedback-time) ease;
  flex: 1;
  font-size: 13px;
  padding: 14px 4px;
  border-right: 1px solid var(--line);
}
.file-views button:last-child {
  border-right: 0;
}
.file-views button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.file-views button:hover:not([aria-pressed="true"]) {
  background: #dfdfd8;
}
.file-copy {
  padding: clamp(25px, 3.8vw, 58px);
}
.file-copy h2 {
  font-size: clamp(55px, 5.25vw, 93px);
  letter-spacing: -0.05em;
}
.file-location {
  font-size: clamp(20px, 2vw, 28px);
  font-style: italic;
  font-family: var(--serif);
  margin-top: 6px;
}
.file-description {
  font-size: 16px;
  line-height: 1.55;
  margin: 25px 0;
}
.file-spec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  margin: 0 0 27px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.file-spec dt,
.file-spec dd {
  margin: 0;
  padding-top: 9px;
}
.file-spec dt {
  color: #485652;
}
.file-spec dd {
  text-align: right;
  font-weight: 550;
}
.file-project {
  display: block;
  width: fit-content;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 15px;
}
.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 72px);
  list-style: none;
  margin: clamp(36px, 4vw, 65px) 0 0;
  padding: 0;
}
.work-list li {
  border-top: 1px solid var(--line);
}
.work-list li:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}
.work-list a {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 24px);
  height: 100%;
  padding-block: 14px;
}
.work-list img {
  flex: none;
  width: clamp(72px, 6.6vw, 96px);
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.work-list h3 {
  font-size: clamp(18px, 1.7vw, 29px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.work-list p {
  font-size: 13px;
  color: #525c56;
  margin-top: 3px;
}
.work-list a > span {
  margin-left: auto;
}
.compact-archive .section-heading .text-link {
  display: none;
}
.work-toggle:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  margin-top: 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 500;
}
.work-reveal:not([hidden]) {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  overflow-anchor: none;
  transition:
    grid-template-rows var(--disclosure-time) var(--disclosure-ease),
    opacity 320ms ease,
    visibility 0s var(--disclosure-time);
}
.work-toggle[aria-expanded="true"] + .work-reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.work-reveal .work-list {
  margin: 0;
  min-height: 0;
  overflow: clip;
}
.work-reveal .work-list a:focus-visible {
  outline-offset: -3px;
}
.work-reveal li:first-child {
  border-top: 0;
}
.work-toggle-icon {
  display: grid;
  place-items: center;
  width: 16px;
}
.work-toggle-icon::before,
.work-toggle-icon::after {
  content: "";
  grid-area: 1 / 1;
  width: 12px;
  height: 1px;
  background: currentColor;
}
.work-toggle-icon::after {
  transform: rotate(90deg);
  transition: transform .24s ease;
}
.work-toggle[aria-expanded="true"] .work-toggle-icon::after {
  transform: rotate(0);
}
@media (max-width: 900px) {
  .inspect-trigger,
  .hero[data-project] .inspect-trigger {
    left: auto;
    right: var(--gutter);
    top: 33%;
  }
  .file-copy {
    padding: 22px;
  }
  .file-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}
@media (max-width: 740px) {
  .mast .mobile-nav {
    left: 0;
    right: 0;
    color: white;
  }
  .mast-paper {
    height: 60px;
  }
  .mast-paper .wordmark-shape {
    width: 90px;
  }
  .hero {
    min-height: 650px;
  }
  .inspect-trigger,
  .hero[data-project] .inspect-trigger {
    top: 24%;
    right: var(--gutter);
  }
  .inspect-tag {
    padding: 7px 10px;
  }
  .inspect-tag strong {
    font-size: 12px;
  }
  .inspect-tag small {
    font-size: 9px;
  }
  .inspect-pin {
    width: 26px;
    height: 26px;
  }
  .inspect-leader {
    width: 19px;
  }
  .hero-copy p {
    max-width: 330px;
  }
  .field-notes {
    max-width: calc(100vw - 20px);
    max-height: 94svh;
  }
  .file-grid {
    display: flex;
    flex-direction: column;
  }
  .file-stage {
    flex: auto;
    height: clamp(180px, 27svh, 280px);
    min-height: 0;
  }
  .file-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .file-copy {
    padding: 22px;
  }
  .file-copy h2 {
    font-size: 44px;
  }
  .file-location {
    margin-top: 0;
    font-size: 22px;
  }
  .file-head {
    padding: 5px 16px;
  }
  .file-description {
    font-size: 14px;
    margin: 12px 0;
  }
  .file-spec {
    margin: 0 0 14px;
  }
  .file-views button {
    padding: 12px 4px;
  }
  .file-project {
    margin-top: 10px;
  }
  .work-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .work-list li:nth-last-child(2) {
    border-bottom: 0;
  }
  .work-list img {
    width: clamp(66px, 20vw, 78px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .shutter-out {
    display: none;
  }
  .hero-copy h1,
  .hero-copy h1 em {
    animation: none;
  }
  .inspect-trigger,
  .mast {
    transition: none;
  }
}
.hero .inspect-trigger,
.hero[data-project] .inspect-trigger {
  --pin-radius: 15px;
  left: var(--pin-x, 68%);
  top: var(--pin-y, 35%);
  right: auto;
  transform: translate(calc(-1 * var(--pin-radius)), -50%);
}
.hero .inspect-trigger.label-left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + var(--pin-radius)), -50%);
}
@media (max-width: 740px) {
  .hero .inspect-trigger {
    --pin-radius: 13px;
  }
}


@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  .mobile-nav {
    opacity: 0;
    clip-path: inset(0 0 18% 0);
    transition:
      opacity .3s ease,
      clip-path var(--disclosure-time) var(--disclosure-ease),
      display var(--disclosure-time) allow-discrete;
  }
  .mobile-nav:not([hidden]) {
    opacity: 1;
    clip-path: inset(0);
  }
  @starting-style {
    .mobile-nav:not([hidden]) {
      opacity: 0;
      clip-path: inset(0 0 18% 0);
    }
  }
}
