:root {
    --paper: #0A0C12;
    --paper-dim: #161923;
    --ink: #F5F4F0;
    --ink-soft: #9C9B94;
    --signal: #E8B84B;
    --signal-dim: rgba(232, 184, 75, 0.12);
    --amber: #D98E4A;
    --amber-dim: rgba(217, 142, 74, 0.12);
    --rule: #2A2A2A;
    --white: #12141C;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: auto; }
  body { background: var(--paper); color: var(--ink); font-family: 'Inter', sans-serif; font-size: 17px; line-height: 1.65; }
  .wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
  h1, h2, h3, .display { font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -0.01em; }
  .mono { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
  a { color: inherit; }

  /* ---------- NAV ---------- */
  nav { display: flex; justify-content: space-between; align-items: center; padding: 40px 32px 0; max-width: 860px; margin: 0 auto; position: sticky; top: 0; background: var(--paper); z-index: 10; }
  nav .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-dim); overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: var(--ink-soft); text-align: center; text-decoration: none; flex-shrink: 0; }
  nav .avatar img { width: 100%; height: 100%; object-fit: cover; }
  nav .links { display: flex; gap: 6px; background: var(--paper-dim); border-radius: 30px; padding: 6px; flex-wrap: wrap; }
  nav .links a { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 8px 18px; border-radius: 24px; transition: background .15s ease; white-space: nowrap; }
  nav .links a:hover { background: var(--rule); }
  
  /* Hamburger menu (hidden by default, shown on mobile) */
  .hamburger { display: none; width: 44px; height: 44px; padding: 10px 8px; flex-direction: column; justify-content: space-between; background: none; border: none; cursor: pointer; margin: -10px 0 0 0; }
  .hamburger span { display: block; width: 100%; height: 2px; background: var(--ink); transition: all .3s ease; transform-origin: center; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translateY(11px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-11px); }
  
  .mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 20px 32px; flex-direction: column; gap: 0; z-index: 9; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .15s ease; }
  .mobile-menu a:hover { color: var(--signal); }
  
  @media (max-width: 768px) {
    nav { padding: 24px 20px 0; }
    nav .links { display: none; }
    .hamburger { display: flex; }
  }

  /* ---------- HERO ---------- */
  .hero { padding: 88px 0 80px 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-areas: "text text sticker sticker"; align-items: end; gap: 24px; }
  .hero-text { grid-area: text; }
  .hero .eyebrow { color: var(--signal); margin-bottom: 18px; }
  .hero h1 { font-size: 40px; line-height: 1.14; margin-bottom: 40px; }

  /* ---------- SCATTERED STICKERS (physics-driven) ---------- */
  .sticker-field { grid-area: sticker; position: relative; width: 100%; height: 300px; overflow: visible; }
  .sticker, .dot-fill, .dot-ring, .icon-badge { position: absolute; top: 0; left: 0; will-change: transform; box-sizing: border-box; }
  .sticker { font-family: 'Space Grotesk', sans-serif; font-weight: 500; white-space: nowrap; padding: 10px 18px; border-radius: 30px; font-size: 15px; }
  .sticker.fill { background: var(--paper-dim); color: var(--ink); }
  .sticker.accent { background: var(--signal); color: var(--paper); font-weight: 600; }
  .sticker.outline { background: transparent; border: 1px solid var(--rule); color: var(--ink-soft); border-radius: 10px; }
  .sticker.rect { border-radius: 16px; font-size: 17px; }
  .sticker.rect.fill { color: var(--signal) !important; font-weight: 600; }
  .sticker.vertical { writing-mode: vertical-rl; padding: 18px 10px; border-radius: 30px; }
  .icon-badge { width: 80px; height: 90px; border-radius: 16px; background: var(--paper-dim); display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--signal); }
  .dot-fill { width: 18px; height: 18px; border-radius: 50%; background: var(--signal); }
  .dot-ring { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule); box-sizing: border-box; }

  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; grid-template-areas: "sticker" "text"; gap: 8px; }
    .hero h1 { max-width: 100%; }
    .sticker-field { height: 380px; }
    .sticker { font-size: 11px; padding: 7px 12px; }
    .sticker.rect { font-size: 12px; }
    .icon-badge { width: 48px; height: 48px; font-size: 22px; }
  }
  .sub { font-size: 16px; color: var(--ink-soft); }
  .tag-row { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
  .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--rule); padding: 6px 12px; color: var(--ink-soft); }

  /* ---------- PLATFORM STRIP ---------- */
  .platform-strip { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 44px 0; }
  .collage { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 90px 90px; gap: 8px; margin-bottom: 22px; }
  .collage div { background: var(--paper-dim); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); text-align: center; padding: 8px; }
  .collage .a { grid-row: 1 / 3; }
  .platform-strip p { max-width: 600px; color: var(--ink-soft); font-size: 16px; }
  .platform-strip strong { color: var(--ink); font-weight: 500; }

  /* ---------- CASE GRID ---------- */
  .case-grid { padding: 56px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

  /* ---------- FEATURED WORK LIST ---------- */
  .work-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding-top: 8px; }
  .work-heading .mono { color: var(--signal); }
  .work-list { border-top: 1px solid var(--rule); margin-bottom: 60px; }
  .work-list-item { display: flex; flex-direction: column; padding: 34px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
  .work-list-item .wl-thumb { width: 100%; aspect-ratio: 2048/1211; flex-shrink: 0; background: var(--paper-dim); border: 1px dashed var(--rule); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-soft); text-align: center; overflow: hidden; margin-bottom: 22px; }
  .work-list-item .wl-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .work-list-item .wl-main { display: flex; flex-direction: column; gap: 12px; }
  .work-list-item .wl-right { display: flex; gap: 16px; align-items: center; }
  .work-list-item .wl-left { flex: 1; }
  .work-list-item h3 { font-size: 28px; color: var(--ink); margin-bottom: 0; transition: margin-bottom .25s ease; }
  .work-list-item .wl-sub { font-size: 15px; color: var(--ink-soft); margin-top: 6px; font-family: 'Space Grotesk', sans-serif; }
  .work-list-item.expanded h3 { margin-bottom: 10px; }
  .work-list-item .wl-desc { font-size: 15.5px; color: var(--ink-soft); max-width: 520px; }
  .work-list-item .wl-view { display: inline-block; margin-top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--signal); text-decoration: none; }
  .work-list-item .wl-right { text-align: right; white-space: nowrap; }
  .work-list-item .wl-year { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
  .work-list-item .wl-status { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; }
  .work-list-item .wl-status.live { color: var(--signal); }
  .work-list-item .wl-status.shipped { color: var(--amber); }
  @media (max-width: 640px) { .work-list-item .wl-main { flex-direction: column; gap: 10px; } .work-list-item .wl-right { text-align: left; } }
  .case-card { background: var(--white); border: 1px solid var(--rule); padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .15s ease; }
  .case-card:hover { border-color: var(--signal); }
  .status-chip { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 9px; width: fit-content; }
  .status-chip.live { background: var(--signal-dim); color: var(--signal); }
  .status-chip.shipped { background: var(--amber-dim); color: var(--amber); }
  .case-card .num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-soft); }
  .case-card h3 { font-size: 23px; color: var(--ink); }
  .case-card p { font-size: 15px; color: var(--ink-soft); }
  .case-card .arrow { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--signal); margin-top: auto; }
  .case-card .tags-line { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); letter-spacing: 0.02em; }

  /* ---------- ABOUT ---------- */
  .about-section { padding: 60px 0; }
  .about-section .mono { color: var(--signal); margin-bottom: 18px; display: block; }
  .about-section .identity { font-size: 28px; margin-bottom: 26px; }
  .about-section p.bio { font-size: 18px; max-width: 720px; color: var(--ink-soft); margin-bottom: 36px; }
  .about-photo { width: 100%; max-width: 420px; aspect-ratio: 1/1; background: var(--paper-dim); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 44px; }
  .about-photo img { width: 100%; height: 100%; object-fit: cover; }
  .capabilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .capabilities-grid .cap-label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--signal); margin-bottom: 12px; }
  .capabilities-grid ul { list-style: none; }
  .capabilities-grid li { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 6px; }
  @media (max-width: 640px) { .capabilities-grid { grid-template-columns: 1fr 1fr; row-gap: 24px; } }

  /* ---------- CASE STUDY PAGES ---------- */
  .case-page { padding: 64px 0; border-top: 1px solid var(--rule); }
  .case-page .eyebrow { color: var(--signal); margin-bottom: 14px; }
  .case-attribution { margin-bottom: 36px; padding: 14px 18px; border-left: 2px solid var(--rule); }
  .case-attribution .attr-line { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.03em; color: var(--ink-soft); display: block; margin-bottom: 4px; }
  .case-attribution .attr-line strong { color: var(--ink); font-weight: 500; }
  .case-attribution .attr-legal { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--ink-soft); opacity: 0.7; display: block; margin-top: 8px; }
  .case-page h2.title { font-size: 36px; max-width: 700px; margin-bottom: 18px; }
  .chip-row { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
  .glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: var(--white); border: 1px solid var(--rule); padding: 24px 28px; margin-bottom: 44px; }
  .glance-grid.glance-grid-5 { grid-template-columns: repeat(5, 1fr); }
  .glance-grid .label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }
  .glance-grid .value { font-size: 15px; color: var(--ink); }
  @media (max-width: 640px) { .glance-grid, .glance-grid.glance-grid-5 { grid-template-columns: 1fr 1fr; row-gap: 20px; } }

  .luna-v1-intro { margin-top: 4px; margin-bottom: 20px !important; }
  .luna-v1-kicker { display: block; color: var(--signal); margin-bottom: 10px; }
  .luna-v1-gifs { display: grid; gap: 30px; margin: 0 0 38px; }
  .luna-v1-figure { margin: 0; }
  .luna-v1-label { width: fit-content; margin-bottom: 10px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); background: var(--white); }
  .luna-v1-media { overflow: hidden; border-radius: 20px; background: var(--white); }
  .luna-v1-media img { width: 100%; height: auto; display: block; }
  .luna-v1-figure figcaption { display: grid; grid-template-columns: 64px 1fr; gap: 14px; margin-top: 11px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
  .luna-v1-figure figcaption .mono { color: var(--signal); font-size: 10.5px; padding-top: 2px; }
  @media (max-width: 640px) {
    .luna-v1-gifs { gap: 24px; }
    .luna-v1-label { font-size: 9.5px; padding: 5px 8px; }
    .luna-v1-figure figcaption { grid-template-columns: 1fr; gap: 3px; }
  }

  /* ---------- DEFAULT QUESTIONS COMPARISON (New vs. Existing Users) ---------- */
  .luna-q-compare { align-items: start; }
  .q-panel { background: #F6F4FB; border: 1px solid #E6E2F1; border-radius: 20px; padding: 22px 20px 24px; }
  .q-panel-header { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
  .q-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #F0AFD6, #8B7BEB); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; flex-shrink: 0; }
  .q-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: #3A2E52; }
  .q-header-icons { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .q-header-icons .q-icon { font-size: 13px; color: #4A4160; opacity: 0.55; }
  .q-tabs { display: flex; gap: 18px; border-bottom: 1px solid #E6E2F1; margin-bottom: 18px; padding-bottom: 10px; }
  .q-tab { font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; font-weight: 500; color: #9990AC; padding-bottom: 10px; margin-bottom: -11px; }
  .q-tab.active { color: #3A2E52; font-weight: 600; border-bottom: 2px solid #9D7BE0; }
  .q-cat-label { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; color: #3A2E52; margin-bottom: 3px; }
  .q-cat-sub { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: #8A7FA6; margin-bottom: 16px; }
  .q-pill { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFFFFF; border: 1px solid #EBE7F3; border-radius: 14px; padding: 12px 14px; margin-bottom: 9px; font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.45; color: #3A2E52; box-shadow: 0 1px 2px rgba(70, 45, 110, 0.05); }
  .q-pill:last-child { margin-bottom: 0; }
  .q-pill .q-arrow { flex-shrink: 0; color: #A296E8; font-size: 14px; }
  @media (max-width: 640px) {
    .q-panel { padding: 18px 16px 20px; border-radius: 16px; }
    .q-pill { padding: 11px 12px; font-size: 12.5px; }
  }

  .pov-block { background: var(--white); border-left: 3px solid var(--signal); padding: 28px 32px; margin-bottom: 44px; }
  .pov-block .mono { color: var(--signal); margin-bottom: 12px; display: block; }
  .pov-block p { font-size: 18px; font-style: italic; line-height: 1.55; }
  .pov-block p + p { margin-top: 14px; }

  .case-page section.block { margin-bottom: 40px; }
  .case-page h3.sub-h { font-size: 15px; margin-bottom: 12px; letter-spacing: 0.02em; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; color: var(--ink); }
  .case-page .section-body { color: var(--ink-soft); font-size: 17px; max-width: 680px; }
  .case-page .section-body + .section-body { margin-top: 12px; }

  .img-placeholder { background: var(--paper-dim); border: 1px dashed var(--rule); min-height: 260px; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-soft); margin: 18px 0 8px 0; text-align: center; padding: 20px; }
  .img-caption { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); }

  .data-chip-demo { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
  .data-chip { font-family: 'IBM Plex Mono', monospace; font-size: 12px; background: var(--signal-dim); color: var(--signal); padding: 8px 14px; }

  .version-log { display: grid; grid-template-columns: 80px 1fr; gap: 0; margin: 18px 0 8px 0; }
  .v-row { display: contents; }
  .v-tag { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--amber); padding: 16px 0; border-top: 1px solid var(--rule); }
  .v-desc { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15.5px; color: var(--ink-soft); padding-left: 18px; border-left: 1px solid var(--rule); }
  .v-desc strong { color: var(--ink); font-weight: 500; }
  .v-row:last-child .v-tag, .v-row:last-child .v-desc { border-bottom: 1px solid var(--rule); }

  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0; }
  .two-col .img-placeholder { min-height: 180px; margin: 0; }

  .callout { background: var(--amber-dim); border-left: 3px solid var(--amber); padding: 20px 26px; margin: 22px 0; }
  .callout .mono { color: var(--amber); margin-bottom: 8px; display: block; }
  .callout p { font-size: 16px; color: var(--ink); }

  .next-block { background: var(--white); border: 1px solid var(--rule); padding: 28px 32px; margin-top: 18px; }
  .next-block .mono { color: var(--ink-soft); margin-bottom: 10px; display: block; }
  .next-block p { color: var(--ink-soft); font-size: 16px; }

  /* ---------- MORE CASE STUDIES (footer of each case page) ---------- */
  .more-cases { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--rule); }
  .more-cases .mono { color: var(--signal); margin-bottom: 24px; display: block; }
  .more-cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .more-case-card { cursor: pointer; text-decoration: none; display: block; }
  .more-case-card .mc-thumb { width: 100%; aspect-ratio: 2048/1211; background: var(--paper-dim); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 16px; transition: border-color .15s ease; }
  .more-case-card .mc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .more-case-card:hover .mc-thumb { border-color: var(--signal); }
  .more-case-card .mc-title { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 8px; transition: color .15s ease; }
  .more-case-card:hover .mc-title { color: var(--signal); }
  .more-case-card .mc-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
  .more-case-card .mc-view { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--signal); }
  @media (max-width: 640px) { .more-cases-grid { grid-template-columns: 1fr; } }

  /* ---------- CONTACT / FOOTER ---------- */
  footer { padding: 0 0 70px 0; border-top: 0; background: var(--white); }
  footer h2 { font-size: 30px; margin-bottom: 16px; }
  footer p.lead { color: var(--ink-soft); font-size: 17px; max-width: 480px; margin-bottom: 28px; }
  .contact-links { display: flex; gap: 24px; flex-wrap: wrap; }
  .contact-links a { font-family: 'IBM Plex Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--signal); text-decoration: none; border-bottom: 1px solid var(--signal); padding-bottom: 2px; }
  footer .copyright { margin-top: 40px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); }

  @media (max-width: 640px) {
    .hero h1 { font-size: 34px; }
    .case-grid, .two-col { grid-template-columns: 1fr; }
    nav .links { gap: 16px; }
    .version-log { grid-template-columns: 60px 1fr; }
    .case-page h2.title { font-size: 27px; }
  }
  .back-to-work { display: inline-flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--signal); text-decoration: none; margin-bottom: 28px; cursor: pointer; }
  .footer-top-rule { border-top: 0; }
  .footer-main { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 60px; padding-bottom: 60px; gap: 40px; flex-wrap: wrap; }
  .footer-main .lead { color: var(--ink-soft); font-size: 17px; max-width: 420px; margin-bottom: 12px; }
  .footer-main .location { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-soft); }
  .footer-main .footer-cta { font-size: 32px; color: var(--ink); margin-bottom: 14px; }
  .footer-right { display: flex; flex-direction: column; gap: 20px; align-items: flex-end; }
  .footer-nav-links { display: flex; gap: 24px; }
  .footer-nav-links a { font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: 0.03em; }
  .footer-nav-links a:hover { color: var(--signal); }
  .footer-social { display: flex; gap: 12px; }
  .footer-social a { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); background: var(--paper-dim); border: 1px solid var(--rule); padding: 12px 20px; border-radius: 6px; text-decoration: none; }
  .footer-social a:hover { border-color: var(--signal); color: var(--signal); }
  .footer-bottom-rule { border-top: 1px solid var(--rule); padding: 24px 0; }
  .footer-bottom-rule .copyright { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); }
  @media (max-width: 768px) { .footer-main { flex-direction: column; } .footer-right { align-items: flex-start; } }


  /* ---------- IMAGE DELIVERY / CROPPING ---------- */
  img { max-width: 100%; }
  nav .avatar img { display: block; object-position: center; }
  .work-list-item .wl-thumb,
  .more-case-card .mc-thumb { aspect-ratio: 1600 / 946; }
  .work-list-item .wl-thumb img,
  .more-case-card .mc-thumb img { display: block; object-fit: cover; object-position: center; }
  .about-photo img { display: block; object-position: center; }


  /* ---------- COMPACT GRAVITY STICKER PILE ---------- */
  .sticker-field {
    height: 300px;
    overflow: visible;
  }
  .sticker-field > * {
    opacity: 0;
    transform-origin: center center;
    backface-visibility: hidden;
  }
  .sticker-field.is-gravity-ready > * {
    opacity: 1;
  }

  @media (max-width: 900px) {
    .sticker-field {
      height: 270px;
      max-width: 480px;
    }
  }

  @media (max-width: 520px) {
    .sticker-field {
      height: 225px;
    }
  }

  /* A readable fallback when JavaScript is unavailable. */
  .no-js-sticker-fallback {
    display: none;
  }

  /* ---------- REFINED MOTION SYSTEM ---------- */
  @keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes content-rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  body {
    animation: page-fade-in 620ms ease-out both;
  }
  .home-page nav {
    animation: content-rise-in 720ms cubic-bezier(.22, 1, .36, 1) 60ms both;
  }
  .home-page .hero-text {
    animation: content-rise-in 820ms cubic-bezier(.22, 1, .36, 1) 150ms both;
  }
  .home-page #top + .wrap {
    animation: content-rise-in 820ms cubic-bezier(.22, 1, .36, 1) 260ms both;
  }
  .case-page-body .case-detail-main {
    animation: content-rise-in 760ms cubic-bezier(.22, 1, .36, 1) 90ms both;
  }

  /* ---------- MULTI-PAGE PORTFOLIO ---------- */
  .work-list-item {
    color: inherit;
    text-decoration: none;
  }
  .work-list-item:focus-visible,
  .more-case-card:focus-visible,
  .back-to-work:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 5px;
  }
  .work-list-item .wl-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
  }
  .work-list-item .wl-view::after {
    content: "→";
    transition: transform .15s ease;
  }
  .work-list-item:hover .wl-view::after { transform: translateX(4px); }
  .case-detail-main { padding-top: 24px; }
  .case-detail-main:focus {
    outline: none;
  }
  .case-detail-main .case-page { border-top: 0; padding-top: 40px; }
  .case-detail-main .back-to-work { margin-top: 4px; }
  .case-detail-main .more-case-card { color: inherit; }
  @media (max-width: 640px) {
    .case-detail-main { padding-top: 8px; }
    .case-detail-main .case-page { padding-top: 28px; }
  }


  /* ---------- QUIET HOVER FEEDBACK ---------- */
  nav .links a,
  .mobile-menu a,
  .footer-nav-links a,
  .footer-social a {
    transition-duration: 280ms;
    transition-timing-function: cubic-bezier(.22, 1, .36, 1);
  }

  .work-list-item .wl-thumb img,
  .more-case-card .mc-thumb img {
    transform: scale(1);
    transition: transform 700ms cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
  }
  .work-list-item h3,
  .more-case-card .mc-title {
    transform: translateX(0);
    transition: transform 420ms cubic-bezier(.22, 1, .36, 1), color 280ms ease;
  }
  .work-list-item .wl-view,
  .more-case-card .mc-view {
    transition: color 280ms ease;
  }
  .more-case-card .mc-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .more-case-card .mc-view::after {
    content: "";
  }

  @media (hover: hover) and (pointer: fine) {
    .work-list-item:hover .wl-thumb img,
    .more-case-card:hover .mc-thumb img {
      transform: scale(1.025);
    }
    .work-list-item:hover h3,
    .more-case-card:hover .mc-title {
      transform: translateX(6px);
    }
    .work-list-item:hover .wl-view::after {
      transform: translateX(5px);
    }
    .more-case-card:hover .mc-view {
      color: var(--ink);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }


  /* ---------- PASSWORD-PROTECTED CASE STUDIES ---------- */
  .case-page-body.case-locked {
    min-height: 100vh;
  }
  .case-page-body.case-locked .case-detail-main,
  .case-page-body.case-locked footer {
    display: none;
  }
  .case-page-body.case-unlocked .password-gate {
    display: none;
  }
  .password-gate {
    min-height: calc(100vh - 84px);
    display: grid;
    place-items: center;
    padding: 56px 20px 80px;
  }
  .password-card {
    width: min(100%, 470px);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
    animation: content-rise-in 760ms cubic-bezier(.22, 1, .36, 1) 80ms both;
  }
  .password-lock-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--signal-dim);
    position: relative;
    margin-bottom: 24px;
  }
  .password-lock-mark::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 11px;
    border: 2px solid var(--signal);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    left: 14px;
    top: 9px;
  }
  .password-lock-mark span {
    position: absolute;
    width: 20px;
    height: 16px;
    border-radius: 4px;
    background: var(--signal);
    left: 13px;
    top: 20px;
  }
  .password-card > .mono {
    color: var(--signal);
    display: block;
    margin-bottom: 10px;
  }
  .password-card h1 {
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .password-intro {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .password-card label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
    margin-bottom: 8px;
  }
  .password-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper-dim);
    overflow: hidden;
    transition: border-color 240ms ease, box-shadow 240ms ease;
  }
  .password-input-row:focus-within {
    border-color: var(--signal);
    box-shadow: 0 0 0 3px var(--signal-dim);
  }
  .password-input-row input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    padding: 14px 16px;
  }
  .password-toggle {
    border: 0;
    border-left: 1px solid var(--rule);
    background: transparent;
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding: 0 15px;
    cursor: pointer;
  }
  .password-toggle:hover,
  .password-toggle:focus-visible {
    color: var(--signal);
  }
  .password-error {
    min-height: 24px;
    color: #F08B82;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding-top: 7px;
  }
  .password-submit {
    width: 100%;
    border: 1px solid var(--signal);
    border-radius: 8px;
    background: var(--signal);
    color: var(--paper);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 300ms cubic-bezier(.22, 1, .36, 1), filter 220ms ease;
  }
  .password-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
  }
  .password-submit:focus-visible,
  .password-toggle:focus-visible,
  .password-back:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 4px;
  }
  .password-back {
    display: inline-block;
    margin-top: 24px;
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-decoration: none;
  }
  .password-back:hover { color: var(--signal); }
  .password-card.is-error {
    animation: password-shake 360ms ease;
  }
  @keyframes password-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
  }

  .wl-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .wl-actions .wl-view { margin-top: 0; }
  .wl-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  .wl-lock::before {
    content: "";
    width: 8px;
    height: 7px;
    border: 1px solid currentColor;
    border-radius: 1px;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px transparent;
  }
  .wl-lock::after {
    content: "";
    width: 5px;
    height: 4px;
    border: 1px solid currentColor;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    margin-left: -17px;
    margin-top: -9px;
  }

  @media (max-width: 520px) {
    .password-gate { padding: 36px 16px 64px; align-items: start; }
    .password-card { padding: 30px 24px; }
  }


  /* ---------- CASE STUDY IMAGES ---------- */
  .img-placeholder.has-image {
    min-height: auto;
    padding: 0;
    border-style: solid;
    background: var(--white);
    overflow: hidden;
    align-items: stretch;
    border-radius: 20px;
  }
  .img-placeholder.has-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
  }
  .two-col .img-placeholder.has-image { min-height: auto; }
  .case-hero { margin: 4px 0 40px 0; }


  /* ---------- ANCHOR / CLICK BUG FIX ---------- */
  html {
    scroll-padding-top: 118px;
    overflow-x: hidden;
  }
  body { overflow-x: hidden; }
  #top, #work, #about, #contact {
    scroll-margin-top: 118px;
  }
  nav a:focus:not(:focus-visible),
  .work-list-item:focus:not(:focus-visible),
  .more-case-card:focus:not(:focus-visible),
  .back-to-work:focus:not(:focus-visible),
  .password-back:focus:not(:focus-visible),
  .hamburger:focus:not(:focus-visible) {
    outline: none;
  }
  .work-list-item,
  .more-case-card,
  nav a,
  .mobile-menu a {
    -webkit-tap-highlight-color: transparent;
  }
  .password-gate {
    position: relative;
    z-index: 1;
  }
  @media (max-width: 768px) {
    html { scroll-padding-top: 92px; }
    #top, #work, #about, #contact { scroll-margin-top: 92px; }
  }
