/* ============================================
   TOKENS
   ============================================ */
:root {
  --ink: #141311;
  --ink-soft: #1F1D19;
  --paper: #F3EEE4;
  --paper-dim: #C9C3B5;
  --muted: #8C877C;
  --fuji-green: #00934C;
  --fuji-green-dim: #0B5C36;
  --velvia-amber: #E2A542;
  --film-red: #C1443B;
  --line: rgba(243, 238, 228, 0.14);

  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  color: var(--paper);
}

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

/* subtle film-grain overlay across the whole page */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  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");
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: rgba(20, 19, 17, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.logo-dot { color: var(--fuji-green); }

.main-nav { display: flex; gap: 2.2rem; }
.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--fuji-green); }
.main-nav a[href="#contact"] {
  border: 1px solid var(--fuji-green);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  color: var(--paper);
}
.main-nav a[href="#contact"]:hover { background: var(--fuji-green); color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--paper); }

/* ============================================
   FOCUS
   ============================================ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--fuji-green);
  outline-offset: 3px;
}

/* ============================================
   SHARED LAYOUT HELPERS
   ============================================ */
section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-sub { color: var(--muted); margin-top: 0.6rem; font-size: 0.98rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fuji-green);
  margin: 0 0 1rem;
}

.hero-lede {
  color: var(--paper-dim);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 1.1rem 0 0;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--fuji-green); color: var(--ink); }
.btn-primary:hover { background: var(--paper); }
.btn-ghost { border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--fuji-green); color: var(--fuji-green); }

/* ============================================
   FILM FRAME / SPROCKETS — signature element
   ============================================ */
.film-frame {
  display: grid;
  grid-template-columns: 14px 1fr 14px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.sprockets {
  background-image: radial-gradient(circle, var(--ink) 3px, transparent 3.2px);
  background-size: 14px 22px;
  background-position: center;
  background-color: #0b0a09;
}

.frame-photo {
  aspect-ratio: 3 / 2;
  width: 100%;
  position: relative;
  background-size: cover;
}
.frame-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
}

.frame-photo--hero   { background: linear-gradient(135deg, #2b3a2c 0%, #4b6b4e 35%, #9c7b3f 70%, #d9a441 100%); }
.frame-photo--street { background: linear-gradient(140deg, #3a352c 0%, #6b5a3e 45%, #a9814a 100%); }
.frame-photo--portrait { background: linear-gradient(150deg, #4a2f2c 0%, #8a5a4c 50%, #d3a37e 100%); }
.frame-photo--wedding { background: linear-gradient(150deg, #2e2a3a 0%, #5c4f6e 50%, #c9a3b0 100%); }
.frame-photo--land   { background: linear-gradient(160deg, #1f3b3a 0%, #2f6b5c 45%, #8fae5c 75%, #e2c96a 100%); }
.frame-photo--mono   { background: linear-gradient(140deg, #0d0d0c 0%, #3a3a38 50%, #7c7a72 100%); filter: grayscale(1) contrast(1.1); }

.exif-strip {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.65rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #0b0a09;
  border-top: 1px solid var(--line);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 8vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.06;
  margin-top: 0.6rem;
}

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

.hero-frame .frame-caption,
.hero-frame .exif-strip { grid-column: 1 / -1; }

/* ============================================
   STATEMENT
   ============================================ */
.statement {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}
.statement-mark {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--velvia-amber);
  text-transform: uppercase;
  margin: 0;
}
.statement-text {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--paper);
  max-width: 58ch;
  margin: 0;
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.frame-card--wide { grid-column: span 2; }

.frame-card { transition: transform 0.25s ease, border-color 0.25s ease; }
.frame-card:hover { transform: translateY(-4px); border-color: var(--fuji-green); }

.frame-caption {
  grid-column: 1 / -1;
  background: #0b0a09;
  border-top: 1px solid var(--line);
}
.frame-caption h3 {
  font-size: 1rem;
  padding: 0.9rem 1rem 0.3rem;
  font-weight: 500;
}
.frame-caption .exif-strip { border-top: 0; padding-top: 0.1rem; }

/* ============================================
   FILM SIMULATIONS
   ============================================ */
.lightbox-section { background: var(--ink-soft); }

.sim-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.sim-card {
  padding: 1.75rem 1.4rem;
  background: var(--ink);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.sim-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.sim-card--classicchrome::before { background: #7d8471; }
.sim-card--velvia::before { background: var(--film-red); }
.sim-card--astia::before { background: #d8b48a; }
.sim-card--acros::before { background: #9a9a9a; }

.sim-name {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--paper);
  margin: 0 0 0.5rem;
}
.sim-desc { color: var(--muted); font-size: 0.88rem; margin: 0; }

.gear-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.gear-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.gear-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fuji-green);
}
.gear-value { color: var(--paper-dim); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial {
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-soft);
}
.testimonial p {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--paper);
  margin: 0 0 1.2rem;
}
.testimonial footer {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   JOURNAL
   ============================================ */
.journal-list { border-top: 1px solid var(--line); }
.journal-entry {
  display: grid;
  grid-template-columns: 110px 1fr 30px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.journal-entry:hover { padding-left: 0.6rem; color: var(--fuji-green); }
.journal-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.journal-title {
  font-family: var(--display);
  font-size: 1.2rem;
}
.journal-arrow { justify-self: end; color: var(--fuji-green); }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--ink-soft); border-top: 1px solid var(--line); }
.contact-inner { max-width: 640px; }
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: 0.5rem; }

.contact-form { margin-top: 2.5rem; display: grid; gap: 1.3rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--fuji-green); }
.contact-form .btn { justify-self: start; margin-top: 0.5rem; border: none; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { padding: 2.5rem var(--pad) 2rem; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { color: var(--paper-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--fuji-green); }
.footer-bottom { padding-top: 1.4rem; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: 0.82rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .statement { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .frame-card--wide { grid-column: span 2; }
  .sim-strip { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav {
    position: fixed;
    inset: 62px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    padding: 2rem var(--pad);
    gap: 1.5rem;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
  }
  body.nav-open .main-nav { transform: translateY(0); }
  .nav-toggle { display: flex; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .frame-card--wide { grid-column: span 1; }
  .sim-strip { grid-template-columns: 1fr; }
  .gear-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .journal-entry { grid-template-columns: 1fr; gap: 0.4rem; }
  .journal-arrow { display: none; }
}
