:root {
    --bg-elevated: rgba(255, 251, 245, 0.78);
    --surface: #fffaf3;
    --surface-strong: #fffdf8;
    --border: rgba(44, 37, 28, 0.12);
    --border-strong: rgba(44, 37, 28, 0.22);
    --text: #1c1814;
    --text-soft: #5c5144;
    --text-faint: #786b5c;
    --accent: #b4532a;
    --accent-strong: #8b3d1d;
    --accent-soft: rgba(180, 83, 42, 0.12);
    --shadow-md: 0 18px 40px rgba(46, 31, 16, 0.1);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --font-body: "Instrument Sans", system-ui, sans-serif;
    --font-display: "Sora", system-ui, sans-serif;
    --nav-height: 88px;
    --shell: min(1180px, calc(100vw - 40px));
    --edge-offset: max(20px, calc((100vw - var(--shell)) / 2));
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}
body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(212, 122, 54, 0.18), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(31, 97, 80, 0.08), transparent 25%),
        linear-gradient(180deg, #f7f0e4 0%, #f4ecdf 42%, #efe6d8 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(28, 24, 20, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 24, 20, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: -2;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.03));
    pointer-events: none;
    z-index: -1;
}
body.dark-mode {
    --bg-elevated: rgba(20, 24, 29, 0.8);
    --surface: #1b2027;
    --surface-strong: #222a34;
    --border: rgba(234, 228, 217, 0.1);
    --border-strong: rgba(234, 228, 217, 0.18);
    --text: #f4efe7;
    --text-soft: #cec5b8;
    --text-faint: #a6a098;
    --accent: #f08e54;
    --accent-strong: #ffc399;
    --accent-soft: rgba(240, 142, 84, 0.12);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.24);
    background:
        radial-gradient(circle at top left, rgba(240, 142, 84, 0.11), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(68, 132, 121, 0.12), transparent 24%),
        linear-gradient(180deg, #12151a 0%, #151a20 50%, #101419 100%);
}
body.dark-mode::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea {
    font: inherit;
}
button {
    border: 0;
    background: none;
}
ul {
    list-style: none;
}
.shell {
    width: var(--shell);
    margin-inline: auto;
}
.skip-link {
    position: absolute;
    left: 16px;
    top: -64px;
    background: var(--text);
    color: var(--surface-strong);
    padding: 12px 16px;
    border-radius: 12px;
    z-index: 1000;
}
.skip-link:focus {
    top: 16px;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 16px;
}
.site-nav {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px 18px 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 14px 36px rgba(35, 25, 16, 0.08);
    backdrop-filter: blur(14px);
    transition: box-shadow 220ms ease, backdrop-filter 220ms ease;
}
.site-nav.is-scrolled {
    background: var(--bg-elevated);
    border-color: var(--border);
    box-shadow: 0 14px 36px rgba(35, 25, 16, 0.08);
    backdrop-filter: blur(14px);
}
.brand {
    font-family: var(--font-body);
    font-size: 1.24rem;
    font-weight: 800;
    letter-spacing: 0.095em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}
.nav-panel {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.07);
    border-radius: 999px;
    --nav-indicator-x: 0px;
    --nav-indicator-y: 0px;
    --nav-indicator-width: 0px;
    --nav-indicator-height: 0px;
}
.nav-links a {
    position: relative;
    color: var(--text-soft);
    font-size: 0.97rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    transition: color 280ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}
.nav-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--nav-indicator-width);
    height: var(--nav-indicator-height);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1px 4px rgba(35, 25, 16, 0.13), 0 0 0 1px rgba(35, 25, 16, 0.04);
    opacity: 0;
    z-index: 0;
    transform: translate3d(var(--nav-indicator-x), var(--nav-indicator-y), 0);
    will-change: transform, width, height;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), width 260ms cubic-bezier(0.22, 1, 0.36, 1), height 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}
.nav-links a::after {
    display: none;
}
.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent);
}
.nav-links a.nav-active {
    color: var(--text);
}
.nav-links a.nav-active:hover,
.nav-links a.nav-active:focus-visible {
    color: var(--accent);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}
.nav-links a.nav-active:hover::after,
.nav-links a.nav-active:focus-visible::after {
    transform: scaleX(0);
}
.nav-links.has-active-indicator .nav-indicator {
    opacity: 1;
}
body.dark-mode .nav-links {
    background: rgba(0, 0, 0, 0.28);
}
body.dark-mode .nav-indicator {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-actions .theme-toggle {
    width: 48px;
    height: 48px;
}
.nav-actions .button {
    min-height: 48px;
    padding: 0 20px;
}
.nav-mobile-controls {
    display: none;
    align-items: center;
    gap: 10px;
}
.nav-toggle {
    display: none;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.16);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--accent);
    background: var(--surface);
}
.nav-toggle:hover span,
.nav-toggle:focus-visible span {
    background: var(--accent-strong);
}
.nav-toggle span {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transform: translateX(-50%);
    transform-origin: center;
    transition: top 220ms ease, transform 220ms ease, opacity 160ms ease;
}
.nav-toggle span:first-child {
    top: calc(50% - 6px);
}
.nav-toggle span:nth-child(2) {
    top: 50%;
}
.nav-toggle span:last-child {
    top: calc(50% + 6px);
}
.nav-toggle[aria-expanded="true"] span:first-child {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:last-child {
    top: 50%;
    transform: translateX(-50%) rotate(-45deg);
}
.theme-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.16);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent);
    color: var(--accent-strong);
    background: var(--surface);
}
.theme-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transform: translateY(0.25px);
}
.theme-icon svg {
    display: block;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.97rem;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}
.button-solid {
    background: var(--text);
    color: var(--surface-strong);
    box-shadow: var(--shadow-md);
}
.button-solid:hover,
.button-solid:focus-visible {
    background: var(--accent-strong);
}
.button-outline {
    border: 1px solid var(--border-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.16);
}
.button-outline:hover,
.button-outline:focus-visible {
    border-color: var(--accent);
    color: var(--accent-strong);
    background: var(--surface);
}
main {
    padding-bottom: 170px;
}
main section[id] {
    scroll-margin-top: calc(var(--nav-height) + 20px);
}
.hero,
.section {
    padding-top: 56px;
}
.section {
    display: grid;
    gap: 26px;
}
.hero {
    min-height: calc(100vh - var(--nav-height) - 16px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 34px;
    align-items: start;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
}
.hero h1,
.section-heading h2,
.contact-copy h2,
.profile-card-copy h2 {
    font-family: var(--font-display);
    line-height: 1.06;
    letter-spacing: -0.04em;
}
.hero h1 {
    font-size: clamp(2.9rem, 5.3vw, 5.1rem);
    max-width: 11ch;
}
.hero-lede,
.section-heading p,
.timeline-summary,
.project-summary,
.education-summary,
.contact-copy p,
.profile-card-copy p,
.info-card p {
    color: var(--text-soft);
    font-size: 1.04rem;
}
.hero-lede {
    max-width: 62ch;
    margin-top: 20px;
}
.hero-role-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.hero-role-strip span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(180, 83, 42, 0.16);
    color: var(--accent-strong);
    font-size: 0.88rem;
    font-weight: 700;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.hero-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.28);
    color: var(--text);
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.social-pill:hover,
.social-pill:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent-strong);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.social-pill-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
}
.hero-signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}
.hero-signals li,
.info-card,
.timeline-card,
.project-card,
.education-card,
.skill-panel,
.profile-card,
.contact-panel {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(255, 251, 245, 0.94));
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}
body.dark-mode .hero-signals li,
body.dark-mode .info-card,
body.dark-mode .timeline-card,
body.dark-mode .project-card,
body.dark-mode .education-card,
body.dark-mode .skill-panel,
body.dark-mode .profile-card,
body.dark-mode .contact-panel {
    background: linear-gradient(180deg, rgba(28, 34, 42, 0.82), rgba(24, 29, 36, 0.96));
}
.hero-signals li {
    padding: 18px;
    border-radius: var(--radius-md);
}
.hero-signals strong,
.focus-label,
.project-kicker,
.timeline-type,
.education-date,
.profile-label,
.skill-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 8px;
}
.hero-signals span,
.signal-grid dd,
.timeline-company,
.education-school {
    color: var(--text-soft);
}
.hero-copy {
    align-self: start;
    margin-top: -8px;
}
.hero-aside {
    align-self: stretch;
    display: grid;
    gap: 16px;
}
.profile-card {
    border-radius: var(--radius-xl);
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.profile-mobile-actions {
    display: none;
}
.profile-portrait-wrap {
    width: min(280px, 100%);
    margin-inline: auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(180, 83, 42, 0.18), rgba(25, 90, 77, 0.14));
    padding: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.profile-portrait {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.profile-card-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 10px;
}
.signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.signal-grid div {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid var(--border);
}
body.dark-mode .signal-grid div {
    background: rgba(255, 255, 255, 0.03);
}
.signal-grid dt {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}
.signal-grid dt.signal-accent {
    color: var(--accent-strong);
}
.signal-grid dd {
    font-size: 0.95rem;
    font-weight: 600;
}
.profile-focus-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
}
.hero-full-width-card {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}
.profile-focus-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
    box-shadow: none;
    backdrop-filter: none;
    min-width: 0;
}
body.dark-mode .profile-focus-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}
.profile-focus-primary {
    min-height: 100%;
}
.profile-focus-primary .profile-support-list {
    grid-template-columns: 1fr;
    row-gap: 10px;
    max-width: 58ch;
}
.profile-focus-meta-card {
    min-height: 100%;
}
.profile-focus-card p {
    color: var(--text-soft);
}
.profile-focus-card .profile-summary-accent {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 6px;
}
.profile-focus-card .profile-summary-text {
    color: var(--text-soft);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
}
.profile-support-list {
    display: grid;
    gap: 10px;
}
.profile-support-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-soft);
}
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.section-heading {
    max-width: 760px;
}
.section-heading h2,
.contact-copy h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 14px;
}
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.info-card,
.education-card {
    border-radius: var(--radius-lg);
    padding: 24px;
}
.info-card h3,
.timeline-body h3,
.project-card h3,
.education-card h3 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1.12;
}
.info-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.focus-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.focus-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
    border: 1px solid var(--border);
}
body.dark-mode .focus-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}
.focus-list {
    display: grid;
    gap: 10px;
}
.focus-list li,
.skill-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-soft);
}
.focus-list li::before,
.skill-list li::before,
.evidence-list li::before,
.profile-support-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(0.8em - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.timeline {
    display: grid;
    gap: 18px;
}
.timeline-card {
    border-radius: var(--radius-xl);
    padding: 24px;
    display: grid;
    gap: 18px;
}
.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.timeline-meta .timeline-type {
    order: -1;
    margin-bottom: 0;
}
.timeline-date {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 0;
}
.timeline-body h3,
.project-card h3,
.education-card h3 {
    font-size: 1.65rem;
}
.timeline-company,
.education-school {
    font-weight: 700;
    margin-top: 4px;
}
.timeline-summary,
.project-summary,
.education-summary {
    margin-top: 12px;
}
.education-coursework {
    margin-top: 18px;
}
.education-coursework-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 10px;
}
.education-course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}
.education-course-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-soft);
}
.education-course-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(0.8em - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.evidence-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.evidence-list.compact {
    gap: 10px;
}
.evidence-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-soft);
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.project-card {
    border-radius: var(--radius-xl);
    padding: 24px;
}
.project-card.featured {
    grid-column: 1 / -1;
}
.project-grid > .project-card:last-child:nth-child(even):not(.featured) {
    grid-column: 1 / -1;
}
.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.project-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.16);
    color: var(--text);
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.project-action:hover,
.project-action:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent-strong);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.project-action-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
}
.project-video-wrap {
    margin-top: 22px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    background: #000;
}
.project-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}
.project-visual {
    margin-top: 22px;
    border-radius: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.education-stack {
    display: grid;
    gap: 18px;
}
.education-logo-frame {
    flex-shrink: 0;
    width: 138px;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid var(--border);
}
.education-logo-frame-light {
    background: #ffffff;
}
body.dark-mode .education-logo-frame-light {
    background: #050608;
}
body.dark-mode .education-logo-empire {
    filter: brightness(0) invert(1);
}
.education-logo-frame-dark {
    background: rgba(255, 255, 255, 0.18);
}
body.dark-mode .education-logo-frame-dark {
    background: #101318;
}
.education-logo {
    object-fit: contain;
    width: 100%;
    height: auto;
}
.education-logo-empire {
    max-width: 118px;
}
.education-logo-paltz {
    max-width: 130px;
}
body.dark-mode .education-logo-paltz {
    filter: brightness(0) invert(1);
}
.education-brand-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}
.education-card .tag-row {
    margin-top: 18px;
    margin-bottom: 18px;
}
.skill-panel {
    border-radius: var(--radius-xl);
    padding: 24px;
    display: grid;
    gap: 20px;
    align-content: start;
    align-self: stretch;
    height: 100%;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.skill-block {
    display: grid;
    gap: 12px;
}
.skill-summary {
    color: var(--text-soft);
    font-size: 0.98rem;
}
.skill-list {
    display: grid;
    gap: 10px;
}
.contact-panel {
    border-radius: 36px;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 24px;
    align-items: start;
}
.contact-copy {
    display: grid;
    gap: 18px;
    align-content: start;
}
.contact-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.contact-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 62px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.16);
    color: var(--text);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.contact-link-card:hover,
.contact-link-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent-strong);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.contact-link-card:hover .contact-link-label,
.contact-link-card:focus-visible .contact-link-label {
    color: var(--accent-strong);
}
.contact-link-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.contact-link-label {
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}
.contact-form-wrap {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--border);
    align-self: start;
}
body.dark-mode .contact-form-wrap {
    background: rgba(255, 255, 255, 0.03);
}
.contact-form {
    display: grid;
    gap: 16px;
}
.form-row {
    display: grid;
    gap: 8px;
}
.form-row label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-soft);
}
.form-row input,
.form-row textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.56);
    color: var(--text);
    padding: 14px 16px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.form-row textarea {
    resize: none;
}
body.dark-mode .form-row input,
body.dark-mode .form-row textarea {
    background: rgba(255, 255, 255, 0.04);
}
.form-row input:focus,
.form-row textarea:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(180, 83, 42, 0.12);
}
.submit-button {
    width: 100%;
}
.honeypot {
    display: none;
}
.form-feedback {
    font-weight: 700;
    color: var(--text-soft);
}
.form-feedback:empty {
    display: none;
}
.form-feedback:not(:empty) {
    margin-bottom: 10px;
}
.form-feedback.success {
    color: #1b7a59;
}
.form-feedback.error {
    color: #ba3f2c;
}
.resume-page {
    display: grid;
    gap: 28px;
    padding-top: 56px;
    padding-bottom: 72px;
}
.resume-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
    align-items: start;
}
.resume-hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.45rem, 4.6vw, 4.15rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    max-width: 16ch;
}
.resume-meta-card,
.resume-viewer-section {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(255, 251, 245, 0.94));
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
}
body.dark-mode .resume-meta-card,
body.dark-mode .resume-viewer-section {
    background: linear-gradient(180deg, rgba(28, 34, 42, 0.82), rgba(24, 29, 36, 0.96));
}
.resume-meta-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    width: min(100%, 336px);
    justify-self: end;
}
.resume-viewer-section {
    padding: 24px;
    border-radius: var(--radius-xl);
}
.resume-viewer-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}
.resume-viewer-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.resume-document-frame {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.45);
    max-width: 960px;
    margin-inline: auto;
    aspect-ratio: 8.5 / 11;
    min-height: 920px;
}
body.dark-mode .resume-document-frame {
    background: rgba(255, 255, 255, 0.03);
}
.resume-document {
    width: 100%;
    height: 100%;
    min-height: 920px;
    display: block;
    border: 0;
}
.site-footer {
    padding: 0 0 72px;
}
.back-to-top {
    position: fixed;
    right: var(--edge-offset);
    bottom: 20px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    font-size: 0.88rem;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, border-color 180ms ease, color 180ms ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid currentColor;
    transform: translateY(-1px);
}
.back-to-top:hover,
.back-to-top:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent-strong);
}
@media screen and (min-width: 861px) {
    .back-to-top {
        right: 20px;
    }
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 12px 20px;
    padding-top: 20px;
    color: var(--text-faint);
}
.reveal-up {
    opacity: 1;
    transform: none;
}
body.motion-ready .reveal-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 600ms ease, transform 600ms ease;
}
body.motion-ready .reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    body.motion-ready .reveal-up {
        opacity: 1;
        transform: none;
    }
}
