/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f6f6f4;
  --bg-3: #eeeeec;
  --ink: #111111;
  --ink-soft: #2c2c2c;
  --ink-mute: #6d6d6a;
  --ink-faint: #a8a8a4;
  --line: rgba(17, 17, 17, 0.12);
  --line-soft: rgba(17, 17, 17, 0.07);
  --paper: #ffffff;

  --serif: "Cormorant", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 84px;
  --container: 1400px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.2rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 2px; font-weight: 500; font-size: .85rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-8px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 720px) { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3.5rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); }
em, i { font-style: italic; }

/* =============================================================
   5. Components
   ============================================================= */

/* -- Nav -- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.site-nav.is-solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .container { display: flex; align-items: center; justify-content: flex-start; gap: 2.6rem; width: 100%; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: .18rem; flex-shrink: 0; }
.brand-word {
  font-family: var(--serif); font-size: 1.55rem; letter-spacing: -0.01em; font-weight: 500;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--sans); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-mute);
}

.nav-links { display: none; align-items: center; gap: 2.4rem; }
@media (min-width: 720px) { .nav-links { display: flex; } }

.nav-right { display: flex; align-items: center; gap: 1.2rem; margin-left: auto; }
.nav-social {
  display: flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; color: var(--ink); opacity: .8;
  transition: opacity .25s var(--ease-out);
}
.nav-social:hover { opacity: 1; }
.nav-social svg { width: 100%; height: 100%; }
.nav-link {
  position: relative; font-size: .85rem; letter-spacing: .04em; padding-block: .3rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--ink); transition: right .35s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--ink); }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: .5rem; z-index: 600;
}
@media (min-width: 720px) { .nav-toggle { display: none; } }
.nav-toggle span { width: 22px; height: 1px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 400;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 1.6rem; padding-inline: 2rem;
  transform: translateY(-100%); transition: transform .45s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { font-family: var(--serif); font-size: 2.2rem; }

/* -- Buttons / links -- */
.btn-line {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .85rem; letter-spacing: .04em; padding-block: .4rem;
  border-bottom: 1px solid var(--ink);
  transition: gap .3s var(--ease-out), opacity .3s var(--ease-out);
}
.btn-line:hover { gap: 1rem; opacity: .7; }

/* -- Filter tabs -- */
.filters {
  display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 0;
}
.filter-tab {
  position: relative; padding-block: 1rem; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute);
  transition: color .25s var(--ease-out);
}
.filter-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.filter-tab:hover { color: var(--ink); }
.filter-tab.is-active { color: var(--ink); }
.filter-tab.is-active::after { transform: scaleX(1); }
.filter-count { font-size: .68rem; color: var(--ink-faint); margin-left: .2rem; }

/* -- Gallery collage (full-bleed, masonry columns, each image keeps its own ratio) -- */
.gallery {
  column-count: 1;
  column-gap: 2px;
  padding-block: 2.4rem 0;
}
@media (min-width: 720px) { .gallery { column-count: 2; } }
@media (min-width: 1024px) { .gallery { column-count: 3; } }

.g-card {
  display: block; cursor: zoom-in;
  break-inside: avoid;
  margin-bottom: 2px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.g-card.is-shown { opacity: 1; transform: none; }
.g-card.is-hidden-filter { display: none; }

.g-figure {
  position: relative; overflow: hidden; background: var(--bg-2);
}
.g-figure img {
  width: 100%; height: auto; display: block;
  transition: transform .7s var(--ease-out), filter .7s var(--ease-out);
}
.g-card:hover .g-figure img { transform: scale(1.045); }

.g-figure-video::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(17,17,17,0.22);
  transition: background .35s var(--ease-out);
}
.g-card:hover .g-figure-video::after { background: rgba(17,17,17,0.38); }
.g-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-size: .95rem; padding-left: .15rem;
  z-index: 1; pointer-events: none;
}

.g-cap {
  /* hidden in the grid on purpose (captions only show in the lightbox) */
  display: none;
}
.g-cap-title { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink-soft); }
.g-cap-cat { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

/* -- Lightbox -- */
.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.98); color: var(--ink);
}
.lightbox::backdrop { background: rgba(255,255,255,0.98); }
.lightbox-inner {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox-img { max-width: min(1400px, 92vw); max-height: 76vh; object-fit: contain; }
.lightbox-video { display: none; max-width: min(1400px, 92vw); max-height: 76vh; }
.lightbox-video.is-active { display: block; }
.lightbox-img.is-hidden { display: none; }
.lightbox-cap { margin-top: 1.4rem; text-align: center; }
.lightbox-cap .g-cap-title { font-size: 1.15rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; padding: .8rem; font-size: 1.4rem; line-height: 1;
}
.lightbox-close { top: 1.2rem; right: 1.5rem; }
.lightbox-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .5rem; top: 50%; transform: translateY(-50%); }
@media (min-width: 720px) { .lightbox-prev { left: 1.5rem; } .lightbox-next { right: 1.5rem; } }

/* -- Footer -- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem; font-weight: 500; }
.footer-col a { display: block; font-size: .92rem; padding-block: .25rem; }
.footer-col a:hover { color: var(--ink-mute); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  font-size: .75rem; color: var(--ink-faint);
}

/* =============================================================
   6. Sections
   ============================================================= */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
}
.hero-inner { max-width: 46rem; }
.hero-kicker { margin-bottom: 1.4rem; }
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin-bottom: 1.6rem; }
.hero-title em { color: var(--ink-mute); }
.hero-sub { font-size: 1.05rem; color: var(--ink-mute); max-width: 34rem; margin-bottom: 2.2rem; }
.hero-scroll {
  position: absolute; bottom: 2.4rem; left: 1.5rem;
  display: flex; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
}
@media (min-width: 720px) { .hero-scroll { left: 2.5rem; } }
.hero-scroll-line { width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--ink); animation: scrollLine 2.2s var(--ease-soft) infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

.section { padding-block: 5.5rem; }
.section-tight { padding-block: 3rem; }
.section-head { max-width: 40rem; margin-bottom: 2.4rem; }
.section-head .kicker { margin-bottom: .9rem; }

.divider { border: 0; border-top: 1px solid var(--line-soft); margin-block: 0; }

/* -- About page -- */
.about-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; max-width: 42rem; margin-bottom: 2.2rem; }
.about-body { max-width: 38rem; color: var(--ink-soft); font-size: 1rem; margin-bottom: 3.2rem; }

.services-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 2.6rem; } }
.service-item { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.service-num { font-size: .72rem; color: var(--ink-faint); letter-spacing: .1em; }
.service-item h3 { margin-block: .6rem .6rem; }
.service-item p { font-size: .92rem; color: var(--ink-mute); }

.clients-list { display: flex; flex-wrap: wrap; gap: .6rem 2.2rem; margin-top: 1.2rem; }
.clients-list li { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }

/* -- Contact page -- */
.contact-hero { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
.contact-links { display: flex; flex-direction: column; gap: .3rem; margin-top: 1.6rem; }
.contact-email {
  font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3.4rem); font-style: italic;
  position: relative; display: inline-block; width: fit-content;
}
.contact-email::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -.05em; height: 2px;
  background: var(--ink); transition: right .4s var(--ease-out);
}
.contact-email:hover::after { right: 0; }
.contact-sub { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2rem; font-size: .95rem; color: var(--ink-mute); }
.contact-sub a:hover { color: var(--ink); }
.contact-meta { margin-top: 3.4rem; display: flex; gap: 2.4rem; flex-wrap: wrap; }
.contact-meta div { font-size: .82rem; }
.contact-meta .kicker { display: block; margin-bottom: .4rem; }

/* =============================================================
   7. Effects / misc
   ============================================================= */
.logo-mark { height: 40px; width: auto; opacity: .92; }

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line::after { animation: none; display: none; }
}

/* =============================================================
   8. Responsive tune-ups
   ============================================================= */
@media (max-width: 719px) {
  .footer-bottom { flex-direction: column; }
}

/* =============================================================
   9. Reduced motion (only intrusive — see gotcha A.2, never blanket-kill)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: .25s; }
}
