/* Htoo Wai Photography — Premium Editorial Darkroom Palette */
:root {
  --ink: #110f0c;           /* deep warm darkroom black */
  --ink-2: #1a1713;         /* elevated surface */
  --ink-3: #221e19;         /* card surface */
  --ink-glass: rgba(17, 15, 12, 0.75); /* signature frosted glass */
  --line: rgba(237, 230, 216, 0.11);  /* subtle division rules */
  --line-strong: rgba(237, 230, 216, 0.22);
  --paper: #ede5d8;         /* warm textured paper */
  --paper-soft: #f4ede2;    /* highlight text */
  --dim: #a59b8a;           /* secondary label */
  --dim-soft: #847b6d;      /* muted footnote */
  --jade: #95baa9;          /* mist-jade accent */
  --jade-glow: rgba(149, 186, 169, 0.15);
  --gold: #d8c29d;          /* editorial gold accent */
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --gut: clamp(18px, 4.5vw, 64px);
  --gap: clamp(10px, 1.4vw, 20px);
  --max: 1640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(237, 230, 216, 0.35); text-underline-offset: .25em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--paper-soft); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 18px; font-weight: 500; }
.skip:focus { left: 12px; }

/* ==========================================================================
   Navigation Bar — Signature Frosted Glass + Smart Hide/Show
   ========================================================================== */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gut);
  background: var(--ink-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s, border-color .3s;
}
.home .bar {
  background: linear-gradient(to bottom, rgba(14, 12, 9, 0.65) 0%, transparent 100%);
  border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.home .bar.scrolled, .bar.scrolled {
  background: rgba(15, 13, 10, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.bar.nav-hidden {
  transform: translateY(-100%);
}
.mark {
  font: 500 1.45rem/1 var(--serif); letter-spacing: .02em; text-decoration: none;
  color: var(--paper); transition: opacity .3s, color .2s;
}
.mark:hover { color: var(--jade); }
.home .bar:not(.scrolled) .mark { text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.bar-links { display: flex; gap: clamp(16px, 2.8vw, 36px); align-items: center; font-size: .95rem; }
.bar-links a { text-decoration: none; color: var(--paper); position: relative; padding: 4px 0; }
.bar-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--jade); transform: scaleX(0); transition: transform .25s ease;
}
.bar-links a:hover::after, .bar-links a[aria-current]::after { transform: scaleX(1); }
.bar-links a[aria-current] { color: var(--jade); }
.menu-btn {
  padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 9999px;
  font-size: .88rem; transition: all .2s ease; background: rgba(255,255,255,0.03);
}
.menu-btn:hover { border-color: var(--jade); color: var(--paper-soft); background: var(--jade-glow); }
main { padding-top: 68px; }
.home main { padding-top: 0; }

/* ==========================================================================
   Full-Screen Frosted Glass Menu Overlay
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(14, 12, 9, 0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu-inner { max-width: var(--max); width: 100%; margin: 0 auto; padding: 100px var(--gut) 48px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 32px; }
.menu-list a {
  display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s;
}
.mi-t { font: 400 clamp(1.4rem, 2.8vw, 2.2rem)/1.15 var(--serif); }
.mi-n { font-size: .85rem; color: var(--dim); }
.menu-list a:hover .mi-t, .menu-list a[aria-current] .mi-t { color: var(--jade); }
.menu-foot {
  display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line); color: var(--dim); font-size: .92rem;
}
.menu-foot a { text-decoration: none; }
.menu-foot a:hover { color: var(--paper); }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Home Hero — Cinematic Cross-Fade
   ========================================================================== */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: scale(1.03); transition: transform 7s ease-out;
}
.hero-slide.active img { transform: scale(1.0); }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(14, 12, 9, 0.88) 0%, rgba(14, 12, 9, 0.25) 50%, rgba(14, 12, 9, 0.1) 100%);
  pointer-events: none;
}
.hero-copy {
  position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: clamp(32px, 8vh, 84px);
  max-width: var(--max); margin: 0 auto;
}
.hero-name {
  margin: 0; font: 400 clamp(4.2rem, 15vw, 14rem)/.86 var(--serif); letter-spacing: -.025em;
  font-variation-settings: 'opsz' 96; color: var(--paper-soft);
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.hero-role {
  margin: 20px 0 0; max-width: 42ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--paper); text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-down {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: .88rem; color: var(--dim); text-decoration: none; letter-spacing: .05em; text-transform: uppercase;
}
.hero-down:hover { color: var(--jade); }

/* ==========================================================================
   Selected Work Strip (Highlight Reel)
   ========================================================================== */
.strip-wrap {
  position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 100px) var(--gut) 0;
}
.strip-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.strip-title { margin: 0; font: 400 clamp(1.8rem, 4vw, 3rem)/1.1 var(--serif); }
.strip-link { font-size: .92rem; color: var(--dim); text-decoration: none; }
.strip-link:hover { color: var(--jade); }
.strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(16px, 2vw, 24px);
}
.strip-card {
  position: relative; overflow: hidden; border-radius: 3px; background: var(--ink-2);
  aspect-ratio: 3 / 4; text-decoration: none; display: block;
}
.strip-card img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.strip-card:hover img { transform: scale(1.04); }
.strip-card-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 8, 0.88) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.strip-card-t { margin: 0; font: 400 1.3rem/1.2 var(--serif); color: var(--paper-soft); }
.strip-card-m { margin: 6px 0 0; font-size: .82rem; color: var(--dim); }

/* ==========================================================================
   Filter Chips (Categories)
   ========================================================================== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 32px 0 40px;
}
.chip {
  padding: 7px 18px; border-radius: 9999px; border: 1px solid var(--line);
  font-size: .88rem; color: var(--dim); cursor: pointer; transition: all .2s ease;
  background: rgba(255, 255, 255, 0.02);
}
.chip:hover, .chip.active {
  color: var(--paper); border-color: var(--jade); background: var(--jade-glow);
}

/* ==========================================================================
   Intro Statement
   ========================================================================== */
.intro { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 150px) var(--gut) clamp(48px, 7vw, 96px); }
.intro-line {
  margin: 0; max-width: 24ch; font: 400 clamp(2.1rem, 4.8vw, 4rem)/1.15 var(--serif);
  color: var(--paper-soft); letter-spacing: -.01em;
}

/* ==========================================================================
   Collections & Cover Cards
   ========================================================================== */
.ix { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(72px, 10vw, 140px); }
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 3.5vw, 44px) clamp(16px, 2vw, 28px);
}
.card a { display: block; text-decoration: none; color: inherit; }
.card-img {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2);
  border-radius: 2px;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}
.card a:hover .card-img img { transform: scale(1.035); }
.card-info { margin-top: 14px; }
.card-t {
  margin: 0; font: 400 clamp(1.2rem, 1.8vw, 1.55rem)/1.2 var(--serif);
  letter-spacing: -.01em; transition: color .2s;
}
.card a:hover .card-t { color: var(--jade); }
.card-m { margin: 6px 0 0; display: flex; gap: 14px; color: var(--dim); font-size: .88rem; }
.card-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem;
  background: rgba(255,255,255,0.05); color: var(--dim); text-transform: uppercase; letter-spacing: .04em;
}

/* ==========================================================================
   Series / Gallery Page — Editorial Sequence
   ========================================================================== */
.page-head {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--gut) clamp(32px, 4.5vw, 64px);
}
.crumb { margin: 0 0 14px; color: var(--dim); font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.crumb a { text-decoration: none; color: var(--dim); }
.crumb a:hover { color: var(--jade); }
.page-title {
  margin: 0; font: 400 clamp(2.8rem, 8vw, 7.5rem)/1 var(--serif);
  letter-spacing: -.02em; color: var(--paper-soft);
}
.page-meta {
  margin: 16px 0 0; color: var(--dim); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
}
.page-meta span::after { content: '·'; margin-left: 18px; }
.page-meta span:last-child::after { content: ''; margin-left: 0; }
.page-desc { max-width: 66ch; margin: 24px 0 0; font: 400 1.18rem/1.7 var(--serif); color: var(--paper); }

.gallery { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; gap: var(--gap); }
.row { display: flex; gap: var(--gap); }
.ph { margin: 0; flex: var(--r) 1 0; min-width: 0; background: var(--ink-2); position: relative; }
.ph a { display: block; cursor: zoom-in; overflow: hidden; }
.ph img { width: 100%; transition: opacity .3s, transform .5s cubic-bezier(.2, .7, .2, 1); }
.ph a:hover img { transform: scale(1.015); }
.solo .ph { flex: 0 1 100%; }
.solo.portrait { justify-content: center; }
.solo.portrait .ph { flex: 0 1 auto; width: min(100%, calc(86vh * var(--r))); }
@media (max-width: 680px) {
  .row.pair { flex-direction: column; }
  .row.pair .ph { flex: none; width: 100%; }
  .solo.portrait .ph { width: 100%; }
}

/* ==========================================================================
   Next Series Navigation (Zero Dead Ends)
   ========================================================================== */
.next { max-width: var(--max); margin: clamp(72px, 10vw, 140px) auto 0; padding: 0 var(--gut); }
.next a {
  display: block; padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s;
}
.next a:hover { border-top-color: var(--jade); }
.next-l { display: block; color: var(--dim); font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }
.next-t {
  display: block; margin-top: 8px; font: 400 clamp(2.4rem, 7.5vw, 6.4rem)/1.05 var(--serif);
  color: var(--paper); transition: color .25s, transform .25s ease;
}
.next a:hover .next-t { color: var(--jade); transform: translateX(8px); }

/* ==========================================================================
   About Page & Services
   ========================================================================== */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--gut) clamp(64px, 10vw, 140px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: start;
}
.about-text .page-title { margin-bottom: 32px; }
.about-lead { font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.5 var(--serif); color: var(--paper-soft); margin-bottom: 24px; }
.about-body p { max-width: 48ch; font: 400 1.1rem/1.7 var(--sans); color: var(--dim); margin: 0 0 18px; }

/* Frosted glass facts card */
.facts-card {
  margin: 36px 0; padding: 28px 32px; border-radius: 4px;
  background: var(--ink-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.fact-item { display: flex; flex-direction: column; }
.fact-n { font: 500 1.8rem/1 var(--serif); color: var(--paper-soft); }
.fact-l { font-size: .85rem; color: var(--dim); margin-top: 6px; }

/* Services */
.services-title { margin: 44px 0 16px; font: 500 .95rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.services-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.service-pill {
  padding: 8px 16px; border-radius: 9999px; border: 1px solid var(--line);
  font-size: .88rem; color: var(--paper); background: rgba(255,255,255,0.03);
}

.about-pics { display: grid; gap: var(--gap); position: sticky; top: 100px; }
.about-pic { margin: 0; border-radius: 2px; overflow: hidden; background: var(--ink-2); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-pics { position: static; }
  .facts-card { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact Section — Inquiry Form + Direct Action Buttons
   ========================================================================== */
.contact-section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--gut) clamp(64px, 10vw, 140px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(36px, 6vw, 96px);
}
.contact-form {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--ink-2); padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: 4px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: .84rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); }
.form-input, .form-select, .form-textarea {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--paper-soft); padding: 12px 16px; border-radius: 2px;
  font: 400 1rem var(--sans); transition: border-color .2s, background-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--jade); background: rgba(255, 255, 255, 0.07);
}
.form-select option { background: var(--ink-2); color: var(--paper-soft); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  align-self: flex-start; padding: 14px 28px; background: var(--jade); color: var(--ink);
  font: 600 .95rem var(--sans); border: none; border-radius: 2px; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.form-submit:hover { opacity: .9; transform: translateY(-1px); }
.form-alert {
  padding: 16px 20px; border-radius: 4px; margin-bottom: 20px;
  background: rgba(149, 186, 169, 0.15); border: 1px solid var(--jade);
  color: var(--paper-soft); font-size: .95rem; line-height: 1.5;
}
.contact-actions {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.contact-btn {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  text-decoration: none; color: var(--paper-soft);
  transition: all .25s cubic-bezier(.2, .8, .2, 1);
}
.contact-btn:hover {
  background: var(--jade-glow); border-color: var(--jade);
  transform: translateY(-2px); color: var(--paper-soft);
}
.contact-btn-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); flex-shrink: 0; font-size: 1.25rem;
}
.contact-btn-info { display: flex; flex-direction: column; }
.contact-btn-name { font: 500 1.08rem/1.2 var(--sans); color: var(--paper-soft); }
.contact-btn-desc { font-size: .84rem; color: var(--dim); margin-top: 4px; }

/* Foot Direct Reach Buttons */
.foot-reach { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.foot-reach-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9999px;
  border: 1px solid var(--line); font-size: .86rem; color: var(--paper); text-decoration: none;
  background: rgba(255, 255, 255, 0.03); transition: all .2s;
}
.foot-reach-btn:hover { border-color: var(--jade); color: var(--jade); background: var(--jade-glow); }
@media (max-width: 800px) { .contact-section { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { max-width: var(--max); margin: clamp(80px, 12vw, 160px) auto 0; padding: 0 var(--gut) 36px; }
.foot-grid {
  border-top: 1px solid var(--line); padding-top: 48px;
  display: grid; grid-template-columns: 1.2fr auto; gap: 36px; align-items: end;
}
.foot-title { margin: 0; color: var(--dim); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.foot-mail { margin: 8px 0 0; font: 400 clamp(1.6rem, 3.8vw, 3rem)/1.15 var(--serif); overflow-wrap: anywhere; }
.foot-mail a { text-decoration: none; color: var(--paper-soft); }
.foot-mail a:hover { color: var(--jade); }
.foot-social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.foot-social a { text-decoration: none; color: var(--dim); font-size: .95rem; }
.foot-social a:hover { color: var(--paper-soft); }
.foot-small { margin: 48px 0 0; color: var(--dim-soft); font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Full-Screen Lightbox
   ========================================================================== */
.lb {
  position: fixed; inset: 0; z-index: 70; background: rgba(10, 8, 6, 0.98);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center; touch-action: pan-y;
  animation: lb-fade .2s ease-out;
}
.lb[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-img {
  max-width: 94vw; max-height: calc(100svh - 110px); width: auto; height: auto;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  transition: transform .25s ease-out;
}
.lb-count {
  position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center;
  color: var(--dim); font-size: .92rem; letter-spacing: .05em;
}
.lb-btn {
  position: absolute; min-width: 44px; min-height: 44px; display: grid; place-items: center;
  padding: 10px 18px; color: var(--paper); font-size: .95rem; border-radius: 9999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); transition: all .2s;
}
.lb-btn:hover { background: var(--jade-glow); border-color: var(--jade); color: var(--paper-soft); }
.lb-close { top: 16px; right: var(--gut); }
.lb-prev { left: var(--gut); bottom: 12px; }
.lb-next { right: var(--gut); bottom: 12px; }
@media (min-width: 768px) {
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
