:root { --bg: #111111; --panel: #171717; --line: #2b2b2b; --muted: #8d8d8d; --accent: #9cc9ff; --text: #f0f0ee; --radius: 6px; }
* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); }
body { margin: 0px; font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.5; }
.inner { max-width: 1320px; margin: 0px auto; padding: 0px 48px; display: flex; align-items: center; justify-content: space-between; }
.site-header { position: fixed; top: 0px; left: 0px; width: 100%; border-bottom: 1px solid var(--line); background: rgb(9, 9, 9); z-index: 20; }
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px 0px; }
.brand { display: inline-block; color: var(--text); font-weight: 500; text-decoration: none; font-size: 14px; line-height: 1.2; }
.brand-tagline { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 28px; font-size: 13px; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
main { position: relative; z-index: 1; }
.site-video-background { position: fixed; inset: 0px; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.site-video-background video { display: block; width: 100%; height: 100%; object-fit: cover; }
.section { position: relative; z-index: 1; padding: 80px 0px; border-bottom: 1px solid var(--line); }
.container { max-width: 1320px; margin: 0px auto; padding: 0px 48px; }
.container.narrow { max-width: 1040px; }
.about-layout { display: grid; grid-template-columns: 220px minmax(0px, 1fr); gap: 48px; align-items: start; }
.about-portrait { width: 100%; max-width: 220px; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: var(--radius); filter: grayscale(1); transition: filter 0.25s; }
.about-portrait.is-visible { filter: grayscale(0); }
h2 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin: 0px 0px 32px; color: var(--muted); }
.muted { color: var(--muted); }
.timeline { list-style: none; padding: 0px; margin: 0px; border-top: 1px solid var(--line); }
.timeline li { padding: 14px 0px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0px, 1fr) 220px 150px; align-items: center; gap: 24px; color: rgb(210, 210, 208); font-size: 14px; }
.timeline strong { font-weight: 500; }
.timeline-company { font-weight: 400; }
.timeline .muted-small { font-size: 12px; text-align: right; white-space: nowrap; }
.contact .email { display: inline-block; max-width: 100%; color: var(--text); text-decoration: none; font-size: clamp(19px, 3vw, 32px); line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; padding: 6px 0px; }
.social-links a { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; transition: color 0.2s; }
.social-links a:hover { color: var(--text); }
.contact-form { max-width: 680px; margin: 32px 0; display: grid; gap: 20px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; color: var(--text); }
.contact-form input, .contact-form textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font: inherit; font-size: 16px; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button { justify-self: start; padding: 12px 24px; border: 1px solid var(--muted); border-radius: var(--radius); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.contact-form :is(input, textarea, button):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.contact-form .contact-honey { display: none; }
.contact-form-note { margin: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .contact-fields { grid-template-columns: 1fr; }
  .contact-form button { width: 100%; }
}
.social-links svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentcolor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-links .social-icon-fill { fill: currentcolor; stroke: none; }
.social-separator { margin: 0px 3px; }
.lightbox { position: fixed; inset: 0px; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding-right: clamp(16px, 4vw, 56px); padding-bottom: clamp(16px, 4vw, 56px); padding-left: clamp(16px, 4vw, 56px); background: rgba(0, 0, 0, 0.92); opacity: 0; pointer-events: none; z-index: 50; }
.lightbox[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.lightbox-content { display: grid; grid-template-columns: minmax(0px, 1.7fr) minmax(260px, 0.8fr); width: min(1200px, 100%); overflow: visible; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); flex: 0 0 auto; }
.lightbox-media { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; min-width: 0px; background: rgb(5, 6, 7); }
.lightbox-active-media { display: flex; align-items: center; justify-content: center; width: 100%; flex: 0 0 auto; }
.lightbox-gallery { display: grid; width: 100%; }
.lightbox-gallery-item { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; flex: 0 0 auto; cursor: pointer; background: rgb(11, 11, 12); }
.lightbox-media .lightbox-gallery-item img, .lightbox-media .lightbox-gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-media img, .lightbox-media video { width: 100%; height: auto; max-height: none; object-fit: contain; display: block; }
.lightbox-media iframe { width: 100%; height: 60svh; min-height: 280px; max-height: 640px; border: 0px; display: block; }
.lightbox-info { padding: clamp(24px, 4vw, 40px); overflow-y: auto; }
.lightbox-category { margin: 0px 0px 12px; color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.lightbox-title { margin: 0px 0px 10px; line-height: 1.12; overflow-wrap: anywhere; }
.lightbox-year { margin: 0px 0px 28px; color: var(--muted); font-size: 14px; }
.lightbox-description { margin: 0px 0px 28px; }
.lightbox-link { display: none; color: var(--accent); font-weight: 600; text-decoration: none; }
.lightbox-link.is-visible { display: inline-block; }
.lightbox .close { position: fixed; color: var(--text); font-size: 20px; z-index: 1; cursor: pointer; }
@media (max-width: 640px) {
  .brand { font-size: 16px; }
  .inner { padding: 0px 20px; }
  .brand-lockup { padding: 16px 0px; }
  .brand-tagline { max-width: 150px; font-size: 9px; white-space: normal; }
  .nav { display: flex; gap: 14px; }
  .nav a { margin-left: 0px; font-size: 11px; }
  .lightbox-media .lightbox-gallery-item img, .lightbox-media .lightbox-gallery-item video { object-fit: contain; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-portrait { width: min(100%, 220px); max-width: none; }
  .lightbox-content { grid-template-columns: 1fr; overflow: visible; }
  .lightbox-media { min-height: 0px; max-height: none; }
  .lightbox-gallery { grid-template-columns: 1fr; }
  .lightbox-info { padding: 24px; }
  .timeline li { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 12px 0px; font-size: 13px; }
  .timeline-company { grid-area: 2 / 1; }
  .timeline .muted-small { grid-area: 1 / 2 / span 2; align-self: center; }
}
.muted-small { color: var(--muted); font-size: 13px; }
html { scrollbar-gutter: stable; }
.scroll-gallery { padding: 0px; height: auto; }
.gallery-sticky { position: relative; top: auto; height: calc(100svh - 1px); min-height: 540px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.gallery-heading { text-align: center; width: 100%; padding-top: 32px; padding-bottom: 20px; }
.gallery-heading h2 { margin: 0px; color: var(--text); font-size: 18px; font-weight: 400; letter-spacing: 0.15em; }
.gallery-heading p { margin: 5px 0px 0px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.perspective-stage { position: relative; perspective: 1400px; perspective-origin: 50% 45%; height: min(62svh, 440px); width: 100%; isolation: isolate; }
.perspective-card { position: absolute; left: 50%; top: 20px; width: clamp(260px, 32vw, 440px); margin-left: 0; translate: -50% 0; height: calc(100% - 40px); padding: 0px; border: 1px solid rgb(85, 85, 85); border-radius: 2px; background: rgb(17, 17, 17); color: var(--text); font: inherit; text-align: left; cursor: pointer; backface-visibility: hidden; transform-style: preserve-3d; overflow: hidden; }
.card-preview { height: 66%; background: rgb(25, 25, 25); display: flex; align-items: center; justify-content: center; }
.card-preview img, .card-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-copy { padding: 14px 18px; text-align: center; }
.card-copy h3 { font-size: 15px; font-weight: 400; margin: 0px 0px 3px; }
.card-category { font-size: 11px; color: var(--muted); margin: 0px; }
.card-description { font-size: 11px; line-height: 1.4; margin: 8px 0px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; visibility: hidden; }
.perspective-card:hover .card-description, .perspective-card:focus-visible .card-description { visibility: visible; }
.project-open { display: inline-block; font-size: 10px; border: 1px solid rgb(119, 119, 119); border-radius: 24px; padding: 7px 20px; text-transform: uppercase; letter-spacing: 0.07em; visibility: hidden; }
.is-active .project-open { visibility: visible; }
.gallery-footer { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; padding-top: 12px; padding-bottom: 32px; }
.gallery-pagination { display: flex; gap: 12px; align-items: center; }
.gallery-dot { width: 8px; height: 8px; border: 1px solid rgb(170, 170, 170); border-radius: 50%; background: transparent; padding: 0px; cursor: pointer; position: relative; }
.gallery-dot::before { content: ""; position: absolute; inset: -8px; }
.gallery-dot[aria-current="true"] { background: var(--text); }
.gallery-counter { font-size: 10px; letter-spacing: 0.1em; margin-left: 14px; }
.media-placeholder { min-height: 180px; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: rgb(185, 185, 185); font-size: 12px; letter-spacing: 0.04em; }
.lightbox[aria-hidden="true"] { visibility: hidden; }
.lightbox { transition: none; padding-top: 60px; }
.lightbox-active-media { min-height: 240px; }
.lightbox-active-media img, .lightbox-active-media video { width: 100%; object-fit: contain; }
.lightbox-gallery { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; padding: 12px; }
.lightbox-gallery-item { border: 1px solid var(--line); color: var(--text); font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 12px; aspect-ratio: 16 / 10; padding: 0px; }
.lightbox-gallery-item[aria-pressed="true"] { border-color: var(--text); }
.lightbox-media .lightbox-gallery-item img { object-fit: contain; }
.lightbox .close { background: rgb(17, 17, 17); border: 1px solid rgb(85, 85, 85); width: 36px; height: 36px; top: 12px; right: 16px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
@media (hover: none) {
  .perspective-card.is-active .card-description { visibility: visible; }
}
@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; max-width: 190px; }
  .gallery-sticky { min-height: 480px; }
  .gallery-heading { padding-top: 24px; padding-bottom: 16px; }
  .gallery-heading h2 { font-size: 16px; }
  .perspective-stage { height: 65svh; perspective: 900px; }
  .perspective-card { width: 72vw; margin-left: 0; top: 12px; height: calc(100% - 24px); }
  .card-preview { height: 60%; }
  .card-copy { padding: 10px 12px; }
  .card-copy h3 { font-size: 14px; }
  .is-active .card-description { visibility: visible; }
  .gallery-footer { padding-top: 16px; padding-bottom: 24px; }
  .lightbox-gallery { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
}
@media (max-height: 600px) {
  .gallery-sticky { min-height: 0px; }
  .perspective-stage { height: 72svh; }
  .gallery-heading { padding-top: 10px; padding-bottom: 0px; }
  .gallery-footer { padding-top: 0px; padding-bottom: 8px; }
  .card-preview { height: 48%; }
  .card-copy { padding: 6px 10px; }
  .card-description { margin: 3px 0px; font-size: 10px; }
  .project-open { padding: 3px 12px; }
}
.thumbnail-label { position: absolute; bottom: 6px; left: 6px; padding: 2px 6px; background: rgb(17, 17, 17); font-size: 10px; }
.lightbox-title { color: var(--text); font-size: clamp(22px, 2.2vw, 30px); text-transform: none; letter-spacing: 0.01em; font-weight: 400; }
.lightbox-description { font-size: 13px; line-height: 1.6; color: rgb(185, 185, 185); }
.lightbox-active-media img, .lightbox-active-media video { max-height: 60svh; }
.perspective-card { text-decoration: none; will-change: transform; }
.gallery-sticky { padding-top: var(--header-height,80px); }
.section:not(.scroll-gallery) { scroll-margin-top: var(--header-height,80px); }

.pdf-media { width: 100%; min-width: 0; }
.pdf-link { display: block; padding: 14px; color: var(--text); }
.pdf-viewer { display: block; width: 100%; height: 65svh; min-height: 300px; border: 0; }

.perspective-stage { touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; }
.perspective-stage.is-dragging, .perspective-stage.is-dragging .perspective-card { cursor: grabbing; }
.gallery-footer { gap: 20px; }
.gallery-arrow { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font-size: 22px; cursor: pointer; }
.gallery-arrow:disabled { opacity: 0.3; cursor: default; }
.gallery-arrow:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

html { scroll-snap-type: y proximity; scroll-padding-top: 0; }
main > .section { scroll-snap-align: start; scroll-snap-stop: normal; }
.scroll-gallery { scroll-margin-top: 0; }
.section:not(.scroll-gallery) { scroll-margin-top: var(--header-height, 80px); min-height: calc(100svh - var(--header-height, 80px)); }
.experience-block { margin-top: 48px; }

/* Language switcher */
.header-actions { display: flex; align-items: center; gap: 22px; }
.lang-switcher { display: flex; align-items: center; gap: 7px; padding-left: 18px; border-left: 1px solid var(--line); }
.lang-switcher button { appearance: none; border: 0; background: none; color: var(--muted); padding: 4px 0; font: inherit; font-size: 10px; letter-spacing: 0.08em; cursor: pointer; transition: color 0.2s; }
.lang-switcher button:hover, .lang-switcher button.active { color: var(--text); }
.lang-switcher button.active { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .inner { gap: 14px; }
  .header-actions { gap: 10px; margin-left: auto; }
  .nav { gap: 8px; }
  .lang-switcher { gap: 5px; padding-left: 10px; }
  .lang-switcher button { font-size: 9px; }
}
@media (max-width: 520px) {
  .brand-tagline { display: none; }
  .brand-lockup { padding: 14px 0; }
  .header-actions { align-items: flex-end; flex-direction: column; gap: 4px; }
  .lang-switcher { border-left: 0; padding-left: 0; }
  .nav { max-width: none; flex-wrap: nowrap; }
  .nav a { font-size: 9px; }
}
