/* ============================================================
   SHANU RANA — Wildlife & Travel Photography
   Dark cinematic theme · "Expedition journal" style
   ============================================================ */

:root {
  --bg: #0b0e11;
  --bg-soft: #11151a;
  --surface: #161b21;
  --line: rgba(232, 228, 218, 0.12);
  --text: #e8e4da;
  --muted: #a39d8f;
  --accent: #c89b5a;
  --accent-soft: rgba(200, 155, 90, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

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

.kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.9rem 0 1rem; }

h3 { font-size: 1.25rem; }

.lead { color: var(--muted); max-width: 60ch; }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: rgba(11, 14, 17, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-size: 1.2rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 14, 17, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 4vw 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.8rem 0; }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,14,17,0.55) 0%, rgba(11,14,17,0.05) 35%, rgba(11,14,17,0.82) 88%),
    radial-gradient(120% 90% at 50% 10%, transparent 50%, rgba(11,14,17,0.5) 100%);
}

.hero-inner {
  padding: 0 0 11vh;
}

.hero .kicker { color: #e3c08d; }

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  font-weight: 450;
  margin: 1.1rem 0 1rem;
  max-width: 16ch;
}

.hero h1 em {
  font-style: italic;
  color: #e3c08d;
}

.hero p {
  color: rgba(232, 228, 218, 0.85);
  max-width: 52ch;
  font-size: 1.02rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-coords {
  position: absolute;
  right: 4vw;
  bottom: 4.5vh;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232,228,218,0.55);
  writing-mode: vertical-rl;
}

@media (max-width: 760px) { .hero-coords { display: none; } }

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

.btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--accent);
  color: var(--text);
  transition: background 0.25s, color 0.25s;
}

.btn.solid { background: var(--accent); color: #14110b; }

.btn:hover { background: var(--accent); color: #14110b; }

.btn.solid:hover { background: #dab06c; }

.btn.ghost { border-color: var(--line); }

.btn.ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* ---------- Sections ---------- */

.section { padding: 6.5rem 0; }

.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

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

.section-head .more {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  white-space: nowrap;
}

.section-head .more:hover { color: #dab06c; }

@media (max-width: 700px) {
  .section { padding: 4.5rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------- Cards & grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

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

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

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.6s;
  filter: saturate(0.92);
}

.card:hover .thumb img { transform: scale(1.045); filter: saturate(1.05); }

.card-body { padding: 1.3rem 1.4rem 1.5rem; }

.card-body .tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-body h3 { margin: 0.45rem 0 0.4rem; }

.card-body p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Photo gallery (masonry-ish) ---------- */

.masonry {
  columns: 3;
  column-gap: 1.2rem;
}

@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

.photo {
  position: relative;
  margin-bottom: 1.2rem;
  break-inside: avoid;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
}

.photo img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.photo:hover img { transform: scale(1.04); }

.photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(232,228,218,0.9);
  background: linear-gradient(180deg, transparent, rgba(11,14,17,0.85));
  opacity: 0;
  transition: opacity 0.35s;
}

.photo:hover figcaption { opacity: 1; }

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 10, 12, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 3.5vh;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.25s, background 0.25s;
}

.lightbox button:hover { border-color: var(--accent); background: var(--accent-soft); }

.lb-close { top: 3vh; right: 4vw; }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }

/* ---------- Film embeds ---------- */

.film {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}

.film img, .film iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.film .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(11,14,17,0.1), rgba(11,14,17,0.55));
  transition: background 0.3s;
}

.film:hover .play { background: linear-gradient(180deg, rgba(11,14,17,0), rgba(11,14,17,0.4)); }

.film .play span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(11, 14, 17, 0.65);
  border: 1px solid rgba(232,228,218,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.film:hover .play span {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.07);
}

.film .play svg { width: 22px; height: 22px; fill: var(--text); margin-left: 3px; }

.film:hover .play svg { fill: #14110b; }

.film-meta { padding: 0.9rem 0.2rem 0; }

.film-meta h3 { font-size: 1.05rem; }

.film-meta p {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ---------- Quote band ---------- */

.quote-band {
  position: relative;
  padding: 7rem 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.quote-band .band-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 14, 17, 0.78);
}

.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  max-width: 26ch;
  margin: 0 auto;
}

.quote-band cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- About preview / page ---------- */

.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 820px) { .about-split { grid-template-columns: 1fr; gap: 2.5rem; } }

.portrait {
  position: relative;
  border: 1px solid var(--line);
}

.portrait img { width: 100%; }

.portrait::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(200, 155, 90, 0.35);
  pointer-events: none;
}

.about-copy p { color: var(--muted); margin-bottom: 1.1rem; }

.about-copy p strong { color: var(--text); font-weight: 600; }

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-top: 2.4rem;
}

.stats div {
  padding: 1.4rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

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

.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--accent);
}

.stats span {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Adventure timeline cards ---------- */

.adventure {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 2.2rem;
  overflow: hidden;
}

.adventure:nth-child(even) { direction: rtl; }
.adventure:nth-child(even) > * { direction: ltr; }

.adventure .adv-img { min-height: 320px; position: relative; overflow: hidden; }

.adventure .adv-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.adventure:hover .adv-img img { transform: scale(1.04); }

.adventure .adv-body {
  padding: 2.6rem 2.6rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.adventure .adv-body h3 {
  font-size: 1.6rem;
  margin: 0.5rem 0 0.8rem;
}

.adventure .adv-body p { color: var(--muted); font-size: 0.95rem; }

.adventure .adv-links { margin-top: 1.4rem; display: flex; gap: 1.6rem; flex-wrap: wrap; }

.adventure .adv-links a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}

.adventure .adv-links a:hover { border-color: var(--accent); }

@media (max-width: 820px) {
  .adventure, .adventure:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .adventure .adv-img { min-height: 230px; }
  .adventure .adv-body { padding: 1.8rem 1.5rem; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 11rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 80% 0%, rgba(200,155,90,0.07) 0%, transparent 60%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  font-weight: 450;
  margin-top: 1rem;
}

.page-hero p { color: var(--muted); max-width: 62ch; margin-top: 0.8rem; }

/* ---------- Filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.6rem; }

.filters button {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  transition: all 0.25s;
}

.filters button:hover { border-color: var(--accent); color: var(--text); }

.filters button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110b;
}

/* ---------- Notice (placeholder hint) ---------- */

.notice {
  border: 1px dashed rgba(200,155,90,0.45);
  background: var(--accent-soft);
  padding: 1.1rem 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
}

.notice strong { color: var(--accent); }

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

.cta-band {
  text-align: center;
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.cta-band h2 { max-width: 22ch; margin-inline: auto; }

.cta-band .hero-actions { justify-content: center; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-grid .brand { font-size: 1.35rem; }

.socials { display: flex; gap: 0.9rem; }

.socials a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.socials a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.socials svg { width: 17px; height: 17px; fill: var(--text); }

.footer-note {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
