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

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #9a9a9a;
    --border: #ebebeb;
    --bg2: #f5f4f1;
    --sb: 180px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", system-ui, sans-serif;
    --radius: 12px;
    --green: #22c55e;
    --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);     
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --dur-slide:   1.0s;
    --dur-page:    0.6s;
}

.dark {
  --bg:     #111110;
  --bg2:    #1a1918;
  --text:   #e8e5df;
  --muted:  #777470;
  --border: #2a2927;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.shell {
    display: flex;
    height: 100dvh;
    width: 100vw;
}

.sidebar {
    width: var(--sb);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px 22px;
    background: var(--bg);
    z-index: 10;
    position: relative;
    animation: sidebarIn 0.72s var(--ease-expo) both;
}

@keyframes sidebarIn {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0);     }
}

.sb-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sb-profile {
    position: relative;
}

.sb-avatar {
    width: 50px;
    height: 50px;
    border-radius: 25%;
    object-fit: cover;
    display: block;
    margin-bottom: 9px;
    transition: transform .3s var(--ease-out);
    position: relative;
}

.sb-avatar:hover {
    transform: scale(1.06);
}

.sb-name {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    display: block;
    line-height: 1.1;
    color: var(--text);
    overflow: hidden;
    height: 20px;
    position: absolute;
    top: 5px;
    left: 60px;
}
.sb-name p{
    transition: transform 0.5s var(--ease-out);
    cursor: pointer;
    bottom: 100%;
    position: relative;
}
.sb-name p:hover{
    transform: translateY(20px);
}
.sb-role {
    font-size: 11.5px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
    position: absolute;
    left: 60px;
    top: 20px;
}

.sb-avail {
    padding: 10px 12px;
    background: var(--bg2);
    border-radius: 10px;
    animation: fadeUp .5s var(--ease-out) .3s both;
}

.sb-avail-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.sb-dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: 2.4s ease-in-out infinite pulseGreen;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: rgba(34, 197, 94, 0.5) 0px 0px 0px 0px;
    }

    50% {
        box-shadow: rgba(34, 197, 94, 0) 0px 0px 0px 5px;
    }
}

.sb-avail-lbl {
    font-size: 11px;
    color: var(--text);
    font-weight: 400;
    line-height: 1;
}

.sb-avail-cta {
    font-size: 11.5px;
    color: var(--muted);
    text-decoration: none;
}

.sb-avail-cta:hover {
    color: var(--text);
}

.sb-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeUp .5s var(--ease-out) .15s both;
}

.sb-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 0px;
    text-decoration: none;
}

.sb-dot {
    font-size: 14px;
    opacity: 0;
    width: 10px;
    flex-shrink: 0;
    color: var(--text);
    line-height: 1;
    transition: opacity 0.25s;
}

.sb-link.active .sb-dot {
    opacity: 1;
}

.sb-lbl {
    font-size: 19px;
    font-weight: 300;
    color: var(--muted);
    transition: color 0.2s, transform 0.2s;
}

.sb-link.active .sb-lbl {
    color: var(--text);
}

.sb-link:hover .sb-lbl {
    color: var(--text);
    transform: translateX(2px);
}

.sb-socials {
    display: flex;
    gap: 13px;
    animation: fadeUp .5s var(--ease-out) .4s both;
}

.sb-socials a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: flex;
}

.sb-socials a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.sb-socials svg {
    width: 14px;
    height: 14px;
    fill: currentcolor;
}

#theme-btn {
    position: absolute;
    top: 70px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    left: 25px;

}

#theme-btn:hover {
  color: var(--text);
}

#theme-btn svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 30px; 
  height: 20px;
  stroke: currentColor;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}

.theme-sun  { opacity: 1; transform: rotate(0deg)   scale(1);   }
.theme-moon { opacity: 0; transform: rotate(45deg)  scale(0.6); }

.dark .theme-sun  { opacity: 0; transform: rotate(-45deg) scale(0.6); }
.dark .theme-moon { opacity: 1; transform: rotate(0deg)   scale(1);   }

.main {
    flex: 1 1 0%;
    overflow: hidden auto;
    min-width: 0px;
}

.main::-webkit-scrollbar {
    width: 0px;
}

.page {
    display: none;
    min-height: 100%;
}

.page.active {
    display: block;
    animation: pgIn var(--dur-page) var(--ease-expo);
}

#pg-contact {
    display: none;
}

#pg-contact.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100%;
    animation: pgIn var(--dur-page) var(--ease-expo);
}

@keyframes pgIn {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.gl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 155px 26px 8px;
}

.gl-clip {
    border-radius: var(--radius);
}

.gl-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg2);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px;
    transition: opacity .75s var(--ease-out), transform .75s var(--ease-out), box-shadow 0.6s var(--ease-out);
    margin-bottom: 15px;
}

.gl-card.visible {
    opacity: 1;
    transform: translateY(0px);
}

.gl-card.visible:hover {
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.416) 0px 16px 20px;
}

.gl-card-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
}

.gl-card--featured .gl-card-img {
    aspect-ratio: 21 / 9;
}

.gl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none;
    transition: transform 0.7s var(--ease-expo), filter 0.5s;
}

.gl-card:hover .gl-card-img img {
    will-change: transform;
}


.gl-card-overlay {
    position: absolute;
    inset: 0px;
    background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.22) 100%);
    opacity: 0;
    transition: opacity 0.38s;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 14px;
    border-radius: var(--radius);
}



.gl-card-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    font-size: 12px;
    font-family: var(--sans);
    color: var(--text);
    font-weight: 400;
    padding: 6px 14px;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 3px 14px;
    opacity: 0;
    transform: translateY(-10px) scale(0.94);
    transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out);
    white-space: nowrap;
    pointer-events: none;
}

.gl-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text);
    transition: transform 0.25s;
    margin-left: 10px;
    padding-top: 5px;
}

.gl-loc {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    margin-left: 20px;
}


.gl-card .gl-arr {
    position: absolute;
    font-size: 16px;
    color: var(--muted);
    flex-shrink: 0;
    padding-left: 8px;
    transition: transform 0.25s, color 0.25s;
    line-height: 1;
    bottom: 1.5%;
    right: 5%;
}
.gl-card--featured .gl-arr {
    position: absolute;
    font-size: 16px;
    color: var(--muted);
    flex-shrink: 0;
    padding-left: 8px;
    transition: transform 0.25s, color 0.25s;
    line-height: 1;
    bottom: 1.5%;
    right: 2.1%;
}

.gl-card:hover .gl-arr {
    transform: translate(3px, -2px);
    color: var(--text);
}

.gl-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.proj-page.active {
    display: flex !important;
}

.proj-photos-col {
    flex: 1 1 0%;
    min-width: 0px;
    padding: 20px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proj-back {
    margin-bottom: 4px;
}

.proj-back button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    padding: 0px;
    line-height: 1;
    font-family: var(--sans);
    font-weight: 300;
    transition: color 0.15s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    position: fixed;
}

.proj-back button:hover {
    color: var(--text);
    transform: translateX(-2px);
}

.proj-clip {
    overflow: hidden;
    border-radius: var(--radius);
}

.proj-photo-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    opacity: 1;
    transform: translateY(103%);
    transition: transform var(--dur-slide) var(--ease-expo) var(--reveal-delay, 0ms);
}

.proj-photo-item.visible {
    transform: translateY(0);
}

.proj-photo-item img {
    width: 44.5%;
    display: block;
    object-fit: cover;
    transform: none;
    transition: transform 0.7s var(--ease-expo), filter 0.5s;
    filter: brightness(1);
    position: relative;
    left: 30%;
}


.proj-meta-col {
    width: 200px;
    flex-shrink: 0;
    padding: 20px 22px 60px 0px;
    position: sticky;
    top: 0px;
    height: fit-content;
    align-self: flex-start;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.7s var(--ease-expo) 0.18s, transform 0.7s var(--ease-expo) 0.18s;
    right: 100px;
    text-align: center;
}

.proj-meta-col.visible {
    opacity: 1;
    transform: translateX(0px);
}

.proj-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.28;
    margin-bottom: 22px;
    color: var(--text);
}
.proj-description {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 18px;
    margin-right: 10px;
}
.pm-item {
    margin-bottom: 18px;
}

.pm-key {
    font-size: 12px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 2px;
}

.pm-val {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.pm-count {
    color: var(--text);
    font-weight: 400;
}

.lightbox {
    position: fixed;
    inset: 0px;
    z-index: 1000;
    background: rgba(6, 6, 6, 0.97);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
    animation: lbIn 0.2s var(--ease-expo);
}

@keyframes lbIn {
    from { opacity: 0; transform: scale(0.975); }
    to   { opacity: 1; transform: scale(1);     }
}

.lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 30px;
    line-height: 1;
    transition: color 0.15s, transform 0.2s;
    z-index: 2;
    font-family: var(--sans);
    font-weight: 300;
}

.lb-close:hover {
    color: rgb(255, 255, 255);
    transform: rotate(90deg);
}

.lb-counter {
    position: absolute;
    top: 24px;
    left: 28px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.1em;
    z-index: 2;
    font-family: var(--sans);
}

.lb-img-wrap {
    position: relative;
    width: calc(-120px + 100vw);
    max-height: calc(-180px + 100vh);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.lb-track {
    display: flex;
    width: 100%;
    transition: transform 0.44s var(--ease-smooth);
    will-change: transform;
}

.lb-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-slide img {
    max-width: 100%;
    max-height: calc(-180px + 100vh);
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    color: rgb(255, 255, 255);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    cursor: pointer;
}

.lb-prev {
    left: 16px;
}

.lb-next {
    right: 16px;
}

.lb-prev:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-50%) translateX(-2px);
}

.lb-next:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-50%) translateX(2px);
}

.lb-bottom {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 22px;
    background: linear-gradient(to top, rgba(6, 6, 6, 0.8) 0%, transparent 100%);
    padding-top: 40px;
    z-index: 2;
}

.lb-thumbs {
    display: flex;
    gap: 6px;
    max-width: 90vw;
    overflow-x: auto;
}

.lb-thumbs::-webkit-scrollbar {
    height: 0px;
}

.lb-thumb {
    width: 50px;
    height: 34px;
    border-radius: 5px;
    overflow: hidden;
    opacity: 0.35;
    border: 1.5px solid transparent;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.lb-thumb.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.7);
}

.lb-thumb:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lb-caption {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-style: italic;
    font-family: var(--serif);
    letter-spacing: 0.04em;
}

#pg-about {
    padding: 28px 24px 60px;
}

.about-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    align-items: center;
    margin-bottom: 46px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.82s var(--ease-expo), transform 0.82s var(--ease-expo);
}

.about-top.visible {
    opacity: 1;
    transform: translateY(0px);
}

.about-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    transition: transform .6s var(--ease-out);
}

.about-photo:hover {
    transform: scale(1.01);
}

.about-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 3px;
}

.about-role {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.about-loc {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 28px;
}

.about-conn {
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 3px;
}

.about-cta {
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.about-cta:hover {
    gap: 7px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    border-top: 1px solid var(--border);
    padding-top: 38px;
}

.about-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.78s var(--ease-expo), transform 0.78s var(--ease-expo);
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0px);
}

.about-section:nth-child(1) { transition-delay: 0s;     }
.about-section:nth-child(2) { transition-delay: 0.1s;   }
.about-section:nth-child(3) { transition-delay: 0.19s;  }
.about-section:nth-child(4) { transition-delay: 0.28s;  }

.ab-sec-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 14px;
}

.about-bio {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.8;
    font-style: italic;
}

.about-bio p + p {
    margin-top: 10px;
}

.gear-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gear-lbl {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 7px;

}

.gear-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 9px 11px;
    margin-bottom: 6px;
    transition: box-shadow  1s, transform 1s;

}

.gear-card:hover {
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.416) 0px 16px 20px;
}

.gear-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: var(--bg2);

}

.gear-name {
    font-size: 11.5px;
    color: var(--text);
    line-height: 1.3;
}

/* ════════════════════════════════════════════TIMELINE════════════════════════════════════════════ */

.about-section--full {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 38px;
  margin-top: 4px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.tl-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 32px;
  position: relative;
  padding-bottom: 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s var(--ease-expo), transform 0.65s var(--ease-expo);
}

.tl-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-item:nth-child(1) { transition-delay: 0.00s; }
.tl-item:nth-child(2) { transition-delay: 0.07s; }
.tl-item:nth-child(3) { transition-delay: 0.14s; }
.tl-item:nth-child(4) { transition-delay: 0.21s; }
.tl-item:nth-child(5) { transition-delay: 0.28s; }
.tl-item:nth-child(6) { transition-delay: 0.35s; }

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 1px;
  background: var(--border);
  transition: width 0.25s var(--ease-out), background 0.25s;
}

.tl-item--now::before {
  background: var(--text);
  width: 16px;
}

.tl-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  text-align: right;
  padding-top: 0;
  letter-spacing: 0.01em;
}

.tl-item--now .tl-year {
  color: var(--text);
}

.tl-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.tl-badge {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 8px;
  letter-spacing: 0.04em;
}

.tl-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.78;
  font-style: italic;
}

.contact-left {
    padding: 32px 36px 60px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.ct-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 32px;
}

.ct-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform .3s var(--ease-out);
}

.ct-avatar:hover {
    transform: scale(1.06);
}

.ct-pname {
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    font-weight: 400;
}

.ct-h {
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 9px;
}

.ct-intro {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.78;
    font-style: italic;
    margin-bottom: 28px;
}

.ct-field {
    margin-bottom: 20px;
}

.ct-lbl {
    font-size: 12.5px;
    font-weight: 400;
    margin-bottom: 2px;
}

.ct-val {
    font-size: 12.5px;
    color: var(--muted);
}

.ct-tel {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.ct-tel:hover {
    color: var(--text);
}

.ct-soc {
    display: flex;
    gap: 13px;
    margin-top: 4px;
}

.ct-soc a {
    color: var(--muted);
    transition: color 0.15s, transform 0.2s;
}

.ct-soc a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.ct-soc svg {
    width: 17px;
    height: 17px;
    fill: currentcolor;
}

.ct-note {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.78;
    margin-top: 32px;
    font-style: italic;
}

.contact-right {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-right img {
    width: 100%;
    flex: 1 1 0%;
    object-fit: cover;
    display: block;
    min-height: 0px;
    transition: transform .6s var(--ease-out);
    filter: brightness(0.97);
}

.contact-right img:hover {
    transform: scale(1.02);
    filter: brightness(1);
}

.contact-right img + img {
    border-top: 1px solid var(--border);
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}
/* ════════════════════════════════════════════ACCESSIBILITÉ — h1 caché visuellement mais lisible par Google et les lecteurs d'écran════════════════════════════════════════════ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ════════════════════════════════════════════ACCESSIBILITÉ — focus clavier visible════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
    border-radius: 4px;
}

.sb-link:focus-visible,
.sb-socials a:focus-visible {
    outline-offset: 4px;
}

.lightbox button:focus-visible {
    outline-color: rgba(255, 255, 255, 0.7);
}

/* ════════════════════════════════════════════RESPONSIVE — TABLETTE (≤ 900px)════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --sb: 150px; }

  .gl-grid {
    padding-top: 100px;
    gap: 44px;
  }

  .sb-lbl { font-size: 16px; }
}

/* ════════════════════════════════════════════RESPONSIVE — TABLETTE PORTRAIT (≤ 768px)════════════════════════════════════════════ */
@media (max-width: 768px) {

  .gl-grid {
    grid-template-columns: 1fr;
    padding: 72px 18px 28px;
    gap: 36px;
  }

  .gl-card--featured .gl-card-img {
    aspect-ratio: 16 / 9;
  }

  .proj-page.active {
    flex-direction: column !important;
  }

  .proj-meta-col {
    width: 100%;
    position: static;
    padding: 20px 20px 10px;
    text-align: left;
    order: -1;
    transform: translateY(8px);
    right: 0;
  }

  .proj-meta-col.visible {
    transform: translateY(0);
  }

  .proj-photos-col {
    padding: 0 18px 60px;
  }

  .proj-photo-item img {
    width: 80%;
    left: 10%;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gear-cols {
    grid-template-columns: 1fr 1fr;
  }

  #pg-contact.active {
    grid-template-columns: 1fr;
  }

  .contact-right {
    display: none;
  }

  .contact-left {
    border-right: none;
  }
}

/* ════════════════════════════════════════════RESPONSIVE — MOBILE (≤ 600px)════════════════════════════════════════════ */
@media (max-width: 600px) {

  .shell {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(58px + env(safe-area-inset-bottom));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px env(safe-area-inset-bottom);
    border-top: 1px solid var(--border);
    animation: none;
    flex-shrink: 0;
    z-index: 100;
  }

  .sb-avail,
  .sb-socials a {
    display: none;
  }
#theme-btn {
  position: static;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
    #theme-btn svg {
  left: 360px;
}
  .sb-top {
    display: flex;
    align-items: center;
  }

  .sb-avatar {
    width: 34px;
    height: 34px;
    margin-bottom: 0;
  }

  .sb-name {
    left: 43px;
    font-size: 14px;
  }

  .sb-name p{
    bottom:65%;
  }
  .sb-name p:hover{
    transform: translateY(16px);
  }
  .sb-role {
    left: 43px;
    font-size: 10.5px;
  }

  .sb-profile {
    height: 36px;
  }

  .sb-nav {
    flex-direction: row;
    gap: 22px;
    width: auto;
    animation: none;
    left: 75px;
    position: relative;
  }

  .sb-dot { display: none; }

  .sb-lbl { font-size: 13px; }

  .main {
    height: 100dvh;
    overflow: hidden auto;
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }


  .gl-grid {
    padding: 22px 14px 20px;
    gap: 28px;
  }

  .proj-photo-item img {
    width: 94%;
    left: 3%;
  }

  .proj-meta-col {
    padding: 16px 14px 8px;
  }

  .proj-photos-col {
    padding: 0 14px 60px;
  }

  #pg-about {
    padding: 20px 16px 60px;
  }

  .about-top {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  .about-photo {
    aspect-ratio: 3 / 2;
  }

  .gear-cols {
    grid-template-columns: 1fr;
  }

  .contact-left {
    padding: 24px 16px 60px;
  }

  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }

  .lb-prev,
  .lb-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .lb-thumbs {
    max-width: 95vw;
  }

  .lb-thumb {
    width: 40px;
    height: 28px;
  }
}
/* ═══════════════════════════════SITES PRÉCÉDENTS═══════════════════════════════ */

.prev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.prev-card {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.7s var(--ease-out), box-shadow 0.6s var(--ease-out);
  cursor: default;
}

.prev-card:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0,0,0,0.28) 0px 14px 20px;
}

.prev-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prev-card-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

.prev-card-tag {
  font-family: var(--sans);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
}

.prev-card-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}

.prev-card-desc {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.75;
  flex: 1;
}

.prev-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.prev-card-stack {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.prev-card-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.prev-card-link:hover { color: var(--text); }

.prev-inline {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.prev-inline:hover { text-decoration-color: var(--muted); }

@media (max-width: 640px) {
  .prev-grid { grid-template-columns: 1fr; }
}