@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=Montserrat:wght@300;400;500;600&display=swap');

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

:root {
    --gold: #d4af37;
    --ink: #09090b;
    --deco-line: rgba(0,0,0,0.14);
}

body {
    margin: 0;
}

body.nav-open {
    overflow: hidden;
}

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 3s cubic-bezier(0.16, 1, 0.3, 1), visibility 3s cubic-bezier(0.16, 1, 0.3, 1);
}

#page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-skill-orbit {
    width: clamp(18rem, 88vmin, 34rem);
    height: clamp(18rem, 88vmin, 34rem);
    overflow: visible;
    transform: translateZ(0);
    will-change: opacity;
}

.loader-ring-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 600;
    fill: #000;
    letter-spacing: 0.04em;
    text-rendering: geometricPrecision;
}

.loader-ring-text-lg { font-size: clamp(0.8rem, 3.7vmin, 1.35rem); }
.loader-ring-text-md { font-size: clamp(0.7rem, 3.1vmin, 1.15rem); }
.loader-ring-text-sm { font-size: clamp(0.6rem, 2.7vmin, 1rem); }

.desktop-nav {
    display: none !important;
}

.mobile-nav-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: currentColor;
    font-size: 1.8rem;
}

.mobile-nav-menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: grid;
    height: 100svh;
    max-height: 100svh;
    overflow-y: auto;
    place-content: center;
    gap: clamp(0.35rem, 1.2vh, 0.8rem);
    padding: 4.5rem 2rem 1.5rem;
    background: rgba(255,255,255,0.96);
    color: #000;
    font-size: clamp(0.8rem, 3vw, 1.1rem);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(18px);
}

.mobile-nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.mobile-nav-menu a {
    width: min(18rem, 72vw);
    padding: clamp(0.45rem, 1.2vh, 0.75rem) 1rem;
    border-bottom: 1px solid rgba(212,175,55,0.35);
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.35rem, 5.5vw, 2.25rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: none;
}

#site-nav a {
    position: relative;
    padding-bottom: 0.45rem;
}

#site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

#site-nav a:hover::after,
#site-nav a.is-active::after {
    transform: scaleX(1);
}

html, [class*="overflow-y-auto"], [class*="overflow-auto"] {
    scrollbar-width: none;
}
html::-webkit-scrollbar,
[class*="overflow-y-auto"]::-webkit-scrollbar,
[class*="overflow-auto"]::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    body, html {
        overflow: hidden;
        height: 100%;
    }

    .desktop-nav {
        display: flex !important;
        justify-content: flex-end;
    }

    .mobile-nav-toggle,
    .mobile-nav-menu {
        display: none;
    }

    .loader-skill-orbit {
        width: clamp(34rem, 42vmin, 54rem);
        height: clamp(34rem, 42vmin, 54rem);
    }

    .loader-ring-text-lg { font-size: clamp(1.35rem, 1.32vmin, 2rem); }
    .loader-ring-text-md { font-size: clamp(1.15rem, 1.12vmin, 1.7rem); }
    .loader-ring-text-sm { font-size: clamp(1rem, 0.98vmin, 1.5rem); }
}

.hero-text-col {
    padding: 3.5rem 2rem 3.5rem 0.5rem;
}

.hero-frame {
    padding: clamp(1rem, 3.2vmin, 4.5rem);
    padding-top: clamp(3rem, 4.6vmin, 5rem);
}

.hero-title {
    margin-bottom: clamp(1.5rem, 2.4vmin, 3.5rem);
    font-size: clamp(2.25rem, 12vw, 8rem);
}

.hero-rule {
    width: clamp(9rem, 14vw, 22rem);
    margin-bottom: clamp(1.5rem, 2.4vmin, 3.5rem);
}

.hero-kicker {
    font-size: clamp(0.5rem, 1.2vw, 0.95rem);
}

.hero-ornament {
    height: min(65vh, 54vw);
}

.hero-portrait {
    height: 76%;
}

.hero-quote {
    display: none !important;
    left: 0.5rem;
    right: 0.5rem;
    gap: clamp(0.75rem, 1.2vmin, 1.75rem);
}

.hero-quote-text {
    font-size: clamp(1rem, 4vw, 3.25rem);
}

@media (max-width: 1023px), (pointer: coarse) {
    #hero {
        height: 100vh;
    }

    .loader-skill-orbit {
        width: clamp(14rem, 62vmin, 24rem);
        height: clamp(14rem, 62vmin, 24rem);
    }

    .loader-ring-text-lg { font-size: clamp(0.65rem, 2.8vmin, 0.95rem); }
    .loader-ring-text-md { font-size: clamp(0.58rem, 2.4vmin, 0.82rem); }
    .loader-ring-text-sm { font-size: clamp(0.5rem, 2.1vmin, 0.72rem); }

    #hero-inner {
        flex-direction: column;
    }

    #hero-image-col,
    #skill-img-wrap {
        display: none;
    }

    .hero-text-col {
        width: 100%;
        align-items: center;
        text-align: center;
        padding: clamp(2rem, 8vmin, 4rem) clamp(1.25rem, 6vw, 3rem);
    }

    .hero-frame {
        width: min(100%, 34rem);
        margin: 0 auto;
        padding: clamp(1rem, 5vmin, 2rem);
    }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 4.75rem);
        margin-bottom: clamp(1rem, 3vmin, 1.75rem);
    }

    .hero-rule {
        width: clamp(7rem, 24vw, 12rem);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: clamp(1rem, 3vmin, 1.75rem);
    }

    .hero-kicker {
        font-size: clamp(0.38rem, 1.35vw, 0.62rem);
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    .hero-quote {
        display: none;
    }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .hero-quote {
        display: flex !important;
    }

    .hero-text-col {
        padding: 5rem 5rem 5rem 2.5rem;
    }

    .hero-frame {
        padding-top: clamp(1rem, 2vmin, 3rem);
    }

    .hero-title {
        font-size: clamp(3.75rem, 7vw, 11rem);
    }

    .hero-kicker {
        font-size: clamp(0.625rem, 0.8vw, 1.25rem);
    }

    .hero-portrait {
        height: min(82%, 92vmin);
    }

    .hero-quote {
        left: 2.5rem;
        right: 5rem;
    }

    .hero-quote-text {
        font-size: clamp(1.25rem, 2vw, 4rem);
    }
}

.about-content {
    max-width: min(88vw, 86rem);
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.about-heading {
    margin-bottom: clamp(1.5rem, 3vmin, 3rem);
    padding-top: clamp(2.5rem, 5vmin, 5rem);
}

.about-label {
    margin-bottom: clamp(0.9rem, 1.6vmin, 1.5rem);
    font-size: clamp(0.55rem, 0.8vw, 0.85rem);
    letter-spacing: clamp(0.28em, 0.55vw, 0.55em);
}

.about-title {
    font-size: clamp(2.5rem, 5.4vw, 7rem);
}

.about-rule {
    width: clamp(6rem, 8vw, 11rem);
    margin-top: clamp(0.75rem, 1.3vmin, 1.25rem);
}

.about-paragraph {
    max-width: min(80vw, 100rem);
    font-size: clamp(0.82rem, 0.96vw, 1.35rem);
    line-height: clamp(1.9, 2.2vw, 2.45);
    letter-spacing: clamp(0.08em, 0.18vw, 0.18em);
}

.about-signature {
    width: clamp(10rem, 14vw, 18rem);
    margin-top: clamp(1.5rem, 2.4vmin, 3rem);
}

.skill-content {
    max-width: min(88vw, 72rem);
    padding: 0 clamp(1rem, 3vw, 3rem);
}

.skill-header {
    padding-top: clamp(2.5rem, 5vmin, 5rem);
}

.skill-label {
    margin-bottom: clamp(0.75rem, 1.4vmin, 1.25rem);
    font-size: clamp(0.55rem, 0.75vw, 0.8rem);
    letter-spacing: clamp(0.28em, 0.55vw, 0.55em);
}

.skill-title {
    font-size: clamp(2.5rem, 5.4vw, 7rem);
}

.skill-rule {
    width: clamp(6rem, 8vw, 11rem);
    margin-top: clamp(0.75rem, 1.3vmin, 1.25rem);
}

.skill-list {
    gap: clamp(0.75rem, 1.4vmin, 1.25rem);
    padding: clamp(0.5rem, 1.4vmin, 1rem) 0;
}

[data-skill-card] {
    padding: clamp(0.9rem, 1.4vw, 1.5rem);
}

[data-skill-card] h3 {
    margin-bottom: clamp(0.4rem, 0.7vmin, 0.75rem);
    font-size: clamp(1.35rem, 2vw, 2.25rem);
}

[data-skill-card] p {
    font-size: clamp(0.48rem, 0.62vw, 0.7rem);
    line-height: 1.75;
}

.academic-content {
    max-width: min(88vw, 72rem);
    padding: 0 clamp(1rem, 3vw, 3rem);
}

.academic-heading {
    margin-bottom: clamp(1.5rem, 3vmin, 3rem);
    padding-top: clamp(2.5rem, 5vmin, 5rem);
}

.academic-label {
    margin-bottom: clamp(0.9rem, 1.6vmin, 1.5rem);
    font-size: clamp(0.55rem, 0.75vw, 0.8rem);
    letter-spacing: clamp(0.28em, 0.55vw, 0.55em);
}

.academic-title {
    font-size: clamp(2.5rem, 5.4vw, 7rem);
}

.academic-rule {
    width: clamp(6rem, 8vw, 11rem);
    margin-top: clamp(0.75rem, 1.3vmin, 1.25rem);
}

[data-academic-card] {
    padding: clamp(1rem, 1.6vw, 2rem);
}

[data-academic-card] p:first-child {
    font-size: clamp(1.1rem, 1.6vw, 1.75rem);
}

#exp-content {
    max-width: min(88vw, 86rem);
}

#exp-label {
    margin-bottom: clamp(0.75rem, 1.4vmin, 1.25rem);
    font-size: clamp(0.55rem, 0.75vw, 0.8rem);
    letter-spacing: clamp(0.28em, 0.55vw, 0.55em);
}

#exp-title {
    font-size: clamp(2.5rem, 5.4vw, 7rem);
}

#exp-track article {
    padding: clamp(1rem, 1.4vw, 1.75rem);
}

#exp-track article h3 {
    font-size: clamp(1.45rem, 2vw, 2.5rem);
}

#exp-track article p {
    font-size: clamp(0.68rem, 0.78vw, 0.95rem);
}

#portfolio-content {
    max-width: min(88vw, 86rem);
}

#portfolio-heading p {
    margin-bottom: clamp(0.75rem, 1.4vmin, 1.25rem);
    font-size: clamp(0.55rem, 0.75vw, 0.8rem);
    letter-spacing: clamp(0.28em, 0.55vw, 0.55em);
}

#portfolio-heading h2 {
    font-size: clamp(2.5rem, 5.4vw, 7rem);
}

#portfolio-track article {
    padding: clamp(1rem, 1.6vw, 2rem);
}

#portfolio-track article h3 {
    font-size: clamp(1.6rem, 2vw, 2.75rem);
}

#portfolio-track article p {
    font-size: clamp(0.68rem, 0.78vw, 0.95rem);
}

#stats-content {
    max-width: min(88vw, 86rem);
}

#stats-heading p {
    margin-bottom: clamp(0.75rem, 1.4vmin, 1.25rem);
    font-size: clamp(0.55rem, 0.75vw, 0.8rem);
    letter-spacing: clamp(0.28em, 0.55vw, 0.55em);
}

#stats-heading h2 {
    font-size: clamp(2.5rem, 5.4vw, 7rem);
}

[data-stat-item] .counter {
    font-size: clamp(3.5rem, 5.8vw, 6rem);
}

[data-stat-item] .font-deco-serif {
    font-size: clamp(1.15rem, 1.6vw, 1.8rem);
}

#service-heading + div > div {
    max-width: min(52vw, 44rem);
}

@media (max-width: 1023px), (pointer: coarse) {
    #about {
        height: 100vh;
    }

    #skill,
    #academic {
        height: auto;
        min-height: 100vh;
    }

    #experience,
    #portfolio,
    #stats {
        height: auto;
        min-height: 100vh;
    }

    #skill-inner,
    #academic-inner {
        position: relative;
        height: auto;
        min-height: 100vh;
        padding-top: clamp(2rem, 7vmin, 4rem);
        padding-bottom: clamp(2rem, 7vmin, 4rem);
    }

    #exp-inner {
        position: relative;
        height: 100vh;
        min-height: 100vh;
        padding-top: clamp(1rem, 4vmin, 2rem);
        padding-bottom: clamp(1rem, 4vmin, 2rem);
    }

    #portfolio-inner {
        position: relative;
        height: auto;
        min-height: 100vh;
        padding-top: clamp(0.5rem, 2vmin, 0.8rem);
        padding-bottom: clamp(0.5rem, 2vmin, 0.8rem);
        overflow: visible;
    }

    .about-content {
        max-width: none;
        padding: 0 clamp(1.25rem, 6vw, 2.5rem);
    }

    .about-heading {
        margin-bottom: clamp(1rem, 3vmin, 1.75rem);
        padding-top: clamp(3rem, 8vmin, 5rem);
    }

    .about-label {
        margin-bottom: clamp(0.75rem, 2vmin, 1rem);
        font-size: clamp(0.5rem, 1.6vw, 0.7rem);
        letter-spacing: 0.38em;
    }

    .about-title {
        font-size: clamp(2.4rem, 10vw, 4.75rem);
    }

    .about-rule {
        width: clamp(5rem, 24vw, 9rem);
    }

    .about-body {
        align-items: flex-start;
    }

    .about-paragraph {
        max-width: 36rem;
        font-size: clamp(0.58rem, 2.25vw, 0.78rem);
        line-height: 1.75;
        letter-spacing: 0.06em;
    }

    .about-signature {
        width: clamp(8rem, 34vw, 12rem);
        margin-top: clamp(1.25rem, 4vmin, 2rem);
    }

    .skill-content {
        max-width: none;
        padding: 0 clamp(1.25rem, 6vw, 2.5rem);
    }

    .skill-header {
        height: auto;
        padding-top: 0;
        margin-bottom: clamp(1.25rem, 4vmin, 2rem);
    }

    .skill-label {
        margin-bottom: clamp(0.75rem, 2vmin, 1rem);
        font-size: clamp(0.5rem, 1.6vw, 0.7rem);
        letter-spacing: 0.38em;
    }

    .skill-title {
        font-size: clamp(2.4rem, 10vw, 4.75rem);
    }

    .skill-rule {
        width: clamp(5rem, 24vw, 9rem);
    }

    .skill-list {
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto;
        gap: clamp(0.65rem, 2vmin, 1rem);
        padding: 0;
    }

    .skill-list > div {
        display: grid;
        gap: clamp(0.65rem, 2vmin, 1rem);
        text-align: left;
    }

    [data-skill-card] {
        padding: clamp(0.75rem, 3.5vw, 1rem);
    }

    [data-skill-card] h3 {
        font-size: clamp(1.15rem, 5vw, 1.65rem);
    }

    [data-skill-card] p {
        font-size: clamp(0.45rem, 2vw, 0.62rem);
        line-height: 1.65;
    }

    .academic-content {
        max-width: none;
        padding: 0 clamp(1.25rem, 6vw, 2.5rem);
    }

    .academic-heading {
        height: auto;
        margin-bottom: clamp(1.25rem, 4vmin, 2rem);
        padding-top: 0;
    }

    .academic-label {
        margin-bottom: clamp(0.75rem, 2vmin, 1rem);
        font-size: clamp(0.5rem, 1.6vw, 0.7rem);
        letter-spacing: 0.38em;
    }

    .academic-title {
        font-size: clamp(2.4rem, 10vw, 4.75rem);
    }

    .academic-rule {
        width: clamp(5rem, 24vw, 9rem);
    }

    .academic-list {
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto;
        gap: clamp(0.75rem, 2.4vmin, 1rem);
        padding: 0;
    }

    .academic-list {
        gap: clamp(1rem, 3vmin, 1.5rem);
    }

    [data-academic-card] {
        padding: clamp(0.9rem, 4vw, 1.2rem);
    }

    [data-academic-card] p:first-child {
        font-size: clamp(1.1rem, 5vw, 1.55rem);
    }

    #exp-content {
        max-width: none;
        padding: 0 clamp(1.25rem, 6vw, 2.5rem);
    }

    #exp-heading {
        height: 24%;
        align-items: center;
        margin-bottom: 0;
        padding-top: 0;
        text-align: center;
    }

    #exp-label {
        margin-bottom: clamp(0.75rem, 2vmin, 1rem);
        font-size: clamp(0.5rem, 1.6vw, 0.7rem);
        letter-spacing: 0.38em;
    }

    #exp-title {
        font-size: clamp(2.4rem, 10vw, 4.75rem);
    }

    #exp-track-wrap {
        height: 76%;
        padding: 0;
        overflow: visible;
    }

    #exp-arrow {
        position: absolute;
        top: -0.75rem;
        right: -0.75rem;
        bottom: auto;
        left: auto;
        width: 2.25rem;
        height: 2.25rem;
        transform: none;
        z-index: 80;
    }

    #exp-track > div {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        height: 100%;
        gap: clamp(0.55rem, 1.8vmin, 0.8rem);
    }

    #exp-track article {
        height: 100%;
        padding: clamp(0.7rem, 3vw, 0.95rem);
    }

    #exp-track article h3 {
        margin-bottom: 0.35rem;
        font-size: clamp(1rem, 4.2vw, 1.35rem);
    }

    #exp-track article p {
        margin-bottom: 0.35rem;
        font-size: clamp(0.48rem, 1.85vw, 0.62rem);
        line-height: 1.42;
    }

    #portfolio-content {
        max-width: none;
        padding: 0 clamp(1.25rem, 6vw, 2.5rem);
        height: auto;
        min-height: 100vh;
    }

    #portfolio-heading {
        height: auto;
        align-items: center;
        margin-bottom: clamp(3rem, 7.5vmin, 4.5rem);
        padding-top: 0;
        text-align: center;
    }

    #portfolio-heading p {
        margin-bottom: clamp(0.75rem, 2vmin, 1rem);
        font-size: clamp(0.5rem, 1.6vw, 0.7rem);
        letter-spacing: 0.38em;
    }

    #portfolio-heading h2 {
        font-size: clamp(2.4rem, 10vw, 4.75rem);
    }

    #portfolio-track-wrap {
        height: auto;
        min-height: 0;
        width: 100%;
        overflow: visible;
        padding: 0;
    }

    #portfolio-arrow {
        position: absolute;
        top: -0.75rem;
        right: -0.75rem;
        bottom: auto;
        left: auto;
        width: 2.25rem;
        height: 2.25rem;
        transform: none;
        z-index: 80;
    }

    #portfolio-track > div {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: repeat(3, auto);
        height: auto;
        gap: 0.15rem;
        align-content: center;
    }

    #portfolio-track a.tapped article iconify-icon,
    #portfolio-track a.tapped article h3 {
        display: none;
    }

    #portfolio-track a.tapped article p.text-sm {
        margin: 0;
        text-align: center;
    }

    #stats-content {
        max-width: none;
        padding: 0 clamp(1.25rem, 6vw, 2.5rem);
    }

    #stats-inner {
        position: relative;
        height: auto;
        min-height: 100vh;
        padding-top: clamp(2rem, 6vmin, 4rem);
        padding-bottom: clamp(2rem, 6vmin, 4rem);
        overflow: visible;
    }

    #stats-content {
        height: auto;
        min-height: 100vh;
    }

    #stats-heading {
        height: auto;
        padding-top: 0;
        margin-bottom: clamp(1rem, 3vmin, 1.75rem);
    }

    #stats-heading p {
        margin-bottom: clamp(0.75rem, 2vmin, 1rem);
        font-size: clamp(0.5rem, 1.6vw, 0.7rem);
        letter-spacing: 0.38em;
    }

    #stats-heading h2 {
        font-size: clamp(2.4rem, 10vw, 4.75rem);
    }

    [data-stat-item] .counter {
        font-size: clamp(2.5rem, 13vw, 4.25rem);
        margin-bottom: clamp(0.6rem, 2vmin, 1rem);
    }

    [data-stat-item] .font-deco-serif {
        font-size: clamp(1rem, 4.5vw, 1.45rem);
    }

    #stats-content .h-\[70\%\] {
        height: auto;
        flex: 1;
    }

    #stats-content [data-stat-item].max-w-4xl,
    #stats-content > div > p[data-stat-item] {
        margin-top: clamp(2rem, 6vh, 3.5rem);
        font-size: clamp(0.55rem, 2vw, 0.75rem);
        line-height: 1.8;
        letter-spacing: 0.08em;
    }

    #service,
    #contact {
        height: 100vh;
    }

    #service-inner,
    #footer-inner {
        position: relative;
        height: 100vh;
        min-height: 100vh;
        padding-top: clamp(1rem, 4vmin, 2rem);
        padding-bottom: clamp(1rem, 4vmin, 2rem);
    }

    #service-image {
        display: none;
    }

    #service-content {
        max-width: none;
        padding: 0 clamp(1.25rem, 6vw, 2.5rem);
    }

    #service-heading {
        height: 24%;
        align-items: center;
        margin-bottom: 0;
        padding-top: 0;
        text-align: center;
    }

    #service-heading p {
        margin-bottom: clamp(0.75rem, 2vmin, 1rem);
        font-size: clamp(0.5rem, 1.6vw, 0.7rem);
        letter-spacing: 0.38em;
    }

    #service-heading h2 {
        font-size: clamp(2.4rem, 10vw, 4.75rem);
    }

    #service-heading + div {
        height: 76%;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    #service-heading + div > div {
        width: 100%;
        max-width: none;
        gap: clamp(0.55rem, 1.8vmin, 0.8rem);
    }

    [data-service-item] {
        padding: clamp(0.7rem, 3vw, 0.95rem);
    }

    [data-service-item] h3 {
        margin-bottom: 0.35rem;
        font-size: clamp(1rem, 4.2vw, 1.35rem);
    }

    [data-service-item] p {
        font-size: clamp(0.55rem, 2vw, 0.75rem);
        line-height: 1.5;
    }
}

#service-content {
    max-width: min(88vw, 86rem);
}

#service-heading p {
    margin-bottom: clamp(0.75rem, 1.4vmin, 1.25rem);
    font-size: clamp(0.55rem, 0.75vw, 0.8rem);
    letter-spacing: clamp(0.28em, 0.55vw, 0.55em);
}

#service-heading h2 {
    font-size: clamp(2.5rem, 5.4vw, 7rem);
}

#service-image {
    height: clamp(31rem, 48vmin, 46rem);
}

[data-service-item] {
    padding: clamp(1rem, 1.6vw, 2rem);
}

[data-service-item] h3 {
    font-size: clamp(1.45rem, 2vw, 2.5rem);
}

[data-service-item] p {
    font-size: clamp(0.65rem, 0.75vw, 0.875rem);
}

@media (max-width: 639px) {
    #service-heading + div > div {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
        width: 100%;
    }
}

@media (min-width: 1920px) {
    .about-content {
        max-width: min(82vw, 118rem);
    }

    .about-title {
        font-size: clamp(7rem, 5vw, 12rem);
    }

    .about-paragraph {
        max-width: min(76vw, 120rem);
        font-size: clamp(1.35rem, 1vw, 2rem);
    }

    .about-signature {
        width: clamp(18rem, 12vw, 28rem);
    }

    .skill-content {
        max-width: min(84vw, 105rem);
    }

    .skill-title {
        font-size: clamp(7rem, 5vw, 12rem);
    }

    [data-skill-card] {
        padding: clamp(1.5rem, 1.5vw, 2.5rem);
    }

    [data-skill-card] h3 {
        font-size: clamp(2.25rem, 2vw, 3.5rem);
    }

    [data-skill-card] p {
        font-size: clamp(0.7rem, 0.56vw, 1rem);
    }

    .academic-content {
        max-width: min(84vw, 105rem);
    }

    .academic-title {
        font-size: clamp(7rem, 5vw, 12rem);
    }

    [data-academic-card] {
        padding: clamp(2rem, 2vw, 3.5rem);
    }

    [data-academic-card] p:first-child {
        font-size: clamp(1.75rem, 1.6vw, 2.75rem);
    }

    #exp-content {
        max-width: min(84vw, 112rem);
    }

    #exp-title {
        font-size: clamp(7rem, 5vw, 12rem);
    }

    #exp-track article {
        padding: clamp(1.75rem, 1.6vw, 2.75rem);
    }

    #exp-track article h3 {
        font-size: clamp(2.5rem, 2vw, 3.75rem);
    }

    #exp-track article p {
        font-size: clamp(0.95rem, 0.72vw, 1.25rem);
    }

    #portfolio-content {
        max-width: min(84vw, 112rem);
    }

    #portfolio-heading h2 {
        font-size: clamp(7rem, 5vw, 12rem);
    }

    #portfolio-track article {
        padding: clamp(1.75rem, 1.6vw, 2.75rem);
    }

    #portfolio-track article h3 {
        font-size: clamp(2.5rem, 2vw, 3.75rem);
    }

    #portfolio-track article p {
        font-size: clamp(0.95rem, 0.72vw, 1.25rem);
    }

    #stats-content {
        max-width: min(84vw, 112rem);
    }

    #stats-heading h2 {
        font-size: clamp(7rem, 5vw, 12rem);
    }

    [data-stat-item] .counter {
        font-size: clamp(6rem, 6vw, 10rem);
    }

    [data-stat-item] .font-deco-serif {
        font-size: clamp(1.8rem, 1.7vw, 2.75rem);
    }

    #service-content {
        max-width: min(84vw, 112rem);
    }

    #service-heading h2 {
        font-size: clamp(7rem, 5vw, 12rem);
    }

    #service-heading + div > div {
        max-width: min(48vw, 58rem);
    }

    #service-image {
        height: clamp(46rem, 46vmin, 70rem);
    }

    [data-service-item] {
        padding: clamp(1.75rem, 1.6vw, 2.75rem);
    }

    [data-service-item] h3 {
        font-size: clamp(2.5rem, 2vw, 3.75rem);
    }

    [data-service-item] p {
        font-size: clamp(0.75rem, 0.7vw, 1rem);
    }

    .hero-text-col {
        padding-right: clamp(5rem, 7vw, 12rem);
        padding-left: clamp(2.5rem, 3vw, 6rem);
    }

    .hero-frame {
        max-width: 88rem;
    }

    .hero-ornament {
        height: min(68vh, 46vw);
    }

    .hero-portrait {
        height: min(86%, 90vmin);
    }
}

.font-deco-serif {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -0.025em;
}

.font-deco-sans {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.14em;
}

.deco-sunburst {
    background: repeating-conic-gradient(from 0deg, transparent 0 10deg, var(--deco-line) 10deg 11deg);
    mask-image: radial-gradient(circle, black 0%, transparent 70%);
}

.deco-frame {
    position: relative;
    background:
        linear-gradient(currentColor 50%, transparent 0) top left / 2px 48px no-repeat,
        linear-gradient(90deg, currentColor 50%, transparent 0) top left / 48px 2px no-repeat,
        linear-gradient(currentColor 50%, transparent 0) top right / 2px 48px no-repeat,
        linear-gradient(270deg, currentColor 50%, transparent 0) top right / 48px 2px no-repeat,
        linear-gradient(to top, currentColor 50%, transparent 0) bottom left / 2px 48px no-repeat,
        linear-gradient(90deg, currentColor 50%, transparent 0) bottom left / 48px 2px no-repeat,
        linear-gradient(270deg, currentColor 50%, transparent 0) bottom right / 48px 2px no-repeat,
        linear-gradient(to top, currentColor 50%, transparent 0) bottom right / 2px 48px no-repeat;
    background-origin: border-box;
    background-clip: border-box;
}

.deco-frame-gold {
    color: #d4af37;
}
.deco-frame-gold :where(h3, p) {
    color: black;
}

#portfolio-track article {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 15rem;
}

/* Mobile override must come after the above rule to win cascade */
@media (max-width: 1023px), (pointer: coarse) {
    #portfolio-track > div {
        gap: clamp(1rem, 3vmin, 1.5rem);
    }

    #portfolio-track article {
        height: auto;
        min-height: 0;
        padding: clamp(1.1rem, 4.8vw, 1.4rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-width: 0.5px;
        overflow: visible;
    }

    #portfolio-track article iconify-icon {
        margin-bottom: 0.35rem;
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }

    #portfolio-track article h3 {
        margin-bottom: 0.15rem;
        font-size: clamp(1rem, 4.2vw, 1.35rem);
    }

    #portfolio-track article p {
        margin-bottom: 0;
        font-size: clamp(0.48rem, 1.85vw, 0.62rem);
        line-height: 1.25;
    }

    #portfolio-track a.tapped article p.text-sm {
        font-size: clamp(0.48rem, 1.85vw, 0.62rem);
    }

    .portfolio-tip {
        bottom: auto;
        top: 0.25rem;
        right: 0.25rem;
        font-size: 0.35rem;
        padding: 0.15rem 0.35rem;
    }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    #portfolio-track article iconify-icon {
        margin-bottom: 0.5rem;
    }
}

#portfolio-track article p.font-deco-sans {
    display: none;
}

#portfolio-track article .portfolio-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

#portfolio-track article .portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    opacity: 1;
    clip-path: circle(0 at 100% 0);
    transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

#portfolio-track article:hover .portfolio-img {
    opacity: 1;
}

#portfolio-track article:hover .portfolio-overlay {
    clip-path: circle(150% at 100% 0);
}

#portfolio-track article > :not(.portfolio-img):not(.portfolio-overlay) {
    position: relative;
    z-index: 2;
}

#portfolio-track a.tapped article .portfolio-img {
    opacity: 1;
}
#portfolio-track a.tapped article .portfolio-overlay {
    clip-path: circle(150% at 100% 0);
}

#portfolio-track a[href] {
    position: relative;
}

.portfolio-tip {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 20;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.5rem, 0.55vw, 0.65rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d4af37;
    background: rgba(255,255,255,0.9);
    border: 1px solid #d4af37;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#portfolio-track a:hover .portfolio-tip,
#portfolio-track a.tapped .portfolio-tip {
    opacity: 1;
}

