/* ======================================================
   SUJAL MAKVANA â€” LUXURY EDITORIAL PORTFOLIO
   Palette: black, ivory, off-white, warm grey only
   ====================================================== */


/* =================================
   WEBSITE PRINT PROTECTION
================================= */

@media print {
    html,
    body {
        display: none !important;
        visibility: hidden !important;
        background: #f9f9f9 !important;
    }
    body * {
        display: none !important;
        visibility: hidden !important;
    }
}

:root {
    color-scheme: dark;
    --bg: #0b0b0a;
    --surface: #141413;
    --surface-raised: #201f1c;
    --text: #f3f0e8;
    --muted: #aaa69d;
    --border: rgba(243, 240, 232, .15);
    --accent: #e8e1d5;
    --header: rgba(11, 11, 10, .88);
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --page-width: 1240px;
    --gutter: clamp(22px, 6vw, 88px);
    --ease: cubic-bezier(.2, .75, .25, 1);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f1efe9;
    --surface: #faf9f5;
    --surface-raised: #e8e5dd;
    --text: #201f1c;
    --muted: #706d65;
    --border: rgba(32, 31, 28, .16);
    --accent: #34312c;
    --header: rgba(241, 239, 233, .9);
    --shadow: 0 22px 55px rgba(43, 38, 29, .09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: -.01em;
    transition: background-color .4s ease, color .4s ease;
    overflow-x: hidden;
}

body,
button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button,
a {
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 10000;
    padding: 12px 18px;
    background: var(--text);
    color: var(--bg);
}

.skip-link:focus {
    top: 16px;
}

.section-wrap {
    width: min(100% - 2 * var(--gutter), var(--page-width));
    margin-inline: auto;
}

.section-block {
    padding-block: clamp(85px, 12vw, 155px);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .19em;
    line-height: 1.5;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 400;
}

h1,
h2 {
    font-family: var(--serif);
    letter-spacing: -.055em;
    line-height: 1.06;
    text-wrap: balance;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(42px, 6vw, 76px);
}

.muted-title {
    color: var(--muted);
}

.italic-title {
    font-style: italic;
}

.section-intro {
    max-width: 370px;
    color: var(--muted);
    line-height: 1.9;
}


/* Navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}


/* LIGHT THEME ACCESSIBILITY FIX */

body.light-theme {
    --text-primary: #171717;
    --text-secondary: #454545;
    --text-muted: #595959;
    --accent: #805000;
    --border-color: #767676;
}


/* Navbar links */

body.light-theme .site-header a {
    color: #252525;
}


/* Eyebrow text */

body.light-theme .eyebrow {
    color: #595959;
}


/* Certificate descriptions */

body.light-theme .certificate-card p {
    color: #454545;
}


/* Certificate dates */

body.light-theme .certificate-date {
    color: #595959;
}


/* Footer */

body.light-theme .site-footer {
    color: #454545;
}

body.light-theme .site-footer a {
    color: #252525;
}


/* Provider descriptions */

body.light-theme .provider-description {
    color: #454545;
}


/* Scroll cue */

body.light-theme .scroll-cue {
    color: #454545;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 8px 35px rgba(0, 0, 0, .06);
}

.nav-shell {
    width: min(100% - 2 * var(--gutter), 1440px);
    min-height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    font-family: var(--serif);
    font-size: 28px;
    font-style: italic;
    letter-spacing: -.1em;
}

.brand-name {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 29px);
}

.nav-links a,
.nav-cta {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a {
    position: relative;
    color: var(--muted);
    transition: color .25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    transition: transform .35s var(--ease), background .3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg);
    background: var(--surface-raised);
}

.nav-cta {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 11px 15px;
    border: 1px solid var(--border);
    transition: background .25s ease, color .25s ease;
}

.nav-cta:hover {
    background: var(--text);
    color: var(--bg);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}


/* Hamburger menu button */

.menu-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}


/* Center the three lines */

.menu-toggle .menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 22px;
}


/* Style ONLY the three lines */

.menu-toggle .menu-icon>span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background: currentColor;
    transform: none;
    opacity: 1;
    transition: transform 0.25s ease, opacity 0.2s ease;
}


/* Animate hamburger into X */

.menu-toggle[aria-expanded="true"] .menu-icon>span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon>span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon>span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}


/* Hero */

.hero {
    position: relative;
    min-height: min(790px, calc(100svh - 82px));
    padding-block: clamp(65px, 9vw, 115px) 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, .75fr);
    align-items: center;
    gap: clamp(40px, 9vw, 125px);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 0 0 5px var(--accent);
    animation: status-pulse 2.5s ease-in-out infinite;
}

.hero-title {
    margin: 0 0 27px;
    font-size: clamp(54px, 7.5vw, 100px);
}

.hero-description {
    max-width: 510px;
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 17px;
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    transition: transform .3s var(--ease), background .3s ease, color .3s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-solid {
    background: var(--text);
    color: var(--bg);
}

.button-solid:hover {
    background: var(--surface-raised);
    color: var(--text);
}

.button-outline:hover {
    background: var(--surface-raised);
}

.hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    margin-top: 35px;
}

.hero-socials a,
.contact-links a {
    color: var(--muted);
    font-size: 11px;
    transition: color .25s ease;
}

.hero-socials a:hover,
.contact-links a:hover {
    color: var(--text);
}

.hero-visual {
    position: relative;
    width: min(100%, 400px);
    justify-self: center;
}

.portrait-frame {
    position: relative;
    z-index: 2;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: portrait-float 7s ease-in-out infinite;
}

.portrait-topline,
.portrait-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.portrait-topline {
    padding: 5px 2px 13px;
}

.portrait-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--surface-raised);
    filter: grayscale(100%);
    transition: filter .6s ease, transform .6s ease;
}

.portrait-frame:hover img {
    filter: grayscale(65%);
    transform: scale(.985);
}

.portrait-caption {
    padding: 14px 2px 3px;
    text-transform: none;
    letter-spacing: .02em;
    font-size: 11px;
}

.caption-symbol {
    font-size: 20px;
    color: var(--text);
}

.orbit {
    position: absolute;
    border: 1px solid var(--border);
    pointer-events: none;
}

.orbit-one {
    inset: -20px -20px 20px 20px;
    animation: orbit-drift 12s ease-in-out infinite;
}

.orbit-two {
    inset: 25px 20px -22px -20px;
    animation: orbit-drift 15s ease-in-out infinite reverse;
}

.visual-index {
    position: absolute;
    right: -27px;
    bottom: 32px;
    z-index: 3;
    font-size: 10px;
    letter-spacing: .15em;
    writing-mode: vertical-rl;
}

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    margin-top: 65px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.scroll-line {
    width: 42px;
    height: 1px;
    background: var(--text);
    transform-origin: left;
    animation: line-breathe 2.5s ease-in-out infinite;
}


/* Marquee */

.marquee {
    overflow: hidden;
    padding: 19px 0;
    border-block: 1px solid var(--border);
}

.marquee-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 42px;
    animation: marquee-slide 36s linear infinite;
}

.marquee-track span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    white-space: nowrap;
}


/* Section headings */

.section-heading {
    margin-bottom: 50px;
}

.section-heading h2 {
    max-width: 850px;
}

.section-intro {
    margin: 20px 0 0;
}


/* About */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(35px, 8vw, 115px);
    align-items: start;
    margin-top: 50px;
}

.about-copy .lead {
    color: var(--text);
    font-family: var(--serif);
    font-size: clamp(22px, 2.7vw, 34px);
    line-height: 1.5;
}

.about-copy p:not(.lead) {
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    margin-top: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.text-link span {
    transition: transform .25s ease;
}

.text-link:hover span {
    transform: translate(3px, -3px);
}

.about-details {
    border-top: 1px solid var(--border);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.detail-row span {
    color: var(--muted);
}

.detail-row strong {
    text-align: right;
    font-weight: 500;
}


/* Skills */

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

.skill-card {
    min-height: 185px;
    padding: 27px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform .35s var(--ease), border-color .35s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-muted);
}

.card-index {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .15em;
}

.skill-card h3 {
    margin: 25px 0 15px;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    display: inline-block;
    padding: 5px 9px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
}


/* Projects */

.projects-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
}

.projects-heading .section-intro {
    max-width: 300px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 35px 0;
}

.filter-button {
    padding: 9px 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 11px;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.filter-button:hover,
.filter-button.is-active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

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

.project-card {
    min-width: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform .45s var(--ease), box-shadow .45s ease, border-color .3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
    border-color: var(--text-muted);
}

.project-image {
    position: relative;
    overflow: hidden;
    background: var(--surface-raised);
    aspect-ratio: 16 / 10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform .8s var(--ease), filter .6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.045);
    filter: grayscale(60%);
}

.project-number {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 5px 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 10px;
}

.project-body {
    padding: clamp(20px, 3vw, 30px);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.project-body h3 {
    margin: 15px 0 12px;
    font-family: var(--serif);
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 400;
    line-height: 1.25;
}

.project-body p {
    color: var(--muted);
    font-size: 13px;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
}

.project-links a {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
}

.project-links a:hover {
    border-color: var(--text);
}

.project-card[hidden] {
    display: none !important;
}


/* Timeline */

.timeline {
    border-top: 1px solid var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 35px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-date {
    color: var(--muted);
    font-size: 11px;
}

.timeline-content h3 {
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: 26px;
}

.timeline-content p {
    margin-bottom: 0;
    color: var(--muted);
}


/* Research & achievements */

.research-grid,
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.research-card,
.achievement-card {
    padding: 28px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform .35s var(--ease), border-color .35s ease;
}

.research-card:hover,
.achievement-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-muted);
}

.research-card h3,
.achievement-card h3 {
    margin: 18px 0 10px;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
}

.research-card p,
.achievement-card p {
    color: var(--muted);
    font-size: 13px;
}

.card-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    border-bottom: 1px solid var(--border);
}


/* Contact */

.contact-section {
    padding-block: clamp(90px, 13vw, 165px);
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(35px, 8vw, 110px);
    align-items: end;
}

.contact-inner h2 {
    font-size: clamp(55px, 8vw, 100px);
}

.contact-copy p {
    max-width: 390px;
    color: var(--muted);
}

.contact-email {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin: 15px 0 25px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: clamp(15px, 2vw, 22px);
    overflow-wrap: anywhere;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}


/* Footer */

.site-footer {
    padding: 27px 0;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.footer-inner p,
.copyright,
.back-top {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.back-top:hover {
    color: var(--text);
}

.noscript-message {
    padding: 20px;
    text-align: center;
}


/* Above-the-fold hero content must render immediately for fast FCP/LCP.
   Scroll-reveal animations remain enabled for the rest of the page. */
.hero .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

/* Scroll reveal controlled by JavaScript */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(3px);
    transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal[data-delay="1"] {
    transition-delay: 90ms;
}

.reveal[data-delay="2"] {
    transition-delay: 180ms;
}

.reveal[data-delay="3"] {
    transition-delay: 270ms;
}

@keyframes status-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px var(--accent);
    }
    50% {
        box-shadow: 0 0 0 8px transparent;
    }
}

@keyframes portrait-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

@keyframes orbit-drift {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(8px, -8px);
    }
}

@keyframes line-breathe {
    0%,
    100% {
        transform: scaleX(.6);
    }
    50% {
        transform: scaleX(1);
    }
}

@keyframes marquee-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* Responsive */


/* Accessibility: honor reduced-motion preferences */

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


/* Certificate media supplied through the management app */

.achievement-media {
    display: block;
    width: 100%;
    margin: 14px 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.achievement-media img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    background: var(--surface);
}

.achievement-issuer {
    font-weight: 600;
}

.achievement-links {
    margin-top: 12px;
}


/* ======================================================
   MATTE LIQUID-GLASS REFINEMENT â€” portfolio refresh
   ====================================================== */

:root {
    --bg: #10100f;
    --surface: #191917;
    --surface-raised: #242320;
    --text: #f4f1e9;
    --muted: #aaa69d;
    --border: rgba(244, 241, 233, .12);
    --accent: #ded7ca;
    --header: rgba(16, 16, 15, .68);
    --shadow: 0 26px 80px rgba(0, 0, 0, .28);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #eeede8;
    --surface: #f8f7f2;
    --surface-raised: #e4e1d9;
    --text: #24231f;
    --muted: #77736a;
    --border: rgba(36, 35, 31, .13);
    --accent: #39372f;
    --header: rgba(248, 247, 242, .72);
    --shadow: 0 24px 70px rgba(49, 45, 36, .10);
}

html,
body {
    background: var(--bg);
}

body {
    transition: background-color .45s ease, color .45s ease;
}

.site-header {
    position: sticky;
    top: 10px;
    width: min(calc(100% - 28px), 1460px);
    margin: 10px auto 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--header);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    box-shadow: 0 10px 38px rgba(0, 0, 0, .08);
}

.site-header.scrolled {
    border-color: color-mix(in srgb, var(--text) 20%, transparent);
    box-shadow: 0 14px 44px rgba(0, 0, 0, .14);
    background: color-mix(in srgb, var(--header) 88%, var(--surface));
}

.nav-shell {
    min-height: 68px;
    width: min(100% - 36px, 1380px);
}

.nav-links a {
    padding: 9px 2px;
}

.nav-links a.active {
    color: var(--text);
}

.nav-cta,
.theme-toggle,
.menu-toggle,
.button,
.filter-button,
.certificate-open,
.certificate-close {
    border-radius: 999px;
}

.nav-cta {
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.button {
    padding-inline: 22px;
    min-height: 50px;
}

.filter-button {
    padding: 10px 17px;
}

.skill-card,
.project-card,
.research-card,
.achievement-card,
.timeline-content,
.portrait-frame {
    border-radius: 24px;
    overflow: hidden;
}

.project-image {
    border-radius: 20px 20px 0 0;
}

.project-number,
.project-meta span,
.tag,
.card-index {
    border-radius: 999px;
}

.project-body {
    padding: clamp(22px, 3vw, 34px);
}

.project-card:hover,
.achievement-card:hover,
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.hero-title,
h2 {
    text-wrap: balance;
}

section[id] {
    scroll-margin-top: 112px;
}

.achievement-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 24px;
}

.achievements-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.achievement-thumb {
    height: 160px;
    margin: -28px -28px 22px;
    background: var(--surface-raised);
    overflow: hidden;
}

.achievement-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-placeholder {
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 5px;
    color: var(--muted);
}

.achievement-placeholder span {
    font-size: 32px;
}

.achievement-placeholder small {
    letter-spacing: .15em;
    text-transform: uppercase;
    font-size: 10px;
}

.achievement-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.certificate-open {
    padding: 10px 15px;
    border: 1px solid var(--border);
    background: var(--surface-raised);
    color: var(--text);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.certificate-open:hover {
    background: var(--text);
    color: var(--bg);
}

.certificate-modal[hidden] {
    display: none;
}

.certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 8, 8, .78);
    backdrop-filter: blur(16px);
}

.certificate-dialog {
    width: min(1100px, 100%);
    max-height: min(92vh, 1000px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 26px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .4);
}

.certificate-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 4px 4px 16px;
}

.certificate-modal-header .eyebrow {
    margin: 0;
}

.certificate-modal-header h2 {
    margin: 4px 0 0;
    font-size: clamp(20px, 3vw, 30px);
}

.certificate-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--surface-raised);
    color: var(--text);
    cursor: pointer;
    font-size: 25px;
}

.certificate-stage {
    min-height: 260px;
    height: min(68vh, 760px);
    display: grid;
    place-items: center;
    overflow: auto;
    border-radius: 16px;
    background: #d8d6d0;
}

.certificate-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.certificate-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: white;
}

.certificate-note {
    margin: 12px 4px 0;
    color: var(--muted);
    font-size: 10px;
}

body.modal-open {
    overflow: hidden;
}

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


/* ===================================
   CERTIFICATE GALLERY
=================================== */

.certificate-providers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 35px 0 65px;
}

.provider-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 13px;
    padding: 25px;
    min-height: 190px;
    border: 1px solid var(--border);
    border-radius: 23px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.provider-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.provider-card.active {
    border-color: var(--text);
    background: var(--surface-raised);
}

.provider-icon {
    font-size: 28px;
}

.provider-card strong {
    font-size: 19px;
    font-weight: 650;
}

.provider-description,
.provider-count {
    font-size: 12px;
    color: var(--muted);
}

.provider-count {
    margin-top: auto;
}

.certificate-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}

.certificate-list-heading h3 {
    font-size: clamp(24px, 3vw, 36px);
    margin-top: 8px;
}

#certificate-count {
    color: var(--muted);
    font-size: 13px;
}


/* Certificate cards: THREE PER ROW */

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.certificate-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 21px;
    background: var(--surface);
    transition: transform .35s ease, box-shadow .35s ease;
}

.certificate-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.certificate-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-raised);
}

.certificate-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.certificate-placeholder span {
    font-size: 35px;
}

.certificate-content {
    padding: 22px;
}

.certificate-provider {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
}

.certificate-content h3 {
    margin: 12px 0;
    font-size: 19px;
    line-height: 1.4;
}

.certificate-content p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.certificate-date {
    font-size: 11px;
    color: var(--muted);
}

.certificate-open {
    border: 1px solid var(--border);
    background: var(--surface-raised);
    color: var(--text);
    padding: 11px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 650;
    transition: .25s ease;
}

.certificate-open:hover {
    background: var(--text);
    color: var(--bg);
}

.certificate-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 65px 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.certificate-empty p {
    color: var(--muted);
}


/* Responsive layout */


/* ==================================
   WEBSITE CONTENT PROTECTION
================================== */


/* Prevent casual text selection */

.protected-content {
    -webkit-user-select: none;
    user-select: none;
}


/* Image protection */

.protected-image {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.protected-image img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    -webkit-user-drag: none;
}


/* Watermark */

.protected-image::after {
    content: "Â© Sujal Makvana";
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: rgba(255, 255, 255, .85);
    background: rgba(0, 0, 0, .35);
    padding: 8px 13px;
    border-radius: 30px;
    font-size: 10px;
    letter-spacing: 1px;
    pointer-events: none;
}


/* Protect certificate preview */

.certificate-stage {
    user-select: none;
    -webkit-user-select: none;
}

.certificate-stage img {
    pointer-events: none;
    -webkit-user-drag: none;
}


/* Avoid accidental selection of portfolio cards */

.project-image,
.certificate-thumbnail {
    user-select: none;
    -webkit-user-select: none;
}


/* =========================================
   PORTFOLIO IMAGE PROTECTION
========================================= */


/* Prevent image dragging and selection */

img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}


/* Protection overlay */

.project-image,
.certificate-thumbnail,
.portrait-frame,
.certificate-stage {
    position: relative;
    overflow: hidden;
}


/* Subtle copyright watermark */

.project-image::after,
.certificate-thumbnail::after,
.portrait-frame::after {
    content: "Â© SUJAL MAKVANA";
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(6, 6, 6, 0.75);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    user-select: none;
}


/* Keep watermark above images without blocking clicks */

.project-image img,
.certificate-thumbnail img,
.portrait-frame img {
    pointer-events: none;
}


/* Certificate preview protection */

.certificate-modal {
    user-select: none;
    -webkit-user-select: none;
}

.certificate-stage img,
.certificate-stage iframe {
    -webkit-user-drag: none;
}

.certificate-stage img {
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}


/* Custom PDF viewer */

.pdf-preview-page {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 15px auto;
    background: white;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

.certificate-stage {
    overflow-y: auto;
    max-height: 75vh;
    background: #e8e8e8;
}

.certificate-stage canvas {
    -webkit-user-drag: none;
}


/* Show the complete project screenshot without cropping */

.project-image {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden;
    background: #f1efe9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
}


/* Three-line navigation hamburger icon */

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
}

.menu-icon span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 0;
    border-radius: 10px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}


/* Animate into a close icon when menu opens */

.menu-toggle[aria-expanded="true"] .menu-icon span:first-child {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] .menu-icon span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}


/* =====================================
   RESPONSIVE NAVIGATION VISIBILITY
===================================== */


/* Laptop and desktop */

@media (min-width: 781px) {
    .menu-toggle {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
    }
}


/* Tablet and mobile */

@media print {
    body {
        display: none !important;
    }
}

.protected-content,
.certificate-stage,
.certificate-thumbnail {
    -webkit-user-select: none;
    user-select: none;
}

body {
    -webkit-touch-callout: none;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}


/* Accessible light-theme text contrast overrides */

:root[data-theme="light"] {
    --muted: #59564f;
}

body.light-theme,
body.light-theme .hero-description,
body.light-theme .eyebrow,
body.light-theme .nav-links a,
body.light-theme .scroll-cue,
body.light-theme .provider-description,
body.light-theme .provider-count,
body.light-theme #certificate-count,
body.light-theme .certificate-provider,
body.light-theme .certificate-date,
body.light-theme .certificate-content p,
body.light-theme .footer-inner p,
body.light-theme .copyright,
body.light-theme .back-top {
    color: #514e47;
}

body.light-theme .portrait-frame span {
    color: #514e47;
}


/* =========================================
CERTIFICATE VIEWER â€” VISIBILITY FIX
Add at the VERY BOTTOM of style/style.css
========================================= */


/* Modal background */

.certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.certificate-modal[hidden] {
    display: none !important;
}


/* Main viewer box */

.certificate-dialog {
    width: min(1100px, 100%);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: #171715;
    color: #f5f2eb;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.65);
}


/* Certificate heading and your name */

.certificate-modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 5px 5px 18px;
    color: #f5f2eb;
}

.certificate-modal-header .eyebrow {
    color: #c5bdaF;
    font-size: 11px;
    margin: 0;
}

.certificate-modal-header h2,
#certificate-modal-title {
    color: #ffffff !important;
    font-size: clamp(19px, 3vw, 28px);
    line-height: 1.35;
    font-weight: 600;
    overflow-wrap: anywhere;
    margin: 5px 0 0;
}


/* Close button */

.certificate-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #666;
    border-radius: 50%;
    background: #292927;
    color: #ffffff !important;
    font-size: 26px;
    cursor: pointer;
}

.certificate-close:hover {
    background: #444;
}


/* PDF and image viewing area */

.certificate-stage {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 280px;
    height: min(70vh, 760px);
    max-height: 75vh;
    overflow: auto;
    display: block;
    padding: 18px;
    border-radius: 12px;
    background: #292929;
    color: #ffffff !important;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: #888 #292929;
}


/* Loading and error messages */

#certificate-stage {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
}

#certificate-stage:empty {
    display: grid;
    place-items: center;
}


/* PDF pages */

.certificate-stage .pdf-preview-page {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 15px auto 5px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
}


/* Certificate image */

.certificate-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background: #ffffff;
}


/* Your watermark below each PDF page */

.certificate-watermark {
    position: relative;
    width: fit-content;
    max-width: 95%;
    margin: 0 auto 22px;
    padding: 7px 14px;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    overflow-wrap: anywhere;
}


/* Viewer note */

.certificate-note {
    flex-shrink: 0;
    color: #c5c5c5 !important;
    font-size: 12px;
    line-height: 1.6;
    margin: 12px 4px 0;
}


/* Mobile adjustments */

.certificate-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
}


/* =========================================
   CERTIFICATE VIEWER â€” FINAL RESPONSIVE FIX
========================================= */

#certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
}

#certificate-modal[hidden] {
    display: none !important;
}


/* Viewer follows the active website theme */

#certificate-modal .certificate-dialog {
    width: fit-content;
    max-width: min(94vw, 1050px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    overflow: hidden;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}


/* Heading */

#certificate-modal .certificate-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 2px 8px;
    color: var(--text);
}

#certificate-modal .certificate-modal-header h2 {
    margin: 0;
    color: var(--text);
}


/* Close button follows theme */

#certificate-modal .certificate-close {
    flex-shrink: 0;
    background: var(--surface-raised);
    color: var(--text);
    border: 1px solid var(--border);
}


/* No forced white or grey area around the certificate */

#certificate-modal #certificate-stage {
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: auto;
    background: transparent;
    border-radius: 8px;
}


/* Image keeps its original dimensions and proportions */

#certificate-modal #certificate-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    background: transparent;
}


/* PDF pages retain their own white paper background */

#certificate-modal #certificate-stage .pdf-preview-page {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto 12px;
    background: #fff;
}


/* Theme-aware note */

#certificate-modal .certificate-note {
    margin: 0;
    padding-top: 4px;
    color: var(--muted);
    text-align: center;
}


/* Mobile */


/* =========================================
   CONTACT SECTION - LIQUID GLASS
========================================= */

.contact-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 115px 0 125px;
}

.contact-inner {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(45px, 7vw, 100px);
}


/* LEFT CONTENT */

.contact-copy {
    max-width: 490px;
}

.contact-copy .eyebrow {
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 700;
}

.contact-copy h2 {
    margin: 0 0 23px;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 0.99;
    letter-spacing: -3.5px;
}

.contact-copy>p:not(.eyebrow) {
    max-width: 390px;
    line-height: 1.85;
    font-size: 14px;
    opacity: 0.72;
}

.contact-email {
    display: inline-block;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.contact-email:hover {
    opacity: 0.65;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 38px;
}

.contact-links a {
    font-size: 12px;
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.25s ease;
}

.contact-links a:hover {
    opacity: 1;
}


/* =========================================
   GLASS FORM CARD
========================================= */

.contact-form {
    position: relative;
    width: 100%;
    max-width: 610px;
    justify-self: end;
    padding: clamp(25px, 3.5vw, 42px);
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-sizing: border-box;
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.025) 55%, rgba(255, 255, 255, 0.055));
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}


/* Form heading */

.contact-form-heading {
    margin-bottom: 7px;
}

.form-index {
    display: block;
    margin-bottom: 13px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.55;
}

.contact-form-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 39px);
    font-weight: 650;
    letter-spacing: -1.5px;
}

.contact-form-title>span {
    color: #c9a16c;
}

.contact-form-heading>p {
    margin: 9px 0 0;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.62;
}


/* Form fields */

.contact-field {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    width: 100%;
}

.contact-field label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.88;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 16px;
    color: inherit;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-field input {
    height: 49px;
}

.contact-field textarea {
    height: 135px;
    min-height: 135px;
    resize: vertical;
    line-height: 1.7;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: inherit;
    opacity: 0.4;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: rgba(201, 161, 108, 0.8);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 3px rgba(201, 161, 108, 0.10);
}

.message-row {
    align-items: start;
}

.message-row label {
    padding-top: 15px;
}


/* =========================================
   LIQUID GLASS BUTTON
========================================= */

.contact-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    align-self: flex-start;
    min-width: 175px;
    min-height: 51px;
    padding: 0 22px;
    color: inherit;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.055));
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 8px 25px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-submit::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -80%;
    left: -35%;
    width: 45%;
    height: 260%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(18px);
    transform: rotate(25deg);
    transition: left 0.55s ease;
}

.contact-submit:hover::before {
    left: 120%;
}

.contact-submit:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 161, 108, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 20px rgba(201, 161, 108, 0.10);
}

.submit-arrow {
    font-size: 17px;
    color: #c9a16c;
    transition: transform 0.25s ease;
}

.contact-submit:hover .submit-arrow {
    transform: translate(3px, -3px);
}

.contact-submit:focus-visible {
    outline: 2px solid #c9a16c;
    outline-offset: 4px;
}

.form-footnote {
    margin: -8px 0 0;
    font-size: 11px;
    opacity: 0.48;
}


/* =========================================
   LIGHT THEME GLASS
========================================= */

body.light-theme .contact-form {
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48));
    border-color: rgba(0, 0, 0, 0.10);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-theme .contact-field input,
body.light-theme .contact-field textarea {
    background: rgba(255, 255, 255, 0.50);
    border-color: rgba(0, 0, 0, 0.13);
    color: #202020;
}

body.light-theme .contact-field input::placeholder,
body.light-theme .contact-field textarea::placeholder {
    color: #555555;
}

body.light-theme .contact-submit {
    color: #242424;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.90), rgba(235, 235, 235, 0.48));
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 24px rgba(0, 0, 0, 0.07);
}

body.light-theme .contact-submit:hover {
    border-color: rgba(201, 161, 108, 0.9);
}


/* =========================================
   RESPONSIVE
========================================= */

.contact-field input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
}

.contact-social-list {
    display: flex;
    flex-direction: column;
    max-width: 280px;
    margin-top: 28px;
}

.contact-social-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 4px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: opacity .25s ease, transform .25s ease;
}

.contact-socials {
    margin-top: 38px;
}

.social-heading {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--muted);
    margin-bottom: 18px;
    font-weight: 600;
}

.contact-social-list a:hover {
    opacity: .7;
    transform: translateX(5px);
}

.contact-social-list a i {
    font-size: 19px;
    width: 22px;
}

.social-arrow {
    margin-left: auto;
    opacity: .6;
}


/* =====================================
   PROJECT DETAIL â€” EDITORIAL CASE STUDY
   Uses the website's existing theme variables.
===================================== */

.project-detail-open {
    overflow: hidden;
}

.project-detail-view {
    position: fixed;
    inset: 0;
    z-index: 10050;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
}

.project-detail-view.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.project-detail-shell {
    width: min(1160px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 0 88px;
}

.project-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.project-detail-back:hover {
    background: var(--surface-raised);
    border-color: var(--muted);
    transform: translateX(-2px);
}

.project-detail-back:focus-visible,
.project-detail-links a:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 4px;
}

.project-detail-hero {
    max-width: 900px;
    padding: clamp(34px, 6vw, 64px) 0 34px;
}

.project-detail-hero .eyebrow {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.project-detail-hero h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: clamp(38px, 5.2vw, 64px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.04;
    text-wrap: balance;
}

.project-detail-lead {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 1.45vw, 17px);
    line-height: 1.8;
}

.project-detail-status {
    display: inline-flex;
    align-items: center;
    margin-top: 19px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-detail-cover {
    display: block;
    width: 100%;
    max-height: 560px;
    margin-top: 32px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: clamp(30px, 5vw, 72px);
}

.project-detail-main {
    min-width: 0;
}

.project-detail-section {
    padding: 27px 0 29px;
    border-top: 1px solid var(--border);
}

.project-detail-section h3,
.project-detail-aside h3 {
    margin: 0 0 15px;
    font-family: var(--serif);
    font-size: clamp(21px, 2.2vw, 26px);
    font-weight: 400;
    letter-spacing: -.025em;
}

.project-detail-section p,
.project-detail-section li,
.project-detail-aside p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.project-detail-section p {
    max-width: 760px;
    margin: 0;
}

.project-detail-section ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 19px;
}

.project-detail-section li {
    padding-left: 3px;
}

.project-detail-section li::marker {
    color: var(--muted);
}

.project-detail-section .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.project-detail-section .tag-list span,
.project-detail-section .tag-list a {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 11px;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
}

.project-detail-aside {
    position: sticky;
    top: 24px;
    align-self: start;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.project-detail-aside h3 {
    margin-bottom: 18px;
    font-size: 23px;
}

.project-detail-links {
    display: grid;
    gap: 8px;
}

.project-detail-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.4;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.project-detail-links a::after {
    content: "â†—";
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 15px;
    transition: transform .2s ease, color .2s ease;
}

.project-detail-links a:hover {
    background: var(--surface-raised);
    border-color: var(--muted);
    transform: translateY(-1px);
}

.project-detail-links a:hover::after {
    color: var(--text);
    transform: translate(2px, -2px);
}

.project-detail-aside>p {
    margin: 0;
    font-size: 12px;
}

.project-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 28px 0;
}

.project-detail-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.project-detail-button {
    margin-top: 22px;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .project-detail-view,
    .project-detail-back,
    .project-detail-links a,
    .project-detail-links a::after {
        transition: none;
    }
}


/* =====================================================
   PROJECT DETAIL â€” GALLERY + FULL-WIDTH RESOURCES UPDATE
   Keep the existing site theme; only adjust layout.
===================================================== */

.project-detail-layout {
    display: block;
    max-width: 920px;
}

.project-detail-main {
    width: 100%;
}

.project-detail-hero {
    max-width: 920px;
}

.project-detail-gallery-section {
    width: 100%;
    margin: 34px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.project-detail-gallery-heading {
    margin-bottom: 18px;
}

.project-detail-gallery-heading .eyebrow {
    margin-bottom: 8px;
}

.project-detail-gallery-heading h3,
.project-detail-resources-heading h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 400;
    letter-spacing: -.035em;
}

.project-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 0;
}

.project-detail-gallery-item {
    min-width: 0;
    margin: 0;
    padding: 9px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: var(--surface);
}

.project-detail-gallery-item img {
    width: 100%;
    height: clamp(260px, 30vw, 390px);
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 13px;
    background: var(--surface-raised);
}

.project-detail-gallery-item figcaption {
    padding: 9px 5px 2px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-detail-resources {
    width: 100%;
    max-width: 920px;
    margin-top: 38px;
    padding: 27px 0 0;
    border-top: 1px solid var(--border);
}

.project-detail-resources-heading {
    margin-bottom: 16px;
}

.project-detail-resources-heading .eyebrow {
    margin-bottom: 8px;
}

.project-detail-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--border);
}

.project-detail-links a {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    font-size: 13px;
}

.project-detail-links a:hover {
    padding-left: 21px;
    background: var(--surface);
    transform: none;
}

.project-detail-empty {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.project-detail-cover {
    display: none !important;
}


/* Portfolio contact message form */

.portfolio-contact-form {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin-top: 35px;
}

.portfolio-contact-form h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 12px;
}

.portfolio-contact-form label {
    font-size: 12px;
    color: var(--text-muted);
}

.portfolio-contact-form input,
.portfolio-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    outline: none;
}

.portfolio-contact-form input:focus,
.portfolio-contact-form textarea:focus {
    border-color: var(--accent);
}

.portfolio-contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.portfolio-contact-form button {
    justify-self: start;
    cursor: pointer;
}

#contact-form-status {
    min-height: 20px;
    font-size: 13px;
    color: var(--text-muted);
}


/* =========================================
   CONTACT SECTION - LIQUID GLASS
========================================= */

.contact-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 115px 0 125px;
}

.contact-inner {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(45px, 7vw, 100px);
}


/* LEFT CONTENT */

.contact-copy {
    max-width: 490px;
}

.contact-copy .eyebrow {
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 700;
}

.contact-copy h2 {
    margin: 0 0 23px;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 0.99;
    letter-spacing: -3.5px;
}

.contact-copy>p:not(.eyebrow) {
    max-width: 390px;
    line-height: 1.85;
    font-size: 14px;
    opacity: 0.72;
}

.contact-email {
    display: inline-block;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.contact-email:hover {
    opacity: 0.65;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 38px;
}

.contact-links a {
    font-size: 12px;
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.25s ease;
}

.contact-links a:hover {
    opacity: 1;
}


/* =========================================
   GLASS FORM CARD
========================================= */

.contact-form {
    position: relative;
    width: 100%;
    max-width: 610px;
    justify-self: end;
    padding: clamp(25px, 3.5vw, 42px);
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-sizing: border-box;
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.025) 55%, rgba(255, 255, 255, 0.055));
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}


/* Form heading */

.contact-form-heading {
    margin-bottom: 7px;
}

.form-index {
    display: block;
    margin-bottom: 13px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.55;
}

.contact-form-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 39px);
    font-weight: 650;
    letter-spacing: -1.5px;
}

.contact-form-title>span {
    color: #c9a16c;
}

.contact-form-heading>p {
    margin: 9px 0 0;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.62;
}


/* Form fields */

.contact-field {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    width: 100%;
}

.contact-field label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.88;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 16px;
    color: inherit;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-field input {
    height: 49px;
}

.contact-field textarea {
    height: 135px;
    min-height: 135px;
    resize: vertical;
    line-height: 1.7;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: inherit;
    opacity: 0.4;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: rgba(201, 161, 108, 0.8);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 0 0 3px rgba(201, 161, 108, 0.10);
}

.message-row {
    align-items: start;
}

.message-row label {
    padding-top: 15px;
}


/* =========================================
   LIQUID GLASS BUTTON
========================================= */

.contact-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    align-self: flex-start;
    min-width: 175px;
    min-height: 51px;
    padding: 0 22px;
    color: inherit;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.055));
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 8px 25px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-submit::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -80%;
    left: -35%;
    width: 45%;
    height: 260%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(18px);
    transform: rotate(25deg);
    transition: left 0.55s ease;
}

.contact-submit:hover::before {
    left: 120%;
}

.contact-submit:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 161, 108, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 20px rgba(201, 161, 108, 0.10);
}

.submit-arrow {
    font-size: 17px;
    color: #c9a16c;
    transition: transform 0.25s ease;
}

.contact-submit:hover .submit-arrow {
    transform: translate(3px, -3px);
}

.contact-submit:focus-visible {
    outline: 2px solid #c9a16c;
    outline-offset: 4px;
}

.form-footnote {
    margin: -8px 0 0;
    font-size: 11px;
    opacity: 0.48;
}


/* =========================================
   LIGHT THEME GLASS
========================================= */

body.light-theme .contact-form {
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48));
    border-color: rgba(0, 0, 0, 0.10);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-theme .contact-field input,
body.light-theme .contact-field textarea {
    background: rgba(255, 255, 255, 0.50);
    border-color: rgba(0, 0, 0, 0.13);
    color: #202020;
}

body.light-theme .contact-field input::placeholder,
body.light-theme .contact-field textarea::placeholder {
    color: #555555;
}

body.light-theme .contact-submit {
    color: #242424;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.90), rgba(235, 235, 235, 0.48));
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 24px rgba(0, 0, 0, 0.07);
}

body.light-theme .contact-submit:hover {
    border-color: rgba(201, 161, 108, 0.9);
}


/* =========================================
   RESPONSIVE
========================================= */

.contact-field input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
}

.contact-social-list {
    display: flex;
    flex-direction: column;
    max-width: 280px;
    margin-top: 28px;
}

.contact-social-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 4px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: opacity .25s ease, transform .25s ease;
}

.contact-socials {
    margin-top: 38px;
}

.social-heading {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--muted);
    margin-bottom: 18px;
    font-weight: 600;
}

.contact-social-list a:hover {
    opacity: .7;
    transform: translateX(5px);
}

.contact-social-list a i {
    font-size: 19px;
    width: 22px;
}

.social-arrow {
    margin-left: auto;
    opacity: .6;
}


/* LET'S CONNECT button hover effect */


/* Light theme */

[data-theme="light"] .nav-cta:hover,
[data-theme="light"] .nav-cta:focus-visible {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}


/* Dark theme */

[data-theme="dark"] .nav-cta:hover,
[data-theme="dark"] .nav-cta:focus-visible {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #ffffff !important;
}


/* Ensure child text follows hover color */

.nav-cta:hover *,
.nav-cta:focus-visible * {
    color: inherit !important;
}