:root {
  --ink: #0b1d26;
  --deep: #08161d;
  --sea: #0f3a47;
  --foam: #f6f2ea;
  --sand: #e9e1d2;
  --muted: #5d6b70;
  --accent: #ff6b4a;
  --line: rgba(11, 29, 38, 0.12);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--foam);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: #fff;
  transition: background .3s, color .3s, padding .3s;
}
.nav.solid { background: rgba(246, 242, 234, .94); color: var(--ink); backdrop-filter: blur(8px); padding-block: 12px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.nav ul { display: flex; gap: 28px; list-style: none; }
.nav ul a { text-decoration: none; font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .85; white-space: nowrap; }
.nav ul a:hover { opacity: 1; }
@media (max-width: 1000px) { .nav ul { gap: 16px; } .nav ul a { font-size: .78rem; letter-spacing: .05em; } }
@media (max-width: 720px) { .nav ul li:not(:last-child) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(48px, 9vh, 96px);
  color: #fff; overflow: hidden; background: var(--deep);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; opacity: .95; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,22,29,.35) 0%, rgba(8,22,29,0) 35%, rgba(8,22,29,.85) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 1100px; text-shadow: 0 2px 24px rgba(8,22,29,.45); }
.hero .eyebrow { color: #fff; opacity: .9; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 15vw, 11rem); line-height: .85; text-transform: uppercase; letter-spacing: -.01em; }
.hero p.lead { margin-top: 22px; max-width: 520px; font-size: clamp(1rem, 1.6vw, 1.2rem); opacity: .9; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid currentColor; cursor: pointer; background: none; font-family: inherit;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.light { color: #fff; }
.btn.dark { color: var(--ink); }

/* ---------- stats strip ---------- */
.stats { background: var(--ink); color: var(--foam); display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px var(--gutter); border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; text-transform: uppercase; }
.stat span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding-block: 20px; } }

/* ---------- sections ---------- */
section { padding: clamp(72px, 12vw, 140px) var(--gutter); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 8vw, 6rem); line-height: .9; text-transform: uppercase; }
h3 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; text-transform: uppercase; }

.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 4px; background: var(--sand); }
.about p { font-size: 1.1rem; color: var(--muted); margin-top: 20px; max-width: 560px; }
.about p strong { color: var(--ink); font-weight: 600; }
.disciplines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.disciplines li { list-style: none; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.disciplines a { display: block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.disciplines a:hover { background: var(--ink); color: var(--sand, #f6f2ea); border-color: var(--ink); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* ---------- films ---------- */
.films { background: var(--deep); color: var(--foam); }
.film-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.film { grid-column: span 2; text-decoration: none; display: block; }
.film.wide { grid-column: span 3; }
.film .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--sea); }
.film .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.film:hover .thumb img { transform: scale(1.05); }
.film .thumb::after {
  content: "▶"; position: absolute; left: 16px; bottom: 14px;
  width: 44px; height: 44px; display: grid; place-items: center; padding-left: 3px;
  border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: .9rem;
}
.film h3 { font-size: 1.25rem; margin-top: 14px; }
.film small { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
@media (max-width: 900px) { .film, .film.wide { grid-column: span 3; } }
@media (max-width: 560px) { .film, .film.wide { grid-column: span 6; } }

/* ---------- partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.partner { padding: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.partner p { color: var(--muted); font-size: .95rem; flex: 1; }
.code {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border: 1.5px dashed var(--ink); border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .1em;
  background: none; color: var(--ink); cursor: pointer; font-size: .95rem; width: 100%;
}
.code span { font-family: var(--body); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.partner a.more { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

/* ---------- work with me ---------- */
.work { background: var(--sand); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.work-item { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.work-item b { font-family: var(--display); font-size: 1rem; color: var(--accent); }
.work-item p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--foam); text-align: center; }
.contact h2 { font-size: clamp(2.6rem, 9vw, 7rem); }
.contact a.mail { display: inline-block; margin-top: 28px; font-size: clamp(1.1rem, 3vw, 1.8rem); font-weight: 500; text-underline-offset: 6px; word-break: break-word; }
.socials { margin-top: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.socials a { padding: 10px 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; text-decoration: none; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.socials a:hover { background: var(--foam); color: var(--ink); }

footer { background: var(--deep); color: rgba(246,242,234,.55); padding: 24px var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--foam); }

/* ---------- photos ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: none; font: 500 .8rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.filters button.on { background: var(--ink); color: var(--foam); border-color: var(--ink); }
.gallery { columns: 3 320px; column-gap: 12px; }
.gallery .shot { display: block; margin-bottom: 12px; break-inside: avoid; overflow: hidden; border-radius: 4px; background: var(--sand); }
.gallery .shot[hidden] { display: none; }
.gallery img { width: 100%; height: auto; transition: transform .5s; }
.gallery .shot:hover img { transform: scale(1.03); }

.lightbox { margin: auto; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; border: 0; padding: 0; background: rgba(8,22,29,.96); }
.lightbox::backdrop { background: rgba(8,22,29,.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); object-fit: contain; }
.lightbox button { position: fixed; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 12px 18px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 8px; } .gallery .shot { margin-bottom: 8px; } }
.photos-page { padding-top: clamp(110px, 14vw, 160px); min-height: 100svh; }
