:root {
  --ink: #151919;
  --paper: #f4f7f6;
  --surface: #ffffff;
  --white: #ffffff;
  --blue: #cfe7df;
  --line: rgba(21, 25, 25, 0.14);
  --pad: clamp(18px, 3.2vw, 52px);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, video { display: block; width: 100%; }
::selection { background: var(--blue); color: var(--ink); }

.site-header {
  position: fixed; z-index: 50; inset: 12px 0 auto; height: 64px; padding: 0 var(--pad);
  color: white; transition: height .3s ease, color .3s ease;
  pointer-events: none;
}
.header-inner { width: min(100%, var(--content)); height: 100%; margin: 0 auto; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(12,20,20,.18); box-shadow: 0 12px 35px rgba(0,0,0,.08); backdrop-filter: blur(16px) saturate(130%); pointer-events: auto; transition: padding .3s ease, background .3s ease, border-color .3s ease, border-radius .3s ease; }
.site-header.scrolled { color: var(--ink); }
.site-header.scrolled .header-inner { padding: 0 18px; border-color: var(--line); border-radius: 18px; background: rgba(244,247,246,.82); box-shadow: 0 12px 35px rgba(30,85,94,.1); backdrop-filter: blur(20px) saturate(145%); }
.site-header.menu-open .header-inner { border-color: rgba(21,25,25,.14); background: rgba(244,247,246,.72); }
.brand { position: relative; z-index: 3; justify-self: start; font: 800 21px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.025em; }
.brand span { margin-left: 3px; font-size: 12px; vertical-align: top; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 34px); font-size: 13px; font-weight: 600; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .25s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.contact-pill { justify-self: end; padding: 10px 16px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; transition: background .2s, color .2s; }
.contact-pill:hover { border-color: white; background: rgba(255,255,255,.94); color: #151919; }
.site-header.scrolled .contact-pill:hover { border-color: #151919; background: #151919; color: white; }
.menu-toggle { display: none; border: 0; padding: 8px 0; background: transparent; }
.mobile-menu-contact { display: none; }
.cursor-ring,
.cursor-dot { position: fixed; z-index: 10000; top: 0; left: 0; pointer-events: none; opacity: 0; mix-blend-mode: difference; will-change: transform, width, height; }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.88); border-radius: 50%; background: rgba(255,255,255,.035); transition: width .2s ease, height .2s ease, opacity .18s ease, background .2s ease; }
.cursor-dot { width: 5px; height: 5px; border-radius: 50%; background: white; transition: opacity .12s ease, width .18s ease, height .18s ease; }
.cursor-ring.is-visible,
.cursor-dot.is-visible { opacity: 1; }
.cursor-ring.is-interactive { width: 48px; height: 48px; background: rgba(255,255,255,.12); }
.cursor-dot.is-interactive { width: 4px; height: 4px; }
.cursor-ring.is-pressed { width: 27px; height: 27px; }
.cursor-ring.is-media,
.cursor-dot.is-media { mix-blend-mode: normal; }
.cursor-ring.is-media { width: 54px; height: 54px; border-color: rgba(255,255,255,.96); background: rgba(8,15,16,.28); box-shadow: 0 0 0 1px rgba(0,0,0,.58), 0 5px 18px rgba(0,0,0,.28); backdrop-filter: blur(2px); }
.cursor-dot.is-media { width: 6px; height: 6px; background: white; box-shadow: 0 0 0 1px rgba(0,0,0,.72), 0 0 8px rgba(255,255,255,.75); }
.cursor-ring.is-hero { width: 44px; height: 44px; border-color: #7beaff; background: rgba(4,26,31,.3); box-shadow: 0 0 0 1px rgba(0,0,0,.62), 0 0 18px rgba(73,220,239,.42); }
.cursor-dot.is-hero { width: 7px; height: 7px; background: #9cf3ff; box-shadow: 0 0 0 1px rgba(0,0,0,.78), 0 0 10px rgba(92,229,246,.9); }
.cursor-ring.is-lightbox,
.cursor-dot.is-lightbox { mix-blend-mode: normal; }
.cursor-ring.is-lightbox { width: 52px; height: 52px; border-color: white; background: rgba(255,255,255,.09); box-shadow: 0 0 0 1px rgba(0,0,0,.82), 0 0 20px rgba(255,255,255,.34); backdrop-filter: blur(3px); }
.cursor-dot.is-lightbox { width: 7px; height: 7px; background: white; box-shadow: 0 0 0 1px rgba(0,0,0,.9), 0 0 11px rgba(255,255,255,.95); }
@media (hover: hover) and (pointer: fine) {
  html.cursor-enhanced,
  html.cursor-enhanced * { cursor: none !important; }
}
.back-to-top { position: fixed; z-index: 45; right: clamp(14px, 2.2vw, 34px); bottom: clamp(18px, 3vw, 42px); min-width: 92px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; color: var(--ink); background: linear-gradient(135deg, rgba(235,239,238,.82), rgba(188,197,195,.56)); box-shadow: inset 0 1px white, 0 12px 32px rgba(39,58,58,.14); backdrop-filter: blur(16px) saturate(125%); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px) scale(.96); transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.back-to-top:hover { background: rgba(245,247,246,.94); }
.back-to-top b { font-size: 18px; line-height: 1; font-weight: 500; }

.hero { position: relative; height: 100svh; min-height: 650px; overflow: hidden; color: white; background: #282828; }
.hero-video,
.hero-slideshow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; }
.hero-slideshow { overflow: hidden; background: #263231; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; filter: blur(15px) saturate(.88) contrast(1.04); transform: scale(1.035); transition: opacity 1.25s ease, filter 1.35s ease, transform 1.7s cubic-bezier(.2,.72,.2,1); will-change: opacity, filter, transform; }
.hero-slide.active { opacity: 1; filter: blur(0) saturate(.92) contrast(1.04); transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.04) 40%, rgba(0,0,0,.43)); }
.hero-meta { position: absolute; z-index: 2; left: max(var(--pad), calc((100% - var(--content)) / 2)); right: max(var(--pad), calc((100% - var(--content)) / 2)); top: 104px; display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.7); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.hero-meta { animation: hero-meta-in 1.05s .18s cubic-bezier(.2,.72,.2,1) both; }
.hero-glass {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(32px, 7vh, 84px); transform: translateX(-50%);
  width: min(92vw, 920px); padding: clamp(20px, 3.2vw, 44px); overflow: hidden;
  border: 1px solid rgba(255,255,255,.38); border-radius: clamp(22px, 3vw, 42px);
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 24px 80px rgba(0,0,0,.2);
  backdrop-filter: blur(22px) saturate(145%);
}
.hero-glass::before { content: ""; position: absolute; width: 45%; height: 160%; left: -18%; top: -55%; transform: rotate(22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); pointer-events: none; }
.hero-glass p { margin: 0 0 26px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.hero-glass h1 { margin: 0; display: grid; gap: clamp(5px, .55vw, 9px); font: 700 clamp(48px, 6.7vw, 96px)/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.hero-glass h1 span { display: block; white-space: nowrap; }
.hero-glass a { margin-top: 34px; display: flex; justify-content: space-between; align-items: center; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.55); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hero-glass a span { font-size: 18px; }
.hero-glass { animation: hero-glass-in 1.3s .28s cubic-bezier(.2,.72,.2,1) both; }
@keyframes hero-meta-in { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
@keyframes hero-glass-in { from { opacity: 0; filter: blur(7px); transform: translate(-50%, 18px) scale(.99); } to { opacity: 1; filter: none; transform: translateX(-50%); } }

.portfolio-feature { --feature-pad: clamp(70px, 9vw, 130px); --feature-gutter: max(var(--pad), calc((100% - var(--content)) / 2)); position: relative; height: min(86svh, 920px); margin: 0; padding-block: var(--feature-pad); padding-inline: var(--feature-gutter); overflow: hidden; background: var(--paper); }
.portfolio-feature > img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; border-radius: clamp(24px, 3vw, 46px); filter: saturate(.9) contrast(1.04); }
.feature-glass { position: absolute; z-index: 2; left: calc(var(--feature-gutter) + clamp(16px, 2.4vw, 36px)); right: calc(var(--feature-gutter) + clamp(16px, 2.4vw, 36px)); bottom: calc(var(--feature-pad) + clamp(16px, 2.4vw, 36px)); padding: clamp(16px, 2vw, 26px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; color: var(--ink); border: 1px solid rgba(255,255,255,.78); border-radius: clamp(16px, 2vw, 26px); background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,255,255,.46)); box-shadow: inset 0 1px rgba(255,255,255,.8), 0 12px 34px rgba(12,34,36,.1); backdrop-filter: blur(16px) saturate(130%); }
.feature-glass span { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.feature-glass span:last-child { text-align: right; }
.feature-glass strong { font: 600 clamp(22px, 3.2vw, 46px)/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.02em; }

.portfolio { position: relative; background: var(--paper); }
.category { position: relative; padding: clamp(72px, 9vw, 130px) var(--pad) clamp(100px, 13vw, 190px); overflow-x: clip; scroll-margin-top: 62px; }
.category::before { content: ""; position: absolute; z-index: 0; width: clamp(220px, 35vw, 560px); aspect-ratio: 1.35; top: clamp(32px, 5vw, 72px); right: clamp(-110px, -5vw, -28px); border-radius: 50%; background: rgba(71,211,238,.32); filter: blur(clamp(45px, 7vw, 105px)); pointer-events: none; }
.category:first-child::before { top: clamp(170px, 15vw, 240px); opacity: .58; }
.category > * { position: relative; z-index: 1; }
.category-inner { width: min(100%, var(--content)); margin: 0 auto; }
.category-head { padding: clamp(22px, 2.6vw, 36px); display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(250px, 350px); gap: clamp(18px, 2.2vw, 32px); align-items: center; overflow: hidden; color: #151919; border: 1px solid rgba(255,255,255,.88); border-radius: clamp(22px, 2.8vw, 38px); background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,255,255,.46)); box-shadow: inset 0 1px white, 0 20px 54px rgba(21,80,91,.1); backdrop-filter: blur(24px) saturate(135%); }
.category-head::after { content: ""; position: absolute; width: 42%; aspect-ratio: 1; right: -18%; top: -110%; border-radius: 50%; background: rgba(255,255,255,.66); filter: blur(16px); pointer-events: none; }
.category-number { font-size: 13px; font-weight: 600; }
.category-title { margin: 0; font: 700 clamp(52px, 6vw, 88px)/.94 "Plus Jakarta Sans", sans-serif; letter-spacing: -.022em; text-transform: uppercase; }
.category-caption { max-width: 36ch; margin: 0; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.55; }
.project-nav { margin: clamp(28px, 4vw, 52px) 0 clamp(34px, 4.5vw, 58px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.project-card { position: relative; min-width: 0; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 16px; background: #dce7e5; box-shadow: 0 10px 28px rgba(31,98,109,.1); cursor: pointer; isolation: isolate; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.project-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 38%, rgba(8,17,18,.36)); pointer-events: none; }
.project-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.project-card-glass { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: end; gap: 12px; color: white; text-align: left; border: 1px solid rgba(255,255,255,.42); border-radius: 11px; background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.09)); box-shadow: inset 0 1px rgba(255,255,255,.34); backdrop-filter: blur(16px) saturate(135%); }
.project-card-glass strong { font: 650 14px/1.22 "Plus Jakarta Sans", sans-serif; letter-spacing: -.01em; }
.project-card-glass small { flex: 0 0 auto; font-size: 12px; line-height: 1.2; opacity: .82; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(28,129,147,.17); }
.project-card:hover img { transform: scale(1.035); filter: saturate(1.05); }
.project-card.active { border-color: #39c7e2; box-shadow: 0 0 0 3px rgba(57,199,226,.22), 0 16px 42px rgba(28,129,147,.2); }
.project-card.active .project-card-glass { background: linear-gradient(135deg, rgba(60,207,234,.6), rgba(12,112,132,.28)); border-color: rgba(255,255,255,.72); }
.project-card.cover-missing { background: radial-gradient(circle at 70% 20%, rgba(75,210,235,.5), transparent 38%), linear-gradient(135deg, #93a8a7, #344947); }
.gallery-meta { margin: 0 0 18px; display: flex; justify-content: space-between; align-items: end; }
.gallery-meta h3 { margin: 0; font: 600 clamp(23px, 2.55vw, 37px)/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.018em; }
.gallery-meta span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.gallery-shell { position: relative; max-height: clamp(760px, 94vw, 1280px); overflow: hidden; border-radius: 18px; transition: max-height .95s cubic-bezier(.2,.72,.2,1); }
.gallery-shell.show-complete { max-height: none; overflow: visible; }
.masonry { columns: 4 260px; column-gap: 10px; transition: opacity .65s ease, filter .65s ease, transform .65s ease; }
.gallery-shell.is-changing .masonry { opacity: 0; filter: blur(8px); transform: translateY(8px); }
.photo-card { position: relative; width: 100%; margin: 0 0 10px; padding: 0; display: block; break-inside: avoid; border: 1px solid rgba(255,255,255,.82); border-radius: 10px; background: rgba(255,255,255,.58); box-shadow: 0 9px 28px rgba(50,176,202,.1), 0 2px 8px rgba(25,35,35,.08); cursor: zoom-in; overflow: hidden; }
.photo-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 20px rgba(255,255,255,.06); pointer-events: none; }
.photo-card img { width: 100%; height: auto; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s; }
.photo-card:hover img { transform: scale(1.022); filter: none; }
.gallery-shell.is-revealing .photo-card { animation: photo-reveal 1.05s cubic-bezier(.2,.72,.2,1) both; animation-delay: calc(var(--reveal-index) * 52ms); }
@keyframes photo-reveal { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.gallery-fade { position: absolute; z-index: 2; inset: auto 0 0; height: 27%; display: none; pointer-events: none; background: linear-gradient(to bottom, transparent 0%, rgba(244,247,246,.22) 42%, rgba(244,247,246,.82) 86%, #f4f7f6 100%); transition: opacity .55s ease; }
.gallery-shell.has-overflow .gallery-fade { display: block; }
.expand-gallery { position: absolute; z-index: 3; left: 50%; bottom: clamp(20px, 2.4vw, 38px); transform: translateX(-50%); width: min(90%, 560px); padding: clamp(15px, 1.7vw, 21px) clamp(18px, 2.6vw, 32px); display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255,255,255,.9); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.72); box-shadow: inset 0 1px white, 0 12px 34px rgba(35,151,174,.14); font: 600 clamp(15px, 1.7vw, 22px)/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.01em; cursor: pointer; backdrop-filter: blur(16px) saturate(135%); transition: background .2s, transform .2s; }
.expand-gallery[hidden] { display: none !important; }
.expand-gallery:hover { background: rgba(255,255,255,.94); transform: translateX(-50%) translateY(-2px); }
.gallery-shell.expanded .gallery-fade { opacity: 0; }
.gallery-shell.expanded .expand-gallery { position: relative; left: 50%; bottom: auto; margin: 38px 0 2px; color: var(--ink); border-color: rgba(21,25,25,.14); background: rgba(255,255,255,.66); }
.gallery-shell.panorama-mode { max-height: none; overflow: visible; }
.gallery-shell.panorama-mode .masonry { columns: auto; display: grid; gap: 18px; }
.gallery-shell.panorama-mode .panorama-card { height: clamp(280px, 31vw, 390px); margin: 0; overflow-x: auto; overflow-y: hidden; cursor: ew-resize; scrollbar-width: thin; scrollbar-color: rgba(32,151,174,.5) rgba(255,255,255,.45); }
.gallery-shell.panorama-mode .panorama-card::-webkit-scrollbar { height: 9px; }
.gallery-shell.panorama-mode .panorama-card::-webkit-scrollbar-track { background: rgba(255,255,255,.5); }
.gallery-shell.panorama-mode .panorama-card::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(32,151,174,.5); }
.gallery-shell.panorama-mode .panorama-card img { width: auto; max-width: none; height: 100%; }
.gallery-shell.panorama-mode .panorama-card:hover img { transform: none; filter: contrast(1.03); }
.gallery-loader { padding: 120px 0; text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

.site-footer { min-height: 100svh; padding: 80px var(--pad) 30px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); background: radial-gradient(circle at 74% 28%, rgba(65,207,235,.24), transparent 30%), #eaf2f1; }
.footer-kicker { width: min(100%, var(--content)); margin-inline: auto; padding-top: 12px; border-top: 1px solid rgba(21,25,25,.3); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid { width: min(100%, var(--content)); margin: auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(220px, .64fr) minmax(280px, 1fr); gap: clamp(22px, 3vw, 44px); align-items: end; }
.footer-grid h2 { margin: 0; font: 700 clamp(58px, 7.2vw, 108px)/.86 "Plus Jakarta Sans", sans-serif; letter-spacing: -.022em; text-transform: uppercase; }
.author-portrait { position: relative; width: 100%; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: clamp(16px, 2vw, 26px); background: #cbd8d6; box-shadow: inset 0 1px rgba(255,255,255,.58), 0 18px 44px rgba(23,82,91,.13); }
.author-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: saturate(.88) contrast(1.025); }
.author-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(7,15,16,.48)); pointer-events: none; }
.author-portrait figcaption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; padding: 12px 13px; display: flex; justify-content: space-between; align-items: end; gap: 10px; color: white; border: 1px solid rgba(255,255,255,.36); border-radius: 12px; background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); box-shadow: inset 0 1px rgba(255,255,255,.3); backdrop-filter: blur(13px) saturate(125%); }
.author-portrait figcaption span { font: 600 13px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: -.01em; }
.author-portrait figcaption small { font-size: 10px; line-height: 1.2; text-transform: uppercase; letter-spacing: .08em; opacity: .82; }
.footer-details { display: grid; gap: clamp(22px, 3vw, 38px); }
.about-copy { max-width: 430px; }
.about-copy p { margin: 0 0 16px; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.45; }
.footer-mail { align-self: end; display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid rgba(21,25,25,.3); border-bottom: 1px solid rgba(21,25,25,.3); font: 600 clamp(18px, 2.1vw, 30px)/1 "Plus Jakarta Sans"; letter-spacing: -.018em; }
.footer-mail-copy { min-width: 0; color: #151919; }
.footer-mail-copy small { display: block; margin-bottom: 7px; font: 500 13px/1 "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.footer-mail-copy strong { display: block; color: #151919; opacity: 1; overflow-wrap: anywhere; font: 600 clamp(15px, 1.25vw, 19px)/1.25 "Plus Jakarta Sans", sans-serif; letter-spacing: -.01em; }
.footer-arrow { transition: transform .25s; }
.footer-mail:hover .footer-arrow { transform: translate(8px,-8px); }
.footer-bottom { width: min(100%, var(--content)); margin-inline: auto; padding-top: 14px; border-top: 1px solid rgba(21,25,25,.3); display: grid; grid-template-columns: 1fr auto; gap: 25px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom div { display: flex; gap: 25px; }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: rgba(8,8,8,.96); color: white; }
.lightbox[open] { display: grid; grid-template-columns: 48px 1fr 48px; grid-template-rows: 44px 1fr 30px; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.lightbox-bar { grid-column: 1 / 4; width: 100%; align-self: start; display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.lightbox-bar p { margin: 0; }
.lightbox-close, .lightbox-prev, .lightbox-next { border: 0; background: transparent; color: white; cursor: pointer; }
.lightbox-prev, .lightbox-next { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 18px; }
.lightbox img { grid-column: 2; max-width: min(82vw, 1300px); max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lightbox-count { grid-column: 1 / 4; font-size: 12px; letter-spacing: .08em; }

.reveal { opacity: 0; filter: blur(5px); transform: translateY(24px); transition: opacity 1.05s ease, filter 1.05s ease, transform 1.05s cubic-bezier(.2,.72,.2,1); }
.reveal.reveal-step-1 { transition-delay: .12s; }
.reveal.reveal-step-2 { transition-delay: .24s; }
.reveal.visible { opacity: 1; filter: none; transform: none; }

@media (max-width: 900px) {
  .site-header { height: 62px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .site-header .header-inner,
  .site-header.scrolled .header-inner,
  .site-header.menu-open .header-inner { backdrop-filter: none; }
  .menu-toggle { position: relative; display: block; justify-self: end; z-index: 4; }
  .contact-pill { display: none; }
  .main-nav { position: fixed; z-index: 2; inset: 0; padding: 105px var(--pad) 32px; align-items: flex-start; flex-direction: column; gap: 10px; color: var(--ink); background: rgba(235,245,244,.96); backdrop-filter: blur(20px); transform: translateY(-102%); transition: transform .42s cubic-bezier(.2,.7,.2,1); }
  .main-nav.open { transform: none; }
  .main-nav a { font: 600 clamp(40px, 12vw, 64px)/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.02em; }
  .mobile-menu-contact { width: 100%; margin-top: auto; padding-top: 18px; display: grid; gap: 8px; border-top: 1px solid rgba(21,25,25,.28); }
  .mobile-menu-contact span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
  .mobile-menu-contact a { font: 600 clamp(17px, 4.5vw, 23px)/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: -.015em; overflow-wrap: anywhere; }
  .site-header.menu-open { color: var(--ink); }
  .hero { min-height: 620px; }
  .hero-meta { top: 82px; }
  .hero-glass { bottom: 20px; width: calc(100% - 24px); border-radius: 24px; }
  .portfolio-feature { --feature-pad: 78px; height: 78svh; padding-top: 78px; padding-bottom: 78px; }
  .feature-glass { grid-template-columns: 1fr auto; }
  .feature-glass strong { grid-row: 2; grid-column: 1 / 3; }
  .category-head { grid-template-columns: 1fr auto; }
  .category-title { grid-column: 1 / 3; }
  .category-caption { grid-column: 1 / 3; }
  .project-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { columns: 2; }
  .gallery-shell { max-height: 880px; }
  .footer-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .footer-grid h2 { grid-column: 1 / 3; }
  .author-portrait { max-width: 380px; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-bottom div { order: 3; grid-column: 1 / 3; }
}

@media (max-width: 520px) {
  .site-header { padding-left: 10px; padding-right: 10px; }
  .header-inner,
  .site-header.scrolled .header-inner { padding-left: 10px; padding-right: 10px; }
  .back-to-top { right: 10px; bottom: 14px; width: 48px; min-width: 48px; height: 48px; padding: 0; justify-content: center; }
  .back-to-top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-glass h1 { gap: 5px; font-size: 11vw; line-height: 1; }
  .portfolio-feature { --feature-gutter: 10px; }
  .category { padding-left: 10px; padding-right: 10px; }
  .category-head { padding: 22px 18px; border-radius: 24px; }
  .category-title { font-size: 13vw; }
  .gallery-meta h3 { font-size: 28px; }
  .project-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .project-card { aspect-ratio: 1 / 1; border-radius: 13px; }
  .project-card-glass { left: 7px; right: 7px; bottom: 7px; padding: 9px 10px; flex-direction: column; align-items: flex-start; gap: 3px; border-radius: 9px; }
  .gallery-shell { max-height: 720px; border-radius: 12px; }
  .gallery-shell.panorama-mode .panorama-card { height: 250px; }
  .gallery-fade { height: 25%; }
  .expand-gallery { bottom: 22px; font-size: 16px; }
  .masonry { columns: 2; column-gap: 5px; }
  .photo-card { margin-bottom: 5px; }
  .lightbox { padding: 12px; }
  .lightbox[open] { grid-template-columns: 34px 1fr 34px; }
  .lightbox-prev, .lightbox-next { width: 32px; height: 32px; }
  .site-footer { min-height: 850px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid h2 { grid-column: auto; font-size: clamp(52px, 18vw, 78px); }
  .author-portrait { max-width: none; aspect-ratio: 4 / 4.8; }
}

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