/* =========================================================
   STORYLENS STUDIOS — Design System
   Mood: dark & cinematic, teal/gold color-grade accents,
   EXIF-style monospace captions on portfolio work.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --bg:            #0B0D0F;
  --bg-alt:        #14171A;
  --surface:       #1B1F22;
  --surface-hi:    #23282B;
  --border:        #2B3134;
  --text:          #F2EFE9;
  --text-muted:    #9C9791;
  --text-faint:    #6B6864;
  --gold:          #B8923D;
  --gold-bright:   #D4B05C;
  --teal:          #2E6E6B;
  --teal-bright:   #4A9490;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(24px, 5vw, 64px);
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0; }

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

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

/* Subtle film-grain atmosphere, fixed over everything */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease,
              transform 0.35s ease, box-shadow 0.35s ease, letter-spacing 0.35s ease;
}
.btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-3px);
  letter-spacing: 0.12em;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,0.6);
}
.btn:active { transform: translateY(-1px); }
.btn-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #14100B;
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #14100B;
  box-shadow: 0 16px 32px -12px rgba(184,146,61,0.55);
}
.btn-ghost { border-color: rgba(242,239,233,0.3); }

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  background: linear-gradient(to bottom, rgba(11,13,15,0.85) 0%, transparent 100%);
  transition: background 0.35s ease, padding 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(11,13,15,0.92);
  backdrop-filter: blur(8px);
  padding: 16px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { line-height: 1; }
.logo img { height: 30px; width: auto; display: block; }
.site-footer .logo img { height: 42px; }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  border: 1px solid rgba(242,239,233,0.35);
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: border-color 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.site-header .nav-cta:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -14px rgba(184,146,61,0.5);
}
.nav-toggle { display: none; background: none; border: 0; color: var(--text); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; right: -100%;
    height: 100vh; width: min(78vw, 360px);
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: right 0.35s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.is-open { right: 0; }
  .nav-toggle { display: block; z-index: 101; }
}

/* ---------- Letterbox hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 0 0;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(46,110,107,0.58), transparent 62%),
    radial-gradient(ellipse at center, rgba(184,146,61,0.48), transparent 58%),
    linear-gradient(160deg, #1b1f22 0%, #0b0d0f 65%);
  background-size: 220% 220%, 220% 220%, 100% 100%;
  background-repeat: no-repeat;
  animation: heroDrift 16s ease-in-out infinite alternate;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,13,15,0.82) 0%, rgba(11,13,15,0.12) 55%, rgba(11,13,15,0.4) 100%);
}

@keyframes heroDrift {
  0%   { background-position: 10% 5%,  90% 95%, 0 0; }
  50%  { background-position: 65% 75%, 25% 15%, 0 0; }
  100% { background-position: 90% 30%, 5%  70%, 0 0; }
}
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero .eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); display: inline-block; }

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  max-width: 15ch;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions { margin-top: 44px; display: flex; gap: 18px; flex-wrap: wrap; }

.hero-meta {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 96px);
  z-index: 2;
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-align: right;
}
@media (min-width: 860px) { .hero-meta { display: block; } }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 12vh, 140px) 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--text-muted); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.hairline { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Intro / About teaser ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.frame {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.frame.wide { aspect-ratio: 16/10; }
.frame.square { aspect-ratio: 1/1; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--border);
  width: 100%; height: 100%;
  justify-content: center;
}
.frame-placeholder svg { opacity: 0.5; width: 28px; height: 28px; }

/* ---------- Services teaser grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.service-tile {
  background: var(--bg);
  padding: 40px 28px;
  transition: background 0.3s ease;
}
.service-tile:hover { background: var(--surface); }
.service-tile .num { font-family: var(--font-mono); color: var(--gold-bright); font-size: 0.78rem; }
.service-tile h3 { margin-top: 22px; font-size: 1.3rem; }
.service-tile p { margin-top: 12px; color: var(--text-muted); font-size: 0.92rem; }
.service-tile a { display: inline-block; margin-top: 20px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--teal-bright); text-transform: uppercase; }

/* ---------- Portfolio grid + EXIF captions ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--text-muted); transform: translateY(-2px); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #14100B; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
@media (max-width: 980px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-item {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--bg);
}
.portfolio-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item .frame-placeholder { position: absolute; inset: 0; border: none; }
.portfolio-caption {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,13,15,0.92) 0%, rgba(11,13,15,0.15) 45%, transparent 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-caption { opacity: 1; }
.portfolio-caption .cat {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright);
  margin-bottom: 8px;
}
.portfolio-caption h3 { font-size: 1.15rem; }
.portfolio-caption .meta {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-faint);
  margin-top: 10px; display: flex; gap: 12px; letter-spacing: 0.03em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,7,8,0.96);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 1100px; width: 100%; }
.lightbox-frame { aspect-ratio: 16/10; background: var(--surface); border: 1px solid var(--border); }
.lightbox-info { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; gap: 20px; flex-wrap: wrap; }
.lightbox-info h3 { font-size: 1.5rem; }
.lightbox-info .meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-faint); margin-top: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: 1px solid rgba(242,239,233,0.25); color: var(--text);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 28px; right: 28px; }
.lightbox-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ---------- Pricing / packages ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } }
.package {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
  display: flex; flex-direction: column;
}
.package.is-featured { border-color: var(--gold); position: relative; }
.package.is-featured::before {
  content: 'Most booked';
  position: absolute; top: -13px; left: 32px;
  background: var(--gold); color: #14100B;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius);
}
.package h3 { font-size: 1.4rem; }
.package .price { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-bright); margin-top: 18px; }
.package .price span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-faint); }
.package ul { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.package li { font-size: 0.92rem; color: var(--text-muted); padding-left: 22px; position: relative; }
.package li::before { content: '—'; position: absolute; left: 0; color: var(--teal-bright); }
.package .btn { margin-top: 32px; justify-content: center; }

/* ---------- Process steps (About page) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { background: var(--bg); padding: 40px 32px; }
.process-step .step-num { font-family: var(--font-mono); color: var(--gold-bright); font-size: 0.8rem; }
.process-step h3 { margin-top: 22px; font-size: 1.3rem; }
.process-step p { margin-top: 12px; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Testimonial / quote ---------- */
.quote-block { max-width: 780px; }
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}
.quote-block cite { display: block; margin-top: 26px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); font-style: normal; letter-spacing: 0.03em; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; margin: 0 auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 40px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { margin-top: 18px; font-size: 0.85rem; color: var(--text-faint); }
.form-status { margin-top: 18px; font-family: var(--font-mono); font-size: 0.85rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--teal-bright); }
.form-status.err { color: var(--gold-bright); }

/* ---------- Contact info list ---------- */
.info-list { display: flex; flex-direction: column; gap: 28px; }
.info-list dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.info-list dd { margin: 8px 0 0; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.03em; }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 180px 0 60px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-header .container { position: relative; z-index: 2; }
.page-header .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.page-header .eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); display: inline-block; }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; }
.page-header p { margin-top: 20px; max-width: 60ch; color: var(--text-muted); }
.page-header .hero-media::after {
  background: linear-gradient(to bottom, rgba(11,13,15,0.2) 0%, rgba(11,13,15,0.65) 100%);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
