about-paragraph {
    color: var(--text-dim);
    font-size: 15px;
}
selected-work-card {
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    background: var(--glass);
    border: 1px solid var(--hairline);
    padding: 26px 24px 28px;
    transition: all 0.22s ease;
    position: relative;
}

selected-work-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--hairline-strong);
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    selected-work-card:hover {
        transform: none;
    }
}

.selected-work-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    min-height: 32px;
}

.selected-work-card-num {
    font-size: 13px;
    color: var(--text-faint);
    letter-spacing: 0.1em;
}

.selected-work-card-links {
    display: flex;
    gap: 6px;
}

.selected-work-card-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-faint);
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.selected-work-card-links svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.selected-work-card-links a:hover,
.selected-work-card-links a:focus-visible {
    color: var(--text);
    background: var(--control-hover-bg);
    border-color: var(--hairline);
    outline: none;
}

selected-work-card h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

selected-work-card p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.selected-work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.selected-work-tag {
    font-size: 12px;
    color: var(--text-dim);
    padding: 4px 10px;
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.02);
}

.selected-work-tag-link {
    text-decoration: none;
    font-size: 12px;
    color: var(--tech-tag);
    padding: 4px 10px;
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.02);
}

.selected-work-tag-link:hover {
    color: var(--tech-tag-hover);
    background: var(--control-hover-bg);
    border: 1px solid var(--hairline-strong);
}

@media (max-width: 480px) {
    selected-work-card {
        padding: 20px 18px 22px;
    }
}
.edu-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--hairline);
}

.edu-item:first-child {
    padding-top: 0;
}

.edu-title {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.edu-sub {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.edu-org {
    font-size: 13px;
    color: var(--text-faint);
    text-decoration: none;
}

.edu-year {
    font-size: 13px;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .edu-item {
        flex-direction: column;
        gap: 6px;
    }

    .edu-year {
        order: -1;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .edu-item {
        gap: 4px;
    }
}
nav-bar {
    display: contents;
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--hairline);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.brand {
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
}

.brand span {
    color: var(--text-faint);
    font-weight: 400;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 14px;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
    background: var(--glass);
    border-color: var(--hairline);
    outline: none;
}

/* ---- divider + theme toggle ---- */
.nav-divider {
    width: 1px;
    height: 18px;
    background: var(--hairline);
    flex-shrink: 0;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    background: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--hairline);
    background: var(--control-hover-bg);
    color: var(--text);
    outline: none;
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(25deg);
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle:hover svg {
        transform: none;
    }
}

/* ---- hamburger ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    z-index: 20;
    transition: border-color 0.18s ease;
    flex-shrink: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--hairline);
    outline: none;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-dim);
    transform-origin: center;
    transition:
        transform 0.22s ease,
        opacity 0.22s ease,
        background-color 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-divider {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-dropdown-bg);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        border-bottom: 1px solid var(--hairline);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.is-open {
        max-height: 300px;
    }

    .nav-links li {
        border-top: 1px solid var(--hairline);
    }

    .nav-links a {
        display: block;
        padding: 16px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 14px 16px;
    }
}
page-header {
    display: contents;
}

/* ---- hero ---- */
header {
    padding: 40px 0 80px;
    text-align: left;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 6px 12px;
    border: 1px solid var(--hairline);
    background: var(--glass);
    margin-bottom: 28px;
}

h1 {
    font-size: clamp(38px, 7vw, 78px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 14ch;
}

.glow {
    color: var(--glow-text);
    text-shadow:
        0 0 24px var(--glow),
        0 0 2px var(--glow-inner);
}

:root[data-theme="light"] .glow {
    color: var(--text);
    font-weight: 800;
    text-shadow: none;
}

.lead {
    font-size: clamp(16px, 2.6vw, 17px);
    color: var(--text-dim);
    max-width: 58ch;
    margin-bottom: 30px;
}

/* ---- cta row ---- */
.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: stretch;
}

.btn {
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 14px 26px;
    border: 1px solid var(--hairline-strong);
    background: var(--glass);
    color: var(--text);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover,
.btn:focus-visible {
    background: var(--control-hover-bg);
    outline: none;
}

.btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.download-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.highlight {
    background: var(--accent-bg);
    color: var(--accent-text);
    border-color: var(--accent-border);
    font-weight: 600;
    box-shadow:
        0 0 0 1px var(--accent-shadow),
        0 0 28px var(--accent-glow);
}

.btn.highlight:hover,
.btn.highlight:focus-visible {
    box-shadow:
        0 0 0 1px var(--accent-shadow-hover),
        0 0 42px var(--accent-glow-hover);
    background: var(--accent-bg-hover);
}

/* ---- social buttons (hero) ---- */
.social-links {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--hairline-strong);
    background: var(--glass);
    color: var(--text-dim);
    transition: all 0.2s ease;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-btn:hover,
.social-btn:focus-visible {
    background: var(--control-hover-bg);
    color: var(--text);
    outline: none;
}

@media (max-width: 768px) {
    header {
        padding: 32px 0 60px;
    }

    .lead br {
        display: none;
    }

    .cta-row {
        flex-wrap: wrap;
        gap: 10px;
        align-items: stretch;
    }

    .btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
        padding: 10px 16px; /* was 14px 26px */
        font-size: 14px;
        white-space: nowrap; /* keep text on one line */
    }

    .social-links {
        margin-left: auto;
        flex-shrink: 0;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    h1 {
        letter-spacing: -0.025em;
    }
}
page-footer {
    display: contents;
}

footer {
    border-top: 1px solid var(--hairline);
    padding: 28px 0;
    color: var(--text-faint);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
}

.footer-text,
.footer-location {
    font-size: 13px;
    color: var(--text-faint);
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.18s ease;
    margin-top: 10px;
}

.footer-email:hover,
.footer-email:focus-visible {
    color: var(--text);
    outline: none;
}

.footer-icons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.footer-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-faint);
    background: none;
    border: none;
    transition: color 0.18s ease;
}

.footer-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-icon-btn:hover,
.footer-icon-btn:focus-visible {
    color: var(--text);
    outline: none;
}

@media (max-width: 768px) {
    .footer-inner {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
    }

    .footer-icons {
        margin-left: auto;
    }
}

:root {
  --bg: #0a0a0a;
  --glass: rgba(255, 255, 255, 0.052);
  --glass-hover: rgba(255, 255, 255, 0.086);
  --hairline: rgba(255, 255, 255, 0.138);
  --hairline-strong: rgba(255, 255, 255, 0.253);
  --text: #ffffff;
  --text-dim: rgba(244, 245, 247, 0.63);
  --text-faint: rgba(244, 245, 247, 0.4);
  --glow: rgba(255, 255, 255, 0.63);
  --glow-text: #ffffff;
  --glow-inner: rgba(255, 255, 255, 0.4);
  --tech-tag: rgba(255, 255, 255, 0.976);
  --tech-tag-hover: rgb(255, 255, 255);
  --accent-bg: rgba(255, 255, 255, 0.85);
  --accent-bg-hover: #ffffff;
  --accent-text: #0a0a0a;
  --accent-border: #ffffff;
  --accent-shadow: rgba(255, 255, 255, 0.4);
  --accent-shadow-hover: rgba(255, 255, 255, 0.6);
  --accent-glow: rgba(255, 255, 255, 0.35);
  --accent-glow-hover: rgba(255, 255, 255, 0.55);
  --nav-dropdown-bg: rgba(10, 10, 10, 0.96);
  --control-hover-bg: rgba(255, 255, 255, 0.086);
  --selection-bg: rgba(255, 255, 255, 0.28);
  --selection-text: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.052);
  --card-hover-bg: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-hover: rgba(255, 255, 255, 0.85);
  --hairline: rgba(18, 16, 32, 0.09);
  --hairline-strong: rgba(18, 16, 32, 0.16);
  --text: #14121e;
  --text-dim: rgba(20, 18, 30, 0.88);
  --text-faint: rgba(20, 18, 30, 0.68);
  --glow: rgba(70, 60, 200, 0.4);
  --glow-text: #362f9e;
  --glow-inner: rgba(70, 60, 200, 0.18);
  --tech-tag: rgba(20, 18, 30, 0.92);
  --tech-tag-hover: #14121e;
  --accent-bg: #3f3f46;
  --accent-bg-hover: #0a0a0a;
  --accent-text: #f7f8ff;
  --accent-border: #3f3f46;
  --accent-shadow: rgba(24, 24, 27, 0.22);
  --accent-shadow-hover: rgba(0, 0, 0, 0.32);
  --accent-glow: rgba(24, 24, 27, 0.16);
  --accent-glow-hover: rgba(0, 0, 0, 0.26);
  --nav-dropdown-bg: rgb(224 224 224 / 0.96);
  --control-hover-bg: rgba(20, 20, 24, 0.08);
  --selection-bg: rgb(56 56 56 / 0.25);
  --selection-text: #14121e;
  --nav-bg: rgba(255, 255, 255, 0.6);
  --card-hover-bg: rgba(20, 20, 24, 0.04);
}

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

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

@font-face {
  font-family: "Inter Tight Metrics";
  src: url("/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  ascent-override: 82%;
  descent-override: 18%;
  line-gap-override: 0%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter Tight Metrics",
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- background glows ---- */
.bg-glows {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  top: var(--top, 50%);
  left: var(--left, 50%);
  width: var(--width, 300px);
  height: var(--height, 300px);
  background: var(--color, rgba(120, 90, 230, 0.22));
  border-radius: var(--radius, 50%);
  filter: blur(var(--blur, 120px));
  opacity: 0;
  will-change: transform, opacity;
  transform: translate(-50%, -50%) rotate(var(--spin, 0deg)) scale(0.4);
  animation: bubble-pulse var(--duration, 20s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes bubble-pulse {
  0%   { opacity: 0;    transform: translate(-50%, -50%) rotate(var(--spin, 0deg)) scale(0.4); }
  10%  { opacity: 0; }                                    /* stay invisible longer at start */
  30%  { opacity: 1; }
  55%  { opacity: 0.85; transform: translate(-50%, -50%) rotate(var(--spin-mid, 0deg)) scale(1.15); }
  85%  { opacity: 0.15; }
  95%  { opacity: 0; }                                    /* fade fully before loop ends */
  100% { opacity: 0;    transform: translate(-50%, -50%) rotate(var(--spin-end, 0deg)) scale(0.4); }
}

/* ---- layout ---- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding-bottom: 50px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  text-shadow:
    0 0 24px var(--glow),
    0 0 2px var(--glow-inner);
}

:root[data-theme="light"] .section-label {
  font-weight: 800;
  text-shadow: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .bg-glow {
    opacity: 0 !important;
  }
}

/* ---- mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}