@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,700;1,400&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

  :root {
    --bg: #f5f4f0;
    --fg: #0f0f0e;
    --muted: #6b6b67;
    --border: #d8d7d2;
    --card: #eeede9;
    --hover-bg: #e8e7e3;
    --nav-bg: rgba(245,244,240,0.88);
    --orange: #ff5500;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-sans: 'IBM Plex Sans', sans-serif;
    --radius: 4px;
    --nav-h: 56px;
    --max-w: 1200px;
    --px: clamp(20px, 5vw, 80px);
  }

  .dark {
    --bg: #111110;
    --fg: #f0efe9;
    --muted: #888882;
    --border: #2a2a28;
    --card: #1a1a18;
    --hover-bg: #222220;
    --nav-bg: rgba(17,17,16,0.88);
  }

  html { scroll-behavior: smooth; }

  .site-root {
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
  }

  body {
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease;
  }

  /* ── NAV ── */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: height 0.25s ease, background 0.3s ease, border-color 0.3s ease;
  }
  .nav.scrolled { height: 44px; }
  .nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-links { display: flex; gap: 28px; }
  .nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
    cursor: pointer;
    background: none; border: none;
  }
  .nav-link:hover { color: var(--orange); }
  .nav-logo {
    font-style: italic;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
    cursor: default;
    user-select: none;
  }
  .nav-right { display: flex; align-items: center; gap: 16px; }
  .theme-toggle {
    width: 44px;
    height: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
    padding: 3px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s;
    position: relative;
  }
  .theme-toggle:hover { border-color: var(--muted); }
  .theme-toggle-thumb {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: var(--muted);
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), background 0.25s;
    flex-shrink: 0;
  }
  .theme-toggle-thumb.toggled {
    transform: translateX(20px);
    background: var(--fg);
  }

  /* ── MAIN LAYOUT ── */
  .main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    padding-top: calc(var(--nav-h) + 40px);
  }

  /* ── SECTION LABEL ── */
  .section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
  }

  /* ── ABOUT ── */
  .about-section { padding: 60px 0; }
  .about-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--border);
  }
  .about-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .about-name {
    font-family: var(--font-mono);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
  }
  .about-title {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 28px;
    letter-spacing: 0.04em;
  }
  .about-body {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .about-body p {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
  }
  .about-body a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
  .about-body a:hover { color: var(--orange); text-decoration-color: var(--orange); }

  /* ── WORK ── */
  .work-section { padding: 60px 0; }
  .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  @media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }

  .behance-link-row { margin-top: 28px; }
  .behance-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
  }
  .behance-link:hover { opacity: 0.75; }

  .project-card {
    background: var(--card);
    border: 1px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  .project-card:hover { background: var(--hover-bg); }
  .project-card:hover .project-img { transform: scale(1.04); filter: grayscale(0%); }
  .project-card:hover .project-cta { opacity: 1; transform: translateY(0); }

  .project-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #ddd;
    position: relative;
  }
  .project-card-soon {
    cursor: default;
  }
  .project-card-soon:hover .project-img {
    transform: none;
    filter: grayscale(100%);
  }
  .project-card-soon:hover .project-cta {
    opacity: 0;
    transform: translateY(4px);
  }
  .coming-soon-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--orange);
    padding: 3px 8px;
    border-radius: var(--radius);
    pointer-events: none;
  }
  .project-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.4s ease, filter 0.4s ease;
  }

  .project-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  .project-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
  .project-subtitle { font-family: var(--font-sans); font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.55; }
  .project-cta {
    margin-top: 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
  }

  /* ── CONTACT ── */
  .contact-section { padding: 60px 0 80px; }
  .contact-body { font-family: var(--font-sans); font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.75; }
  .contact-body a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
  .contact-body a:hover { color: var(--orange); text-decoration-color: var(--orange); }

  /* ── FOOTER ── */
  .footer {
    border-top: 1px solid var(--border);
    padding: 24px var(--px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }
  .footer a { color: var(--muted); transition: color 0.15s; }
  .footer a:hover { color: var(--fg); }

  /* ── PROJECT DETAIL ── */
  .detail-main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 80px;
  }
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 40px;
    transition: color 0.15s;
  }
  .back-btn:hover { color: var(--fg); }

  .detail-title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 10px;
  }
  .detail-subtitle {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 640px;
  }

  .detail-hero {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: var(--radius);
    margin-bottom: 40px;
    border: 1px solid var(--border);
  }

  .meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 56px;
  }
  @media (max-width: 600px) { .meta-grid { grid-template-columns: 1fr; } }
  .meta-cell {
    background: var(--card);
    padding: 20px 22px;
  }
  .meta-cell-full {
    grid-column: 1 / -1;
    background: var(--card);
    padding: 20px 22px;
    border-top: 1px solid var(--border);
  }
  .meta-label { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .meta-value { font-family: var(--font-sans); font-size: 13px; font-weight: 300; line-height: 1.6; }
  .meta-summary { font-size: 13px; line-height: 1.75; color: var(--fg); font-weight: 300; }

  .content-body { max-width: 680px; }
  .content-text { font-family: var(--font-sans); font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
  .content-section { margin-bottom: 40px; }
  .content-section-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
  .content-section-body { font-family: var(--font-sans); font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.8; white-space: pre-line; }

  .pain-points-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 40px; }
  .pain-point-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
  .pain-point-title { font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 6px; letter-spacing: -0.01em; }
  .pain-point-body { font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.65; }

  .principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 24px 0 40px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
  .principle-card { background: var(--card); border-right: 1px solid var(--border); padding: 20px; }
  .principle-card:last-child { border-right: none; }
  .principle-heading { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--fg); line-height: 1.45; margin-bottom: 12px; }
  .principle-body { font-family: var(--font-sans); font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
  .principle-implications-label { font-size: 11px; font-weight: 700; color: var(--fg); letter-spacing: 0.02em; margin-bottom: 6px; }
  .principle-implications-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
  .principle-implications-list li { font-family: var(--font-sans); font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.55; padding-left: 12px; position: relative; }
  .principle-implications-list li::before { content: "·"; position: absolute; left: 0; color: var(--muted); }

  .content-figure { margin: 40px 0; }
  .content-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
  .content-figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; letter-spacing: 0.03em; }

  .content-quote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius);
  }
  .content-quote-text {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
    color: var(--fg);
    line-height: 1.55;
    margin-bottom: 12px;
  }
  .content-quote-attr {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-style: normal;
  }
  /* Carousel */
  .content-carousel {
    position: relative;
    margin: 40px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
  }
  .carousel-track { position: relative; }
  .carousel-slide { display: none; }
  .carousel-slide.active { display: block; }
  .carousel-slide img { width: 100%; display: block; }
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    z-index: 2;
    transition: background 0.15s, color 0.15s;
  }
  .carousel-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
  .carousel-btn-prev { left: 12px; }
  .carousel-btn-next { right: 12px; }
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    background: var(--card);
  }
  .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
  }
  .carousel-dot.active { background: var(--orange); }

  .content-video-wrap {
    margin: 32px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
  }
  .content-video {
    width: 100%;
    display: block;
  }
  .content-gif-placeholder {
    margin: 32px 0;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--card);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .content-gif-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .content-quote {
    margin: 32px 0;
    padding: 24px 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius);
  }
  .content-quote-text {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: var(--fg);
    line-height: 1.6;
    margin-bottom: 10px;
  }
  .content-quote-attr {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-style: normal;
  }
  .conclusions-section { margin-top: 64px; }
  .conclusions-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
  .conclusions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
  @media (max-width: 700px) { .conclusions-grid { grid-template-columns: 1fr; } }
  .conclusion-card { background: var(--card); padding: 24px; }
  .conclusion-card-full { grid-column: 1 / -1; border-top: 1px solid var(--border); }
  .award-card-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: center; width: 100%; }
  @media (max-width: 700px) { .award-card-grid { grid-template-columns: 1fr; } }
  .award-logos-row { grid-column: span 2; display: flex; flex-direction: column; gap: 24px; }
  .award-logos-inner { display: flex; gap: 16px; align-items: center; justify-content: space-around; }
  @media (max-width: 900px) { .award-logos-row { grid-column: 1; } .award-logos-inner { flex-wrap: wrap; justify-content: flex-start; } .award-logos-inner > div { width: calc(50% - 8px) !important; height: auto !important; aspect-ratio: 1/1; } }

  .dux-scores-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 32px; }
  .dux-score-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
  .dux-product-name { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .dux-score-row { display: flex; align-items: baseline; gap: 10px; }
  .dux-score-number { font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: var(--fg); letter-spacing: -0.03em; }
  .dux-score-grade { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--orange); }
  .dux-score-summary { font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.6; }

  .content-pullquote { border-left: 3px solid var(--orange); padding: 12px 20px; margin: 24px 0 32px; }
  .content-pullquote-text { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--fg); line-height: 1.5; font-style: italic; margin-bottom: 8px; }
  .content-pullquote-attr { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; }
  .conclusion-metric { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
  .conclusion-result { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 10px; }
  .conclusion-desc { font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.65; }

  /* ── CONTACT FORM ── */
  .contact-intro { font-family: var(--font-sans); font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }
  .contact-intro a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
  .contact-intro a:hover { color: var(--orange); text-decoration-color: var(--orange); }

  .contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

  .form-field { display: flex; flex-direction: column; gap: 6px; }
  .form-label { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); }
  .form-input, .form-textarea {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--fg);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.15s, background 0.3s;
    width: 100%;
  }
  .form-input::placeholder, .form-textarea::placeholder { color: var(--border); }
  .form-input:focus, .form-textarea:focus { border-color: var(--muted); }
  .form-input.error, .form-textarea.error { border-color: var(--orange); }
  .form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
  .form-error { font-size: 11px; color: var(--orange); margin-top: 2px; }

  .form-submit {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--bg); background: var(--fg);
    border: none; border-radius: var(--radius);
    padding: 10px 20px; cursor: pointer;
    transition: opacity 0.2s, background 0.3s, color 0.3s;
  }
  .form-submit:hover:not(:disabled) { background: var(--orange); opacity: 1; }
  .form-submit:disabled { opacity: 0.45; cursor: not-allowed; }

  .form-success {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    max-width: 560px;
    transition: background 0.3s, border-color 0.3s;
  }
  .form-success-icon { color: var(--orange); flex-shrink: 0; margin-top: 1px; }
  .form-success-text { font-family: var(--font-sans); font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.65; }
  .form-success-text strong { color: var(--fg); font-weight: 500; }

  /* ── DIVIDER ── */
  .divider { border: none; border-top: 1px solid var(--border); margin: 0; }

  /* ── FADE IN ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .fade-up { animation: fadeUp 0.5s ease both; }
  .delay-1 { animation-delay: 0.07s; }
  .delay-2 { animation-delay: 0.14s; }
  .delay-3 { animation-delay: 0.21s; }

  /* ── RESUME PAGE ── */
  .resume-main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 80px;
  }
  .resume-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--orange);
    border: none;
    border-radius: var(--radius);
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
  }
  .resume-download-btn:hover { opacity: 0.82; }

  /* Resume document */
  .resume-doc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(32px, 5vw, 64px);
    transition: background 0.3s ease, border-color 0.3s ease;
  }

  /* Header */
  .r-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid var(--fg); }
  .r-name { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
  .r-title { font-size: 13px; color: var(--muted); font-family: var(--font-sans); font-weight: 300; letter-spacing: 0.04em; margin-bottom: 14px; }
  .r-contact {
    display: flex; flex-wrap: wrap; gap: 6px 20px;
    font-size: 11px; color: var(--muted); letter-spacing: 0.03em;
  }
  .r-contact a { color: var(--muted); text-decoration: none; }
  .r-contact a:hover { color: var(--orange); }

  /* Two-col layout */
  .r-body { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: start; }
  @media (max-width: 700px) { .r-body { grid-template-columns: 1fr; } }

  /* Section */
  .r-section { margin-bottom: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
  .r-section-no-rule { border-top: none; padding-top: 0; }
  .r-section-full { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border); }
  .r-section-title {
    font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--orange); margin-bottom: 14px;
  }

  /* Summary */
  .r-summary { font-family: var(--font-sans); font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.75; }

  /* Experience */
  .r-job { margin-bottom: 24px; }
  .r-job-nested { margin-left: 16px; padding-left: 14px; border-left: 2px solid var(--border); margin-bottom: 16px; margin-top: -10px; }
  .r-job:last-child { margin-bottom: 0; }
  .r-job-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
  .r-job-title { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
  .r-job-dates { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
  .r-job-company { font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: var(--muted); margin-bottom: 8px; }
  .r-job-bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 5px; }
  .r-job-bullets li {
    font-family: var(--font-sans); font-size: 12px; font-weight: 300; color: var(--muted);
    line-height: 1.6; padding-left: 14px; position: relative;
  }
  .r-job-bullets li::before { content: '—'; position: absolute; left: 0; color: var(--border); font-size: 10px; top: 2px; }

  /* Sidebar sections */
  .r-sidebar .r-section-title { }
  .r-skills-list { display: flex; flex-direction: column; gap: 10px; }
  .r-skill-group-label { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); margin-bottom: 4px; }
  .r-skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
  .r-skill-tag {
    font-size: 10px; font-family: var(--font-mono); padding: 3px 7px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 2px; color: var(--muted);
    transition: background 0.3s, border-color 0.3s;
  }
  .r-edu { margin-bottom: 14px; }
  .r-edu:last-child { margin-bottom: 0; }
  .r-edu-degree { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
  .r-edu-school { font-family: var(--font-sans); font-size: 12px; font-weight: 300; color: var(--muted); margin-bottom: 1px; }
  .r-edu-year { font-size: 11px; color: var(--muted); }
  .r-cert { font-family: var(--font-sans); font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
  .r-award { margin-bottom: 14px; }
  .r-award:last-child { margin-bottom: 0; }
  .r-award-name { font-size: 11px; font-weight: 500; color: var(--fg); margin-bottom: 4px; letter-spacing: 0.01em; }
  .r-award-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
  .r-award-list li { font-family: var(--font-sans); font-size: 11px; font-weight: 300; color: var(--muted); line-height: 1.5; padding-left: 10px; position: relative; }
  .r-award-list li::before { content: "—"; position: absolute; left: 0; color: var(--border); font-size: 9px; top: 2px; }
  .r-ats-note { font-size: 10px; color: var(--border); margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); font-family: var(--font-sans); }

  /* ── PRINT STYLES ── */
  @media print {
    .nav, .resume-toolbar, .r-ats-note { display: none !important; }
    .site-root, body, html { background: #fff !important; color: #000 !important; }
    .resume-main { padding-top: 0 !important; }
    .resume-doc {
      background: #fff !important; border: none !important;
      padding: 0 !important; box-shadow: none !important;
    }
    .r-header { border-bottom-color: #000 !important; }
    .r-section-title { color: #000 !important; border-bottom-color: #ccc !important; }
    .r-name, .r-job-title, .r-edu-degree, .r-skill-group-label { color: #000 !important; }
    .r-title, .r-contact, .r-summary, .r-job-company, .r-job-bullets li,
    .r-edu-school, .r-edu-year, .r-cert { color: #444 !important; }
    .r-contact a { color: #444 !important; }
    .r-skill-tag { background: #f5f5f5 !important; border-color: #ddd !important; color: #555 !important; }
    .r-job-bullets li::before { color: #aaa !important; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  }
  /* ── Password Gate ─────────────────────────────────────────── */
  .gate-wrap {
    min-height: calc(100vh - var(--nav-h) - 80px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px var(--px);
  }
  .section-gate-wrap {
    display: flex; align-items: center; justify-content: center;
    padding: 60px 0 40px;
  }
  .gate-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 44px 40px 40px;
    width: 100%; max-width: 380px; display: flex; flex-direction: column;
    align-items: center; text-align: center;
  }
  @keyframes gate-shake {
    0%,100% { transform: translateX(0); }
    20%     { transform: translateX(-8px); }
    40%     { transform: translateX(8px); }
    60%     { transform: translateX(-6px); }
    80%     { transform: translateX(6px); }
  }
  .gate-shake { animation: gate-shake 0.45s ease; }
  .gate-lock {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--hover-bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); margin-bottom: 20px;
  }
  .gate-title {
    font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
    margin-bottom: 8px; color: var(--fg);
  }
  .gate-subtitle {
    font-family: var(--font-sans); font-size: 13px; font-weight: 300;
    color: var(--muted); line-height: 1.65; margin-bottom: 28px;
  }
  .gate-field { width: 100%; margin-bottom: 12px; }
  .gate-input {
    width: 100%; font-family: var(--font-mono); font-size: 13px;
    color: var(--fg); background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 10px 14px; outline: none;
    text-align: center; letter-spacing: 0.15em; transition: border-color 0.15s;
  }
  .gate-input:focus { border-color: var(--muted); }
  .gate-input-error { border-color: var(--orange) !important; }
  .gate-error {
    font-family: var(--font-sans); font-size: 11px; color: var(--orange);
    margin-top: 7px; letter-spacing: 0.02em;
  }
  .gate-btn {
    width: 100%; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
    background: var(--orange); border: none; border-radius: var(--radius);
    padding: 11px 0; cursor: pointer; transition: background 0.2s; margin-top: 4px;
  }
  .gate-btn:hover { background: var(--orange); }