:root {
  --paper: #f1f1ee;
  --paper-deep: #deded8;
  --ink: #161616;
  --soft-ink: #676761;
  --hairline: rgba(20, 20, 18, 0.12);
  --ua-red: #ab0520;
  --ua-blue: #0c234b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 66% 20%, rgba(255, 255, 255, 0.8), transparent 30rem),
    linear-gradient(145deg, #f7f7f4 0%, var(--paper) 46%, var(--paper-deep) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  background: rgba(241, 241, 238, 0.78);
  border-bottom: 1px solid rgba(20, 20, 18, 0.08);
  backdrop-filter: blur(18px);
}

.site-mark,
.site-nav a {
  color: rgba(22, 22, 22, 0.78);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
}

.site-nav a {
  color: rgba(22, 22, 22, 0.46);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.music-toggle {
  position: relative;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(22, 22, 22, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(22, 22, 22, 0.56);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.music-toggle::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.68rem;
  width: 0.32rem;
  height: 0.62rem;
  border-radius: 0.08rem;
  background: currentColor;
  box-shadow:
    0.38rem 0.13rem 0 -0.04rem currentColor,
    0.76rem -0.12rem 0 0.02rem currentColor;
}

.music-toggle::after {
  content: "";
  position: absolute;
  inset: 0.38rem;
  border: 1px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: 0;
  transform: rotate(38deg) scale(0.72);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.music-toggle:hover,
.music-toggle.is-playing {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(22, 22, 22, 0.28);
  color: var(--ink);
  transform: translateY(-1px);
}

.music-toggle.is-playing::after {
  opacity: 0.72;
  transform: rotate(38deg) scale(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(34rem, 0.82fr) minmax(31rem, 0.78fr);
  column-gap: clamp(4rem, 8vw, 9rem);
  width: 100%;
  max-width: 1440px;
  min-height: min(72vh, 860px);
  margin: 0 auto;
  padding: clamp(5.5rem, 8vw, 8rem) clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem);
  padding-left: clamp(3rem, 6vw, 7rem);
  padding-right: clamp(3rem, 6vw, 7rem);
  align-items: end;
  isolation: isolate;
}

.portrait-wash {
  position: absolute;
  inset: 0 clamp(3rem, 6vw, 7rem) 0 auto;
  width: min(42vw, 620px);
  z-index: -2;
  background-image: url("Web_image/About%20me/portrait_good.png?v=20260814-watermark-originalscale");
  background-size: min(40vw, 590px) auto;
  background-repeat: no-repeat;
  background-position: right center;
  filter: saturate(0.2) contrast(1.03);
  opacity: 0.94;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 12%, black 31%, black 73%, rgba(0, 0, 0, 0.55) 88%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.22) 6%, rgba(0, 0, 0, 0.72) 16%, black 31%, black 88%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 12%, black 31%, black 73%, rgba(0, 0, 0, 0.55) 88%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.22) 6%, rgba(0, 0, 0, 0.72) 16%, black 31%, black 88%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.portrait-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(241, 241, 238, 0) 18%),
    linear-gradient(90deg, var(--paper) 0%, rgba(241, 241, 238, 0) 18%, rgba(241, 241, 238, 0) 82%, var(--paper) 100%),
    linear-gradient(0deg, var(--paper) 0%, rgba(241, 241, 238, 0.82) 7%, rgba(241, 241, 238, 0.34) 18%, rgba(241, 241, 238, 0) 34%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18rem;
  z-index: -1;
  background: linear-gradient(0deg, var(--paper) 0%, rgba(241, 241, 238, 0) 100%);
}

.intro {
  grid-column: 1;
  width: min(640px, 100%);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  transform: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--soft-ink);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0;
}

.intro-copy {
  font-family: "Times New Roman", Times, Georgia, serif;
  letter-spacing: 0;
}

h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(4.4rem, 8.4vw, 8.3rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0;
}

h1::after {
  content: "";
  display: block;
  width: min(48vw, 620px);
  height: 3px;
  margin-top: clamp(0.75rem, 1.5vw, 1.3rem);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.7) 38%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 1px 10px rgba(255, 255, 255, 0.72);
}

.intro-copy {
  max-width: 590px;
  margin: clamp(2rem, 3.6vw, 3.3rem) 0 0;
  color: #2f2f2c;
  font-size: clamp(1.22rem, 1.9vw, 1.78rem);
  line-height: 1.28;
  text-align: justify;
  text-align-last: left;
}

[contenteditable="true"] {
  border-radius: 6px;
  outline: 0 solid transparent;
  transition: background 160ms ease, outline-color 160ms ease;
}

[contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.28);
  outline: 1px solid rgba(22, 22, 22, 0.14);
}

.details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.details span {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.58rem 0.82rem;
  color: #373733;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
  font-size: 0.86rem;
}

.map-section {
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 5vw, 5rem) clamp(2.5rem, 5vw, 5rem);
  background: linear-gradient(180deg, var(--paper) 0%, #e9e9e4 100%);
}

.map-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 1.4rem;
}

.current-location {
  text-align: right;
}

.current-location p {
  margin: 0 0 0.4rem;
  color: var(--soft-ink);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 0.95;
  text-align: right;
}

.map-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  user-select: none;
}

.map-canvas {
  position: relative;
  width: 100%;
}

.world-map {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.82;
  filter: grayscale(1) contrast(0.95) brightness(1.08);
  pointer-events: none;
}

.map-spots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-spot {
  position: absolute;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.marker-dot {
  position: absolute;
  inset: 0.52rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 0.45rem rgba(22, 22, 22, 0.07);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.map-spot:hover .marker-dot,
.map-spot:focus .marker-dot {
  background: #050505;
  box-shadow: 0 0 0 0.65rem rgba(255, 255, 255, 0.9), 0 0 0 0.86rem rgba(22, 22, 22, 0.16);
  transform: scale(1.08);
}

.ua-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.85rem);
  display: grid;
  width: 11.4rem;
  min-height: 8.2rem;
  place-items: center;
  gap: 0.42rem;
  padding: 0.82rem 0.86rem 0.78rem;
  border: 1px solid rgba(22, 22, 22, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.place-logos {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.place-logo {
  display: block;
  max-width: 4.6rem;
  max-height: 3.2rem;
  object-fit: contain;
  filter: saturate(0.8) contrast(0.95);
}

.place-logo-secondary {
  max-width: 2.4rem;
  max-height: 2.4rem;
}

.ua-label {
  color: var(--soft-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.spot-time {
  color: rgba(22, 22, 22, 0.58);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.18;
  text-align: center;
}

.map-spot:hover .ua-card,
.map-spot:focus .ua-card {
  opacity: 1;
  transform: translate(-50%, 0);
}

.blank-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem 1.25rem 3rem;
}

.blank-page h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  text-align: center;
}

.gallery-page {
  min-height: 100vh;
  padding: clamp(7rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
}

.gallery-hero {
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto clamp(2.5rem, 6vw, 5rem);
}

.gallery-hero h1 {
  margin: 0;
  font-size: clamp(5rem, 13vw, 12rem);
}

.gallery-hero p:last-child {
  max-width: 560px;
  margin: 1rem 0 0;
  color: #373733;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.3;
}

.gallery-wall {
  position: relative;
  min-height: clamp(28rem, 62vh, 43rem);
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.gallery-track {
  position: relative;
  display: block;
  height: clamp(28rem, 62vh, 43rem);
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.8rem) 0;
  scrollbar-width: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.gallery-track.is-ready {
  opacity: 1;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-tile {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 2.8vw, 2.4rem);
  height: min(72%, 31rem);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 56px rgba(22, 22, 22, 0.12);
  opacity: var(--gallery-opacity, 0.5);
  transform: translateX(calc(-50% + var(--gallery-x, 0vw))) translateY(var(--gallery-lift, 3rem)) rotate(var(--gallery-tilt, 0deg)) scale(var(--gallery-scale, 0.86));
  transform-origin: center bottom;
  transition:
    opacity 280ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease;
  will-change: transform, opacity;
}

.gallery-tile.is-centered {
  box-shadow: 0 34px 76px rgba(22, 22, 22, 0.2);
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(241, 241, 238, 0.3), transparent 12%, transparent 88%, rgba(241, 241, 238, 0.3)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.16));
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 280ms ease;
}

.gallery-tile.is-centered::after {
  opacity: 0.28;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  transition: transform 320ms ease, filter 320ms ease;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-tile:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.03);
}

.gallery-tile.tall {
  width: min(31vw, 20rem);
}

.gallery-tile.wide {
  width: min(52vw, 36rem);
}

.gallery-tile.square {
  width: min(38vw, 26rem);
}

.gallery-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(12vw, 10rem);
  pointer-events: none;
}

.gallery-edge.left {
  left: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(241, 241, 238, 0) 100%);
}

.gallery-edge.right {
  right: 0;
  background: linear-gradient(270deg, var(--paper) 0%, rgba(241, 241, 238, 0) 100%);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 300;
  display: grid;
  place-items: center;
  width: clamp(2.7rem, 4vw, 3.4rem);
  height: clamp(2.7rem, 4vw, 3.4rem);
  padding: 0;
  border: 1px solid rgba(22, 22, 22, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  pointer-events: auto;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(16px);
}

.gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(22, 22, 22, 0.28);
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow:focus-visible {
  outline: 2px solid rgba(22, 22, 22, 0.45);
  outline-offset: 4px;
}

.gallery-arrow-left {
  left: clamp(0.75rem, 2vw, 2rem);
}

.gallery-arrow-right {
  right: clamp(0.75rem, 2vw, 2rem);
}

.project-page {
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(7rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.project-hero {
  max-width: 820px;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 8rem);
}

.project-hero p:last-child {
  max-width: 620px;
  margin: 1.2rem 0 0;
  color: #373733;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(1.22rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.project-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--hairline);
}

.skills-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--hairline);
}

.section-kicker {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.section-kicker h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  font-weight: 400;
  line-height: 0.96;
  text-align: right;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.skill-block {
  padding: clamp(1rem, 2vw, 1.45rem);
  border: 1px solid rgba(20, 20, 18, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 45px rgba(22, 22, 22, 0.04);
}

.skill-block h3 {
  margin: 0 0 0.65rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.skill-block p {
  margin: 0;
  color: rgba(22, 22, 22, 0.62);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.42;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 18, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 45px rgba(22, 22, 22, 0.045);
  min-width: 0;
}

.project-media {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  place-items: center;
  overflow: hidden;
  padding: clamp(0.9rem, 2vw, 1.35rem);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(20, 20, 18, 0.08);
}

.project-media img,
.project-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-media.cover img,
.project-media.cover video {
  object-fit: contain;
}

.project-media.contain img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-media.fit {
  aspect-ratio: 1 / 1;
  padding: 0.55rem;
}

.project-media.fit img {
  object-fit: contain;
}

.project-copy {
  padding: 1rem 1.05rem 1.15rem;
}

.project-time {
  margin: 0 0 0.55rem;
  color: var(--soft-ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.12rem, 1.4vw, 1.38rem);
  line-height: 1.08;
}

.project-copy p:last-child {
  margin: 0;
  color: #373733;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 1rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.honors-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.honor-item {
  display: grid;
  grid-template-columns: minmax(5rem, 0.18fr) minmax(16rem, 0.45fr) minmax(18rem, 0.7fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.1rem, 2vw, 1.55rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.honor-item .project-time {
  margin: 0;
}

.honor-item h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.12rem, 1.6vw, 1.5rem);
  line-height: 1.08;
}

.honor-item p:last-child {
  margin: 0;
  color: rgba(22, 22, 22, 0.52);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.38;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    gap: 0.45rem;
    padding: 0.75rem 0.75rem;
  }

  .site-mark {
    display: none;
  }

  .site-mark,
  .site-nav a {
    font-size: 0.54rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.42rem;
    justify-content: space-between;
  }

  .music-toggle {
    width: 1.46rem;
    height: 1.46rem;
  }

  .music-toggle::before {
    left: 0.38rem;
    top: 0.46rem;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 5.25rem 1rem 2rem;
    overflow: visible;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(241, 241, 238, 0.98) 0%, rgba(241, 241, 238, 0.96) 58%, rgba(241, 241, 238, 0.34) 78%, transparent 100%);
  }

  .portrait-wash {
    inset: 0 0 0 auto;
    width: 100%;
    background-size: min(112vw, 520px) auto;
    background-position: right -15rem top 1.2rem;
    opacity: 0.38;
    mask-image:
      linear-gradient(90deg, transparent 0%, black 16%, black 84%, transparent 100%),
      linear-gradient(0deg, transparent 0%, black 18%, black 88%, transparent 100%);
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, black 16%, black 84%, transparent 100%),
      linear-gradient(0deg, transparent 0%, black 18%, black 88%, transparent 100%);
  }

  .intro {
    width: 100%;
    max-width: 100%;
    padding-bottom: 1rem;
    transform: none;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 3.95rem);
    line-height: 0.88;
  }

  h1::after {
    width: min(78vw, 19rem);
    height: 2px;
    margin-top: 0.7rem;
  }

  .intro-copy {
    width: min(100%, 20.5rem);
    max-width: min(100%, 20.5rem);
    margin-top: 1.45rem;
    font-size: clamp(0.96rem, 4vw, 1.05rem);
    line-height: 1.38;
    text-align: left;
    overflow-wrap: break-word;
  }

  .details span {
    max-width: 100%;
    font-size: 0.78rem;
    overflow-wrap: break-word;
  }

  .details {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }

  .map-heading {
    display: block;
  }

  .current-location {
    text-align: left;
  }

  .map-heading h2 {
    margin-top: 0.75rem;
    text-align: left;
  }

  .map-canvas {
    width: 190%;
    transform: translateX(-20%);
  }

  .project-page {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 6rem;
    overflow: hidden;
  }

  .project-hero h1 {
    max-width: 100%;
    font-size: clamp(3.05rem, 13.4vw, 3.75rem);
    line-height: 0.9;
  }

  .project-hero p:last-child {
    max-width: 100%;
    font-size: clamp(1.05rem, 5vw, 1.24rem);
  }

  .section-kicker {
    display: block;
  }

  .section-kicker h2 {
    margin-top: 0.7rem;
    text-align: left;
  }

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

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    width: 100%;
  }

  .project-copy h3 {
    overflow-wrap: anywhere;
  }

  .honor-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .gallery-page {
    padding-top: 6rem;
    overflow: hidden;
  }

  .gallery-hero {
    width: calc(100% - 2rem);
  }

  .gallery-hero h1 {
    font-size: clamp(4rem, 18vw, 5.2rem);
    line-height: 0.9;
  }

  .gallery-hero p:last-child {
    max-width: 100%;
    font-size: clamp(1rem, 5vw, 1.18rem);
  }

  .gallery-wall,
  .gallery-track {
    height: 70vh;
    min-height: 34rem;
  }

  .gallery-track {
    padding-inline: 0;
  }

  .gallery-tile.tall {
    width: 68vw;
  }

  .gallery-tile.wide {
    width: 86vw;
  }

  .gallery-tile.square {
    width: 76vw;
  }
}

@media (max-height: 520px) and (orientation: landscape) and (max-width: 960px) {
  body {
    overflow-x: hidden;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 4.6rem 1.25rem 1.5rem;
    overflow: visible;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(241, 241, 238, 0.98) 0%, rgba(241, 241, 238, 0.95) 68%, rgba(241, 241, 238, 0.52) 100%);
  }

  .portrait-wash {
    inset: 0 0 0 auto;
    width: 48%;
    background-size: auto 118%;
    background-position: right -1.5rem center;
    opacity: 0.3;
  }

  .intro {
    width: min(62vw, 34rem);
    max-width: 34rem;
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(3rem, 10vw, 4.4rem);
  }

  .intro-copy {
    max-width: 100%;
    margin-top: 1rem;
    font-size: clamp(0.94rem, 2.6vw, 1.06rem);
    line-height: 1.3;
    text-align: left;
  }

  .details {
    max-width: 100%;
    margin-top: 0.9rem;
  }

  .details span {
    padding: 0.45rem 0.68rem;
    font-size: 0.72rem;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
