/* ============================================================
   SPRING BREAK MORONS — editorial theme
   ============================================================ */
:root {
  --red:   #e8211b;
  --ink:   #111;
  --bg:    #e6e7e9;     /* grey studio backdrop */
  --bg-2:  #d9dbde;
  --font:  "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --t: clamp(12.5px, 1.5vw, 22px);   /* the small red caps size */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

/* the red caps look, reused everywhere */
.caps {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1;
}

/* soft film grain */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- menu item: number + two-line title ---------- */
.item {
  display: grid;
  grid-template-columns: 3.4em auto;
  font-size: var(--t);
  width: max-content;
  transition: opacity .2s ease;
}
.item .t span { display: block; }
.item:hover .t span:first-child,
.item:focus-visible .t span:first-child { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .12em; }
.item.current { color: var(--ink); }

/* ============================================================
   HOME
   ============================================================ */
.home {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 45%, #f3f4f6 0%, var(--bg) 45%, #c9ccd1 100%);
}
.home-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 65% 20%;
}
.home-photo.bw { filter: grayscale(1) contrast(1.04); }

.cascade {
  position: absolute; left: 0;
  width: min(100%, 1100px);
  padding-left: var(--gutter);
  display: flex; flex-direction: column;
  gap: calc(var(--t) * .7);
  z-index: 2;
}
.cascade.c1 { top: clamp(64px, 4vh, 80px); }
.cascade.c2 { top: 50%; }
.cascade .item { margin-left: var(--x); }

/* load-in: items appear one by one */
.cascade .item { opacity: 0; animation: in .5s ease forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* dim the others on hover */
.cascade:hover .item { opacity: .35; }
.cascade:hover .item:hover { opacity: 1; }

.home-corner {
  position: absolute; z-index: 2;
  font-size: var(--t);
}
.home-corner.tl { top: var(--gutter); left: var(--gutter); }
.home-corner.br { bottom: var(--gutter); right: var(--gutter); text-align: right; }
.home-corner.bl { bottom: var(--gutter); left: var(--gutter); }

/* ============================================================
   INNER PAGES
   ============================================================ */
.top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: var(--gutter);
}
.top .home-link { font-size: var(--t); }
.mini-nav { display: flex; flex-direction: column; gap: calc(var(--t) * .55); }
.mini-nav .item:nth-child(1) { margin-left: 0; }
.mini-nav .item:nth-child(2) { margin-left: 5em; }
.mini-nav .item:nth-child(3) { margin-left: 2.5em; }
.mini-nav .item:nth-child(4) { margin-left: 8em; }

.page-head {
  padding: clamp(40px, 9vw, 120px) var(--gutter) clamp(28px, 5vw, 60px);
}
.page-head .item {
  font-size: clamp(34px, 7.5vw, 112px);
  grid-template-columns: 2.2em auto;
  letter-spacing: -0.04em;
}
.page-head .item .t span:last-child { color: var(--ink); }

.wrap { padding: 0 var(--gutter) clamp(80px, 10vw, 140px); }

.cap {
  display: grid; grid-template-columns: 3.4em 1fr auto; gap: 0;
  margin-top: 10px;
  font-size: 12px;
}
.cap .meta { color: var(--ink); font-weight: 500; text-align: right; }

/* ---------- edits ---------- */
.edits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 32px);
}
.edit-card:nth-child(3n+2) { margin-top: clamp(0px, 6vw, 80px); }
.phone {
  position: relative; aspect-ratio: 9 / 16;
  background: #cfd1d5; overflow: hidden;
}
.phone iframe, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px; font-size: 12px;
  background: linear-gradient(180deg, #d7d9dc, #c3c6cb);
}
.empty small { color: #555; font-weight: 500; text-transform: none; letter-spacing: 0; }
.poster {
  position: absolute; inset: 0; width: 100%; cursor: pointer;
  border: 0; font: inherit; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px; font-size: 12px;
  background: linear-gradient(180deg, #d7d9dc, #b9bcc2);
}
.poster .play { font-size: 40px; letter-spacing: -.05em; align-self: flex-end; }
.poster:hover { background: linear-gradient(180deg, #e0e2e5, #c6c9ce); }

/* ---------- photos ---------- */
.photo-wall { columns: 3 280px; column-gap: clamp(14px, 2vw, 28px); }
.photo { break-inside: avoid; margin-bottom: clamp(24px, 3vw, 40px); cursor: zoom-in; }
.photo img { width: 100%; height: auto; }
.photo-ph { width: 100%; background: linear-gradient(180deg, #d7d9dc, #c3c6cb); display: flex; align-items: flex-end; padding: 14px; font-size: 12px; }

/* ---------- video ---------- */
.video-list { display: grid; gap: clamp(56px, 8vw, 110px); }
.video-item { width: min(100%, 1100px); }
.video-item:nth-child(even) { margin-left: auto; }
.frame { position: relative; aspect-ratio: 16 / 9; background: #cfd1d5; overflow: hidden; }
.video-item .note { color: var(--ink); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 13px; margin-top: 6px; padding-left: calc(12px * 3.4); }

/* ---------- contact ---------- */
.contact-email {
  font-size: clamp(26px, 5.4vw, 84px);
  letter-spacing: -0.04em;
  word-break: break-all;
  display: inline-block;
}
.contact-email:hover { text-decoration: underline; text-decoration-thickness: .06em; }
.socials { list-style: none; margin-top: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 10px; }
.socials li:nth-child(2) { margin-left: 6em; }
.socials li:nth-child(3) { margin-left: 3em; }
.socials a { font-size: var(--t); }
.socials a:hover { text-decoration: underline; }

.footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: var(--gutter);
  font-size: 11px;
  border-top: 1px solid rgba(0,0,0,.12);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(230,231,233,.97);
  display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 84vh; max-width: 92vw; }
.lightbox p { font-size: 12px; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  :root { --t: 12.5px; }
  .home-photo { object-position: 70% 20%; }
  .cascade .item { margin-left: calc(var(--x) * .75); }
  .cascade.c2 { top: 56%; }
  .home-corner.tl { display: none; }
  .top { flex-direction: column; }
  .page-head .item { font-size: 30px; }
  .mini-nav .item:nth-child(n) { margin-left: 0; }
  .edit-card:nth-child(n) { margin-top: 0; }
  .edits-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .cap { grid-template-columns: 2.6em 1fr; }
  .cap .meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cascade .item { animation: none; opacity: 1; }
}

/* ============================================================
   v3 additions: photo switcher, red logo slot, video sub-heads
   ============================================================ */
.home { cursor: pointer; }
.home a { cursor: pointer; }
.home-corner.tr { top: var(--gutter); right: var(--gutter); text-align: right; }
.home-corner.br a:hover { text-decoration: underline; }
.home-photo { transition: opacity .25s ease; }

/* logo painted red: any transparent PNG/SVG works, its shape gets filled with --red */
.logo {
  display: block;
  height: 2em;                 /* same height as title + second line */
  aspect-ratio: 4 / 1;         /* adjust once the real logo is in */
  background: currentColor;
  -webkit-mask: var(--logo) left center / contain no-repeat;
          mask: var(--logo) left center / contain no-repeat;
}
.page-head .logo { height: 1.6em; }

.sub-head {
  font-size: var(--t);
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.15);
}
.edits-grid + .sub-head { margin-top: clamp(80px, 10vw, 140px); }

.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { text-decoration: underline; }

.big-note { font-size: clamp(28px, 5vw, 72px); letter-spacing: -0.04em; color: var(--ink); }
.big-link { display: inline-block; margin-top: 24px; font-size: var(--t); }
.big-link:hover { text-decoration: underline; }
.page-head .item { font-size: clamp(30px, 5.6vw, 88px); width: auto; max-width: 100%; }
/* minimal home: one photo, one menu */
.home { height: 100vh; height: 100svh; min-height: 0; }
.cascade.c1 { top: clamp(48px, 9vh, 110px); }
/* only dim the other links while one is actually hovered */
.cascade:hover .item { opacity: 1; }
.cascade:has(.item:hover) .item { opacity: .35; }
.cascade:has(.item:hover) .item:hover { opacity: 1; }
.cascade .item { opacity: 1; animation: in .5s ease both; animation-delay: calc(var(--i) * 90ms + 150ms); }

/* ============================================================
   v5: hover sub-options
   ============================================================ */
.item .t { display: flex; flex-direction: column; }
.item .main { display: flex; flex-direction: column; }
.item .main > span, .item .t > .title, .item .t > .sub { display: block; }
.item .main:hover .title,
.item .main:focus-visible .title { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .12em; }
/* old underline rule targeted the first span; neutralise it */
.item:hover .t span:first-child { text-decoration: none; }
.item .main:hover .title { text-decoration: underline; }

.kids { display: none; flex-direction: column; }
.kid { display: block; width: max-content; }
.kid::before { content: "— "; }
.kid:hover, .kid:focus-visible { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .12em; }

/* reveal: the sub line steps aside, the options take its place */
.has-kids:hover .kids, .has-kids:focus-within .kids, .has-kids.open .kids { display: flex; }
.has-kids:hover .sub,  .has-kids:focus-within .sub,  .has-kids.open .sub  { display: none; }

/* keep the open item fully lit, dim the others */
.cascade:has(.item:hover) .item, .cascade:has(.item.open) .item { opacity: .35; }
.cascade:has(.item:hover) .item:hover, .cascade .item.open { opacity: 1; }

/* home cascade: the item is a div now, keep it sized to its text */
.cascade .item { width: max-content; }

/* sections the sub-options jump to */
.block { scroll-margin-top: 24px; }
.block + .block { margin-top: clamp(80px, 10vw, 140px); }
.edits-grid + .sub-head { margin-top: 0; }
html { scroll-behavior: smooth; }
/* specificity fix: older ".item .t span" rule was forcing the options visible */
.item .t .kids { display: none; }
.has-kids:hover .t .kids, .has-kids:focus-within .t .kids, .has-kids.open .t .kids { display: flex; }
.has-kids:hover .t .sub,  .has-kids:focus-within .t .sub,  .has-kids.open .t .sub  { display: none; }

/* ============================================================
   v6: sub-options left-aligned under the number, lighter
   ============================================================ */
.item .kids {
  grid-column: 1 / -1;
  display: none; flex-direction: column;
  font-size: .78em; font-weight: 500;
  margin-top: .35em; gap: .15em;
}
.has-kids:hover > .kids, .has-kids:focus-within > .kids, .has-kids.open > .kids { display: flex; }
.kid::before { content: none; }
.kid { width: max-content; }

/* ============================================================
   v6: bare short-form page
   ============================================================ */
.bare { background: #111; }
.bare-bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.bare .top { position: relative; z-index: 2; }
.bare .wrap { padding-top: clamp(40px, 10vh, 120px); }
.covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 40vw), 1fr));
  gap: clamp(20px, 3vw, 40px) clamp(14px, 2vw, 28px);
  max-width: 1100px;
}
.cover { display: flex; flex-direction: column; color: inherit; }
.cover .art { display: block; aspect-ratio: 1; background: rgba(255,255,255,.35); overflow: hidden; }
.cover .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.cover:hover .art img { transform: scale(1.03); }
a.cover:hover .cover-title { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .12em; }
.cover-title { margin-top: 10px; font-size: var(--t); }
.cover-stat { margin-top: 3px; font-size: calc(var(--t) * .78); font-weight: 500; }

/* ============================================================
   v7: PLATNM WORLD logo (traced from the drawing, painted red)
   ============================================================ */
.item .logo { aspect-ratio: 2148 / 1004; height: 4.6em; -webkit-mask-position: left top; mask-position: left top; }
.mini-nav .item .logo { height: 3.2em; }
.item .main:hover .logo { opacity: .8; }

/* v8: about page */
.about-bio { max-width: 34ch; font-size: clamp(20px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: clamp(32px, 5vw, 64px); }
.page-head .item .t .title:last-child { color: var(--red); }

/* v9: about = portrait + text only */
.about {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 34ch);
  gap: clamp(24px, 4vw, 64px); align-items: end;
  padding-top: clamp(24px, 6vh, 72px);
}
.about-photo { width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.about-name { font-size: var(--t); margin-bottom: 12px; }
.about-bio { font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; max-width: 34ch; margin: 0; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } }
@media (min-width: 641px) {
  .about { grid-template-columns: auto minmax(0, 34ch); justify-content: start; padding-top: 16px; }
  .about-photo { width: auto; height: calc(100vh - 290px); height: calc(100svh - 290px); min-height: 360px; max-height: none; aspect-ratio: 1421 / 2000; }
  .bare-about .wrap, body[data-page="about"] .wrap { padding-bottom: var(--gutter); }
}

/* ============================================================
   v10: hover options float without moving anything
   ============================================================ */
.item.has-kids { position: relative; }
/* home: options sit ABOVE the title */
.cascade .item > .kids {
  position: absolute; left: 0; bottom: 100%;
  margin: 0; padding-bottom: .4em;      /* padding (not margin) so the hover doesn't drop in the gap */
}
/* inner pages: menu is at the top, so options open to the LEFT instead */
.mini-nav .item > .kids {
  position: absolute; right: 100%; top: 0;
  margin: 0; padding-right: 1.4em;
  align-items: flex-end; text-align: right;
}
.cascade:has(.item.open) .item.open { opacity: 1; }

/* ============================================================
   v11: character drawing overlay on the right of home
   (traced from the pen drawing; red, click to turn black)
   ============================================================ */
.character {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: 0;
  height: min(78vh, 78svh); aspect-ratio: 1484 / 1790;
  max-width: 55vw;
  border: 0; padding: 0; cursor: pointer;
  color: var(--red);
  background: currentColor;
  -webkit-mask: url("images/character.png") right bottom / contain no-repeat;
          mask: url("images/character.png") right bottom / contain no-repeat;
  transition: color .15s ease;
}
.character.black { color: var(--ink); }
.character:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
@media (max-width: 640px) {
  .character { height: 46svh; right: 0; max-width: 80vw; }
}

/* ============================================================
   v12: drawing + SPRING BREAK MORONS lettering in its empty corner
   ============================================================ */
.character { background: none; -webkit-mask: none; mask: none; }
.character-art {
  position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: url("images/character.png") right bottom / contain no-repeat;
          mask: url("images/character.png") right bottom / contain no-repeat;
}
/* the empty pocket between the neck, the right ear and the shoulder */
.character-type {
  position: absolute;
  left: 75%; width: 24%;
  top: 41%; height: 26%;
  overflow: visible;
  fill: currentColor;
  font-family: "Rubik", "Arial Black", sans-serif; font-weight: 900;
  font-size: 60px;
}

/* ============================================================
   v12: home menu in one horizontal line
   ============================================================ */
.cascade.c1 {
  flex-direction: row; flex-wrap: wrap; align-items: flex-start;
  gap: calc(var(--t) * .8) clamp(18px, 3vw, 44px);
  width: auto; right: var(--gutter); padding-left: var(--gutter);
}
.cascade.c1 .item { margin-left: 0; }
@media (max-width: 640px) { .cascade.c1 .item { margin-left: 0; } }
.character-type { font-size: 56px; }
.character { transition: none; }

/* ============================================================
   v13: PHOTO opens on one standout photo, full screen
   ============================================================ */
.has-standout .top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.standout { position: relative; height: 100vh; height: 100svh; overflow: hidden; margin-bottom: clamp(48px, 7vw, 96px); }
.standout img { width: 100%; height: 100%; object-fit: cover; display: block; }
.standout-list {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  display: flex; flex-direction: column; gap: .35em;
  font-size: var(--t);
}
.standout-list a { display: grid; grid-template-columns: 3.4em auto; }
.standout-list a:hover { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .12em; }
.has-standout .mini-nav .item.current { color: #fff; }

/* ============================================================
   v14: staggered sub-options, tighter roman numerals
   ============================================================ */
.item .kids .kid:nth-child(4n+2) { margin-left: 2.4em; }
.item .kids .kid:nth-child(4n+3) { margin-left: 1.2em; }
.item .kids .kid:nth-child(4n+4) { margin-left: 3.6em; }
/* inner pages open options to the left, so stagger from the right edge there */
.mini-nav .item .kids .kid:nth-child(n) { margin-left: 0; }
.mini-nav .item .kids .kid:nth-child(4n+2) { margin-right: 2.4em; }
.mini-nav .item .kids .kid:nth-child(4n+3) { margin-right: 1.2em; }
.mini-nav .item .kids .kid:nth-child(4n+4) { margin-right: 3.6em; }

/* home: numeral sits right next to its word */
.cascade .item { grid-template-columns: max-content auto; column-gap: .55em; }

/* v15: reflections = one photo + essays, nothing else */
.only-standout .standout { margin-bottom: 0; }
.standout-list.essays a { max-width: min(60ch, 80vw); line-height: 1.15; }
.standout-list.essays a + a { margin-top: .4em; }

/* v15: SPRING BREAK MORONS in hand-drawn Londrina, like the PLATNM WORLD lettering */
.character-type { font-family: "Londrina Solid", "Arial Black", sans-serif; font-weight: 900; font-size: 56px; }
.character-type .sketch { font-family: "Londrina Sketch", "Londrina Solid", sans-serif; font-weight: 400; }
.only-standout .mini-nav .item.current { color: var(--ink); }

/* v16: hand-drawn lettering (defs text has no own paint; <use> layers set fill/stroke) */
.character-type text { fill: inherit; stroke: inherit; }

/* ============================================================
   v17: hand-lettered SPRING BREAK MORONS on the chest,
   under the collarbones (positions are % of the drawing box)
   ============================================================ */
.character-type {
  left: 38%; width: 56%;
  top: 66%; height: 36%;
  overflow: visible;
}
.character-type { left: 41%; width: 50%; top: 70.5%; height: 29%; }

/* ============================================================
   v18: no numerals; PLATNM WORLD leads the home row;
   lettering sits just below the drawing's chest lines
   ============================================================ */
.cascade.c1 .item.is-logo { order: -1; }

/* drawing lifted so the lettering can hang under it without touching the chest lines */
.character { height: min(62vh, 62svh); bottom: min(15vh, 15svh); }
.character-type { left: 40%; width: 46%; top: 93%; height: 30%; }
@media (max-width: 640px) {
  .character { height: 38svh; bottom: 10svh; }
}
.cascade.c1 { align-items: center; }

/* v19: lettering bigger and tucked right under the chest lines (fit computed against the drawing, small gap kept) */
.character { height: min(66vh, 66svh); bottom: min(13vh, 13svh); }
.character-type { left: 40%; width: 60%; top: 79.2%; height: 38.8%; }
@media (max-width: 640px) {
  .character { height: 40svh; bottom: 9svh; }
}

/* v20: numerals back; home titles stepped down one after another (logo stays at the top) */
.cascade.c1 { align-items: flex-start; }
.cascade.c1 .item:not(.is-logo) { margin-top: calc(var(--i) * 1.6em); }
.cascade.c1 .item.is-logo { margin-top: 0; }
@media (min-width: 641px) { .cascade.c1 { flex-wrap: nowrap; column-gap: clamp(12px, 2vw, 40px); } }
/* phones: no room for a sideways staircase, so step them down the left edge instead */
@media (max-width: 640px) {
  .cascade.c1 { flex-direction: column; flex-wrap: nowrap; row-gap: calc(var(--t) * .45); }
  .cascade.c1 .item:not(.is-logo) { margin-top: 0; margin-left: calc(var(--i) * 1.4em + 1em); }
}

/* ============================================================
   v21: inner pages: hand-lettered SPRING BREAK MORONS on one line, top left;
   menu in a tidy left-aligned column on the right; PHOTO's collections bottom right
   ============================================================ */
.top .home-link { display: block; line-height: 0; }
.wordmark {
  display: block;
  height: calc(var(--t) * 1.55); aspect-ratio: 2414 / 167;
  max-width: calc(100vw - 2 * var(--gutter));
  background: currentColor; color: var(--red);
  -webkit-mask: url("images/sbm-line.png") left center / contain no-repeat;
          mask: url("images/sbm-line.png") left center / contain no-repeat;
}
.home-link:hover .wordmark { opacity: .8; }
.mini-nav { align-items: flex-start; }
.mini-nav .item:nth-child(n) { margin-left: 0; margin-right: 0; }
.has-standout:not(.only-standout) .standout-list { left: auto; right: var(--gutter); }
@media (max-width: 640px) {
  .wordmark { height: auto; width: min(320px, calc(100vw - 2 * var(--gutter))); }
}

/* ============================================================
   v22: composed photo layouts (from layout.js / the editor)
   12-column grid; each photo spans a size; spacers add air
   ============================================================ */
.photo-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(14px, 2vw, 28px); row-gap: clamp(24px, 3vw, 40px);
  align-items: start; grid-auto-flow: row;
}
.photo-grid .photo { margin: 0; break-inside: auto; }
.photo-grid .frame { overflow: hidden; }
.photo-grid .cropped .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid .photo:not(.cropped) img { display: block; }
.s-small { grid-column: span 3; }
.s-third { grid-column: span 4; }
.s-half { grid-column: span 6; }
.s-two-thirds { grid-column: span 8; }
.s-full { grid-column: 1 / -1; }
.s-bleed { grid-column: 1 / -1; margin-inline: calc(-1 * var(--gutter)) !important; }
.s-bleed .cap { padding-inline: var(--gutter); }
.a-middle { align-self: center; }
.a-bottom { align-self: end; }
.spacer.s-full, .spacer.s-bleed { height: clamp(40px, 9vw, 140px); }
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .photo-grid .s-small, .photo-grid .s-third { grid-column: span 1; }
  .photo-grid .s-half, .photo-grid .s-two-thirds, .photo-grid .s-full, .photo-grid .s-bleed { grid-column: 1 / -1; }
  .photo-grid .spacer { display: none; }
}

/* v23: CENTER — the photo gets its own row, centered, at its chosen width */
.photo-grid { --gap: clamp(14px, 2vw, 28px); }
.photo-grid .centered { grid-column: 1 / -1; justify-self: center; width: calc((100% + var(--gap)) * var(--span) / 12 - var(--gap)); }
.centered.s-small { --span: 3; } .centered.s-third { --span: 4; } .centered.s-half { --span: 6; } .centered.s-two-thirds { --span: 8; }
.centered.s-full, .centered.s-bleed { --span: 12; }
.photo-grid .centered.s-bleed { width: auto; justify-self: stretch; }
@media (max-width: 640px) {
  .photo-grid { --gap: 10px; }
  .photo-grid .centered { width: auto; justify-self: stretch; }
  .photo-grid .centered.s-small, .photo-grid .centered.s-third { width: calc(50% - 5px); justify-self: center; }
}

/* ============================================================
   v24: white everywhere; photo page scrolls one row at a time
   ============================================================ */
:root { --bg: #fff; --bg-2: #f2f2f2; }
body { background: #fff; }
.lightbox { background: rgba(255,255,255,.98); }
body:not([data-page="home"]) .grain { display: none; }   /* grain would grey the white */

/* snap: each swipe/scroll moves exactly one screen */
/* snapping is switched on by script.js once the rows exist (html.snap), so the page never latches onto the footer while loading */
html.snap { scroll-snap-type: y mandatory; }
body[data-page="photo"] .standout { scroll-snap-align: start; scroll-snap-stop: always; margin-bottom: 0; }
body[data-page="photo"]:not(.editing) .wrap { padding-bottom: 0; }
body[data-page="photo"]:not(.editing) .footer { scroll-snap-align: end; }
.slides .block, .block.slides + .block.slides { margin-top: 0; }

.slide {
  --pad: clamp(48px, 8vh, 88px);
  --h: calc(100svh - 2 * var(--pad));                 /* tallest a photo may be */
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad) 0;
  scroll-snap-align: center; scroll-snap-stop: always;
}
.slide > .sub-head { position: absolute; top: calc(var(--pad) / 2 - .5em); left: 0; right: 0; margin: 0; padding: 0; border: 0; transform: translateY(-50%); }
.slide .photo-grid { align-items: center; }
.slide .a-top { align-self: start; } .slide .a-bottom { align-self: end; }
/* photos shrink to fit the screen height; never cropped by the screen */
.slide .frame { max-width: calc(var(--h) * var(--ar, 1.5)); margin-inline: auto; }
.slide .photo:not(.cropped) img { width: 100%; height: auto; }
.slide.has-bleed { --pad: 0px; --h: 100svh; }
.slide.has-bleed .s-bleed .cropped .frame, .slide .s-bleed.cropped .frame { max-width: none; max-height: 100svh; }
.photo-cap { margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--ink); }
@media (max-width: 640px) {
  .slide { --pad: 56px; --h: calc((100svh - 2 * var(--pad) - (var(--lines) - 1) * 10px) / var(--lines)); }
}
.photo-grid .photo:not(.cropped) .frame { aspect-ratio: auto; }

/* v25: hover a photo: it dims to 85% and its name appears bottom left */
.slide .frame { position: relative; }
.slide .photo:hover img { opacity: .85; }
.photo-name {
  position: absolute; left: 12px; bottom: 10px; z-index: 1;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: .01em; line-height: 1.2;
  color: #fff; text-shadow: 0 0 6px rgba(0,0,0,.35);
  max-width: calc(100% - 24px);
  opacity: 0; pointer-events: none;
}
.slide .photo:hover .photo-name { opacity: 1; }
@media (hover: none) { .slide .photo-name { opacity: 1; } }

/* ============================================================
   v26: album pages (album.html?c=land): black opening screen,
   one small photo in the middle, title + a line about the series
   ============================================================ */
.album-page .footer { scroll-snap-align: end; }
.album-page .wrap { padding: 0; }
.album-page .slides { padding: 0 var(--gutter); }
.album-cover {
  min-height: 100vh; min-height: 100svh;
  background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px var(--gutter) 64px; text-align: center;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.album-cover-img { width: auto; max-width: min(300px, 60vw); max-height: 34vh; object-fit: contain; display: block; }
.album-title { margin-top: clamp(22px, 3.5vh, 36px); font-size: var(--t); color: var(--red); }
.album-about {
  margin-top: 10px; max-width: 46ch;
  font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: .005em;
  color: rgba(255,255,255,.72);
}

/* v27: album pages are white: back arrow top left, wordmark centered, no menu, black text */
.album-page .top { justify-content: center; align-items: center; }
.album-page .top .back {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  font-size: var(--t); color: var(--ink);
}
.album-page .top .back:hover { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .12em; }
.album-cover { background: #fff; color: var(--ink); }
.album-title { color: var(--ink); }
.album-about { color: var(--ink); opacity: .75; }
@media (max-width: 640px) {
  .album-page .top { flex-direction: row; }
  .album-page .wordmark { width: min(240px, calc(100vw - 2 * var(--gutter) - 150px)); }
}

/* v28: quieter album opening: soft title, two-line note, minimal back link; clicks advance */
.album-page .top .back { font-size: 13px; font-weight: 400; letter-spacing: .01em; text-transform: none; color: var(--ink); opacity: .55; }
.album-page .top .back:hover { opacity: 1; text-decoration: none; }
.album-title { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.album-about { white-space: pre-line; margin-top: 8px; }
.album-page main { cursor: pointer; }

/* v29: album pages: no wordmark (just ← back); title a touch darker */
.album-page .top { min-height: calc(13px * 1.2 + 2 * var(--gutter)); }
.album-title { font-weight: 600; color: #000; }

/* ============================================================
   v30: placed grid: tall photos (ROWS 2–3) and photos pinned right (SIDE →)
   positions come from script.js; phones ignore them and just stack
   ============================================================ */
.photo-grid.placed { grid-auto-flow: row; }
.photo-grid.placed .centered { grid-column: 1 / -1 !important; }
/* in a screen with n rows, a photo spanning k of them may be k/n of the screen tall */
.slide .placed .frame { max-width: calc((var(--h) - (var(--n, 1) - var(--k, 1)) * var(--gap, 24px)) * var(--k, 1) / var(--n, 1) * var(--ar, 1.5)); }
@media (max-width: 640px) {
  .photo-grid.placed > * { grid-row: auto !important; }
  .photo-grid.placed .s-small, .photo-grid.placed .s-third { grid-column: span 1 !important; }
  .photo-grid.placed .s-half, .photo-grid.placed .s-two-thirds, .photo-grid.placed .s-full, .photo-grid.placed .s-bleed, .photo-grid.placed .centered { grid-column: 1 / -1 !important; }
  .slide .placed .frame { max-width: calc(var(--h) * var(--ar, 1.5)); }
}

/* v31: a tall photo with photos beside it takes exactly their height (cropped to fit; click it in the editor to set the focus) */
.photo-grid.placed > .tile.fit { contain: size; display: flex; flex-direction: column; align-self: stretch !important; }
.photo-grid.placed > .tile.fit .frame { flex: 1 1 auto; min-height: 0; width: 100%; max-width: none !important; aspect-ratio: auto !important; }
.photo-grid.placed > .tile.fit .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .photo-grid.placed > .tile.fit { contain: none; display: block; }
  .photo-grid.placed > .tile.fit .frame { flex: none; }
  .photo-grid.placed > .tile.fit .frame img { height: auto; }
}

/* v32: short-form titles are full sentences: shown as written, smaller and lighter */
.cover-title { text-transform: none; font-size: 13px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.cover-stat { font-size: 11px; letter-spacing: .02em; }

/* v33: short form: white page, name centered on top, a title, black text, no menu */
.sf-page { background: #fff; color: var(--ink); }
.sf-page .top { justify-content: center; }
.sf-page .wrap { padding-top: clamp(20px, 5vh, 56px); }
.sf-title { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--ink); margin-bottom: clamp(32px, 6vh, 64px); }
.sf-page .cover-title { color: var(--ink); }
.sf-page .cover-stat { color: var(--ink); opacity: .55; }
.sf-page .cover .art { background: #f2f2f2; }
@media (max-width: 640px) { .sf-page .top { flex-direction: row; } }
.sf-page .covers { margin-inline: auto; }

/* v34: home backdrop fades into white (strength set in content.js) */
.home { background: #fff; }

/* v35: album pages: series list top left (current in bold), name centered = back; cover is just the photo */
.album-page .top { justify-content: center; align-items: flex-start; }
.album-page .series {
  position: absolute; left: var(--gutter); top: var(--gutter);
  display: flex; flex-direction: column; gap: 5px;
  font-size: 13px; font-weight: 400; line-height: 1.2; color: var(--ink);
}
.album-page .series a { opacity: .45; }
.album-page .series a:hover { opacity: 1; }
.album-page .series a.on { font-weight: 700; opacity: 1; color: #000; }
@media (max-width: 640px) {
  .album-page .top { flex-direction: row; }
  .album-page .series { font-size: 12px; }
}
@media (max-width: 640px) {
  .album-page .top { flex-direction: column; align-items: center; }
  .album-page .series { position: static; order: 2; flex-direction: row; gap: 16px; margin-top: 12px; }
  .album-page .wordmark { width: min(260px, calc(100vw - 2 * var(--gutter))); }
}

/* v36: reviews and reflections: white, name centered, small photo in the middle, essays listed plainly */
.refl-page { background: #fff; color: var(--ink); }
.refl-page .top { justify-content: center; }
.refl {
  min-height: calc(100svh - 140px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px var(--gutter) 64px; text-align: center;
}
.refl-photo { display: block; width: auto; max-width: min(520px, 80vw); max-height: 44vh; object-fit: contain; }
.refl-list { margin-top: clamp(24px, 4vh, 40px); display: flex; flex-direction: column; gap: 10px; max-width: 46ch; }
.refl-list a { font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.refl-list a span { opacity: .5; }
.refl-list a:hover { text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 640px) { .refl-page .top { flex-direction: row; } }

/* v37: reflections: heading + numbered essays to the left of the photo */
.refl { flex-direction: row; align-items: center; gap: clamp(32px, 5vw, 80px); text-align: left; }
.refl-text { max-width: 40ch; }
.refl-head { font-size: 15px; font-weight: 700; color: #000; margin-bottom: 18px; }
.refl-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: none; }
.refl-list li { display: grid; grid-template-columns: 2.2em 1fr; font-size: 13px; line-height: 1.35; }
.refl-n { font-weight: 500; opacity: .45; }
.refl-list a { font-weight: 500; color: var(--ink); }
.refl-arrow { opacity: .5; }
@media (max-width: 760px) {
  .refl { flex-direction: column; align-items: center; }
  .refl-text { order: 1; } .refl-photo { order: 2; }
}

/* v38: reflections list: no numbers, everything flush left */
.refl-text { text-align: left; }
.refl-list li { display: block; }
@media (max-width: 760px) { .refl { align-items: flex-start; } .refl-photo { align-self: center; } }

/* v39: PHOTO: first photo of each series side by side, equal heights, name underneath */
.pick-page { background: #fff; color: var(--ink); }
.pick-page .top { justify-content: center; }
.pick-page:not(.editing) .wrap { padding-bottom: var(--gutter); }
.picks {
  --gap: clamp(16px, 3vw, 40px); --row-h: min(56vh, 520px); --total-ar: 2.5;
  display: flex; align-items: flex-start; gap: var(--gap);
  width: min(100%, calc(var(--row-h) * var(--total-ar) + var(--gap)));
  margin: clamp(24px, 10vh, 120px) auto 0;
}
.pick { flex: 1 1 0; min-width: 0; display: block; color: var(--ink); }
.pick img { display: block; width: 100%; height: auto; }
.pick-name { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; }
.pick:hover img { opacity: .85; }
.pick:hover .pick-name { text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 640px) { .pick-page .top { flex-direction: row; } .pick-name { font-size: 12px; } }

/* v40: about: white, name centered, no menu; portrait + text; moving news stripe at the bottom */
.about-page { background: #fff; color: var(--ink); }
.about-page .top { justify-content: center; }
.about-page .wrap { padding-bottom: 96px; }
.about-page .about { align-items: center; justify-content: center; padding-top: clamp(16px, 4vh, 48px); }
.about-head { font-size: 15px; font-weight: 700; color: #000; margin-bottom: 16px; }
.about-page .about-bio { font-size: 14px; font-weight: 400; line-height: 1.5; max-width: 46ch; margin: 0 0 14px; color: var(--ink); }
@media (min-width: 641px) {
  .about-page .about-photo { height: min(62vh, 640px); min-height: 0; }
}

.ticker {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--red); color: #fff; overflow: hidden; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 0;
}
.ticker-track { display: inline-flex; animation: ticker 90s linear infinite; }
.ticker-track > span { padding-right: 0; }
.tick-dot { display: inline-block; margin: 0 1.4em; font-size: .7em; vertical-align: .15em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation-duration: 400s; } }
@media (max-width: 640px) { .about-page .top { flex-direction: row; } .ticker { font-size: 12px; } }

/* v41: the stripe lives on the home page: faint black band, text filling its height */
.about-page .wrap { padding-bottom: var(--gutter); }
.home .ticker {
  position: absolute; z-index: 3;
  background: rgba(0,0,0,.32); color: #fff;
  font-size: clamp(15px, 1.6vw, 22px); line-height: 1; font-weight: 800; letter-spacing: .01em;
  padding: .12em 0;
  cursor: default;
}
.home .ticker .tick-dot { margin: 0 1em; font-size: .55em; vertical-align: .25em; }
/* keep the drawing's lettering clear of the stripe */
.character { bottom: calc(min(13vh, 13svh) + 32px); }
@media (max-width: 640px) { .character { bottom: calc(9svh + 30px); } }

/* v42: the stripe weaves through the drawing at face height:
   over the left of the face, under the right (a second copy of the drawing sits above it there) */
.character { bottom: min(13vh, 13svh); z-index: auto; }
.character-art { z-index: 2; }
.character-front { z-index: 4; clip-path: inset(0 0 0 48%); pointer-events: none; }
.character-type { z-index: 2; }
.home .ticker { bottom: auto; top: calc(52vh - .62em); top: calc(52svh - .62em); }
@media (max-width: 640px) {
  .character { bottom: 9svh; }
  .home .ticker { top: calc(70svh - .62em); }
}

/* v43: the stripe comes out of the mouth: it ends at the mouth (positions are % of the drawing box),
   fades out over its last stretch, and the lips are drawn over its end */
.home .character .ticker {
  left: -100vw; right: 57%; top: calc(57.5% - .6em); bottom: auto;
  font-size: calc(min(66vh, 66svh) * .04);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 4em), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 4em), transparent 100%);
}
.character-front { clip-path: inset(50% 44% 35% 29%); }
@media (max-width: 640px) {
  .home .character .ticker { font-size: calc(40svh * .04); top: calc(57.5% - .6em); }
}

/* v44: home menu without numerals, a touch lighter */
.cascade .item { grid-template-columns: auto; font-weight: 700; }
.home .ticker { font-weight: 700; }

/* v45: PLATNM WORLD logo turns slowly on a vertical axis, like a globe */
.item .logo { animation: logo-spin 14s linear infinite; transform-origin: 50% 50%; will-change: transform; }
@keyframes logo-spin { from { transform: perspective(800px) rotateY(0deg); } to { transform: perspective(800px) rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .item .logo { animation: none; } }

/* v46: stripe is just white text, regular weight, no band (a faint shadow keeps it readable on the light photo) */
.home .ticker { background: none; font-weight: 400; text-shadow: 0 0 6px rgba(0,0,0,.28); }
.home .ticker { text-transform: lowercase; letter-spacing: 0; }
.home .ticker-track { animation-duration: 45s; }   /* lower = faster */
.home .ticker { color: var(--ink); text-shadow: none; }
/* clicking the drawing or the text swaps them: drawing goes black, text goes red (and back) */
.home .character .ticker { pointer-events: auto; cursor: pointer; }
.home .character.black .ticker { color: var(--red); }

/* v47: home: drawing starts black; menu titles black, lowercase, lighter; nothing fades in */
.cascade .item { color: var(--ink); text-transform: lowercase; font-weight: 500; animation: none !important; opacity: 1; }
.cascade .item .logo { color: var(--red); }
.cascade .item > .kids { font-weight: 400; }
.home-photo { transition: none; }
/* v48: the moving text matches the drawing: red with red, black with black */
.home .character .ticker, .home .character.black .ticker { color: inherit; }

/* v49: home menu in one line spread across the top (no staircase); lighter still; options open below */
.cascade.c1 { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; left: 0; right: 0; padding-inline: var(--gutter); width: auto; }
.cascade.c1 .item, .cascade.c1 .item:not(.is-logo) { margin: 0 !important; font-weight: 400; }
.cascade .item > .kids { bottom: auto; top: 100%; padding-bottom: 0; padding-top: .4em; }
@media (max-width: 640px) {
  .cascade.c1 { flex-direction: row; flex-wrap: wrap; justify-content: space-between; row-gap: 10px; column-gap: 14px; }
  .cascade.c1 .item.is-logo { flex-basis: 100%; }
}
.tick-gap { display: inline-block; width: 3em; }
/* v50: the menu row ends where the drawing's left horn begins (drawing width = its height × 1484/1790, capped at 55vw) */
@media (min-width: 641px) {
  .cascade.c1 { right: calc(var(--gutter) + min(min(66vh, 66svh) * 0.829, 55vw)); padding-right: 0; }
}

/* v51: the name at the top of inner pages is black, or red if the home drawing was switched to red */
.wordmark { color: var(--ink); }
html.sbm-red .wordmark { color: var(--red); }

/* v52: short form credit line under the title */
.sf-title:has(+ .sf-credit) { margin-bottom: 8px; }
.sf-credit { text-align: center; font-size: 13px; font-weight: 400; color: var(--ink); opacity: .6; margin-bottom: clamp(32px, 6vh, 64px); }

/* v53: home hover options: thinner, all flush left under their title (fonts now include 300/400/600) */
.cascade .item > .kids { font-weight: 300; }
.cascade .item .kids .kid:nth-child(n) { margin-left: 0 !important; margin-right: 0 !important; }

/* v54: a cover can be a looping silent clip */
.cover .art video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
a.cover:hover .art video { transform: scale(1.03); }

/* v55: reviews & reflections reads like a blog: essay list on the left (open one bold), the essay on the right */
.refl.blog {
  display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 64ch);
  justify-content: center; align-items: start; gap: clamp(32px, 6vw, 96px);
  min-height: 0; padding: clamp(24px, 6vh, 72px) var(--gutter) 96px; text-align: left;
}
.refl.blog .refl-text { position: sticky; top: 24px; }
.refl.blog .refl-list a { font-weight: 400; }
.refl.blog .refl-list a.on { font-weight: 700; color: #000; }
.refl.blog .refl-list a:hover { text-decoration: underline; text-underline-offset: .15em; }
.essay { font-size: 16px; line-height: 1.65; color: var(--ink); }
.essay-title { font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 24px; color: #000; }
.essay p { margin: 0 0 1.1em; }
.essay h3 { font-size: 17px; font-weight: 600; margin: 1.8em 0 .6em; }
.essay img { display: block; max-width: 100%; height: auto; margin: 1.6em 0; }
.essay a { text-decoration: underline; text-underline-offset: .15em; }
.essay-empty { opacity: .5; }
.essay-source { margin-top: 2.4em !important; font-size: 13px; opacity: .6; }
@media (max-width: 760px) {
  .refl.blog { grid-template-columns: 1fr; gap: 28px; }
  .refl.blog .refl-text { position: static; }
}
