/* =========================================================
   c5m photography — design system
   ========================================================= */
:root {
  --bg:        #0b0b0b;
  --bg-2:      #121212;
  --surface:   #161616;
  --surface-2: #1e1e1e;
  --text:      #f2f2f2;
  --muted:     #9a9a9a;
  --faint:     #666666;
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.18);
  --accent:    #ffffff;
  --accent-2:  #b8b8b8;

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: #111; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-2); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 500;
}
.eyebrow__num { display: inline-block; margin-right: 14px; padding-right: 14px; border-right: 1px solid var(--line-2); color: var(--faint); }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); line-height: 1.7; }

/* ---------- page-load choreography ----------
   hidden-initial states are scoped to html.js (set by an inline head
   script) so the site is fully visible when JS doesn't run */
.mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.mask > span { display: block; transition: transform 1.15s var(--ease); transition-delay: var(--d, 0s); }
html.js .mask > span { transform: translateY(112%); }
html.js body.is-loaded .mask > span { transform: none; }
.fade-up { transition: opacity 1s var(--ease) var(--d, .35s), transform 1s var(--ease) var(--d, .35s); }
html.js .fade-up { opacity: 0; transform: translateY(18px); }
html.js body.is-loaded .fade-up { opacity: 1; transform: none; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 8vw, 100px); }
.divider { height: 1px; background: var(--line); border: 0; }

/* =========================================================
   navigation
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease),
              opacity 1s var(--ease) .1s, transform 1s var(--ease) .1s;
  border-bottom: 1px solid transparent;
}
html.js .nav { opacity: 0; transform: translateY(-12px); }
html.js body.is-loaded .nav { opacity: 1; transform: none; }
.nav.scrolled {
  background: rgba(11,11,11, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 16px;
}
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 42px; width: auto; transition: height .4s var(--ease), opacity .25s; }
.nav__brand:hover img { opacity: .8; }
.nav.scrolled .nav__brand img { height: 34px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a {
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text);
  position: relative; padding: 6px 0; opacity: .85; transition: opacity .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { border: 1px solid var(--line-2); padding: 9px 18px !important; border-radius: 100px; }
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: #111 !important; }
.nav__cta::after { display: none; }

.nav__toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav__toggle span { position: absolute; left: 0; height: 1.5px; width: 100%; background: var(--text); transition: .35s var(--ease); }
.nav__toggle span:nth-child(1) { top: 2px; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 18px; }
body.menu-open .nav__toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* =========================================================
   hero
   ========================================================= */
.hero { position: relative; height: 100svh; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.9s var(--ease); transform: scale(1.04);
}
.hero__bg img.active { opacity: 1; animation: kenburns 15s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.13); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,.15) 35%, rgba(11,11,11,.55) 75%, rgba(11,11,11,.95) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 9vh, 120px); }
.hero__title { font-size: clamp(3rem, 11vw, 9.5rem); line-height: .92; letter-spacing: -.03em; }
.hero__title em { font-style: italic; color: var(--accent-2); }
/* =========================================================
   buttons / links
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  padding: 15px 30px; border-radius: 100px; transition: .3s var(--ease);
}
.btn--solid { background: var(--text); color: #111; }
.btn--solid:hover { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-underline { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.link-underline::after { content: ""; height: 1px; width: 26px; background: var(--accent); transition: width .3s var(--ease); }
.link-underline:hover::after { width: 44px; }

/* =========================================================
   section heading block
   ========================================================= */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.head__main { max-width: 720px; }
.head h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); margin-top: 18px; }
.head p { margin-top: 22px; }

/* =========================================================
   intro / statement
   ========================================================= */
.statement { max-width: 1100px; }
.statement__big { font-family: var(--serif); font-size: clamp(2.1rem, 5.4vw, 4.6rem); line-height: 1.12; letter-spacing: -.02em; }
.statement__big em { font-style: italic; color: var(--accent-2); }
/* scroll-driven word illumination */
.statement__big .w { opacity: .16; transition: opacity .55s var(--ease); }
.statement__big .w.on { opacity: 1; }
.statement__meta {
  display: flex; flex-wrap: wrap; gap: 14px clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line);
}
.statement__meta .row { display: flex; gap: 14px; align-items: baseline; }
.statement__meta .row span { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.statement__meta .row strong { font-weight: 400; font-size: .88rem; color: var(--muted); }

/* =========================================================
   featured marquee grid
   ========================================================= */
.featured-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.feat { position: relative; overflow: hidden; background: var(--surface); }
.feat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feat:hover img { transform: scale(1.05); }
.feat__cap { position: absolute; left: 18px; bottom: 16px; z-index: 2; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.feat:hover .feat__cap { opacity: 1; transform: translateY(0); }
.feat__cap small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); opacity: 0; transition: .4s; }
.feat:hover::after { opacity: 1; }
.feat--tall { grid-column: span 4; aspect-ratio: 2/3; }
.feat--wide { grid-column: span 8; aspect-ratio: 16/10; }
.feat--sq { grid-column: span 4; aspect-ratio: 1/1; }
.feat--half { grid-column: span 6; aspect-ratio: 3/2; }

/* =========================================================
   category cards
   ========================================================= */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.cat { position: relative; display: block; overflow: hidden; aspect-ratio: 4/5; background: var(--surface); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); filter: brightness(.86); }
.cat:hover img { transform: scale(1.06); filter: brightness(1); }
.cat__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 30px; background: linear-gradient(180deg, transparent, rgba(8,8,8,.85)); }
.cat__body h3 { font-size: 1.9rem; }
.cat__body .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.cat__body .meta span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cat__body .meta .num { font-family: var(--serif); color: var(--muted); font-size: 1rem; }

/* =========================================================
   about teaser / about page
   ========================================================= */
.about-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-split__img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface); }
.about-split__img img { width: 100%; height: 100%; object-fit: cover; }
.about-split__img::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; }
.about-split h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 18px 0 26px; }
.about-split p { color: var(--muted); }
.about-split p + p { margin-top: 18px; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--text); line-height: 1.4; margin: 30px 0; padding-left: 24px; border-left: 1px solid var(--line-2); }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; margin: 32px 0; }
.services li { display: flex; gap: 12px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; }
.services li::before { content: "—"; color: var(--faint); }

/* =========================================================
   page header (gallery / about pages)
   ========================================================= */
.page-head { padding-top: clamp(140px, 18vh, 220px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.6rem, 8vw, 6rem); margin-top: 16px; }
.page-head .lede { margin-top: 24px; max-width: 620px; }
.page-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.page-head__count { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); color: var(--faint); }
.page-head__count b { color: var(--text); font-weight: 400; }

/* =========================================================
   masonry gallery
   ========================================================= */
.gallery { columns: 3; column-gap: clamp(12px, 1.4vw, 20px); }
.gallery__item {
  break-inside: avoid; margin-bottom: clamp(12px, 1.4vw, 20px); position: relative; overflow: hidden;
  background: var(--surface); cursor: zoom-in;
  opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.gallery__item.in { opacity: 1; transform: none; }
.gallery__item img { width: 100%; transition: transform 1s var(--ease), filter .5s; filter: brightness(1); }
.gallery__item:hover img { transform: scale(1.04); filter: brightness(1.04); }
.gallery__item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }

/* =========================================================
   lightbox
   ========================================================= */
.lb {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8,8,8,.97); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.lb.open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.lb__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 5vw, 70px); }
.lb__img {
  max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.975);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.lb__img.ready { opacity: 1; transform: none; }
.lb__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: .25s; border: 1px solid transparent; }
.lb__btn:hover { background: rgba(255,255,255,.08); border-color: var(--line-2); }
.lb__prev { left: clamp(8px, 2vw, 28px); }
.lb__next { right: clamp(8px, 2vw, 28px); }
.lb__close { position: absolute; top: 22px; right: clamp(16px, 3vw, 34px); z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: .25s; }
.lb__close:hover { background: rgba(255,255,255,.08); transform: rotate(90deg); }
.lb__count { position: absolute; top: 28px; left: clamp(16px, 3vw, 34px); z-index: 2; font-size: .8rem; letter-spacing: .15em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb__count b { color: var(--text); font-weight: 500; }
@media (max-width: 640px) { .lb__btn { width: 44px; height: 44px; } }

/* =========================================================
   contact / CTA
   ========================================================= */
.cta { position: relative; overflow: hidden; }
.cta__inner { text-align: center; max-width: 820px; margin-inline: auto; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1; }
.cta h2 em { font-style: italic; color: var(--accent-2); }
.cta p { margin: 26px auto 38px; max-width: 540px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-info .row { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-info .row:last-child { border-bottom: 1px solid var(--line); }
.contact-info .row span { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.contact-info .row a, .contact-info .row strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; transition: color .25s; }
.contact-info .row a:hover { color: var(--accent); }

.form { display: grid; gap: 20px; }
.form .field { display: grid; gap: 8px; }
.form label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 14px 16px; transition: border-color .25s, background .25s; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.form textarea { resize: vertical; min-height: 130px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form button { justify-content: center; width: 100%; }
.form__note { font-size: .82rem; color: var(--faint); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button:disabled { opacity: .6; cursor: progress; }
.form__status { font-size: .95rem; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--text); }
.form__status.is-err { color: var(--muted); }

/* =========================================================
   footer
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer__brand img { width: 130px; opacity: .92; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 320px; font-size: .95rem; }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 90px); flex-wrap: wrap; }
.footer__col h4 { font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; color: var(--muted); transition: color .2s; font-size: .95rem; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); }
.footer__bottom a:hover { color: var(--text); }

/* =========================================================
   reveal animations
   ========================================================= */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(30px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* curtain reveal for imagery
   (clip lives on the img, not the container — Chrome's IntersectionObserver
   never fires for an element whose own clip-path hides it entirely) */
.reveal-img img { transition: clip-path 1.15s var(--ease), transform 1.6s var(--ease), filter .5s; }
html.js .reveal-img img { clip-path: inset(100% 0 0 0); transform: scale(1.12); }
html.js .reveal-img.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.feat.reveal-img.in:hover img { transform: scale(1.05); }
.cat.reveal-img.in:hover img { transform: scale(1.06); }

[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1024px) {
  .gallery { columns: 2; }
  .feat--wide { grid-column: span 12; }
  .feat--tall { grid-column: span 6; }
  .feat--sq, .feat--half { grid-column: span 6; }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(10,10,10,.97); backdrop-filter: blur(20px);
    transform: translateY(-100%); transition: transform .5s var(--ease); opacity: 0; pointer-events: none;
  }
  body.menu-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 1.1rem; }
  .nav__toggle { display: block; z-index: 101; }
  .about-split, .cats, .contact-grid { grid-template-columns: 1fr; }
  .cats { gap: 14px; }
  .form .row2 { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery { columns: 1; }
  .featured-grid { grid-template-columns: repeat(6, 1fr); }
  .feat--tall, .feat--sq, .feat--half, .feat--wide { grid-column: span 6; grid-row: auto; aspect-ratio: 4/5; }
  .hero { height: 92svh; }
}

/* =========================================================
   film grain (injected by JS)
   ========================================================= */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .045;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%25" height="100%25" filter="url(%23n)" opacity="0.6"/></svg>');
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .gallery__item { opacity: 1; transform: none; }
  .mask > span, .fade-up, .nav { opacity: 1 !important; transform: none !important; }
  .reveal-img img { clip-path: none !important; transform: none !important; }
  .statement__big .w { opacity: 1 !important; }
}
