:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #dadada;
  --text-strong: #f2f2f2;
  --muted: #808080;
  --muted-2: #5f5f5f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --sidebar: 174px;
  --max: 1380px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="light"] {
  --bg: #f5f2eb;
  --bg-soft: #eee9df;
  --panel: #f8f5ef;
  --panel-2: #ebe5d9;
  --line: rgba(18, 16, 13, 0.16);
  --line-soft: rgba(18, 16, 13, 0.09);
  --text: #2c2925;
  --text-strong: #080806;
  --muted: #6b665d;
  --muted-2: #979086;
  --shadow: 0 32px 90px rgba(64, 54, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Raleway", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 8%, rgba(255,255,255,.055), transparent 30%),
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.03), transparent 28%),
    var(--bg);
  line-height: 1.65;
}



/* =========================
   THEME SWITCHER + LIGHT MODE
   Professional dark/light presentation
   ========================= */
html {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html,
body,
.site-sidebar,
.mobile-header,
.mobile-menu,
.site-main,
.content-section,
.project-page,
.info-card,
.work-thumb,
.contact-icon,
input,
textarea,
.case-hero-media,
.case-values,
.case-logo-grid,
.case-style-grid,
.case-shot,
.case-next-card,
.lightbox-stage,
.hero-bg-stack .theme-image,
.portrait-stack .portrait-img {
  transition:
    background-color .55s var(--ease),
    background .55s var(--ease),
    color .55s var(--ease),
    border-color .55s var(--ease),
    box-shadow .55s var(--ease),
    filter .55s var(--ease),
    opacity .55s var(--ease);
}

body.theme-changing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--theme-x, 50%) var(--theme-y, 50%), rgba(255,255,255,.34), transparent 0 38%),
    rgba(255,255,255,.12);
  animation: themeFlash .72s var(--ease) both;
  mix-blend-mode: overlay;
}

@keyframes themeFlash {
  0% { opacity: 0; transform: scale(.98); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.02); }
}

.theme-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 118px;
  min-height: 42px;
  padding: 6px 12px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(.95);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .28s var(--ease),
    border-color .28s var(--ease),
    background .45s var(--ease),
    box-shadow .28s var(--ease),
    color .45s var(--ease);
}


.site-sidebar .theme-toggle {
  width: 118px;
  min-width: 118px;
  margin-top: 34px;
  align-self: flex-start;
}

.mobile-header .theme-toggle {
  display: none;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.075), transparent 58%);
  opacity: .8;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--text-strong) 32%, var(--line));
  box-shadow: 0 24px 70px rgba(0,0,0,.30);
}

.theme-toggle:hover::before {
  opacity: 1;
  transform: scale(1.08);
}

.theme-orbit {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: color-mix(in srgb, var(--text-strong) 6%, transparent);
  transition:
    transform .45s var(--ease),
    background .45s var(--ease),
    border-color .45s var(--ease),
    box-shadow .45s var(--ease);
}

.theme-toggle:hover .theme-orbit {
  transform: rotate(22deg) scale(1.06);
  border-color: color-mix(in srgb, var(--text-strong) 28%, var(--line));
  box-shadow: 0 0 24px color-mix(in srgb, var(--text-strong) 12%, transparent);
}

.theme-icon {
  position: absolute;
  font-size: 13px;
  line-height: 1;
  transition: opacity .38s var(--ease), transform .55s var(--ease), color .38s var(--ease);
}

.theme-icon-moon {
  color: #f2f2f2;
}

.theme-icon-sun {
  color: #111;
}

html[data-theme="dark"] .theme-icon-moon,
html:not([data-theme]) .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html[data-theme="dark"] .theme-icon-sun,
html:not([data-theme]) .theme-icon-sun {
  opacity: 0;
  transform: rotate(-150deg) scale(.28);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(150deg) scale(.28);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.theme-text {
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 72% 8%, rgba(8,8,8,.055), transparent 31%),
    radial-gradient(circle at 9% 0%, rgba(8,8,8,.03), transparent 30%),
    linear-gradient(180deg, #faf8f3 0%, var(--bg) 100%);
}

html[data-theme="light"] ::selection {
  color: #fff;
  background: #111;
}

html[data-theme="light"] .skip-link {
  color: #fff;
  background: #111;
}

html[data-theme="light"] .site-sidebar,
html[data-theme="light"] .mobile-header {
  background: rgba(246, 243, 236, .86);
  box-shadow: 0 0 80px rgba(65, 55, 40, .06);
}

html[data-theme="light"] .mobile-menu {
  background: rgba(246, 243, 236, .97);
}

html[data-theme="light"] .brand img {
  filter: invert(1);
}

html[data-theme="light"] .hero-section::after {
  background:
    linear-gradient(90deg, rgba(247,244,237,.97) 0%, rgba(247,244,237,.82) 34%, rgba(247,244,237,.38) 67%, rgba(247,244,237,.84) 100%),
    linear-gradient(0deg, rgba(247,244,237,.94) 0%, rgba(247,244,237,.10) 50%);
}

html[data-theme="light"] .hero-bg-stack {
  filter: none;
  opacity: 1;
}

html[data-theme="light"] .page-hero {
  background:
    radial-gradient(circle at 78% 32%, rgba(0,0,0,.07), transparent 25%),
    linear-gradient(135deg, #faf8f2, #eee8dd 76%);
}

html[data-theme="light"] .page-hero::after {
  background:
    linear-gradient(90deg, rgba(247,244,237,.72) 0%, rgba(247,244,237,.36) 64%, rgba(247,244,237,.82) 100%),
    linear-gradient(0deg, rgba(247,244,237,.86) 0%, transparent 52%);
}

html[data-theme="light"] .page-hero::before {
  opacity: .13;
  filter: grayscale(1) brightness(1.2) contrast(.9);
}

html[data-theme="light"] .hero-text,
html[data-theme="light"] .about-copy,
html[data-theme="light"] .contact-intro,
html[data-theme="light"] .page-copy p:not(.eyebrow),
html[data-theme="light"] .project-info p,
html[data-theme="light"] .case-text p,
html[data-theme="light"] .case-hero-copy p:not(.eyebrow),
html[data-theme="light"] .success-card p:not(.eyebrow),
html[data-theme="light"] .contact-list,
html[data-theme="light"] .contact-list a,
html[data-theme="light"] .contact-list > span {
  color: var(--text);
}

html[data-theme="light"] .info-card p,
html[data-theme="light"] .case-meta dd,
html[data-theme="light"] .case-values li {
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
}

html[data-theme="light"] .cv-download-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.34)),
    rgba(255,255,255,.46);
  box-shadow: 0 24px 70px rgba(60, 50, 36, .10);
}

html[data-theme="light"] .cv-download-panel::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.74), transparent 32%),
    linear-gradient(90deg, rgba(18,16,13,.07), transparent 58%);
}

html[data-theme="light"] .cv-file-icon,
html[data-theme="light"] .cv-download-btn {
  background: rgba(255,255,255,.36);
}

html[data-theme="light"] .portrait {
  background: #fbf9f4;
  filter: brightness(1.08) contrast(.94) saturate(.92);
  box-shadow: 0 26px 70px rgba(60, 50, 36, .14);
}

html[data-theme="light"] .work-thumb {
  background: #e8e2d8;
}

html[data-theme="light"] .work-thumb img {
  filter: saturate(.86) contrast(.96) brightness(1.04);
  opacity: .9;
}

html[data-theme="light"] .work-card:hover .work-thumb img {
  filter: saturate(1.02) contrast(1.02) brightness(1.02);
}

html[data-theme="light"] .project-page {
  background:
    radial-gradient(circle at 78% 4%, rgba(0,0,0,.055), transparent 24%),
    radial-gradient(circle at 12% 28%, rgba(0,0,0,.025), transparent 24%),
    var(--bg);
}

html[data-theme="light"] .project-hero-img {
  filter: saturate(.86) contrast(.97) brightness(1.04);
}

html[data-theme="light"] .case-hero-media,
html[data-theme="light"] .case-next-card {
  background: #ebe5da;
}

html[data-theme="light"] .case-hero-media::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), transparent 38%, rgba(0,0,0,.03)),
    linear-gradient(0deg, rgba(0,0,0,.16), transparent 47%);
}

html[data-theme="light"] .case-board-img,
html[data-theme="light"] .case-shot,
html[data-theme="light"] .case-logo-grid,
html[data-theme="light"] .case-style-grid,
html[data-theme="light"] .case-values,
html[data-theme="light"] .info-card,
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] .form-status {
  background: rgba(255,255,255,.46);
}

html[data-theme="light"] .form-status {
  color: var(--text);
  border-color: rgba(18,16,13,.14);
}

html[data-theme="light"] .form-status[data-type="success"] {
  color: #173b25;
  border-color: rgba(31, 104, 61, .25);
  background: rgba(241, 250, 244, .72);
}

html[data-theme="light"] .form-status[data-type="error"] {
  color: #7a261f;
  border-color: rgba(170, 52, 38, .25);
  background: rgba(255, 242, 238, .78);
}

html[data-theme="light"] .case-board-img {
  background: #fbfaf7;
  box-shadow: 0 28px 80px rgba(70, 58, 38, .14);
}

html[data-theme="light"] .case-shot-media {
  background: #eee9df;
}

html[data-theme="light"] .case-next-card img {
  opacity: .20;
  filter: saturate(.45) brightness(1.06) contrast(.88);
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.is-active,
html[data-theme="light"] .mobile-nav-link:hover,
html[data-theme="light"] .mobile-nav-link.is-active,
html[data-theme="light"] .social-column a:hover,
html[data-theme="light"] .contact-list a:hover,
html[data-theme="light"] .work-card:hover .work-arrow {
  color: var(--text-strong);
}

html[data-theme="light"] .mobile-menu .social-column a:hover,
html[data-theme="light"] .success-close:hover,
html[data-theme="light"] .filter-btn:hover,
html[data-theme="light"] .filter-btn.is-active {
  color: var(--text-strong);
}

html[data-theme="light"] .contact-icon,
html[data-theme="light"] .mobile-menu .social-column a {
  background: rgba(255,255,255,.34);
}

html[data-theme="light"] .image-lightbox {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.09), transparent 26%),
    rgba(3, 3, 3, .82);
}

html[data-theme="light"] .success-modal {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.68), transparent 28%),
    rgba(244, 240, 232, .78);
}

html[data-theme="light"] .success-card {
  border-color: rgba(18, 16, 13, .14);
  color: var(--text-strong);
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(250,247,240,.78)),
    #fbf8f2;
  box-shadow: 0 40px 120px rgba(60, 50, 36, .22);
}

html[data-theme="light"] .success-card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
}

html[data-theme="light"] .success-card::after {
  background: linear-gradient(90deg, transparent, rgba(18,16,13,.20), transparent);
}

html[data-theme="light"] .success-mark {
  color: var(--text-strong);
  border-color: rgba(18,16,13,.18);
  background: rgba(255,255,255,.44);
  box-shadow:
    0 0 0 8px rgba(18,16,13,.035),
    0 18px 42px rgba(60,50,36,.12);
}

html[data-theme="light"] .success-close {
  color: var(--muted);
  border-color: rgba(18,16,13,.16);
  background: rgba(255,255,255,.28);
}

html[data-theme="light"] .success-close:hover {
  color: var(--text-strong);
  border-color: rgba(18,16,13,.34);
}

html[data-theme="light"] .success-btn {
  color: var(--text-strong);
}

@media (max-width: 1024px) {
  .mobile-header .theme-toggle {
    display: inline-flex;
    min-width: 42px;
    width: 42px;
    min-height: 42px;
    padding: 5px;
    justify-content: center;
    margin-left: auto;
    margin-right: 12px;
    box-shadow: none;
  }

  .mobile-header .theme-text {
    display: none;
  }
}

@media (max-width: 700px) {
  html[data-theme="light"] .hero-section::after {
    background:
      linear-gradient(90deg, rgba(247,244,237,.94) 0%, rgba(247,244,237,.76) 100%),
      linear-gradient(0deg, rgba(247,244,237,.96) 0%, transparent 54%);
  }
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}
input[name="_honey"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(255, 255, 255, .018);
  font-size: 12px;
  letter-spacing: .04em;
}

.form-status[data-type="success"] {
  border-color: rgba(255, 255, 255, .32);
  color: var(--text-strong);
}

.form-status[data-type="error"] {
  border-color: rgba(255, 255, 255, .28);
  color: #d6d6d6;
}

.send-btn:disabled {
  cursor: wait;
  opacity: .6;
}

body.success-open {
  overflow: hidden;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.09), transparent 26%),
    rgba(0, 0, 0, .78);
  backdrop-filter: blur(18px);
}

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

.success-card {
  position: relative;
  width: min(520px, 100%);
  padding: 42px 38px 36px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    #0b0b0b;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .72);
  overflow: hidden;
  animation: successRise .65s var(--ease) both;
}

.success-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-100%);
  animation: successLight 1.8s var(--ease) .25s both;
}

.success-card::after {
  content: "";
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}

.success-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.success-close:hover {
  color: #fff;
  border-color: rgba(255,255,255,.42);
  transform: rotate(90deg);
}

.success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  color: var(--text-strong);
  font-size: 24px;
  box-shadow:
    0 0 0 8px rgba(255,255,255,.025),
    0 0 34px rgba(255,255,255,.09);
}

.success-card h2 {
  max-width: 390px;
  margin-bottom: 0;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.25;
  letter-spacing: .12em;
}

.success-card p:not(.eyebrow) {
  max-width: 420px;
  margin-bottom: 0;
  color: #b8b8b8;
  font-size: 13px;
}

.success-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  border: 0;
  color: var(--text-strong);
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}

.success-btn span {
  font-size: 24px;
  font-weight: 300;
  transition: transform .28s var(--ease);
}

.success-btn:hover span {
  transform: translateX(8px);
}

@keyframes successRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes successLight {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@media (max-width: 700px) {
  .success-card {
    padding: 36px 26px 30px;
  }
}
::selection {
  color: #050505;
  background: #e5e5e5;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: #050505;
  background: #fff;
  transition: top .25s var(--ease);
}

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

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  border-right: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.side-nav {
  margin-top: 64px;
  display: grid;
  gap: 24px;
}

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s var(--ease), transform .25s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 1px;
  height: 30px;
  background: var(--line);
}

.nav-link:last-child::before {
  display: none;
}

.nav-link span {
  align-self: start;
  font-size: 9px;
  color: var(--muted-2);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-strong);
  transform: translateX(4px);
}

.social-column {
  margin-top: auto;
  display: grid;
  gap: 18px;
}

.social-column a {
  position: relative;
  z-index: 3;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  transition: color .25s var(--ease), transform .25s var(--ease);
}

.social-column a:hover {
  color: #fff;
  transform: translateX(4px);
}

.copyright {
  margin: 46px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.mobile-header,
.mobile-menu {
  display: none;
}

.site-main {
  position: relative;
  min-height: 100vh;
  margin-left: var(--sidebar);
  border-left: 1px solid rgba(255,255,255,.02);
}

.section-line {
  border-bottom: 1px solid var(--line-soft);
}

.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 80px min(7vw, 96px);
}

.hero-section::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.7) 34%, rgba(10,10,10,.25) 68%, rgba(10,10,10,.88) 100%),
    linear-gradient(0deg, rgba(10,10,10,.9) 0%, transparent 45%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.72);
  opacity: .95;
}

/* Smooth themed image transition for intro and portrait */
.hero-bg-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-stack .theme-image,
.portrait-stack .portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: opacity, transform, filter;
  transition:
    opacity .62s var(--ease),
    transform .78s var(--ease),
    filter .62s var(--ease);
}

.hero-bg-stack .theme-image-dark {
  opacity: .96;
  filter: grayscale(1) contrast(1.08) brightness(.72);
  transform: scale(1);
}

.hero-bg-stack .theme-image-light {
  opacity: 0;
  filter: saturate(.86) contrast(.94) brightness(1.05);
  transform: scale(1.025);
}

html[data-theme="light"] .hero-bg-stack .theme-image-dark {
  opacity: 0;
  transform: scale(1.035);
}

html[data-theme="light"] .hero-bg-stack .theme-image-light {
  opacity: .76;
  transform: scale(1);
}

.portrait-stack {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.portrait-stack .theme-image-dark {
  opacity: 1;
  filter: grayscale(1) contrast(1.04) brightness(.86);
  transform: scale(1);
}

.portrait-stack .theme-image-light {
  opacity: 0;
  filter: saturate(.9) contrast(.96) brightness(1.04);
  transform: scale(1.025);
}

html[data-theme="light"] .portrait-stack .theme-image-dark {
  opacity: 0;
  transform: scale(1.035);
}

html[data-theme="light"] .portrait-stack .theme-image-light {
  opacity: 1;
  transform: scale(1);
}

body.theme-changing .hero-bg-stack .theme-image,
body.theme-changing .portrait-stack .portrait-img {
  transition-duration: .66s, .78s, .66s;
}

@media (max-width: 760px) {
  .hero-bg-stack .theme-image,
  .portrait-stack .portrait-img {
    transition-duration: .58s, .68s, .58s;
  }

  body.theme-changing .hero-bg-stack .theme-image,
  body.theme-changing .portrait-stack .portrait-img {
    transition-duration: .58s, .68s, .58s;
  }

  body.theme-changing::before {
    animation-duration: .62s;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(610px, 100%);
  margin-left: 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .42em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--text-strong);
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 300;
  line-height: .95;
  letter-spacing: .14em;
  text-transform: uppercase;
}


h2 {
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h3 {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.short-line {
  width: 48px;
  height: 1px;
  margin: 16px 0 24px;
  background: var(--text);
  opacity: .65;
}

.hero-text {
  width: min(455px, 100%);
  color: #bdbdbd;
  font-size: 14px;
}

.arrow-link,
.mini-link,
.send-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  border: 0;
  color: var(--text-strong);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}

.arrow-link span,
.send-btn span {
  font-size: 24px;
  font-weight: 300;
  transform: translateX(0);
  transition: transform .28s var(--ease);
}

.arrow-link:hover span,
.send-btn:hover span,
.work-card:hover .work-arrow {
  transform: translateX(8px);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 36px;
  top: 52%;
  display: grid;
  gap: 13px;
}

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
}

.hero-dots span:first-child {
  background: #fff;
  border-color: #fff;
}

.content-section {
  padding: 62px min(5.4vw, 74px);
}

.section-heading,
.split-heading {
  margin-bottom: 28px;
}

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

.mini-link {
  margin: 0;
  color: var(--muted);
  transition: color .25s var(--ease);
}

.mini-link:hover {
  color: var(--text-strong);
}

.about-layout {
  display: grid;
  grid-template-columns: 270px minmax(250px, 430px) 1fr;
  gap: 34px;
  align-items: stretch;
}

.portrait {
  min-height: 330px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.about-copy {
  align-self: center;
  color: #b8b8b8;
  font-size: 13px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.info-card {
  min-height: 160px;
  padding: 24px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.015);
}

.info-card:nth-child(2n) {
  border-right: 0;
}

.info-card:nth-last-child(-n+2) {
  border-bottom: 0;
}

.card-icon {
  margin-bottom: 14px;
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1;
}

.info-card p {
  margin-bottom: 12px;
  color: #aaa;
  font-size: 12px;
}

.info-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
}

.cv-download-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: center;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
    rgba(255,255,255,.018);
  overflow: hidden;
  isolation: isolate;
}

.cv-download-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.12), transparent 34%),
    linear-gradient(90deg, color-mix(in srgb, var(--text-strong) 10%, transparent), transparent 54%);
  opacity: .8;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}

.cv-download-panel:hover::before {
  opacity: 1;
  transform: scale(1.03);
}

.cv-file-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-strong);
  background: rgba(255,255,255,.025);
  font-size: 17px;
}

.cv-download-copy {
  min-width: 0;
}

.cv-download-copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.cv-download-copy strong {
  display: block;
  color: var(--text-strong);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 650;
}

.cv-download-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--text-strong);
  background: color-mix(in srgb, var(--text-strong) 6%, transparent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition:
    transform .28s var(--ease),
    border-color .28s var(--ease),
    background .28s var(--ease),
    box-shadow .28s var(--ease);
}

.cv-download-btn i {
  font-size: 12px;
  transition: transform .28s var(--ease);
}

.cv-download-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--text-strong) 38%, var(--line));
  background: color-mix(in srgb, var(--text-strong) 10%, transparent);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.cv-download-btn:hover i {
  transform: translateY(3px);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 26px;
}

.work-card {
  display: block;
  position: relative;
  color: var(--text);
  isolation: isolate;
}

.work-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.18 / 1;
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.78);
  opacity: .86;
  transform: scale(1);
  transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s var(--ease);
}

.work-card:hover .work-thumb img {
  transform: scale(1.055);
  opacity: 1;
  filter: grayscale(1) contrast(1.15) brightness(.95);
}

.work-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding-top: 18px;
}

.work-category {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.work-title {
  margin-top: 7px;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.work-arrow {
  align-self: center;
  color: var(--text);
  font-size: 25px;
  font-weight: 300;
  transition: transform .28s var(--ease), color .28s var(--ease);
}

.work-card:hover .work-arrow {
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 260px minmax(300px, 600px) 1fr;
  gap: 34px;
  align-items: start;
}

.contact-intro {
  color: #b9b9b9;
  font-size: 13px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contact-form .full,
.send-btn {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--text-strong);
  background: rgba(255,255,255,.015);
  padding: 12px 14px;
  font-size: 12px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:focus,
textarea:focus {
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.035);
}
.contact-list {
  display: grid;
  gap: 14px;
  color: #b5b5b5;
  font-size: 13px;
  font-style: normal;
}

.contact-list a,
.contact-list > span {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #b5b5b5;
  transition: color .25s var(--ease), transform .25s var(--ease);
}

.contact-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-strong);
  background: rgba(255, 255, 255, .018);
  font-size: 14px;
  transition:
    color .25s var(--ease),
    border-color .25s var(--ease),
    background .25s var(--ease),
    transform .25s var(--ease),
    box-shadow .25s var(--ease);
}

.contact-list a:hover {
  color: #fff;
  transform: translateX(4px);
}

.contact-list a:hover .contact-icon {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.045);
  box-shadow: 0 0 22px rgba(255,255,255,.06);
  transform: scale(1.06);
}

.bottom-bar {
  height: 32px;
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 600px) 1fr;
  gap: 40px;
  align-items: end;
  min-height: 340px;
  padding: 88px min(7vw, 96px) 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 40%, rgba(255,255,255,.08), transparent 22%),
    linear-gradient(135deg, #101010, #070707 70%);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 70%;
  height: 140%;
  background: url('../images/hero.svg') center / cover no-repeat;
  opacity: .28;
  filter: grayscale(1) blur(.4px);
}

.page-copy,
.filters {
  position: relative;
  z-index: 1;
}

.page-copy h1 {
  margin-bottom: 22px;
}

.page-copy p:not(.eyebrow) {
  width: min(560px, 100%);
  color: #b7b7b7;
  font-size: 14px;
}

.filters {
  display: flex;
  justify-content: end;
  flex-wrap: wrap;
  gap: 24px;
}

.filter-btn {
  position: relative;
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 10px 0;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s var(--ease);
}

.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--text-strong);
  transition: width .28s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--text-strong);
}

.filter-btn.is-active::after,
.filter-btn:hover::after {
  width: 100%;
}

.works-archive {
  padding-top: 54px;
}

.archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 26px;
}

.work-card.is-hidden {
  display: none;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 62px;
}

.pager button,
.pager a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.pager .pager-current {
  border-color: var(--text);
  color: var(--text-strong);
}

.project-detail {
  padding: 80px min(7vw, 96px) 70px;
}

.back-link {
  margin-bottom: 34px;
}

.project-heading h1 {
  font-size: clamp(44px, 6vw, 90px);
}

.project-hero-img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  filter: grayscale(1) contrast(1.08) brightness(.82);
  box-shadow: var(--shadow);
}

.project-info {
  display: grid;
  grid-template-columns: minmax(300px, 650px) 1fr;
  gap: 60px;
  margin-top: 42px;
}

.project-info p {
  color: #b8b8b8;
}

.project-info dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.project-info div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.project-info dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.project-info dd {
  margin: 7px 0 0;
  color: var(--text-strong);
}

.next-project {
  margin-top: 46px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

@media (max-width: 1280px) {
  .about-layout {
    grid-template-columns: 250px 1fr;
  }

  .info-grid {
    grid-column: 1 / -1;
  }

  .works-grid,
  .archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr 1.6fr;
  }

  .contact-list {
    grid-column: 2;
  }
}

@media (max-width: 1024px) {
  :root {
    --sidebar: 0px;
  }

  .site-sidebar {
    display: none;
  }

  .site-main {
    margin-left: 0;
    padding-top: 64px;
  }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(8,8,8,.86);
    backdrop-filter: blur(18px);
    padding: 0 22px;
  }

 .mobile-header .brand {
  width: 145px;
  height: 145px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-header .brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
  .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text-strong);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 64px 0 0;
    z-index: 39;
    display: grid;
    place-items: center;
    background: rgba(8,8,8,.97);
    backdrop-filter: blur(20px);
  }

  .mobile-menu[hidden] {
    display: none;
  }

.mobile-menu {
  position: fixed;
  inset: 64px 0 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(20px);
}

.mobile-nav {
  display: grid;
  gap: 26px;
  text-align: left;
}

.mobile-nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .25s var(--ease), transform .25s var(--ease);
}

.mobile-nav-link::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 28px;
  width: 1px;
  height: 32px;
  background: var(--line);
}

.mobile-nav-link:last-child::before {
  display: none;
}

.mobile-nav-link span {
  align-self: start;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: .12em;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--text-strong);
  transform: translateX(6px);
}

.mobile-nav-link:hover span,
.mobile-nav-link.is-active span {
  color: var(--text);
}

  .mobile-menu .social-column {
  margin-top: 42px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.mobile-menu .social-column a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--text-strong);
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.mobile-menu .social-column a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  transform: translateY(-3px);
}

  .hero-section {
    min-height: 620px;
    padding: 70px 34px;
  }

  .hero-content {
    margin-left: 0;
  }

  .content-section,
  .project-detail {
    padding-left: 34px;
    padding-right: 34px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 72px 34px 44px;
  }

  .filters {
    justify-content: start;
  }

  .works-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-list {
    grid-column: auto;
  }

  .project-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .cv-download-panel {
    margin-top: 22px;
    padding: 15px;
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .cv-file-icon {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .cv-download-copy strong {
    font-size: 11px;
  }

  .cv-download-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 9px;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: clamp(42px, 15vw, 72px);
    letter-spacing: .10em;
  }

  .hero-section {
    min-height: 600px;
    padding: 50px 22px;
  }

  .hero-section::after {
    background:
      linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.66) 100%),
      linear-gradient(0deg, rgba(10,10,10,.94) 0%, transparent 50%);
  }

  .hero-dots {
    right: 18px;
  }

  .content-section,
  .project-detail {
    padding: 44px 22px;
  }

  .split-heading {
    align-items: start;
    flex-direction: column;
  }

  .about-layout {
    grid-template-columns: 150px 1fr;
    
  }

  .portrait {
    min-height: auto;
    height: 390px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .info-card:nth-child(2n),
  .info-card:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .info-card:last-child {
    border-bottom: 0;
  }

  .works-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .work-thumb {
    aspect-ratio: 1.22 / 1;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 58px 22px 34px;
  }

  .filters {
    gap: 12px 20px;
  }

  .filter-btn {
    font-size: 11px;
  }

  .bottom-bar {
    padding: 0 18px;
    text-align: center;
    font-size: 8px;
  }
}
/* =========================
   PRINT VERSION
   ========================= */
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  html,
  body {
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 11pt;
    line-height: 1.45;
  }

  body {
    min-height: auto !important;
  }

  /* Hide website-only parts */
  .site-sidebar,
  .mobile-header,
  .mobile-menu,
  .skip-link,
  .filters,
  .pager,
  .contact-form,
  .success-modal,
  .arrow-link,
  .mini-link,
  .cv-download-panel,
  .bottom-bar {
    display: none !important;
  }

  /* Make main area full width */
  .site-main {
    margin-left: 0 !important;
    padding-top: 0 !important;
    border: 0 !important;
  }

  /* Make all hidden animation content visible */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
  }

  /* Clean section spacing */
  .hero-section,
  .content-section,
  .project-detail,
  .page-hero {
    padding: 0 0 18mm !important;
    min-height: auto !important;
    border-bottom: 1px solid #cccccc !important;
    page-break-inside: avoid;
  }

  .section-line {
    border-bottom: 1px solid #cccccc !important;
  }

  /* Remove dark overlays and backgrounds */
  .hero-section::after,
  .page-hero::after,
  .page-hero::before {
    display: none !important;
  }

  .hero-bg {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: 180mm !important;
    object-fit: cover !important;
    filter: grayscale(1) contrast(1.05) !important;
    opacity: 1 !important;
    margin-bottom: 10mm;
  }

  .hero-content,
  .page-copy,
  .filters {
    position: relative !important;
    z-index: auto !important;
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Typography for print */
  h1,
  h2,
  h3,
  p,
  li,
  dt,
  dd,
  a,
  span {
    color: #111111 !important;
  }

  h1 {
    font-size: 36pt !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 8mm !important;
  }

  h2 {
    font-size: 18pt !important;
    margin-bottom: 5mm !important;
  }

  h3 {
    font-size: 10pt !important;
  }

  .eyebrow {
    color: #555555 !important;
    font-size: 9pt !important;
  }

  .short-line {
    background: #111111 !important;
    margin: 5mm 0 7mm !important;
  }

  /* About section print layout */
  .about-layout {
    display: grid !important;
    grid-template-columns: 45mm 1fr !important;
    gap: 8mm !important;
    align-items: start !important;
  }

  .portrait {
    width: 45mm !important;
    height: 60mm !important;
    min-height: auto !important;
    object-fit: cover !important;
    border: 1px solid #cccccc !important;
    filter: grayscale(1) !important;
  }

  .about-copy {
    font-size: 10pt !important;
  }

  .info-grid {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    border: 1px solid #cccccc !important;
    margin-top: 8mm !important;
  }

  .info-card {
    background: #ffffff !important;
    border-color: #cccccc !important;
    min-height: auto !important;
    padding: 6mm !important;
    page-break-inside: avoid;
  }

  .card-icon {
    display: none !important;
  }

  .info-card ul {
    color: #333333 !important;
  }

  /* Works print layout */
  .works-grid,
  .archive-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10mm !important;
  }

  .work-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .work-thumb {
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
    aspect-ratio: 1.25 / 1 !important;
  }

  .work-thumb img {
    filter: grayscale(1) contrast(1.05) !important;
    opacity: 1 !important;
  }

  .work-meta {
    padding-top: 4mm !important;
  }

  .work-title {
    font-size: 12pt !important;
  }

  .work-category {
    color: #555555 !important;
    font-size: 8pt !important;
  }

  .work-arrow {
    display: none !important;
  }

  /* Contact print layout */
  .contact-layout {
    display: block !important;
  }

  .contact-intro {
    color: #222222 !important;
    max-width: 150mm;
  }

  .contact-list {
    display: grid !important;
    gap: 4mm !important;
    margin-top: 8mm !important;
    color: #111111 !important;
  }

  .contact-icon {
    border: 1px solid #999999 !important;
    color: #111111 !important;
    background: #ffffff !important;
  }

  /* Project page print */
  .project-heading h1 {
    font-size: 30pt !important;
  }

  .project-hero-img {
    max-height: 150mm !important;
    border: 1px solid #cccccc !important;
    filter: grayscale(1) contrast(1.05) !important;
    box-shadow: none !important;
  }

  .project-info {
    display: grid !important;
    grid-template-columns: 1.3fr 0.7fr !important;
    gap: 10mm !important;
    margin-top: 8mm !important;
  }

  .project-info div {
    border-bottom: 1px solid #cccccc !important;
  }

  /* Avoid bad page cuts */
  img,
  .info-card,
  .work-card,
  .project-info,
  .contact-list {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  a[href]::after {
    content: "";
  }
}
/* =========================
   MODERN PROJECT CASE STUDY LAYOUT
   Added for professional work presentation
   ========================= */
.work-card {
  --project-accent: #ededed;
}

.work-thumb::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 38px;
  height: 2px;
  background: var(--project-accent);
  opacity: .85;
  transform: scaleX(.55);
  transform-origin: left;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}

.work-card:hover .work-thumb::after {
  opacity: 1;
  transform: scaleX(1);
}

.work-thumb img {
  filter: saturate(.72) contrast(1.08) brightness(.82);
}

.work-card:hover .work-thumb img {
  filter: saturate(1.05) contrast(1.12) brightness(.94);
}

.project-page {
  background:
    radial-gradient(circle at 78% 4%, rgba(255,255,255,.07), transparent 24%),
    radial-gradient(circle at 12% 28%, rgba(255,255,255,.03), transparent 24%),
    var(--bg);
}

.project-detail {
  --project-accent: #ededed;
  padding: 0;
}

.case-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.case-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 42px min(6vw, 78px) 0;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(310px, 470px) minmax(430px, 1fr);
  gap: min(6vw, 82px);
  align-items: center;
  min-height: 600px;
  padding: 54px min(6vw, 78px) 64px;
}

.case-hero-copy .eyebrow {
  color: var(--project-accent);
}

.case-hero-copy h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7.6vw, 116px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: none;
}

.case-hero-copy p:not(.eyebrow) {
  width: min(410px, 100%);
  margin-bottom: 14px;
  color: #b7b7b7;
  font-size: 15px;
  line-height: 1.85;
}

.case-hero-copy .arrow-link {
  border-bottom: 1px solid color-mix(in srgb, var(--project-accent) 70%, transparent);
  padding-bottom: 8px;
}

.case-hero-copy .arrow-link span,
.case-next .mini-link,
.case-next-card span,
.case-next-card em {
  color: var(--project-accent);
}

.case-hero-media {
  position: relative;
  overflow: hidden;
  min-height: 370px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}

.case-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.22), transparent 35%, rgba(255,255,255,.04)),
    linear-gradient(0deg, rgba(0,0,0,.34), transparent 45%);
}

.case-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
  filter: none;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  padding: 0 min(6vw, 78px);
}

.case-meta div {
  min-height: 126px;
  padding: 31px 38px 28px 0;
  border-right: 1px solid var(--line-soft);
}

.case-meta div + div {
  padding-left: 38px;
}

.case-meta div:last-child {
  border-right: 0;
}

.case-meta dt,
.case-shot-caption small,
.case-logo-tile span,
.case-index span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 8px 0 0;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.65;
}

.case-study {
  padding: 0 min(6vw, 78px);
}

.case-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(320px, 520px);
  gap: min(5vw, 58px);
  align-items: start;
  padding: 44px 0;
}

.case-row .case-wide {
  grid-column: 2 / -1;
}

.case-index {
  position: sticky;
  top: 32px;
  display: grid;
  gap: 12px;
  align-self: start;
}

.case-index strong {
  max-width: 140px;
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .20em;
  line-height: 1.7;
  text-transform: uppercase;
}

.case-index::after {
  content: "";
  width: 44px;
  height: 2px;
  margin-top: 2px;
  background: var(--project-accent);
}

.case-text p {
  max-width: 600px;
  color: #b9b9b9;
  font-size: 14px;
  line-height: 1.9;
}

.case-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.018);
}

.case-values li {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 18px 20px;
  color: #d8d8d8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.case-values li:nth-child(2n) {
  border-right: 0;
}

.case-values li:nth-last-child(-n+2) {
  border-bottom: 0;
}

.case-value-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-accent) 35%, rgba(255,255,255,.16));
  border-radius: 50%;
  color: var(--project-accent);
  background: rgba(255,255,255,.022);
}

.case-board-img {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f4f4f2;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}

.case-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.018);
}

.case-logo-tile {
  min-height: 174px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--line-soft);
  text-align: center;
}

.case-logo-tile:last-child {
  border-right: 0;
}

.case-logo-tile strong {
  color: var(--text-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.3vw, 38px);
  font-weight: 400;
  letter-spacing: .22em;
  line-height: 1.1;
}

.case-logo-tile small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .30em;
}

.case-style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,.018);
}

.case-style-grid > div {
  padding: 36px;
  border-right: 1px solid var(--line-soft);
}

.case-style-grid > div:last-child {
  border-right: 0;
}

.case-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.case-swatch {
  display: grid;
  gap: 10px;
}

.case-swatch i {
  width: 66px;
  height: 66px;
  display: block;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--swatch);
}

.case-swatch em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
}

.case-type {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
  align-items: center;
  margin-top: 18px;
}

.case-type strong {
  color: var(--text-strong);
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 600;
  letter-spacing: .04em;
}

.case-type span {
  color: var(--text-strong);
  font-size: clamp(68px, 8vw, 120px);
  font-weight: 800;
  line-height: 1;
}

.case-type small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.case-gallery-context {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-shot {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
}

.case-shot-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.22 / 1;
  background: #111;
}

.case-shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform .7s var(--ease), filter .7s var(--ease);
}

.case-shot:hover .case-shot-media img {
  transform: scale(1.04);
  filter: contrast(1.04);
}

.case-shot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
}

.case-shot-caption span {
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.case-next {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(360px, 1fr);
  gap: min(6vw, 78px);
  align-items: stretch;
  padding: 50px min(6vw, 78px) 70px;
}

.case-next h2 {
  max-width: 360px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: none;
}

.case-next-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #111;
  isolation: isolate;
}

.case-next-card::after {
  content: "→";
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-strong);
  font-size: 24px;
  transition: transform .28s var(--ease), border-color .28s var(--ease);
}

.case-next-card:hover::after {
  transform: translateX(6px);
  border-color: rgba(255,255,255,.36);
}

.case-next-card span,
.case-next-card em {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.case-next-card strong {
  position: relative;
  z-index: 1;
  color: var(--text-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 74px);
  font-weight: 400;
  line-height: 1;
}

.case-next-card img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  filter: saturate(.55) brightness(.62);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}

.case-next-card:hover img {
  opacity: .48;
  transform: scale(1.04);
}

@media (max-width: 1180px) {
  .case-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .case-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-meta div:nth-child(2n) {
    border-right: 0;
  }

  .case-meta div:nth-child(n+3) {
    border-top: 1px solid var(--line-soft);
  }

  .case-row {
    grid-template-columns: 150px 1fr;
  }

  .case-row .case-wide,
  .case-values {
    grid-column: 2;
  }

  .case-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-gallery-context {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .case-topbar,
  .case-hero,
  .case-study,
  .case-next {
    padding-left: 22px;
    padding-right: 22px;
  }

  .case-topbar {
    padding-top: 34px;
  }

  .case-hero {
    padding-top: 38px;
    padding-bottom: 46px;
    gap: 34px;
  }

  .case-hero-copy h1 {
    font-size: clamp(50px, 16vw, 74px);
  }

  .case-hero-media,
  .case-hero-media img {
    min-height: 270px;
  }

  .case-meta {
    grid-template-columns: 1fr;
    padding: 0 22px;
  }

  .case-meta div,
  .case-meta div + div {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-top: 1px solid var(--line-soft);
  }

  .case-meta div:first-child {
    border-top: 0;
  }

  .case-row {
    display: block;
    padding: 36px 0;
  }

  .case-index {
    position: relative;
    top: auto;
    margin-bottom: 22px;
  }

  .case-values {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .case-values li,
  .case-values li:nth-child(2n),
  .case-values li:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .case-values li:last-child {
    border-bottom: 0;
  }

  .case-logo-grid,
  .case-style-grid,
  .case-gallery,
  .case-gallery-context,
  .case-next {
    grid-template-columns: 1fr;
  }

  .case-logo-tile,
  .case-style-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .case-logo-tile:last-child,
  .case-style-grid > div:last-child {
    border-bottom: 0;
  }

  .case-shot-media {
    aspect-ratio: 1.18 / 1;
  }
}
/* Premium project image viewer ------------------------------------------------ */
body.lightbox-open {
  overflow: hidden;
}

.case-hero-media img,
.case-board-img,
.case-shot-media img {
  cursor: zoom-in;
}

.case-hero-media,
.case-shot-media,
.case-board-img {
  isolation: isolate;
}

.case-hero-media::before,
.case-shot-media::after {
  content: "Closer look";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  background: rgba(8,8,8,.58);
  backdrop-filter: blur(14px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), border-color .28s var(--ease);
  pointer-events: none;
}

.case-hero-media::before {
  content: "Open image";
}

.case-hero-media:hover::before,
.case-shot:hover .case-shot-media::after {
  opacity: 1;
  transform: translateY(0);
  border-color: color-mix(in srgb, var(--project-accent) 42%, rgba(255,255,255,.18));
}

.case-board-img {
  transition: transform .55s var(--ease), border-color .28s var(--ease), box-shadow .55s var(--ease);
}

.case-board-img:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--project-accent) 30%, rgba(255,255,255,.16));
  box-shadow: 0 36px 100px rgba(0,0,0,.45);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px;
  background:
    radial-gradient(circle at 68% 18%, rgba(255,255,255,.11), transparent 26%),
    radial-gradient(circle at 18% 78%, color-mix(in srgb, var(--lightbox-accent, #ededed) 14%, transparent), transparent 30%),
    rgba(3,3,3,.92);
  backdrop-filter: blur(24px) saturate(.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--ease), visibility .32s var(--ease);
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.image-lightbox[hidden] {
  display: none;
}

.lightbox-top,
.lightbox-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lightbox-brand,
.lightbox-title,
.lightbox-hint {
  color: rgba(255,255,255,.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.lightbox-brand {
  color: rgba(255,255,255,.92);
}

.lightbox-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lightbox-btn {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}

.lightbox-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--lightbox-accent, #ededed) 48%, rgba(255,255,255,.18));
  background: rgba(255,255,255,.075);
  color: #fff;
}

.lightbox-btn[data-lightbox-close] {
  font-size: 23px;
  font-weight: 300;
}

.lightbox-btn[data-lightbox-zoom-out],
.lightbox-btn[data-lightbox-zoom-in],
.lightbox-btn[data-lightbox-reset] {
  font-size: 14px;
  font-weight: 800;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 26px 0;
  overflow: hidden;
  touch-action: none;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.006)),
    rgba(10,10,10,.72);
  box-shadow: 0 46px 130px rgba(0,0,0,.72);
}

.lightbox-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
  opacity: .35;
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(94vw, 1500px);
  max-height: calc(100vh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  cursor: zoom-in;
  transform: translate3d(var(--pan-x, 0px), var(--pan-y, 0px), 0) scale(var(--zoom, 1));
  transition: transform .28s var(--ease), opacity .28s var(--ease);
  will-change: transform;
  box-shadow: 0 24px 80px rgba(0,0,0,.58);
}

.image-lightbox.is-zoomed .lightbox-img {
  cursor: grab;
}

.image-lightbox.is-dragging .lightbox-img {
  cursor: grabbing;
  transition: none;
}

.lightbox-title {
  max-width: min(72vw, 900px);
  color: rgba(255,255,255,.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-hint {
  color: rgba(255,255,255,.45);
  text-align: right;
}

@media (max-width: 760px) {
  .image-lightbox {
    padding: 16px;
  }

  .lightbox-top,
  .lightbox-bottom {
    gap: 12px;
  }

  .lightbox-brand,
  .lightbox-hint {
    display: none;
  }

  .lightbox-stage {
    margin: 18px 0;
    border-radius: 8px;
  }

  .lightbox-img {
    max-height: calc(100vh - 150px);
  }
}
