@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&display=swap");

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

  :root {
    --mono: 'IBM Plex Mono', 'SF Mono', 'Fira Code', '"Google Sans Code"', "Google Sans Code", monospace;
    --bg: #FDFDFD;
    --text: #1a1a1a;
    --dim: #6a6a6a;
    --faint: #a0a0a0;
    --line: #e8e8e8;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
  }

  html { scroll-behavior:smooth; }

  body {
    font-family: var(--mono);
    background: var(--bg);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    padding: 0;
  }

  ::selection { background: var(--text); color: var(--bg); }
  a { color: var(--text); }

  /* ===== LAYOUT ===== */
  .doc {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
  }

  /* ===== TOP BAR — like a file path ===== */
  .file-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--dim);
  }

  .file-path { letter-spacing: 0.02em; }

  .file-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
  }

  .file-nav a {
    color: var(--dim);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
  }

  .file-nav a:hover, .file-nav a.active { color: var(--text); }

  /* ===== PAGE SWITCHER ===== */
  .switcher {
    position: fixed;
    bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    z-index: 200;
    display: flex;
    gap: 1px;
    background: var(--text);
    padding: 3px;
    font-size: 10px;
  }

  .switcher button {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--dim);
    background: var(--bg);
    border: none;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
  }

  .switcher button:hover { color: var(--text); }
  .switcher button.active { color: var(--bg); background: var(--text); }

  /* ===== HOME INTRO ===== */
  .home-intro {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .home-photo {
    width: 300px;
    height: 300px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
  }

  @media (max-width:700px) {
    .home-intro {
      flex-direction: column;
      align-items: flex-start;
      gap: 1.5rem;
    }
    .home-photo {
      width: 200px;
      height: 200px;
    }
  }

  /* ===== TYPOGRAPHY ===== */
  h1.title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 6rem 0 1rem;
  }

  .meta-line {
    color: var(--dim);
    font-size: 11px;
    margin-bottom: 0.3rem;
  }

  .divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 3rem 0;
  }

  .section-marker {
    color: var(--faint);
    font-size: 11px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
  }

  p {
    margin-bottom: 1.2rem;
    max-width: 600px;
  }

  .highlight {
    background: rgba(0,0,0,0.04);
    padding: 0 3px;
  }

  /* ===== STATEMENT (big text) ===== */
  .statement {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 4rem 0;
    max-width: 100%;
  }

  .statement .dim { color: var(--dim); }

  /* ===== PILLARS ===== */
  .pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .pillar-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
  }

  .pillar-item:first-child { border-top: 1px solid var(--line); }

  .pillar-num { color: var(--faint); font-size: 11px; margin-bottom: 0.3rem; }
  .pillar-title { font-weight: 500; margin-bottom: 0.3rem; }
  .pillar-desc { color: var(--dim); font-size: 12.5px; max-width: 500px; }

  /* ===== WORK INDEX ===== */
  .work-index {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .work-entry {
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: padding-left 0.3s var(--ease);
    text-decoration: none;
    display: block;
  }

  .work-entry:first-child { border-top: 1px solid var(--line); }
  .work-entry:hover { padding-left: 1rem; }

  .we-num { color: var(--faint); font-size: 11px; margin-bottom: 0.4rem; }

  .we-title {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    transition: color 0.2s;
  }

  .work-entry:hover .we-title { color: var(--dim); }

  .we-org { color: var(--dim); font-size: 11px; }
  .we-tag { color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }

  .we-arrow {
    color: var(--text);
    font-size: 11px;
    margin-top: 0.6rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s var(--ease);
  }

  .work-entry:hover .we-arrow { opacity: 1; transform: translateX(0); }

  /* ===== CTA ===== */
  .cta-block {
    margin: 5rem 0;
  }

  .cta-big {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .cta-link {
    display: inline-block;
    font-size: 12px;
    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 1px;
    transition: all 0.2s;
  }

  .cta-link:hover { color: var(--dim); border-color: var(--dim); }

  /* ===== FOOTER ===== */
  .foot {
    margin-top: 5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--faint);
  }

  .foot a { color: var(--dim); text-decoration: none; transition: color 0.2s; }
  .foot a:hover { color: var(--text); }
  .foot-links { display: flex; gap: 1.5rem; }

  /* ===== CASE STUDY ===== */
  .case-header {
    margin: 6rem 0 3rem;
  }

  .case-bc {
    font-size: 11px;
    color: var(--faint);
    margin-bottom: 2rem;
  }

  .case-bc a { color: var(--dim); text-decoration: none; cursor: pointer; }
  .case-bc a:hover { color: var(--text); }

  .case-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 2.5rem;
  }

  .case-meta {
    display: flex;
    gap: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
  }

  .case-meta dt { color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
  .case-meta dd { color: var(--dim); margin-top: 0.15rem; }

  .case-section {
    margin: 3.5rem 0;
  }

  .cs-label {
    color: var(--faint);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
  }

  .cs-content p {
    color: var(--text);
    font-size: 13px;
  }

  .role-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .role-list li {
    color: var(--text);
    font-size: 12px;
    padding-left: 1.5rem;
    position: relative;
  }

  .role-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--faint);
  }

  .placeholder-box {
    border: 1px dashed var(--line);
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 11px;
    color: var(--faint);
    text-align: center;
  }

  .case-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }

  .case-back a {
    font-size: 11px;
    color: var(--dim);
    text-decoration: none;
    cursor: pointer;
  }

  .case-back a:hover { color: var(--text); }

  /* ===== LINE NUMBERS (decorative) ===== */
  .ln {
    position: relative;
    padding-left: 3.5rem;
  }

  .ln::before {
    content: attr(data-ln);
    position: absolute;
    left: 0;
    color: var(--line);
    font-size: 11px;
    width: 2.5rem;
    text-align: right;
    user-select: none;
  }

  /* ===== PAGES ===== */
  .page { display:none; }
  .page.active { display:block; }

  /* ===== RESPONSIVE ===== */
  @media (max-width:700px) {
    .doc { padding: 3rem 1.25rem 5rem; }
    .file-bar { padding: 0.5rem 1.25rem; }
    .case-meta { flex-direction: column; gap: 1rem; }
    .ln { padding-left: 0; }
    .ln::before { display: none; }
  }

  /* ===== FADE ===== */
  .fade-in { opacity:0; transform:translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .fade-in.visible { opacity:1; transform:translateY(0); }
