/* =============================================================
   ICHIGO STUDIO — DESK COMPONENT STYLES ("The Desk")
   Shared across index, about, now, log, press, uses, 404.
   Everything that isn't page-specific lives here.
   ============================================================= */

/* ---------- NAV ---------- */
nav.desk-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92,56,44,0.12);
  box-shadow: 0 10px 28px -24px rgba(38,23,27,0.5);
}
nav.desk-nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
nav.desk-nav .brand img {
  width: 28px; height: 28px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 4px 8px rgba(240,68,98,0.18));
}
nav.desk-nav .brand .dot { color: var(--berry); }

nav.desk-nav .nav-links {
  display: flex; gap: 4px; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
nav.desk-nav .nav-links a {
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color .15s, background .15s, transform .15s var(--ease-out);
}
nav.desk-nav .nav-links a:hover,
nav.desk-nav .nav-links a.active {
  color: var(--ink);
  background: rgba(240,68,98,0.10);
  transform: translateY(-1px);
}
nav.desk-nav .nav-links a.cta {
  background: var(--berry);
  color: #fff;
  padding: 10px 16px;
  margin-left: 6px;
  box-shadow: 0 10px 18px -14px rgba(240,68,98,0.9);
}
nav.desk-nav .nav-links a.cta:hover { background: var(--ink); color: var(--paper); }
nav.desk-nav .nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
nav.desk-nav .nav-toggle:hover { background: rgba(31,22,24,0.06); }
nav.desk-nav .nav-toggle .bars,
nav.desk-nav .nav-toggle .bars::before,
nav.desk-nav .nav-toggle .bars::after {
  content: ""; display: block;
  width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s var(--ease-out), opacity .15s;
}
nav.desk-nav .nav-toggle .bars { position: relative; }
nav.desk-nav .nav-toggle .bars::before { position: absolute; top: -6px; }
nav.desk-nav .nav-toggle .bars::after  { position: absolute; top: 6px;  }
nav.desk-nav.nav-open .nav-toggle .bars { background: transparent; }
nav.desk-nav.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
nav.desk-nav.nav-open .nav-toggle .bars::after  { top: 0; transform: rotate(-45deg); }

/* ---------- STAGE ---------- */
.stage {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(34px, 4.5vw, 64px) clamp(20px, 3.5vw, 44px) clamp(72px, 10vw, 120px);
  position: relative;
}

/* ---------- MONO HELPER ---------- */
.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--ink-soft);
}
.mono--berry { color: var(--berry); }
.mono--cream { color: rgba(250,244,236,0.75); }
.hand { font-family: var(--font-script); }

/* ---------- FILING STRIP (thin row above a headline) ---------- */
.filing {
  display: flex;
  gap: 24px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 12px;
}
.stamp {
  border: 1.5px solid var(--berry);
  color: var(--berry-deep);
  padding: 4px 11px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  background: linear-gradient(135deg, rgba(255,211,220,0.82), rgba(255,232,168,0.5));
  display: inline-block;
  box-shadow: 0 7px 14px -12px rgba(185,39,69,0.8);
}

/* ---------- SECTION RULE ---------- */
.rule-head {
  margin: clamp(72px, 9vw, 118px) 0 clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(72px, 0.18fr) minmax(0, 1fr) minmax(160px, 0.32fr);
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  position: relative;
  padding-block: 12px;
  border-top: 1px dashed rgba(92,56,44,0.18);
  border-bottom: 1px dashed rgba(92,56,44,0.10);
}
.rule-head .folio {
  font-family: var(--font-mono);
  color: var(--berry);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.rule-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 5.5vw, 84px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.68);
}
.rule-head h2 em { font-style: italic; color: var(--berry); }
.rule-head .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0;
  text-align: right;
  max-width: 26ch;
  line-height: 1.5;
}

/* ---------- MARQUEE ---------- */
.marquee {
  margin: clamp(40px, 6vw, 72px) calc(-1 * clamp(20px, 3.5vw, 40px)) 0;
  background:
    linear-gradient(90deg, var(--ink), #3A2028 44%, var(--ink));
  color: var(--paper);
  padding: 22px 0;
  transform: rotate(-1.2deg);
  overflow: hidden;
  border-top: 2px solid var(--berry);
  border-bottom: 2px solid var(--butter);
  max-width: 100vw;
  box-shadow: 0 22px 44px -34px rgba(38,23,27,0.8);
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0;
  animation: deskScroll 38s linear infinite;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--butter); display: inline-block; }
.marquee-track em { color: #ffb5c2; font-style: italic; }
@keyframes deskScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- POLAROID ---------- */
.polaroid {
  position: relative;
  background: var(--polaroid);
  padding: 18px 18px 64px;
  min-width: 0;
  box-shadow:
    0 22px 44px -20px rgba(88,46,35,0.42),
    0 2px 0 rgba(255,255,255,0.75) inset,
    0 2px 6px rgba(38,23,27,0.08);
  transform: rotate(2.2deg);
  transition: transform .4s var(--ease-out);
  border: 1px solid rgba(92,56,44,0.08);
  align-self: start;
}
.polaroid:hover { transform: rotate(0deg) translateY(-4px); }
.polaroid .tape {
  position: absolute;
  background: rgba(246,198,74,0.82);
  box-shadow: 0 2px 4px rgba(38,23,27,0.08);
  mix-blend-mode: multiply;
}
.polaroid .tape.t1 { top: -14px; left: 20%;  width: 110px; height: 28px; transform: rotate(-4deg); border-radius: 2px; }
.polaroid .tape.t2 { top: -12px; right: 14%; width: 90px;  height: 24px; transform: rotate(5deg);  background: rgba(255,149,111,0.56); border-radius: 2px; }

.pol-photo {
  aspect-ratio: 4/5;
  background:
    linear-gradient(160deg, var(--berry), var(--peach) 55%, var(--butter));
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.pol-photo::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.24), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.13) 0 1px, transparent 1px 12px);
}
.pol-photo img {
  width: 92%;
  position: relative;
  filter: drop-shadow(0 20px 36px rgba(0,0,0,0.28));
  animation: deskFloaty 6s ease-in-out infinite;
}
@keyframes deskFloaty {
  0%,100% { transform: translateY(0);    }
  50%     { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .pol-photo img { animation: none; } }

.pol-caption {
  position: absolute;
  bottom: 16px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--pencil);
  font-weight: 600;
}
.pol-caption .mono { font-size: 10px; color: var(--ink-faint); }
.pol-caption .hand-date { transform: rotate(-3deg); }

.bubble {
  position: absolute;
  top: -14px; left: -52px;
  width: 170px;
  background: var(--polaroid);
  border: 1.5px solid var(--ink);
  padding: 12px 14px;
  border-radius: var(--r-lg);
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  line-height: 1.15;
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px -10px rgba(38,23,27,0.3);
}
.bubble::after {
  content: ""; position: absolute; bottom: -10px; right: 22px;
  width: 14px; height: 14px;
  background: var(--polaroid);
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}
.bubble b { color: var(--berry); font-style: italic; font-family: var(--font-display); font-weight: 500; }

/* ---------- PINBOARD ---------- */
.pinboard {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 24px 0 56px;
  align-items: start;
}
.pin {
  position: relative;
  background: var(--card);
  padding: 14px 14px 20px;
  border-radius: 7px;
  box-shadow: var(--shadow-pin);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  cursor: pointer;
  border: 1px solid rgba(92,56,44,0.08);
  display: flex; flex-direction: column;
}
.pin::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(92,56,44,0.10);
  border-radius: 5px;
  pointer-events: none;
}
.pin:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: var(--shadow-pin-hover);
  z-index: 3;
}
.pin .thumb {
  aspect-ratio: 4/3;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(92,56,44,0.13);
  position: relative;
  background: var(--paper);
}
.pin .thumb svg,
.pin .thumb img { width: 100%; height: 100%; display: block; transition: transform .6s var(--ease-out); object-fit: cover; }
.pin:hover .thumb svg,
.pin:hover .thumb img { transform: scale(1.06); }
.pin .body { padding: 16px 4px 2px; }
.pin .yr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.pin h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 8px;
}
.pin p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.pin .tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* pushpin */
.pin .pushpin {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ff7a8a, var(--berry-deep));
  box-shadow: 0 2px 4px rgba(38,23,27,0.3), inset 0 -2px 3px rgba(0,0,0,0.25);
  z-index: 2;
}
.pin.pin--butter .pushpin { background: radial-gradient(circle at 32% 30%, #ffd86a, #B88A00); }
.pin.pin--mint   .pushpin { background: radial-gradient(circle at 32% 30%, #65cfc6, #1B6B65); }
.pin.pin--violet .pushpin { background: radial-gradient(circle at 32% 30%, #b08ef0, #4E2AA3); }

/* tape strips */
.pin .tape-top {
  position: absolute; top: -12px; left: 20px; right: 20px; height: 22px;
  background: rgba(246,198,74,0.78);
  mix-blend-mode: multiply;
  box-shadow: 0 2px 4px rgba(38,23,27,0.08);
  border-radius: 2px;
}
.pin.tape-pink .tape-top { background: rgba(255,149,111,0.58); }

.pin .margin-note {
  position: absolute;
  font-family: var(--font-script);
  font-size: 18px;
  font-weight: 600;
  color: var(--berry-deep);
  transform: rotate(-8deg);
  pointer-events: none;
  max-width: 140px;
  line-height: 1.1;
  right: -14px; top: 22%;
}

.pin .featured-flag {
  position: absolute; top: 18px; left: 18px;
  background: var(--butter);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  transform: rotate(-4deg);
  box-shadow: 0 4px 10px rgba(38,23,27,0.2);
  font-weight: 700;
  z-index: 2;
}

/* irregular pinboard layout */
.pin-1  { grid-column: span 6;  transform: rotate(-1.1deg); }
.pin-2  { grid-column: span 3;  transform: rotate(1.2deg) translateY(28px); }
.pin-3  { grid-column: span 3;  transform: rotate(-0.9deg); }
.pin-4  { grid-column: span 4;  transform: rotate(1deg); }
.pin-5  { grid-column: span 4;  transform: rotate(-0.7deg) translateY(-18px); }
.pin-7  { grid-column: span 4;  transform: rotate(1.1deg); }
.pin-8  { grid-column: span 3;  transform: rotate(-0.9deg); }
.pin-9  { grid-column: span 3;  transform: rotate(1.1deg) translateY(20px); }
.pin-10 { grid-column: span 3;  transform: rotate(-1deg); }
.pin-6  { grid-column: span 3;  transform: rotate(0.7deg) translateY(-12px); }

/* floating notecard */
.notecard {
  position: absolute;
  width: 240px;
  background: var(--sticky);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
  z-index: 4;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pencil);
  border: 1px solid rgba(92,56,44,0.08);
  border-radius: 5px;
}
.notecard::before {
  content: "";
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(3deg);
  width: 96px; height: 18px;
  background: rgba(255,149,111,0.56); mix-blend-mode: multiply;
  border-radius: 2px;
}
.notecard h4 {
  font-family: var(--font-script);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
}
.notecard em { color: var(--berry-deep); font-style: italic; font-family: var(--font-display); }

/* ---------- RIBBON ---------- */
.ribbon {
  position: relative;
  margin: 120px 0 96px;
  padding: 64px 48px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.34), transparent 40%),
    linear-gradient(100deg, var(--butter-soft), var(--peach-soft));
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  transform: rotate(-0.4deg);
  box-shadow: var(--shadow-lg);
}
.ribbon .mono { margin-bottom: 24px; font-size: 12px; }
.ribbon h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.ribbon h2 em { color: var(--berry); }
.ribbon h2 .faded { color: rgba(31,22,24,0.35); font-style: italic; }

.ribbon-arrow {
  position: absolute;
  right: -22px; top: -22px;
  width: 120px; height: 120px;
  background: linear-gradient(135deg, var(--berry), var(--peach));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  padding: 10px;
  transform: rotate(10deg);
  box-shadow: 0 8px 16px -4px rgba(38,23,27,0.35);
}

/* ---------- SHELF / TIMELINE ---------- */
.shelf-wrap { margin: 96px 0 0; position: relative; }
.shelf {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.08fr 1fr 0.92fr;
  gap: 18px;
  padding: 32px 0 40px;
  position: relative;
}
.shelf::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  height: 16px;
  background: linear-gradient(to bottom, var(--paper-shade), rgba(227,190,155,0.18));
  border-radius: 2px;
  box-shadow:
    0 2px 3px rgba(38,23,27,0.12),
    inset 0 2px 4px rgba(255,255,255,0.4);
  z-index: 0;
}
.book {
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: transform .3s var(--ease-out);
  border: 1px solid rgba(92,56,44,0.10);
  border-radius: 7px;
}
.book:nth-child(1) { transform: rotate(-1deg); }
.book:nth-child(2) { transform: rotate(0.4deg) translateY(-6px); }
.book:nth-child(3) { transform: rotate(-0.2deg); }
.book:nth-child(4) { transform: rotate(1.1deg)  translateY(-4px); }
.book:nth-child(5) { transform: rotate(-0.7deg) translateY(-2px); }
.book:hover { transform: translateY(-10px) rotate(0deg); }
.book .year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  font-weight: 500;
  color: var(--berry);
  letter-spacing: 0;
  line-height: 1;
}
.book .title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  margin: 14px 0 8px;
  letter-spacing: 0;
}
.book .title em { color: var(--berry); }
.book .desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.book .chips { display: flex; gap: 4px; flex-wrap: wrap; }
.book .chips span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(240,68,98,0.09);
  color: var(--ink-soft);
  border-radius: var(--r-pill);
}

/* ---------- NOW STICKY ---------- */
.now-sticky {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), transparent 42%),
    var(--sticky);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
  border: 1px solid rgba(92,56,44,0.08);
  border-radius: 6px;
}
.now-sticky::before {
  content: "";
  position: absolute; top: -12px; left: 24%;
  width: 130px; height: 22px;
  background: rgba(255,149,111,0.56); mix-blend-mode: multiply;
  transform: rotate(-4deg);
  border-radius: 2px;
}
.now-sticky .now-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}
.now-sticky .now-tag::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(45,163,155,0.22);
  animation: deskPulse 2.2s ease-in-out infinite;
}
@keyframes deskPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(45,163,155,0.22); }
  50%     { box-shadow: 0 0 0 8px rgba(45,163,155,0.08); }
}
@media (prefers-reduced-motion: reduce) { .now-sticky .now-tag::before { animation: none; } }
.now-sticky h3 {
  font-family: var(--font-script);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.05;
}
.now-sticky p {
  font-size: 15px;
  color: var(--pencil);
  line-height: 1.6;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.now-sticky p em { color: var(--berry-deep); font-style: italic; font-family: var(--font-display); }
.now-sticky .rows {
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  display: grid; gap: 10px;
}
.now-sticky .row {
  display: grid;
  grid-template-columns: 112px 1fr;
  font-size: 13px;
  gap: 12px;
  align-items: baseline;
}
.now-sticky .row .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.now-sticky .row .v { color: var(--ink); font-weight: 600; }

/* ---------- RECEIPT ---------- */
.receipt {
  margin-top: 28px;
  background:
    repeating-linear-gradient(0deg, rgba(92,56,44,0.045) 0 1px, transparent 1px 28px),
    #fffdf8;
  padding: 24px 28px;
  position: relative;
  box-shadow: 0 14px 28px -12px rgba(38,23,27,0.2);
  transform: rotate(-1.2deg);
  border: 1px solid rgba(92,56,44,0.08);
  border-radius: 3px;
}
.receipt::before, .receipt::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 14px;
  background:
    radial-gradient(circle at 8px 0, var(--paper) 6px, transparent 7px) 0 0 / 16px 14px;
}
.receipt::before { top: -14px; transform: rotate(180deg); }
.receipt::after  { bottom: -14px; }
.receipt h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule);
}
.receipt .line {
  display: grid; grid-template-columns: 1fr auto;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(31,22,24,0.15);
}
.receipt .line:last-child { border-bottom: 0; }
.receipt .line .k { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.15em; font-size: 10px; }
.receipt .line .v { color: var(--ink); font-weight: 600; }

/* ---------- CONTACT (dark ink block) ---------- */
.contact {
  margin-top: 140px;
  padding: 88px 56px 96px;
  background:
    linear-gradient(135deg, rgba(240,68,98,0.22), transparent 40%),
    linear-gradient(45deg, transparent, rgba(246,198,74,0.10) 78%),
    var(--ink);
  color: var(--paper);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transform: rotate(0.3deg);
  box-shadow: var(--shadow-xl);
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 28px 28px;
  pointer-events: none;
}
.contact .inner { position: relative; }
.contact .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.contact .eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--berry); }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, var(--fs-4xl));
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0 0 28px;
  text-wrap: balance;
  color: #fff;
}
.contact h2 em { color: var(--berry); font-style: italic; }
.contact p {
  color: rgba(244,234,220,0.75);
  font-size: 19px;
  max-width: 52ch;
  line-height: 1.55;
  margin: 0 0 40px;
}
.contact .email-big {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 5vw, 56px);
  color: var(--paper);
  padding: clamp(14px, 2.2vw, 22px) clamp(20px, 3.5vw, 40px);
  border-radius: var(--r-pill);
  background: rgba(255,241,227,0.06);
  border: 1.5px dashed rgba(255,241,227,0.46);
  margin-bottom: 32px;
  font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact .email-big:hover {
  background: var(--berry);
  color: #fff;
  border-color: var(--berry);
  border-style: solid;
}
.contact .socials { display: flex; gap: 10px; flex-wrap: wrap; }
.contact .socials a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(244,234,220,0.18);
  color: rgba(244,234,220,0.85);
  transition: background .15s, color .15s, border-color .15s;
}
.contact .socials a:hover { background: var(--berry); color: #fff; border-color: var(--berry); }

/* ---------- SUPPORT / TIP JAR ----------
   Lives on the home page just under .contact. Intentionally cream-on-ink
   inverted, like a receipt torn off the contact block, but lighter. */
.support {
  margin-top: 32px;
  padding: 44px 56px 48px;
  background: var(--card);
  border: 1px dashed var(--rule);
  border-radius: 8px;
  transform: rotate(-0.25deg);
  box-shadow: var(--shadow-pin);
}
.support[hidden] { display: none; }
.support .inner { position: relative; max-width: 760px; }
.support .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.support .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--berry); }
.support h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.support h2 em { color: var(--berry); font-style: italic; }
.support > .inner > p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 26px;
  max-width: 56ch;
  text-wrap: pretty;
}
.support-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 18px;
}
.support-row a {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.support-row a:hover {
  background: var(--berry);
  color: #fff;
  border-color: var(--berry);
  transform: translateY(-1px);
}
.support-row a .note {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.support-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 700px) {
  .support { padding: 32px 28px 36px; }
}

/* ---------- FOOTER ---------- */
footer.desk-foot {
  margin-top: 64px;
  padding: 32px 0 64px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--rule);
}
footer.desk-foot .b {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
}
footer.desk-foot .b img { width: 22px; transform: rotate(-6deg); }
footer.desk-foot .mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
footer.desk-foot .foot-links {
  display: flex; flex-wrap: wrap;
  gap: 2px 6px;
  flex: 1;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
footer.desk-foot .foot-links a {
  padding: 6px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  transition: color .15s, background .15s;
}
footer.desk-foot .foot-links a:hover,
footer.desk-foot .foot-links a[aria-current="page"] {
  color: var(--berry);
  background: rgba(230,58,92,0.08);
}
footer.desk-foot .foot-links .sep {
  color: var(--ink-faint);
  opacity: 0.5;
  padding: 6px 0;
  user-select: none;
}
@media (max-width: 800px) {
  footer.desk-foot .foot-links { justify-content: flex-start; flex: 100%; order: 3; }
}

/* ---------- MODAL ---------- */
.modal-back {
  position: fixed; inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-back.open { display: flex; animation: deskFadeIn .2s ease; }
@keyframes deskFadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  position: relative;
  background: var(--card);
  width: 100%;
  max-width: 880px;
  padding: 24px 24px 60px;
  box-shadow: var(--shadow-modal);
  animation: deskPopIn .3s var(--ease-out);
  border-radius: 10px;
}
@keyframes deskPopIn {
  from { transform: translateY(12px); opacity: 0 }
  to   { transform: translateY(0);    opacity: 1 }
}
.modal .close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  font-size: 14px;
}
.modal .close:hover { background: var(--berry); }
.modal .hero-img {
  aspect-ratio: 21/8;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(92,56,44,0.12);
  background: var(--paper);
}
.modal .hero-img svg,
.modal .hero-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.modal-body { padding: 40px 36px 12px; }
.modal-body .chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.modal-body h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 52px;
  letter-spacing: 0;
  margin: 0 0 16px;
}
.modal-body .desc {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 24px;
}
.modal-body .shots-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  margin: 0 0 24px;
  scrollbar-width: thin;
}
.modal-body .shots-strip .shot-thumb {
  all: unset;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(31,22,24,0.12);
  cursor: zoom-in;
  background: var(--paper);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.modal-body .shots-strip .shot-thumb:hover,
.modal-body .shots-strip .shot-thumb:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ink-soft);
}
.modal-body .shots-strip .shot-thumb:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}
.modal-body .shots-strip .shot-thumb img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.modal-body .specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
  margin-bottom: 32px;
}
.modal-body .spec .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.modal-body .spec .v {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}
.modal-body .roles-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.modal-body .role-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 28px;
}
.modal-body .actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
}

/* ---------- PLAYABLE EMBED (case-study #play section) ---------- */
.play-embed {
  max-width: 1100px;
  margin: 0 auto;
}
.play-embed .play-frame {
  position: relative;
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  background: var(--ink, #1F1B16);
  box-shadow: 0 30px 80px -40px rgba(31, 22, 24, 0.45),
              0 6px 16px -8px rgba(31, 22, 24, 0.2);
}
.play-embed .play-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.play-embed .play-note {
  margin: 14px 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft, #5A4F3F);
}
.play-embed .play-note kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--rule, #E5DCC9);
  border-radius: 4px;
  background: var(--paper-soft, #FCF5E6);
  text-transform: none;
  letter-spacing: 0.04em;
}
.play-embed .play-note a {
  color: var(--berry, #B7364A);
  border-bottom: 1px dashed currentColor;
}

/* Screenshot shot caption — sits as a corner badge over the image */
.shot .badge {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--r-pill, 999px);
  background: rgba(31, 22, 24, 0.72);
  color: #F5EED8;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- PRAISE / TESTIMONIALS (home + about) ---------- */
.praise-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.praise-card {
  position: relative;
  padding: 28px 26px 22px;
  border-radius: var(--r-lg, 16px);
  background: var(--paper-soft, #FCF5E6);
  border: 1px dashed var(--rule, #E5DCC9);
  box-shadow: 0 10px 24px -22px rgba(31, 22, 24, 0.25);
  transform: rotate(-0.4deg);
}
.praise-card:nth-child(2) { transform: rotate(0.5deg); }
.praise-card:nth-child(3) { transform: rotate(-0.2deg); }
.praise-card .mark {
  position: absolute;
  top: -6px; left: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  color: var(--berry, #B7364A);
  opacity: 0.55;
  pointer-events: none;
}
.praise-card.accent-mint   .mark { color: #17B0AC; }
.praise-card.accent-violet .mark { color: #5B4BE8; }
.praise-card.accent-butter .mark { color: #C79000; }
.praise-card q {
  display: block;
  padding-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink, #1F1B16);
  letter-spacing: 0;
  text-wrap: pretty;
  quotes: "" "";
}
.praise-card q::before, .praise-card q::after { content: ""; }
.praise-card .who {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule, #E5DCC9);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft, #5A4F3F);
}
.praise-card .who .author { color: var(--ink, #1F1B16); }

@media (max-width: 900px) {
  .praise-wall { grid-template-columns: 1fr; }
  .praise-card { transform: none !important; }
}

/* ---------- RESPONSIVE ---------- */

/* Large-tablet / small-laptop — soften the dense pin layout before it stacks */
@media (max-width: 1100px) {
  .pinboard { gap: 24px; }
  .pin-1, .pin-2, .pin-3, .pin-4, .pin-5, .pin-6,
  .pin-7, .pin-8, .pin-9, .pin-10 { grid-column: span 6; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .notecard { display: none; }
  .rule-head { grid-template-columns: 1fr; gap: 14px; }
  .rule-head .kicker { text-align: left; max-width: none; }
  .marquee-track { font-size: 32px; gap: 36px; }
  .contact { padding: 72px 44px 80px; margin-top: 96px; }
}

/* Tablet — mobile nav, tighter ribbon/contact, halve the pin rotations */
@media (max-width: 900px) {
  nav.desk-nav { padding: 12px 20px; }
  nav.desk-nav .nav-toggle { display: inline-flex; }
  nav.desk-nav .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-bottom: 1px dashed var(--rule);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    box-shadow: 0 16px 32px -20px rgba(31,22,24,0.25);
  }
  nav.desk-nav.nav-open .nav-links { display: flex; }
  nav.desk-nav .nav-links a {
    padding: 14px 16px;
    border-radius: var(--r-md);
    text-align: left;
    font-size: 13px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  nav.desk-nav .nav-links a.cta { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }

  /* Ribbon arrow can clip over the page edge — rein it back in. */
  .ribbon { padding: 48px 36px; margin: 96px 0 72px; }
  .ribbon-arrow { width: 96px; height: 96px; font-size: 16px; right: -10px; top: -20px; }

  /* Flatten pin rotations — they start crowding text when stacked 2-wide. */
  .pin-1, .pin-2, .pin-3, .pin-4, .pin-5, .pin-6,
  .pin-7, .pin-8, .pin-9, .pin-10 { transform: rotate(0) !important; }
  .book { transform: none !important; }

  .modal { max-width: 100%; }
  .modal-body { padding: 32px 24px 12px; }
}

/* Phone — single column, quiet the decoration, shrink the hero blocks */
@media (max-width: 640px) {
  .pinboard { gap: 36px 0; padding-top: 24px; }
  .pin-1, .pin-2, .pin-3, .pin-4, .pin-5, .pin-6,
  .pin-7, .pin-8, .pin-9, .pin-10 { grid-column: span 12; transform: rotate(0) !important; }
  .shelf { grid-template-columns: 1fr; gap: 32px; }
  .bubble { display: none; }
  .modal-back { padding: 20px 12px; }
  .modal-body { padding: 24px 18px 12px; }
  .modal-body h3 { font-size: 32px; }
  .modal-body .specs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ribbon { padding: 36px 24px; }
  .ribbon-arrow { width: 84px; height: 84px; font-size: 15px; right: -6px; top: -16px; }
  .marquee { padding: 18px 0; }
  .marquee-track { font-size: 24px; gap: 24px; animation-duration: 28s; }
  .contact { padding: 56px 24px 64px; margin-top: 72px; transform: none; }
  .contact .eyebrow::before { width: 24px; }
  .contact .socials { gap: 8px; }
  .contact .socials a { padding: 10px 14px; font-size: 11px; letter-spacing: 0.14em; }
  footer.desk-foot { padding: 28px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
  .filing { gap: 12px 14px; margin-bottom: 20px; }
  .stamp { transform: rotate(-1.5deg); font-size: 9px; letter-spacing: 0.16em; }
  /* Polaroid has internal rotation — rein it in so it reads as the second row, not a tilted tangent. */
  .polaroid { transform: rotate(1deg); }
  .polaroid:hover { transform: rotate(0) translateY(-2px); }
  /* Praise cards are all ±0.5deg; on mobile that reads as misaligned. */
  .praise-card { transform: none !important; }
  /* Kill hover lift — it fires on tap and leaves the card elevated. */
  .pin:hover, .book:hover { transform: translateY(0) !important; box-shadow: var(--shadow-pin); }
  .book:hover { box-shadow: var(--shadow-sm); }
  .now-sticky { transform: none; }
  .receipt { transform: none; }
}

/* Very small phones — 360 and under */
@media (max-width: 380px) {
  nav.desk-nav .brand { font-size: 18px; }
  nav.desk-nav .brand img { width: 24px; height: 24px; }
  .contact h2 { font-size: clamp(44px, 12vw, 64px); }
  .modal-body h3 { font-size: 26px; }
  .modal-body .specs { grid-template-columns: 1fr; }
}

/* Coarse pointer — bump small tap targets to the 44px WCAG threshold */
@media (pointer: coarse) {
  .share-row .share-btn,
  .foot-links a,
  .sub-menu .sub-item,
  .back-to-top { min-height: 44px; }
  .nav-links a { min-height: 44px; }
}

/* No-hover devices — disable the hover-only transform lifts so a tap
   doesn't strand the card in its "hover" resting state. */
@media (hover: none) {
  .pin:hover { transform: none !important; box-shadow: var(--shadow-pin); z-index: auto; }
  .pin:hover .thumb svg, .pin:hover .thumb img { transform: none; }
  .book:hover { transform: none; }
  .polaroid:hover { transform: rotate(2.2deg); }
  .idx-card:hover, .skill-note:hover, .post-leaf:hover { transform: none; }
}

/* ==============================================================
   PINBOARD FILTER BAR — search input + tag pills above the grid
   ============================================================== */
.board-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin: 8px 0 8px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
  transform: rotate(-0.15deg);
  box-shadow: var(--shadow-xs);
}
.board-filter .bf-search {
  flex: 1 1 220px;
  min-width: 200px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  transition: border-color .15s;
}
.board-filter .bf-search:focus-within { border-color: var(--berry); }
.board-filter .bf-search svg { width: 14px; height: 14px; color: var(--ink-faint); flex-shrink: 0; }
.board-filter .bf-search input {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  outline: none;
  padding: 2px 0;
}
.board-filter .bf-search input::placeholder { color: var(--ink-faint); }
.board-filter .bf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.board-filter .bf-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(31,22,24,0.05);
  color: var(--ink-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.board-filter .bf-tag:hover { background: rgba(31,22,24,0.1); color: var(--ink); }
.board-filter .bf-tag.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.board-filter .bf-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: auto;
}
.pinboard .pin.is-hidden { display: none; }
.pinboard .pb-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-faint);
}
@media (max-width: 640px) {
  .board-filter { padding: 10px 12px; gap: 10px 12px; transform: none; }
  .board-filter .bf-count { display: none; }
}

/* ==============================================================
   LATEST FROM THE LOG — devlog teaser strip on the home page
   ============================================================== */
.log-teaser { margin-top: 80px; }
.log-teaser[hidden] { display: none; }
.log-teaser .teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.log-teaser .teaser-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  position: relative;
  text-decoration: none;
  color: inherit;
  min-height: 160px;
}
.log-teaser .teaser-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.log-teaser .teaser-card::before {
  content: "";
  position: absolute;
  top: 10px; left: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--berry);
  opacity: 0.8;
}
.log-teaser .teaser-card .t-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  padding-left: 16px;
}
.log-teaser .teaser-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: balance;
}
.log-teaser .teaser-card p {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 14px;
  flex: 1;
  text-wrap: pretty;
}
.log-teaser .teaser-card .t-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.log-teaser .teaser-card .t-foot .read { color: var(--berry); }
.log-teaser .teaser-more {
  margin-top: 24px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.log-teaser .teaser-more a { color: var(--ink); border-bottom: 1px dashed var(--berry); padding-bottom: 2px; }
.log-teaser .teaser-more a:hover { color: var(--berry); }
@media (max-width: 900px) {
  .log-teaser .teaser-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ==============================================================
   CONTACT FORM + NEWSLETTER (inside .contact block)
   ============================================================== */
.contact-form {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px dashed rgba(244,234,220,0.18);
  max-width: 620px;
}
.contact-form[hidden] { display: none; }
.contact-form .cf-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244,234,220,0.55);
  margin-bottom: 18px;
}
.contact-form label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,234,220,0.6);
}
.contact-form label > span { display: block; margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: rgba(244,234,220,0.05);
  border: 1px solid rgba(244,234,220,0.22);
  border-radius: var(--r-sm);
  color: var(--paper);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .15s, background .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--berry);
  background: rgba(244,234,220,0.08);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(244,234,220,0.35); }
.contact-form textarea { min-height: 120px; resize: vertical; font-family: var(--font-body); }
.contact-form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.contact-form select option {
  color: var(--ink);
  background: var(--paper);
}
.contact-form .cf-hp { position: absolute; left: -9999px; }
.contact-form .cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form .cf-actions {
  margin-top: 6px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.contact-form .cf-actions button {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--paper);
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.contact-form .cf-actions button:hover { background: var(--berry); color: #fff; border-color: var(--berry); }
.contact-form .cf-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244,234,220,0.45);
  margin: 0;
}
.contact-form .cf-banner {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.contact-form .cf-banner.ok {
  background: rgba(45,163,155,0.15);
  border: 1px solid rgba(45,163,155,0.45);
  color: #b7ede8;
}
.contact-form .cf-banner.err {
  background: rgba(230,58,92,0.18);
  border: 1px solid rgba(230,58,92,0.55);
  color: #ffd4dc;
}
@media (max-width: 640px) {
  .contact-form .cf-row { grid-template-columns: 1fr; }
  .contact-form { padding-top: 26px; margin-top: 28px; }
}

/* ---------- Newsletter mini-form (inside .contact) ---------- */
.newsletter {
  margin-top: 28px;
  padding: 22px 26px;
  max-width: 620px;
  background: rgba(244,234,220,0.06);
  border: 1px dashed rgba(244,234,220,0.3);
  border-radius: var(--r-sm);
}
.newsletter[hidden] { display: none; }
.newsletter .nl-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 6px;
}
.newsletter h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0;
  margin: 0 0 6px;
  color: var(--paper);
}
.newsletter p {
  font-size: 14px;
  color: rgba(244,234,220,0.7);
  margin: 0 0 14px;
  max-width: 52ch;
}
.newsletter form {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.newsletter input[type="email"] {
  flex: 1 1 220px;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper);
  background: rgba(244,234,220,0.05);
  border: 1px solid rgba(244,234,220,0.22);
  border-radius: var(--r-pill);
  outline: none;
  transition: border-color .15s;
}
.newsletter input[type="email"]:focus { border-color: var(--berry); }
.newsletter input::placeholder { color: rgba(244,234,220,0.4); }
.newsletter button {
  background: var(--berry);
  color: #fff;
  border: 1.5px solid var(--berry);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.newsletter button:hover { background: var(--berry-deep); border-color: var(--berry-deep); }
.newsletter .nl-note {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(244,234,220,0.45);
}
.newsletter .nl-banner {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.newsletter .nl-banner.ok  { background: rgba(45,163,155,0.15); color: #b7ede8; border: 1px solid rgba(45,163,155,0.4); }
.newsletter .nl-banner.err { background: rgba(230,58,92,0.18); color: #ffd4dc; border: 1px solid rgba(230,58,92,0.5); }

/* ==============================================================
   Footer build stamp (date + optional git hash)
   ============================================================== */
footer.desk-foot .build {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
  opacity: 0.75;
  flex-basis: 100%;
  text-align: center;
  margin-top: 2px;
}
footer.desk-foot .build a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
footer.desk-foot .build a:hover { color: var(--berry); }

/* ============================================================================
   CASE-STUDY TABLE OF CONTENTS — auto-built by js/toc.js.
   The unwrapped <nav id="toc"> lives at the top of case-study pages. Float
   it at the right edge on large screens; collapse out-of-sight below 1280px
   so it doesn't span the full width and push the hero down.
   ============================================================================ */
nav.toc {
  position: fixed;
  top: 96px;
  right: 24px;
  width: 200px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 14px 16px;
  background: var(--card, #fff);
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  z-index: 50;
}
nav.toc .toc-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
nav.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
nav.toc li a {
  display: block;
  padding: 3px 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.12s ease;
}
nav.toc li a:hover,
nav.toc li a:focus-visible { color: var(--berry); }
nav.toc li a.active {
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 1280px) {
  nav.toc { display: none; }
}

/* ============================================================================
   LIGHTBOX — full-screen image viewer (js/lightbox.js)
   Bound to .gallery .shot img, .modal .hero-img img, .modal .shots-strip img,
   .portrait-frame img. Hidden by default, shown via .open.
   ============================================================================ */
.is-zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 14, 11, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}
.lightbox.open { display: flex; }

.lightbox .lb-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: min(1400px, 96vw);
  max-height: 100%;
  margin: 0;
}
.lightbox .lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  display: block;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
  background: #1a1612;
}
.lightbox .lb-cap {
  color: rgba(250, 244, 236, 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  max-width: 60ch;
  margin: 0;
}

.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: rgba(250, 244, 236, 0.12);
  color: rgba(250, 244, 236, 0.95);
  border: 1px solid rgba(250, 244, 236, 0.25);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  padding: 0;
  z-index: 2;
}
.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
  background: rgba(250, 244, 236, 0.22);
  border-color: rgba(250, 244, 236, 0.5);
}
.lightbox .lb-close:focus-visible,
.lightbox .lb-prev:focus-visible,
.lightbox .lb-next:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
}
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox .lb-next:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox .lb-close,
  .lightbox .lb-prev,
  .lightbox .lb-next { width: 38px; height: 38px; font-size: 16px; }
  .lightbox .lb-close { top: 12px; right: 12px; }
  .lightbox .lb-prev  { left: 12px; }
  .lightbox .lb-next  { right: 12px; }
  .lightbox .lb-stage img { max-height: calc(100vh - 120px); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox .lb-close,
  .lightbox .lb-prev,
  .lightbox .lb-next { transition: none; }
}

/* ============================================================================
   2026 redesign layer: studio floor instead of paper desk.
   Calm cream paper + two soft drifting accents (parallax). Anything heavier
   was making the page feel crowded — keep noise low so the content sings.
   ============================================================================ */
body {
  background:
    repeating-linear-gradient(0deg, rgba(38, 23, 27, 0.035) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #FFF6E8 0%, #FFE9D2 100%);
  background-attachment: fixed, fixed;
}

body::before {
  top: 80px;
  right: -140px;
  width: min(38vw, 480px);
  height: 70vh;
  background:
    linear-gradient(150deg, rgba(240, 68, 98, 0.42), rgba(112, 88, 206, 0.22) 60%, transparent);
  border: 0;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  filter: blur(2px);
  transform: translate3d(0, var(--parallax-slow, 0px), 0) rotate(8deg);
  opacity: 0.55;
  will-change: transform;
}

body::after {
  left: -120px;
  bottom: -6vh;
  width: min(36vw, 460px);
  height: 50vh;
  background:
    linear-gradient(45deg, rgba(246, 198, 74, 0.42), rgba(36, 155, 142, 0.22) 70%, transparent);
  border: 0;
  border-radius: 55% 45% 60% 40% / 45% 55% 50% 50%;
  filter: blur(2px);
  transform: translate3d(0, var(--parallax-mid, 0px), 0) rotate(-6deg);
  opacity: 0.5;
  will-change: transform;
}

nav.desk-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  top: 14px;
  border: 1px solid rgba(38, 23, 27, 0.12);
  border-radius: var(--r-pill);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 18px 42px -30px rgba(38, 23, 27, 0.58);
}

.stage {
  max-width: 1240px;
  padding-top: clamp(44px, 5vw, 76px);
}

.rule-head {
  grid-template-columns: minmax(86px, 0.16fr) minmax(0, 1fr) minmax(180px, 0.30fr);
  border: 0;
  padding: 0 0 18px;
}

.rule-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background:
    linear-gradient(90deg, var(--berry) 0 18%, var(--butter) 18% 34%, var(--mint) 34% 52%, var(--ink) 52% 100%);
}

.marquee {
  transform: none;
  border: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 20px),
    var(--ink);
}

.pin {
  border-radius: 6px;
}

.pin .pushpin,
.pin .tape-top,
.pin .margin-note,
.notecard::before {
  display: none;
}

.contact {
  transform: none;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, rgba(240, 68, 98, 0.28) 0 18px, transparent 18px),
    linear-gradient(135deg, rgba(36, 155, 142, 0.18), transparent 44%),
    var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    transform: rotate(8deg);
    will-change: auto;
  }
  body::after {
    transform: rotate(-6deg);
    will-change: auto;
  }
}

@media (max-width: 820px) {
  nav.desk-nav {
    width: calc(100% - 20px);
    margin-top: 10px;
    top: 10px;
    border-radius: 18px;
    padding: 12px 16px;
  }
}
