/* ─────────────────────────────────────────────────────────────
   Social & Visual page — shared components + three layout scopes
   Builds on pages.css. Square IG graphics, client grouping,
   "Follow on Instagram" phone mockup.
   Scopes:  .dir-grid  ·  .dir-spread  ·  .dir-sheet
   ───────────────────────────────────────────────────────────── */

/* ── Intro note under the page head ─────────────────────── */
.social-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
  padding: 30px 0 8px;
}
.social-intro p {
  font-family: "Newsreader", serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}
.social-intro .stat-strip {
  display: flex;
  gap: 32px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.social-intro .stat .n {
  font-family: "Newsreader", serif;
  font-size: 34px;
  line-height: 1;
  color: var(--blue);
}
.social-intro .stat .l {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Client header (shared) ─────────────────────────────── */
.client { padding: 8px 0 0; }
.client-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: baseline;
  padding: 56px 0 4px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.client-head .cnum {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-deep);
}
.client-head h2 {
  font-family: "Newsreader", serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.client-head .cdesc {
  font-family: "Newsreader", serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.roles span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ── Square graphic card (shared base) ──────────────────── */
.gfx {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.gfx .shot {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--rule);
  box-shadow: 0 14px 30px -22px rgba(20, 40, 58, 0.5);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
}
.gfx .shot::after {
  /* hover veil + open-on-instagram cue */
  content: "View on Instagram ↗";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5f0e5;
  background: linear-gradient(to top, rgba(20,40,58,0.78), rgba(20,40,58,0) 55%);
  opacity: 0;
  transition: opacity .28s ease;
}
.gfx:hover .shot { transform: translateY(-5px); box-shadow: 0 26px 44px -22px rgba(20, 40, 58, 0.55); }
.gfx:hover .shot::after { opacity: 1; }
.gfx .cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.gfx .cap .t {
  font-family: "Newsreader", serif;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
}
.gfx .cap .p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  white-space: nowrap;
}
.gfx .note {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── "Follow on Instagram" phone mockup (shared) ────────── */
.igphone {
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 26px;
  box-shadow: 0 30px 60px -30px rgba(20, 40, 58, 0.55);
  padding: 10px;
  flex: 0 0 auto;
}
.igphone .screen {
  background: #f5f0e5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.igphone .statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--ink);
}
.igphone .statusbar .dots { display: flex; gap: 4px; }
.igphone .statusbar .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); display: block; }
.igphone .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 16px 12px;
  border-bottom: 1px solid var(--rule);
}
.igphone .topbar .handle {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.igphone .topbar .handle .lock { color: var(--muted); font-size: 11px; }
.igphone .cam {
  width: 20px; height: 20px;
  border: 1.6px solid var(--ink);
  border-radius: 6px;
  position: relative;
  flex: 0 0 auto;
}
.igphone .cam::before {
  content: ""; position: absolute; inset: 4px;
  border: 1.6px solid var(--ink); border-radius: 50%;
}
.igphone .cam::after {
  content: ""; position: absolute; top: 3px; right: 3px;
  width: 2.4px; height: 2.4px; border-radius: 50%; background: var(--ink);
}
.igphone .profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}
.igphone .avatar {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--blue);
  color: #f5f0e5;
  display: flex; align-items: center; justify-content: center;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 28px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.4px var(--ochre);
}
.igphone .counts {
  display: flex;
  gap: 18px;
  flex: 1;
}
.igphone .counts .c { text-align: center; }
.igphone .counts .c b {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.igphone .counts .c span {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
}
.igphone .bio {
  padding: 0 16px 14px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
}
.igphone .bio b { font-weight: 600; }
.igphone .bio .web { color: var(--blue); display: block; margin-top: 2px; }
.igphone .follow {
  display: block;
  margin: 0 16px 16px;
  text-align: center;
  background: var(--blue);
  color: #f5f0e5;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 9px;
  border-radius: 9px;
  text-decoration: none;
  transition: background .2s;
}
.igphone .follow:hover { background: var(--blue-deep); }
.igphone .feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-top: 1px solid var(--rule);
}
.igphone .feed a {
  aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  background-size: cover;
  background-position: center;
  display: block;
}
/* Spark Wellness phone — real profile detail */
.igphone .avatar { background-size: cover; background-position: center; }
.igphone .namek { padding: 2px 16px 6px; }
.igphone .namek .nm { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 14px; color: var(--ink); }
.igphone .namek .nm .pron { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.igphone .namek .cat { font-family: "IBM Plex Sans", sans-serif; font-size: 12px; color: var(--muted); margin-top: 2px; }
.igphone .biolink {
  display: block; padding: 0 16px 14px;
  font-family: "IBM Plex Sans", sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--blue); text-decoration: none;
}
.igphone .biolink:hover { text-decoration: underline; }
.igphone .highlights { display: flex; gap: 12px; padding: 6px 16px 18px; border-top: 1px solid var(--rule); }
.igphone .hl { text-align: center; flex: 1; min-width: 0; }
.igphone .hl .ring {
  width: 48px; height: 48px; border-radius: 50%;
  background: #c4e3ea; border: 1px solid rgba(22,32,42,0.18);
  margin: 0 auto 5px;
}
.igphone .hl span {
  display: block; font-family: "IBM Plex Sans", sans-serif; font-size: 9px;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.igphone-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}

/* "More clients coming" placeholder rail */
.more-clients {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding: 22px 26px;
  border: 1px dashed var(--rule);
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.more-clients .plus {
  width: 26px; height: 26px; flex: 0 0 auto;
  border: 1px solid var(--ochre); color: var(--ochre-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
   DIRECTION A — FEED GRID
   Tidy gallery beside a sticky Instagram phone.
   ═══════════════════════════════════════════════════════════ */
.dir-grid .client-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 40px 0 16px;
  align-items: start;
}
.dir-grid .gfx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}
.dir-grid .igcol {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   DIRECTION B — EDITORIAL SPREADS
   Alternating full-width feature spreads + closing follow band.
   ═══════════════════════════════════════════════════════════ */
.dir-spread .client-head {
  grid-template-columns: 1fr;
  gap: 6px;
}
.dir-spread .client-head .cnum {
  font-size: 13px;
}
.dir-spread .client-head h2 { font-size: 52px; }
.dir-spread .spreads { padding: 16px 0 0; }
.dir-spread .spread {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--rule);
}
.dir-spread .spread:nth-child(even) { direction: rtl; }
.dir-spread .spread:nth-child(even) > * { direction: ltr; }
.dir-spread .spread .shot {
  display: block;
  width: 100%;
  height: auto;          /* show the whole graphic — never crop */
  border: 1px solid var(--rule);
  box-shadow: 0 28px 56px -28px rgba(20, 40, 58, 0.55);
  transition: transform .3s ease;
}
.dir-spread .spread a.shot-link { display: block; align-self: center; }
.dir-spread .spread a.shot-link:hover .shot { transform: scale(1.012); }
.dir-spread .spread .meta-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin-bottom: 16px;
}
.dir-spread .spread h3 {
  font-family: "Newsreader", serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.dir-spread .spread p {
  font-family: "Newsreader", serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 46ch;
  text-wrap: pretty;
}
.dir-spread .spread .tagline {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.dir-spread .spread .tagline .open { color: var(--blue); }
.dir-spread .spread .tagline .open:hover { color: var(--blue-deep); }
.dir-spread .follow-band {
  margin-top: 24px;
  padding: 64px 56px;
  background: var(--blue-deep);
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: center;
}
.dir-spread .follow-band .copy .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 14px;
}
.dir-spread .follow-band .copy h3 {
  font-family: "Newsreader", serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  color: #f5f0e5;
  margin: 0 0 14px;
}
.dir-spread .follow-band .copy h3 em { font-style: italic; color: var(--ochre); }
.dir-spread .follow-band .copy p {
  font-family: "Newsreader", serif;
  font-size: 17px;
  line-height: 1.55;
  color: #c9c0ae;
  margin: 0;
  max-width: 40ch;
}
.dir-spread .follow-band .igphone { box-shadow: 0 30px 70px -28px rgba(0,0,0,0.6); }
.dir-spread .follow-band .igphone-label { color: #8c9aa3; }

/* ── Drifting gallery carousel (tideline-style marquee) ── */
.gallery-rail {
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  margin: 12px 0 0;
  padding: 16px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
}
.gallery-track {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 0 40px;
  animation: gdrift 52s linear infinite;
}
.gallery-rail:hover .gallery-track { animation-play-state: paused; }
@keyframes gdrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gallery-track { animation: none; } }

.gframe {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.gframe img {
  height: 400px;
  width: auto;
  display: block;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  box-shadow: 0 18px 38px -24px rgba(20, 40, 58, 0.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gframe video {
  height: 400px; width: 225px; aspect-ratio: 9 / 16; object-fit: cover; display: block; align-self: flex-start;
  border: 1px solid var(--rule); background: var(--paper-deep);
  box-shadow: 0 18px 38px -24px rgba(20, 40, 58, 0.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gframe { position: relative; }
.gframe.gvideo { width: min-content; }
.gframe.gvideo .cap { flex-wrap: wrap; row-gap: 6px; }
.gframe .views {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  color: var(--blue-deep); font-weight: 500;
}
.gframe .views::before { content: ""; width: 12px; height: 8px; border: 1.5px solid currentColor; border-radius: 50% / 60%; background: radial-gradient(circle, currentColor 0 1.6px, transparent 2px); }
.gframe .views + .p { margin-left: 0; }
.gframe:hover video { transform: translateY(-5px); box-shadow: 0 28px 50px -24px rgba(20, 40, 58, 0.55); }
.gframe:hover img { transform: translateY(-5px); box-shadow: 0 28px 50px -24px rgba(20, 40, 58, 0.55); }
.gframe .cap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--rule);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.gframe .cap .p { color: var(--ochre-deep); white-space: nowrap; }

/* single static frame (clients with one graphic) */
.gsingle { padding: 16px 0 4px; }
.gsingle .gframe { width: fit-content; }
.gsingle .gframe img { height: 460px; }

/* per-client Instagram link (non-phone clients) */
.client-head .ig-line {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; align-self: flex-start; width: fit-content;
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  text-decoration: none; border-bottom: 1px solid var(--ochre);
  padding-bottom: 3px; transition: color .2s;
}
.client-head .ig-line:hover { color: var(--ochre-deep); }

/* ── Roster: clients listed by name (no graphics yet) ───── */
.client-roster {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
}
.client-roster .roster-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ochre-deep); padding: 26px 0 8px;
}
.roster-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.roster-item .rtop {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 10px;
}
.roster-item h3 {
  font-family: "Newsreader", serif; font-weight: 400; font-size: 30px;
  line-height: 1.1; letter-spacing: -0.015em; margin: 0;
}
.roster-item .period {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.roster-item .role {
  font-family: "Newsreader", serif; font-size: 16.5px; line-height: 1.5;
  color: var(--muted); margin: 0; max-width: 64ch; text-wrap: pretty;
}
.roster-item .ig {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); text-decoration: none;
  white-space: nowrap; border-bottom: 1px solid var(--ochre);
  padding-bottom: 3px; align-self: start; transition: color .2s;
}
.roster-item .ig:hover { color: var(--ochre-deep); }

/* ── Coursework / projects · booklets ───────────────────── */
.coursework {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding-top: 26px;
}
.coursework .roster-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ochre-deep); margin-bottom: 6px;
}
.coursework .ck-intro {
  font-family: "Newsreader", serif; font-size: 17px; line-height: 1.5;
  color: var(--muted); max-width: 60ch; margin: 0 0 8px; text-wrap: pretty;
}
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 52px 56px;
  padding: 44px 0 8px;
  perspective: 1800px;
}
.project { width: 230px; }
.project .booklet {
  display: block;
  text-decoration: none;
  transform-style: preserve-3d;
}
.project .book {
  position: relative;
  width: 230px;
  aspect-ratio: 432 / 540;
  border-radius: 2px 4px 4px 2px;
  background-color: var(--paper-deep);
  background-size: cover;
  background-position: center;
  transform: rotateY(-16deg);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
  box-shadow:
    /* stacked page edges on the right */
    1px 1px 0 #efe7d6, 2px 1px 0 #d8cfba, 3px 2px 0 #efe7d6,
    4px 2px 0 #d8cfba, 5px 3px 0 #efe7d6, 6px 3px 0 #cabfa6,
    /* drop shadow */
    14px 18px 34px -14px rgba(20,40,58,0.55);
}
.project .book::before {
  /* spine shading at the binding (left) */
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0; width: 22px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg,
    rgba(20,40,58,0.34) 0%, rgba(20,40,58,0.10) 28%,
    rgba(255,255,255,0.16) 55%, rgba(20,40,58,0) 100%);
}
.project .book::after {
  /* subtle sheen across the cover */
  content: "";
  position: absolute; inset: 0; border-radius: 2px 4px 4px 2px;
  background: linear-gradient(105deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 34%);
  pointer-events: none;
}
.project .booklet:hover .book {
  transform: rotateY(-4deg) translateZ(8px);
  box-shadow:
    1px 1px 0 #efe7d6, 2px 1px 0 #d8cfba, 3px 2px 0 #efe7d6,
    4px 2px 0 #d8cfba, 5px 3px 0 #efe7d6, 6px 3px 0 #cabfa6,
    22px 30px 48px -16px rgba(20,40,58,0.6);
}
/* placeholder booklet (awaiting upload) */
.project .book.empty {
  background: var(--paper);
  border: 1px dashed var(--rule);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 14px 18px 30px -18px rgba(20,40,58,0.35);
}
.project .book.empty::before, .project .book.empty::after { display: none; }
.project .book.empty .ph {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  text-align: center; padding: 0 18px;
}
.project .book.empty .plus {
  width: 34px; height: 34px;
  border: 1px solid var(--ochre); color: var(--ochre-deep);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.project .pmeta { margin-top: 26px; }
.project .pmeta .pt {
  font-family: "Newsreader", serif; font-size: 19px; line-height: 1.2;
  color: var(--ink); margin: 0 0 6px; text-wrap: pretty;
}
.project .pmeta .pk {
  font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ochre-deep);
  margin-bottom: 8px;
}
.project .pmeta .pd {
  font-family: "IBM Plex Sans", sans-serif; font-size: 13px; line-height: 1.45;
  color: var(--muted); margin: 0 0 10px; max-width: 30ch;
}
.project .pmeta .open {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  text-decoration: none; border-bottom: 1px solid var(--ochre);
  padding-bottom: 3px; transition: color .2s;
}
.project .pmeta .open:hover { color: var(--ochre-deep); }

/* ── Zine reader pages ──────────────────────────────────── */
.zine-read { max-width: 1000px; margin: 0 auto; }
.zine-read .z-head { padding: 8px 0 16px; max-width: 720px; }
.zine-read .z-kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre-deep);
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.zine-read .z-kicker::before { content: ""; width: 28px; height: 1px; background: var(--ochre); }
.zine-read h1 {
  font-family: "Newsreader", serif; font-weight: 400; font-size: 46px;
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: pretty;
}
.zine-read h1 em { font-style: italic; color: var(--ochre-deep); }
.zine-read .z-desc {
  font-family: "Newsreader", serif; font-size: 18px; line-height: 1.55;
  color: var(--muted); margin: 0 0 18px; max-width: 60ch; text-wrap: pretty;
}
.zine-read .z-note {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; line-height: 1.5;
  letter-spacing: 0.04em; color: var(--muted);
  border-left: 2px solid var(--ochre); padding: 2px 0 2px 16px;
  margin: 0 0 22px; max-width: 60ch;
}
.zine-read .z-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-bottom: 8px; }
.zine-read .z-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 11px 18px; border-radius: 4px; cursor: pointer; border: 0;
}
.zine-read .z-btn.primary { background: var(--blue); color: #f5f0e5; transition: background .2s; }
.zine-read .z-btn.primary:hover { background: var(--blue-deep); }
.zine-read .z-btn.ghost { color: var(--blue); border: 1px solid var(--rule); transition: border-color .2s, color .2s; }
.zine-read .z-btn.ghost:hover { border-color: var(--ochre); color: var(--ochre-deep); }

/* ── Flip-through booklet (spread model) ────────────────── */
.zbook-root { margin: 28px 0 8px; outline: none; }
.zbook-stage {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.zbook-nav {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.zbook-nav:hover { border-color: var(--ochre); color: var(--ochre-deep); }
.zbook-nav:disabled { opacity: 0.25; cursor: default; }

.zbook {
  --ph: 520px;            /* page height; width derived from --ratio */
  position: relative;
  display: flex;
  width: max-content;     /* sized by its halves: 2 pages open, 1 page closed */
  height: var(--ph);
  perspective: 2800px;
  box-shadow: 0 30px 60px -34px rgba(20,40,58,0.6);
}
.zhalf {
  position: relative; flex: 0 0 auto;
  width: calc(var(--ph) * var(--ratio)); height: 100%;
  background: #f5f0e5; overflow: hidden;
}
.zhalf img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.zhalf.blank { box-shadow: inset 0 0 0 1px var(--rule); background: var(--paper-deep); }
.zhalf.blank img { display: none; }
.zhalf.hidden img { visibility: hidden; }
.zhalf.left { cursor: pointer; }
.zhalf.right { cursor: pointer; }
.zbook-root.at-start .zhalf.left { cursor: default; }
.zbook-root.at-end .zhalf.right { cursor: default; }
/* closed book: show a single centered page, no empty facing page */
.zbook-root.at-start:not(.flipping) .zhalf.left { display: none; }
.zbook-root.at-end:not(.flipping) .zhalf.right { display: none; }
/* spine shading on inner edges (only while the book is open) */
.zhalf::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; opacity: 1;
}
.zhalf.left::after { right: 0; background: linear-gradient(270deg, rgba(20,40,58,0.16), transparent); }
.zhalf.right::after { left: 0; background: linear-gradient(90deg, rgba(20,40,58,0.16), transparent); }
.zbook-root.at-start:not(.flipping) .zhalf.right::after,
.zbook-root.at-end:not(.flipping) .zhalf.left::after { opacity: 0; }

/* transient turning page */
.zflip {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.4,0,.2,1);
  z-index: 20; pointer-events: none;
}
.zflip .zface {
  position: absolute; inset: 0; backface-visibility: hidden;
  background: #fff; overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(20,40,58,0.55);
}
.zflip .zface img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.zflip .fback { transform: rotateY(180deg); }

.zbook-bar {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 22px;
}
.zbook-count {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  min-width: 14ch; text-align: center;
}
.zbook-btn {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  background: none; border: 0; border-bottom: 1px solid var(--ochre);
  padding: 0 0 3px; cursor: pointer; transition: color .2s;
}
.zbook-btn:hover { color: var(--ochre-deep); }

@media (max-width: 1000px) { .zbook { --ph: 420px; } }
@media (max-width: 720px) {
  .zbook { --ph: 300px; }
  .zbook-nav { width: 38px; height: 38px; font-size: 18px; }
}
@media (max-width: 460px) { .zbook { --ph: 230px; } }
@media (prefers-reduced-motion: reduce) { .zflip { transition: none; } }

/* ═══════════════════════════════════════════════════════════
   DIRECTION C — CONTACT SHEET
   Darkroom proof-sheet wall: plate numbers, tight rules.
   ═══════════════════════════════════════════════════════════ */
.dir-sheet .client-head { border-top: none; margin-top: 24px; }
.dir-sheet .sheet {
  margin: 24px 0 0;
  padding: 40px 40px 44px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
}
.dir-sheet .sheet-strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--rule);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dir-sheet .sheet-strip .roll { color: var(--ochre-deep); }
.dir-sheet .sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 30px 24px;
}
.dir-sheet .plate { display: flex; flex-direction: column; }
.dir-sheet .plate .shot {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  background-size: cover;
  background-position: center;
  border: 6px solid #f5f0e5;
  outline: 1px solid var(--rule);
  box-shadow: 0 10px 24px -18px rgba(20,40,58,0.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.dir-sheet .plate .shot::after {
  content: "↗";
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,40,58,0.82);
  color: #f5f0e5;
  font-size: 13px;
  opacity: 0;
  transition: opacity .25s ease;
}
.dir-sheet .plate:hover .shot { transform: translateY(-4px); box-shadow: 0 18px 32px -18px rgba(20,40,58,0.55); }
.dir-sheet .plate:hover .shot::after { opacity: 1; }
.dir-sheet .plate .frameline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dir-sheet .plate .frameline .no { color: var(--ochre-deep); }
.dir-sheet .plate .ptitle {
  font-family: "Newsreader", serif;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 7px;
}
.dir-sheet .plate.ig {
  justify-content: center;
  align-items: center;
}
.dir-sheet .plate.ig .igphone { width: 100%; max-width: 260px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .social-intro { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .social-intro .stat-strip { justify-content: flex-start; gap: 28px; }
  .client-head { grid-template-columns: 1fr; gap: 12px; }

  .dir-grid .client-body { grid-template-columns: 1fr; gap: 40px; }
  .dir-grid .igcol { position: static; order: -1; }

  .dir-spread .client-head h2 { font-size: 40px; }
  .dir-spread .spread { grid-template-columns: 1fr; gap: 26px; padding: 40px 0; }
  .dir-spread .spread, .dir-spread .spread:nth-child(even) { direction: ltr; }
  .dir-spread .follow-band { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px; justify-items: start; }
  .dir-spread .follow-band .copy h3 { font-size: 36px; }
  .gframe img, .gframe video { height: 300px; }
  .gframe video { width: 169px; }
  .gsingle .gframe img { height: 340px; }
  .gallery-track { gap: 18px; }

  .dir-sheet .sheet { padding: 26px 22px 30px; }
  .dir-sheet .sheet-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 18px; }
}
@media (max-width: 560px) {
  .dir-grid .gfx-grid { grid-template-columns: 1fr; gap: 32px; }
  .igphone { width: 280px; }
  .dir-sheet .sheet-grid { grid-template-columns: 1fr 1fr; }
}

/* ── In-gallery Instagram-style carousel ───────────────── */
.gcarousel .gc-view {
  position: relative; height: 400px; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--rule); background: var(--paper-deep);
  box-shadow: 0 18px 38px -24px rgba(20, 40, 58, 0.5); touch-action: pan-y; user-select: none;
}
.gcarousel .gc-strip { display: flex; height: 100%; transition: transform .45s cubic-bezier(.3,.7,.2,1); }
.gcarousel .gc-strip img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; border: 0; box-shadow: none; transform: none !important; pointer-events: none; }
.gcarousel .gc-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(245, 240, 229, .92); color: var(--ink); font-size: 20px; line-height: 1; padding: 0 0 2px;
  box-shadow: 0 2px 8px rgba(20, 40, 58, .25); transition: opacity .2s;
}
.gcarousel .gc-prev { left: 10px; } .gcarousel .gc-next { right: 10px; }
.gcarousel.at-start .gc-prev, .gcarousel.at-end .gc-next { opacity: 0; pointer-events: none; }
.gcarousel .gc-count {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em;
  color: #f5f0e5; background: rgba(22, 32, 42, .7); padding: 4px 8px 3px; border-radius: 999px;
}
.gcarousel .gc-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 5px; }
.gcarousel .gc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(245, 240, 229, .55); box-shadow: 0 0 2px rgba(20,40,58,.4); transition: background .2s; }
.gcarousel .gc-dots i.on { background: #f5f0e5; }
@media (max-width: 900px) { .gcarousel .gc-view { height: 300px; } }
@media (prefers-reduced-motion: reduce) { .gcarousel .gc-strip { transition: none; } }

/* ── Embedded Instagram reel ───────────────────────────── */
.greel { width: 326px; }
.greel .greel-view { height: 400px; overflow: hidden; border: 1px solid var(--rule); background: #fff; box-shadow: 0 18px 38px -24px rgba(20, 40, 58, 0.5); }
.greel iframe { display: block; width: 326px; height: 560px; border: 0; }
.greel .cap a.p { text-decoration: none; }
.greel .cap a.p:hover { color: var(--blue); }
@media (max-width: 900px) { .greel .greel-view { height: 300px; } }

/* ── Two-phone follow band ─────────────────────────────── */
.dir-spread .follow-band { grid-template-columns: minmax(0, 1fr) auto; }
.igphones { display: flex; gap: 28px; align-items: stretch; }
.igphones .igcol { display: flex; flex-direction: column; align-items: center; }
.igphones .igphone { flex: 1; display: flex; width: 300px; }
.igphones .igphone .screen { flex: 1; display: flex; flex-direction: column; }
.igphones .igphone .feed { margin-top: auto; }
.igphone .topbar .handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.igphone .hl .ring { background-size: 118%; background-position: center; }
.igphone .highlights { gap: 8px; }
.igphone .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .dir-spread .follow-band { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 720px) {
  .igphones { flex-direction: column; gap: 32px; }
  .igphones .igphone { flex: none; }
}

/* ── Facebook reel + post stats ────────────────────────── */
.gfb { width: 225px; }
.gfb .gfb-view { width: 225px; height: 400px; overflow: hidden; border: 1px solid var(--rule); background: #111; box-shadow: 0 18px 38px -24px rgba(20, 40, 58, 0.5); }
.gfb iframe { display: block; width: 225px; height: 400px; border: 0; }
.gfb .cap { flex-wrap: wrap; row-gap: 6px; }
.gfb .cap a.p { text-decoration: none; }
.gfb .cap a.p:hover { color: var(--blue); }
.gstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 8px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--rule); }
.gstats div { min-width: 0; }
.gstats div:first-child { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
.gstats div:first-child dd { font-size: 26px; }
.gstats dt { white-space: nowrap; }
@media (max-width: 900px) { .gstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gstats dt { font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gstats dd { margin: 2px 0 0; font-family: "Newsreader", serif; font-size: 20px; line-height: 1; color: var(--ink); }
@media (max-width: 900px) { .gfb, .gfb .gfb-view, .gfb iframe { width: 169px; } .gfb .gfb-view, .gfb iframe { height: 300px; } }

/* ── Facebook page mockup (NCH) ────────────────────────── */
.fbphone .topbar { gap: 10px; justify-content: flex-start; }
.fbphone .topbar .back { font-size: 22px; line-height: 1; color: var(--ink); }
.fbphone .topbar .handle { flex: 1; font-size: 13px; }
.fbphone .topbar .srch { width: 13px; height: 13px; border: 1.6px solid var(--ink); border-radius: 50%; position: relative; flex: 0 0 auto; }
.fbphone .topbar .srch::after { content: ""; position: absolute; width: 6px; height: 1.6px; background: var(--ink); right: -5px; bottom: -2px; transform: rotate(45deg); }
.fbphone .fb-cover { height: 118px; background-size: cover; background-position: center top; }
.fbphone .fb-id { padding: 0 16px 10px; }
.fbphone .fb-id .avatar { width: 76px; height: 76px; margin-top: -40px; border: 3px solid #f5f0e5; box-shadow: none; background-color: #fff; }
.fbphone .fb-name { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 17px; line-height: 1.2; color: var(--ink); margin-top: 8px; }
.fbphone .fb-counts { font-family: "IBM Plex Sans", sans-serif; font-size: 12px; color: var(--muted); margin-top: 4px; }
.fbphone .fb-counts b { color: var(--ink); font-weight: 600; }
.fbphone .fb-btns .follow { margin: 0 16px 14px; }
.fbphone .fb-intro { padding: 12px 16px 12px; border-top: 1px solid var(--rule); font-family: "IBM Plex Sans", sans-serif; }
.fbphone .fb-h { font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.fbphone .fb-intro p { font-size: 12px; line-height: 1.45; color: var(--ink); margin: 0 0 8px; }
.fbphone .fb-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.fbphone .fb-row .ic { width: 16px; height: 16px; border-radius: 50%; background: var(--paper-deep); color: var(--ink); font-size: 9px; font-weight: 600; display: grid; place-items: center; flex: 0 0 auto; }
.fbphone .fb-tabs { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--rule); font-family: "IBM Plex Sans", sans-serif; font-size: 11.5px; color: var(--muted); }
.fbphone .fb-tabs span { padding: 5px 10px; border-radius: 999px; }
.fbphone .fb-tabs .on { background: color-mix(in oklab, var(--sky) 70%, #fff); color: var(--blue-deep); font-weight: 600; }

.igphones .igphone-label { white-space: nowrap; }
