/* Jaeyoung Lee — Portfolio */

:root {
  --bg: #f6f1e8;
  --bg-warm: #efe6d5;
  --paper: #fbf7ee;
  --ink: #1a1815;
  --ink-soft: #4a4640;
  --ink-mute: #8a8378;
  --rule: #d9cfbb;
  /* Accent = sky blue (kept old var names to avoid a global rename) */
  --coral: #a8c5db;        /* soft sky */
  --coral-deep: #3a7ca8;   /* deep steel-blue */
  --sage: #a8b89a;
  --sky: #b8c9d6;
  --butter: #f0d998;
  --blue-tint: #dce8f0;
  --blue-deep-soft: #6b9ec4;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Menlo", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(60,40,20,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 1;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
a.link { border-bottom: 1px solid var(--ink-mute); transition: color .2s, border-color .2s; }
a.link:hover { color: var(--coral-deep); border-color: var(--coral-deep); }

/* ---------- Cursor pet ---------- */
.cursor-pet {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s cubic-bezier(.2,.9,.3,1.2);
  will-change: transform;
}
.cursor-pet.hover { transform: translate(-50%, -50%) scale(1.6) rotate(-8deg); }

/* ---------- Layout ---------- */
.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.wrap-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ---------- Nav ---------- */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  font-family: var(--sans);
  font-size: 14px;
}
nav.top .brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}
nav.top .brand::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral-deep);
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
nav.top .links { display: flex; gap: 24px; }
nav.top .links a { color: var(--ink-soft); }
nav.top .links a:hover { color: var(--coral-deep); }

.lang-toggle {
  font-family: var(--sans);
  font-size: 13px;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  color: var(--ink-mute);
  transition: border-color .2s, background .2s;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px;
}
.lang-toggle:hover { border-color: var(--coral-deep); }
.lang-toggle .lang-opt {
  transition: color .2s;
}
.lang-toggle .lang-opt.active {
  color: var(--coral-deep);
  font-weight: 600;
}
.lang-toggle .lang-sep {
  opacity: 0.45;
  font-weight: 400;
}
/* Korean type tweak */
html[lang="kr"] body {
  font-family: "Nanum Myeongjo", "Newsreader", "Iowan Old Style", Georgia, serif;
}
html[lang="kr"] .kicker,
html[lang="kr"] .eyebrow,
html[lang="kr"] nav.top,
html[lang="kr"] .btn,
html[lang="kr"] .cases-hint,
html[lang="kr"] .timeline-item .date,
html[lang="kr"] .skill-col h3,
html[lang="kr"] .hobby-card .label,
html[lang="kr"] .lang-toggle,
html[lang="kr"] .quick-facts,
html[lang="kr"] footer,
html[lang="kr"] .current-badge,
html[lang="kr"] .tag,
html[lang="kr"] .metrics {
  font-family: "Noto Sans KR", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
}
.hero .wrap {
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 60px;
  align-items: center;
}
.hero .hero-copy { min-width: 0; }
.hero .kicker {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero .kicker::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--ink-mute);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.hero h1 .italic {
  font-style: italic;
  color: var(--coral-deep);
}
.hero h1 .cursor {
  display: inline-block;
  width: 4px;
  background: var(--ink);
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
  vertical-align: baseline;
  height: 0.9em;
  transform: translateY(0.05em);
}
@keyframes blink { 50% { opacity: 0; } }

.hero .sub {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero .quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
}
.hero .quick-facts span { display: inline-flex; align-items: center; gap: 6px; }
.hero .quick-facts .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
}

.hero-photo {
  transform: rotate(3deg);
  width: 240px;
  justify-self: center;
}
.hero-photo image-slot,
.hero-photo .headshot {
  width: 240px; height: 300px;
  display: block;
  box-shadow: 0 20px 40px -20px rgba(60,40,20,0.3), 0 2px 4px rgba(60,40,20,0.1);
  border: 10px solid #fff;
  background: var(--bg-warm);
}
.hero-photo .headshot {
  object-fit: cover;
  object-position: center 20%;
}
.hero-photo .caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 12px;
  transform: rotate(-3deg);
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
  position: relative;
}
section .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
section .eyebrow::before {
  content: "§";
  color: var(--coral-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}
section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.015em;
  margin: 0 0 32px;
  line-height: 1.1;
}
section h2 .italic { font-style: italic; color: var(--coral-deep); }

/* ---------- About ---------- */
.about p {
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
}
.about p strong {
  font-weight: 500;
  background: linear-gradient(transparent 60%, var(--butter) 60%, var(--butter) 92%, transparent 92%);
  padding: 0 2px;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--rule);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 10px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--coral-deep);
  transition: all .3s;
}
.timeline-item.current::before {
  background: var(--coral-deep);
  box-shadow: 0 0 0 6px rgba(209, 122, 90, 0.15);
}
.timeline-item .date {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.timeline-item .role {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 2px;
}
.timeline-item .org {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.timeline-item .desc {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
}
.timeline-item .current-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--coral-deep);
  color: #fff;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Case studies (draggable polaroids) ---------- */
.cases-board {
  position: relative;
  min-height: 520px;
  margin: 40px auto 0;
  max-width: 1000px;
  padding: 0 20px;
}
.cases-hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.cases-hint .drag-icon {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1px dashed var(--ink-mute);
  border-radius: 2px;
}
.polaroid {
  position: absolute;
  width: 280px;
  background: #fbf7ee;
  padding: 14px 14px 18px;
  box-shadow:
    0 18px 40px -18px rgba(60, 40, 20, 0.35),
    0 4px 10px -4px rgba(60, 40, 20, 0.15);
  user-select: none;
  transition: box-shadow .25s;
}
.polaroid:hover {
  z-index: 30;
  box-shadow:
    0 25px 50px -18px rgba(60, 40, 20, 0.4),
    0 6px 14px -6px rgba(60, 40, 20, 0.18);
}
.polaroid .preview {
  aspect-ratio: 4/3;
  width: 100%;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  /* Diagonal-stripe placeholder texture, tinted per tone */
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.14) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    ),
    linear-gradient(135deg, #b8a68a 0%, #8a7458 100%);
}
.polaroid .preview.cu-apts {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.16) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    ),
    linear-gradient(135deg, #c9dcea 0%, #6b9ec4 100%);
}
.polaroid .preview.pinterest {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.16) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    ),
    radial-gradient(circle at 30% 40%, #a8c5db 0%, #3a7ca8 100%);
}
.polaroid .preview.cu-reviews {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.16) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    ),
    linear-gradient(160deg, #7a9068 0%, #4a5f3a 100%);
}
.polaroid .preview .placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  line-height: 1.4;
}
.polaroid .preview .placeholder .ph-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  margin-bottom: 2px;
}
.polaroid .preview .placeholder .ph-slot {
  opacity: 0.85;
}
/* Legacy .icon element inside .preview — kept for compat, hidden. */
.polaroid .preview .icon { display: none; }

/* Hover reveal overlay */
.polaroid .reveal {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 21, 0.92);
  color: #f6f1e8;
  padding: 18px;
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.polaroid:hover .reveal { opacity: 1; }
.polaroid .reveal .tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}
.polaroid .reveal .blurb {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.45;
  font-style: italic;
}
.polaroid .reveal .metrics {
  display: flex;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.7);
}
.polaroid .caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  margin-top: 12px;
  text-align: center;
  color: var(--ink);
}
.polaroid .caption .num {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  display: block;
  margin-top: 2px;
}

/* Sticker decoration */
.sticker {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  z-index: 20;
  box-shadow: 0 6px 14px -6px rgba(60, 40, 20, 0.2);
  user-select: none;
  pointer-events: none;
}
.sticker.pink { background: var(--coral); color: #14324a; }
.sticker.sage { background: var(--sage); color: #2a3320; }
.sticker.butter { background: var(--butter); color: #4a3510; }

/* ---------- Tools gallery ---------- */
#tools { padding-top: 40px; }
.tools-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tools-sub {
  color: var(--ink-mute);
  font-size: 14px;
  max-width: 320px;
  margin: 0 0 6px;
  text-align: right;
  font-family: var(--sans);
}
.tool-gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 32px 4px 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-mute) transparent;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}
.tool-gallery::-webkit-scrollbar { height: 6px; }
.tool-gallery::-webkit-scrollbar-track { background: transparent; }
.tool-gallery::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
.tool-gallery::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

.tool-card {
  flex: 0 0 auto;
  width: 148px;
  min-height: 168px;
  background: var(--paper, #fbf7ee);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  scroll-snap-align: start;
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2), box-shadow .28s, border-color .2s, background .2s;
  position: relative;
}
.tool-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .2s;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -18px rgba(60,40,20,0.35), 0 2px 4px rgba(60,40,20,0.06);
  border-color: transparent;
  background: #fff;
}
.tool-card:hover::after {
  border-color: var(--brand, var(--coral-deep));
}
.tool-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: color .25s, transform .28s cubic-bezier(.2,.9,.3,1.2);
}
.tool-card:hover .tool-logo {
  color: var(--brand, var(--coral-deep));
  transform: scale(1.06);
}
/* Hide the <img> — we use it as a data source but paint the logo via CSS mask
   on a ::after pseudo so `currentColor` actually applies. <img> is opaque so
   external CSS can't recolor it; mask-image + background: currentColor can. */
.tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}
.tool-logo {
  position: relative;
}
.tool-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask-image: var(--logo-src);
          mask-image: var(--logo-src);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}
.tool-name {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.01em;
}

.tools-next {
  margin-top: 4px;
  padding-top: 28px;
  border-top: 1px dashed var(--rule);
}
.tools-next-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.tool-gallery.muted .tool-card {
  background: transparent;
  border-style: dashed;
}
.tool-gallery.muted .tool-card:hover {
  background: var(--paper, #fbf7ee);
  border-style: solid;
}
.tool-gallery.muted .tool-logo {
  opacity: 0.78;
}
.tool-gallery.muted .tool-card:hover .tool-logo {
  opacity: 1;
}

@media (max-width: 860px) {
  .tools-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tools-sub { text-align: left; }
  .tool-card { width: 128px; min-height: 152px; padding: 18px 12px 14px; }
  .tool-logo { width: 38px; height: 38px; }
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.skill-col h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
  font-weight: 500;
}
.skill-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-col li {
  font-family: var(--serif);
  font-size: 15px;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--paper);
  transition: all .2s;
  cursor: default;
}
.skill-col li:hover {
  border-color: var(--coral-deep);
  color: var(--coral-deep);
  transform: translateY(-2px);
}

/* ---------- Hobbies ---------- */
.hobbies-intro {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.6;
}
/* ============ Scrapbook (Outside of product) ============ */
.scrapbook {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  position: relative;
}
.scrap-row {
  display: grid;
  gap: 28px;
  align-items: start;
}
.scrap-row.row-1 { grid-template-columns: 1.35fr 0.9fr 1fr; }
.scrap-row.row-2 { grid-template-columns: 0.85fr 1.6fr; }
.scrap-row.row-3 { grid-template-columns: 1fr; }

/* Base scrap card — the "pinned to the wall" feel */
.scrap {
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2), box-shadow .3s;
}
.scrap:hover {
  transform: rotate(0deg) translateY(-3px);
  z-index: 10;
}

/* Washi-tape decorations */
.tape {
  position: absolute;
  width: 74px;
  height: 22px;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(168, 197, 219, 0.55);
  box-shadow: 0 1px 2px rgba(60,40,20,0.15);
  pointer-events: none;
  z-index: 3;
}
.tape::before, .tape::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background-image: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
  background-size: 6px 6px;
}
.tape::before { left: 0; }
.tape::after { right: 0; }
.tape.tape-coral { background: rgba(58, 124, 168, 0.35); }
.tape.tape-sage { background: rgba(168, 184, 154, 0.6); }
.tape.tape-sky { background: rgba(184, 201, 214, 0.7); }
.tape.tape-top-left { left: 18px; transform: translateX(0) rotate(-14deg); }
.tape.tape-top-right { left: auto; right: 18px; transform: translateX(0) rotate(12deg); }
.tape.tape-top-center { left: 50%; transform: translateX(-50%) rotate(-3deg); }

/* ---------- Ticket stub ---------- */
.scrap.ticket {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 22px 40px -24px rgba(60,40,20,0.35), 0 2px 4px rgba(60,40,20,0.08);
  padding: 0;
}
.ticket-inner {
  display: grid;
  grid-template-columns: 1fr 88px;
  min-height: 100%;
}
.ticket-left {
  padding: 26px 24px 22px;
}
.ticket-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.scrap.ticket h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.scrap.ticket h4 .italic { font-style: italic; color: var(--coral-deep); }
.scrap.ticket p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
}
.ticket-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed var(--rule);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ticket-list li {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticket-list .dot {
  width: 5px; height: 5px;
  background: var(--coral-deep);
  border-radius: 50%;
  flex-shrink: 0;
}
.ticket-stub {
  position: relative;
  border-left: 2px dashed var(--rule);
  padding: 18px 8px;
  background: rgba(58,124,168,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ticket-stub::before, .ticket-stub::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 14px; height: 14px;
  background: var(--bg-warm);
  border-radius: 50%;
  border: 1px solid var(--rule);
}
.ticket-stub::before { top: -8px; }
.ticket-stub::after { bottom: -8px; }
.stub-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--coral-deep);
}
.stub-vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.stub-barcode {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}
.stub-barcode span {
  display: block;
  width: 2px;
  background: var(--ink);
}
.stub-barcode span:nth-child(1){ height:18px; }
.stub-barcode span:nth-child(2){ height:24px; width:1px; }
.stub-barcode span:nth-child(3){ height:20px; width:3px; }
.stub-barcode span:nth-child(4){ height:16px; }
.stub-barcode span:nth-child(5){ height:24px; }
.stub-barcode span:nth-child(6){ height:14px; width:1px; }
.stub-barcode span:nth-child(7){ height:22px; }
.stub-barcode span:nth-child(8){ height:18px; width:3px; }
.stub-barcode span:nth-child(9){ height:24px; }
.stub-barcode span:nth-child(10){ height:16px; width:1px; }
.stub-barcode span:nth-child(11){ height:20px; }
.stub-barcode span:nth-child(12){ height:24px; width:2px; }

/* ---------- Polaroid photo slot ---------- */
.scrap.polaroid-slot {
  background: #fff;
  padding: 12px 12px 40px;
  box-shadow: 0 20px 40px -22px rgba(60,40,20,0.4), 0 2px 4px rgba(60,40,20,0.1);
  margin: 0;
  display: flex;
  flex-direction: column;
}
.scrap.polaroid-slot image-slot {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-warm);
}
.scrap.polaroid-slot.tall image-slot { aspect-ratio: 3 / 4; }
.scrap.polaroid-slot.small { max-width: 200px; }
.scrap.polaroid-slot.small image-slot { aspect-ratio: 1 / 1; }
.scrap.polaroid-slot figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 12px;
}

/* ---------- Notebook (Now watching / reading) ---------- */
.scrap.notebook {
  background:
    linear-gradient(to right, transparent 30px, rgba(217, 100, 89, 0.3) 30px, rgba(217, 100, 89, 0.3) 31px, transparent 31px),
    repeating-linear-gradient(
      to bottom,
      #fbf7ee 0px, #fbf7ee 27px,
      rgba(168, 197, 219, 0.22) 27px, rgba(168, 197, 219, 0.22) 28px
    );
  border: 1px solid var(--rule);
  padding: 22px 22px 22px 44px;
  box-shadow: 0 22px 40px -24px rgba(60,40,20,0.3), 0 2px 4px rgba(60,40,20,0.08);
  position: relative;
  line-height: 1.4;
}
.scrap.notebook::before { display: none; }
.scrap.notebook::before {
  content: "";
  position: absolute;
  left: 26px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(217, 100, 89, 0.35);
}
.notebook-header {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(60,40,20,0.18);
}
.dateline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  line-height: 1.6;
  margin-bottom: 4px;
}
.notebook-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.notebook-title .italic { font-style: italic; color: var(--coral-deep); }
.notebook-block {
  margin-top: 14px;
}
.block-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.block-item {
  font-family: var(--serif);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.35;
}
.block-item em { color: var(--coral-deep); font-style: italic; }
.block-item.small-mute {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.notebook-block {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.notebook-block .block-label { margin-bottom: 2px; }

/* ---------- Passport ---------- */
.scrap.passport {
  background: linear-gradient(180deg, #efe6d5 0%, #e6dcc7 100%);
  border: 1px solid #c8b998;
  padding: 22px 20px 20px;
  box-shadow: 0 22px 40px -24px rgba(60,40,20,0.4), inset 0 0 60px rgba(60,40,20,0.06);
  position: relative;
}
.scrap.passport::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px dashed rgba(60,40,20,0.2);
  pointer-events: none;
}
.passport-header {
  border-bottom: 1px solid rgba(60,40,20,0.2);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.pp-issued {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pp-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.pp-stamps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
  margin: 6px 0 14px;
}
.pp-stamp {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-deep);
  opacity: 0.78;
}
.pp-stamp.rot-neg { transform: rotate(-8deg); }
.pp-stamp.rot-pos { transform: rotate(6deg); }
.pp-stamp svg { position: absolute; inset: 8%; width: 84%; height: 84%; }
.pp-stamp-city {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--coral-deep);
  position: relative;
  z-index: 2;
  display: block;
  text-align: center;
  line-height: 1;
}
.pp-stamp-date {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--coral-deep);
  opacity: 0.75;
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.pp-stamp-city + .pp-stamp-date { }
.pp-stamp:has(.pp-stamp-date) .pp-stamp-city { transform: translateY(-4px); }
.passport-footer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(60,40,20,0.2);
  padding-top: 10px;
  line-height: 1.5;
}

/* ---------- Polaroid cluster ---------- */
.polaroid-cluster {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 18px 14px;
  align-items: start;
  padding: 8px 4px;
}
.polaroid-cluster .scrap.polaroid-slot { max-width: none; }
.polaroid-cluster .scrap.polaroid-slot:nth-child(1) {
  grid-column: 1; grid-row: 1;
  margin-top: 16px;
}
.polaroid-cluster .scrap.polaroid-slot:nth-child(2) {
  grid-column: 2; grid-row: 1;
  margin-top: 0;
  margin-left: -8px;
}
.polaroid-cluster .scrap.polaroid-slot:nth-child(3) {
  grid-column: 3; grid-row: 1;
  margin-top: 28px;
  margin-left: -4px;
}
.polaroid-cluster .scrap.polaroid-slot:nth-child(4) {
  grid-column: 1 / span 2; grid-row: 2;
  margin-top: -8px;
  margin-left: 12px;
  max-width: 420px;
  justify-self: start;
}
.polaroid-cluster .scrap.polaroid-slot:nth-child(5) {
  grid-column: 3; grid-row: 2;
  margin-top: -4px;
  margin-left: -6px;
  justify-self: stretch;
}
.polaroid-cluster .scrap.polaroid-slot.cook-polaroid image-slot {
  aspect-ratio: 4 / 5;
}

/* Rich two-line caption (title + sub) shared by all polaroids that use it */
.scrap.polaroid-slot.rich-caption { padding-bottom: 20px; }
.scrap.polaroid-slot.rich-caption figcaption {
  text-align: left;
  padding: 8px 4px 0;
  line-height: 1.35;
  font-style: normal;
}
.scrap.polaroid-slot.rich-caption figcaption .cap-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 3px;
}
.scrap.polaroid-slot.rich-caption figcaption .cap-sub {
  display: block;
  font-family: var(--sans, inherit);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.scrap.polaroid-slot.rich-caption figcaption .cap-sub em {
  font-style: italic;
  color: var(--ink);
}

/* ---------- Three-way memory system card ---------- */
.scrap.system-card {
  background: #fbf7ee;
  border: 1px solid var(--rule);
  padding: 24px 22px;
  box-shadow: 0 22px 40px -24px rgba(60,40,20,0.3), 0 2px 4px rgba(60,40,20,0.08);
}
.sys-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.scrap.system-card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.scrap.system-card h4 .italic { font-style: italic; color: var(--coral-deep); }
.sys-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px dashed var(--rule);
}
.sys-row:last-of-type { border-bottom: 1px dashed var(--rule); }
.sys-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--coral-deep);
  font-weight: 600;
  letter-spacing: 0.06em;
  min-width: 26px;
}
.sys-t {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}
.sys-s {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.sys-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  line-height: 1.5;
}
.sys-note .hl {
  background: linear-gradient(180deg, transparent 55%, rgba(168, 197, 219, 0.5) 55%);
  padding: 0 3px;
}

/* ---------- Filmstrip ---------- */
.filmstrip {
  padding: 0;
}
.filmstrip-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}
.filmstrip-label .sep { color: var(--rule); }
.filmstrip-inner {
  background: #171512;
  padding: 6px 12px;
  border-radius: 3px;
  transform: rotate(-0.4deg);
  box-shadow: 0 22px 40px -24px rgba(0,0,0,0.5), 0 3px 6px rgba(0,0,0,0.15);
}
.sprockets {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  padding: 6px 4px;
}
.sprockets span {
  height: 12px;
  background: var(--bg-warm);
  border-radius: 2px;
}
.filmstrip-frames {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0 4px;
}
.film-frame {
  aspect-ratio: 1 / 1;
  background: #0a0a0a;
  overflow: hidden;
}
.film-frame image-slot {
  display: block;
  width: 100%;
  height: 100%;
  background: #2a2724;
  color: rgba(255,255,255,0.4);
  --slot-border: rgba(255,255,255,0.1);
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0 80px;
  text-align: center;
}
.contact h2 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 24px;
}
.contact .say-hi {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.contact .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn.primary {
  background: var(--ink);
  color: var(--bg);
}
.btn.primary:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
}
.btn .arrow {
  transition: transform .2s;
}
.btn:hover .arrow { transform: translateX(3px); }

footer {
  padding: 40px 0 60px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
}
footer .heart { color: var(--coral-deep); }

/* ---------- Case Studies header (matches site aesthetic) ---------- */
.cs-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 44px;
}
.cs-header-copy { max-width: 640px; }
.cs-header .cs-intro {
  color: var(--ink-soft);
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  margin: 8px 0 0;
}
.cs-header .view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px 12px 24px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  transition: transform .2s, background .2s;
  white-space: nowrap;
}
.cs-header .view-all:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
}
.cs-header .view-all .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}
@media (max-width: 720px) {
  .cs-header { grid-template-columns: 1fr; }
}

/* ---------- (legacy) Works & Leadership header — unused, kept for parity ---------- */
.works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.works-header h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}
.works-header .view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px 12px 26px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  transition: transform .2s, background .2s;
  white-space: nowrap;
}
.works-header .view-all:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
}
.works-header .view-all .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  display: inline-block;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .4s cubic-bezier(.2,.9,.3,1);
  background: var(--bg-warm);
}
.work-card:hover {
  transform: translateY(-6px);
}
.work-card .mockup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  transition: transform .5s cubic-bezier(.2,.9,.3,1);
}
.work-card:hover .mockup { transform: scale(1.04); }

/* Different backdrop tones per card */
.work-card.tone-charcoal { background: #2b2d31; }
.work-card.tone-slate { background: #4a5560; }
.work-card.tone-warm { background: #8b7355; }
.work-card.tone-mint { background: #5b7a6e; }
.work-card.tone-cream { background: #d4c4a8; }
.work-card.tone-navy { background: #2a3a52; }

/* Inner "device" mockup */
.work-card .device {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16/10;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 0 6px rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.work-card .device .browser-bar {
  height: 22px;
  background: #eee;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 4px;
  flex-shrink: 0;
}
.work-card .device .browser-bar span {
  width: 8px; height: 8px; border-radius: 50%; background: #ccc;
}
.work-card .device .browser-bar span:nth-child(1) { background: #ff5f57; }
.work-card .device .browser-bar span:nth-child(2) { background: #ffbd2e; }
.work-card .device .browser-bar span:nth-child(3) { background: #28c840; }
.work-card .device .screen {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
}

/* Card label */
.work-card .card-label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  right: 24px;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.work-card .card-label h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.work-card .card-label .tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  display: block;
}
.work-card .card-label .arrow-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: transform .3s, background .3s;
  flex-shrink: 0;
}
.work-card:hover .card-label .arrow-btn {
  background: var(--coral-deep);
  transform: rotate(-45deg) scale(1.1);
}

/* Screen contents — mini mock, using site type system */
.mini { font-family: var(--sans); font-size: 8px; color: var(--ink); }
.mini .nav-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.mini .nav-row .logo { font-weight: 500; font-family: var(--serif); font-style: italic; font-size: 12px; letter-spacing: -0.01em; }
.mini .nav-row .links { display: flex; gap: 6px; margin-left: auto; color: var(--ink-mute); font-size: 7px; font-family: var(--sans); letter-spacing: 0.02em; }
.mini .hero-mini { display: flex; gap: 8px; align-items: center; flex: 1; min-height: 0; }
.mini .hero-mini .txt { flex: 1; }
.mini .hero-mini .headline { font-family: var(--serif); font-size: 14px; line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 3px; color: var(--ink); }
.mini .hero-mini .sub { font-family: var(--serif); font-size: 6.5px; color: var(--ink-soft); line-height: 1.4; margin-bottom: 5px; }
.mini .hero-mini .btn-mini { font-family: var(--sans); display: inline-block; background: var(--ink); color: var(--bg); padding: 3px 6px; border-radius: 3px; font-size: 6px; letter-spacing: 0.02em; }
.mini .hero-mini .img { width: 40%; aspect-ratio: 1; border-radius: 4px; flex-shrink: 0; }

/* ---------- Case Studies section ---------- */
.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}
.case-study-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: padding .3s;
  position: relative;
}
.case-study-row:last-child { border-bottom: 1px solid var(--rule); }
.case-study-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--coral-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.9,.3,1);
  z-index: 0;
  border-radius: 4px;
}
.case-study-row:hover::before { transform: scaleX(1); }
.case-study-row > * { position: relative; z-index: 1; }
.case-study-row:hover { padding-left: 24px; padding-right: 24px; color: #fff; }
.case-study-row .cs-num {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  transition: color .3s;
}
.case-study-row:hover .cs-num { color: rgba(255,255,255,0.7); }
.case-study-row .cs-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.case-study-row .cs-body .cs-blurb {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  transition: color .3s;
}
.case-study-row:hover .cs-body .cs-blurb { color: rgba(255,255,255,0.85); }
.case-study-row .cs-arrow {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .3s, transform .3s;
}
.case-study-row:hover .cs-arrow { color: #fff; transform: translateX(6px); }

/* ---------- Detail page ---------- */
.detail-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--rule);
}
.detail-hero .back {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 32px;
  transition: color .2s;
}
.detail-hero .back:hover { color: var(--coral-deep); }
.detail-hero .kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.detail-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.detail-hero h1 .italic { font-style: italic; color: var(--coral-deep); }
.detail-hero .lede {
  font-size: 22px;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.55;
  margin: 0 0 40px;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.meta-grid .m-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.meta-grid .m-value {
  font-family: var(--serif);
  font-size: 17px;
}

.detail-cover {
  padding: 40px 0;
}
.detail-cover .cover-frame {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #fff;
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
}

.detail-body section {
  padding: 60px 0;
  border-top: 1px solid var(--rule);
}
.detail-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
}
.detail-body h2 .italic { font-style: italic; color: var(--coral-deep); }
.detail-body p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 680px;
}
.detail-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  max-width: 680px;
}
.detail-body li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px dashed var(--rule);
  position: relative;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.detail-body li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--coral-deep);
}
.detail-body .metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.detail-body .metric {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.detail-body .metric .big {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--coral-deep);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.detail-body .metric .desc {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------- Case-study rich blocks (callout, phase, table, quote, wires) ---------- */
.detail-body .callout {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--coral-deep);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 28px 0 4px;
  max-width: 780px;
}
.detail-body .callout .callout-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.detail-body .callout h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.detail-body .callout h3 .italic { font-style: italic; color: var(--coral-deep); }
.detail-body .callout ul { max-width: none; margin: 0; }
.detail-body .callout li { border-bottom: none; padding: 4px 0 4px 24px; font-size: 15.5px; }
.detail-body .callout li::before { top: 4px; }
.detail-body .callout li strong { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }
.detail-body .callout p:last-child { margin-bottom: 0; }

.detail-body .phase-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--blue-tint);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.detail-body h3.sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 32px 0 14px;
  max-width: 680px;
}
.detail-body h3.sub .italic { font-style: italic; color: var(--coral-deep); }

.detail-body .pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--coral-deep);
  padding: 8px 0 8px 22px;
  margin: 28px 0;
  max-width: 680px;
  letter-spacing: -0.005em;
}
.detail-body .pullquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 10px;
}

.detail-body .decision-table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
  margin: 20px 0 8px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}
.detail-body .decision-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--rule);
}
.detail-body .decision-table tbody td {
  padding: 18px 16px;
  vertical-align: top;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink);
}
.detail-body .decision-table tbody tr:last-child td { border-bottom: none; }
.detail-body .decision-table tbody td:first-child {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  width: 28%;
}
.detail-body .decision-table tbody td:first-child strong { font-weight: 500; }
.detail-body .decision-table .verdict {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.detail-body .decision-table .verdict.selected { color: #4a5f3a; }
.detail-body .decision-table .verdict.rejected { color: var(--ink-mute); }

.detail-body .wire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 8px;
}
.detail-body .wire-frame {
  aspect-ratio: 3/4;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(60, 40, 20, 0.05) 0 6px,
      rgba(60, 40, 20, 0) 6px 12px
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.detail-body .wire-frame .wf-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--coral-deep);
  letter-spacing: 0;
  text-transform: none;
}
.detail-body .wire-frame .wf-slot { opacity: 0.85; }

.detail-body .cover-embed {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.14) 0 8px,
      rgba(255, 255, 255, 0) 8px 16px
    ),
    linear-gradient(135deg, #c9dcea 0%, #6b9ec4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 8px 0;
}

.detail-body .phase-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
  max-width: 680px;
}
.detail-body .phase-list li {
  padding: 14px 0 14px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.detail-body .phase-list li::before { content: none; }
.detail-body .phase-list li .p-tag {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--coral-deep);
  margin-right: 12px;
  min-width: 90px;
}

.detail-nav {
  padding: 60px 0 100px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.detail-nav .nav-link {
  font-family: var(--serif);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color .2s;
}
.detail-nav .nav-link:hover { color: var(--coral-deep); }
.detail-nav .nav-link .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 4px;
}
.detail-nav .nav-link.next { text-align: right; }

@media (max-width: 860px) {
  .works-grid { grid-template-columns: 1fr; }
  .works-header h2 { font-size: 56px; }
  .case-study-row { grid-template-columns: 40px 1fr; }
  .case-study-row .cs-arrow { display: none; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-body .metric-row { grid-template-columns: 1fr; }
  .detail-body .wire-grid { grid-template-columns: 1fr; }
  .detail-body .wire-caption { grid-template-columns: 1fr !important; gap: 6px !important; }
  .detail-body .decision-table { font-size: 13px; }
  .detail-body .decision-table thead { display: none; }
  .detail-body .decision-table tbody tr {
    display: block;
    padding: 20px 0;
    border-bottom: 1px dashed var(--rule);
  }
  .detail-body .decision-table tbody tr:last-child { border-bottom: none; }
  .detail-body .decision-table tbody td {
    display: block;
    padding: 4px 0;
    border-bottom: none;
    width: auto !important;
  }
  .detail-body .decision-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 4px;
  }
  .detail-body .pullquote { font-size: 22px; }
}

/* ---------- Scroll reveal ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cursor spotlight (hero only) ---------- */
.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 165, 138, 0.18),
    transparent 60%
  );
  transition: opacity .3s;
  z-index: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; width: 180px; justify-self: start; }
  .hero-photo image-slot,
  .hero-photo .headshot { width: 180px; height: 220px; }
  .skills-grid { grid-template-columns: 1fr; gap: 24px; }
  .hobbies-grid { grid-template-columns: 1fr; }
  .hobby-card.wide, .hobby-card.narrow, .hobby-card.half { grid-column: span 1; }
  /* Scrapbook — collapse to single column, straighten tilts */
  .scrapbook { gap: 40px; }
  .scrap-row.row-1,
  .scrap-row.row-2 { grid-template-columns: 1fr; gap: 32px; }
  .scrap { --tilt: 0deg !important; }
  .ticket-inner { grid-template-columns: 1fr 72px; }
  .polaroid-cluster {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    padding: 0;
  }
  .polaroid-cluster { grid-template-columns: 1fr 1fr; }
  .polaroid-cluster .scrap.polaroid-slot:nth-child(1) { grid-column: 1; grid-row: 1; margin: 0; }
  .polaroid-cluster .scrap.polaroid-slot:nth-child(2) { grid-column: 2; grid-row: 1; margin: 0; }
  .polaroid-cluster .scrap.polaroid-slot:nth-child(3) { grid-column: 1; grid-row: 2; margin: 0; }
  .polaroid-cluster .scrap.polaroid-slot:nth-child(4) { grid-column: 2; grid-row: 2; margin: 0; max-width: none; }
  .polaroid-cluster .scrap.polaroid-slot:nth-child(5) { grid-column: 1 / -1; grid-row: 3; margin: 0; }
  .pp-stamps { grid-template-columns: repeat(3, 1fr); }
  .filmstrip-frames { grid-template-columns: repeat(3, 1fr); }
  .film-frame:nth-child(n+4) { display: none; }
  .cases-board { min-height: 1200px; }
  .polaroid { position: relative !important; left: auto !important; top: auto !important; margin: 0 auto 24px; transform: none !important; }
  nav.top { padding: 16px 24px; }
  nav.top .links { display: none; }
  .wrap, .wrap-wide { padding: 0 24px; }
}
