.portfolio-page {
  color: var(--portfolio-text);
  background: var(--portfolio-bg);
}

.portfolio-page main {
  overflow: clip;
}

.portfolio-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(2rem, 7vh, 6rem)) var(--page-gutter) clamp(1.5rem, 4vh, 3.5rem);
  border-bottom: 1px solid var(--portfolio-rule);
}

.hero-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  color: var(--portfolio-muted);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-heading {
  grid-column: 1 / -1;
  align-self: center;
  display: flex;
  flex-direction: column;
  margin-block: clamp(3rem, 8vh, 8rem);
  font-size: clamp(4.25rem, 12.3vw, 13.5rem);
  font-weight: 650;
  letter-spacing: -.085em;
  line-height: .72;
  text-transform: uppercase;
}

.hero-name {
  display: block;
  will-change: transform;
}

.hero-name--first {
  align-self: flex-start;
}

.hero-name--last {
  align-self: flex-end;
  margin-top: .2em;
  padding-right: .06em;
}

.hero-introduction {
  grid-column: 7 / 11;
  align-self: end;
  display: grid;
  gap: .9rem;
}

.hero-introduction .eyebrow {
  color: var(--portfolio-muted);
}

.hero-statement {
  max-width: 27rem;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2.25rem);
  font-weight: 450;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.hero-scroll {
  grid-column: 11 / -1;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 2.75rem;
  border-bottom: 1px solid var(--portfolio-muted);
  color: var(--portfolio-muted);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.work-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 42vh;
  padding: clamp(5rem, 12vw, 12rem) var(--page-gutter) clamp(4rem, 8vw, 8rem);
}

.work-heading .section-index {
  grid-column: 1 / 3;
  color: var(--portfolio-muted);
}

.work-heading h2 {
  grid-column: 4 / 12;
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 7.3vw, 8rem);
  font-weight: 580;
  letter-spacing: -.065em;
  line-height: .92;
}

.project-scene--menuspark {
  position: relative;
  display: grid;
  grid-template-columns: minmax(22rem, 5fr) minmax(0, 7fr);
  min-height: 125svh;
  padding: clamp(4rem, 7vw, 8rem) var(--page-gutter);
  color: var(--menuspark-text);
  background: var(--menuspark-bg);
}

.project-copy {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - var(--header-height) - 4rem);
  padding-right: clamp(2rem, 5vw, 7rem);
}

.project-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #c6ccd3;
}

.project-icon {
  width: clamp(3.5rem, 5vw, 5.5rem);
  border-radius: 22%;
  box-shadow: 0 .65rem 1.6rem rgb(21 52 86 / 18%);
  view-transition-name: menuspark-icon;
}

.project-platform {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-copy h2 {
  margin: .35rem 0 1.5rem;
  color: var(--menuspark-blue);
  font-size: clamp(4rem, 5.7vw, 7.25rem);
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: .88;
}

.project-description {
  max-width: 32rem;
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.75rem);
  letter-spacing: -.025em;
  line-height: 1.28;
}

.project-capabilities {
  display: grid;
  max-width: 34rem;
  margin: clamp(2rem, 4vh, 3.25rem) 0 0;
  padding: 0;
  border-bottom: 1px solid #c6ccd3;
  list-style: none;
}

.project-capabilities li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  padding-block: .85rem;
  border-top: 1px solid #c6ccd3;
  font-size: clamp(.9rem, 1vw, 1.05rem);
  line-height: 1.35;
}

.project-capabilities li > span:first-child {
  padding-top: .15rem;
  color: #64717e;
  font-family: var(--font-mono);
  font-size: .65rem;
}

.project-entry {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 3.25rem;
  border-bottom: 1px solid currentColor;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}

.project-entry span:last-child {
  font-size: 1.25rem;
  transition: transform 320ms var(--ease-out);
}

.project-entry:hover span:last-child {
  transform: translate(.25rem, -.25rem);
}

.project-visual {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  display: grid;
  min-width: 0;
  min-height: calc(100svh - var(--header-height) - 4rem);
  padding: clamp(1.5rem, 4vw, 5rem);
  overflow: hidden;
  color: var(--menuspark-text);
  background: #e5f2ff;
  text-decoration: none;
  place-items: center;
  view-transition-name: menuspark-window;
}

.app-window {
  width: min(100%, 74rem);
  overflow: hidden;
  border: 1px solid rgb(20 23 27 / 18%);
  border-radius: clamp(.75rem, 1.2vw, 1.25rem);
  background: #fff;
  box-shadow: 0 2rem 5rem rgb(36 83 128 / 18%);
  transform: scale(.985);
  transition: transform 700ms var(--ease-out);
}

.project-visual:hover .app-window,
.project-visual:focus-visible .app-window {
  transform: scale(1);
}

.app-window__bar {
  display: flex;
  align-items: center;
  gap: .42rem;
  height: clamp(2.1rem, 3.4vw, 3.25rem);
  padding-inline: clamp(.75rem, 1.5vw, 1.25rem);
  border-bottom: 1px solid #d6d9dc;
  background: #f7f7f8;
}

.app-window__bar span {
  width: clamp(.5rem, .7vw, .72rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c5c7ca;
}

.app-window__bar strong {
  margin-inline: auto;
  padding-right: 3rem;
  font-size: clamp(.58rem, .8vw, .75rem);
  font-weight: 600;
}

.project-scene--twentysix {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 100svh;
  padding: clamp(6rem, 10vw, 11rem) var(--page-gutter);
  overflow: hidden;
  color: #fff;
  background: var(--twentysix-red);
}

.twentysix-map {
  position: absolute;
  top: 8%;
  right: -6%;
  width: min(54vw, 62rem);
  opacity: .18;
  transform: rotate(-5deg);
}

.twentysix-map img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.twentysix-brand {
  z-index: 1;
  grid-column: 1 / 3;
  align-self: start;
  display: flex;
  align-items: center;
}

.twentysix-icon {
  width: clamp(4rem, 6vw, 6.5rem);
  border-radius: 22%;
  box-shadow: 0 1.5rem 3rem rgb(78 0 0 / 20%);
}

.twentysix-copy {
  z-index: 1;
  grid-column: 1 / 7;
  align-self: end;
  padding-top: 32vh;
}

.twentysix-copy h2 {
  max-width: 12ch;
  margin: .75rem 0 2rem;
  font-size: clamp(3.5rem, 7vw, 8rem);
  font-weight: 620;
  letter-spacing: -.065em;
  line-height: .91;
}

.twentysix-copy > p:not(.eyebrow) {
  max-width: 37rem;
  margin: 0 0 clamp(3rem, 7vw, 7rem);
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  letter-spacing: -.025em;
  line-height: 1.32;
}

.twentysix-link {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 3.25rem;
  border-bottom: 1px solid currentColor;
  font-weight: 600;
  text-decoration: none;
}

.about-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 90svh;
  padding: clamp(6rem, 10vw, 11rem) var(--page-gutter);
  border-bottom: 1px solid var(--portfolio-rule);
}

.about-section .section-index {
  grid-column: 1 / 3;
  color: var(--portfolio-muted);
}

.about-copy {
  grid-column: 4 / 10;
  align-self: center;
}

.about-copy h2 {
  margin: 0 0 clamp(2rem, 4vw, 4rem);
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .9;
}

.about-copy > p:not(.technology-line) {
  max-width: 37rem;
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2.3rem);
  letter-spacing: -.035em;
  line-height: 1.25;
}

.technology-line {
  margin: clamp(3rem, 7vw, 7rem) 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--portfolio-rule);
  color: var(--portfolio-muted);
  font-family: var(--font-mono);
  font-size: clamp(.7rem, 1vw, .9rem);
}

.about-portrait {
  grid-column: 11 / -1;
  align-self: end;
  width: min(100%, 11rem);
  filter: grayscale(1) contrast(1.05);
}

.contact-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(12rem, 1fr);
  row-gap: clamp(5rem, 11vh, 9rem);
  min-height: 82svh;
  padding: clamp(6rem, 11vw, 12rem) var(--page-gutter);
}

.contact-section .section-index {
  grid-column: 1 / 3;
  grid-row: 1;
  color: var(--portfolio-muted);
}

.contact-section h2 {
  grid-column: 3 / -1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(5rem, 13.4vw, 14rem);
  font-weight: 620;
  letter-spacing: -.085em;
  line-height: .82;
}

.contact-links {
  grid-column: 7 / -1;
  grid-row: 2;
  align-self: end;
  display: grid;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  border-top: 1px solid var(--portfolio-rule);
  text-decoration: none;
}

.portfolio-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--page-gutter) max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--portfolio-rule);
  color: var(--portfolio-muted);
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
}

@media (max-width: 64rem) {
  .hero-introduction {
    grid-column: 6 / 11;
  }

  .hero-scroll {
    grid-column: 10 / -1;
  }

  .project-scene--menuspark {
    grid-template-columns: minmax(20rem, 5fr) minmax(0, 7fr);
  }

  .twentysix-copy {
    grid-column: 1 / 8;
  }

  .about-copy {
    grid-column: 3 / 10;
  }
}

@media (max-width: 48rem) {
  .portfolio-hero {
    grid-template-rows: auto 1fr auto auto;
    min-height: 100svh;
  }

  .hero-heading {
    font-size: clamp(4rem, 18.5vw, 8.5rem);
    line-height: .78;
  }

  .hero-introduction {
    grid-column: 1 / 10;
  }

  .hero-scroll {
    grid-column: 8 / -1;
    margin-top: 2rem;
  }

  .work-heading {
    min-height: 35vh;
  }

  .work-heading h2 {
    grid-column: 3 / -1;
  }

  .project-scene--menuspark {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    min-height: auto;
  }

  .project-copy,
  .project-visual {
    position: static;
    min-height: auto;
  }

  .project-copy {
    gap: clamp(3rem, 12vw, 6rem);
    padding-right: 0;
  }

  .project-visual {
    min-height: min(70svh, 44rem);
    margin-inline: calc(var(--page-gutter) * -1);
  }

  .project-scene--twentysix {
    min-height: auto;
    gap: 5rem 0;
  }

  .twentysix-map {
    top: 6rem;
    right: -22%;
    width: 92vw;
    opacity: .14;
  }

  .twentysix-brand {
    grid-column: 1 / 7;
  }

  .twentysix-copy {
    grid-column: 2 / -1;
    padding-top: 32vh;
  }

  .about-copy {
    grid-column: 3 / -1;
  }

  .about-portrait {
    grid-column: 1 / 3;
  }

  .contact-section h2 {
    grid-column: 2 / -1;
  }

  .contact-links {
    grid-column: 5 / -1;
  }
}

@media (max-width: 34rem) {
  .portfolio-hero {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero-meta span:first-child {
    display: none;
  }

  .hero-meta {
    justify-content: flex-end;
  }

  .hero-heading {
    justify-content: center;
    margin-block: 2.5rem;
    font-size: clamp(3.45rem, 18.4vw, 6.2rem);
  }

  .hero-name--last {
    align-self: flex-start;
    margin-left: .28em;
  }

  .hero-introduction {
    grid-column: 1 / -1;
  }

  .hero-statement {
    max-width: 18rem;
  }

  .hero-scroll {
    grid-column: 5 / -1;
  }

  .work-heading {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-block: 5rem;
  }

  .work-heading .section-index {
    grid-column: 1 / 2;
  }

  .work-heading h2 {
    grid-column: 2 / -1;
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .project-scene--menuspark {
    padding-block: 3.5rem;
  }

  .project-copy h2 {
    font-size: clamp(3.5rem, 18.5vw, 6rem);
  }

  .project-visual {
    min-height: 55svh;
    padding-inline: 1rem;
  }

  .app-window {
    width: 38rem;
    max-width: none;
    transform: translateX(11%) scale(.985);
  }

  .project-visual:hover .app-window,
  .project-visual:focus-visible .app-window {
    transform: translateX(11%) scale(1);
  }

  .project-scene--twentysix,
  .about-section,
  .contact-section {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .twentysix-map {
    top: 7rem;
    right: -42%;
    width: 130vw;
  }

  .twentysix-brand {
    grid-column: 1 / -1;
  }

  .twentysix-copy {
    grid-column: 1 / -1;
    padding-top: 32vh;
  }

  .twentysix-copy h2 {
    font-size: clamp(3.5rem, 16vw, 5.7rem);
  }

  .about-section {
    gap: 4rem 0;
    min-height: auto;
  }

  .about-section .section-index,
  .contact-section .section-index {
    grid-column: 1 / 2;
  }

  .about-copy {
    grid-column: 2 / -1;
  }

  .about-copy h2 {
    font-size: clamp(3.4rem, 15vw, 5rem);
  }

  .about-portrait {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .contact-section {
    grid-template-rows: auto auto auto;
    row-gap: 0;
    min-height: 75svh;
  }

  .contact-section h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4rem;
    font-size: clamp(4.7rem, 22vw, 7.5rem);
  }

  .contact-links {
    grid-column: 2 / -1;
    grid-row: 3;
    margin-top: 7rem;
  }

  .portfolio-footer {
    flex-direction: column;
    gap: .75rem;
  }
}
