/* ==========================================================================
   VINAYA ADHIKARI — Portfolio
   Shared stylesheet for every page.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Colour */
  --navy: #0F1A2E;
  --navy-soft: #1B2A45;
  --ink: #1C2230;
  --paper: #F7F3EA;
  --paper-dim: #EFE9DC;
  --panel: #FFFFFF;
  --line: #D9D1BE;
  --line-dark: #33405C;
  --gray: #6B6558;
  --gray-cool: #7C8496;
  --gold: #A47C34;
  --gold-soft: #C9A85E;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.14vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 2.1rem);
  --step-3: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4: clamp(2.6rem, 2.1rem + 2.5vw, 4.4rem);
  --step-5: clamp(3.2rem, 2.4rem + 4vw, 6rem);

  /* Layout */
  --content-max: 1180px;
  --prose-max: 660px;
  --space-unit: 8px;
  --radius: 2px;
  --nav-height: 84px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--navy);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1.1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

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

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 64px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* -------------------------------------------------------------------------
   3. Type utilities
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--gold);
  letter-spacing: 0.04em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.display-xl { font-size: var(--step-5); }
.display-l  { font-size: var(--step-4); }
.display-m  { font-size: var(--step-3); }

.lede {
  font-size: var(--step-1);
  color: var(--gray);
  max-width: var(--prose-max);
}

.prose {
  max-width: var(--prose-max);
  color: var(--ink);
}
.prose p { color: var(--ink); }

/* -------------------------------------------------------------------------
   4. Navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(247, 243, 234, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
}
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--navy-soft);
  padding: 6px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right var(--dur) var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  right: 0;
}
.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 32px;
  position: relative;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px;
  height: 1.5px;
  background: var(--navy);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -9px; }
.nav-toggle span::after { top: 9px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 120; }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(247, 243, 234, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(24px, 6vw, 48px) 40px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    z-index: 110;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-1);
  }
}

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 0.95rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-primary {
  background: var(--navy);
  color: var(--paper);
}
.btn-primary:hover { background: var(--navy-soft); }
.btn-outline:hover {
  background: var(--navy);
  color: var(--paper);
}
.btn-gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--paper);
}
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   6. Hero (page heroes)
   ------------------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--nav-height) + 90px) 0 70px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  max-width: 900px;
}

.media-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  height: clamp(260px, 26vw, 340px);
  min-height: 220px;
  padding: 0;
  border-bottom: none;
  display: flex;
  align-items: flex-end;
}

.media-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 26px;
}

.media-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 100%;
}

.media-hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.media-hero .eyebrow,
.media-hero h1 {
  color: var(--navy);
}

.media-hero h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
  margin-bottom: 0;
}

@keyframes mediaBgCycle {
  0%, 20% {
    opacity: 1;
    transform: scale(1.04);
  }
  25%, 100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

/* Home hero */
.home-hero {
  padding-top: calc(var(--nav-height) + 40px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  min-height: calc(100vh - var(--nav-height));
}
.home-hero .kicker {
  font-size: var(--step-0);
  color: var(--gold);
  margin-bottom: 18px;
}
.home-hero h1 {
  margin-bottom: 0.15em;
}
.home-hero .roles {
  color: var(--gray-cool);
  font-size: var(--step-1);
  margin: 18px 0 22px;
}
.home-hero .statement {
  max-width: 480px;
  color: var(--gray);
  margin-bottom: 34px;
}
.home-hero .socials {
  display: flex;
  gap: 22px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--gray-cool);
}
.home-hero .socials a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.home-hero .socials a:hover { border-color: var(--gold); color: var(--gold); }

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--navy);
  overflow: hidden;
}
.portrait-frame::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(247,243,234,0.35);
  z-index: 2;
  pointer-events: none;
}
.portrait-placeholder {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: rgba(247,243,234,0.55);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.portrait-placeholder svg { width: 56px; height: 56px; opacity: 0.8; }
.map-thread {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--paper);
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-height) + 20px); min-height: auto; }
  .portrait-frame { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* -------------------------------------------------------------------------
   7. Section rhythm
   ------------------------------------------------------------------------- */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; max-width: 640px; }
.section-alt { background: var(--paper-dim); }

/* -------------------------------------------------------------------------
   8. Cards — Areas of work
   ------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.work-card {
  background: var(--paper);
  padding: 34px 28px;
  transition: background var(--dur) var(--ease);
}
.work-card:hover { background: var(--panel); }
.work-card .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 22px;
  display: block;
}
.work-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.work-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }

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

/* -------------------------------------------------------------------------
   9. Focus / feature cards (About, generic)
   ------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  border-top: 2px solid var(--gold);
  padding-top: 20px;
}
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--gray); font-size: 0.95rem; }
@media (max-width: 780px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   10. Timeline (Experience / Education)
   ------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 900px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 54px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.timeline-item.is-visible { opacity: 1; transform: translateY(0); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 3px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
}
.timeline-item .tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 3px 10px;
  margin-bottom: 12px;
}
.timeline-item .role-date { color: var(--gray-cool); font-size: 0.9rem; margin-bottom: 6px; }
.timeline-item h3 { font-size: 1.3rem; margin-bottom: 4px; }
.timeline-item .org { color: var(--gray); font-style: italic; margin-bottom: 10px; font-family: var(--font-display); }
.timeline-item ul { margin-top: 10px; }
.timeline-item li {
  position: relative;
  padding-left: 18px;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.timeline-item li::before {
  content: "—";
  position: absolute; left: 0; color: var(--gold);
}

/* -------------------------------------------------------------------------
   11. Diaspora / connection diagram
   ------------------------------------------------------------------------- */
.bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 40px);
  padding: 50px 0;
  flex-wrap: wrap;
  text-align: center;
}
.bridge .place {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--navy);
}
.bridge .place small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--gray-cool);
  letter-spacing: 0.03em;
  margin-top: 6px;
}
.bridge .link-line {
  width: 90px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold), var(--gold) 6px, transparent 6px, transparent 12px);
  position: relative;
}
.bridge .link-line::after {
  content: "";
  position: absolute; right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* -------------------------------------------------------------------------
   12. Media / community cards
   ------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.media-card {
  background: var(--panel);
  border: 1px solid var(--line);
}
.media-thumb {
  aspect-ratio: 16/10;
  background: var(--paper-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-cool);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.media-thumb svg { width: 34px; height: 34px; opacity: 0.6; margin-bottom: 8px; }
.media-card-body { padding: 22px 24px; }
.media-card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.media-card-body p { color: var(--gray); font-size: 0.92rem; margin: 0; }
.media-card-body .meta { color: var(--gold); font-size: 0.8rem; margin-bottom: 8px; display: block; }

.stat-strip {
  display: flex;
  gap: clamp(24px, 5vw, 60px);
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  margin: 46px 0;
}
.stat-strip .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--navy);
}
.stat-strip .stat span { color: var(--gray-cool); font-size: 0.85rem; }
.stat-note { color: var(--gray-cool); font-size: 0.82rem; margin-top: -30px; margin-bottom: 46px; }

/* -------------------------------------------------------------------------
   Gallery masonry
   ------------------------------------------------------------------------- */
.masonry {
  width: min(100%, 1200px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.masonry-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-dim);
  aspect-ratio: var(--ar, 1/1);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.masonry-item > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.masonry-item:hover,
.masonry-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 26, 46, 0.08);
  outline: none;
}

.masonry-item.is-hidden {
  display: none;
}

.masonry-item .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 52px);
  padding: 18px;
  text-align: center;
  color: var(--gray-cool);
  background: linear-gradient(135deg, rgba(215, 204, 189, 0.7), rgba(247, 242, 230, 0.9));
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.masonry-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 26, 46, 0.8);
  color: var(--paper);
  font-size: 0.8rem;
  padding: 12px 14px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .masonry { grid-template-columns: 1fr; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

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

.lightbox-inner {
  max-width: min(84vw, 820px);
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 24px;
  color: var(--paper);
}

.lightbox-frame {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(247, 242, 230, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 20px;
  font-size: 1.1rem;
}

.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-caption {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

/* -------------------------------------------------------------------------
   13. Media slider
   ------------------------------------------------------------------------- */
.media-gallery-section {
  padding-top: 64px;
  padding-bottom: 80px;
  background: var(--paper);
}

.media-gallery-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visual-diary-header {
  text-align: center;
  margin-bottom: 18px;
}

.visual-title {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 0.96;
  margin: 0;
  color: var(--navy);
}

.visual-subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin: 14px 0 0;
  text-align: center;
}

.visual-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.visual-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.visual-socials a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.media-slider {
  width: min(100%, 950px);
}

.media-slider-stage {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 20px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #d8d2c5;
  box-shadow: 0 18px 40px rgba(15, 26, 46, 0.12);
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.media-frame img {
  display: block;
  width: 100%;
  max-height: 540px;
  height: auto;
  object-fit: contain;
  background: #e7e1d6;
}

.gallery-switch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(15, 26, 46, 0.28);
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.gallery-switch:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.media-slider-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 0 8px;
}

.slide-index {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gray-cool);
  text-transform: uppercase;
}

.media-slider-caption p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

.expand-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(15, 26, 46, 0.16);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.expand-btn:hover {
  transform: translateY(-2px);
  background: var(--paper);
}

.expand-btn svg {
  width: 18px;
  height: 18px;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

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

.photo-lightbox img {
  max-width: min(84vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.photo-lightbox .lightbox-close,
.photo-lightbox .lightbox-prev,
.photo-lightbox .lightbox-next {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
}

.photo-lightbox .lightbox-close {
  top: 22px;
  right: 22px;
}

.photo-lightbox .lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox .lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 720px) {
  .media-slider-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-switch {
    display: none;
  }

  .media-frame,
  .media-frame img {
    min-height: 380px;
    height: 380px;
  }

  .media-slider-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -------------------------------------------------------------------------
   14. Contact / Form
   ------------------------------------------------------------------------- */
.contact-page {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

body.contact-page .site-header {
  display: flex;
}

.contact-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 56px) clamp(24px, 5vw, 64px) 72px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.contact-copy {
  padding-left: 0;
}

.display-hero {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-size: clamp(4rem, 5.2vw, 8.5rem);
  color: var(--navy);
  margin: 0;
}

.contact-blurb {
  margin-top: 28px;
  max-width: 630px;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  color: var(--gray);
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 30px 42px;
  max-width: 600px;
  margin-top: 52px;
}

.meta-item h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 600;
}

.meta-item p,
.meta-item span {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}

.meta-item span {
  display: block;
  margin-top: 6px;
  color: var(--gray-cool);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--navy);
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-links a:nth-child(2) svg,
.social-links a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.contact-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 42px 36px 28px;
  width: min(100%, 620px);
  justify-self: end;
  box-shadow: 0 18px 30px rgba(15, 26, 46, 0.06);
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--navy);
  margin: 0 0 10px;
}

.contact-panel > p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--gray);
  max-width: 460px;
}

.contact-form {
  margin-top: 36px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-cool);
  margin-bottom: 10px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px 12px;
  font-size: 1.06rem;
  color: var(--ink);
  font-family: var(--font-body);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(28, 34, 48, 0.5);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.input-group textarea {
  min-height: 110px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  border: none;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 22px 24px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.submit-btn:hover {
  background: #bb8a3f;
  transform: translateY(-1px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-cool);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error {
  color: #A5432A;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}
.field.has-error input, .field.has-error textarea { border-color: #A5432A; }
.field.has-error .error { display: block; }
.form-note {
  font-size: 0.85rem;
  color: var(--gray-cool);
  margin-top: 18px;
}
.form-success {
  display: none;
  border: 1px solid var(--gold);
  padding: 16px 20px;
  color: var(--navy);
  margin-top: 20px;
  font-size: 0.92rem;
}
.form-success.is-visible { display: block; }

.contact-info dt {
  color: var(--gray-cool);
  font-size: 0.85rem;
  margin-top: 24px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 6px 0 0; font-size: 1.05rem; }

@media (max-width: 980px) {
  .contact-shell {
    padding: 42px 24px 56px;
  }

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

  .contact-panel {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }

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

  .contact-panel {
    padding: 30px 22px 20px;
  }
}

/* -------------------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(247,243,234,0.75);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247,243,234,0.15);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
.footer-brand {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  font-size: 0.82rem;
  color: rgba(247,243,234,0.5);
}

.contact-footer {
  background: #050809;
  color: rgba(255, 255, 255, 0.82);
  padding: 34px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-footer-inner {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 2px;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.8vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: #f4f2ee;
  line-height: 0.95;
  text-transform: none;
}

.footer-tag {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: none;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 26px;
}

.footer-nav a {
  position: relative;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  padding-bottom: 8px;
  transition: color 0.2s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: #c38b3d;
  transition: right 0.25s ease;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: #ffffff;
}

.footer-nav a:hover::after,
.footer-nav a[aria-current="page"]::after {
  right: 0;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px 0 18px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  border-color: rgba(255,255,255,0.8);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-socials a:nth-child(2) svg,
.footer-socials a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.contact-footer-bottom {
  justify-content: center;
  padding-top: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

@media (max-width: 700px) {
  .contact-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

/* -------------------------------------------------------------------------
   17. Scroll reveal utility
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------------------
   18. Misc
   ------------------------------------------------------------------------- */
.placeholder-note {
  font-size: 0.78rem;
  color: var(--gray-cool);
  font-style: italic;
}
hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }
