/* ------------------------------------------------------------------
   Naksh — Part A: the threshold
   ------------------------------------------------------------------ */

:root {
  /* Palette — The School of Athens */
  --ivory: #f2efe7;
  --parchment: #efe8d9;
  --sand: #d9c896;
  --sage-ivory: #dfddbf;
  --taupe: #a69177;
  --rose-taupe: #b39789;
  --olive-gold: #ae9359;
  --dusty-blue: #93abb7;
  --oxblood: #732002;
  --ink: #0d0b08;
  --mist: #f4efe4;
  /* The atrium — after main_page.png */
  --paper: #eee8dc;
  --paper-light: #f4f0e7;
  --paper-deep: #e2dacb;
  --line: #958d7f;
  --line-soft: rgba(149, 141, 127, 0.55);
  --gold-line: #b39a6e;
  --slate: #5b6b82;
  --slate-deep: #42546c;
  --on-slate: #ebe6da;
  --sky-high: #8ea5bc;
  --sky-low: #dfe2dc;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --greek: "GFS Didot", "Cormorant Garamond", Didot, "Times New Roman", serif;
  --travel: 150vh;            /* scroll distance spent travelling into the light */
  --vh: 100vh;
  color-scheme: light;
}

@supports (height: 100lvh) {
  :root { --vh: 100lvh; }
}

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

[hidden] { display: none !important; }

html {
  background: var(--paper);
  scroll-behavior: auto;       /* JS owns every glide */
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--mist);
  overflow-x: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- The threshold ---------- */

.threshold {
  position: relative;
  z-index: 1;
  pointer-events: none;
  height: calc(var(--vh) + var(--travel));
}

.stage {
  position: fixed;             /* pinned; scroll progress through .threshold drives it */
  pointer-events: auto;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--vh);
  overflow: hidden;
  background: var(--ink);
  contain: layout paint;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.world {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}

.frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.intro,
.crossfade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: transparent;
}

.crossfade { opacity: 0; pointer-events: none; }

/* The light at the centre of the painting — the camera travels into it */
.bloom {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%,
    rgba(246, 242, 233, 1) 0%,
    rgba(244, 239, 228, 0.96) 22%,
    rgba(239, 232, 217, 0.72) 42%,
    rgba(232, 222, 200, 0.32) 60%,
    rgba(223, 221, 191, 0) 72%);
  will-change: transform, width, height, opacity;
}

/* ---------- Whisper (the only words on screen) ---------- */

.whisper {
  position: absolute;
  left: 50%;
  bottom: max(34px, calc(env(safe-area-inset-bottom) + 22px));
  transform: translateX(-50%);
  height: 1.2em;
  width: 16em;
  text-align: center;
  pointer-events: none;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
}

.whisper__line {
  position: absolute;
  inset: 0;
  padding-left: 0.42em;        /* optically re-centre the tracked text */
  opacity: 0;
  filter: blur(4px);
  transition: opacity 1.1s ease, filter 1.1s ease;
}

.whisper.show-linger .whisper__line--linger,
.whisper.show-enter .whisper__line--enter,
.whisper.show-begin .whisper__line--begin {
  opacity: 1;
  filter: blur(0);
}

.whisper.show-enter .whisper__line--enter {
  animation: breathe 4.2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.38; }
  50%      { opacity: 0.85; }
}

.countdown {
  position: absolute;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  width: 72px;
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.countdown.is-on { opacity: 1; }

.countdown span {
  display: block;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  transform-origin: 0 50%;
  transform: scaleX(0);
}


/* ---------- The atrium — after main_page.png ----------
   Pinned behind the opening while the camera travels (sticky to the bottom of the viewport, so it
   sits at the top), revealed out of the light, then scrolled away with the page like any section. */

.atrium {
  position: sticky;
  bottom: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  height: var(--vh);
  margin-top: calc(-1 * var(--vh));   /* overlaps the last viewport of the track: arrival = end of travel */
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  color: var(--line);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(248, 245, 238, 0.7), rgba(248, 245, 238, 0) 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0 0.33  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}

.atrium__scene {
  position: relative;
  width: min(74vw, 1160px, calc((var(--vh) - 48px) * 1.6));
  aspect-ratio: 1.6;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  grid-template-rows: repeat(24, minmax(0, 1fr));
  transform-origin: 50% 46%;
  filter: brightness(.82) saturate(.84);
}
.atrium__scene { z-index: 1; }

.folder {
  position: absolute;
  z-index: 10;
  display: block;
  width: clamp(135px, 13vw, 190px);
  height: clamp(112px, 14vh, 160px);
  color: #373b3d;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  outline-offset: 6px;
}
.folder--about { left: max(18px, calc((100vw - 1160px) / 2 - 210px)); top: 14%; }
.folder--voice { right: max(18px, calc((100vw - 1160px) / 2 - 210px)); top: 34%; }
.folder--ai { left: max(18px, calc((100vw - 1160px) / 2 - 210px)); top: 54%; }
.folder--fullstack { right: max(18px, calc((100vw - 1160px) / 2 - 210px)); top: 74%; }
.atrium > .folder { z-index: 10; }
.folder__visual {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 90%;
  animation: folder-wiggle 4.8s ease-in-out infinite;
}
.folder__papers {
  position: absolute;
  top: 0;
  left: 18%;
  width: 62%;
  height: 42%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 82, 72, 0.18);
  border-radius: 3px 3px 0 0;
  background: #f7f3e9;
  color: #75899a;
  font: 500 clamp(22px, 3vw, 42px) / 1 var(--serif);
  transform: rotate(-7deg);
  box-shadow: 3px 2px 0 rgba(61, 67, 72, 0.1);
}
.folder__body {
  position: absolute;
  inset: 22% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5em;
  padding: 10% 9%;
  border-radius: 5px 12px 12px 12px;
  background: #f0d77c;
  box-shadow: 0 12px 24px rgba(48, 47, 40, .22), inset 0 1px 0 rgba(255,255,255,.78);
  transition: transform .25s ease, box-shadow .25s ease;
}
.folder__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: -11%;
  width: 44%;
  height: 18%;
  border-radius: 7px 8px 0 0;
  background: inherit;
  clip-path: polygon(0 0, 76% 0, 100% 100%, 0 100%);
}
.folder__title, .folder__hint { position: relative; z-index: 1; }
.folder__title { font: 500 clamp(17px, 1.55vw, 23px) / 1.05 var(--serif); }
.folder__hint { font: italic 400 clamp(12px, .95vw, 15px) / 1.2 var(--serif); opacity: .78; }
.folder:hover .folder__body, .folder:focus-visible .folder__body { transform: translateY(-5px) rotate(-1deg); }
.folder--voice .folder__body { background: #9ed9c7; }
.folder--ai .folder__body { background: #d6b8f2; }
.folder--fullstack .folder__body { background: #f1bd91; }
@keyframes folder-wiggle { 0%, 100% { rotate: -1deg; } 50% { rotate: 1deg; } }

.piece {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.piece.folder { position: absolute; }

.piece img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.piece img.is-loaded { opacity: 1; }

.drawing {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--line);
  overflow: visible;
}

.drawing__note { font: italic 400 30px var(--serif); fill: var(--line); }
.drawing__caps text { font: 500 15px var(--serif); letter-spacing: 0.34em; fill: var(--line); }

/* Orders & meander */
.piece--orders { grid-column: 1 / 13; grid-row: 1 / 4; z-index: 2; padding: 1.2% 0 0 2.4%; }

/* Sky — the large arch behind the head */
.piece--sky {
  grid-column: 13 / 20;
  grid-row: 1 / 11;
  z-index: 1;
  margin-top: -12%;
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  background:
    radial-gradient(ellipse 40% 18% at 34% 46%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 50% 14% at 70% 62%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 36% 12% at 58% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--sky-high) 0%, #a9bccb 45%, var(--sky-low) 100%);
}

/* Athena's head */
.piece--head { grid-column: 12 / 17; grid-row: 1 / 6; z-index: 4; }
.piece--head img { object-fit: contain; object-position: 50% 100%; }

/* The Acropolis in an arch */
.piece--acropolis {
  grid-column: 10 / 20;
  grid-row: 4 / 18;
  z-index: 2;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: linear-gradient(180deg, var(--sky-high), var(--sky-low));
}
.piece--acropolis img { object-position: 52% 60%; }

/* Painting with a torn, wavy top edge */
.piece--painting {
  grid-column: 1 / 11;
  grid-row: 3 / 15;
  z-index: 2;
  background: #b9c6cf;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 6 C10 2 18 1 26 4 S40 10 48 6 S62 0 70 2 S84 6 92 3 L100 2 V100 H0 Z'/></svg>") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 6 C10 2 18 1 26 4 S40 10 48 6 S62 0 70 2 S84 6 92 3 L100 2 V100 H0 Z'/></svg>") 0 0 / 100% 100% no-repeat;
}
.piece--painting img { object-position: 50% 22%; }

/* Slate plates */
.plate {
  color: var(--on-slate);
  background: var(--slate);
}

.plate__text { position: relative; z-index: 1; }

.plate__title {
  font: 500 clamp(13px, 1.25vw, 26px) / 1 var(--serif);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.plate__words {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  margin-top: 1.1em;
  font: italic 500 clamp(13px, 1.2vw, 24px) / 1.15 var(--serif);
  letter-spacing: 0.04em;
}

.plate__words em { font-style: italic; }

.plate__greek {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  font: 400 clamp(12px, 1.08vw, 22px) / 1 var(--greek);
  letter-spacing: 0.22em;
}

.plate__rule {
  display: block;
  width: 2.2em;
  height: 1px;
  margin-top: 1.4em;
  background: currentColor;
  opacity: 0.8;
  font-size: clamp(13px, 1.2vw, 24px);
}

.piece--sea {
  grid-column: 1 / 7;
  grid-row: 13 / 25;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, #4d6079 0%, var(--slate-deep) 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 4 C14 0 26 6 40 5 S66 0 80 6 L100 12 V100 H0 Z'/></svg>") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 4 C14 0 26 6 40 5 S66 0 80 6 L100 12 V100 H0 Z'/></svg>") 0 0 / 100% 100% no-repeat;
}

.plate__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(225, 232, 236, 0.16);
}

.plate__text--athena { padding: 0 0 clamp(28px, 7vh, 80px) clamp(18px, 2.4vw, 46px); }

.piece--ideals {
  grid-column: 22 / 25;
  grid-row: 8 / 20;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 0 0 0 clamp(14px, 1.6vw, 34px);
}

/* Corinthian capital */
.piece--capital { grid-column: 5 / 13; grid-row: 15 / 25; z-index: 4; }
.piece--capital img { object-fit: contain; object-position: 50% 100%; }

/* Doryphoros on a drawing sheet */
.piece--statue { grid-column: 20 / 25; grid-row: 1 / 8; z-index: 2; }
.piece--statue img {
  position: absolute;
  left: 5%;
  bottom: 9%;
  width: 46%;
  height: 88%;
  object-fit: contain;
  object-position: 50% 100%;
}
.sheet-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line-soft); }

.label {
  position: absolute;
  right: 5%;
  top: 30%;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  color: var(--line);
}
.label__caps { font: 500 clamp(10px, 0.95vw, 19px) / 1 var(--serif); letter-spacing: 0.26em; text-transform: uppercase; }
.label em { font: italic 400 clamp(11px, 1vw, 20px) / 1 var(--serif); }

/* Olive */
.piece--olive { grid-column: 19 / 23; grid-row: 9 / 18; z-index: 3; }
.olive { display: block; width: 100%; height: 100%; }
.olive__leaves ellipse { fill: #8f9a7c; fill-opacity: 0.82; }
.olive__leaves ellipse:nth-child(3n) { fill: #a5ae90; }
.olive__leaves ellipse:nth-child(4n + 1) { fill: #7e8a6e; }

/* Temple front card */
.card {
  background: var(--paper-light);
  box-shadow: 0 0 0 1px rgba(149, 141, 127, 0.18);
}
.piece--temple { grid-column: 11 / 18; grid-row: 19 / 25; z-index: 3; margin-bottom: -3%; padding: 3% 4% 2%; }

/* Floor plan */
.piece--plan { grid-column: 17 / 25; grid-row: 18 / 25; z-index: 2; padding: 2% 3% 2% 4%; }

/* A light wash over everything, as on the reference print */
.atrium__wash {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%, rgba(246, 243, 236, 0) 40%, rgba(246, 243, 236, 0.28) 100%),
    rgba(246, 243, 236, 0.1);
}

/* Portrait screens: the same pieces, stacked for a tall frame */
@media (max-aspect-ratio: 4/5) {
  .atrium__scene {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(24, minmax(0, 1fr));
  }
  .piece--orders { display: none; }
  .piece--statue { grid-column: 9 / 13; grid-row: 1 / 7; }
  .piece--statue img { left: 4%; width: 80%; height: 70%; bottom: 6%; }
  .piece--statue .label { left: 6%; right: auto; top: 6%; }
  .piece--sky { grid-column: 2 / 10; grid-row: 1 / 8; margin-top: -20%; }
  .piece--head { grid-column: 3 / 8; grid-row: 1 / 5; }
  .piece--acropolis { grid-column: 2 / 12; grid-row: 3 / 13; }
  .piece--painting { grid-column: 1 / 9; grid-row: 11 / 18; }
  .piece--ideals { grid-column: 9 / 13; grid-row: 11 / 18; padding-left: 4.5vw; }
  .piece--olive { grid-column: 10 / 13; grid-row: 19 / 25; }
  .piece--capital { grid-column: 4 / 11; grid-row: 18 / 24; }
  .piece--sea { grid-column: 1 / 6; grid-row: 17 / 25; }
  .piece--plan { grid-column: 6 / 13; grid-row: 22 / 25; }
  .piece--temple { display: none; }
  .plate__title, .plate__words, .plate__rule { font-size: clamp(12px, 3.6vw, 20px); }
  .plate__greek { font-size: clamp(9px, 2.6vw, 16px); letter-spacing: 0.14em; }
  .piece--ideals .plate__words, .piece--ideals .plate__rule { font-size: clamp(11px, 3.2vw, 18px); }
  .label__caps { font-size: clamp(8px, 2.3vw, 14px); }
  .label em { font-size: clamp(9px, 2.6vw, 15px); }
  .folder { width: min(42vw, 170px); height: 112px; }
  .folder--about { left: 8px; top: 10%; }
  .folder--voice { right: 8px; top: 33%; }
  .folder--ai { left: 8px; top: 56%; }
  .folder--fullstack { right: 8px; top: 79%; }
}

/* Winding desktop composition: artwork follows a tall, central curve. */
@media (min-aspect-ratio: 4/5) {
  .atrium {
    position: relative;
    display: block;
    height: 220vh;
    margin-top: calc(-1 * var(--vh));
    overflow: hidden;
  }
  .atrium__scene {
    width: min(90vw, 1040px);
    height: 220vh;
    margin-inline: auto;
    aspect-ratio: auto;
    grid-template-rows: repeat(60, minmax(0, 1fr));
  }
  .atrium__scene::before {
    content: "";
    position: absolute;
    inset: 0 4%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #9aafbd, #71859a 48%, #a5b2a3);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 600' preserveAspectRatio='none'><path d='M62 -10 C62 28 35 38 35 78 C35 118 68 125 68 165 C68 205 37 218 37 258 C37 298 68 310 68 350 C68 390 36 402 36 442 C36 482 64 496 64 536 C64 566 48 584 48 610' fill='none' stroke='white' stroke-width='30' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 600' preserveAspectRatio='none'><path d='M62 -10 C62 28 35 38 35 78 C35 118 68 125 68 165 C68 205 37 218 37 258 C37 298 68 310 68 350 C68 390 36 402 36 442 C36 482 64 496 64 536 C64 566 48 584 48 610' fill='none' stroke='white' stroke-width='30' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  }
  .piece--orders { grid-column: 2 / 13; grid-row: 1 / 6; }
  .piece--painting { grid-column: 12 / 24; grid-row: 6 / 20; }
  .piece--sea { grid-column: 1 / 8; grid-row: 16 / 27; }
  .piece--sky { grid-column: 3 / 12; grid-row: 23 / 34; }
  .piece--head { grid-column: 5 / 10; grid-row: 23 / 31; }
  .piece--acropolis { grid-column: 8 / 22; grid-row: 29 / 42; }
  .piece--ideals { grid-column: 3 / 10; grid-row: 39 / 49; }
  .piece--capital { grid-column: 13 / 24; grid-row: 37 / 49; }
  .piece--olive { grid-column: 9 / 15; grid-row: 48 / 58; }
  .piece--statue { grid-column: 16 / 24; grid-row: 49 / 57; }
  .piece--temple { grid-column: 2 / 11; grid-row: 53 / 61; }
  .piece--plan { grid-column: 12 / 24; grid-row: 54 / 61; }
  /* Folders sit in the empty pockets the winding collage leaves along its sides,
     placed relative to the collage column (--scene) rather than the window edge. */
  .atrium { --scene: min(90vw, 1040px); --gutter: calc((100vw - var(--scene)) / 2); }
  /* Even steps down the page, alternating sides so they wind with the collage. */
  .folder--about { left: calc(var(--gutter) + 0.02 * var(--scene)); top: 14%; }
  .folder--voice { right: calc(var(--gutter) + 0.02 * var(--scene)); top: 34%; }
  .folder--ai { left: calc(var(--gutter) + 0.02 * var(--scene)); top: 54%; }
  .folder--fullstack { right: calc(var(--gutter) + 0.02 * var(--scene)); top: 74%; }
}

/* ---------- Client-side portfolio routes ---------- */

body.has-route main { display: none; }
.portfolio-route {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(24px, 6vw, 80px);
  color: #161616;
  background: #fff;
}
.portfolio-route__back {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  z-index: 5;
  color: #333;
  font: 500 16px / 1.2 var(--serif);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.portfolio-route__content { width: min(100%, 760px); }
.portfolio-route__eyebrow { margin-bottom: 16px; color: #718398; font: 500 13px / 1.2 var(--serif); letter-spacing: .22em; text-transform: uppercase; }
.portfolio-route__content h1 { font: 400 clamp(48px, 9vw, 104px) / .95 var(--serif); }
.portfolio-route__note { margin-top: 28px; color: #817b70; font: italic 400 clamp(18px, 2vw, 24px) / 1.4 var(--serif); }

.about-page { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; background: #fff; overscroll-behavior: contain; }
.about-hero { position: relative; min-height: 620px; height: min(68svh, 820px); overflow: hidden; background: #fff; }
.about-composition {
  position: absolute;
  left: 50%;
  top: 51%;
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  width: max-content;
  transform: translate(-50%, -50%);
}
.about-title {
  display: flex;
  flex-direction: column;
  color: #080808;
  font: 900 clamp(74px, 11vw, 156px) / .76 Impact, "Arial Black", "Helvetica Neue", sans-serif;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.about-title span { display: block; }
.id-lanyard {
  position: absolute;
  z-index: 1;
  left: 139px;
  top: calc(-1 * (50vh - 205px));
  width: 20px;
  height: calc(50vh - 205px);
  border-inline: 1px solid #b7b7b7;
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(0,0,0,.09) 7px 8px);
}
.id-lanyard span {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 15px;
  height: 18px;
  border: 2px solid #444;
  border-radius: 4px;
  transform: translateX(-50%);
}
.about-id-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 278px;
  min-height: 390px;
  padding: 25px 23px 17px;
  border: 1px solid #b8b8b8;
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 25px rgba(0,0,0,.18), inset 0 0 0 5px rgba(0,0,0,.025);
}
.id-card__clip {
  position: absolute;
  top: -14px;
  left: calc(50% - 15px);
  width: 30px;
  height: 18px;
  border: 2px solid #444;
  border-radius: 4px 4px 8px 8px;
  background: #eee;
}
.id-card__heading { margin-bottom: 14px; color: #111; font: 900 18px / .9 Impact, "Arial Black", sans-serif; letter-spacing: .02em; }
.id-card__heading span { font-size: 11px; letter-spacing: .2em; }
.id-card__photo {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: 92px;
  height: 106px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #aaa;
  background: repeating-linear-gradient(135deg, #f4f4f4 0 8px, #e8e8e8 8px 16px);
  color: #666;
  cursor: pointer;
  font: 700 10px / 1.2 Arial, sans-serif;
  letter-spacing: .08em;
  text-align: center;
}
.id-card__photo img { display: none; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.id-card__photo.has-photo img { display: block; }
.id-card__photo.has-photo span { display: none; }
#about-photo-preview { display: block; align-self: center; width: 92px; height: 106px; margin-bottom: 14px; border: 1px solid #aaa; border-radius: 4px; object-fit: cover; }
.id-card__upload { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.id-card__field { display: flex; flex-direction: column; gap: 3px; padding: 6px 0 5px; border-bottom: 1px solid #c9c9c9; }
.id-card__field span { color: #333; font: 700 8px / 1 Arial, sans-serif; letter-spacing: .14em; }
.id-card__field input { width: 100%; border: 0; outline: 0; background: transparent; color: #151515; font: 500 13px / 1.2 var(--serif); }
.id-card__field input::placeholder { color: #8c8c8c; opacity: 1; }
.id-card__footer { margin-top: auto; padding-top: 10px; color: #444; font: 700 8px / 1 Arial, sans-serif; letter-spacing: .12em; }
.about-architecture, .about-architecture-drawing { position: absolute; z-index: 0; pointer-events: none; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.about-architecture--acropolis { left: -8vw; top: 14%; width: 32vw; height: 52vh; object-fit: cover; opacity: .22; }
.about-architecture--capital { right: -7vw; top: 4%; width: 31vw; height: 76vh; object-fit: contain; opacity: .24; }
.about-architecture--statue { left: 39%; bottom: -24%; width: 16vw; height: 52vh; object-fit: contain; opacity: .17; }
.about-architecture-drawing { right: 13%; bottom: -20%; width: 17vw; height: 67vh; color: #222; opacity: .28; }
.about-caption { position: absolute; left: 32px; bottom: 24px; color: #555; font: italic 400 13px / 1.2 var(--serif); }

.about-story {
  position: relative;
  min-height: 100vh;
  padding: clamp(56px, 9vh, 112px) clamp(28px, 8vw, 120px);
  color: #242320;
  background-color: #f6f2e9;
  background-image: repeating-linear-gradient(180deg, transparent 0 39px, rgba(130, 120, 101, .11) 39px 40px);
}
.about-story__inner { width: min(100%, 1120px); margin-inline: auto; }
.handwritten-kicker {
  margin-bottom: 14px;
  color: #718398;
  font: 400 clamp(14px, 2vw, 20px) / 1.35 "Allura", "Segoe Print", "Bradley Hand", cursive;
}
.about-lead {
  max-width: 940px;
  margin-bottom: clamp(38px, 7vh, 72px);
  font: 400 clamp(13px, 1.7vw, 18px) / 1.45 "Allura", "Segoe Print", "Bradley Hand", cursive;
}
.about-story__columns { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 7vw, 104px); align-items: start; }
.handwritten-section h2 {
  margin-bottom: 16px;
  color: #495b69;
  font: 400 clamp(16px, 2vw, 22px) / 1.2 "Allura", "Segoe Print", "Bradley Hand", cursive;
}
.handwritten-list {
  display: grid;
  gap: 12px;
  padding-left: 24px;
  font: 400 clamp(14px, 1.8vw, 20px) / 1.3 "Allura", "Segoe Print", "Bradley Hand", cursive;
}
.handwritten-list li { padding-left: 4px; }
.handwritten-list li::marker { color: #9a7551; }
.handwritten-list a, .about-email a, .know-me-list a {
  color: #384f61;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.handwritten-list a:hover, .about-email a:hover, .know-me-list a:hover { color: #151f28; }
.handwritten-list a:focus-visible, .about-email a:focus-visible, .know-me-list a:focus-visible, .portfolio-route__back:focus-visible {
  outline: 2px solid #526f83;
  outline-offset: 4px;
  border-radius: 2px;
}
.about-email { margin-top: 24px; font: 500 25px / 1.2 Caveat, "Segoe Print", "Bradley Hand", cursive; }

/* About story: one casual cursive, single column. Kicker bold + big; everything below regular + one size. */
.about-story .handwritten-kicker {
  margin-bottom: 20px;
  color: #3f5466;
  font: 400 clamp(34px, 4.6vw, 52px) / 1.25 "Playwrite US Modern", "Segoe Print", "Bradley Hand", cursive;
}
.about-story__inner { max-width: 820px; }
.about-story .about-story__columns { grid-template-columns: 1fr; gap: 32px; }
.about-story .about-lead,
.about-story .handwritten-section h2,
.about-story .handwritten-list,
.about-story .about-email {
  font: 300 clamp(15px, 1.6vw, 18px) / 1.9 "Playwrite US Modern", "Segoe Print", "Bradley Hand", cursive;
}
.about-story .about-lead { margin-bottom: 32px; }

.know-me-page { position: absolute; inset: 0; overflow-y: auto; padding: clamp(72px, 12vh, 140px) clamp(28px, 9vw, 140px); background: #f6f2e9; }
.know-me-page__inner { width: min(100%, 920px); margin-inline: auto; }
.know-me-page h1 { margin-bottom: 32px; color: #252522; font: 600 clamp(46px, 8vw, 88px) / 1 Caveat, "Segoe Print", "Bradley Hand", cursive; }
.know-me-list { display: grid; gap: 18px; max-width: 760px; list-style: none; }
.know-me-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 12px; border-bottom: 1px solid rgba(91, 85, 73, .25); font: 500 clamp(23px, 3vw, 34px) / 1.15 Caveat, "Segoe Print", "Bradley Hand", cursive; }
.know-me-list li > span { color: #665c4c; }
.know-me-list a { overflow-wrap: anywhere; }

/* Essays: same Athens backdrop as About me, serif type, two outbound links. */
.essays-page { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden; padding: clamp(72px, 10vh, 120px) 24px; background: #fff; }
.essays-page__inner { position: relative; z-index: 1; width: min(100%, 620px); text-align: center; }
.essays-page h1 { font: 400 clamp(56px, 10vw, 112px) / .95 var(--serif); letter-spacing: .02em; }
.essays-page .portfolio-route__note { margin-top: 18px; }
.essays-links { display: grid; gap: 14px; margin-top: clamp(36px, 6vh, 56px); list-style: none; }
.essays-links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 24px;
  border: 1px solid rgba(60, 58, 52, .28);
  background: rgba(246, 242, 233, .82);
  color: #242320; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.essays-links a:hover { background: #f6f2e9; border-color: rgba(60, 58, 52, .6); }
.essays-links a:focus-visible { outline: 2px solid #526f83; outline-offset: 4px; }
.essays-links__name { font: 500 clamp(26px, 3.4vw, 34px) / 1.1 var(--serif); }
.essays-links__handle { color: #718398; font: italic 400 clamp(15px, 1.8vw, 18px) / 1.2 var(--serif); }

/* Topic pages (Voice AI, AI and me): Athens hero (as on About me / Essays), then accordion sections. */
/* The page scrolls inside .topic-page, which starts below a fixed bar holding the back link,
   so scrolled content never runs under the link. */
.portfolio-route:has(.topic-page:not([hidden]))::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: 4; height: 72px;
  background: #fff; border-bottom: 1px solid rgba(179, 154, 110, .35);
}
.topic-page { position: absolute; inset: 72px 0 0; overflow-x: hidden; overflow-y: auto; background: #fff; overscroll-behavior: contain; }

.topic-hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 420px; height: min(52svh, 580px); overflow: hidden; padding: 40px 24px; }
.topic-hero .about-architecture, .topic-hero .about-architecture-drawing { z-index: -1; }
.topic-hero__inner { width: min(100%, 560px); text-align: center; }
.topic-hero h1 { font: 400 clamp(56px, 10vw, 112px) / .95 var(--serif); letter-spacing: .02em; }
.topic-hero .portfolio-route__note { margin-top: 18px; }
/* Desktop/tablet: ornaments stay in the side margins, clear of the centred text column (560px). */
.topic-hero .about-architecture--acropolis { left: 0; top: 12%; width: calc(50% - 300px); height: 76%; }
.topic-hero .about-architecture--capital { right: 0; left: auto; top: 4%; width: calc(50% - 300px); height: 56%; object-position: left center; }
.topic-hero .about-architecture-drawing { right: calc(25% - 225px); bottom: -10%; width: 150px; height: 42%; }

.topic-page__body {
  padding: clamp(48px, 8vh, 88px) 24px clamp(72px, 12vh, 120px);
  background-color: #f6f2e9;
  background-image: repeating-linear-gradient(180deg, transparent 0 39px, rgba(130, 120, 101, .11) 39px 40px);
}
.topic-section { width: min(100%, 820px); margin-inline: auto; }
.topic-section + .topic-section { margin-top: clamp(72px, 12vh, 120px); }
.topic-section__title { margin-bottom: 28px; color: #252522; font: 400 clamp(38px, 5vw, 56px) / 1 var(--serif); }
.topic-section__title::after { content: ""; display: block; width: 64px; height: 1px; margin-top: 14px; background: var(--gold-line); }

/* ---- Shared accordion card (Research + Projects) ---- */
.acc-list-wrap { display: flex; flex-direction: column; gap: 24px; }
.acc-card { border: 1px solid rgba(60, 58, 52, .28); background: rgba(255, 255, 255, .6); transition: border-color .2s ease, background-color .2s ease; }
.acc-card:hover, .acc-card.is-open { border-color: rgba(60, 58, 52, .6); background: rgba(255, 255, 255, .85); }
.acc-card__heading { margin: 0; font: inherit; }
.acc-card__toggle {
  display: grid; grid-template-columns: 2.2em minmax(0, 1fr) 20px; align-items: center; column-gap: clamp(10px, 2.4vw, 20px);
  width: 100%; padding: 20px clamp(16px, 3vw, 28px);
  border: 0; background: none; color: #242320; font: 400 16px / 1 var(--serif); text-align: left; cursor: pointer;
}
.acc-card__toggle:focus-visible { outline: 2px solid #526f83; outline-offset: -4px; }
.acc-card__num { color: var(--gold-line); font: italic 500 clamp(22px, 3vw, 28px) / 1 var(--serif); }
.acc-card__titles { display: grid; gap: 5px; min-width: 0; overflow-wrap: break-word; }
.acc-card__title { font: 500 clamp(20px, 2.6vw, 26px) / 1.2 var(--serif); }
.acc-card__subtitle { color: #718398; font: italic 400 clamp(15px, 1.8vw, 18px) / 1.35 var(--serif); }
.acc-card__icon { position: relative; width: 14px; height: 14px; justify-self: end; }
.acc-card__icon::before, .acc-card__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #384f61; transition: transform .3s ease; }
.acc-card__icon::after { transform: rotate(90deg); }
.acc-card.is-open .acc-card__icon::after { transform: rotate(0deg); }

/* Expand/collapse: rows 0fr -> 1fr, so the real content height pushes later cards down. */
.acc-card__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc-card.is-open .acc-card__panel { grid-template-rows: 1fr; }
.acc-card__inner { min-height: 0; overflow: hidden; }
.acc-card__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 clamp(16px, 3vw, 28px); padding: 4px 0 24px; border-top: 1px solid rgba(179, 154, 110, .45); }

.acc-tag { padding-top: 20px; color: #9a7551; font: italic 400 15px / 1.4 var(--serif); letter-spacing: .02em; }
.acc-section { min-width: 0; padding: 22px 0; }
.acc-section + .acc-section { border-top: 1px solid rgba(179, 154, 110, .3); }
.acc-section__label { margin-bottom: 12px; color: #495b69; font: 500 clamp(17px, 2vw, 19px) / 1.2 var(--serif); letter-spacing: .04em; }
.acc-section__num { color: var(--gold-line); font-style: italic; }
.acc-list { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: #665c4c; font: 400 clamp(15px, 1.7vw, 16.5px) / 1.7 var(--serif); letter-spacing: .015em; overflow-wrap: break-word; }
.acc-list li::marker { color: var(--gold-line); }
.acc-list--ordered { padding-left: 26px; }
.acc-list--ordered li::marker { font-style: italic; }

.acc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0; }
.acc-stat { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 16px 16px 18px; border: 1px solid rgba(179, 154, 110, .35); background: #fbf9f4; }
.acc-stat__value { color: #252522; font: 400 clamp(28px, 3.6vw, 36px) / 1 var(--serif); overflow-wrap: break-word; }
.acc-stat__label { margin: 0; color: #665c4c; font: 400 14px / 1.55 var(--serif); letter-spacing: .015em; }
.acc-note { margin-top: 16px; color: #665c4c; font: 400 clamp(15px, 1.7vw, 16.5px) / 1.7 var(--serif); letter-spacing: .015em; }
.acc-limits { margin-top: 12px; color: #817b70; font: italic 400 14px / 1.6 var(--serif); }

.acc-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(179, 154, 110, .3); }
.acc-link {
  display: inline-block; padding: 8px 14px;
  border: 1px solid rgba(60, 58, 52, .35); background: #fbf9f4;
  color: #384f61; font: italic 500 15px / 1.2 var(--serif); text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.acc-link:hover { border-color: rgba(60, 58, 52, .7); color: #151f28; }
.acc-link:focus-visible { outline: 2px solid #526f83; outline-offset: 3px; }

/* Links row placed first in the panel (AI and me): divider below instead of above. */
.acc-links--top { padding: 22px 0; border-top: 0; border-bottom: 1px solid rgba(179, 154, 110, .3); }
.acc-links--top + .acc-section { border-top: 0; }

/* Optional header meta: small badge + context tag under the subtitle. */
.acc-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 3px; }
.acc-card__badge { padding: 3px 8px 2px; border: 1px solid var(--gold-line); color: #9a7551; font: 500 11px / 1.2 var(--serif); letter-spacing: .16em; text-transform: uppercase; }
.acc-card__tag { color: #9a7551; font: italic 400 14px / 1.35 var(--serif); letter-spacing: .02em; }

/* Small tables: scroll sideways inside their own box, never the page. */
.acc-table-wrap { max-width: 100%; margin-top: 18px; overflow-x: auto; border: 1px solid rgba(179, 154, 110, .35); background: #fbf9f4; }
.acc-table { width: 100%; border-collapse: collapse; color: #665c4c; font: 400 14.5px / 1.45 var(--serif); letter-spacing: .015em; }
.acc-table caption { padding: 12px 14px 4px; color: #495b69; font: italic 500 15px / 1.3 var(--serif); text-align: left; }
.acc-table th, .acc-table td { padding: 8px 14px; text-align: left; white-space: nowrap; }
.acc-table thead th { color: #495b69; font-weight: 500; border-bottom: 1px solid rgba(179, 154, 110, .45); }
.acc-table tbody th { color: #495b69; font-weight: 500; }
.acc-table tbody tr + tr > * { border-top: 1px solid rgba(179, 154, 110, .2); }

/* Architecture diagram: framed, fixed aspect ratio so nothing jumps when the image loads. */
.acc-diagram { margin: 0; }
.acc-diagram__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid rgba(179, 154, 110, .45); outline: 1px solid rgba(179, 154, 110, .2); outline-offset: 4px;
  background: #fbf9f4;
}
.acc-diagram__frame.is-wide { overflow-x: auto; overflow-y: hidden; }
.acc-diagram__placeholder { display: grid; place-items: center; height: 100%; margin: 0; padding: 16px; color: #817b70; font: italic 400 15px / 1.4 var(--serif); letter-spacing: .03em; text-align: center; }
.acc-diagram__open { display: block; width: 100%; height: 100%; padding: 10px; border: 0; background: none; cursor: zoom-in; }
.acc-diagram__open:focus-visible { outline: 2px solid #526f83; outline-offset: -4px; }
.acc-diagram__img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.acc-diagram__frame.is-wide .acc-diagram__open { width: auto; min-width: 100%; }
.acc-diagram__frame.is-wide .acc-diagram__img { width: auto; max-width: none; }
.acc-diagram__caption { margin-top: 10px; color: #718398; font: italic 400 14px / 1.2 var(--serif); letter-spacing: .08em; text-align: center; }

.acc-lightbox { margin: auto; max-width: min(96vw, 1400px); max-height: 92vh; padding: 16px; border: 1px solid rgba(179, 154, 110, .55); background: #fbf9f4; }
.acc-lightbox::backdrop { background: rgba(37, 35, 32, .55); }
.acc-lightbox__img { display: block; max-width: 100%; max-height: calc(92vh - 72px); margin-inline: auto; object-fit: contain; }
.acc-lightbox__close { display: block; margin: 0 0 10px auto; padding: 4px 10px; border: 1px solid rgba(60, 58, 52, .35); background: none; color: #384f61; font: italic 500 15px / 1.2 var(--serif); cursor: pointer; }
.acc-lightbox__close:focus-visible { outline: 2px solid #526f83; outline-offset: 3px; }

.acc-section + .acc-limits { margin-top: 0; padding-top: 18px; border-top: 1px solid rgba(179, 154, 110, .3); }
.acc-next { margin-top: 6px; }
.acc-results-intro { margin: -4px 0 14px; }

@media (prefers-reduced-motion: reduce) {
  .acc-card__panel, .acc-card__icon::before, .acc-card__icon::after { transition: none; }
}
/* Narrow screens: no side margins to hold ornaments, so keep only a faint Acropolis band
   in the hero's bottom padding, below the text. */
@media (max-width: 860px) {
  .topic-hero { height: auto; min-height: 0; padding: 48px 24px 150px; }
  .topic-hero .about-architecture--capital, .topic-hero .about-architecture-drawing, .topic-hero .about-architecture--statue { display: none; }
  .topic-hero .about-architecture--acropolis { left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 120px; object-position: center 40%; opacity: .2; }
}

@media (max-width: 700px) {
  .about-composition { top: 51%; flex-direction: column-reverse; gap: 22px; width: min(100% - 48px, 420px); }
  .about-title { flex-direction: row; gap: .18em; font-size: clamp(50px, 15vw, 84px); line-height: .85; }
  .about-id-card { width: min(278px, 75vw); min-height: 350px; }
  .id-lanyard { display: none; }
  .about-architecture--acropolis { left: -25vw; top: 10%; width: 58vw; height: 38vh; }
  .about-architecture--capital { right: -24vw; top: 8%; width: 55vw; height: 42vh; }
  .about-architecture--statue { display: none; }
  .essays-links a { flex-direction: column; align-items: center; gap: 4px; }
  .about-architecture-drawing { right: 4%; bottom: -16%; width: 32vw; height: 40vh; }
  .about-hero { min-height: 540px; height: min(78svh, 700px); }
  .about-story { padding: 56px 24px 72px; }
  .about-story__columns { grid-template-columns: 1fr; gap: 36px; }
  .about-lead { margin-bottom: 36px; font-size: clamp(13px, 2vw, 16px); }
  .handwritten-list { font-size: clamp(22px, 6vw, 27px); }
  .know-me-list li { flex-direction: column; gap: 2px; }
}

/* ---------- Dimensions (future content lives here) ---------- */

.dimension {
  position: relative;
  z-index: 2;
  min-height: var(--vh);
  color: #4a4741;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0 0.33  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}

/* While the placeholder section has no content, don't leave a blank screen before the footer. */
.dimension:has(.dimension__inner:empty) { display: none; }

.dimension__inner {
  min-height: inherit;
  width: min(100% - 32px, 1320px);
  margin-inline: auto;
  padding-block: clamp(48px, 10vh, 120px);
}

/* Image credits (CC BY requires attribution) */
.credits {
  position: relative;
  z-index: 2;
  color: rgba(74, 71, 65, 0.6);
  font: 400 12px / 1.6 var(--serif);
  letter-spacing: 0.02em;
}
.site-footer .credits {
  width: min(100% - 32px, 1320px);
  margin-inline: auto;
  padding-block: 18px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(149, 141, 127, 0.25);
}

/* ---------- Passage: the line in the light, between the painting and the atrium ---------- */
.passage {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f6f2e9;                 /* the centre colour of .bloom, so it reads as the light itself */
  opacity: 0;                          /* opacity of the light and the line are driven by scroll in main.js */
  visibility: hidden;
  pointer-events: none;
}
.passage__text {
  max-width: 34em;
  color: #4a4741;
  font: 300 clamp(14px, 1.6vw, 18px) / 2 "Playwrite US Modern", "Segoe Print", "Bradley Hand", cursive;
  text-align: center;
  opacity: 0;
  will-change: opacity, transform;
}

/* ---------- Site footer: socials, mail, then the image credits ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  color: #4a4741;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0 0.33  0 0 0 0.09 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}
.site-footer__inner {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding-block: clamp(56px, 10vh, 104px) clamp(40px, 7vh, 72px);
  text-align: center;
}
.site-footer__ornament { display: block; width: 180px; height: 28px; margin: 0 auto 22px; color: var(--gold-line); }
.site-footer__kicker { margin-bottom: 22px; color: #3f5466; font: 400 clamp(22px, 3vw, 30px) / 1.3 "Playwrite US Modern", "Segoe Print", "Bradley Hand", cursive; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; list-style: none; }
.site-footer__links a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(60, 58, 52, .3);
  background: rgba(251, 249, 244, .7);
  color: #384f61;
  font: italic 500 16px / 1.2 var(--serif);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .2s ease, color .2s ease;
}
.site-footer__links a:hover { border-color: rgba(60, 58, 52, .65); color: #151f28; }
.site-footer__links a:focus-visible { outline: 2px solid #526f83; outline-offset: 3px; }
.site-footer__sign { margin-top: 26px; color: #817b70; font: italic 400 14px / 1.4 var(--serif); letter-spacing: .08em; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .whisper.show-enter .whisper__line--enter { animation: none; opacity: 0.7; }
  .piece img { transition: none; }
}
