/* ============================================================
   Uraiba Zafar Portfolio — styles.css
   
   Font stack:
     Display/headings: Cormorant Garamond (serif)
     Body: DM Sans (sans-serif)

   Color tokens (edit in :root to retheme the whole site):
     --bg           page background
     --bg-alt       slightly darker surface (award cards, hover states)
     --surface      card / bubble backgrounds
     --charcoal     primary text
     --soft         secondary text
     --muted        tertiary / placeholder text
     --accent       slate blue — primary brand colour
     --accent-lt    lighter slate — borders, links
     --line         subtle dividing lines
     --dark-bg      footer background
     --dark-text    footer text
============================================================ */

  :root {
    --bg:        #EDECEA;
    --bg-alt:    #E4E3E0;
    --surface:   #F5F4F2;
    --charcoal:  #1A1A1A;
    --soft:      #48453F;
    --muted:     #908D88;
    --accent:    #5B7082;
    --accent-lt: #8AAABB;
    --line:      rgba(26,26,26,0.1);
    --dark-bg:   #181817;
    --dark-text: #EDECEA;
  }

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

  /* Global focus-visible for keyboard accessibility */
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
  }
  html { scroll-behavior: smooth; }
  html, body { height: 100%; }

  body {
    background: var(--bg);
    color: var(--charcoal);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
  }

  /* grain */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.026;
    pointer-events: none;
    z-index: 9000;
  }

  /* ══════════════════════════════════════════
     HERO — CHAT INTERFACE
  ══════════════════════════════════════════ */

  .chat-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }

  /* Top bar */
  .chat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    opacity: 0;
    animation: fadeDown 0.5s ease 0.1s forwards;
  }

  .topbar-wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--charcoal);
    text-decoration: none;
  }

  .chat-nav { display: flex; align-items: center; gap: 4px; }

  .chat-nav a {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--soft);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
  }

  .chat-nav a:hover { color: var(--charcoal); background: var(--bg-alt); }

  .nav-divider { width: 1px; height: 13px; background: var(--line); margin: 0 2px; }

  /* Chat window */
  .chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 28px 32px;
    gap: 16px;
    overflow-y: auto;
  }

  .chat-spacer { flex: 1; min-height: 0; }

  /* Photo bubble — right */
  .chat-message-user {
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    animation: fadeUp 0.55s ease 0.3s forwards;
    flex-shrink: 0;
  }

  .user-bubble {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px 4px 16px 16px;
    overflow: hidden;
    width: 260px;
    aspect-ratio: 3/4;
    flex-shrink: 0;
  }

  .user-bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .photo-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; background: var(--bg-alt);
  }

  .photo-placeholder-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
  }

  .photo-placeholder-icon svg { width: 24px; height: 24px; stroke: var(--muted); stroke-width: 1.3; fill: none; }

  .photo-placeholder-label {
    font-size: 0.65rem; color: var(--muted);
    letter-spacing: 0.08em; text-align: center; padding: 0 16px;
  }

  /* Expertise prompt bubble — right */
  .chat-message-prompt {
    display: flex; justify-content: flex-end;
    flex-shrink: 0;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .chat-message-prompt.visible { opacity: 1; transform: translateY(0); }

  .prompt-bubble {
    background: var(--accent);
    border-radius: 16px 4px 16px 16px;
    padding: 10px 16px;
    max-width: 260px;
  }

  .prompt-bubble p { font-size: 0.82rem; line-height: 1.5; color: white; font-weight: 300; }

  /* Uraiba response — left */
  .chat-response {
    display: flex; align-items: flex-start;
    gap: 14px; flex-shrink: 0;
  }

  .chat-response.initial {
    /* animation handled by JS intro sequence */
  }

  .chat-response.expertise-response {
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
  }

  .chat-response.expertise-response.visible { opacity: 1; transform: translateY(0); }

  .response-avatar {
    width: 32px; height: 32px;
    border-radius: 50%; background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
  }

  .response-avatar span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.65rem; font-weight: 600; color: white; letter-spacing: 0.04em;
  }

  .response-sender {
    font-size: 0.67rem; font-weight: 500;
    letter-spacing: 0.07em; color: var(--muted); margin-bottom: 8px;
  }

  .response-bubble {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px 16px 16px 16px;
    padding: 20px 24px; max-width: 550px;
  }

  .response-bubble p {
    font-size: 0.9rem; line-height: 1.7; color: var(--soft); font-weight: 300;
  }


  .expertise-response .response-bubble .case-study-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px;
    font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); text-decoration: none;
    border-bottom: 1px solid var(--accent-lt); padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s, gap 0.2s;
  }

  .expertise-response .response-bubble .case-study-link:hover {
    color: var(--charcoal); border-color: var(--charcoal); gap: 10px;
  }

  /* Typing indicator */
  .typing-indicator {
    display: flex; align-items: flex-start; gap: 14px; flex-shrink: 0;
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .typing-indicator.visible { opacity: 1; transform: translateY(0); }

  .typing-indicator--user {
    justify-content: flex-end;
  }

  .typing-indicator--user .typing-dots {
    border-radius: 16px 4px 16px 16px;
  }

  .typing-dots {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 4px 16px 16px 16px;
    padding: 16px 20px; display: flex; align-items: center; gap: 5px;
  }

  .typing-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
    animation: typingBounce 1.2s ease-in-out infinite;
  }

  .typing-dot:nth-child(2) { animation-delay: 0.2s; }
  .typing-dot:nth-child(3) { animation-delay: 0.4s; }

  @keyframes typingBounce {
    0%,60%,100% { transform: translateY(0); opacity: 0.4; }
    30%          { transform: translateY(-5px); opacity: 1; }
  }



  /* Prompt area */
  .prompt-wrap {
    padding: 0 28px 28px; flex-shrink: 0;
    position: relative;
  }

  .prompt-bar {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 14px 14px 14px 18px;
    display: flex; align-items: center; gap: 12px;
    transition: border-color 0.25s, box-shadow 0.25s;
  }

  .prompt-bar:focus-within {
    border-color: var(--accent-lt);
    box-shadow: 0 0 0 3px rgba(91,112,130,0.08);
  }

  .prompt-input {
    flex: 1; font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem; font-weight: 300; line-height: 1.5; min-width: 0;
  }

  .prompt-typed { color: var(--muted); font-style: italic; }
  .prompt-typed-mobile { display: none; }

  .prompt-actions {
    display: flex; align-items: center;
    gap: 12px; flex-shrink: 0; position: relative;
  }

  /* Expertise pill */
  .expertise-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--line); border-radius: 20px;
    background: var(--bg); cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative; user-select: none; white-space: nowrap;
    min-height: 38px;
  }

  .expertise-pill:hover,
  .expertise-pill.open { border-color: var(--accent-lt); background: var(--bg-alt); }

  .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; transition: background 0.2s; }

  .pill-label { font-size: 0.7rem; font-weight: 400; color: var(--soft); letter-spacing: 0.02em; }

  .pill-chevron svg {
    width: 9px; height: 9px; stroke: var(--muted); stroke-width: 2;
    display: block; transition: transform 0.25s ease; fill: none;
  }

  .expertise-pill.open .pill-chevron svg { transform: rotate(180deg); }

  /* Dropdown */
  .expertise-dropdown {
    position: absolute; bottom: calc(100% + 10px); right: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 6px; min-width: 256px;
    box-shadow: 0 -8px 32px rgba(26,26,26,0.09), 0 2px 8px rgba(26,26,26,0.04);
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease; z-index: 200;
  }

  .expertise-pill.open .expertise-dropdown { opacity: 1; transform: translateY(0); pointer-events: all; }

  .dropdown-header { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .dropdown-header-label { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
  .dropdown-header-sub { font-size: 0.67rem; color: var(--muted); margin-top: 3px; }

  .dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 8px; cursor: pointer;
    transition: background 0.15s;
  }

  .dropdown-item:hover  { background: var(--bg-alt); }
  .dropdown-item.used   { opacity: 0.45; pointer-events: none; }

  .dropdown-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .dropdown-item-text { flex: 1; }
  .dropdown-item-name { font-size: 0.82rem; color: var(--charcoal); font-weight: 400; }
  .dropdown-item-sub  { font-size: 0.66rem; color: var(--muted); margin-top: 1px; }

  .dropdown-sent { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.06em; opacity: 0; transition: opacity 0.2s; }
  .dropdown-item.used .dropdown-sent { opacity: 1; }

  /* Send button */
  .send-btn {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--charcoal); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; text-decoration: none;
    transition: background 0.2s, transform 0.15s;
  }

  .send-btn:hover { background: var(--accent); transform: scale(1.06); }

  .send-btn svg {
    width: 14px; height: 14px; stroke: white;
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none;
  }

  .send-btn--decorative {
    cursor: default;
    opacity: 0.3;
    pointer-events: none;
  }

  .send-btn--decorative:hover {
    background: var(--charcoal);
    transform: none;
  }

  /* Intro animation — initial state + transitions set via JS */

  .prompt-hint { text-align: center; margin-top: 10px; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.05em; }
  .prompt-hint a { color: var(--accent); text-decoration: none; }
  .prompt-hint a:hover { text-decoration: underline; }

  /* ══════════════════════════════════════════
     WORK SECTION
  ══════════════════════════════════════════ */

  .work-section { padding: 100px 56px 0; max-width: 1200px; margin: 0 auto; width: 100%; border-top: 1px solid var(--line); }

  .work-header {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 36px; border-bottom: 1px solid var(--line);
  }

  .section-label { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }

  /* Project rows */
  .project-row {
    display: grid;
    grid-template-columns: 48px 1fr 240px 44px;
    align-items: center; gap: 24px;
    padding: 40px 0; cursor: pointer; user-select: none;
    transition: background 0.2s;
  }

  @keyframes carousel-pan {
    0%, 10%  { transform: translateX(0); }
    45%, 55% { transform: translateX(-61%); }
    90%, 100%{ transform: translateX(0); }
  }

  .carousel-pan {
    animation: carousel-pan 10s ease-in-out infinite;
  }

  .project-row:hover .acc-title  { color: var(--accent); }
  .project-row:hover .acc-summary { color: var(--soft); }
  .project-row:hover .acc-preview { opacity: 1; transform: scale(1.03); }

  .acc-num {
    font-family: 'Cormorant Garamond', serif; font-size: 0.9rem;
    color: var(--muted); letter-spacing: 0.08em; align-self: start; padding-top: 6px;
  }

  .acc-winner {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
  }

  .acc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 400; line-height: 1; letter-spacing: -0.02em;
    color: var(--charcoal); transition: color 0.3s; margin-bottom: 12px;
  }

  .acc-summary {
    font-size: 0.86rem; line-height: 1.65; color: var(--soft);
    font-weight: 400; max-width: 500px; transition: color 0.3s;
  }

  .acc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

  .tag {
    font-size: 0.6rem; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--line);
    padding: 3px 9px; border-radius: 20px;
  }

  .acc-preview {
    width: 100%; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden;
    opacity: 1; transition: opacity 0.3s, transform 0.3s; transform: scale(1);
  }

  .preview-block {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-size: 0.75rem;
    letter-spacing: 0.12em; color: rgba(255,255,255,0.3);
  }

  .acc-toggle {
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    align-self: start; margin-top: 4px; flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
  }

  .acc-toggle svg {
    width: 13px; height: 13px; stroke: var(--soft); stroke-width: 1.5; fill: none;
  }

  .project-row:hover .acc-toggle { background: var(--bg-alt); border-color: var(--muted); }

  /* ── CAROUSEL SHEET SYSTEM ── */

  .sheet-backdrop {
    position: fixed; inset: 0;
    background: rgba(26,26,26,0);
    pointer-events: none;
    z-index: 800;
    transition: background 0.45s ease;
  }

  .sheet-backdrop.active {
    background: rgba(26,26,26,0.45);
    pointer-events: all;
  }

  /* Outer sheet — slides up from bottom */
  .carousel-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 90vh;
    z-index: 810;
    transform: translateY(100%);
    transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    pointer-events: none;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .carousel-sheet.visible {
    transform: translateY(0);
    pointer-events: all;
  }

  /* Carousel track — horizontal flex strip */
  .carousel-track {
    display: flex;
    align-items: flex-end;
    height: 100%;
    gap: 16px;
    transition: none;
    will-change: transform;
  }

  /* Every card — active and peek share same base */
  .carousel-card {
    flex-shrink: 0;
    width: min(820px, 84vw);
    height: 88vh;
    border-radius: 20px 20px 0 0;
    background: var(--surface);
    box-shadow: 0 -6px 48px rgba(26,26,26,0.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: default;
    filter: none;
    opacity: 1;
  }

  /* Peek cards — dimmed, slightly scaled, transition only after initial render */
  .carousel-card.peek {
    opacity: 0.5;
    filter: brightness(0.82);
    cursor: pointer;
    transform: scale(0.96) translateY(20px);
    pointer-events: all;
    position: relative;
    z-index: 2;
  }

  .carousel-card.peek.animated {
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
  }

  .carousel-card.peek:hover {
    opacity: 0.7;
    filter: brightness(0.92);
  }

  /* Active card sits below peek cards' z so peek edges are always clickable */
  .carousel-card:not(.peek) {
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Peek cards scroll to their top so content is visible */
  .carousel-card.peek .card-body {
    overflow: hidden;
    pointer-events: none;
  }

  /* Active card header */
  .card-header {
    padding: 16px 24px 14px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .card-header-left {}

  .card-project-num {
    font-size: 0.58rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 3px;
  }

  .card-project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--charcoal);
  }

  /* Close button — top right of card header */
  .sheet-close {
    width: 32px; height: 32px;
    border: 1px solid var(--line); border-radius: 50%;
    background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
  }

  .sheet-close:hover { background: var(--charcoal); border-color: var(--charcoal); }
  .sheet-close:hover svg { stroke: white; }
  .sheet-close svg { width: 11px; height: 11px; stroke: var(--muted); stroke-width: 2; fill: none; transition: stroke 0.2s; }

  /* Transparent click zones over peek areas */
  .peek-zone {
    position: absolute;
    top: 0; bottom: 0;
    width: calc((100vw - min(820px, 84vw)) / 2 + 16px);
    z-index: 830;
    cursor: pointer;
  }

  .peek-zone.left  { left: 0; }
  .peek-zone.right { right: 0; }

  /* Card body */
  .card-body {
    flex: 1; overflow-y: auto; padding: 32px 32px 52px;
  }

  .card-body::-webkit-scrollbar { width: 4px; }
  .card-body::-webkit-scrollbar-track { background: transparent; }
  .card-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

  /* Dots */
  .carousel-dots {
    position: absolute;
    bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 820;
    pointer-events: none;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 20px;
  }

  .carousel-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(26,26,26,0.18);
    transition: background 0.2s, transform 0.2s;
  }

  .carousel-dot.active { background: var(--accent); transform: scale(1.4); }

  /* Drag handle */
  .sheet-handle {
    position: absolute;
    top: 8px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 3px;
    background: rgba(26,26,26,0.12);
    border-radius: 2px;
    z-index: 821;
    pointer-events: none;
  }

  /* Case study layout */
  .cs-hero-image { width: 100%; aspect-ratio: 21/9; border-radius: 4px; overflow: hidden; margin-bottom: 48px; }

  .img-block {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-size: 1rem;
    letter-spacing: 0.15em; color: rgba(255,255,255,0.3);
  }

  .cs-meta {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
    margin-top: 96px; margin-bottom: 52px;
  }

  .cs-meta-cell { padding: 18px 22px; border-right: 1px solid var(--line); text-align: center; }
  .cs-meta-cell:last-child { border-right: none; }
  .cs-meta-label { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
  .cs-meta-value { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 500; color: var(--charcoal); }

  .cs-body { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 52px; }

  .cs-section-label {
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    font-weight: 500;
  }

  .cs-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 500;
    line-height: 1.18;
    color: var(--charcoal);
    margin-bottom: 18px;
    letter-spacing: -0.015em;
    max-width: 720px;
  }

  .cs-text { font-size: 0.92rem; line-height: 1.78; color: var(--soft); font-weight: 400; margin-bottom: 18px; max-width: 680px; }
  .cs-text:last-child { margin-bottom: 0; }

  .cs-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 52px; }
  .cs-image-grid .img-wrap { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; }
  .cs-image-grid .img-wrap--contain { background: #0d1117; aspect-ratio: 4/3; }
  .cs-image-grid .img-wrap.wide { grid-column: 1 / -1; aspect-ratio: 16/7; }

  .cs-video-block {
    margin-top: 40px;
  }

  .cs-video-block-label {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
  }

  .cs-seq-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0d1117;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cs-seq-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .cs-highlights { margin-bottom: 44px; }
  .cs-highlight-list { list-style: none; }

  .cs-highlight-list li {
    display: flex; gap: 16px; padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem; line-height: 1.6; color: var(--soft); font-weight: 300;
  }

  .cs-highlight-list li::before { content: '—'; color: var(--accent-lt); flex-shrink: 0; }

  /* ══════════════════════════════════════════
     ABOUT
  ══════════════════════════════════════════ */

  .about-section {
    margin-top: 120px; padding: 100px 56px;
    border-top: 1px solid var(--line);
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 100px; align-items: start;
    max-width: 1200px; margin-left: auto; margin-right: auto; width: 100%;
  }

  .about-label { margin-bottom: 28px; }

  .about-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5.5vw, 5.5rem); font-weight: 300;
    line-height: 0.95; letter-spacing: -0.02em; color: var(--charcoal); margin-bottom: 36px;
  }

  .about-text { font-size: 0.92rem; line-height: 1.82; color: var(--soft); font-weight: 300; margin-bottom: 18px; max-width: 440px; }

  /* Education */
  .about-education { margin-top: 40px; }

  .edu-item {
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }

  .edu-item:last-child { border-bottom: 1px solid var(--line); }

  .edu-degree {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem; font-weight: 500; color: var(--charcoal); margin-bottom: 3px;
  }

  .edu-school { font-size: 0.8rem; color: var(--soft); font-weight: 300; }

  /* CTA buttons */
  .about-ctas {
    position: sticky;
    top: 100px;
  }

  .about-cta-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
  }

  .about-cta-btn:hover {
    border-color: var(--accent-lt);
    transform: translateY(-2px);
  }

  .about-cta-btn.primary {
    background: var(--charcoal);
    border-color: var(--charcoal);
  }

  .about-cta-btn.primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
  }

  .about-cta-btn.primary .cta-label,
  .about-cta-btn.primary .cta-sub,
  .about-cta-btn.primary .cta-arrow { color: rgba(255,255,255,0.92); }

  .about-cta-btn.primary .cta-icon svg { stroke: white; }

  .cta-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .about-cta-btn:not(.primary) .cta-icon {
    background: var(--bg-alt);
  }

  .cta-icon svg {
    width: 15px; height: 15px;
    stroke: var(--charcoal);
    stroke-width: 1.8; fill: none;
  }

  .cta-text { flex: 1; }

  .cta-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 0.01em;
    margin-bottom: 2px;
  }

  .cta-sub {
    font-size: 0.72rem;
    color: var(--soft);
    font-weight: 300;
  }

  .cta-arrow {
    font-size: 1rem;
    color: var(--muted);
    transition: transform 0.2s;
  }

  .about-cta-btn:hover .cta-arrow { transform: translate(2px, -2px); }
  .about-cta-btn.primary .cta-arrow { color: rgba(255,255,255,0.6); }

  /* Award badge */
  .about-award {
    margin-top: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    padding: 16px 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .award-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

  .award-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem; font-weight: 500; color: var(--charcoal); margin-bottom: 3px;
  }

  .award-sub { font-size: 0.78rem; color: var(--muted); font-weight: 400; }

  /* ══════════════════════════════════════════
     FOOTER
  ══════════════════════════════════════════ */

  footer {
    background: var(--dark-bg); color: var(--dark-text);
    padding: 64px 56px 40px; margin-top: 120px;
  }

  .footer-inner { max-width: 1200px; margin: 0 auto; }

  .footer-top {
    display: grid; grid-template-columns: 1fr auto;
    align-items: end; gap: 48px; padding-bottom: 44px;
    border-bottom: 1px solid rgba(237,236,234,0.08);
  }

  .footer-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 4.5rem); font-weight: 300;
    line-height: 0.95; letter-spacing: -0.02em;
  }


  .footer-sub { margin-top: 24px; font-size: 0.85rem; line-height: 1.7; color: rgba(237,236,234,0.58); max-width: 340px; }

  .footer-links-col { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }

  .footer-link {
    font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(237,236,234,0.58); text-decoration: none; transition: color 0.2s;
  }

  .footer-link:hover { color: var(--dark-text); }

  .footer-bottom {
    display: flex; justify-content: space-between; padding-top: 40px;
    font-size: 0.66rem; letter-spacing: 0.05em; color: rgba(237,236,234,0.35);
  }

  /* ══════════════════════════════════════════
     REVEAL ANIMATIONS
  ══════════════════════════════════════════ */

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ══════════════════════════════════════════
     MOBILE
  ══════════════════════════════════════════ */

  @media (max-width: 700px) {

    /* Hero */
    .chat-topbar { padding: 14px 16px; }
    .chat-nav a { font-size: 0.62rem; padding: 5px 8px; letter-spacing: 0.08em; }
    .nav-divider { margin: 0 1px; }
    .chat-window { padding: 16px 16px 12px; gap: 12px; }
    .user-bubble { width: 180px; }
    .response-bubble { max-width: 100%; padding: 16px 18px; }
    /* ── HERO ── */
    .chat-topbar { padding: 14px 16px; }
    .chat-nav a { font-size: 0.62rem; padding: 5px 8px; letter-spacing: 0.08em; }
    .nav-divider { margin: 0 1px; }
    .chat-window { padding: 16px 16px 12px; gap: 12px; }
    .user-bubble { width: 180px; }
    .response-bubble { max-width: 100%; padding: 16px 18px; }
    .prompt-bubble { max-width: 200px; }
    .prompt-wrap { padding: 0 16px 20px; }
    .prompt-bar { padding: 10px 10px 10px 14px; gap: 8px; }
    .prompt-input { font-size: 0.82rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .prompt-typed-desktop { display: none; }
    .prompt-typed-mobile { display: inline; }
    .expertise-pill { padding: 5px 8px; gap: 5px; }
    .pill-label { font-size: 0.65rem; max-width: 90px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .expertise-dropdown { right: auto; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 240px; width: calc(100vw - 40px); max-width: 340px; }
    .expertise-pill.open .expertise-dropdown { transform: translateX(-50%) translateY(0); }
    .send-btn { width: 36px; height: 36px; border-radius: 9px; }
    .prompt-hint { font-size: 0.58rem; }

    /* ── WORK ROWS ── */
    .work-section { padding: 48px 20px 0; }
    .work-header { padding-bottom: 24px; }
    .project-row {
      grid-template-columns: 36px 1fr 36px;
      gap: 12px;
      padding: 28px 0;
    }
    .acc-preview { display: none; }
    .acc-title { font-size: clamp(1.4rem, 5.5vw, 1.8rem); margin-bottom: 8px; }
    .acc-summary { font-size: 0.82rem; }
    .acc-num { padding-top: 4px; font-size: 0.8rem; }
    .acc-toggle { width: 32px; height: 32px; margin-top: 2px; }

    /* ── CAROUSEL CARD ── */
    .card-body { padding: 20px 20px 48px; }
    .card-header { padding: 14px 20px 12px; }
    .card-project-title { font-size: 1.2rem; }
    .cs-hero-image { aspect-ratio: 16/9; margin-bottom: 28px; }
    .cs-meta { grid-template-columns: 1fr 1fr; margin-bottom: 32px; }
    .cs-meta-cell { padding: 12px 14px; }
    .cs-meta-cell:nth-child(2) { border-right: none; }
    .cs-meta-cell:nth-child(3) { border-top: 1px solid var(--line); }
    .cs-meta-cell:nth-child(4) { border-top: 1px solid var(--line); border-right: none; }
    .cs-body { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
    .cs-heading { font-size: 1.25rem; }
    .cs-text { font-size: 0.86rem; }
    .cs-image-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 32px; }
    .cs-image-grid .img-wrap.wide { grid-column: 1; aspect-ratio: 16/9; }
    .cs-highlight-list li { font-size: 0.84rem; padding: 10px 0; }
    .peek-zone { display: none; }

    /* ── ABOUT ── */
    .about-section {
      grid-template-columns: 1fr;
      gap: 40px;
      padding: 48px 20px;
      margin-top: 48px;
    }
    .about-heading { font-size: 2.2rem; margin-bottom: 16px; }
    .about-text { max-width: 100%; font-size: 0.9rem; }
    .about-education { margin-top: 24px; }
    .about-award { padding: 12px 14px; gap: 10px; margin-top: 6px; }
    .award-title { font-size: 0.9rem; }
    .cta-label { font-size: 0.84rem; }
    .about-ctas { position: static; }
    .about-cta-btn { padding: 14px 16px; gap: 12px; }
    .cta-icon { width: 30px; height: 30px; }

    /* ── FOOTER ── */
    footer { padding: 48px 20px 36px; margin-top: 64px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-links-col { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
  }

  /* ══════════════════════════════════════════
     SHARED ANIMATIONS
  ══════════════════════════════════════════ */

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ══════════════════════════════════════════
     CASE STUDY PAGES
  ══════════════════════════════════════════ */

  .page-nav {
    border-bottom: 1px solid var(--line);
    opacity: 0;
    animation: fadeDown 0.5s ease 0.1s forwards;
  }

  .page-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 56px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .cs-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 56px 64px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.25s forwards;
  }

  .cs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 52px;
    transition: gap 0.2s, color 0.2s;
  }

  .cs-back:hover { color: var(--charcoal); gap: 14px; }

  .cs-page-eyebrow {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
  }

  .cs-page-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: 0.08em;
  }

  .cs-page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--charcoal);
    margin-bottom: 20px;
  }

  .cs-page-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }

  /* Project rows as links */
  a.project-row {
    text-decoration: none;
    color: inherit;
  }

  .acc-toggle svg { transition: transform 0.2s; }
  .project-row:hover .acc-toggle svg { transform: translateX(3px); }

  /* ── SECTION NAV (right-side scroll indicator) ── */

  .section-nav {
    position: fixed;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.4s ease 0.8s forwards;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .snav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    padding: 7px 0;
    cursor: pointer;
  }

  /* Connecting line between dots */
  .snav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 4px;
    top: calc(50% + 5px);
    width: 1px;
    height: calc(100% - 4px);
    background: var(--line);
  }

  .snav-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    transform: translateX(4px);
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
    white-space: nowrap;
  }

  .snav-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid var(--muted);
    background: transparent;
    flex-shrink: 0;
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
  }

  /* Hover — show label */
  .snav-item:hover .snav-label {
    opacity: 1;
    transform: translateX(0);
    color: var(--soft);
  }

  .snav-item:hover .snav-dot {
    border-color: var(--soft);
  }

  /* Active state */
  .snav-item.active .snav-label {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
  }

  .snav-item.active .snav-dot {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.25);
  }

  /* Dots only on mid-width screens — labels would overlap content */
  @media (max-width: 1100px) {
    .snav-label { display: none !important; }
  }

  /* Hide entirely on mobile/tablet */
  @media (max-width: 768px) {
    .section-nav { display: none; }
  }

  /* ── PHONE FAN HERO ── */

  .phone-fan {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    height: 460px;
    margin-bottom: 46px;
  }

  .phone-wrapper {
    position: absolute;
    bottom: 0;
    transform-origin: bottom center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
  }

  .phone-wrapper:nth-child(1) { transform: translateX(-165px) rotate(-13deg); z-index: 1; }
  .phone-wrapper:nth-child(2) { transform: translateX(-55px)  rotate(-4deg);  z-index: 2; }
  .phone-wrapper:nth-child(3) { transform: translateX(55px)   rotate(4deg);   z-index: 3; }
  .phone-wrapper:nth-child(4) { transform: translateX(165px)  rotate(13deg);  z-index: 4; }

  .phone-wrapper:hover { z-index: 10; }
  .phone-wrapper:nth-child(1):hover { transform: translateX(-165px) rotate(-13deg) translateY(-24px); }
  .phone-wrapper:nth-child(2):hover { transform: translateX(-55px)  rotate(-4deg)  translateY(-24px); }
  .phone-wrapper:nth-child(3):hover { transform: translateX(55px)   rotate(4deg)   translateY(-24px); }
  .phone-wrapper:nth-child(4):hover { transform: translateX(165px)  rotate(13deg)  translateY(-24px); }

  .phone-frame {
    width: 185px;
    height: 390px;
    background: #111;
    border-radius: 28px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow:
      0 30px 70px rgba(0,0,0,0.28),
      0 10px 30px rgba(0,0,0,0.18),
      inset 0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    cursor: default;
  }

  /* Home indicator */
  .phone-frame::after {
    content: '';
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: rgba(255,255,255,0.32);
    border-radius: 2px;
    z-index: 10;
  }

  .phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
  }

  @media (max-width: 700px) {
    .phone-fan { height: 290px; }
    .phone-frame { width: 118px; height: 248px; border-radius: 24px; }
    .phone-frame::after  { width: 42px; height: 2px; }
    .phone-wrapper:nth-child(1) { transform: translateX(-105px) rotate(-13deg); }
    .phone-wrapper:nth-child(2) { transform: translateX(-35px)  rotate(-4deg);  }
    .phone-wrapper:nth-child(3) { transform: translateX(35px)   rotate(4deg);   }
    .phone-wrapper:nth-child(4) { transform: translateX(105px)  rotate(13deg);  }
  }

  /* Hybrid case study layout */
  .cs-narrative {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--line);
  }

  .cs-narrative p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--charcoal);
    max-width: 680px;
  }

  .cs-magic-moment {
    background: var(--bg-alt);
    border-left: 2px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 18px 24px;
    margin-top: 36px;
  }

  .cs-magic-label {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
  }

  /* ── FINDING BLOCK (issue + recommendation two-up) ── */
  .cs-finding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 14px;
  }
  .cs-finding-grid-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
  }
  .cs-finding-grid p {
    font-size: 0.9rem;
    line-height: 1.72;
    color: var(--soft);
    font-weight: 300;
  }
  .cs-finding-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.25;
    margin: 6px 0 4px;
    letter-spacing: -0.01em;
  }
  @media (max-width: 700px) {
    .cs-finding-grid { grid-template-columns: 1fr; gap: 18px; }
  }

  /* ── BROWSER FRAME (desktop hero, single screen) ── */
  .cs-browser-frame {
    width: 100%;
    max-width: 880px;
    margin: 16px auto 0;
    background: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow:
      0 32px 70px rgba(0,0,0,0.22),
      0 12px 28px rgba(0,0,0,0.14);
  }
  .cs-browser-chrome {
    height: 32px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.3);
  }
  .cs-browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .cs-browser-dot.red    { background: #ff5f57; }
  .cs-browser-dot.yellow { background: #febc2e; }
  .cs-browser-dot.green  { background: #28c840; }
  .cs-browser-content {
    width: 100%;
    background: #000;
    overflow: hidden;
    display: block;
    font-size: 0;
  }
  .cs-browser-content video,
  .cs-browser-content img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ── SCREEN PAIR (desktop/laptop hero) ── */
  .cs-screen-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 8px;
    margin-bottom: 0;
  }
  .cs-screen-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .cs-screen {
    position: relative;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
  }
  .cs-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
  .cs-screen-label {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    font-weight: 500;
  }
  @media (max-width: 760px) {
    .cs-screen-pair { grid-template-columns: 1fr; gap: 22px; }
  }

  /* ── LIGHTBOX ── */
  .lightbox {
    position: fixed; inset: 0;
    background: rgba(10,10,10,0.94);
    z-index: 1000;
    display: none;
    align-items: center; justify-content: center;
    padding: 60px;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .lightbox.open { display: flex; opacity: 1; }
  .lightbox-content {
    max-width: 90vw; max-height: 88vh;
    display: flex; align-items: center; justify-content: center;
  }
  .lightbox-content img,
  .lightbox-content video {
    max-width: 90vw; max-height: 88vh;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    cursor: default;
  }
  .lightbox-close {
    position: absolute;
    top: 24px; right: 28px;
    background: transparent; border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.8rem;
    cursor: pointer;
    width: 44px; height: 44px;
    line-height: 1;
    z-index: 1001;
    transition: color 0.2s;
  }
  .lightbox-close:hover { color: #fff; }

  /* Zoom-in cursor on clickable media (set via JS on case study pages) */
  .cs-zoomable { cursor: zoom-in; transition: opacity 0.2s; }
  .cs-zoomable:hover { opacity: 0.92; }

  .cs-magic-moment p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--soft);
  }

  .cs-section {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--line);
  }

  .cs-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
  }

  .cs-stat-cell {
    padding: 28px;
    border-right: 1px solid var(--line);
  }

  .cs-stat-cell:last-child { border-right: none; }

  .cs-stat-sublabel {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
  }

  .cs-stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }

  .cs-stat-label {
    font-size: 0.72rem;
    color: var(--soft);
    font-weight: 400;
    line-height: 1.5;
  }

  .cs-iteration {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 24px 28px;
    margin-top: 20px;
  }

  .cs-iteration-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 300;
  }

  .cs-iteration p {
    font-size: 0.92rem;
    line-height: 1.78;
    color: var(--soft);
    font-weight: 400;
    max-width: 680px;
  }

  .cs-before-after {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 28px;
  }

  .cs-ba-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 160px;
  }

  .cs-ba-item .phone-frame,
  .cs-device-item .phone-frame {
    width: 160px;
    height: 336px;
  }

  .cs-ba-label {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
  }

  .cs-prototype-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-lt);
    padding-bottom: 2px;
    transition: color 0.2s, gap 0.2s;
  }

  .cs-prototype-link:hover { color: var(--charcoal); gap: 12px; }

  /* ── RESEARCH STAT ROWS ── */

  .cs-research-stat-row {
    display: flex;
    align-items: baseline;
    gap: 28px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .cs-research-stat-row:first-child { border-top: 1px solid var(--line); }

  .cs-research-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    min-width: 68px;
  }

  .cs-research-stat-label {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--soft);
    font-weight: 300;
  }

  /* ── USER QUOTES ── */

  .cs-quotes { margin-top: 36px; }

  .cs-quote-row {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }

  .cs-quote-row:first-child { border-top: 1px solid var(--line); }

  .cs-quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    line-height: 0.75;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
    user-select: none;
  }

  .cs-quote-body {}

  .cs-quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--charcoal);
    margin-bottom: 10px;
  }

  .cs-quote-attr {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ── DEVICE PAIR (phone + TV side by side) ── */

  .cs-device-pair {
    display: flex;
    gap: 48px;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
    flex-wrap: wrap;
  }

  .cs-device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .tv-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tv-frame {
    width: 300px;
    aspect-ratio: 16/9;
    background: #0d1117;
    border-radius: 10px 10px 3px 3px;
    border: 3px solid rgba(255,255,255,0.14);
    box-shadow:
      0 24px 64px rgba(0,0,0,0.32),
      0 8px 20px rgba(0,0,0,0.2),
      inset 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
  }

  .tv-frame video,
  .tv-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .tv-stand {
    width: 50px;
    height: 16px;
    background: #1c1c1c;
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
    margin-top: -1px;
  }

  .tv-base {
    width: 88px;
    height: 5px;
    background: #1c1c1c;
    border-radius: 3px;
    margin-top: -1px;
  }

  @media (max-width: 700px) {
    .cs-device-pair { gap: 28px; }
    .tv-frame { width: 220px; }
  }

  /* ── LEDE + PLACEHOLDER ── */

  /* Large serif intro paragraph — used in Problem sections */
  .cs-lede {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--soft);
    max-width: 680px;
    margin-bottom: 28px;
    font-style: italic;
  }

  .cs-lede em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
  }

  .cs-external-link {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-lt);
    padding-bottom: 2px;
    transition: opacity 0.15s ease;
  }
  .cs-external-link:hover { opacity: 0.7; }

  .cs-pullquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--soft);
    max-width: 680px;
    margin: 0;
    padding: 0;
    border: none;
  }

  /* Dashed placeholder block for shell sections without content yet */
  .cs-placeholder {
    border: 1px dashed var(--line);
    border-radius: 6px;
    padding: 56px 32px;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-top: 24px;
  }

  @media (max-width: 700px) {
    .page-nav-inner { padding: 14px 20px; }
    .cs-page { padding: 36px 20px 80px; }
    .cs-page-title { margin-bottom: 16px; }
    .cs-page-tags { margin-bottom: 36px; }
    .cs-back { margin-bottom: 36px; }
    .cs-stats-row { grid-template-columns: 1fr 1fr; }
    .cs-stat-cell:nth-child(2) { border-right: none; }
    .cs-stat-cell:nth-child(3) { border-top: 1px solid var(--line); grid-column: 1 / -1; }
    .cs-magic-moment { padding: 20px 20px; }
    .cs-narrative p { font-size: 1.1rem; }
  }
