/* Design tokens */
:root {
  --bg: #121212;
  --ink: #ffffff;
  --muted: #9a9a9a;
  --line: #d9d9d6;
  --accent: #111111;
  --portfolio-red: #e95868;
  --portfolio-green: #8fa98b;
  --portfolio-blue: #5f7894;
  --portfolio-orange: #d79a5b;
  --font-body: "Roboto", sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --shell-width: min(100vw, 2560px);
  --menu-width: clamp(8.5rem, calc(var(--shell-width) / 10), 13rem);
  --section-gap: clamp(12rem, 32vh, 28rem);
}

* { box-sizing: border-box; }


h1,
h2,
h3,
.menu-logo,
.project-switcher-title,
.project-switch,
.menu a,
.landing-callout p,
.project-subtitle,
.project-see-more,
.project-rail-label,
.project-detail-copy > .project-kicker,
.project-detail-meta > p,
.project-detail-section .project-kicker,
.project-slide-number,
.project-source-link {
  font-family: var(--font-display);
}
button,
input,
textarea,
select {
  font: inherit;
}

/* Base */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-anchor: none;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

body {
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 420ms ease,
    visibility 420ms ease;
}

.loading-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  width: min(18rem, 72vw);
}

.loading-mark,
.loading-label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.loading-mark {
  font-size: clamp(2rem, 8vw, 5rem);
}

.loading-label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.loading-bar {
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.loading-bar span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--portfolio-orange);
  animation: loadingBar 900ms ease-in-out infinite;
}

@keyframes loadingBar {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(250%);
  }
}
/* Site shell and sidebar */
.site-shell {
  position: relative;
  width: var(--shell-width);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--menu-width) 1fr;
  justify-content: center;
  container-type: inline-size;
  overflow-anchor: none;
}

.site-shell.is-intro {
  overflow-x: hidden;
}

.about-shell .menu-container,
.about-shell .hero-container {
  transition: none;
}

.menu-container {
  position: fixed;
  top: 0;
  left: calc((100vw - var(--shell-width)) / 2);
  align-self: start;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: var(--menu-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 3rem 0.75rem 2rem 0;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 680ms ease 1760ms,
    transform 960ms cubic-bezier(0.16, 1, 0.3, 1) 1760ms;
}

.site-shell.is-intro .menu-container {
  opacity: 0;
  transform: translateX(-100%);
}

.menu-logo {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  text-align: right;
}

.menu-groups {
  display: grid;
  justify-items: end;
  align-content: space-between;
  flex: 1;
  width: 100%;
  margin-top: 4rem;
  text-align: right;
}

.menu a {
  background-image: linear-gradient(135deg, var(--portfolio-red) 40%, var(--portfolio-blue));
  background-position: 100% 50%;
  background-repeat: no-repeat;
  background-size: 0% 100%;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.82vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-size 180ms ease,
    color 160ms ease,
    letter-spacing 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.menu a:hover,
.menu a:focus-visible {
  background-size: 100% 100%;
  color: transparent;
  letter-spacing: 0.08em;
  outline: 0;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-container {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  overflow: visible;
  transform: translateX(0);
  transition: transform 1040ms cubic-bezier(0.16, 1, 0.3, 1) 1680ms;
}

.site-shell.is-intro .hero-container {
  transform: translateX(calc(var(--menu-width) * -1));
}

/* Landing hero */
.landing-page {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  overflow-anchor: none;
  background-color: transparent;
}

.landing-explode-frame {
  position: absolute;
  top: -5%;
  right: auto;
  bottom: auto;
  left: -50%;
  z-index: 1;
  width: 168%;
  height: 136%;
  object-fit: cover;
  object-position: center;
  transform: scaleX(-1.2);
  transition: none;
  overflow-anchor: none;
  pointer-events: none;
  user-select: none;
}

.site-shell.is-intro .landing-explode-frame {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: scaleX(-1.2) scale(1.03);
}

.site-shell:not(.is-intro) .landing-explode-frame {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition:
    opacity 700ms ease 120ms,
    clip-path 900ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

.landing-page.is-explosion-active .landing-explode-frame {
  transform: scaleX(-1.2);
}

@media (orientation: portrait) {
  .landing-page {
    min-height: 100vh;
    height: auto;
  }

  .landing-content {
    width: calc(100% * 11 / 12);
    min-height: calc(100vh * 11 / 12);
    margin: calc(100vh / 24) auto;
    padding: 0;
    container-type: inline-size;
  }

  .landing-explode-frame {
    top: -8%;
    left: -100%;
    width: 184%;
    height: 124%;
    object-fit: cover;
    object-position: center;
    transform: scaleX(-1.16);
  }

  .landing-page.is-explosion-active .landing-explode-frame {
    transform: scaleX(-1.16);
  }
}


/* About */
.about-section {
  min-height: 120vh;
  position: relative;
  overflow: visible;
}

.about-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% * 11 / 12);
  min-height: calc(100% * 10 / 12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 34%);
  grid-template-rows: auto 1fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  transform: translate(-50%, -50%);
}

.about-copy {
  align-self: start;
  max-width: 54rem;
}

.about-copy h2 {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 8.5rem);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.about-copy p:not(.project-kicker) {
  max-width: 46rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  align-self: start;
}

.about-lists {
  grid-column: 1 / -1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.about-lists > div {
  display: grid;
  gap: 0.7rem;
}

.about-lists p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-lists ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-lists li {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.55rem;
  text-transform: uppercase;
}

/* Project layout */
.project-container {
  position: relative;
  margin-top: var(--section-gap);
  container-type: inline-size;
  overflow-anchor: none;
  overflow: visible;
}

.project-menu-buffer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--menu-width) * -1);
  z-index: 6;
  width: var(--menu-width);
  background: var(--bg);
  pointer-events: none;
  transform: translateX(0);
  transition: transform 960ms cubic-bezier(0.16, 1, 0.3, 1) 1760ms;
}

.site-shell.is-intro .project-menu-buffer {
  transform: translateX(-100%);
}

.project {
  height: 100vh;
  position: relative;
  overflow-anchor: none;
  overflow: visible;
}

.project + .project {
  margin-top: var(--section-gap);
}

.project-panel + .project-panel,
.project-panel + .project,
.project + .project-panel {
  margin-top: var(--section-gap);
}

.project-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: calc(100% * 11 / 12);
  height: calc(100% * 11 / 12);
  overflow: visible;
  transform: translate(-50%, -50%);
  container-type: size;
  --project-header-height: 66.667cqh;
  --project-detail-height: 0cqh;
  --project-stack-gap: calc(100cqh / 24);
}

.project.is-explosion-active .project-frame {
  --project-header-height: 33.333cqh;
  --project-detail-height: 66.667cqh;
  display: grid;
  grid-template-columns: minmax(0, 29cqw) minmax(0, 1fr);
  grid-auto-rows: max-content;
  align-content: start;
  justify-items: start;
  gap: var(--project-stack-gap);
}


.project-frame::before {
  content: none;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 8;
  max-width: min(22cqw, 18rem);
  color: var(--muted);
  font-size: clamp(0.72rem, 1.05cqw, 1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project.is-explosion-active .project-frame::before {
  opacity: 0;
  transform: translateY(0.45rem);
}

/* Project header */
.project-header {
  position: absolute;
  top: 0;
  left: 0;
  width: min(86cqw, 88rem);
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: var(--project-header-height);
  overflow: clip;
  transition: height 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project.is-explosion-active .project-header {
  grid-column: 1 / -1;
  position: relative;
  top: auto;
  left: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  justify-content: start;
  align-items: start;
  height: auto;
  gap: var(--project-stack-gap);
  overflow: visible;
}


.project-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.75rem, 9cqw, 9rem);
  font-weight: 900;
  line-height: 0.92;
  max-width: 100%;
  overflow: visible;
  text-transform: uppercase;
  white-space: nowrap;
}



.project-subtitle {
  display: grid;
  gap: 0.32em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 5cqh, 4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-transform: uppercase;
  transition:
    margin-top 340ms cubic-bezier(0.16, 1, 0.3, 1),
    font-size 340ms cubic-bezier(0.16, 1, 0.3, 1),
    gap 340ms cubic-bezier(0.16, 1, 0.3, 1),
    line-height 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project.is-explosion-active .project-subtitle {
  margin-top: 0;
  font-size: clamp(0.85rem, 3cqh, 2.5rem);
  gap: 0.08em;
  line-height: 1;
}

.project.is-explosion-active .project-see-more {
  margin-top: 0;
  min-width: clamp(15rem, 26cqw, 24rem);
  min-height: clamp(3rem, 5cqh, 4.25rem);
}
.project-subtitle span {
  display: block;
}

/* Project details */
.project-preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 0.35rem;
  object-fit: cover;
  object-position: center;
}

.project-see-more {
  align-items: center;
  border: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  white-space: nowrap;
  font-size: clamp(0.9rem, 1.65cqw, 1.35rem);
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-top: 0;
  width: fit-content;
  min-width: clamp(10rem, 18cqw, 15rem);
  min-height: clamp(4.25rem, 8cqh, 6.25rem);
  max-width: min(32rem, 92cqw);
  padding: 0.9rem clamp(1.1rem, 1.7cqw, 2rem);
  text-decoration: none;
  text-transform: uppercase;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    background-color 180ms ease,
    background-image 180ms ease,
    color 180ms ease,
    letter-spacing 220ms cubic-bezier(0.16, 1, 0.3, 1),
    margin-top 340ms cubic-bezier(0.16, 1, 0.3, 1),
    min-height 340ms cubic-bezier(0.16, 1, 0.3, 1),
    font-size 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project[data-project-tags~="design"] {
  --project-category-color: var(--portfolio-green);
}

.project[data-project-tags~="engineering"] {
  --project-category-color: var(--portfolio-red);
}

.project[data-project-tags~="misc"] {
  --project-category-color: var(--portfolio-blue);
}

body.is-curated-filter .project[data-project-tags] {
  --project-category-color: var(--portfolio-orange);
}

.project-see-more:hover,
.project.is-explosion-active .project-see-more {
  background-color: var(--project-category-color, var(--ink));
  background-image: linear-gradient(135deg, var(--project-category-color, var(--ink)) 40%, rgba(255, 255, 255, 0.22));
  color: var(--ink);
  letter-spacing: 0.12em;
}


.project-switch:active,
.project-switch:hover,
.project-see-more:active,
.project-see-more:hover,
.landing-scroll-button:active,
.landing-scroll-button:hover {
  outline: 0;
}

.project-switch .text,
.landing-scroll-button .text,
.project-see-more > span {
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.project-switch:hover .text,
.project-switch:focus-visible .text,
.project-switch.is-active .text,
.landing-scroll-button:hover .text,
.landing-scroll-button:focus-visible .text,
.project-see-more:hover > span,
.project.is-explosion-active .project-see-more > span {
  opacity: 0.75;
  transform: scale(0.9);
}
.project-see-more-active {
  display: none;
}

.project.is-explosion-active .project-see-more-default {
  display: none;
}

.project.is-explosion-active .project-see-more-active {
  display: inline-block;
}

.project-detail-panel {
  position: absolute;
  top: var(--project-header-height);
  left: 0;
  display: grid;
  align-content: start;
  gap: 1.2rem;
  width: 29cqw;
  height: var(--project-detail-height);
  overflow: clip;
  opacity: 0;
  transform: translateY(1rem);
  transition:
    top 380ms cubic-bezier(0.16, 1, 0.3, 1),
    height 380ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 240ms ease,
    transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.project.is-explosion-active .project-detail-panel {
  display: contents;
}

.project.is-explosion-active .project-detail-panel > * {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin: 0;
}


.project-preview-image {
  order: 1;
}

.project-description {
  order: 2;
}

.project-detail-panel > div {
  order: 3;
}
.project-detail-panel div {
  display: grid;
  gap: 0.55rem;
}

.project-description {
  max-width: min(26rem, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.project-detail-panel div > p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.75rem, 1.05cqw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-detail-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-detail-panel li {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: clamp(0.72rem, 0.95cqw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.55rem;
  text-transform: uppercase;
}

.project.is-explosion-active .project-preview-image {
  margin: 0;
  max-height: min(22cqh, 13rem);
}

.project.is-explosion-active .project-description {
  font-size: clamp(0.72rem, 1.25cqh, 0.86rem);
  line-height: 1.25;
}

.project.is-explosion-active .project-detail-panel div {
  gap: 0.35rem;
}

.project.is-explosion-active .project-detail-panel ul {
  gap: 0.3rem;
}

.project.is-explosion-active .project-detail-panel div > p {
  font-size: clamp(0.65rem, 1cqh, 0.82rem);
}

.project.is-explosion-active .project-detail-panel li {
  font-size: clamp(0.62rem, 0.9cqh, 0.78rem);
  padding: 0.28rem 0.42rem;
}
.project-rail-label {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--rail-gap, clamp(0.12rem, 0.45cqh, 0.55rem));
  width: 100cqh;
  margin: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: clamp(1.25rem, 2.75cqh, 2.45rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(100%);
  transform-origin: top right;
  overflow: hidden;
  white-space: nowrap;
  transition:
    gap 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.project-rail-label--tracking {
  display: block;
}
.project-rail-label span {
  min-width: max-content;
  flex: 0 0 auto;
}

.project-rail-separator {
  flex: 0 0 auto;
  opacity: 0.72;
}

/* Project animation */
.project-animation-frame {
  position: absolute;
  top: 6%;
  right: -6%;
  z-index: 3;
  width: 78%;
  height: 88%;
  object-fit: contain;
  object-position: center;
  transform: translate(-10%, 0) scale(1.3);
  transition: transform var(--explode-return-ms, 520ms) cubic-bezier(0.16, 1, 0.3, 1);
  overflow-anchor: none;
  pointer-events: none;
  user-select: none;
  overflow: visible;
}

.project.is-explosion-active .project-animation-frame {
  transform: translate(-10%, -5%) scale(1.3);
  transition-duration: 200ms;
}

.project-animation-frame--planter {
  z-index: 7;
  width: 88%;
  height: 96%;
  transform: translate(-14%, 3%) scale(1.42);
}

.project-animation-frame--chair {
  z-index: 7;
  width: 88%;
  height: 96%;
  transform: translate(-14%, 3%) scale(1.42);
}

.project-animation-frame--bud {
  z-index: 7;
  width: 88%;
  height: 96%;
  transform: translate(-19%, 8%) scale(1.45);
}

.project-animation-frame--serpent {
  z-index: 7;
  width: 92%;
  height: 96%;
  transform: translate(-17%, -2%) scale(1.21);
}

.project.is-explosion-active .project-animation-frame--planter {
  transform: translate(-14%, -2%) scale(1.42);
}

.project.is-explosion-active .project-animation-frame--chair {
  transform: translate(-14%, -2%) scale(1.42);
}

.project.is-explosion-active .project-animation-frame--bud {
  transform: translate(-19%, 3%) scale(1.45);
}

.project.is-explosion-active .project-animation-frame--serpent {
  transform: translate(-17%, -7%) scale(1.21);
}

/* Landing content */
.landing-content {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: start;
  justify-items: start;
  width: calc(100% * 11 / 12);
  min-height: calc(100vh * 11 / 12);
  margin: calc(100vh / 24) auto;
  padding: 0;
  container-type: inline-size;
}

.landing-title {
  position: relative;
  display: flex;
  z-index: 0;
  flex-direction: column;
  gap: 0.2em;
  width: 66cqw;
  margin: 0;
  color: #121212;
  font-family: var(--font-display);
  font-size: 18cqw;
  font-weight: 900;
  line-height: 0.74;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
}

.landing-title,
.landing-subtitle,
.landing-name,
.landing-contact {
  clip-path: inset(0 0 0 0);
}

.site-shell.is-intro .landing-title,
.site-shell.is-intro .landing-subtitle,
.site-shell.is-intro .landing-name,
.site-shell.is-intro .landing-contact {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(0.35em);
}

.site-shell:not(.is-intro) .landing-title {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    clip-path 780ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-shell:not(.is-intro) .landing-subtitle,
.site-shell:not(.is-intro) .landing-name {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
  transition:
    opacity 720ms ease 760ms,
    clip-path 1100ms cubic-bezier(0.16, 1, 0.3, 1) 760ms,
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1) 760ms;
}

.site-shell:not(.is-intro) .landing-contact {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
  transition:
    opacity 720ms ease 1320ms,
    clip-path 1100ms cubic-bezier(0.16, 1, 0.3, 1) 1320ms,
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1) 1320ms;
}

.landing-title span {
  position: relative;
}

.landing-title span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 0;
  color: #121212;
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

.landing-subtitle {
  position: relative;
  z-index: 2;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.35rem, 2.3vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.landing-name {
  position: relative;
  z-index: 2;
  margin: 1.4rem 0 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 2.6vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-contact {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.15rem;
  width: min(26rem, 70%);
  margin: 2rem 0 0;
}

.landing-contact div {
  display: grid;
  grid-template-columns: 1.5rem 4.5rem 1fr;
  column-gap: 1rem;
  align-items: start;
}

.contact-icon {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.landing-contact dt {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-contact dd {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.landing-contact a {
  color: inherit;
  text-decoration: none;
}

.landing-callout {
  position: absolute;
  top: auto;
  right: calc(100% / 24);
  bottom: calc(100vh / 24);
  z-index: 4;
  display: grid;
  justify-items: end;
  gap: 0;
  max-width: min(28rem, 42%);
  text-align: right;
  clip-path: inset(0 0 0 0);
}

.landing-callout p {
  display: none;
}

.landing-scroll-button {
  align-items: flex-end;
  border: 0;
  box-sizing: border-box;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: fit-content;
  min-height: clamp(4.5rem, 8vw, 7rem);
  max-width: 100%;
  font: inherit;
  font-size: clamp(1.35rem, 2.2vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 1rem 1.25rem;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  overflow-wrap: anywhere;
  transition:
    background-color 160ms ease,
    background-image 160ms ease,
    color 160ms ease;
}

.landing-scroll-button:hover,
.landing-scroll-button:focus-visible {
  background-color: var(--portfolio-orange);
  background-image: linear-gradient(135deg, var(--portfolio-orange) 40%, rgba(255, 255, 255, 0.22));
  color: var(--ink);
  outline: 0;
}

.site-shell.is-intro .landing-callout {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.75rem);
}

.site-shell:not(.is-intro) .landing-callout {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
  transition:
    opacity 720ms ease 1880ms,
    clip-path 980ms cubic-bezier(0.16, 1, 0.3, 1) 1880ms,
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1) 1880ms;
}

/* Project category links */
.project-switcher {
  display: grid;
  width: 100%;
  justify-items: end;
  gap: 0;
  padding: 0;
}

.project-switcher-title {
  margin: 0 0 0.15rem;
  color: var(--ink);
  font-size: clamp(0.74rem, 0.8vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.project-switch {
  align-items: flex-end;
  border: 0;
  box-sizing: border-box;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 2.6rem;
  max-width: 100%;
  font: inherit;
  font-size: clamp(0.72rem, 0.82vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 0.55rem 0.8rem;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  overflow-wrap: anywhere;
  transition:
    background-color 160ms ease,
    background-image 160ms ease,
    color 160ms ease;
}

.project-switch:hover,
.project-switch:focus-visible,
.project-switch.is-active {
  background-color: var(--portfolio-green);
  background-image: linear-gradient(135deg, var(--portfolio-green) 40%, rgba(255, 255, 255, 0.22));
  color: var(--ink);
  outline: 0;
}

.project-switch[data-project-filter="all"]:hover,
.project-switch[data-project-filter="all"]:focus-visible,
.project-switch[data-project-filter="all"].is-active {
  background-color: var(--portfolio-orange);
  background-image: linear-gradient(135deg, var(--portfolio-orange) 40%, rgba(255, 255, 255, 0.22));
}

.project-switch[data-project-filter="engineering"]:hover,
.project-switch[data-project-filter="engineering"]:focus-visible,
.project-switch[data-project-filter="engineering"].is-active {
  background-color: var(--portfolio-red);
  background-image: linear-gradient(135deg, var(--portfolio-red) 40%, rgba(255, 255, 255, 0.22));
}

.project-switch[data-project-filter="misc"]:hover,
.project-switch[data-project-filter="misc"]:focus-visible,
.project-switch[data-project-filter="misc"].is-active {
  background-color: var(--portfolio-blue);
  background-image: linear-gradient(135deg, var(--portfolio-blue) 40%, rgba(255, 255, 255, 0.22));
}

.project-panel {
  display: block;
  min-height: 0;
  overflow: visible;
}

.project-panel.is-active {
  display: block;
  overflow: visible;
}

.project-panel-label {
  color: var(--muted);
  font-size: clamp(2rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.project--placeholder .project-panel-label {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: min(42rem, 72%);
  font-size: clamp(1.4rem, 3.6vw, 4.25rem);
  line-height: 0.95;
}

.project.is-filter-hidden {
  display: none;
}

@keyframes projectPanelReveal {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .site-shell {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .menu-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: auto;
    justify-content: space-between;
    align-items: center;
    border-right: 0;
    padding: 1rem;
    background: var(--bg);
    flex-direction: row;
    grid-column: 1;
    grid-row: 1;
  }

  .site-shell.is-intro .menu-container {
    transform: translateY(-100%);
  }

  .hero-container {
    grid-column: 1;
    grid-row: 1;
    padding-top: 4rem;
  }

  .site-shell.is-intro .hero-container {
    padding-top: 0;
    transform: translateX(0);
  }

  .menu {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
  }

  .menu-groups {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    gap: 1rem;
    width: auto;
    margin-top: 0;
    min-width: 0;
  }

  .project-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    width: auto;
  }

  .project-switcher-title {
    font-size: 0.72rem;
    margin: 0;
  }

  .landing-content {
    width: calc(100% * 11 / 12);
    min-height: calc(100vh * 11 / 12);
    margin: calc(100vh / 24) auto;
    padding: 0;
    container-type: inline-size;
  }

  .landing-callout {
    top: auto;
    right: calc(100% / 24);
    bottom: calc(100vh / 24);
    max-width: min(20rem, 72%);
  }

  .landing-callout p {
    display: none;
  }

  .landing-scroll-button {
    font-size: clamp(1rem, 5vw, 1.5rem);
    min-height: 4rem;
    padding: 0.85rem 1rem;
  }

  .project-switch {
  align-items: flex-end;
  border: 0;
  box-sizing: border-box;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 2.6rem;
  max-width: 100%;
  font: inherit;
  font-size: clamp(0.72rem, 0.82vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 0.55rem 0.8rem;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  overflow-wrap: anywhere;
  transition:
    background-color 160ms ease,
    background-image 160ms ease,
    color 160ms ease;
}









































/* Project detail pages */
.project-detail-shell .hero-container {
  min-height: 100vh;
}

.project-detail-page {
  min-height: 100vh;
  padding: 6rem clamp(1.5rem, 4vw, 5rem) 0;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(1.5rem, 1fr) minmax(18rem, 8fr);
  gap: 0;
  align-items: start;
  height: calc(100vh - 6rem);
  min-height: 0;
}

.project-detail-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-column: 1 / 4;
  grid-row: 1;
  grid-template-columns: minmax(0, 3fr) minmax(1.5rem, 1fr) minmax(18rem, 8fr);
  gap: 1.1rem 0;
  align-content: start;
  width: 100%;
}

.project-detail-copy h1 {
  grid-column: 1 / 4;
  margin: 0;
  color: var(--ink);
  font-size: clamp(4rem, 13vw, 14rem);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.project-detail-copy > .project-kicker {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-detail-copy > .project-kicker,
.project-detail-copy > p:not(.project-kicker),
.project-source-link {
  grid-column: 1;
}

.project-detail-copy > p:not(.project-kicker) {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
}

.project-source-link {
  width: fit-content;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-detail-hero-image,
.project-detail-hero-placeholder {
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: 100%;
  height: calc(100% * 8 / 9);
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(217, 154, 91, 0.35), rgba(95, 120, 148, 0.22)),
    rgba(255, 255, 255, 0.06);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 2rem;
}

.project-detail-meta {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.project-detail-meta p,
.project-detail-section .project-kicker {
  margin: 0;
  align-self: start;
}

.project-detail-meta > p {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.9cqw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-detail-meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-detail-meta li {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.55rem;
  text-transform: uppercase;
}

.project-detail-sections {
  display: grid;
  gap: 0;
}

.project-detail-section {
  display: grid;
  gap: 0.7rem;
  max-width: 54rem;
}

.project-detail-section p:not(.project-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  font-weight: 500;
  line-height: 1.45;
}
.project-content-slide {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.18fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-content: center;
  max-width: 72rem;
  min-height: 100vh;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: clamp(3rem, 8vh, 7rem) 0;
  scroll-snap-align: start;
}

.project-slide-number {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.85;
}

.project-content-slide > div {
  display: grid;
  gap: 0;
  align-content: start;
}

.project-content-slide ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.project-content-slide li {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.36rem 0.5rem;
  text-transform: uppercase;
}
.project-slide-image {
  margin: 0.4rem 0 0;
  width: min(28rem, 100%);
}

.project-slide-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 900px) {
  .project-detail-page {
    padding: 5rem 1.25rem 0;
  }

  .project-detail-hero,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-hero {
    height: auto;
    min-height: auto;
  }

  .project-detail-copy,
  .project-detail-hero-image,
  .project-detail-hero-placeholder {
    grid-column: 1;
  }

  .project-detail-copy {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .project-detail-copy h1,
  .project-detail-copy > .project-kicker,
  .project-detail-copy > p:not(.project-kicker),
  .project-source-link {
    grid-column: 1;
  }

  .project-detail-copy h1 {
    font-size: clamp(3rem, 18vw, 6rem);
  }

  .project-content-slide {
    grid-template-columns: 1fr;
    min-height: 88vh;
    padding: 3rem 0;
  }

  .project-slide-number {
    font-size: clamp(2rem, 12vw, 3.6rem);
  }
}




































