/* ============================================
   MARSHA AJAZ — PORTFOLIO
   Design system: warm glassmorphism
   ============================================ */

:root {
  /* Color tokens — warm, soft, drawn from her own bridal/editorial palette */
  --bg: #FBF7F0;
  --bg-deep: #F1E6D8;
  --paper: #FFFDFA;
  --ink: #3A2C24;
  --ink-soft: #7A6858;
  --ink-faint: #A6947F;

  --rose: #C48B82;
  --rose-deep: #A5675E;
  --gold: #AD8A4D;
  --gold-soft: #D9C08F;
  --maroon: #7C2E32;

  --glass-fill: rgba(255, 253, 250, 0.55);
  --glass-fill-strong: rgba(255, 253, 250, 0.78);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 32px rgba(122, 88, 68, 0.14);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", -apple-system, sans-serif;

  --header-h: 84px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  max-width: 100vw;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

section { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0; }

/* ---------- Decorative warm blobs (make the glass blur read) ---------- */

.blob-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.blob--rose { width: 420px; height: 420px; background: var(--rose); top: -120px; left: -100px; }
.blob--gold { width: 380px; height: 380px; background: var(--gold-soft); top: 30vh; right: -140px; }
.blob--maroon { width: 320px; height: 320px; background: var(--rose-deep); bottom: -100px; left: 20vw; opacity: 0.35; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

.type-hero {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.type-h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.type-h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

.type-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.65;
}

.type-body { color: var(--ink-soft); max-width: 62ch; }

.tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--rose-deep);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

/* ---------- Glass components ---------- */

.glass {
  background: var(--glass-fill);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: var(--glass-fill-strong);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(58, 44, 36, 0.25); }

.btn-glass {
  background: var(--glass-fill-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  color: var(--ink);
}
.btn-glass:hover { transform: translateY(-2px); background: var(--paper); }

.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Navigation ---------- */

.nav-wrap {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.nav-capsule {
  width: 100%;
  max-width: 920px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem 0.7rem 1.4rem;
  border-radius: 999px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover { background: rgba(122, 88, 68, 0.08); color: var(--ink); }
.nav-link.active { background: var(--ink); color: var(--paper); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(122, 88, 68, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--ink);
  transition: background 0.2s ease, transform 0.15s ease;
}
.icon-btn:hover { background: rgba(122, 88, 68, 0.16); }
.icon-btn:active { transform: scale(0.95); }

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
  pointer-events: none;
}

.menu-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

/* Mobile drawer backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(35, 24, 18, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: calc(max(16px, env(safe-area-inset-top)) + 58px);
  left: 1rem;
  right: 1rem;
  z-index: 99;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  pointer-events: none;
}
.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(122, 88, 68, 0.12);
}
.drawer-location {
  font-size: 0.76rem;
  color: var(--ink-faint);
  font-weight: 500;
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mobile-drawer .nav-link {
  font-size: 1.05rem;
  padding: 0.75rem 1rem;
  text-align: left;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-drawer-footer {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(122, 88, 68, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.btn-drawer-cta {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  font-size: 0.95rem;
}
.drawer-socials {
  display: flex;
  justify-content: space-around;
  padding-top: 0.2rem;
}
.drawer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.drawer-social-link:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 24, 18, 0.55) 0%, rgba(35, 24, 18, 0.08) 45%, rgba(35, 24, 18, 0.02) 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero-panel {
  max-width: 620px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}

.hero-panel .tag { color: var(--gold-soft); }
.hero-panel h1 { color: var(--paper); }

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-spec {
  color: rgba(255, 253, 250, 0.9);
  font-size: 0.88rem;
}
.hero-spec strong {
  display: block;
  color: var(--paper);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  opacity: 0.75;
}

.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: 72px;
  }
  .hero-media img {
    object-position: 74% 20%;
  }
  .hero-media::after {
    background: linear-gradient(
      to top,
      rgba(24, 16, 12, 0.94) 0%,
      rgba(24, 16, 12, 0.68) 34%,
      rgba(24, 16, 12, 0.2) 58%,
      rgba(24, 16, 12, 0.02) 80%,
      rgba(24, 16, 12, 0.35) 100%
    );
  }
  .hero-inner {
    padding: 0 1.1rem 1.75rem 1.1rem;
  }
  .hero-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    max-width: 100%;
  }
  .hero-panel .tag {
    color: var(--gold-soft);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
  }
  .hero-panel h1.type-hero {
    font-size: clamp(2.3rem, 7.5vw, 3.1rem);
    color: var(--paper);
    line-height: 1.08;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  }
  .hero-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.85rem 0 1.25rem;
    padding: 0.75rem 0.85rem;
    background: rgba(35, 24, 18, 0.48);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
  }
  .hero-spec {
    font-size: 0.82rem;
    color: rgba(255, 253, 250, 0.95);
  }
  .hero-spec strong {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--gold-soft);
    margin-bottom: 0.15rem;
  }
  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
  }
  .hero-ctas .btn {
    justify-content: center;
    padding: 0.85rem 0.75rem;
    font-size: 0.9rem;
    min-height: 48px;
  }
  .hero-ctas .btn-glass {
    color: var(--paper);
    background: rgba(255, 253, 250, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
  }
}

/* ---------- Bio / stats section ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.bio-portrait {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-lg);
}
.bio-portrait img {
  border-radius: calc(var(--radius-lg) - 10px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.bio-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.stat-chip {
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.stat-chip strong { color: var(--ink); font-weight: 600; margin-right: 0.4rem; }
.stat-chip span { color: var(--ink-soft); }

@media (max-width: 860px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .stat-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 1.35rem;
  }
  .stat-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
  }
  .stat-chip strong {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rose-deep);
    margin-bottom: 0.2rem;
    margin-right: 0;
  }
  .stat-chip span {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
  }
}

/* ---------- Journey (experience + education) ---------- */

.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.journey-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.journey-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.journey-list { list-style: none; margin: 0; padding: 0; }
.journey-list li {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(122, 88, 68, 0.14);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.journey-list li:first-child { border-top: none; padding-top: 0; }

.edu-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(122, 88, 68, 0.14);
}
.edu-row:first-child { border-top: none; padding-top: 0; }
.edu-name { font-weight: 500; color: var(--ink); }
.edu-period { color: var(--ink-faint); font-size: 0.85rem; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 720px) {
  .journey-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .journey-card { padding: 1.35rem 1.25rem; }
  .edu-row { align-items: baseline; }
}

/* ---------- Gallery preview (home) ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.preview-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  padding: 8px;
}

.preview-tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-md) - 6px);
  overflow: hidden;
}

.preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.preview-tile:hover img { transform: scale(1.06); }

.preview-tile-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink);
}

@media (max-width: 780px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .preview-grid > a:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }
  .preview-grid > a:last-child {
    display: block;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .section-head .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto;
  max-width: 1180px;
}
.cta-band-media { position: absolute; inset: 0; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.cta-band-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 6vw, 4rem);
}
.cta-band-content .tag { color: var(--gold-soft); }
.cta-band-content h2 { color: var(--paper); }
.cta-band-content p { color: rgba(255, 253, 250, 0.85); margin: 1.1rem auto 2rem; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .cta-band {
    border-radius: var(--radius-md);
  }
  .cta-band-content {
    padding: 3rem 1.25rem;
  }
  .cta-band-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .cta-band-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Gallery page ---------- */

.gallery-intro { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 3rem;
  padding: 0.35rem;
  width: fit-content;
  border-radius: 999px;
}

.filter-btn {
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.filter-btn.active { background: var(--ink); color: var(--paper); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.85rem, 2vw, 1.4rem);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  padding: 6px;
  cursor: pointer;
}
.gallery-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-md) - 5px);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.07); }

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 44, 36, 0.18);
}
.play-badge svg {
  width: 52px; height: 52px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

.gallery-item.hidden { display: none; }

@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 768px) {
  .gallery-intro {
    margin-bottom: 1.75rem;
  }
  .filter-bar {
    width: 100%;
    max-width: 360px;
    margin-bottom: 2rem;
    padding: 0.25rem;
  }
  .filter-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .gallery-item {
    border-radius: var(--radius-sm);
    padding: 4px;
  }
  .gallery-item-inner {
    border-radius: calc(var(--radius-sm) - 3px);
  }
  .play-badge svg {
    width: 40px;
    height: 40px;
  }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(30, 20, 15, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }

.lightbox-stage {
  position: relative;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  padding: 14px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 0.65rem;
}

.lightbox-counter {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.lightbox-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: none;
}

.lightbox-media {
  width: 100%;
  max-height: 80vh;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
  touch-action: pan-y pinch-zoom;
}
.lightbox-media img, .lightbox-media video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.2s ease, transform 0.15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.32); }
.lightbox-close:active, .lightbox-prev:active, .lightbox-next:active { transform: scale(0.94); }

.lightbox-close { top: -16px; right: -16px; z-index: 205; }
.lightbox-prev { left: -16px; top: 50%; transform: translateY(-50%); z-index: 205; }
.lightbox-next { right: -16px; top: 50%; transform: translateY(-50%); z-index: 205; }

@media (max-width: 640px) {
  .lightbox {
    padding: 0;
    background: rgba(14, 9, 7, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .lightbox-stage {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    padding: max(16px, env(safe-area-inset-top)) 1rem max(20px, env(safe-area-inset-bottom)) 1rem;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    justify-content: space-between;
  }
  .lightbox-topbar {
    order: 1;
    padding: 0.5rem 0 0.85rem 0;
  }
  .lightbox-hint {
    display: inline-block;
  }
  .lightbox-close {
    position: static;
    width: 40px;
    height: 40px;
  }
  .lightbox-media {
    order: 2;
    flex: 1;
    max-height: calc(100vh - 165px);
    border-radius: var(--radius-md);
    background: transparent;
  }
  .lightbox-media img, .lightbox-media video {
    max-height: calc(100vh - 165px);
    border-radius: var(--radius-md);
  }
  .lightbox-prev, .lightbox-next {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom));
    top: auto;
    transform: none;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    z-index: 210;
  }
  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-col-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}

.contact-portrait {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 240px;
}
.contact-portrait img { width: 100%; height: 100%; object-fit: cover; }

.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(122, 88, 68, 0.14);
}
.contact-line:first-of-type { border-top: none; }

.contact-line-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rose-deep); font-weight: 600; }
.contact-line-value { font-family: var(--font-display); font-size: 1.05rem; }

.copy-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(122, 88, 68, 0.1);
  border: none;
  color: var(--ink);
  min-height: 38px;
  min-width: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.copy-btn:hover { background: rgba(122, 88, 68, 0.18); }
.copy-btn:active { transform: scale(0.95); }

.contact-form-panel { padding: clamp(1.75rem, 3vw, 2.75rem); }

.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(122, 88, 68, 0.22);
  background: rgba(255, 253, 250, 0.6);
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on field focus */
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 48px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--rose-deep);
  background: var(--paper);
}
.form-textarea { min-height: 130px; resize: vertical; }

.form-feedback {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(173, 138, 77, 0.14);
  border: 1px solid rgba(173, 138, 77, 0.3);
  color: var(--ink);
  font-size: 0.9rem;
}
.form-feedback.show { display: block; }

@media (max-width: 860px) {
  .contact-col-left {
    display: contents;
  }
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-info {
    order: 1;
    padding: 1.5rem 1.25rem;
  }
  .contact-form-panel {
    order: 2;
    padding: 1.5rem 1.25rem;
  }
  .contact-portrait {
    order: 3;
    margin-top: 0;
    max-height: 420px;
    border-radius: var(--radius-md);
  }
}

/* ---------- Footer ---------- */

footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(122, 88, 68, 0.16);
}

.footer-brand { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.75rem; }
.footer-col-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--ink-soft); font-size: 0.92rem; padding: 0.2rem 0; display: inline-block; }
.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}
