/*
 * Sir Oinks — structure aligned with actor-portfolio norms:
 * full-bleed showcase photo, light editorial bio, wide dark reel, contact form.
 * Not the same layout as the old split purple panels.
 */

:root {
  --paper: #f6f4ef;
  --paper-ink: #1c1b19;
  --paper-muted: #5c5a55;
  --cinema: #0a0a0c;
  --cinema-line: rgba(255, 255, 255, 0.12);
  --accent: #2d4a8c;
  --nav-h: 3.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.5rem);
}

body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--paper-ink);
  background: var(--paper);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #111;
  color: #fff;
  z-index: 300;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Fixed nav — works over photo and paper */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  min-height: var(--nav-h);
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav__name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f5f5f5;
}
.site-nav__name:hover { text-decoration: none; color: #fff; }

.site-nav__links,
.site-nav__ext {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.site-nav__links a,
.site-nav__ext a {
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-nav__links a:hover,
.site-nav__ext a:hover {
  color: #fff;
  text-decoration: none;
}

.site-nav__ext { margin-left: auto; }

@media (max-width: 640px) {
  .site-nav__ext { margin-left: 0; width: 100%; }
}

/* —— Full-bleed showcase (photography owns the viewport) —— */
.showcase {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.showcase__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.showcase__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.showcase__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.45) 100%);
}

.showcase__intro {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
}

.showcase__rep {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
}

.showcase__h1 {
  margin: 0 0 0.5rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.showcase__roles {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.92;
}

.showcase__hook {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.5;
  max-width: 34rem;
  opacity: 0.95;
}

.showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: Outfit, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { text-decoration: none; opacity: 0.92; transform: translateY(-1px); }

.btn--light {
  background: #fff;
  color: #111;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.btn--dark {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

/* —— Paper bands —— */
.band {
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
}

.band--paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.band--cinema {
  background: var(--cinema);
  color: #e8e8ea;
}

.band__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.band__inner--narrow {
  max-width: 40rem;
}

.band__deck {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 36rem;
}

.h-section {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--paper-ink);
}

.h-section--on-dark {
  color: #fff;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--paper-muted);
  font-size: 0.98rem;
}

/* Bio typography — editorial serif */
.prose {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--paper-ink);
}

.prose h3.bio-heading {
  margin: 1.5em 0 0.5em;
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 0.35em;
}

.prose h4.bio-subheading {
  margin: 1.1em 0 0.35em;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}

.prose p {
  margin: 0 0 0.9em;
  text-align: left;
}

.prose .loading-message {
  font-family: Outfit, sans-serif;
  font-size: 0.9rem;
  color: var(--paper-muted);
}
.prose .loading-message::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 0.5rem 0 0;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Full-width reel breakout */
.reel-breakout {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 1rem clamp(2rem, 4vw, 3rem);
}

.reel-panel {
  max-width: 1200px;
  margin: 0 auto;
  background: #121214;
  border: 1px solid var(--cinema-line);
  border-radius: 4px;
  padding: 1rem 1rem 1.25rem;
}

.stage {
  position: relative;
  width: 100%;
  height: clamp(280px, 52vh, 560px);
  background: #000;
  border-radius: 2px;
  overflow: hidden;
  contain: strict;
}

.slideshow-mode,
.collage-mode {
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.slideshow-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.slideshow-mode.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.slideshow-mode .loading-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 2;
  font-family: Outfit, sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.slideshow-mode .loading-message::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 0.5rem auto 0;
  border: 2px solid var(--cinema-line);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.slideshow-image {
  display: block;
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.slideshow-image.active { opacity: 1; }

.collage-mode {
  display: grid;
  gap: 5px;
  padding: 6px;
  overflow: auto;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  grid-auto-rows: 64px;
  align-content: start;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.collage-mode.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.collage-mode.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.collage-mode > .loading-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  margin: 0;
  background: rgba(0, 0, 0, 0.88);
  font-family: Outfit, sans-serif;
  color: rgba(255, 255, 255, 0.6);
}
.collage-mode > .loading-message::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 0.45rem auto 0;
  border: 2px solid var(--cinema-line);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.collage-mode img {
  width: 100%;
  height: 100%;
  max-height: 64px;
  min-height: 0;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--cinema-line);
}

#collageGrid { display: contents; }

.toolbar {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btns button {
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  border: 1px solid var(--cinema-line);
  background: rgba(255, 255, 255, 0.06);
  color: #eee;
  cursor: pointer;
}
.btns button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: Outfit, sans-serif;
}

.opts label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.opts select {
  font: inherit;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  border: 1px solid var(--cinema-line);
  background: #1a1a1e;
  color: #eee;
}

.opts input[type="checkbox"] {
  accent-color: #fff;
}

.broken-image-placeholder {
  border: 1px dashed var(--cinema-line);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

/* Contact form */
.inquiry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 560px) {
  .inquiry { grid-template-columns: 1fr; }
}

.inquiry__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inquiry__field--full {
  grid-column: 1 / -1;
}

.inquiry__submit {
  grid-column: 1 / -1;
}

.inquiry__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.inquiry input,
.inquiry textarea {
  font: inherit;
  font-family: Outfit, sans-serif;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  background: #fff;
  color: var(--paper-ink);
}

.inquiry textarea {
  resize: vertical;
  min-height: 120px;
}

.direct-email {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--paper-muted);
}

.social-row__label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.social-row__stub {
  padding: 0.25rem 0.6rem;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  font-size: 0.75rem;
  color: var(--paper-muted);
}

.fine-print {
  margin: 0;
  font-size: 0.82rem;
  color: var(--paper-muted);
}

.site-foot {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--paper-muted);
  background: #ebe8e2;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-foot a { color: var(--accent); }
.site-foot .dot { margin: 0 0.35rem; opacity: 0.5; }
