:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3efe8;
  --muted: #8f8a83;
  --accent: #e8b04a;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading main, body.loading .nav { opacity: 0; }
main, .nav { transition: opacity 0.6s; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Film grain */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(1%, 3%); }
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, padding 0.3s, border-color 0.3s, opacity 0.6s;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 14px;
  border-color: var(--line);
}
.brand { font-family: var(--serif); font-size: 26px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav nav a { color: var(--muted); transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; transition: border-color 0.2s, color 0.2s; }
.nav .nav-cta:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .nav nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--pad) 40px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 80%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--bg);
}
.hero-media img, .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.85);
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to { transform: scale(1.14) translate(-1.5%, -1%); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.88) 0%, rgba(10, 10, 11, 0.45) 55%, rgba(10, 10, 11, 0.15) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, transparent 35%, rgba(10, 10, 11, 0.95) 100%);
}
.hero-content { animation: rise 1.2s var(--ease) both 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 8.5vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #0a0a0b; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { border-color: var(--text); }

/* Sections */
.section { padding: clamp(80px, 12vw, 160px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.filters button:hover { color: var(--text); }
.filters button[aria-selected='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 32px);
}
.card { display: block; width: 100%; text-align: left; }
.card.hide { display: none; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--surface); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.88);
  transition: transform 0.9s var(--ease), filter 0.5s;
}
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.05); filter: none; }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.card:hover .play, .card:focus-visible .play { opacity: 1; transform: none; }
@media (hover: none) { .play { opacity: 1; transform: none; width: 52px; height: 52px; margin: -26px 0 0 -26px; } }
.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.card-title { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }
.card-sub { font-size: 13px; color: var(--muted); white-space: nowrap; }
.empty {
  padding: 80px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 28px;
  text-align: center;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  border-top: 1px solid var(--line);
}
.about-photo {
  position: sticky;
  top: 100px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--surface), #1d1a16);
  display: grid;
  place-items: center;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.initials { font-family: var(--serif); font-size: clamp(80px, 12vw, 160px); color: color-mix(in srgb, var(--accent) 70%, transparent); }
.bio { margin: 32px 0 48px; max-width: 60ch; font-size: clamp(18px, 1.6vw, 22px); color: #d9d4cc; white-space: pre-line; }
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.service-num { font-family: var(--serif); font-size: 22px; color: var(--accent); }
.service h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.service p { font-size: 15px; color: var(--muted); }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; width: 100%; }
}

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact-title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 120px); line-height: 0.95; margin-bottom: 64px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-mail { display: inline-block; font-size: clamp(20px, 2.4vw, 30px); border-bottom: 1px solid var(--accent); padding-bottom: 4px; overflow-wrap: anywhere; }
.contact-info p { margin-top: 16px; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.socials a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.socials a:hover { color: var(--text); border-color: var(--text); }
.contact-form { display: grid; gap: 22px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-status { min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--accent); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 32px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 24px;
  background: rgba(5, 5, 6, 0.95);
  animation: fade 0.3s;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-frame {
  width: min(100%, calc((100svh - 200px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  animation: rise 0.6s var(--ease);
}
.lb-frame iframe, .lb-frame video { width: 100%; height: 100%; border: 0; }
.lb-caption { margin-top: 20px; max-width: 70ch; text-align: center; }
.lb-caption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.lb-caption span { font-size: 13px; color: var(--muted); }
.lb-caption p { margin-top: 8px; color: #cfc9c1; font-size: 15px; }
.lb-close { position: absolute; top: 12px; right: 16px; width: 48px; height: 48px; font-size: 36px; line-height: 1; color: var(--muted); }
.lb-close:hover { color: var(--text); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
