/*
   Premium editorial portfolio layer
   Keeps the existing resume/export content while presenting the website with
   a calmer, more credible visual system.
*/

:root {
    --bg-primary: #f4f1ea;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: #ffffff;
    --text-primary: #162a2d;
    --text-secondary: #596767;
    --text-muted: #7b8785;
    --accent: #176d68;
    --accent-dark: #0e514e;
    --accent-light: #2e827c;
    --accent-pale: #dcebe7;
    --navy: #142d30;
    --cream: #f4f1ea;
    --line: #dcded8;
    --line-dark: #c8ccc5;
    --shadow-sm: 0 8px 26px rgba(27, 46, 47, 0.06);
    --shadow-md: 0 20px 55px rgba(27, 46, 47, 0.09);
    --shadow-lg: 0 30px 80px rgba(27, 46, 47, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-code: 'DM Sans', 'Segoe UI', sans-serif;
    --nav-height: 76px;
    --section-padding: 112px 0;
    --container-max: 1160px;
    --transition: 300ms cubic-bezier(.22, 1, .36, 1);
}

html {
    scroll-padding-top: var(--nav-height);
}

body {
    background: var(--cream);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    cursor: auto;
    letter-spacing: -0.006em;
}

a,
button,
input,
textarea {
    cursor: pointer;
}

input,
textarea {
    cursor: text;
}

::selection {
    background: var(--accent-pale);
    color: var(--navy);
}

.container,
.nav-container {
    max-width: var(--container-max);
    padding-inline: 32px;
}

/* Deliberately remove the effects that made the site feel template-driven. */
.cursor-dot,
.cursor-ring,
.bg-orb,
.hero-grid-bg,
.hero-particles,
.photo-ring,
.floating-badge,
.typing-cursor,
.scroll-indicator,
.footer-wave {
    display: none !important;
}

.preloader {
    display: none !important;
}

/* Navigation */
.navbar {
    height: var(--nav-height);
    background: rgba(244, 241, 234, 0.88);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
}

.navbar.scrolled {
    background: rgba(250, 248, 243, 0.94);
    border-bottom-color: rgba(20, 45, 48, 0.1);
    box-shadow: 0 10px 30px rgba(20, 45, 48, 0.045);
}

.logo-text {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.logo-dot {
    color: var(--accent);
}

.nav-logo {
    align-items: center;
    display: inline-flex;
    gap: 11px;
}

.logo-avatar {
    background: #e2e7e4;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(20, 45, 48, .18);
    display: inline-flex;
    flex: 0 0 auto;
    height: 40px;
    overflow: hidden;
    width: 40px;
}

.logo-avatar img {
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
    transform: scale(1.35);
    transform-origin: center 24%;
    width: 100%;
}

.brand-name {
    color: var(--navy);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .015em;
}

.nav-links {
    gap: 2px;
}

.nav-link {
    border-radius: 0;
    color: #52605f;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 10px 12px;
    text-transform: uppercase;
}

.nav-link::after {
    background: var(--accent);
    bottom: 3px;
    height: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

.btn-nav {
    background: var(--navy) !important;
    border: 1px solid var(--navy) !important;
    border-radius: 4px !important;
    color: #fff !important;
    margin-left: 8px;
    padding: 9px 17px !important;
}

.btn-nav:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: none;
    transform: translateY(-1px);
}

/* Hero */
.hero {
    align-items: stretch;
    background:
        radial-gradient(circle at 84% 22%, rgba(23, 109, 104, .11), transparent 23rem),
        linear-gradient(115deg, #f8f6f1 0%, #f4f1ea 62%, #e8eee9 100%);
    justify-content: center;
    min-height: 820px;
    overflow: hidden;
    padding: calc(var(--nav-height) + 70px) 32px 56px;
}

.hero::before {
    border: 1px solid rgba(20, 45, 48, 0.09);
    border-radius: 50%;
    content: '';
    height: 520px;
    pointer-events: none;
    position: absolute;
    right: -210px;
    top: 80px;
    width: 520px;
}

.hero::after {
    background: rgba(20, 45, 48, 0.1);
    content: '';
    height: 1px;
    left: 0;
    position: absolute;
    right: 0;
    top: var(--nav-height);
}

.hero-content {
    align-items: center;
    display: grid;
    gap: clamp(54px, 8vw, 110px);
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
    margin: auto;
    max-width: var(--container-max);
}

.hero-left {
    max-width: 680px;
}

.hero-greeting {
    align-items: center;
    color: var(--accent-dark);
    display: flex;
    font-size: .76rem;
    font-weight: 700;
    gap: 14px;
    letter-spacing: .14em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-greeting::before {
    background: var(--accent);
    content: '';
    height: 1px;
    width: 38px;
}

.hero-greeting span {
    border-left: 1px solid var(--line-dark);
    color: var(--text-muted);
    margin-left: 2px;
    padding-left: 14px;
}

.hero-name {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: clamp(4.5rem, 8vw, 7.15rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: .82;
    margin: 0 0 32px;
}

.name-line.accent {
    background: none;
    color: var(--accent);
    -webkit-text-fill-color: currentColor;
}

.hero-title-wrapper {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 600;
    gap: 5px;
    letter-spacing: .005em;
    margin-bottom: 18px;
    min-height: 30px;
}

.hero-title-static,
.hero-title-dynamic {
    color: inherit;
    font-family: var(--font-body);
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.78;
    margin-bottom: 34px;
    max-width: 590px;
}

.hero-description strong {
    color: var(--navy);
    font-weight: 600;
}

.hero-cta {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.btn,
.hero-cta .btn {
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 700;
    gap: 10px;
    letter-spacing: .035em;
    padding: 13px 19px;
    text-transform: uppercase;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn::before {
    display: none;
}

.btn-primary {
    background: var(--navy);
    box-shadow: none;
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(23, 109, 104, 0.18);
    transform: translateY(-2px);
}

.btn-outline,
.btn-ghost {
    background: rgba(255, 255, 255, .48);
    border: 1px solid #bdc5bf;
    color: var(--navy);
}

.btn-outline:hover,
.btn-ghost:hover {
    background: #fff;
    border-color: var(--navy);
    color: var(--navy);
    transform: translateY(-2px);
}

.hero-social {
    gap: 9px;
}

.hero-social-link {
    background: transparent;
    border: 1px solid #c5cbc5;
    border-radius: 4px;
    color: var(--navy);
    height: 38px;
    width: 38px;
}

.hero-social-link:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}

.hero-right {
    align-self: center;
    justify-self: center;
    padding-top: 36px;
    position: relative;
}

.hero-photo-wrapper {
    height: auto;
    isolation: isolate;
    margin-top: 18px;
    width: min(360px, 29vw);
}

.hero-photo-wrapper::before {
    background: transparent;
    border: 1px solid rgba(23, 109, 104, .24);
    border-radius: 50%;
    content: '';
    height: calc(100% + 36px);
    left: -18px;
    position: absolute;
    top: -18px;
    width: calc(100% + 36px);
    z-index: -1;
}

.hero-photo-wrapper::after {
    background: #fff;
    bottom: -58px;
    box-shadow: var(--shadow-md);
    color: var(--navy);
    content: 'FIS GLOBAL  ·  FULL-STACK ENGINEERING';
    font-size: .68rem;
    font-weight: 700;
    left: 50%;
    letter-spacing: .11em;
    padding: 15px 18px;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.hero-photo {
    aspect-ratio: 1;
    background: #dbe2de;
    border: 9px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    height: auto;
    left: auto;
    overflow: hidden;
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
}

.hero-photo img {
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
    transform: scale(1.01);
    width: 100%;
}

.hero-stats-bar {
    align-items: stretch;
    background: rgba(255, 255, 255, .66);
    border: 1px solid rgba(20, 45, 48, .12);
    border-radius: 0;
    bottom: auto;
    box-shadow: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 68px auto 0;
    max-width: var(--container-max);
    padding: 0;
    position: relative;
    transform: none;
    width: 100%;
    z-index: 2;
}

.stat-item {
    align-items: baseline;
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 18px 24px;
    text-align: left;
}

.stat-number,
.stat-suffix {
    background: none;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    -webkit-text-fill-color: currentColor;
}

.stat-label {
    color: var(--text-secondary);
    font-size: .72rem;
    font-weight: 700;
    grid-column: 1 / -1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stat-divider {
    background: var(--line);
    height: 100%;
    position: absolute;
    width: 1px;
}

.stat-divider:nth-of-type(2) { left: 25%; }
.stat-divider:nth-of-type(4) { left: 50%; }
.stat-divider:nth-of-type(6) { left: 75%; }

/* Shared section language */
.section {
    background: #fff;
    padding: var(--section-padding);
}

.section:nth-of-type(even) {
    background: var(--cream);
}

.section-header {
    margin-bottom: 52px;
    max-width: 720px;
    text-align: left;
}

.section-tag {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    gap: 9px;
    letter-spacing: .15em;
    margin-bottom: 12px;
    padding: 0;
}

.section-tag::before {
    background: var(--accent);
    content: '';
    height: 1px;
    width: 26px;
}

.section-tag i {
    display: none;
}

.section-title {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5vw, 4.25rem);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.title-underline {
    display: none;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: .95rem;
    margin-top: 15px;
}

.glass-card {
    background: #fff;
    backdrop-filter: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.glass-card:hover {
    border-color: var(--line-dark);
    box-shadow: var(--shadow-sm);
}

/* About */
.about-content {
    align-items: start;
    gap: clamp(48px, 7vw, 88px);
    grid-template-columns: 1.08fr .92fr;
}

.about-lead {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1.45;
    margin-bottom: 24px;
}

.about-text p:not(.about-lead) {
    color: var(--text-secondary);
    font-size: .98rem;
    line-height: 1.82;
    margin-bottom: 18px;
}

.about-text strong {
    color: var(--navy);
}

.about-highlights {
    border-top: 1px solid var(--line);
    gap: 0;
    grid-template-columns: 1fr;
    margin-top: 30px;
    padding-top: 12px;
}

.highlight-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--navy);
    font-size: .88rem;
    padding: 11px 0;
}

.highlight-item i {
    color: var(--accent);
}

.info-card {
    background: var(--navy);
    border: 0;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 30px;
    position: relative;
}

.info-card::after {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    content: '';
    height: 240px;
    position: absolute;
    right: -145px;
    top: -105px;
    width: 240px;
}

.info-card-title {
    border-bottom: 1px solid rgba(255,255,255,.13);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 400;
    margin-bottom: 12px;
    padding-bottom: 18px;
}

.info-card-title i {
    color: #8ec1b9;
    margin-right: 8px;
}

.info-grid {
    gap: 0;
}

.info-item {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.09);
    gap: 13px;
    min-width: 0;
    padding: 12px 0;
}

.info-item:last-child {
    border-bottom: 0;
}

.info-icon {
    background: rgba(255,255,255,.08);
    border: 0;
    border-radius: 3px;
    color: #9bc7c0;
    flex: 0 0 auto;
    height: 34px;
    width: 34px;
}

.info-icon i {
    color: inherit !important;
}

#about .info-icon {
    background: rgba(255,255,255,.08) !important;
    color: #9bc7c0 !important;
}

.info-label {
    color: #91a3a2;
    font-size: .65rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.info-value,
.info-value a {
    color: #f6f8f7;
    font-size: .83rem;
    overflow-wrap: anywhere;
}

/* Experience */
.experience {
    background: var(--cream);
}

.timeline {
    padding-left: 56px;
}

.timeline::before {
    background: var(--line-dark);
    left: 8px;
    width: 1px;
}

.timeline-item {
    margin-bottom: 28px;
}

.timeline-marker {
    height: 18px;
    left: -56px;
    top: 29px;
    width: 18px;
}

.marker-dot {
    background: var(--cream);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 6px var(--cream);
    height: 10px;
    width: 10px;
}

.marker-dot.pulse::after {
    display: none;
}

.timeline-content {
    border-radius: 4px;
    padding: 32px 34px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.timeline-badge {
    border-radius: 2px;
    font-size: .64rem;
    letter-spacing: .1em;
    padding: 5px 9px;
    text-transform: uppercase;
}

.timeline-badge.current {
    background: var(--accent-pale);
    color: var(--accent-dark);
}

.timeline-title {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: -.02em;
    margin: 10px 0 8px;
}

.timeline-company {
    color: var(--text-secondary);
    font-size: .84rem;
    gap: 10px;
}

.company-badge {
    background: var(--navy);
    border-radius: 2px;
    color: #fff;
    font-size: .7rem;
    letter-spacing: .045em;
    padding: 4px 9px;
}

.timeline-date {
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
    font-size: .76rem;
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.timeline-date i {
    color: var(--accent);
}

.timeline-details {
    margin-bottom: 20px;
    padding-left: 18px;
}

.timeline-details li {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: 7px;
}

.timeline-details li::before {
    background: var(--accent);
    border-radius: 0;
    height: 1px;
    left: -17px;
    top: .78em;
    width: 7px;
}

.timeline-skills,
.project-tech {
    gap: 6px;
}

.skill-chip,
.project-tech span {
    background: #f3f5f2;
    border: 1px solid #e0e4de;
    border-radius: 3px;
    color: #435352;
    font-size: .69rem;
    padding: 5px 9px;
}

.skill-chip:hover,
.project-tech span:hover {
    background: var(--accent-pale);
    border-color: #b8d3cd;
    color: var(--accent-dark);
    transform: none;
}

/* Skills */
.skills-filter {
    justify-content: flex-start;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: 3px;
    color: var(--text-secondary);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .075em;
    padding: 8px 13px;
    text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    box-shadow: none;
}

.skills-grid {
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    display: grid;
    gap: 3px 13px;
    grid-template-columns: 42px 1fr;
    min-height: 78px;
    padding: 13px 15px;
    text-align: left;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
    border-color: #aebbb6;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.skill-icon {
    align-items: center;
    background: #f3f5f2;
    border-radius: 3px;
    display: flex;
    grid-row: 1 / 3;
    height: 42px;
    justify-content: center;
    margin: 0;
    width: 42px;
}

.skill-icon i {
    font-size: 1.45rem;
}

.skill-card h4 {
    color: var(--navy);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.skill-level {
    color: var(--text-muted);
    font-size: .67rem;
    grid-column: 2;
    letter-spacing: .05em;
    margin: 0;
    text-transform: uppercase;
}

.skill-bar {
    display: none;
}

.skill-card.hidden {
    display: none;
}

/* Education */
.education-grid {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edu-card {
    border-radius: 4px;
    min-height: 290px;
    overflow: hidden;
    padding: 32px;
    text-align: left;
}

.edu-card:nth-child(n+3) {
    display: none;
}

.edu-card::before {
    background: var(--accent);
    height: 3px;
}

.edu-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.edu-year {
    color: var(--accent);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.edu-icon {
    align-items: center;
    background: var(--accent-pale);
    border-radius: 3px;
    color: var(--accent-dark);
    display: flex;
    height: 44px;
    justify-content: center;
    margin: 26px 0 18px;
    width: 44px;
}

.edu-icon i {
    color: inherit;
    font-size: 1.1rem;
}

.edu-institution {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.35;
}

.edu-degree {
    color: var(--text-secondary);
    font-size: .88rem;
}

.edu-score {
    border-top: 1px solid var(--line);
    justify-content: flex-start;
    margin-top: 22px;
    padding-top: 18px;
}

.score-circle {
    height: 52px;
    width: 52px;
}

.score-fill {
    stroke: var(--accent);
}

.score-text {
    color: var(--navy);
    font-size: .65rem;
}

.score-label {
    color: var(--text-muted);
    font-size: .7rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* Publication */
.publication-card {
    align-items: stretch;
    border-radius: 4px;
    display: grid;
    gap: 0;
    grid-template-columns: 230px 1fr;
    overflow: hidden;
    padding: 0;
}

.pub-icon-wrapper {
    align-items: center;
    background: var(--navy);
    border-radius: 0;
    color: #90c6be;
    display: flex;
    height: auto;
    justify-content: center;
    min-height: 340px;
    width: auto;
}

.pub-icon-wrapper::before {
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    content: '';
    height: 120px;
    position: absolute;
    width: 120px;
}

.pub-icon-wrapper i {
    font-size: 2rem;
    position: relative;
}

.pub-content {
    padding: 38px 42px;
}

.pub-badge {
    background: transparent;
    border: 0;
    color: var(--accent);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 0;
    text-transform: uppercase;
}

.pub-title {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 13px 0;
}

.pub-details {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.75;
}

.pub-details strong {
    color: var(--navy);
}

.pub-meta {
    border-top: 1px solid var(--line);
    gap: 8px 18px;
    margin: 20px 0 22px;
    padding-top: 18px;
}

.pub-meta span {
    color: var(--text-muted);
    font-size: .72rem;
}

/* Projects */
.projects {
    background: var(--cream);
}

.projects-grid {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
    border-radius: 4px;
    padding: 30px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:first-child {
    grid-column: 1 / -1;
}

.project-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px) !important;
}

.project-icon {
    background: var(--accent-pale);
    border-radius: 3px;
    color: var(--accent-dark);
    height: 44px;
    width: 44px;
}

.project-icon i {
    color: inherit;
}

.project-tag {
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: 2px;
    color: var(--text-muted);
    font-size: .63rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.project-tag.live {
    background: var(--accent-pale);
    color: var(--accent-dark);
}

.project-link-icon {
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: 3px;
    color: var(--navy);
}

.project-link-icon:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.project-title {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 20px 0 8px;
}

.project-meta,
.project-mentor {
    color: var(--text-muted);
    font-size: .72rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.72;
}

.project-description strong {
    color: var(--navy);
}

/* Contact */
.contact {
    background: #fff;
}

.contact-content {
    display: block;
}

.contact-info {
    width: 100%;
}

.contact-lead {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.5;
    max-width: 720px;
}

.contact-items {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
}

.contact-card {
    border-radius: 4px;
    gap: 15px;
    padding: 17px 18px;
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: none;
    transform: translateY(-2px);
}

.contact-card-icon {
    background: var(--accent-pale);
    border-radius: 3px;
    color: var(--accent-dark);
    height: 40px;
    width: 40px;
}

.contact-card-icon i {
    color: inherit;
}

.contact-card h4 {
    color: var(--navy);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: .82rem;
}

.contact-form {
    display: none;
}

/* Footer */
.footer {
    background: var(--navy);
    border: 0;
    color: #fff;
}

.footer-content {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr auto;
    padding: 48px 0;
    text-align: left;
}

.footer-logo {
    margin: 0;
}

.footer-brand {
    align-items: center;
    display: inline-flex;
    gap: 13px;
}

.footer-brand .logo-avatar {
    border-color: rgba(255,255,255,.9);
    box-shadow: 0 0 0 1px rgba(255,255,255,.25);
    height: 48px;
    width: 48px;
}

.footer-brand strong,
.footer-brand small {
    display: block;
}

.footer-brand strong {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.2;
}

.footer-brand small {
    color: #a8b7b5;
    font-size: .7rem;
    margin-top: 4px;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-logo p {
    color: #a8b7b5;
}

.footer-social {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
}

.social-link {
    border-color: rgba(255,255,255,.24);
    border-radius: 3px;
    color: #fff;
}

.social-link:hover {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
    transform: translateY(-2px);
}

.footer-copy {
    color: #91a3a1;
    font-size: .76rem;
}

.back-to-top {
    background: var(--navy);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 3px;
    box-shadow: var(--shadow-sm);
    height: 42px;
    width: 42px;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Restrained reveal motion */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .72s cubic-bezier(.22, 1, .36, 1), transform .72s cubic-bezier(.22, 1, .36, 1);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 92px 0;
    }

    .nav-link {
        padding-inline: 8px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        gap: 55px;
        grid-template-columns: 1.2fr .8fr;
    }

    .hero-name {
        font-size: clamp(4rem, 8vw, 5.7rem);
    }

    .hero-photo-wrapper {
        width: min(340px, 29vw);
    }

    .hero-cta .btn {
        padding-inline: 15px;
    }

    .skills-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .container,
    .nav-container {
        padding-inline: 22px;
    }

    .navbar {
        background: rgba(250,248,243,.97);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle span {
        background: var(--navy);
    }

    .nav-links {
        background: #f9f7f2;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 35px rgba(20,45,48,.08);
        gap: 0;
        padding: 16px 22px 22px;
        top: var(--nav-height);
    }

    .nav-link {
        border-bottom: 1px solid var(--line);
        display: block;
        padding: 12px 2px;
        width: 100%;
    }

    .btn-nav {
        margin: 12px 0 0;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 54px) 22px 42px;
    }

    .hero-content {
        gap: 58px;
        grid-template-columns: 1fr;
    }

    .hero-right {
        justify-self: center;
        padding-top: 0;
        width: 100%;
    }

    .hero-photo-wrapper {
        margin: 18px auto 48px;
        width: min(340px, calc(100vw - 92px));
    }

    .hero-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 76px;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(3) {
        border-bottom: 1px solid var(--line);
    }

    .stat-divider {
        display: none;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-info {
        max-width: 620px;
    }

    .publication-card {
        grid-template-columns: 150px 1fr;
    }

    .pub-icon-wrapper {
        min-height: 100%;
    }

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

    .project-card:first-child {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 76px 0;
    }

    .hero-name {
        font-size: clamp(3.7rem, 18vw, 5.1rem);
    }

    .hero-greeting {
        flex-wrap: wrap;
        line-height: 1.5;
    }

    .hero-title-wrapper {
        font-size: 1rem;
    }

    .hero-cta {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-cta .btn {
        justify-content: center;
    }

    .hero-cta .btn:first-child {
        grid-column: 1 / -1;
    }

    .section-header {
        margin-bottom: 38px;
    }

    .about-content {
        gap: 42px;
    }

    .about-lead {
        font-size: 1.3rem;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-marker {
        left: -28px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-content,
    .project-card,
    .edu-card {
        padding: 24px;
    }

    .timeline-company {
        align-items: flex-start;
        flex-direction: column;
    }

    .skills-filter {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-inline: -22px;
        overflow-x: auto;
        padding: 2px 22px 10px;
        scrollbar-width: none;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .skills-grid,
    .education-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skill-card {
        grid-template-columns: 38px 1fr;
        padding: 11px;
    }

    .skill-icon {
        height: 38px;
        width: 38px;
    }

    .skill-card h4 {
        font-size: .78rem;
    }

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

    .pub-icon-wrapper {
        min-height: 120px;
    }

    .pub-content {
        padding: 26px 24px;
    }

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

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

    .footer-social {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 430px) {
    .brand-name {
        display: none;
    }

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

    .hero-cta .btn:first-child {
        grid-column: auto;
    }

    .hero-photo-wrapper::after {
        font-size: .57rem;
        left: 50%;
        padding-inline: 12px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-number,
    .stat-suffix {
        font-size: 1.7rem;
    }

    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

@media print {
    body {
        background: #fff !important;
    }
}
