:root {
    --coral: #E07A6A;
    --coral-soft: #FFF1EF;
    --teal: #0F6E36;
    --teal-soft: #D1FAE5;
    --violet: #6B21A8;
    --violet-soft: #DBD5FB;
    --gold: #C4A035;
    --gold-soft: #FEF9E7;
    --ink: #141414;
    --ink-mid: #525252;
    --ink-light: #A3A3A3;
    --white: #FFFFFF;
    --cream: #FFFBF7;
    --border: rgba(20, 20, 20, 0.1);
    --border-strong: rgba(20, 20, 20, 0.14);
    --shadow-sm: 0 1px 3px rgba(20, 20, 20, 0.06), 0 4px 16px rgba(20, 20, 20, 0.04);
    --shadow-md: 0 4px 24px rgba(20, 20, 20, 0.08), 0 12px 40px rgba(20, 20, 20, 0.06);
    --shadow-hover: 0 8px 32px rgba(20, 20, 20, 0.1), 0 2px 8px rgba(20, 20, 20, 0.04);
    --display: 'Onest', system-ui, sans-serif;
    --sans: 'Onest', system-ui, sans-serif;
    --max: 1280px;
    --pad: clamp(20px, 4vw, 48px);
    --radius: 16px;
    --radius-sm: 12px;
    --case-pad: clamp(20px, 4vw, 48px);
  /* Soft section gradients — coral, teal, violet, gold */
    --gradient-page:
      radial-gradient(ellipse 80% 55% at 8% 0%, rgba(255, 241, 239, 0.55) 0%, transparent 55%),
      radial-gradient(ellipse 65% 45% at 92% 100%, rgba(209, 250, 229, 0.32) 0%, transparent 50%),
      radial-gradient(ellipse 50% 35% at 85% 15%, rgba(219, 213, 251, 0.28) 0%, transparent 50%),
      radial-gradient(ellipse 40% 30% at 15% 85%, rgba(254, 249, 231, 0.35) 0%, transparent 50%);
    --gradient-about: linear-gradient(165deg, var(--coral-soft) 0%, var(--violet-soft) 32%, var(--teal-soft) 58%, var(--cream) 88%);
    --gradient-results: linear-gradient(135deg, rgba(224, 122, 106, 0.1) 0%, rgba(107, 33, 168, 0.1) 35%, rgba(15, 110, 54, 0.12) 65%, rgba(254, 249, 231, 0.45) 100%);
    --gradient-footer: linear-gradient(180deg, var(--cream) 0%, rgba(255, 241, 239, 0.28) 40%, rgba(219, 213, 251, 0.2) 70%, rgba(254, 249, 231, 0.22) 100%);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--sans);
    background: var(--gradient-page), var(--cream);
    background-attachment: fixed;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* ── NAV ── */
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--pad);
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-logo {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.03em;
  }

  .nav-logo em {
    font-style: normal;
    color: var(--coral);
  }

  .nav-links {
    display: flex;
    gap: clamp(16px, 3vw, 36px);
    list-style: none;
    align-items: center;
  }

  .nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--coral); }

  .nav-cta {
    background: var(--coral);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: background 0.2s, box-shadow 0.2s !important;
    box-shadow: var(--shadow-sm);
  }

  .nav-cta:hover {
    background: var(--ink) !important;
    box-shadow: var(--shadow-md);
  }

  /* ── HERO ── */
  .hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 8vw, 100px) var(--pad) clamp(60px, 10vw, 120px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    position: relative;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: 5%;
    width: clamp(180px, 30vw, 320px);
    height: clamp(180px, 30vw, 320px);
    background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
  }

  .hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -5%;
    width: clamp(120px, 20vw, 200px);
    height: clamp(120px, 20vw, 200px);
    background: radial-gradient(circle, var(--teal-soft) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--teal);
    margin-bottom: 20px;
  }

  .hero-eyebrow::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
  }

  .hero-title {
    font-family: var(--display);
    font-size: clamp(44px, 6.5vw, 82px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
  }

  .hero-title .line { display: block; }

  .hero-title .accent-coral { color: var(--coral); }
  .hero-title .accent-violet { color: var(--violet); }
  .hero-title .accent-teal { color: var(--teal); }

  .hero-desc {
    font-size: clamp(17px, 1.8vw, 19px);
    color: var(--ink-mid);
    max-width: 34em;
    margin-bottom: 36px;
    line-height: 1.75;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  }

  .btn-primary:hover {
    background: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-mid);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(20, 20, 20, 0.2);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
  }

  .btn-ghost:hover { color: var(--violet); border-color: var(--gold); }

  .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-card-stack {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 4 / 5;
  }

  .hero-card {
    position: absolute;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .hero-card--back {
    inset: 0;
    background: linear-gradient(135deg, var(--violet) 0%, var(--coral) 100%);
    transform: rotate(6deg);
  }

  .hero-card--mid {
    inset: 8% 8% 8% 8%;
    background: var(--gold-soft);
    transform: rotate(-3deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
  }

  .hero-card--front {
    inset: 16% 16% 16% 16%;
    background: var(--white);
    transform: rotate(1deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
  }

  .hero-stat {
    font-family: var(--display);
    font-size: 48px;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
    letter-spacing: -0.03em;
  }

  .hero-stat-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-mid);
    text-align: center;
  }

  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .hero-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--teal-soft);
    color: var(--teal);
  }

  .hero-tag:nth-child(2) { background: var(--violet-soft); color: var(--violet); }
  .hero-tag:nth-child(3) { background: var(--coral-soft); color: var(--coral); }

  /* ── COLOR STRIPE ── */
  .color-stripe {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 4px;
  }

  .color-stripe span:nth-child(1) { background: var(--coral); }
  .color-stripe span:nth-child(2) { background: var(--teal); }
  .color-stripe span:nth-child(3) { background: var(--violet); }
  .color-stripe span:nth-child(4) { background: var(--gold); }

  /* ── ABOUT ── */
  .about {
    background: var(--gradient-about);
    color: var(--ink);
    padding: clamp(60px, 10vw, 100px) var(--pad);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .about::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -8%;
    width: clamp(200px, 35vw, 420px);
    height: clamp(200px, 35vw, 420px);
    background: radial-gradient(circle, rgba(224, 122, 106, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }

  .about-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
    position: relative;
  }

  .about-label {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
  }

  .about-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .meta-key {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-light);
  }

  .meta-val {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
  }

  .meta-val a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s;
  }

  .meta-val a:hover { color: var(--coral); }

  .about-heading {
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
  }

  .about-heading em {
    font-style: normal;
    color: var(--coral);
  }

  .about-body {
    font-size: 17px;
    color: var(--ink-mid);
    line-height: 1.82;
    margin-bottom: 16px;
    max-width: 52em;
  }

  .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
  }

  .skill-chip {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--ink-mid);
    background: rgba(255, 255, 255, 0.65);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }

  .skill-chip:hover {
    background: var(--coral-soft);
    border-color: rgba(224, 122, 106, 0.28);
    color: var(--coral);
  }

  .skill-chip:nth-child(4n+2):hover {
    background: var(--teal-soft);
    border-color: rgba(15, 110, 54, 0.28);
    color: var(--teal);
  }

  .skill-chip:nth-child(4n+3):hover {
    background: var(--violet-soft);
    border-color: rgba(107, 33, 168, 0.28);
    color: var(--violet);
  }

  .skill-chip:nth-child(4n):hover {
    background: var(--gold-soft);
    border-color: rgba(196, 160, 53, 0.35);
    color: var(--gold);
  }

  /* ── PROJECTS ── */
  .projects {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(60px, 10vw, 100px) var(--pad);
  }

  .projects-header {
    margin-bottom: clamp(36px, 6vw, 56px);
  }

  .projects-title {
    font-family: var(--display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .projects-title span { color: var(--violet); }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }

  .project-card {
    grid-column: span 2;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
  }

  .project-card:nth-child(4) { grid-column: 2 / span 2; }
  .project-card:nth-child(5) { grid-column: 4 / span 2; }

  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }

  .project-visual {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
  }

  .project-card:nth-child(1) .project-visual {
    background: linear-gradient(145deg, var(--coral) 0%, #FF8A7A 50%, var(--gold) 100%);
  }

  .project-card:nth-child(2) .project-visual {
    background: linear-gradient(160deg, var(--teal) 0%, #2DD4BF 60%, var(--violet-soft) 100%);
  }

  .project-card:nth-child(3) .project-visual {
    background: linear-gradient(135deg, var(--violet) 0%, #A78BFA 50%, var(--coral-soft) 100%);
  }

  .project-card:nth-child(4) .project-visual {
    background: linear-gradient(180deg, var(--gold) 0%, #FDE047 40%, var(--coral-soft) 100%);
  }

  .project-card:nth-child(5) .project-visual {
    background: linear-gradient(200deg, var(--violet) 0%, #5EEAD4 45%, var(--teal) 100%);
  }

  .project-num {
    font-family: var(--display);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1;
    letter-spacing: -0.04em;
    position: absolute;
    top: 16px;
    right: 20px;
  }

  .project-year-badge {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
  }

  .project-body {
    padding: clamp(20px, 3vw, 28px);
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .project-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 6px;
  }

  .project-tag--meta { background: var(--violet-soft); color: var(--violet); }
  .project-tag--wa { background: var(--teal-soft); color: var(--teal); }

  .project-card:nth-child(2) .project-tag--meta { background: var(--coral-soft); color: var(--coral); }
  .project-card:nth-child(3) .project-tag--wa { background: var(--gold-soft); color: #a16207; }
  .project-card:nth-child(4) .project-tag--meta { background: var(--gold-soft); color: #a16207; }
  .project-card:nth-child(5) .project-tag--wa { background: var(--violet-soft); color: var(--violet); }

  .project-name {
    font-family: var(--display);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .project-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--coral);
    margin-bottom: 10px;
  }

  .project-card:nth-child(2) .project-subtitle { color: var(--teal); }
  .project-card:nth-child(3) .project-subtitle { color: var(--violet); }
  .project-card:nth-child(4) .project-subtitle { color: #a16207; }
  .project-card:nth-child(5) .project-subtitle { color: var(--teal); }

  .project-desc {
    font-size: 15px;
    color: var(--ink-mid);
    line-height: 1.7;
    flex: 1;
  }

  .project-arrow {
    margin-top: 16px;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink-light);
    transition: transform 0.2s, color 0.2s;
  }

  .project-card:hover .project-arrow {
    transform: translateX(4px);
    color: var(--coral);
  }

  .project-card:nth-child(2):hover .project-arrow { color: var(--teal); }
  .project-card:nth-child(3):hover .project-arrow { color: var(--violet); }
  .project-card:nth-child(4):hover .project-arrow { color: #a16207; }
  .project-card:nth-child(5):hover .project-arrow { color: var(--violet); }

  /* ── FOOTER ── */
  .footer {
    background: var(--gradient-footer);
    color: var(--ink);
    padding: clamp(56px, 8vw, 88px) var(--pad) clamp(36px, 5vw, 52px);
    position: relative;
    border-top: 1px solid var(--border);
  }

  .footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 10%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(224, 122, 106, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }

  .footer::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(196, 160, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }

  .footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .footer-name {
    font-family: var(--display);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 12px;
  }

  .footer-tagline {
    font-size: 16px;
    color: var(--ink-mid);
    margin-bottom: 36px;
    font-weight: 400;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 32px);
    margin-bottom: 48px;
  }

  .footer-link {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 122, 106, 0.35);
    padding-bottom: 4px;
    transition: border-color 0.2s, color 0.2s;
  }

  .footer-link:hover {
    border-color: var(--coral);
    color: var(--coral);
  }

  .footer-link:nth-child(2):hover { border-color: var(--teal); color: var(--teal); }
  .footer-link:nth-child(3):hover { border-color: var(--violet); color: var(--violet); }
  .footer-link:nth-child(4):hover { border-color: var(--gold); color: var(--gold); }

  /* ── RESPONSIVE ── */
  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-card-stack { width: min(100%, 300px); margin: 0 auto; }
    .about-inner { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card,
    .project-card:nth-child(4),
    .project-card:nth-child(5) { grid-column: 1 / -1; }
    .nav-links li:not(:last-child) { display: none; }
  }

  @media (max-width: 480px) {
    .hero-title { font-size: 38px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary { justify-content: center; }
  }


  /* ── legacy SPA (removed) ── */
.case-page { padding-top: 8px; }

  /* ── Hero (updated) ── */
  .hero-name {
    font-family: var(--display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
  }

  .hero-name em {
    font-style: normal;
    color: var(--coral);
  }

  .hero-photo-card {
    position: relative;
    width: min(100%, 300px);
    max-width: 300px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
  }

  .hero-photo {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 15%;
  }

  .nav-logo { cursor: pointer; }
  .nav-links a, .nav-links span { cursor: pointer; }

  .project-card { cursor: pointer; }

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 100px;
  border: none;
}
  .tag-accent { background: var(--coral-soft); color: var(--coral); }
  .tag-teal { background: var(--teal-soft); color: var(--teal); }
  .tag-gold { background: var(--gold-soft); color: #a16207; }
  .tag-violet { background: var(--violet-soft); color: var(--violet); }

  /* Case study accents — refined, no sticker chrome */
  .case-page { animation: fadeUp 0.35s ease; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .case-meta-card {
    box-shadow: var(--shadow-sm);
  }

  .case-eyebrow { color: var(--teal) !important; font-weight: 500 !important; }

  .star-label::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
  }

  .star-section-title {
    font-family: var(--display);
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    color: var(--ink-mid) !important;
    font-size: 13px !important;
    text-transform: none !important;
  }

  .challenge-box {
    border: none !important;
    border-left: 3px solid var(--coral) !important;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    background: var(--gold-soft) !important;
  }

  .challenge-label { color: var(--coral) !important; font-weight: 600 !important; }
  .challenge-text { font-family: var(--sans) !important; font-style: italic !important; font-weight: 500 !important; }

  .action-num {
    font-family: var(--display);
    font-weight: 600 !important;
    background: var(--violet-soft) !important;
    color: var(--violet) !important;
    border: none !important;
    border-radius: 6px !important;
  }

  .action-block:nth-child(2) .action-num {
    background: var(--teal-soft) !important;
    color: var(--teal) !important;
  }

  .action-block:nth-child(3) .action-num {
    background: var(--coral-soft) !important;
    color: var(--coral) !important;
  }

  .action-block:nth-child(4) .action-num {
    background: var(--gold-soft) !important;
    color: #a16207 !important;
  }

  .results-band {
    background: var(--gradient-results) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm);
  }

  .reflection-card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--white) !important;
    box-shadow: none !important;
  }

  .case-nav-footer {
    border-top: 1px solid var(--border) !important;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(255, 241, 239, 0.15) 50%, rgba(219, 213, 251, 0.1) 100%) !important;
  }

  .case-table thead tr {
    background: var(--cream) !important;
    border-bottom: 1px solid var(--border-strong) !important;
  }

  .case-slide-carousel-arrow {
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .case-hero-figure {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .case-prototype-video-wrap video {
    border: none;
  }

  .case-audio-prototype-row, .case-flow-prototype-grid {
    display: grid;
    gap: 20px;
  }

  .case-audio-prototype-row { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .case-flow-prototype-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

  .nav-links span {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links span:hover { color: var(--coral); }

/* ── CASE STUDY PAGES ── */
  .case-page { animation: fadeUp 0.4s ease; }
 
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
 
  .case-back {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px var(--case-pad) 0;
  }
 
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-mid);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--sans);
  }
 
  .back-btn:hover { color: var(--coral); }
 
  /* Case hero */
  .case-hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 48px var(--case-pad) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: clamp(32px, 4vw, 72px);
    align-items: start;
  }
 
  .case-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
  }
 
  .case-title {
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 16px;
  }
 
  .case-subtitle {
    font-size: 15px;
    color: var(--ink-light);
    margin-bottom: 28px;
  }
 
  .case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
 
  .case-meta-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 88px;
    box-shadow: var(--shadow-sm);
  }
 
  .case-meta-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 20px;
  }
 
  .case-meta-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  }
 
  .case-meta-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
 
  .cmr-key { font-size: 11px; color: var(--ink-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; }
  .cmr-val { font-size: 14px; color: var(--ink); }
 
  /* Case image placeholder */
  .case-img-block {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px var(--case-pad) 0;
  }

  /* Optional wider treatment for short, panoramic framework images */
  .case-img-block.case-img-block--wide {
    max-width: min(1400px, 100vw);
  }

  /* Slightly inset vs full case width — e.g. hierarchy diagram */
  .case-img-block.case-img-block--inset-md {
    max-width: min(1120px, 100%);
  }

  /* Caption reads before the figure (e.g. How it comes together) */
  .case-img-block.case-img-block--caption-top .case-img-caption {
    margin: 0 0 12px;
    text-align: left;
  }

  /* Caption lines up with carousel image column (past arrow gutters) */
  .case-carousel-caption-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .case-carousel-caption-stack .case-img-caption {
    margin: 0;
    text-align: left;
    padding-left: calc(42px + clamp(8px, 2vw, 16px));
    padding-right: calc(42px + clamp(8px, 2vw, 16px));
  }

  .case-carousel-caption-stack.case-carousel-caption-stack--flush .case-img-caption {
    padding-left: 0;
    padding-right: 0;
  }

  .case-carousel-caption-stack > .case-slide-carousel {
    width: 100%;
  }

  .case-img-block + .case-img-block.case-img-block--tight-follow {
    padding-top: 16px;
  }

  /* Two-slide deck: hierarchy ↔ content principles */
  .case-slide-carousel {
    outline: none;
  }

  .case-slide-carousel:focus-visible {
    border-radius: 12px;
    box-shadow: 0 0 0 2px var(--coral);
    box-shadow: 0 0 0 2px var(--coral), 0 0 0 6px var(--coral-soft);
  }

  .case-slide-carousel-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: clamp(8px, 2vw, 16px);
  }

  .case-slide-carousel-arrow {
    align-self: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  }

  .case-slide-carousel-arrow:hover:not(:disabled) {
    background: var(--coral-soft);
    border-color: var(--coral);
    color: var(--coral);
  }

  .case-slide-carousel-arrow:disabled {
    opacity: 0.28;
    cursor: default;
    box-shadow: none;
  }

  .case-slide-carousel-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .case-slide-carousel-viewport {
    overflow: hidden;
    border-radius: 16px;
    min-width: 0;
    width: 100%;
  }

  .case-slide-carousel-track {
    --slides-n: 2;
    --carousel-index: 0;
    display: flex;
    align-items: flex-start;
    width: calc(var(--slides-n) * 100%);
    transform: translateX(calc(-100% / var(--slides-n) * var(--carousel-index)));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    box-sizing: border-box;
  }

  .case-slide-carousel-slide {
    flex: 0 0 calc(100% / var(--slides-n));
    box-sizing: border-box;
    padding: 0 2px;
  }

  /* “How it comes together”: phone mocks stay centered vs full‑bleed flow strips */
  .case-slide-carousel-slide--together-phone .case-img-caption {
    text-align: left;
  }

  .case-slide-carousel-slide--together-phone figure.case-hero-figure:not(.case-hero-figure--portrait) {
    max-width: min(720px, 94vw);
    margin-left: auto;
    margin-right: auto;
  }

  .case-img-block.case-img-block--journey-carousel {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
  }

  /* Captions scoped inside carousel slides need same typography */
  .case-slide-carousel-slide .case-img-caption {
    margin-top: 12px;
    margin-bottom: 0;
  }

  .case-slide-carousel-slide.case-slide-carousel-slide--caption-top .case-img-caption:first-child {
    margin-top: 0;
    margin-bottom: 12px;
  }

  .case-slide-carousel-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
  }

  /* Interest Collection (p6): pagination dots tight under slides */
  body.case-p6 .case-slide-carousel .case-slide-carousel-footer {
    margin-top: 0;
    padding-top: 4px;
  }

  /* Platform UI strips — wider canvas so phone flows read closer to wireframe scale */
  body.case-p6 .case-slide-carousel.case-slide-carousel--platform-ui .case-slide-carousel-slide figure.case-hero-figure {
    max-width: min(1400px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  /* Detailed UX flows: shared 16:9 frame so dots stay visually anchored across mixed slide aspects */
  body.case-p6 .case-slide-carousel--detailed-ux-flows .case-slide-carousel-slide .case-hero-figure {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slide-deck-bg);
    max-width: 100%;
    margin: 0 auto;
  }

  body.case-p6 .case-slide-carousel--detailed-ux-flows .case-slide-carousel-slide .case-hero-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  /* “How it comes together” / journey carousels: footer tight under slides; height synced in JS per active slide */
  .case-slide-carousel.case-slide-carousel--journey .case-slide-carousel-track {
    overflow: hidden;
  }

  .case-slide-carousel.case-slide-carousel--journey .case-slide-carousel-footer {
    margin-top: 8px;
  }

  .case-slide-carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .case-slide-carousel-dots li {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
  }

  .case-slide-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(20, 20, 20, 0.2);
    transition: transform 0.2s, background 0.2s;
  }

  .case-slide-carousel-dot[aria-current="true"] {
    background: var(--coral);
    transform: scale(1.25);
    cursor: default;
  }

  @media (max-width: 520px) {
    .case-slide-carousel-arrow {
      width: 38px;
      height: 38px;
    }

    .case-slide-carousel-shell {
      gap: 6px;
    }
  }

  .case-hero-figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }

  .case-hero-figure img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Single portrait screenshot sizing (keeps rhythm with wider case visuals) */
  .case-hero-figure.case-hero-figure--portrait {
    max-width: 460px;
    margin: 0 auto;
  }

  .case-img-caption {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.6;
  }

  .together-pair-head {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-light);
    margin: 32px 0 12px;
    /* Matches .case-img-block horizontal inset so titles line up with mock left edge */
    padding-left: var(--case-pad);
  }

  .together-pair-head:first-of-type {
    margin-top: 8px;
  }

  .case-prototype-video-wrap {
    max-width: min(720px, 100%);
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: var(--shadow-sm);
  }

  .case-prototype-video-wrap video {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    background: #000;
  }

  /* Portrait phone prototype — narrow column; true black behind video (no gray wash) */
  body.case-p4 .case-prototype-video-wrap--portrait,
  body.case-p6 .case-prototype-video-wrap--portrait {
    max-width: min(400px, 94vw);
    background: #000;
    border-color: var(--border);
  }

  /* p4: case header hero — full-height phone export; scale like an on-device preview (zoom opens full res) */
  body.case-p4 .case-hero + .case-img-block.case-img-block--inset-md .case-hero-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
  }

  body.case-p4 .case-hero + .case-img-block.case-img-block--inset-md .case-hero-figure img {
    width: auto;
    max-width: min(300px, 88vw);
    height: auto;
    max-height: min(58vh, 480px);
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
  }

  /* p5: case header hero — wide call UI; keep footprint modest (zoom still opens full res) */
  body.case-p5 .case-hero + .case-img-block.case-img-block--inset-md .case-hero-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
  }

  body.case-p5 .case-hero + .case-img-block.case-img-block--inset-md .case-hero-figure img {
    width: auto;
    max-width: min(720px, 94vw);
    height: auto;
    max-height: min(46vh, 430px);
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
  }

  /* p2: Action 02 — ghost text carousel; portrait + landscape slides share height cap */
  body.case-p2 .case-img-block--ghost-text .case-slide-carousel-viewport {
    max-width: min(900px, 94vw);
    margin: 0 auto;
  }

  body.case-p2 .case-img-block--ghost-text .case-slide-carousel-slide .case-hero-figure--portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(450px, 82vw);
    margin: 0 auto;
  }

  body.case-p2 .case-img-block--ghost-text .case-slide-carousel-slide .case-hero-figure--portrait img {
    width: auto;
    max-width: min(450px, 82vw);
    height: auto;
    max-height: min(62vh, 680px);
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
  }

  body.case-p2 .case-img-block--ghost-text .case-slide-carousel-slide .case-hero-figure:not(.case-hero-figure--portrait) {
    max-width: min(860px, 94vw);
    margin: 0 auto;
  }

  body.case-p2 .case-img-block--ghost-text .case-slide-carousel-slide .case-hero-figure:not(.case-hero-figure--portrait) img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(62vh, 680px);
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
  }

  /* p2: Action 03 — attribution framework; tall composite, not a wide strip */
  body.case-p2 .case-img-block--attribution .case-hero-figure {
    max-width: min(460px, 90vw);
    margin: 0 auto;
  }

  /* p5: side-by-side audio consent prototypes (Action 03) — capped width + height so the pair doesn’t dominate, but UI text stays legible */
  body.case-p5 .case-audio-prototype-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    align-items: start;
    max-width: min(1050px, 100%);
    margin: 0 auto;
  }

  body.case-p5 .case-audio-prototype-cell {
    min-width: 0;
  }

  body.case-p5 .case-audio-prototype-cell .case-img-caption {
    text-align: center;
    margin: 0 0 10px;
  }

  body.case-p5 .case-audio-prototype-cell .case-prototype-video-wrap {
    max-width: none;
    margin: 0;
    width: 100%;
  }

  body.case-p5 .case-audio-prototype-cell video {
    width: 100%;
    height: auto;
    max-height: min(52vh, 480px);
    object-fit: contain;
    vertical-align: top;
    display: block;
  }

  @media (max-width: 720px) {
    body.case-p5 .case-audio-prototype-row {
      grid-template-columns: 1fr;
    }
  }

  /* p5: 2×2 end-to-end flow prototype videos (Action 06) */
  body.case-p5 .case-flow-prototype-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px 24px;
    max-width: min(1050px, 100%);
    margin: 0 auto;
  }

  body.case-p5 .case-flow-prototype-cell {
    min-width: 0;
  }

  body.case-p5 .case-flow-prototype-cell .case-img-caption {
    text-align: center;
    margin: 0 0 10px;
  }

  body.case-p5 .case-flow-prototype-cell .case-prototype-video-wrap {
    max-width: none;
    margin: 0;
    width: 100%;
  }

  body.case-p5 .case-flow-prototype-cell video {
    width: 100%;
    height: auto;
    max-height: min(52vh, 480px);
    object-fit: contain;
    vertical-align: top;
    display: block;
    background: #000;
  }

  @media (max-width: 720px) {
    body.case-p5 .case-flow-prototype-grid {
      grid-template-columns: 1fr;
    }
  }

  /* p4: keep “Interactive prototype” caption in the same column as the centered portrait video */
  body.case-p4 .case-img-block.case-img-block--wide.case-img-block--caption-top:has(.case-prototype-video-wrap--portrait) .case-img-caption {
    max-width: min(400px, 94vw);
    margin: 0 auto 12px;
    text-align: center;
  }

  body.case-p4 .case-prototype-video-wrap--portrait video {
    width: 100%;
    height: auto;
    max-height: min(88vh, 920px);
    object-fit: contain;
    object-position: center center;
    background: #000;
    opacity: 1;
  }

  /*
   * Interest Collection prototype MOV is HDR PQ; ffmpeg tonemap without PQ→linear crushes highs (~luma 154 → “gray”).
   * Remove this filter after re-export with tools/reencode-interest-prototype-web.sh (zscale path).
   */
  body.case-p6 .case-prototype-video-wrap--portrait video {
    width: 100%;
    height: auto;
    max-height: min(88vh, 920px);
    object-fit: contain;
    object-position: center center;
    background: #000;
    opacity: 1;
    filter: brightness(1.38) contrast(1.04) saturate(1.06);
  }

  .case-hero-figure.case-hero-figure--zoomable {
    position: relative;
    cursor: zoom-in;
    transition: box-shadow 0.2s;
  }

  .case-hero-figure--zoomable:hover {
    box-shadow: 0 8px 36px rgba(26, 26, 24, 0.12);
  }

  .case-hero-figure--zoomable:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 4px;
  }

  /* Hover affordance: magnifier (cursor is also zoom-in) */
  .case-hero-figure--zoomable::after {
    content: '';
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.94);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A18' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    box-shadow: 0 2px 14px rgba(26, 26, 24, 0.14);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }

  .case-hero-figure--zoomable:hover::after,
  .case-hero-figure--zoomable:focus-visible::after {
    opacity: 1;
  }

  /* Full-size diagram viewer (native pixels inside scroll = readable type) */
  .case-lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .case-lightbox[hidden] {
    display: none !important;
  }

  .case-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    margin: 0;
    padding: 0;
    background: rgba(18, 18, 16, 0.94);
    cursor: pointer;
  }

  .case-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    overflow: auto;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 24px 100px rgba(0, 0, 0, 0.5);
    -webkit-overflow-scrolling: touch;
  }

  /* Native pixel size inside scroll container so HD diagrams stay legible when panned */
  .case-lightbox-img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
  }

  .case-lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 401;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(40, 40, 38, 0.95);
    color: var(--white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    transition: background 0.2s, transform 0.2s;
  }

  .case-lightbox-close:hover {
    background: var(--coral);
    transform: scale(1.04);
  }

  .case-lightbox-zoombar {
    position: fixed;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 402;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(32, 32, 30, 0.95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    font-family: var(--sans);
  }

  .case-lightbox-zoombar button {
    min-width: 40px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    font-variant-numeric: tabular-nums;
  }

  .case-lightbox-zoombar button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
  }

  .case-lightbox-zoombar button.case-lightbox-zoom-fit {
    min-width: auto;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
  }

  .case-lightbox-zoombar button.case-lightbox-zoom--step {
    min-width: 44px;
    font-size: 18px;
    line-height: 1;
    padding: 0 8px;
  }

  .case-lightbox-zoombar button:disabled {
    opacity: 0.38;
    cursor: default;
  }

  .case-lightbox-zoombar-hint {
    padding: 0 6px 0 10px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.52);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
 
  .img-zone {
    border-radius: var(--radius);
    border: 1px dashed var(--border-strong);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    text-align: center;
    position: relative;
  }
 
  .img-zone-icon { font-size: 28px; }
  .img-zone-label { font-size: 14px; font-weight: 500; color: var(--ink-mid); }
  .img-zone-sub { font-size: 12px; color: var(--ink-light); }
 
  .img-zone-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--coral-soft);
    color: var(--coral);
    font-size: 10px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }
 
  .img-zone.half { height: 220px; }
  .img-zone.tall { height: 320px; }
  .img-zone.short { height: 160px; }
 
  /* Case content body — single column so copy uses full --max width */
  .case-body {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--case-pad) 80px;
    display: block;
  }
 
  .case-content {
    padding-top: 48px;
    width: 100%;
    max-width: none;
  }
 
  /* STAR sections */
  .star-section { margin-bottom: 56px; }

  /* Full-journey recap — air + faint rule; stays on cream (no panel) */
  .star-section.star-section--together {
    margin-bottom: 64px;
    padding-top: 56px;
    border-top: 1px solid rgba(20, 20, 20, 0.12);
  }
 
  .star-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
 
  .star-letter-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
  }
 
  .badge-s { background: var(--coral-soft); color: var(--coral); }
  .badge-t { background: var(--teal-soft); color: var(--teal); }
  .badge-a { background: var(--violet-soft); color: var(--violet); }
  .badge-r { background: var(--gold-soft); color: var(--gold); }
  .badge-ref { background: rgba(20, 20, 20, 0.12); color: var(--ink-mid); }
 
  .star-section-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-mid);
    letter-spacing: 0.04em;
  }
 
  .star-heading {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.28;
  }

  .case-p {
    font-size: 16px;
    color: var(--ink-mid);
    line-height: 1.82;
    margin-bottom: 16px;
  }
 
  .challenge-box {
    background: var(--gold-soft);
    border-left: 3px solid var(--coral);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
  }
 
  .challenge-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--coral);
    margin-bottom: 8px;
  }
 
  .challenge-text {
    font-size: 16px;
    color: var(--ink);
    line-height: 1.72;
    font-style: italic;
    font-family: var(--display);
    font-weight: 600;
  }
 
  /* Action items */
  .action-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  }
 
  .action-block:last-child { border-bottom: none; }
 
  .action-num-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
 
  .action-num {
    font-size: 12px;
    font-weight: 500;
    color: var(--violet);
    background: var(--violet-soft);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
 
  .action-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
  }

  .action-subsection {
    margin-top: 36px;
  }

  .action-block > .case-p + .action-subsection {
    margin-top: 20px;
  }

  .action-subsection-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }
 
  /* Tables */
  .case-table-wrap { margin: 24px 0; overflow-x: auto; }
 
  .case-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
 
  .case-table thead tr {
    background: var(--cream);
    border-bottom: 1px solid var(--border-strong);
  }
 
  .case-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-light);
  }
 
  .case-table td {
    padding: 12px 16px;
    color: var(--ink-mid);
    border-bottom: 1px solid rgba(20, 20, 20, 0.12);
    vertical-align: top;
    line-height: 1.55;
  }
 
  .case-table tr:last-child td { border-bottom: none; }
  .case-table td:first-child { color: var(--ink); font-weight: 400; }
 
  /* Results */
  .results-band {
    background: var(--gradient-results);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    margin: 0 0 40px;
    box-shadow: var(--shadow-sm);
  }
 
  .results-band-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-light);
    margin-bottom: 24px;
  }
 
  .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 24px;
  }
 
  .result-item {}
 
  .result-num {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
  }
 
  .result-num.accent { color: var(--coral); }
  .result-num.gold { color: #a16207; }
  .result-num.teal { color: var(--teal); }
 
  .result-desc {
    font-size: 13px;
    color: var(--ink-mid);
    line-height: 1.55;
  }
 
  /* Bullets */
  .case-list {
    list-style: none;
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
 
  .case-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--ink-mid);
    line-height: 1.65;
  }
 
  .case-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    flex-shrink: 0;
    margin-top: 9px;
  }

  .case-list li:nth-child(2)::before { background: var(--teal); }
  .case-list li:nth-child(3)::before { background: var(--violet); }
  .case-list li:nth-child(4)::before { background: var(--gold); }
 
  /* Reflection */
  .reflection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    margin-top: 20px;
  }
 
  .reflection-card {
    background: var(--cream);
    border-radius: 12px;
    padding: 22px;
    border: 1px solid rgba(20, 20, 20, 0.12);
  }
 
  .reflection-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-light);
    margin-bottom: 10px;
  }
 
  .reflection-text {
    font-size: 14px;
    color: var(--ink-mid);
    line-height: 1.7;
  }
 
  .inline-img {
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    align-items: stretch;
  }

  .inline-img .img-zone { width: 100%; }

  /* divider */
  .case-divider {
    border: none;
    border-top: 1px solid rgba(20, 20, 20, 0.12);
    margin: 0 0 48px;
  }
 
  /* Inline img placeholder */
  .inline-img {
    margin: 24px 0;
  }
 
  /* Case footer nav */
  .case-nav-footer {
    background: linear-gradient(180deg, var(--cream) 0%, rgba(255, 241, 239, 0.12) 50%, rgba(219, 213, 251, 0.1) 100%);
    border-top: 1px solid var(--border);
    padding: 40px var(--case-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
 
  .cnf-inner { max-width: var(--max); margin: 0 auto; width: 100%; display: flex; justify-content: space-between; align-items: center; }
 
  .cnf-back {
    font-size: 14px;
    color: var(--ink-mid);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: var(--sans);
    display: flex;
    align-items: center;
    gap: 6px;
  }
 
  .cnf-back:hover { color: var(--coral); }
 
  .cnf-next {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    font-family: var(--sans);
  }
 
  .cnf-next:hover { background: var(--coral); }
 
  /* ── CASE STUDIES: PASSWORD GATE (client-side deterrent only) ── */
  .case-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(26, 26, 24, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    backdrop-filter: blur(6px);
  }

  .case-gate-overlay.case-gate-overlay--open {
    display: flex;
  }

  .case-gate-dialog {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-width: 400px;
    width: 100%;
    padding: 28px 28px 24px;
    position: relative;
  }

  .case-gate-title {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.2;
  }

  .case-gate-p {
    font-size: 14px;
    color: var(--ink-mid);
    line-height: 1.6;
    margin: 0 0 18px;
  }

  .case-gate-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  .case-gate-field label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .case-gate-password {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink);
    transition: border-color 0.2s;
  }

  .case-gate-password:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px var(--coral-soft);
  }

  .case-gate-error {
    font-size: 13px;
    color: var(--coral);
    margin: -6px 0 14px;
  }

  .case-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 6px;
  }

  .case-gate-cancel {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--ink-mid);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--sans);
    transition: background 0.2s, border-color 0.2s;
  }

  .case-gate-cancel:hover {
    background: var(--cream);
    border-color: var(--ink-light);
    color: var(--ink);
  }

  .case-gate-submit {
    background: var(--ink);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--sans);
    transition: background 0.2s;
  }

  .case-gate-submit:hover {
    background: var(--coral);
  }
 
  

  .case-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .case-lightbox[hidden] { display: none !important; }
  .case-lightbox-backdrop { position: absolute; inset: 0; background: transparent; border: none; cursor: pointer; }
  .case-lightbox-inner { position: relative; max-width: 95vw; max-height: 90vh; overflow: auto; }
  .case-lightbox-img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
  .case-lightbox-close {
    position: absolute; top: -12px; right: -12px;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--white); color: var(--ink);
    font-size: 22px; line-height: 1; cursor: pointer; z-index: 2;
    box-shadow: var(--shadow-sm);
  }

.case-content.case-content--locked {
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

a.cnf-back, a.cnf-next, a.back-btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.project-card {
  cursor: pointer;
}


.case-content.case-content--locked {
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

a.cnf-back, a.cnf-next, a.back-btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.project-card {
  cursor: pointer;
}
