:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --ink: #f2efe8;
  --muted: #9a958b;
  --gold: #d4af5a;
  --gold-soft: rgba(212, 175, 90, 0.35);
  --field: #121212;

  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --headline: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --condensed: "Archivo", "Arial Narrow", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 5.7vw, 114px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #000; }

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

a { color: inherit; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-soft);
  padding-top: 28px;
  padding-bottom: 24px;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px 72px;
  align-items: start;
}

.brand, .nav-item { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }

.label {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 1.4vw, 24px);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand .label { font-family: var(--headline); font-weight: 800; font-stretch: 110%; font-size: clamp(24px, 2vw, 34px); letter-spacing: -0.01em; }

.sub {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(11px, 0.85vw, 14px);
  color: var(--gold);
  text-decoration: none;
}
.sub.link { text-decoration: none; border-bottom: 1px solid var(--gold-soft); align-self: flex-start; }
.nav-item:hover .label, a.label:hover { color: var(--gold); }
.sub.link:hover { border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero { margin: 0 0 40px; position: relative; }
.hero img {
  width: 100%;
  height: min(78vh, 900px);
  object-fit: cover;
  object-position: 55% 35%;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero figcaption {
  position: relative; z-index: 1;
  margin-top: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Work sections ---------- */
main { padding-top: 0; }

.work {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.8fr);
  gap: 56px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.work-heading {
  font-family: var(--headline);
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--gold);
  font-size: clamp(34px, 3.4vw, 62px);
  line-height: 0.98;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.work-heading::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}

.work-title {
  display: block;
  font-family: var(--condensed);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  font-size: clamp(26px, 2vw, 38px);
  line-height: 1;
  letter-spacing: 0;
  margin: 28px 0 8px;
}

.work-meta {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-size: clamp(12px, 0.95vw, 15px);
  margin: 0;
}

.work-item + .work-item { margin-top: 96px; }

/* Video embeds (built by script.js) */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
  outline: 1px solid var(--gold-soft);
  outline-offset: 10px;
}
.video iframe, .video .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video .poster {
  background-color: #000;
  background-size: cover; background-position: center;
  cursor: pointer; border: 0; padding: 0;
  display: grid; place-items: center;
}
.video .poster::after {
  content: "";
  width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d4af5a' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 30px no-repeat;
  transition: transform .25s, background-color .25s;
}
.video .poster:hover::after { transform: scale(1.08); background-color: rgba(0,0,0,.8); }
.video .empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em;
  font-size: 22px; text-align: center; padding: 16px;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 72px;
  padding-top: 140px;
  padding-bottom: 160px;
  border-top: 1px solid var(--gold-soft);
  margin-top: 60px;
}

.about-media { display: flex; flex-direction: column; gap: 80px; }
.about-media figure { margin: 0; }
.about-media img {
  width: 100%; height: auto; min-height: 120px;
  background: var(--surface);
  filter: saturate(0.9);
}
.about-media figcaption {
  font-size: 13px; margin-top: 12px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.cv { text-decoration: none; align-self: flex-start; }
.cv .work-title {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 8px; margin-bottom: 10px;
  transition: letter-spacing .25s;
}
.cv:hover .work-title { letter-spacing: 0.08em; }

.bio p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 30px);
  line-height: 1.55;
  margin: 0 0 1.4em;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  padding-top: 160px;
  padding-bottom: 180px;
  align-items: start;
  border-top: 1px solid var(--gold-soft);
}

.big-email {
  display: inline-block;
  font-family: var(--headline);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 3.2vw, 60px);
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  color: var(--gold);
  margin-bottom: 100px;
  border-bottom: 1px solid var(--gold-soft);
  transition: border-color .2s;
}
.big-email:hover { border-color: var(--gold); }

.contact .sub {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.socials { list-style: none; padding: 0; margin: 20px 0 0; }
.socials li {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 46px);
  line-height: 1.35;
}
.socials span { color: var(--muted); }
.socials a { text-decoration: none; transition: color .2s; }
.socials a::after { content: " ↗"; color: var(--gold); font-size: .6em; vertical-align: .3em; }
.socials a:hover { color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  font: 400 clamp(17px, 1.3vw, 22px) var(--display);
  padding: 20px 28px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  resize: none;
  width: 100%;
  transition: border-color .2s;
}
.contact-form textarea { border-radius: 32px; min-height: 140px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6d6a64; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }

.contact-form button {
  font: 700 clamp(18px, 1.3vw, 22px) var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a0a;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.contact-form button:hover { background: transparent; color: var(--gold); }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; min-height: 1.4em; font-size: 17px; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 28px; padding-bottom: 40px;
  border-top: 1px solid var(--gold-soft);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.site-footer p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .site-header { position: static; padding-top: 24px; padding-bottom: 20px; }
  .header-grid { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .brand { grid-column: 1 / -1; }
  main { padding-top: 0; }
  .hero img { height: 62vh; object-position: 58% 40%; }
  .work, .about, .contact { grid-template-columns: 1fr; gap: 0; }
  .work { padding-top: 40px; padding-bottom: 40px; }
  .work-heading { order: -1; margin: 0 0 24px; }
  .video { outline-offset: 6px; }
  .about { padding-top: 80px; padding-bottom: 80px; gap: 48px; }
  .about-media { gap: 40px; }
  .contact { padding-top: 80px; padding-bottom: 80px; gap: 56px; }
  .big-email { margin-bottom: 56px; }
  .contact-form input, .contact-form textarea { padding: 16px 22px; }
}
