/* ============================================================
   PEAK FOCUS PHOTOGRAPHY — cinematic dark theme
   ============================================================ */

:root {
  /* Core palette */
  --bg:        #0a0a0c;
  --bg-soft:   #111114;
  --bg-card:   #15151a;
  --line:      rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);

  --text:      #f4f4f6;
  --text-dim:  #a7a7b0;
  --text-faint:#6c6c77;

  /* Signature dual accents — the two halves of "Peak Focus" */
  --ice:    #67c5e0;   /* mountains / cold alpine light */
  --ember:  #ff6a3d;   /* athletes / heat + intensity   */
  --gold:   #e8b24a;   /* shared golden-hour highlight   */

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-faint);
}
.accent-ice   { color: var(--ice); }
.accent-ember { color: var(--ember); }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 12vw, 160px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); margin: 14px 0 18px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,12,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand b { font-weight: 800; }
.brand span { color: var(--text-faint); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.86rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0.01em; transition: color 0.25s var(--ease); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.cta {
  color: var(--text); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 100px;
}
.nav-links a.cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: 0.3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
body.menu-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    gap: 26px; background: rgba(10,10,12,0.97); backdrop-filter: blur(20px);
    transform: translateY(-100%); transition: transform 0.5s var(--ease);
  }
  .nav-links a { font-size: 1.4rem; }
  body.menu-open .nav-links { transform: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 620px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,12,0.95) 4%, rgba(10,10,12,0.25) 45%, rgba(10,10,12,0.55) 100%);
}
/* layered cinematic gradient as guaranteed base; photo sits on top */
.hero-media .base { position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 75% 10%, rgba(103,197,224,0.18), transparent 55%),
    radial-gradient(120% 90% at 10% 90%, rgba(255,106,61,0.16), transparent 55%),
    linear-gradient(135deg, #0c1118, #14100c);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-media img.loaded { opacity: 0.82; }

.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 {
  font-size: clamp(3rem, 12vw, 9.5rem);
  line-height: 0.86; letter-spacing: -0.04em;
  text-transform: uppercase; font-weight: 800;
}
.hero h1 .l2 { display: block; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero h1 .ice { color: var(--ice); }
.hero-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; margin-top: 26px; max-width: 640px; }
.hero-sub p { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 460px; }
.hero-scroll { position: absolute; bottom: 26px; right: var(--gutter); z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; }
.hero-scroll .line { width: 1px; height: 46px; background: linear-gradient(var(--text-faint), transparent); animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   PILLARS (the two subjects)
   ============================================================ */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--bg); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; min-height: clamp(420px, 62vh, 720px);
  display: flex; align-items: flex-end; overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
}
.pillar .pbase { position: absolute; inset: 0; z-index: 0; }
.pillar.ice  .pbase { background: linear-gradient(160deg, #0e1a22, #0a1418); }
.pillar.ember .pbase { background: linear-gradient(160deg, #211009, #160a0c); }
.pillar img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 6s var(--ease); }
.pillar img.loaded { opacity: 0.62; }
.pillar:hover img.loaded { opacity: 0.5; transform: scale(1.12); }
.pillar::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(10,10,12,0.92), rgba(10,10,12,0.15) 70%); }
.pillar-content { position: relative; z-index: 3; max-width: 460px; }
.pillar-content .num { font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.3em; opacity: 0.7; }
.pillar.ice .num  { color: var(--ice); }
.pillar.ember .num { color: var(--ember); }
.pillar-content h3 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 12px 0 14px; text-transform: uppercase; }
.pillar-content p { color: var(--text-dim); margin-bottom: 22px; }
.pillar-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
.pillar-link .arrow { transition: transform 0.3s var(--ease); }
.pillar:hover .pillar-link .arrow { transform: translateX(6px); }

/* ============================================================
   GALLERY GRID + CARDS
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gcard { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-card); aspect-ratio: 4 / 5; }
.gcard.wide { aspect-ratio: 16 / 10; grid-column: span 2; }
@media (max-width: 560px) { .gcard.wide { grid-column: span 1; } }
.gcard .gbase { position: absolute; inset: 0; background: linear-gradient(150deg, #16181d, #100d10); }
.gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 0.9s var(--ease), transform 1.2s var(--ease); }
.gcard img.loaded { opacity: 1; }
.gcard:hover img.loaded { transform: scale(1.07); }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,10,0.9) 2%, rgba(8,8,10,0) 55%); opacity: 0.85; transition: opacity 0.4s var(--ease); }
.gcard:hover::after { opacity: 1; }
.gcard-meta { position: absolute; left: 0; bottom: 0; z-index: 3; padding: clamp(18px, 2vw, 26px); width: 100%; }
.gcard-meta .tag { display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; border: 1px solid var(--line); margin-bottom: 12px; background: rgba(0,0,0,0.25); backdrop-filter: blur(4px); }
.gcard-meta .tag.ice { color: var(--ice); border-color: rgba(103,197,224,0.4); }
.gcard-meta .tag.ember { color: var(--ember); border-color: rgba(255,106,61,0.4); }
.gcard-meta h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); text-transform: none; }
.gcard-meta .sub { color: var(--text-dim); font-size: 0.85rem; margin-top: 5px; display: flex; gap: 14px; flex-wrap: wrap; }
.gcard-meta .sub span { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.88rem; padding: 12px 22px; border-radius: 100px; border: 1px solid var(--line); transition: 0.3s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.solid:hover { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ember { border-color: rgba(255,106,61,0.45); color: var(--ember); }
.btn.ember:hover { background: var(--ember); color: #160a0c; border-color: var(--ember); }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   ABOUT / SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg,#16181d,#100d10); }
.split-media img { position: absolute; inset:0; width:100%; height:100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.split-media img.loaded { opacity: 1; }
.split h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 22px; }
.split p { color: var(--text-dim); margin-bottom: 18px; }
.stat-row { display: flex; gap: 38px; margin-top: 32px; flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.stat .l { color: var(--text-faint); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact { text-align: center; }
.contact h2 { font-size: clamp(2.4rem, 8vw, 6rem); text-transform: uppercase; line-height: 0.92; }
.contact .email { display: inline-block; margin-top: 26px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 3vw, 1.8rem); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .3s var(--ease); }
.contact .email:hover { border-color: var(--text); }
.socials { display: flex; gap: 24px; justify-content: center; margin-top: 34px; }
.socials a { color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.08em; }
.socials a:hover { color: var(--text); }

footer.foot { border-top: 1px solid var(--line-soft); padding: 40px var(--gutter); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--text-faint); font-size: 0.8rem; }
footer.foot .brand { font-size: 0.95rem; }

/* ============================================================
   GALLERY PAGE (single)
   ============================================================ */
.gp-hero { position: relative; height: 70svh; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
.gp-hero .base { position: absolute; inset:0; background: linear-gradient(150deg,#0e1119,#160d0c); }
.gp-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; opacity:0; transition: opacity 1.2s var(--ease); }
.gp-hero img.loaded { opacity: 0.7; }
.gp-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(10,10,12,0.96), rgba(10,10,12,0.2) 60%); }
.gp-hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(32px, 5vw, 60px); }
.gp-hero h1 { font-size: clamp(2.4rem, 7vw, 5.5rem); text-transform: uppercase; line-height: 0.92; }
.gp-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; color: var(--text-dim); font-size: 0.92rem; }
.gp-meta span { display: inline-flex; align-items: center; gap: 8px; }

.gp-bar { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px var(--gutter); background: rgba(10,10,12,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.gp-bar .desc { color: var(--text-dim); font-size: 0.9rem; max-width: 560px; }

/* masonry via columns */
.masonry { columns: 3; column-gap: clamp(12px, 1.6vw, 20px); padding-block: clamp(36px, 6vw, 72px); }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.shot { position: relative; break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg,#16181d,#100d10); cursor: zoom-in; }
.shot img { width: 100%; height: auto; opacity: 0; transition: opacity 0.8s var(--ease), transform 0.6s var(--ease); }
.shot img.loaded { opacity: 1; }
.shot:hover img.loaded { transform: scale(1.03); }
.shot .dl { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(10,10,12,0.6); backdrop-filter: blur(6px); border: 1px solid var(--line); opacity: 0; transform: translateY(-6px); transition: 0.3s var(--ease); }
.shot:hover .dl { opacity: 1; transform: none; }
.shot .dl:hover { background: var(--text); color: var(--bg); }
.shot .dl svg { width: 17px; height: 17px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(6,6,8,0.96); backdrop-filter: blur(8px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lb-close, .lb-nav { position: absolute; z-index: 3; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid var(--line); transition: 0.25s var(--ease); }
.lb-close:hover, .lb-nav:hover { background: var(--text); color: var(--bg); }
.lb-close { top: 22px; right: 22px; }
.lb-nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-bar { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index:3; display: flex; align-items: center; gap: 18px; color: var(--text-dim); font-size: 0.85rem; }
.lb-bar .count { letter-spacing: 0.1em; }
@media (max-width: 560px) { .lb-nav { width: 42px; height: 42px; } .lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; } }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%); z-index: 300; background: var(--text); color: var(--bg); padding: 13px 22px; border-radius: 100px; font-weight: 600; font-size: 0.86rem; box-shadow: 0 12px 40px rgba(0,0,0,0.4); transition: transform 0.5s var(--ease); display: flex; align-items: center; gap: 9px; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: clamp(80px, 16vw, 180px) var(--gutter); }
.empty h2 { font-size: 2rem; margin-bottom: 14px; }
.empty p { color: var(--text-dim); margin-bottom: 26px; }

/* page top spacer for inner pages */
.page-top { padding-top: 120px; }
