/* 2026 - Utku Sakallıoğlu - utkusakallioglu.com */
:root {
    --c-bg: #0f1419;
    --c-bg-alt: #1a2332;
    --c-surface: #1e2d3d;
    --c-surface2: #243447;
    --c-accent: #ed7325;
    --c-accent2: #ed7325;
    --c-text: #e2e8f0;
    --c-text-dim: #94a3b8;
    --c-white: #fff;
    --c-border: #ffffff14;
    --c-glass: #0f1419a6;
    --c-glass-border: #ffffff1f;
    --ff-sans: "Inter", system-ui, -apple-system, sans-serif;
    --fs-base: clamp(1rem, .95rem + .25vw, 1.125rem);
    --fs-sm: clamp(.8rem, .77rem + .15vw, .9rem);
    --fs-lg: clamp(1.25rem, 1.1rem + .75vw, 1.75rem);
    --fs-xl: clamp(1.75rem, 1.3rem + 2.25vw, 3rem);
    --fs-hero: clamp(2.25rem, 1.5rem + 3.75vw, 4.5rem);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 50%;
    --shadow-card: 0 4px 24px #00000040;
    --shadow-glow: 0 0 40px #0ea5e926;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --header-h: 64px
}

@media (prefers-color-scheme:light) {
    :root {
        --c-bg: #f3f6fa;
        --c-bg-alt: #e8eef5;
        --c-surface: #fff;
        --c-surface2: #d8e2ee;
        --c-text: #1f2937;
        --c-text-dim: #4b5563;
        --c-white: #0f172a;
        --c-border: #0f172a1f;
        --c-glass: #f3f6facc;
        --c-glass-border: #0f172a24
    }
}

html[data-theme=dark] {
    --c-bg: #0f1419;
    --c-bg-alt: #1a2332;
    --c-surface: #1e2d3d;
    --c-surface2: #243447;
    --c-text: #e2e8f0;
    --c-text-dim: #94a3b8;
    --c-white: #fff;
    --c-border: #ffffff14;
    --c-glass: #0f1419a6;
    --c-glass-border: #ffffff1f
}

html[data-theme=light] {
    --c-bg: #f3f6fa;
    --c-bg-alt: #e8eef5;
    --c-surface: #fff;
    --c-surface2: #d8e2ee;
    --c-text: #1f2937;
    --c-text-dim: #4b5563;
    --c-white: #0f172a;
    --c-border: #0f172a1f;
    --c-glass: #f3f6facc;
    --c-glass-border: #0f172a24
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    -webkit-text-size-adjust: 100%
}

body {
    font-family: var(--ff-sans);
    font-size: var(--fs-base);
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
    overflow-x: hidden
}

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

a {
    color: var(--c-accent2);
    transition: color var(--transition);
    text-decoration: none
}

a:hover {
    color: var(--c-white)
}

.skip-link {
    z-index: 10001;
    background: var(--c-accent);
    color: var(--c-white);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-weight: 600;
    transition: top .25s;
    position: fixed;
    top: -100%;
    left: 16px
}

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

:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 3px
}

.site-header {
    z-index: 1000;
    background: var(--c-glass);
    -webkit-backdrop-filter: blur(16px)saturate(180%);
    border-bottom: 1px solid var(--c-glass-border);
    width: 100%;
    transition: top .35s cubic-bezier(.4, 0, .2, 1);
    position: fixed;
    top: -80px;
    left: 0
}

.site-header.visible {
    top: 0
}

.site-header.at-top {
    -webkit-backdrop-filter: none;
    background: 0 0;
    border-bottom-color: #0000
}

.site-header.at-top .nav-list a,
.site-header.at-top .site-logo {
    color: #fff;
    opacity: 1
}

.site-header.at-top .menu-toggle span {
    background-color: #fff;
}

.site-header.menu-open .menu-toggle span {
    background-color: var(--c-white) !important;
}

.site-header.at-top .nav-list a:hover {
    background: #ffffff1f
}

.site-header.menu-open {
    -webkit-backdrop-filter: none;
    background: var(--c-bg)
}

.header-inner {
    max-width: 1200px;
    height: var(--header-h);
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 24px;
    display: flex
}

.header-actions {
    align-items: center;
    gap: 8px;
    display: flex
}

.site-logo {
    color: var(--c-white);
    letter-spacing: -.5px;
    font-size: 1.1rem;
    font-weight: 700
}

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

.nav-list a {
    color: var(--c-text);
    opacity: .9;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    display: block
}

.nav-list a:hover {
    color: var(--c-white);
    opacity: 1;
    background: #ffffff0f
}

.theme-toggle {
    cursor: pointer;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 9999px;
    align-items: center;
    width: 56px;
    height: 32px;
    padding: 4px;
    transition: all .3s;
    display: flex;
    position: relative
}

.theme-toggle .icons {
    z-index: 2;
    text-align: center;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: calc(100% - 8px);
    height: 100%;
    margin: 0 4px;
    display: grid;
    position: relative
}

.theme-toggle .thumb {
    z-index: 1;
    background: #fff;
    border-radius: 9999px;
    width: 24px;
    height: 24px;
    transition: transform .3s;
    position: absolute;
    top: 4px;
    left: 4px;
    transform: translate(24px)
}

.theme-toggle .icon {
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    transition: transform .2s;
    display: inline-flex;
    transform: translate(0)
}

.theme-toggle .icon.moon {
    color: #9ca3af;
    opacity: .75
}

.theme-toggle .icon.sun {
    color: #6b7280;
    opacity: .85;
    padding-left: 5px
}

.theme-toggle .icon svg {
    fill: currentColor;
    width: 16px;
    height: 16px;
    display: block
}

.theme-toggle .icon.sun svg {
    width: 18px;
    height: 18px
}

html[data-theme=dark] .theme-toggle {
    background: #27272a;
    border-color: #ffffff1a
}

html[data-theme=dark] .theme-toggle .thumb {
    transform: translate(0)
}

html[data-theme=dark] .theme-toggle .icon.moon {
    color: var(--c-accent);
    opacity: 1;
    transform: translate(-1px)
}

html[data-theme=dark] .theme-toggle .icon.sun {
    color: #9ca3af;
    opacity: .65
}

html[data-theme=light] .theme-toggle .icon.sun {
    color: var(--c-accent);
    opacity: 1;
    transform: translate(1px)
}

html[data-theme=light] .theme-toggle .icon.moon {
    color: #9ca3af;
    opacity: .65
}

.menu-toggle {
    cursor: pointer;
    z-index: 1001;
    background: 0 0;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    display: none
}

.menu-toggle span {
    background: var(--c-white);
    width: 24px;
    height: 2px;
    transition: all var(--transition);
    border-radius: 2px;
    display: block
}

.menu-toggle.active span:first-child {
    transform: translateY(7px)rotate(45deg)
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px)rotate(-45deg)
}

.hero {
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    display: flex;
    position: relative;
    overflow: hidden
}

.hero-bg {
    z-index: 0;
    background-image: url(../img/background.jpg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    inset: 0
}

.hero-overlay {
    z-index: 1;
    background: radial-gradient(#0e141b80 0, #0e141be0 100%);
    position: absolute;
    inset: 0
}

.hero-content {
    z-index: 2;
    width: 100%;
    padding: 24px 5%;
    position: relative
}

.hero-headshot {
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid #ffffff26;
    width: 180px;
    height: 180px;
    margin: 0 auto 28px;
    animation: 6s ease-in-out infinite hero-float;
    box-shadow: 0 8px 32px #0006
}

@keyframes hero-float {

    0%,
    to {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.hero-title {
    font-size: clamp(2rem, 1.3rem + 3.5vw, 4rem);
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.1
}

.hero-subtitle {
    font-size: clamp(1.5rem, 1.3rem + 1vw, 2.15rem);
    color: #e6f4ff;
    text-shadow: 0 2px 10px #00000073;
    margin-bottom: 24px;
    font-weight: 400
}

.hero-logo {
    opacity: .85;
    max-width: 300px;
    margin: 0 auto 32px
}

@media (width>=641px) {
    .hero-content {
        text-align: left
    }

    .hero-headshot {
        margin: 0 0 28px
    }

    .hero-logo {
        margin: 0 0 32px
    }
}

.scroll-indicator {
    z-index: 2;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    animation: 2s ease-in-out infinite scroll-bounce;
    display: flex;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%)
}

.scroll-indicator svg {
    stroke: #fff;
    width: 24px;
    height: 24px
}

@keyframes scroll-bounce {

    0%,
    to {
        transform: translate(-50%)translateY(0)
    }

    50% {
        transform: translate(-50%)translateY(8px)
    }
}

.section {
    padding: 80px 24px
}

.section--alt {
    background: var(--c-bg-alt)
}

.section--surface {
    background: var(--c-surface)
}

.section--parallax {
    background-position: 50%;
    background-size: cover;
    background-attachment: fixed;
    position: relative
}

.section--parallax:before {
    content: "";
    background: #0f1419bf;
    position: absolute;
    inset: 0
}

.section--parallax>* {
    z-index: 1;
    position: relative
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto
}

.section-title {
    font-size: var(--fs-xl);
    color: var(--c-white);
    letter-spacing: -1px;
    border-left: 4px solid var(--c-accent);
    margin-bottom: 48px;
    padding-left: 20px;
    font-weight: 800;
    line-height: 1.2
}

#photos .section-title {
    color: #fff
}

.reveal {
    opacity: 0;
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
    transform: translateY(30px)
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

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

.glance-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    padding: 24px
}

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

.glance-label {
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600
}

.glance-value {
    color: var(--c-white);
    font-size: 1.15rem;
    font-weight: 600
}

.edu-mobile-break {
    display: none
}

.about-text p {
    color: var(--c-text);
    margin-bottom: 20px;
    line-height: 1.8
}

.about-text p:last-child {
    margin-bottom: 0
}

.services-block {
    margin-top: 30px
}

.services-title {
    color: var(--c-white);
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 700
}

.services-list {
    margin: 8px 0 0;
    padding-left: 26px
}

.services-list li {
    color: var(--c-text);
    margin-bottom: 8px;
    line-height: 1.7
}

.services-list li:last-child {
    margin-bottom: 0
}

#cv .section-title {
    font-size: clamp(2rem, 3.4vw, 2.4rem)
}

.cv-category {
    margin-bottom: 56px
}

.cv-category:last-child {
    margin-bottom: 0
}

.cv-category-title {
    font-size: var(--fs-lg);
    color: var(--c-accent2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 28px;
    font-weight: 700
}

.timeline {
    padding-left: 28px;
    position: relative
}

.timeline:before {
    content: "";
    height: var(--timeline-total-h, calc(100% - 24px));
    background: var(--c-surface2);
    z-index: 0;
    width: 2px;
    position: absolute;
    top: 12px;
    left: -1px
}

.timeline:after {
    content: "";
    width: 2px;
    height: calc(var(--timeline-total-h, calc(100% - 24px)) * (var(--timeline-progress, 0)/ 100));
    z-index: 0;
    background: linear-gradient(#d25e15 0, #ed7325 100%);
    transition: height .2s linear;
    position: absolute;
    top: 12px;
    left: -1px;
    box-shadow: 0 0 18px #ed732573
}

.timeline-item {
    z-index: 1;
    padding-bottom: 32px;
    position: relative
}

.timeline-item:last-child {
    padding-bottom: 0
}

.timeline-item:before {
    content: "";
    border-radius: var(--radius-full);
    background: var(--c-accent);
    border: 2px solid var(--c-bg);
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 3px var(--c-surface2);
    z-index: 2;
    transition: transform .35s, box-shadow .35s, background-color .35s;
    position: absolute;
    top: 6px;
    left: -34px;
    transform: scale(1)
}

.timeline-item .timeline-date,
.timeline-item .timeline-desc,
.timeline-item .timeline-duration,
.timeline-item .timeline-org,
.timeline-item .timeline-role {
    opacity: .2;
    transition: opacity .45s, transform .45s;
    transform: translate(-28px)
}

.timeline-item.reached .timeline-date,
.timeline-item.reached .timeline-desc,
.timeline-item.reached .timeline-duration,
.timeline-item.reached .timeline-org,
.timeline-item.reached .timeline-role {
    opacity: 1;
    transform: translate(0)
}

.timeline-item.reached:before {
    background: #e17f42;
    transform: scale(1.14);
    box-shadow: 0 0 0 3px #ed732552, 0 0 18px #ed732580
}

.timeline-item.current:before {
    animation: 1.2s ease-in-out infinite timeline-dot-pulse;
    transform: scale(1.3)
}

@keyframes timeline-dot-pulse {

    0%,
    to {
        box-shadow: 0 0 0 3px #ed732559, 0 0 12px #ed732573
    }

    50% {
        box-shadow: 0 0 0 6px #ed732533, 0 0 24px #ed7325bf
    }
}

.timeline-role {
    color: var(--c-white);
    margin-bottom: 4px;
    font-size: 1.2rem;
    font-weight: 700
}

.timeline-org {
    color: var(--c-text);
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 500
}

.timeline-date {
    color: var(--c-accent);
    background: #0ea5e91a;
    border-radius: 100px;
    margin-bottom: 8px;
    padding: 3px 10px;
    font-size: .9rem;
    font-weight: 600;
    display: inline-block
}

.timeline-duration {
    color: var(--c-text-dim);
    background: #ffffff0f;
    border-radius: 100px;
    margin-left: 6px;
    padding: 2px 10px;
    font-size: .85rem;
    font-weight: 600;
    display: inline-block
}

.timeline-desc {
    color: var(--c-text);
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6
}

.btn {
    font-family: var(--ff-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex
}

.btn--primary {
    background: var(--c-accent);
    color: #fff
}

.btn--primary:hover {
    background: var(--c-accent2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #0ea5e94d
}

.btn--outline {
    color: var(--c-white);
    background: 0 0;
    border: 2px solid #fff3
}

.btn--outline:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    transform: translateY(-2px)
}

html[data-theme=light] .btn--outline {
    border-color: var(--c-accent);
    color: var(--c-accent)
}

html[data-theme=light] .btn--outline:hover {
    background: #ed732514
}

.btn-group {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    display: flex
}

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    display: grid;
    align-items: flex-start;
}

.gallery-card {
    border-radius: var(--radius-md);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    transition: all var(--transition);
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden
}

.gallery-card--button {
    text-align: left;
    width: 100%;
    font: inherit;
    background: transparent;
    color: inherit;
    border: 1px solid var(--c-border);
    -webkit-appearance: none;
    appearance: none;
    padding: 0 !important;
    line-height: normal;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.gallery-card--button:focus {
    outline: 0
}

.gallery-card--button:focus-visible {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px #0ea5e940
}

.gallery-card:hover {
    border-color: var(--c-accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px)
}

.gallery-card--book {
    width: min(320px, 100%);
    margin: 0 auto;
    line-height: 0;
    display: block
}

.gallery-book-wrap {
    justify-content: center;
    margin-top: 22px;
    display: flex
}

.gallery-image-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    font-size: 0;
    line-height: 0;
}

.gallery-card--button .gallery-image-wrap {
    height: clamp(220px, 23vw, 300px);
}

.gallery-card--book .gallery-image-wrap {
    aspect-ratio: 3/4;
    height: clamp(280px, 55vw, 430px);
}

.gallery-image-wrap img {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    object-fit: cover;
    object-position: center;
    border: 0;
    display: block;
    margin: 0;
    transition: transform .5s;
}

.gallery-card--button:before {
    content: "";
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    background: #0f141924;
    position: absolute;
    inset: 0
}

.gallery-card--button:after {
    content: "";
    opacity: 0;
    width: 56px;
    height: 56px;
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
    background-color: #0f1419b8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cline x1='20' y1='20' x2='15.5' y2='15.5'/%3E%3C/svg%3E");
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 26px 26px;
    border: 1px solid #ffffff59;
    border-radius: 999px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)scale(.82);
    box-shadow: 0 10px 24px #00000059
}

.gallery-card--button:focus-visible:before,
.gallery-card--button:hover:before {
    opacity: 1
}

.gallery-card--button:focus-visible:after,
.gallery-card--button:hover:after {
    opacity: 1;
    transform: translate(-50%, -50%)scale(1)
}

.gallery-card--book:before {
    content: "";
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    background: #0f141924;
    position: absolute;
    inset: 0
}

.gallery-card--book:after {
    content: "";
    opacity: 0;
    width: 56px;
    height: 56px;
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
    background-color: #0f1419b8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='14' y2='17'/%3E%3C/svg%3E");
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 26px 26px;
    border: 1px solid #ffffff59;
    border-radius: 999px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)scale(.82);
    box-shadow: 0 10px 24px #00000059
}

.gallery-card--book:focus-visible:before,
.gallery-card--book:hover:before {
    opacity: 1
}

.gallery-card--book:focus-visible:after,
.gallery-card--book:hover:after {
    opacity: 1;
    transform: translate(-50%, -50%)scale(1)
}

.gallery-card--button:hover .gallery-image-wrap img {
    transform: scale(1.07)
}

.gallery-card--book:focus-visible img,
.gallery-card--book:hover img {
    transform: scale(1.04)
}

.gallery-caption {
    background: var(--c-surface);
    color: var(--c-text);
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    display: block
}

.lightbox {
    z-index: 9999;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    background: #000000eb;
    justify-content: center;
    align-items: center;
    transition: opacity .3s, visibility .3s;
    display: flex;
    position: fixed;
    inset: 0
}

.lightbox.active {
    opacity: 1;
    visibility: visible
}

.lightbox img {
    border-radius: var(--radius-sm);
    max-width: 90vw;
    max-height: 85vh;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    transform: scale(.9);
    box-shadow: 0 16px 64px #00000080
}

.lightbox.active img {
    transform: scale(1)
}

.lightbox-caption {
    color: #e2e8f0;
    text-align: center;
    background: #0f1419b8;
    border: 1px solid #94a3b833;
    border-radius: 10px;
    width: min(92vw, 880px);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%)
}

.lightbox-close {
    border-radius: var(--radius-full);
    cursor: pointer;
    width: 48px;
    height: 48px;
    transition: all var(--transition);
    background: #ffffff1a;
    border: none;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    top: 20px;
    right: 24px
}

.lightbox-close:hover {
    background: #fff3
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--c-white)
}

.lightbox-nav {
    border-radius: var(--radius-full);
    cursor: pointer;
    width: 48px;
    height: 48px;
    transition: all var(--transition);
    background: #ffffff1a;
    border: none;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%)
}

.lightbox-nav:hover {
    background: #fff3
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    stroke: var(--c-white)
}

.lightbox-prev {
    left: 20px
}

.lightbox-next {
    right: 20px
}

.training-content {
    text-align: center
}

.training-content p {
    color: var(--c-text);
    max-width: 700px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto
}

.contact-wrapper {
    max-width: 640px;
    margin: 0 auto
}

.contact-form {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 36px
}

.form-group {
    margin-bottom: 20px
}

.form-group label {
    color: var(--c-text);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    display: block
}

.form-group input,
.form-group textarea {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-bg-alt);
    width: 100%;
    color: var(--c-white);
    font-family: var(--ff-sans);
    font-size: var(--fs-base);
    transition: border-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
    padding: 14px 16px
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--c-accent);
    outline: 0;
    box-shadow: 0 0 0 3px #0ea5e926
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--c-text-dim);
    opacity: .5
}

.form-group textarea {
    resize: vertical;
    min-height: 140px
}

.captcha-wrap {
    margin-bottom: 24px
}

.form-submit {
    background: var(--c-accent);
    width: 100%;
    color: #fff;
    font-family: var(--ff-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700
}

.form-submit:hover {
    background: var(--c-accent2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #0ea5e94d
}

.form-error {
    color: var(--c-white);
    border-radius: var(--radius-sm);
    background: #ef4444;
    margin-top: 6px;
    padding: 8px 14px;
    font-size: 13px
}

.form-success {
    color: #4ade80;
    border-radius: var(--radius-md);
    text-align: center;
    background: #22c55e1a;
    border: 1px solid #22c55e4d;
    padding: 20px;
    font-weight: 600
}

.site-footer {
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
    text-align: center;
    padding: 40px 24px
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto
}

.footer-links {
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    list-style: none;
    display: flex
}

.footer-links a {
    color: var(--c-text);
    transition: color var(--transition);
    font-size: 13px;
    font-weight: 500
}

.footer-links a:hover {
    color: var(--c-accent)
}

.footer-copy {
    color: var(--c-text-dim);
    opacity: .7;
    font-size: .8rem
}

.scroll-top {
    background: var(--c-accent);
    width: 48px;
    height: 48px;
    color: #fff;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 900;
    border: none;
    justify-content: center;
    align-items: center;
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 24px;
    transform: translateY(20px);
    box-shadow: 0 4px 16px #0ea5e94d
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.scroll-top:hover {
    background: var(--c-accent2);
    transform: translateY(-3px)
}

.scroll-top svg {
    stroke: currentColor;
    width: 22px;
    height: 22px
}

@media (width<=1024px) {
    .nav-list {
        display: none
    }

    .menu-toggle {
        display: flex
    }

    .nav-list.open {
        background-color: var(--c-bg);
        z-index: 10000;
        flex-direction: column;
        gap: 4px;
        padding: 100px 32px 32px;
        display: flex;
        position: fixed;
        inset: 0;
        overflow-y: auto
    }

    .nav-list.open a {
        border-radius: var(--radius-sm);
        color: var(--c-text) !important;
        padding: 16px 24px;
        font-size: 1.25rem
    }

    .nav-list.open a:hover {
        background: var(--c-surface);
        color: var(--c-white)
    }

    .menu-toggle,
    .theme-toggle {
        z-index: 10001
    }

    .hero-headshot {
        width: 150px;
        height: 150px
    }

    .hero-logo {
        max-width: 240px
    }

    .section {
        padding: 60px 20px
    }

    .glance-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr))
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))
    }
}

@media (width<=640px) {
    :root {
        --header-h: 56px
    }

    .hero-headshot {
        width: 120px;
        height: 120px
    }

    .header-inner {
        padding: 0 14px
    }

    .header-actions {
        gap: 6px
    }

    .hero-logo {
        max-width: 200px
    }

    .section {
        padding: 48px 16px
    }

    .section-title {
        margin-bottom: 32px;
        font-size: 1.5rem
    }

    .glance-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px
    }

    .glance-grid .glance-card:last-child {
        grid-column: 1/-1
    }

    .edu-mobile-break {
        display: block
    }

    .glance-card {
        padding: 18px
    }

    .timeline {
        padding-left: 20px
    }

    .timeline:before {
        top: 11px;
        bottom: 11px;
        left: -1px
    }

    .timeline:after {
        height: calc((100% - 22px) * (var(--timeline-progress, 0)/ 100));
        top: 11px;
        left: -1px
    }

    .timeline-item:before {
        width: 10px;
        height: 10px;
        top: 6px;
        left: -25px
    }

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

    .gallery-card--book img {
        object-position: top
    }

    .contact-form {
        padding: 24px
    }

    .btn {
        padding: 12px 22px;
        font-size: .78rem
    }

    .btn-group {
        flex-direction: column
    }

    .btn-group .btn {
        justify-content: center;
        width: 100%
    }

    .lightbox-nav {
        display: none
    }

    .lightbox img {
        max-width: 95vw
    }

    .scroll-indicator {
        display: flex;
        bottom: 20px
    }
}

@media (prefers-reduced-motion:reduce) {

    *,
    :after,
    :before {
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        animation-duration: 0s !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

@supports (-webkit-touch-callout:none) {
    .section--parallax {
        background-attachment: scroll
    }
}