/* ============================================================
   christopherfliegel.design — shared styles
   Design system inherited from the coaching brand,
   tuned quiet & gallery-first (imagery carries the page).
   ============================================================ */
:root {
  --bg:           #FAFAF8;
  --bg-cream:     #F5F1EA;
  --bg-dark:      #0A0A0A;
  --text:         #0F0F0F;
  --text-on-dark: #F5F1EA;
  --muted:        #6E6E73;
  --muted-dark:   #98989E;
  --line:         #E5E1D9;
  --line-dark:    #23231F;
  --accent:       #FF5A3C;

  --font-sans:  'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variation-settings: "opsz" 14;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.eyebrow .dot { color: var(--accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 248, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav.nav-dark {
  background: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.logo {
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
}
.logo .suffix { color: var(--accent); font-weight: 500; }
.nav-dark .logo { color: var(--text-on-dark); }
.nav-links { display: flex; gap: 1.9rem; align-items: center; font-size: 0.9rem; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-dark .nav-links a { color: var(--muted-dark); }
.nav-dark .nav-links a:hover, .nav-dark .nav-links a.active { color: var(--text-on-dark); }
@media (max-width: 680px) { .nav-links { gap: 1.15rem; font-size: 0.82rem; } }

/* ============================================================
   HERO (landing)
   ============================================================ */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .eyebrow { margin-bottom: 1.6rem; opacity: 0; animation: rise 0.7s 0.05s ease-out forwards; }
.hero-title {
  font-size: clamp(2.9rem, 11vw, 7.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
  max-width: 14ch;
  opacity: 0; animation: rise 0.85s 0.16s ease-out forwards;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin-top: 1.9rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
  opacity: 0; animation: rise 0.85s 0.3s ease-out forwards;
}

/* ============================================================
   CATEGORY TILES
   ============================================================ */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-cream);
  opacity: 0; animation: rise 0.9s ease-out forwards;
}
.tiles .tile:nth-child(1) { animation-delay: 0.42s; }
.tiles .tile:nth-child(2) { animation-delay: 0.52s; }
.tiles .tile:nth-child(3) { animation-delay: 0.62s; }
@media (max-width: 860px) { .tile { aspect-ratio: 4 / 3; } }
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile:hover img { transform: scale(1.045); }
.tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.12) 45%, rgba(10,10,10,0) 72%);
  z-index: 1;
}
.tile-body {
  position: absolute; z-index: 2;
  left: 1.5rem; right: 1.5rem; bottom: 1.4rem;
  color: var(--text-on-dark);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.tile-index {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--muted-dark); margin-bottom: 0.5rem;
}
.tile-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1; letter-spacing: -0.01em;
}
.tile-count { font-size: 0.82rem; color: var(--muted-dark); margin-top: 0.55rem; font-family: var(--font-mono); }
.tile-arrow {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid rgba(245,241,234,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, color 0.3s;
}
.tile:hover .tile-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: translate(2px,-2px); }
.tile.tile-soon { pointer-events: auto; }
.tile-flag {
  position: absolute; z-index: 2; top: 1.2rem; left: 1.4rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-on-dark);
  background: rgba(10,10,10,0.45); border: 1px solid rgba(245,241,234,0.25);
  padding: 0.34rem 0.6rem; border-radius: 100px; backdrop-filter: blur(6px);
}

/* ============================================================
   PAGE HEADER (gallery pages)
   ============================================================ */
.page-head { padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(1.75rem, 3vw, 2.75rem); }
.page-head .back {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 1.75rem; transition: color 0.2s;
}
.page-head .back:hover { color: var(--text); }
.page-head .back .arrow { transition: transform 0.25s; }
.page-head .back:hover .arrow { transform: translateX(-3px); }
.page-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.page-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96;
}
.page-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.page-lead { color: var(--muted); max-width: 46ch; font-size: 1.02rem; line-height: 1.6; margin-top: 0.4rem; }
.page-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; }

/* ============================================================
   GALLERY (masonry via CSS columns)
   ============================================================ */
.gallery {
  column-count: 3;
  column-gap: 1rem;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 560px) { .gallery { column-count: 1; } }
.shot {
  width: 100%;
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-cream);
  cursor: zoom-in;
  break-inside: avoid;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.shot.visible { opacity: 1; transform: translateY(0); }
.shot img { width: 100%; height: auto; transition: transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.shot:hover img { transform: scale(1.03); }

/* Single statement image (Natur) */
.statement {
  border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem;
  cursor: zoom-in; background: var(--bg-cream);
}
.statement img { width: 100%; height: auto; }
.statement-note {
  color: var(--muted); max-width: 52ch; font-size: 1rem; line-height: 1.65;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.statement-note a { color: var(--accent); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,8,8,0.94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}
.lb-btn {
  position: absolute; color: var(--text-on-dark);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(245,241,234,0.16);
  transition: background 0.2s, border-color 0.2s;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lb-prev { left: clamp(0.75rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.75rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: clamp(1rem,3vw,2rem); left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--muted-dark);
}
@media (max-width: 560px) { .lb-prev, .lb-next { display: none; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-dark); color: var(--text-on-dark); }
.contact-inner { padding: clamp(4rem, 9vw, 7rem) 0; }
.contact .eyebrow { color: var(--muted-dark); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; margin-top: 3.25rem;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-title {
  font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; line-height: 0.98;
  letter-spacing: -0.035em; font-variation-settings: "opsz" 80;
}
.contact-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.contact-lead { color: var(--muted-dark); font-size: 1.12rem; line-height: 1.6; max-width: 46ch; margin-top: 1.4rem; }
.contact-info { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.35rem; }
.contact-info-row { display: flex; flex-direction: column; gap: 0.28rem; }
.contact-info-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); }
.contact-info-value { color: var(--text-on-dark); font-size: 1rem; }
.contact-info-value a { transition: color 0.25s; }
.contact-info-value a:hover { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); }
.form-field input, .form-field textarea, .form-field select {
  background: transparent; border: none; border-bottom: 1px solid var(--line-dark);
  padding: 0.8rem 0; font-family: inherit; font-size: 1rem; color: var(--text-on-dark);
  transition: border-color 0.25s; border-radius: 0;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #5C5C60; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); }
.form-field select option { background: var(--bg-dark); color: var(--text-on-dark); }
.form-field textarea { resize: vertical; min-height: 108px; }
.form-submit {
  background: var(--bg); color: var(--bg-dark); padding: 1.05rem 2rem; border-radius: 100px;
  font-weight: 500; font-size: 1rem; align-self: start; margin-top: 0.6rem;
  transition: all 0.25s;
}
.form-submit:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-dark); color: var(--text-on-dark); padding: 2.5rem 0 2rem; border-top: 1px solid var(--line-dark); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-links { display: flex; gap: 1.7rem; font-size: 0.88rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted-dark); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-on-dark); }
.footer-copy {
  width: 100%; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark);
  font-size: 0.78rem; color: var(--muted-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.footer-copy a { color: inherit; }
.footer-copy a:hover { color: var(--text-on-dark); }

/* ============================================================
   MOTION
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .shot { opacity: 1; transform: none; }
}
