/* ── Inter — self-hosted (eliminates render-blocking Google Fonts request) ── */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(/fonts/inter-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(/fonts/inter-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(/fonts/inter-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Variables ── */
:root {
  --bg:       #0a0a0b;
  --surface:  #111113;
  --surface2: #17171a;
  --text:     #f0f0f0;
  --muted:    rgba(240,240,240,0.45);
  --muted2:   rgba(240,240,240,0.25);
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --nav-h:    64px;
  --sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif:    Georgia, 'Times New Roman', serif;
  --gap:      3px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(10,10,11,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wordmark { display: flex; flex-direction: column; gap: 0; cursor: pointer; }
.nav-wordmark-name { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.1; }
.nav-wordmark-sub  { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 16px; border: 1px solid var(--border2); color: var(--muted);
  transition: all 0.2s;
}
.nav-cta:hover, .nav-cta.active { color: var(--text); border-color: rgba(255,255,255,0.3); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 20px; height: 1px; background: var(--text); transition: 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed; inset: 0; top: var(--nav-h);
  background: var(--bg); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a, .nav-mobile button {
  font-size: 24px; letter-spacing: 0.06em; color: var(--muted);
  background: none; border: none; transition: color 0.2s;
}
.nav-mobile a:hover, .nav-mobile button:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--border2); transition: all 0.22s;
}
.btn-navy { background: #1a2540; border-color: #1a2540; color: #fff; }
.btn-navy:hover { background: #213060; border-color: #213060; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.btn-white { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-white:hover { background: transparent; color: var(--text); }

/* ── Eyebrow ── */
.eyebrow { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ── Page body offset ── */
.page-body { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Photo tiles (shared masonry items) ── */
.photo-tile { position: relative; overflow: hidden; cursor: pointer; break-inside: avoid; margin-bottom: var(--gap); background: var(--surface2); }
.photo-tile img { display: block; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 16px;
  pointer-events: none;
}
.photo-tile:hover .photo-tile-overlay { opacity: 1; }
.photo-tile-meta { display: flex; flex-direction: column; gap: 2px; }
.photo-tile-title { font-size: 13px; font-weight: 500; }
.photo-tile-loc   { font-size: 10px; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }

/* Image placeholder (shown before real images are added) */
.photo-tile .photo-bg {
  background: var(--surface2);
  width: 100%; display: block;
}

/* ── Masonry columns ── */
.masonry { columns: 3; column-gap: var(--gap); }
.masonry.cols-2 { columns: 2; }
.masonry.cols-1 { columns: 1; }

/* ── Lightbox ── */
.lightbox-scrim {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
.lightbox-scrim.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; width: auto; height: auto; display: block; }
.lightbox-close {
  position: fixed; top: 20px; right: 28px;
  font-size: 28px; color: var(--muted); line-height: 1; transition: color 0.2s;
}
.lightbox-close:hover { color: var(--text); }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  font-size: 28px; color: var(--muted); padding: 20px; transition: color 0.2s;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--text); }
.lightbox-caption {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  text-align: center; font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
  white-space: nowrap;
}

/* ══════════════════════════════════════
   HOME
══════════════════════════════════════ */
.home-hero {
  height: 100vh; min-height: 560px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  position: sticky; top: 0; z-index: 0;
}
.home-hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(26,37,64,0.5) 0%, transparent 70%);
  pointer-events: none;
}
.home-eyebrow { font-size: 10px; letter-spacing: 0.28em; color: var(--muted); margin-bottom: 20px; }
.home-title {
  font-size: clamp(40px, 7vw, 88px); font-weight: 500; letter-spacing: 0.02em;
  line-height: 1.05; margin-bottom: 0;
}
.home-title-sub { font-size: clamp(14px, 2vw, 22px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.home-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted2); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; }
.home-scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--muted), transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:.35; } 50% { opacity:1; } }
.home-grid { position: relative; z-index: 1; background: var(--bg); }

/* ══════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════ */
.page-header { padding: 60px 40px 48px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 400; margin: 12px 0 8px; letter-spacing: -0.01em; }
.page-header .lead { font-size: 15px; color: var(--muted); max-width: 560px; line-height: 1.7; margin-top: 8px; }
.subnav { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 28px; }
.subnav-btn {
  padding: 8px 18px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid transparent; transition: all 0.2s;
}
.subnav-btn:hover { color: var(--text); }
.subnav-btn.active { color: var(--text); border-color: var(--border2); background: var(--surface); }
.portfolio-grid { padding: 3px 0; }
.cat-section { display: none; }
.cat-section.active { display: block; }

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 72px; padding: 64px 40px 100px; max-width: 1280px; margin: 0 auto; }
.about-photo-col { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.about-photo-frame { position: relative; overflow: hidden; }
.about-photo-frame img, .about-photo-frame .photo-bg { aspect-ratio: 3/4; display: block; width: 100%; object-fit: cover; background: var(--surface2); }
.about-badge {
  position: absolute; top: 20px; left: 20px;
  background: rgba(10,10,11,0.82); backdrop-filter: blur(8px);
  border: 1px solid var(--border2); padding: 10px 14px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.7;
}
.about-cap { padding: 16px 0 0; }
.about-cap-name { font-size: 14px; font-weight: 500; }
.about-cap-role { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 2px; }
.about-text-col { padding-top: 8px; }
.about-text-col h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 400; line-height: 1.2; margin: 16px 0 28px; letter-spacing: -0.01em; }
.about-text-col p { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.about-genres { display: flex; flex-direction: column; gap: 0; margin: 40px 0 36px; border-top: 1px solid var(--border); }
.about-genre { display: flex; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.ag-num { font-size: 11px; color: var(--muted2); letter-spacing: 0.1em; width: 24px; flex-shrink: 0; }
.ag-name { font-size: 15px; font-weight: 500; width: 100px; flex-shrink: 0; }
.ag-desc { font-size: 13px; color: var(--muted); }
.about-btns { display: flex; gap: 10px; }

/* ══════════════════════════════════════
   PRINTS
══════════════════════════════════════ */
.prints-grid { padding: 3px 0; }
.print-tile { position: relative; overflow: hidden; cursor: pointer; break-inside: avoid; margin-bottom: var(--gap); }
.print-tile img, .print-tile .photo-bg { display: block; width: 100%; object-fit: cover; background: var(--surface2); transition: transform 0.5s ease; }
.print-tile:hover img { transform: scale(1.04); }
.print-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 20px;
}
.print-info { display: flex; flex-direction: column; gap: 3px; }
.print-title { font-size: 14px; font-weight: 500; }
.print-sizes { font-size: 10px; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); margin-top: 2px; }
.print-price { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.prints-cta { text-align: center; padding: 64px 24px; border-top: 1px solid var(--border); }
.prints-cta p { color: var(--muted); font-size: 15px; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 64px 40px 100px; max-width: 1100px; margin: 0 auto; position: relative; }
.contact-deco { position: absolute; top: 48px; right: 40px; width: 180px; opacity: 0.06; pointer-events: none; }
.contact-intro h1 { font-size: clamp(28px, 3.5vw, 46px); font-weight: 400; line-height: 1.15; margin: 16px 0 24px; letter-spacing: -0.01em; }
.contact-intro p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 0; }
.contact-detail { padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-detail-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted2); margin-bottom: 5px; }
.contact-detail-value { font-size: 14px; }
.contact-detail-value a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 13px 15px; font: 14px/1.4 var(--sans); outline: none; resize: vertical;
  transition: border-color 0.2s; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--border2); }
.form-group textarea { min-height: 130px; }
.form-group select option { background: var(--surface); }
.form-success { font-family: var(--serif); font-size: 18px; line-height: 1.8; color: var(--muted); }

/* ══════════════════════════════════════
   CLIENT ACCESS
══════════════════════════════════════ */
.client-gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.client-gate-box { width: 100%; max-width: 400px; text-align: center; }
.client-gate-icon { font-size: 28px; opacity: 0.3; margin-bottom: 28px; }
.client-gate-box h2 { font-size: 26px; font-weight: 400; margin-bottom: 10px; }
.client-gate-box p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.client-gate-form { display: flex; flex-direction: column; gap: 14px; }
.client-gate-form input {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 14px; font: 15px/1 var(--sans); text-align: center; letter-spacing: 0.18em;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.client-gate-form input:focus { border-color: var(--border2); }
.client-gate-error { color: #ff6b6b; font-size: 13px; display: none; }
.client-gate-hint { margin-top: 20px; font-size: 12px; color: var(--muted2); }
.client-gate-hint a { text-decoration: underline; text-underline-offset: 3px; }
.client-area { display: none; padding-top: var(--nav-h); }
.client-area-header { padding: 48px 40px 36px; border-bottom: 1px solid var(--border); }
.client-area-header h1 { font-size: 32px; font-weight: 400; margin: 8px 0; }
.client-area-header p { font-size: 13px; color: var(--muted); }
.client-gallery-block { padding: 40px; }
.client-gallery-title { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.client-gallery-meta { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.client-no-galleries { text-align: center; padding: 80px 24px; color: var(--muted); font-size: 15px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.footer-left h3 { font-size: 15px; font-weight: 500; }
.footer-left span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 2px; }
.footer-center { text-align: center; font-size: 11px; color: var(--muted2); }
.footer-right { display: flex; justify-content: flex-end; gap: 24px; }
.footer-right a { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.footer-right a:hover { color: var(--text); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-wrap { grid-template-columns: 340px 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .about-wrap { grid-template-columns: 1fr; padding: 48px 24px 80px; }
  .about-photo-col { position: static; }
  .about-photo-frame img, .about-photo-frame .photo-bg { aspect-ratio: 4/3; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; padding: 48px 24px 80px; }
  .contact-deco { display: none; }
  footer { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .footer-right { justify-content: center; }
  .masonry { columns: 2; }
  .page-header { padding: 48px 24px 36px; }
}
@media (max-width: 560px) {
  .masonry { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .about-btns { flex-direction: column; }
  .client-area-header { padding: 32px 20px 24px; }
  .client-gallery-block { padding: 24px 20px; }
}
