/* Petrucci Studio — first static portfolio
   Black / gold, cinematic, restrained geometry. */

:root {
  --bg: #090909;
  --bg-elev: #111111;
  --bg-soft: #161513;
  --gold: #c9a45a;
  --gold-soft: #e2c785;
  --gold-dim: rgba(201, 164, 90, 0.55);
  --gold-line: rgba(201, 164, 90, 0.28);
  --ink: #f3ead8;
  --ink-dim: #a89e8a;
  --ink-mute: #6e675b;
  --rule: rgba(243, 234, 216, 0.1);
  --danger-draft: #c9a45a;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--bg); padding: .5rem 1rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: linear-gradient(to bottom, rgba(9,9,9,.92), rgba(9,9,9,.55) 70%, transparent);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex; align-items: center; gap: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 400;
}
.brand img { width: 28px; height: auto; }
.brand span { transform: translateY(1px); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color .2s ease;
}
.nav a:hover, .nav a:focus { color: var(--gold); }
.nav-toggle {
  display: none;
  width: 2.2rem; height: 2.2rem;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 0.35rem; right: 0.35rem;
  height: 1px; background: var(--ink);
  content: "";
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--pad) 5.5rem;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.05) saturate(0.9);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(9,9,9,0.92) 0%, rgba(9,9,9,0.35) 42%, rgba(9,9,9,0.25) 100%),
    radial-gradient(ellipse at 50% 80%, transparent 0%, rgba(9,9,9,0.35) 70%);
}
/* monoline geometry accent */
.hero-geom {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-geom svg {
  position: absolute;
  right: clamp(-4rem, -2vw, 2rem);
  top: 12%;
  width: min(42vw, 520px);
  height: auto;
  opacity: 0.55;
}

.hero-content { position: relative; z-index: 2; max-width: 42rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem; height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
.signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  color: var(--gold-soft);
  margin: 0 0 1.5rem;
}
.tagline {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 2.25rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  transition: background .2s ease, color .2s ease;
}
.btn:hover, .btn:focus { background: var(--gold); color: #111; }
.btn-ghost { border-color: var(--rule); color: var(--ink-dim); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

/* Sections */
section { padding: 6.5rem var(--pad); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.03em;
  margin: 0;
  line-height: 1;
}
.section-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  align-items: start;
}
.work-item {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  grid-column: auto;
}
.work-item.wide { grid-column: span 2; }
.work-item img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transition: transform .8s ease, filter .8s ease;
  filter: saturate(0.92);
}
.work-item:hover img, .work-item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.work-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 0.75rem;
}
.work-meta h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.04em;
}
.work-meta span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Video */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}
.video-card figure { margin: 0; }
.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border: 1px solid var(--rule);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-card figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0 0.2rem;
}
.video-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0;
}
.video-card .group {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.note {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--ink-mute);
  max-width: 50rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service {
  border: 1px solid var(--gold-line);
  padding: 2rem 1.6rem 2.1rem;
  background:
    linear-gradient(180deg, rgba(201,164,90,0.04), transparent 40%),
    var(--bg-elev);
  position: relative;
}
.service-num {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.service h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 0.9rem;
}
.service p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }
.draft-flag {
  display: inline-block;
  margin-top: 1.15rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  padding: 0.2rem 0.45rem;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about-portrait {
  position: relative;
}
.about-portrait img {
  width: 100%;
  height: auto;
  filter: contrast(1.05);
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 8% 8%;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.about-body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 .2rem;
}
.bio-source a { color: var(--gold); }
.bio-source a:hover { color: var(--gold-soft); }
.bio-sign {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-soft);
  margin-top: 1.35rem !important;
}
.about-body .signature { margin-top: 0.35rem; }
.about-body p { color: var(--ink-dim); max-width: 42rem; }
.bio-source {
  border-left: 1px solid var(--gold-line);
  padding: 0.15rem 0 0.15rem 1.2rem;
  margin: 1.5rem 0;
}
.bio-source p { color: var(--ink); }
.draft-box {
  border: 1px solid var(--gold-line);
  padding: 1rem 1.15rem;
  color: var(--ink-dim);
  font-size: 0.9rem;
  background: rgba(201,164,90,0.04);
}
.draft-box strong { color: var(--gold); font-weight: 500; letter-spacing: 0.12em; font-size: 0.65rem; text-transform: uppercase; display: block; margin-bottom: 0.4rem; }

.section-aside {
  margin: 0;
  color: var(--ink-mute);
  font-size: 0.8rem;
  max-width: 22rem;
}
.contact-lead { color: var(--ink-dim); max-width: 28rem; }
.contact-note { color: var(--ink-mute); font-size: 0.85rem; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { margin: 0 0 1.1rem; }
.contact-list .label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.contact-list a:hover { color: var(--gold); }
.form {
  display: grid; gap: 0.85rem;
}
.form input, .form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.7rem 0;
  font: inherit;
  outline: none;
}
.form input:focus, .form textarea:focus { border-bottom-color: var(--gold); }
.form textarea { min-height: 8rem; resize: vertical; }
.form .btn { margin-top: 0.6rem; justify-self: start; }

/* Footer */
.site-footer {
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-mute);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.site-footer a:hover { color: var(--gold); }

/* Lightbox */
body.lb-open { overflow: hidden; }

.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  background: #050505;
  padding: 3.25rem 4.25rem 5.75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox[hidden] { display: none !important; }
.lightbox.is-open { display: flex; }
.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.lightbox img {
  max-width: min(1400px, 92vw);
  max-height: calc(100vh - 9.75rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(201, 164, 90, 0.16);
  background: #000;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox figcaption {
  margin-top: 0.85rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink-dim);
  letter-spacing: 0.03em;
}
.lightbox .lb-count {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--gold-soft);
  z-index: 2;
  line-height: 1;
  transition: color .15s ease, opacity .15s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--ink); }
.lightbox-close {
  top: 0.85rem; right: 1.15rem;
  font-size: 1.85rem;
  width: 2.5rem; height: 2.5rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.75rem;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 0.35rem; }
.lightbox-next { right: 0.35rem; }
.lightbox-prev[disabled],
.lightbox-next[disabled] { opacity: 0.25; cursor: default; }

.lightbox-thumbs {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.55rem var(--pad) 0.7rem;
  scrollbar-width: thin;
}
.lightbox-thumbs button {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  padding: 0;
  border: 1px solid transparent;
  opacity: 0.5;
  background: #111;
  transition: opacity .15s ease, border-color .15s ease;
}
.lightbox-thumbs button.is-active,
.lightbox-thumbs button:hover,
.lightbox-thumbs button:focus-visible {
  opacity: 1;
  border-color: var(--gold);
}
.lightbox-thumbs img {
  width: 100%; height: 100%;
  object-fit: cover;
  max-width: none;
  max-height: none;
  box-shadow: none;
}

@media (max-width: 720px) {
  .lightbox { padding: 3.25rem 0.6rem 5.5rem; }
  .lightbox img { max-height: calc(100svh - 10rem); max-width: 96vw; }
  .lightbox-prev, .lightbox-next { font-size: 2.1rem; width: 2.4rem; }
}

@media (max-width: 980px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-item.wide { grid-column: span 1; }
  .services-grid, .video-grid, .about, .contact-wrap { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 240px 1fr; }
}
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(9,9,9,.97);
    padding: 1.25rem var(--pad) 1.75rem;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-aside { max-width: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item.wide { grid-column: span 1; }
  .services-grid, .video-grid, .about, .contact-wrap { grid-template-columns: 1fr; }
  section { padding: 4.25rem var(--pad); }
  .hero { align-items: flex-end; padding-bottom: 4rem; }
}
