/* =========================================================
   Percy Cleland Portfolio — Home
   Polish: rhythm, shelf banner, alignment, type, depth,
   double-rule, about surface, entry sequence
   ========================================================= */

:root {
  --bg-solid: rgb(246, 238, 238);
  --text: #5a6570; /* slate — body copy */
  --text-ink: #3d454c; /* darker slate — secondary UI */
  /* Label / display red */
  --label: #ff0000;
  --label-soft: #e60000;
  --line: #1a1a1a;
  --shadow: 0 18px 48px rgba(60, 50, 50, 0.12);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);

  /* Type system */
  --font-display: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  --font-body: "Times New Roman", Times, serif;
  --label-size: clamp(2.25rem, 4.8vw, 3.65rem);
  --label-tracking: 0.04em;
  --label-line-height: 1.15;

  /* Alignment grid (point 4) */
  --pad-x: clamp(1.5rem, 5vw, 4rem);
  --stack-gap-plate-label: clamp(1.1rem, 2.8vh, 1.85rem);
  --stack-gap-label-banner: clamp(1.25rem, 3.2vh, 2.25rem);

  /* Banner shelf */
  --banner-gutter: 3px;
  --banner-height: clamp(6.75rem, 17.5vh, 10.5rem);
  --plate-proud: 7px;
  --nav-gap: clamp(0.85rem, 2.2vw, 1.75rem);
  --rule-gap: 3px; /* space between double hairlines */
  --project-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --project-duration: 0.95s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: var(--bg-solid);
  background-image: url("assets/tiled.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 480px 480px; /* doubled — fewer visible repeats */
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  /* Shell: chrome on top, project panel slides under */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}



/* ---------- Point 7: vignette ---------- */

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 70% at 50% 42%,
    rgba(40, 30, 30, 0) 0%,
    rgba(40, 30, 30, 0) 45%,
    rgba(35, 28, 28, 0.14) 78%,
    rgba(30, 24, 24, 0.28) 100%
  );
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

/* ---------- Page shell + alignment grid ---------- */

.home {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  padding: clamp(1.25rem, 3.5vh, 2.75rem) 0 0;
  transition:
    flex var(--project-duration) var(--project-ease),
    padding var(--project-duration) var(--project-ease),
    justify-content var(--project-duration) var(--project-ease);
}

.home__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
  transition: transform var(--project-duration) var(--project-ease);
}

/* Clip that reveals full plate at home, only ~1/3 when project open */
.home__plate-clip {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  overflow: hidden;
  /* Height tracks plate on home — grows with content */
  height: auto;
  max-height: none;
  margin-bottom: var(--stack-gap-plate-label);
  transition:
    max-height var(--project-duration) var(--project-ease),
    height var(--project-duration) var(--project-ease),
    margin var(--project-duration) var(--project-ease);
}

/* ---------- Hero plate + contact shadow (point 7) ---------- */

.home-plate {
  position: relative;
  display: block;
  width: min(64vh, 72vw, 680px);
  max-width: calc(100% - (var(--pad-x) * 2));
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  will-change: transform;
  transition:
    filter 0.5s var(--ease-out),
    width var(--project-duration) var(--project-ease),
    max-width var(--project-duration) var(--project-ease);
  margin-bottom: 0;
  z-index: 3;
  flex-shrink: 0;
}

/* Soft elliptical contact shadow under plate */
.home-plate__shadow {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 72%;
  height: 10%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(40, 30, 30, 0.28) 0%,
    rgba(40, 30, 30, 0.1) 45%,
    rgba(40, 30, 30, 0) 70%
  );
  filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}

.home-plate img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 18px 36px rgba(40, 35, 45, 0.16));
  transition: filter 0.5s var(--ease-out);
}

.home-plate:hover img,
.home-plate:focus-visible img {
  filter: drop-shadow(0 26px 48px rgba(40, 35, 45, 0.24));
}

.home-plate:focus-visible {
  outline: 2px solid var(--text-ink);
  outline-offset: 12px;
}

/* ---------- Title slot — full width of grid, wraps if needed ---------- */

.home__label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: none;
  min-height: calc(var(--label-size) * var(--label-line-height));
  flex-shrink: 0;
  padding: 0 var(--pad-x);
  margin-bottom: var(--stack-gap-label-banner);
  overflow: visible;
  transition: margin var(--project-duration) var(--project-ease);
}

.label-text {
  margin: 0;
  color: var(--label);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  line-height: var(--label-line-height);
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
}

.label-text.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  margin-left: 0.06em;
  vertical-align: -0.05em;
  background: var(--label);
  animation: caret-blink 0.7s steps(1) infinite;
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* ---------- Banner shelf (points 2, 4, 7, 9) ---------- */

.home__banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  /* Paper matte + grain (point 7) */
  background-color: var(--bg-solid);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  /* Outer hairlines */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: visible;
  z-index: 5;
}

/* Inner hairlines — museum double-rule (point 9) */
.home__banner::before,
.home__banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
  z-index: 6;
}

.home__banner::before {
  top: var(--rule-gap);
}

.home__banner::after {
  bottom: var(--rule-gap);
}

.home__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Even, consistent spacing (point 2) */
  gap: var(--nav-gap);
  width: 100%;
  /* Side pad matches alignment grid (point 4) */
  padding:
    calc(var(--banner-gutter) + var(--rule-gap))
    var(--pad-x);
  height: var(--banner-height);
  /* Allow plates to sit proud of the rules */
  overflow: visible;
}

.nav-plate {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(5.75rem, 12.5vw, 9.25rem);
  /* Proud of banner edges (point 2) */
  height: calc(100% + var(--plate-proud) * 2);
  margin-top: calc(var(--plate-proud) * -1);
  margin-bottom: calc(var(--plate-proud) * -1);
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  will-change: transform;
  transition:
    transform 0.85s var(--ease-spring),
    filter 0.5s ease;
  z-index: 4;
}

.nav-plate img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 8px 14px rgba(40, 35, 45, 0.14));
  transition: filter 0.5s ease;
}

.nav-plate:not(.nav-plate--about):hover,
.nav-plate:not(.nav-plate--about):focus-visible {
  transform: rotate(-48deg) scale(1.1);
  z-index: 7;
}

.nav-plate--about:hover,
.nav-plate--about:focus-visible {
  transform: rotate(14deg) scale(1.08);
  z-index: 7;
}

.nav-plate:hover img,
.nav-plate:focus-visible img {
  filter: drop-shadow(0 14px 24px rgba(40, 35, 45, 0.22));
}

.nav-plate:focus-visible {
  outline: 2px solid var(--text-ink);
  outline-offset: 6px;
}

/* Active project plate in banner */
.nav-plate.is-active {
  z-index: 6;
}

.nav-plate.is-active img {
  filter: drop-shadow(0 12px 20px rgba(40, 35, 45, 0.28));
  outline: 2px solid var(--label);
  outline-offset: 4px;
  border-radius: 50%;
}

/* =========================================================
   PROJECT OPEN STATE
   - Home chrome compresses upward
   - Only ~1/3 of main plate remains (bottom of icon)
   - Content panel rises from bottom on banner off-white
   ========================================================= */

body.is-project-open {
  overflow: hidden;
}

body.is-project-open .home {
  flex: 0 0 auto;
  height: auto;
  justify-content: flex-start;
  padding: 0;
  /* Keep tiled ground behind chrome */
  background: transparent;
}

/* Show only bottom third of the plate — draft crop */
body.is-project-open .home__plate-clip {
  height: clamp(4.5rem, 12vh, 7.5rem);
  max-height: clamp(4.5rem, 12vh, 7.5rem);
  margin-bottom: clamp(0.35rem, 1vh, 0.75rem);
  align-items: flex-end;
}

body.is-project-open .home-plate {
  width: min(52vh, 58vw, 520px);
}

body.is-project-open .home-plate__shadow {
  opacity: 0;
}

body.is-project-open .home__label {
  margin-bottom: clamp(0.45rem, 1.2vh, 0.85rem);
  min-height: calc(var(--label-size) * 1.05);
}

body.is-project-open .label-text {
  font-size: clamp(1.65rem, 3.6vw, 2.85rem);
}

/* Slightly tighter banner when project open */
body.is-project-open .home__nav {
  height: clamp(5.25rem, 13vh, 8rem);
}

body.is-project-open .nav-plate {
  width: clamp(4.5rem, 10vw, 7.25rem);
}

/* ---------- Project panel (rises from bottom) ---------- */

.project-panel {
  position: relative;
  z-index: 3;
  flex: 0 0 0;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  /* Same solid as banner */
  background-color: var(--bg-solid);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  border-top: 1px solid var(--line);
  transform: translateY(12%);
  opacity: 0;
  pointer-events: none;
  transition:
    flex var(--project-duration) var(--project-ease),
    transform var(--project-duration) var(--project-ease),
    opacity 0.55s var(--project-ease);
}

body.is-project-open .project-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.project-panel__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 0 clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- Project blocks ---------- */

/* Default (other projects): image left | copy right */
.project-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 4vh, 2.75rem) var(--pad-x) 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Stacked full-bleed blocks — Bathhouse / layout out */
.project-block--hero-slideshow,
.project-block--slideshow {
  display: block;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.project-block--overview,
.project-block--essay {
  display: block;
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.75rem, 4.5vh, 3rem) var(--pad-x);
}

.project-block--essay {
  max-width: 42rem;
  padding-top: clamp(1.25rem, 3vh, 2rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

.project-block__media {
  border: 2px solid var(--line);
  background: #efe6e6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  min-height: 12rem;
  position: relative;
}

.project-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-block__media .media-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.project-block__media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}

.project-block__media--slideshow {
  border: 2px solid var(--line);
  padding: 0;
}

/* ---------- Slideshow ---------- */

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: #0a0a0a;
  user-select: none;
  overflow: hidden;
}

/* Massive hero — nearly full panel width, cinematic height */
.slideshow--hero {
  width: 100%;
  height: clamp(52vh, 68vh, 78vh);
  min-height: 22rem;
  cursor: zoom-in;
}

/* Secondary full-width strip */
.slideshow--wide {
  width: 100%;
  height: clamp(38vh, 48vh, 56vh);
  min-height: 16rem;
  cursor: zoom-in;
}

/* Preview frame matches the active image’s natural proportions */
.slideshow--fit {
  width: 100%;
  height: auto;
  min-height: 0;
  cursor: zoom-in;
  background: #efe6e6;
}

.slideshow--fit .slideshow__track {
  width: 100%;
  height: auto;
  aspect-ratio: var(--slide-ratio, 3 / 4);
  transition: aspect-ratio 0.35s var(--ease-soft);
}

.slideshow--fit .slideshow__slide img {
  object-fit: contain;
  background: #efe6e6;
}

.project-block--slideshow-fit {
  max-width: min(100%, 1100px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pad-x) clamp(1.5rem, 4vh, 2.5rem);
}

.slideshow--inline {
  height: 100%;
  min-height: inherit;
  cursor: zoom-in;
}

.slideshow__track {
  position: relative;
  width: 100%;
  height: 100%;
  outline: none;
}

.slideshow--inline .slideshow__track {
  aspect-ratio: 4 / 3;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.75s var(--ease-soft);
  pointer-events: none;
}

.slideshow__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Controls only appear on hover (or keyboard focus within) */
.slideshow__controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s var(--ease-soft);
}

.slideshow.is-hover .slideshow__controls,
.slideshow:focus-within .slideshow__controls {
  opacity: 1;
  pointer-events: none; /* container ignores; children re-enable */
}

.slideshow.is-hover .slideshow__btn,
.slideshow.is-hover .slideshow__dot,
.slideshow:focus-within .slideshow__btn,
.slideshow:focus-within .slideshow__dot {
  pointer-events: auto;
}

.slideshow__btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(20, 16, 16, 0.4);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  backdrop-filter: blur(3px);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.28s ease;
}

.slideshow__btn:hover,
.slideshow__btn:focus-visible {
  background: rgba(20, 16, 16, 0.7);
  border-color: #fff;
  outline: none;
}

.slideshow__btn--prev {
  left: 0.85rem;
}

.slideshow__btn--next {
  right: 0.85rem;
}

.slideshow__dots {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.slideshow__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slideshow__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* Always-visible counter — bottom right */
.slideshow__count {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  z-index: 6;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.project-block__copy {
  padding-top: 0.15rem;
}

.project-block__copy--overview .project-block__text {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.75;
  color: #4a4a4a;
}

.project-block__copy--essay .project-block__text {
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.project-block__headline {
  margin: 0 0 0.85rem;
  color: var(--text-ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.project-block--essay .project-block__headline {
  margin-bottom: 1.25rem;
  color: var(--text-ink);
}

.project-block__text {
  margin: 0 0 0.9rem;
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.7;
}

.project-block__text:last-of-type {
  margin-bottom: 0;
}

.project-block__skills {
  margin: 1.15rem 0 0;
  padding-top: 0;
  border-top: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.5;
}

.project-block__skills-label {
  display: inline-block;
  margin-right: 0.45rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  vertical-align: middle;
}

/* ---------- Fullscreen lightbox ---------- */

body.is-lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2.5rem;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 6, 0.92);
  cursor: zoom-out;
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 96vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lightbox__count {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 16, 16, 0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  backdrop-filter: blur(3px);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(20, 16, 16, 0.75);
  border-color: #fff;
  outline: none;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 16, 16, 0.4);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  backdrop-filter: blur(3px);
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: rgba(20, 16, 16, 0.75);
  border-color: #fff;
  outline: none;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__nav[hidden] {
  display: none;
}

/* ---------- About page + message board ---------- */

.about-page {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4.5vh, 3rem) var(--pad-x) clamp(2.5rem, 6vh, 4rem);
}

.about-page__header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.about-page__motif {
  width: clamp(4.5rem, 12vw, 6rem);
  height: clamp(4.5rem, 12vw, 6rem);
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(40, 35, 45, 0.16));
}

.about-page__title {
  margin: 0 0 0.35rem;
  color: var(--label);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.about-page__role {
  margin: 0;
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

.about-page__rule {
  height: 0;
  margin: 0 0 1.35rem;
  border: none;
  border-top: 1px solid var(--line);
  box-shadow: 0 3px 0 0 var(--bg-solid), 0 4px 0 0 var(--line);
  opacity: 0.9;
}

.about-page__bio p {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.75;
  color: var(--text-ink);
}

.about-page__bio p:last-child {
  margin-bottom: 0;
}

/* Message board — private notes emailed to inbox */
.message-board {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.message-board__title {
  margin: 0 0 0.45rem;
  color: var(--label);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.message-board__lead {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.message-board__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 1.1rem;
}

.message-board__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.message-board__field--full {
  grid-column: 1 / -1;
}

.message-board__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-ink);
}

.message-board__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(26, 26, 26, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.message-board__input:focus {
  border-color: var(--line);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.08);
}

.message-board__textarea {
  min-height: 9rem;
  resize: vertical;
}

.message-board__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.message-board__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.25rem;
}

.message-board__submit {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--line);
  color: #f6eeee;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.message-board__submit:hover,
.message-board__submit:focus-visible {
  background: #000;
  outline: none;
}

.message-board__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.message-board__status {
  margin: 0;
  flex: 1 1 12rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.message-board__status.is-success {
  color: #2f6b3a;
}

.message-board__status.is-error {
  color: #a12626;
}

@media (max-width: 640px) {
  .message-board__form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Point C: entry sequence ----------
   body.is-entering holds pieces until JS orchestrates reveal.
   session-only: skipped if already played this session. */

body.is-entering .vignette {
  opacity: 0;
}

body.is-entering {
  /* Hold tiles back slightly */
  background-color: #e8e0e0;
}

body.is-entering .home-plate,
body.is-entering .home__label,
body.is-entering .home__banner {
  opacity: 0;
  pointer-events: none;
}

body.is-entering .home-plate {
  transform: scale(0.9);
}

body.is-entering .home__banner {
  transform: translateY(28px);
}

/* Active intro phases (toggled by JS) */
body.intro-tiles .vignette {
  transition: opacity 0.9s var(--ease-out);
  opacity: 1;
}

body.intro-tiles {
  transition: background-color 0.9s var(--ease-out);
  background-color: var(--bg-solid);
}

body.intro-hero .home-plate {
  transition:
    opacity 1s var(--ease-out),
    transform 1.05s var(--ease-out);
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

body.intro-label .home__label {
  transition: opacity 0.45s var(--ease-out);
  opacity: 1;
  pointer-events: auto;
}

body.intro-banner .home__banner {
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.9s var(--ease-out);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* When intro complete (or skipped) */
body:not(.is-entering) .home-plate,
body:not(.is-entering) .home__label,
body:not(.is-entering) .home__banner,
body:not(.is-entering) .vignette {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Animations ---------- */

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .project-block:not(.project-block--hero-slideshow):not(.project-block--slideshow):not(.project-block--overview):not(.project-block--essay) {
    grid-template-columns: 1fr;
  }

  .project-block__media {
    aspect-ratio: 16 / 10;
  }

  .slideshow--hero {
    height: clamp(36vh, 48vh, 56vh);
    min-height: 14rem;
  }

  .slideshow--wide {
    height: clamp(28vh, 36vh, 44vh);
    min-height: 12rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox__nav--prev {
    left: 0.4rem;
  }

  .lightbox__nav--next {
    right: 0.4rem;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  body:not(.is-project-open) .home {
    justify-content: flex-start;
    padding: 1.5rem 0 2.5rem;
  }

  .home-plate {
    width: min(80vw, 400px);
  }

  :root {
    --label-size: clamp(1.5rem, 7vw, 2.25rem);
    --banner-height: auto;
    --plate-proud: 4px;
    --stack-gap-plate-label: 1rem;
    --stack-gap-label-banner: 1.15rem;
  }

  .home__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 0.85rem;
    height: auto;
    padding: calc(var(--banner-gutter) + var(--rule-gap) + 0.35rem) 1rem;
  }

  .nav-plate {
    width: clamp(4.25rem, 17vw, 5.75rem);
    height: clamp(4.25rem, 17vw, 5.75rem);
    margin: 0;
  }

  .nav-plate img {
    width: 100%;
    height: 100%;
  }

  body.is-project-open .home__nav {
    height: auto;
  }

  body.is-project-open .nav-plate {
    width: clamp(3.5rem, 14vw, 5rem);
    height: clamp(3.5rem, 14vw, 5rem);
    margin: 0;
  }

  .about-page__header {
    flex-direction: column;
    text-align: center;
  }
}

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

  .home-plate,
  .nav-plate {
    transition: none !important;
  }

  body.is-entering .home-plate,
  body.is-entering .home__label,
  body.is-entering .home__banner,
  body.is-entering .vignette {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
