/* ===== TOKENS ===== */
:root {
  --paper: #FAF8F4;
  --paper-dim: #F1EDE4;
  --ink: #1A1917;
  --ink-soft: #4A4742;
  --sage: #8B9388;
  --taupe: #C4B8A8;
  --brick: #A8452F;
  --brick-soft: #c0644d;
  --line: rgba(26, 25, 23, 0.12);

  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, 'Cascadia Code', Consolas, 'Courier New', monospace;

  --max-width: 1400px;
  --gutter: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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");
  mix-blend-mode: multiply;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  mix-blend-mode: difference;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
}
.logo-dot { color: var(--brick-soft); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.85rem;
  color: #fff;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: #fff;
  display: block;
}

.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--brick-soft);
  transition: width 0.1s linear;
  mix-blend-mode: normal;
}

.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 70%;
  max-width: 320px;
  height: 100vh;
  background: var(--ink);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 2rem var(--gutter);
  transition: right 0.4s cubic-bezier(.65,0,.35,1);
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.92) contrast(1.02);
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,25,23,0.15) 0%, rgba(26,25,23,0.05) 40%, rgba(26,25,23,0.65) 100%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) 4.5rem;
  max-width: 760px;
  color: var(--paper);
}

.hero-content .eyebrow { color: var(--taupe); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--taupe);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 480px;
  margin-top: 1.5rem;
  color: rgba(250, 248, 244, 0.85);
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(250,248,244,0.4);
  padding-bottom: 6px;
  transition: border-color 0.3s ease, gap 0.3s ease;
}
.hero-cta:hover {
  border-color: var(--paper);
  gap: 0.8rem;
}
.arrow { transition: transform 0.3s ease; }

.hero-frame-mark {
  position: absolute;
  top: 7rem;
  right: var(--gutter);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(250,248,244,0.65);
  letter-spacing: 0.05em;
}

/* ===== INTRO STRIP ===== */
.intro-strip {
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  max-width: 980px;
  margin: 0 auto;
}
.intro-strip p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink-soft);
}
.intro-big { color: var(--ink); }

/* ===== WORK / GALLERY ===== */
.work {
  padding: 2rem var(--gutter) 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

.gallery {
  column-count: 3;
  column-gap: clamp(24px, 3.5vw, 48px);
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

.img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--paper-dim);
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}
.img-wrap:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: -2px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(.25,.46,.45,.94), filter 0.5s ease;
  filter: saturate(0.95);
}
.gallery-item:hover img {
  transform: scale(1.025);
}

.view-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(250,248,244,0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover .view-icon,
.img-wrap:focus-visible .view-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,25,23,0);
  transition: background 0.3s ease;
}
.gallery-item:hover .img-wrap::after {
  background: rgba(26,25,23,0.15);
}

figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.85rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
}
.frame-mark {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brick);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cap-text {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: right;
}

.gallery-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--line);
}

/* ===== ABOUT ===== */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 6rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.95);
}
.about-frame {
  position: absolute;
  bottom: -1.6rem;
  left: 0;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.about-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  max-width: 50ch;
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brick);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.text-link:hover { border-color: var(--brick); }

/* ===== CONTACT ===== */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 6rem var(--gutter) 5rem;
}
.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact .eyebrow { color: var(--taupe); }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.contact h2 em {
  font-style: italic;
  color: var(--brick-soft);
}
.contact-sub {
  max-width: 480px;
  color: rgba(250,248,244,0.7);
  font-size: 1rem;
  margin-bottom: 3.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--taupe);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250,248,244,0.25);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.6rem 0.1rem;
  transition: border-color 0.3s ease;
}
.form-row select option { background: var(--ink); color: var(--paper); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brick-soft);
}
.form-row textarea { resize: vertical; min-height: 100px; }

.submit-btn {
  align-self: flex-start;
  margin-top: 1rem;
  background: var(--paper);
  color: var(--ink);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.submit-btn:hover { background: var(--taupe); }

.form-note {
  font-size: 0.85rem;
  color: var(--sage);
  min-height: 1.2em;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 1px solid rgba(250,248,244,0.15);
  padding-left: clamp(1.5rem, 3vw, 3rem);
}
.direct-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.direct-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--taupe);
}
.direct-block a, .direct-static {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.direct-block a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.direct-block a:hover {
  border-color: var(--brick-soft);
  color: var(--brick-soft);
}

/* ===== FOOTER ===== */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  background: var(--ink);
  color: rgba(250,248,244,0.5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-top: 1px solid rgba(250,248,244,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .about {
    grid-template-columns: 1fr;
  }
  .about-image { max-width: 380px; }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-direct {
    border-left: none;
    border-top: 1px solid rgba(250,248,244,0.15);
    padding-left: 0;
    padding-top: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
  }

  .gallery { column-count: 2; }
}

@media (max-width: 640px) {
  .gallery { column-count: 1; }
  .hero-frame-mark { top: 6rem; font-size: 0.68rem; }
  .hero-content { padding-bottom: 3rem; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94), transform 0.8s cubic-bezier(.25,.46,.45,.94);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 12, 11, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: var(--gutter);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  max-width: 1100px;
  max-height: 88vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lightbox.open .lightbox-figure img {
  opacity: 1;
  transform: scale(1);
}
.lightbox-figure figcaption {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
  color: var(--paper);
  justify-content: center;
}
.lightbox-figure .frame-mark { color: var(--brick-soft); }
.lightbox-figure .cap-text { color: rgba(250,248,244,0.75); text-align: left; }

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  background: none;
  border: none;
  color: var(--paper);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover { opacity: 0.6; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--paper);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.lightbox-nav:hover { opacity: 0.6; }
.lightbox-prev { left: clamp(0.5rem, 3vw, 2rem); }
.lightbox-next { right: clamp(0.5rem, 3vw, 2rem); }

@media (max-width: 640px) {
  .lightbox-nav { font-size: 2rem; padding: 0.5rem; }
  .lightbox-close { top: 1rem; right: 1rem; font-size: 1.8rem; }
  .lightbox-figure figcaption { flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; }
  .lightbox-figure .cap-text { text-align: center; }
}
