/* ══════════════════════════════════════════
   HOMEPAGE — css/home.css
   Styles for index.html only.
   Requires: css/global.css, css/nav.css
   ══════════════════════════════════════════ */

  /* ── Custom cursor ── */
  .cursor {
    position: fixed; pointer-events: none; z-index: 9999;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, background 0.25s ease;
  }
  .cursor-ring {
    position: fixed; pointer-events: none; z-index: 9998;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(61,90,128,0.45);
    transform: translate(-50%, -50%);
    transition: width 0.28s ease, height 0.28s ease, border-color 0.28s ease, opacity 0.25s ease, background 0.28s ease;
  }
  .cursor-ring.lg { width: 58px; height: 58px; background: rgba(61,90,128,0.06); border-color: rgba(61,90,128,0.3); }
  .cursor.hide, .cursor-ring.hide { opacity: 0; }
  @media (max-width: 900px) { .cursor, .cursor-ring { display: none; } }


  /* ── HERO ── */
  .hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 7rem 3rem 4rem; overflow: hidden; }
  .hero-inner {
    position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 3.5rem; align-items: center;
  }
  .hero-fade { opacity: var(--hero-op, 1); }
  .hero-eyebrow-anim { opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.22,0.61,0.36,1) 0.1s forwards; }
  .hero-h1 { margin: 0; }
  .hero-anim-line { display: block; overflow: hidden; }
  .hero-line-1, .hero-line-2 {
    display: block;
    font-family: var(--serif); font-weight: 300; font-size: clamp(2.7rem, 7vw, 5.4rem);
    line-height: 1.04; letter-spacing: -0.025em; color: var(--ink); margin: 0;
  }
  .hero-line-1 { opacity: 0; animation: fadeUp 0.95s cubic-bezier(0.22,0.61,0.36,1) 0.28s forwards; }
  .hero-line-2 { opacity: 0; animation: fadeUp 0.95s cubic-bezier(0.22,0.61,0.36,1) 0.42s forwards; }
  .hero-line-2 em { font-style: italic; font-weight: 400; color: var(--accent); }
  .hero-tagline {
    font-family: var(--sans); font-size: 1.02rem; font-weight: 300; line-height: 1.7;
    color: var(--muted); max-width: 460px; margin: 1.9rem 0 0;
    opacity: 0; animation: fadeUp 0.95s cubic-bezier(0.22,0.61,0.36,1) 0.56s forwards;
  }
  .hero-tagline .accent { color: var(--accent); font-weight: 500; }
  .hero-ctas { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.95s cubic-bezier(0.22,0.61,0.36,1) 0.7s forwards; }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--accent); color: #fff; border: none;
    padding: 14px 26px; border-radius: 40px;
    font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(61,90,128,0.22);
  }
  .btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(61,90,128,0.28); }
  .btn-glass {
    display: inline-flex; align-items: center;
    background: var(--glass-2); color: var(--ink);
    backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid var(--glass-edge);
    padding: 14px 26px; border-radius: 40px;
    font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
    box-shadow: var(--glass-inset);
    transition: transform 0.2s, background 0.2s;
  }
  .btn-glass:hover { background: var(--glass-3); transform: translateY(-2px); }

  .stats-card {
    position: relative; padding: 2.2rem; border-radius: 22px;
    display: flex; flex-direction: column; gap: 1.6rem;
    background: var(--glass); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset);
    opacity: 0; animation: fadeUp 1s cubic-bezier(0.22,0.61,0.36,1) 0.78s forwards;
  }
  .stats-card > div { padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
  .stats-card > div:last-child { padding-bottom: 0; border-bottom: none; }
  .stats-card .num { font-family: var(--serif); font-weight: 400; font-size: 2.5rem; line-height: 1; color: var(--accent); }
  .stats-card .label { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }

  .scroll-hint { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
  .scroll-hint .label { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-soft); }
  .scroll-hint .line { width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
  .scroll-hint .line::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 12px; background: var(--accent); animation: scrollDot 1.8s ease-in-out infinite; }
  @media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; } .hero { padding-top: 6rem; } .stats-card { max-width: 360px; } }

  /* ── POSITIONING ── */
  .position-wrap { padding: 5.5rem 0 1rem; }
  .position-head { max-width: 760px; margin: 0 0 2.8rem; }
  .position-h2 {
    font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); margin: 0.9rem 0 0;
  }
  .position-h2 em { font-style: italic; color: var(--accent); }
  .position-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  @media (max-width: 820px) { .position-grid { grid-template-columns: 1fr; } .position-wrap { padding: 4rem 0 0.5rem; } }
  .position-card {
    position: relative; padding: 2rem 1.9rem; border-radius: 20px;
    background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset);
    transition: transform 0.3s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.3s;
  }
  .position-card:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(27,35,46,0.15), var(--glass-inset); }
  .position-card .pc-num { font-family: var(--serif); font-weight: 300; font-size: 1.1rem; color: var(--accent); opacity: 0.7; }
  .position-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--ink); margin: 0.5rem 0 0.7rem; }
  .position-card p { font-family: var(--sans); font-size: 0.92rem; font-weight: 300; line-height: 1.7; color: var(--muted); margin: 0; }
  .position-card p b { font-weight: 600; color: var(--ink); }
  .position-synth {
    margin-top: 1.6rem; padding: 1.3rem 1.7rem; border-radius: 16px;
    background: var(--accent-soft); border: 1px solid var(--glass-edge);
    font-family: var(--serif); font-weight: 400; font-size: clamp(1.05rem, 1.9vw, 1.4rem);
    line-height: 1.5; color: var(--ink);
  }
  .position-synth em { font-style: italic; color: var(--accent); }

  /* ── HOW I THINK (operating loop) ── */
  .think-wrap { padding: 5.5rem 0 1rem; }
  @media (max-width: 820px) { .think-wrap { padding: 4rem 0 0.5rem; } }
  .think-head { max-width: 720px; margin: 0 0 2.6rem; }
  .think-head h2 {
    font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); margin: 0.9rem 0 0.7rem;
  }
  .think-head p { font-family: var(--sans); font-size: 0.96rem; font-weight: 300; line-height: 1.7; color: var(--muted); margin: 0; max-width: 600px; }
  .think-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; align-items: stretch; }
  @media (max-width: 860px) { .think-rail { grid-template-columns: 1fr; gap: 0.6rem; } }
  .think-step {
    position: relative; padding: 1.7rem 1.5rem; border-radius: 18px;
    background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset);
    display: flex; flex-direction: column; gap: 0.5rem;
  }
  .think-step .ts-num { font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
  .think-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin: 0.1rem 0 0.2rem; }
  .think-step .ts-principle { font-family: var(--sans); font-size: 0.86rem; font-weight: 500; line-height: 1.5; color: var(--ink); margin: 0; }
  .think-step .ts-eg { font-family: var(--sans); font-size: 0.82rem; font-weight: 300; line-height: 1.55; color: var(--muted); margin: 0.3rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--line); }
  .think-step .ts-eg b { font-weight: 600; color: var(--ink); }
  /* connector arrow between steps */
  .think-step:not(:last-child)::after {
    content: ""; position: absolute; z-index: 2; top: 50%; right: -0.62rem; width: 1.2rem; height: 1.2rem;
    transform: translateY(-50%) rotate(45deg);
    border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
    opacity: 0.5;
  }
  @media (max-width: 860px) {
    .think-step:not(:last-child)::after { top: auto; right: 50%; bottom: -0.62rem; transform: translateX(50%) rotate(135deg); }
  }
  .think-loop {
    margin-top: 1.4rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.5; color: var(--ink); padding: 1.2rem 1.6rem; border-radius: 14px;
    background: var(--accent-soft); border: 1px solid var(--glass-edge);
  }
  .think-loop em { font-style: italic; color: var(--accent); }

  /* Detailed Role/Duration/Skill and Problem·Approach·Outcome snapshots now live
     on the case-study pages only — homepage cards are doorways, not case studies. */

  /* ── ABOUT ── */
  .about-wrap { padding: 7rem 0; }
  .about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: center; }
  @media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 2.8rem; } .about-wrap { padding: 4.5rem 0; } }

  .lens {
    position: relative; max-width: 340px; aspect-ratio: 4/5; margin: 0 auto;
    border-radius: 26px; overflow: hidden;
    background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset);
    display: flex; align-items: center; justify-content: center;
  }
  .lens::before { content: ""; position: absolute; width: 78%; height: 78%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 70%); }
  .girl-avatar { position: relative; width: 96%; height: auto; }
  .head-group { transform-origin: 100px 110px; animation: floaty 6s ease-in-out infinite; }
  .eye { animation: blink 5.5s infinite; transform-origin: center; }
  @keyframes blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
  .sparkle { opacity: 0; animation: twinkle 4s ease-in-out infinite; }
  .sparkle-2 { animation-delay: 1.3s; } .sparkle-3 { animation-delay: 2.6s; }
  @keyframes twinkle { 0%,100% { opacity: 0; } 50% { opacity: 0.8; } }
  .photo-tag {
    position: absolute; bottom: 14px; left: 14px; z-index: 5;
    padding: 9px 14px; border-radius: 12px;
    background: rgba(255,255,255,0.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-inset);
  }
  .photo-tag .based { font-family: var(--sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
  .photo-tag .place { font-family: var(--serif); font-size: 1rem; color: var(--ink); }

  .about-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.06; letter-spacing: -0.015em; color: var(--ink); margin: 0.7rem 0 1.4rem; }
  .about-p { font-family: var(--sans); font-size: 1rem; font-weight: 300; line-height: 1.78; color: var(--muted); margin: 0 0 1.1rem; max-width: 540px; }
  .skills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
  .skill {
    font-family: var(--sans); font-size: 0.76rem; font-weight: 500; color: var(--ink);
    padding: 8px 15px; border-radius: 30px;
    background: var(--glass-2); border: 1px solid var(--glass-edge); box-shadow: var(--glass-inset);
    transition: transform 0.2s, color 0.2s, background 0.2s;
  }
  .skill:hover { transform: translateY(-2px); color: var(--accent); }

  /* ── CASE STUDIES ── */
  .work-wrap { padding: 6rem 0; }
  .work-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
  .work-head h2 { margin: 0; }
  .work-note { font-family: var(--sans); font-size: 0.82rem; font-weight: 300; color: var(--muted); max-width: 320px; margin: 0; }
  .cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  @media (max-width: 760px) { .cs-grid { grid-template-columns: 1fr; } .work-wrap { padding: 4rem 0; } }
  /* ── Recruiter-first card: Title → Summary → Outcome → CTA, nothing else.
     One focal hierarchy, generous whitespace, an obvious doorway into the case study. ── */
  .cs-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    padding: 2.8rem 2.6rem; border-radius: 22px; overflow: hidden;
    background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset);
    transition: transform 0.34s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.34s, border-color 0.34s;
  }
  .cs-card::before { content: ""; position: absolute; inset: 0; background: var(--accent-bg, transparent); opacity: 0; transition: opacity 0.34s; }
  .cs-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(27,35,46,0.16), var(--glass-inset); }
  .cs-card:hover::before { opacity: 1; }
  .cs-card > * { position: relative; }

  .cs-card-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
  .cs-index { font-family: var(--serif); font-weight: 300; font-size: 0.95rem; color: var(--muted-soft); letter-spacing: 0.02em; }
  .cs-index::after { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--line); vertical-align: middle; margin-left: 0.7rem; }
  .cs-label { font-family: var(--sans); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
  .cs-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.4rem); line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 0.9rem; }
  .cs-summary { font-family: var(--sans); font-size: 1rem; font-weight: 300; line-height: 1.65; color: var(--muted); margin: 0; max-width: 38ch; }

  /* foot: outcome highlight + CTA, pinned to a shared baseline across cards */
  .cs-foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1.3rem; }
  .cs-outcome { display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start; padding: 0.5rem 0.95rem 0.5rem 0.8rem; border-radius: 30px; background: color-mix(in srgb, var(--cs-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cs-accent) 22%, transparent); }
  .cs-outcome-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cs-accent); flex-shrink: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cs-accent) 18%, transparent); }
  .cs-outcome-text { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
  .cs-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; transition: gap 0.25s ease; }
  .cs-cta svg { transition: transform 0.25s ease; }
  .cs-card:hover .cs-cta { gap: 12px; }
  .cs-card:hover .cs-cta svg { transform: translateX(3px); }
  .cs-grid { align-items: stretch; }
  .cs-grid > .reveal { display: flex; }
  @media (max-width: 760px) { .cs-card { padding: 2.2rem 1.8rem; } }

  /* ── EXPERIENCE ── */
  .xp-wrap { padding: 6rem 0; }
  .xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  @media (max-width: 760px) { .xp-grid { grid-template-columns: 1fr; } .xp-wrap { padding: 4rem 0; } }
  .xp-item {
    display: flex; gap: 1rem; padding: 1.8rem; border-radius: 18px;
    background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset);
    transition: transform 0.28s;
  }
  .xp-item:hover { transform: translateY(-4px); }
  .xp-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); }
  .xp-lede { font-family: var(--sans); font-size: 0.96rem; font-weight: 300; line-height: 1.7; color: var(--muted); margin: -1.4rem 0 2.4rem; max-width: 660px; }
  .xp-period { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
  .xp-role { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); line-height: 1.2; margin-bottom: 0.25rem; }
  .xp-org { font-family: var(--sans); font-size: 0.84rem; font-weight: 300; color: var(--muted); }
  .xp-note { font-family: var(--sans); font-size: 0.82rem; font-weight: 300; line-height: 1.55; color: var(--muted); margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }

  /* ── CERTIFICATIONS ── */
  .cert-wrap { padding: 6rem 0; }
  .cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  @media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .cert-grid { grid-template-columns: 1fr; } .cert-wrap { padding: 4rem 0; } }
  .cert-card {
    padding: 1.8rem 1.6rem; border-radius: 18px;
    background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset);
    transition: transform 0.28s;
  }
  .cert-card:hover { transform: translateY(-4px); }
  .cert-year { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.9rem; }
  .cert-name { font-family: var(--serif); font-size: 1.08rem; line-height: 1.22; color: var(--ink); margin-bottom: 0.5rem; }
  .cert-issuer { font-family: var(--sans); font-size: 0.78rem; font-weight: 300; color: var(--muted); }

  /* ── CONTACT ── */
  .contact-wrap { padding: 7rem 3rem 6rem; text-align: center; }
  .contact-h { font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); max-width: 760px; margin: 0.6rem auto 1.4rem; }
  .contact-h .accent { color: var(--accent); font-style: italic; font-weight: 400; }
  .contact-sub { font-family: var(--sans); font-size: 1.02rem; font-weight: 300; line-height: 1.7; color: var(--muted); max-width: 520px; margin: 0 auto 2.6rem; }
  .contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
  .contact-link {
    font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; color: var(--ink);
    padding: 12px 20px; border-radius: 40px;
    background: var(--glass-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-inset);
    transition: transform 0.2s, color 0.2s, background 0.2s;
  }
  .contact-link:hover { transform: translateY(-2px); color: var(--accent); background: var(--glass-3); }

  /* ── FOOTER ── */
  .foot { padding: 2.5rem 3rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; border-top: 1px solid var(--line); }
  .foot .name { font-family: var(--serif); font-size: 0.96rem; color: var(--ink); }
  .foot .meta { font-family: var(--sans); font-size: 0.74rem; font-weight: 300; color: var(--muted-soft); letter-spacing: 0.02em; }


  /* ── SHARED FOOTER COMPONENT (global site navigation) ──
     Identical IA, layout logic, nav structure, interaction & accessibility on
     every page — only the skin (palette + type) changes. Homepage skin below. */
  .site-footer { border-top: 1px solid var(--line); padding: 4.5rem 3rem 0; }
  .site-footer__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
  @media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 2.4rem 2rem; } .site-footer { padding: 3.5rem 1.5rem 0; } }
  @media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }
  .sf-brand .sf-logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); display: inline-block; margin-bottom: 0.7rem; }
  .sf-brand .sf-logo em { font-style: italic; color: var(--shell-accent); }
  .sf-brand p { font-family: var(--sans); font-size: 0.88rem; font-weight: 300; line-height: 1.65; color: var(--muted); max-width: 280px; margin: 0; }
  .sf-col h4 { font-family: var(--sans); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--shell-accent); margin: 0 0 1.1rem; }
  .sf-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
  .sf-col a { font-family: var(--sans); font-size: 0.9rem; font-weight: 400; color: var(--muted); background: none; border: none; padding: 0; text-align: left; transition: color 0.2s, padding-left 0.2s; cursor: pointer; }
  .sf-col a:hover { color: var(--shell-accent); padding-left: 4px; }
  .site-footer__bottom { max-width: 1120px; margin: 4rem auto 0; border-top: 1px solid var(--line); padding: 1.8rem 0 2.4rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }
  .site-footer__bottom .sf-sign { font-family: var(--serif); font-size: 0.94rem; color: var(--ink); }
  .site-footer__bottom .sf-meta { font-family: var(--sans); font-size: 0.72rem; font-weight: 300; color: var(--muted-soft); letter-spacing: 0.02em; }


  /* ── OVERLAYS (about + case study) ── */
  .overlay {
    position: fixed; inset: 0; z-index: 200; overflow-y: auto;
    background: var(--bg);
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
  }
  .overlay.open { opacity: 1; pointer-events: auto; }
  .overlay-atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
  .cs-close {
    position: fixed; top: 1.6rem; right: 1.8rem; z-index: 210;
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--glass-2); border: 1px solid var(--glass-edge); box-shadow: var(--glass-inset);
    color: var(--ink); transition: transform 0.2s, background 0.2s;
  }
  .cs-close:hover { transform: rotate(90deg); background: var(--glass-3); }


  /* case study overlay content */
  .cs-hero { position: relative; padding: 8rem 2.4rem 4rem; overflow: hidden; }
  .cs-hero-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
  .cs-hero-label { display: flex; align-items: center; gap: 12px; margin-bottom: 1.4rem; }
  .cs-hero-label .line { width: 30px; height: 1px; display: inline-block; }
  .cs-hero-label .txt { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
  .cs-hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.0; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 1.2rem; }
  .cs-hero-sub { font-family: var(--sans); font-size: 1.1rem; font-weight: 300; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 0; }

  .cs-overview { max-width: 880px; margin: 0 auto; padding: 0 2.4rem; position: relative; z-index: 2; }
  .cs-overview-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 18px; overflow: hidden; background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset); }
  .cs-overview-item { padding: 1.3rem 1.5rem; }
  .cs-overview-label { font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.4rem; }
  .cs-overview-value { font-family: var(--serif); font-size: 1.04rem; color: var(--ink); }
  @media (max-width: 600px) { .cs-overview-bar { grid-template-columns: 1fr 1fr; } }

  .cs-challenge, .cs-outcome { max-width: 760px; margin: 0 auto; padding: 4rem 2.4rem; position: relative; z-index: 2; }
  .cs-challenge p, .cs-outcome p { font-family: var(--sans); font-size: 1.08rem; font-weight: 300; line-height: 1.8; color: var(--muted); margin: 0; }
  .cs-process { max-width: 880px; margin: 0 auto; padding: 2rem 2.4rem 4rem; position: relative; z-index: 2; }
  .cs-process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  @media (max-width: 700px) { .cs-process-grid { grid-template-columns: 1fr; } }
  .cs-step { position: relative; padding: 2rem; border-radius: 18px; overflow: hidden; background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset); }
  .cs-step-num-bg { position: absolute; top: -0.5rem; right: 0.8rem; font-family: var(--serif); font-weight: 300; font-size: 4.5rem; line-height: 1; }
  .cs-step-num-pill { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; font-family: var(--sans); font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
  .cs-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); margin: 0 0 0.6rem; position: relative; }
  .cs-step p { font-family: var(--sans); font-size: 0.9rem; font-weight: 300; line-height: 1.65; color: var(--muted); margin: 0; position: relative; }

  .cs-stat { position: relative; padding: 5rem 2.4rem; text-align: center; overflow: hidden; }
  .cs-stat-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
  .cs-stat-num { font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; }
  .cs-stat-desc { font-family: var(--sans); font-size: 1.05rem; font-weight: 300; line-height: 1.6; color: var(--muted); margin: 1rem 0 0; }

  .cs-keep { max-width: 760px; margin: 0 auto; padding: 3rem 2.4rem 5rem; position: relative; z-index: 2; }
  .cs-keep-title { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 1.4rem; }
  .cs-keep-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
  .cs-keep-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); transition: color 0.2s; }
  .cs-keep-link:hover { color: var(--accent); }
  .cs-back a { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }

  /* ── BEHAVIORAL DESIGN FRAMEWORK ── */
  .framework-wrap { padding: 5.5rem 0 2rem; }
  @media (max-width: 820px) { .framework-wrap { padding: 4rem 0 1rem; } }
  .framework-head { max-width: 720px; margin: 0 0 2.8rem; }
.fw-rail { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0; align-items: stretch; }
  @media (max-width: 900px) { .fw-rail { grid-template-columns: 1fr; gap: 0; } }
  .fw-step {
    padding: 1.8rem 1.6rem; border-radius: 18px;
    background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset);
    display: flex; flex-direction: column; gap: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.22,0.61,0.36,1);
    align-self: stretch;
  }
  .fw-step:hover { transform: translateY(-4px); }
  .fw-num { font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
  .fw-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin: 0.1rem 0 0.2rem; }
  .fw-step p { font-family: var(--sans); font-size: 0.88rem; font-weight: 300; line-height: 1.6; color: var(--muted); margin: 0; }
  .fw-arrow { font-family: var(--sans); font-size: 1.2rem; color: var(--accent); opacity: 0.45; padding: 0 0.9rem; text-align: center; line-height: 1; display: flex; align-items: center; }
  @media (max-width: 900px) { .fw-arrow { padding: 0.5rem 0 0.5rem 1.8rem; text-align: left; } }

  /* ── WHY IN THIS VESSEL ── */
  .vessel-wrap { padding: 5rem 0; }
  @media (max-width: 820px) { .vessel-wrap { padding: 3.5rem 0; } }
  .vessel-inner { max-width: 720px; }
  .vessel-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); margin: 0.8rem 0 2rem; }
  .vessel-h2 em { font-style: italic; color: var(--accent); }
  .vessel-body { padding: 2rem 2.4rem; border-radius: 20px; background: var(--glass); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow), var(--glass-inset); }
  .vessel-body p { font-family: var(--sans); font-size: 1rem; font-weight: 300; line-height: 1.78; color: var(--muted); margin: 0 0 1rem; }
  .vessel-body p:last-child { margin: 0; }
  .vessel-body em { font-style: italic; color: var(--ink); font-weight: 400; }

  /* reduced motion */

  /* ── Button press feedback ── */
  .btn-primary:active { transform: translateY(-2px) scale(0.97); }
  .btn-glass:active { transform: translateY(-2px) scale(0.97); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
    .hero-eyebrow-anim, .hero-line-1, .hero-line-2, .hero-tagline, .hero-ctas, .stats-card { opacity: 1; animation: none; }
  }
/* ── "Rethink the Remote" card mockup: two angled phone previews
   replacing the outcome pill for this card only. Sits inside .cs-foot,
   sized to stay within .cs-card's overflow:hidden bounds. ── */
.cs-mockup {
  position: relative;
  width: 100%;
  height: 205px;
  align-self: flex-start;
}

.cs-phone {
  position: absolute;
  width: 82px;
  height: 168px;
  background: #0b0d12;
  border-radius: 17px;
  padding: 4px;
  box-shadow:
    0 26px 40px -14px rgba(27, 35, 46, 0.45),
    0 10px 18px -8px rgba(27, 35, 46, 0.3);
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cs-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cs-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.cs-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-phone-island {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 9px;
  background: #000;
  border-radius: 5px;
  z-index: 3;
}

.cs-phone-back {
  top: 12px;
  left: 28%;
  transform: rotate(-9deg);
  z-index: 1;
}

.cs-phone-front {
  top: 0;
  left: 54%;
  transform: rotate(7deg);
  z-index: 2;
}

.cs-card:hover .cs-phone-back { transform: rotate(-11deg) translateY(-3px); }
.cs-card:hover .cs-phone-front { transform: rotate(9deg) translateY(-3px); }

@media (max-width: 760px) {
  .cs-mockup { height: 188px; }
  .cs-phone { width: 74px; height: 150px; }
  .cs-phone-back { left: 24%; }
  .cs-phone-front { left: 52%; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-phone { transition: none; }
  .cs-card:hover .cs-phone-back,
  .cs-card:hover .cs-phone-front { transform: none; }
}