/*
Theme Name: Sean Wilson Directs
Author: JQ Creative Solutions
Description: Custom portfolio theme for SeanWilsonDirects.com
Version: 1.0
*/

/* ────────────────────────────────────────────────────────────────────────────
   SeanWilsonDirects.com — design system
   ──────────────────────────────────────────────────────────────────────────── */

/* Color systems ─────────────────────────────────────────────────────── */
:root {
  --bg: #050505;
  --bg-elev: #0c0c0c;
  --fg: #f4f1ea;
  --fg-muted: rgba(244, 241, 234, 0.5);
  --fg-dim: rgba(244, 241, 234, 0.32);
  --rule: rgba(244, 241, 234, 0.14);
  --accent: #f4f1ea;
}

html[data-color="editorial"] {
  --bg: #f1ede4;
  --bg-elev: #e8e3d6;
  --fg: #0a0908;
  --fg-muted: rgba(10, 9, 8, 0.55);
  --fg-dim: rgba(10, 9, 8, 0.35);
  --rule: rgba(10, 9, 8, 0.14);
  --accent: #0a0908;
}

html[data-color="warm"] {
  --bg: #181210;
  --bg-elev: #221a16;
  --fg: #e7dcc9;
  --fg-muted: rgba(231, 220, 201, 0.55);
  --fg-dim: rgba(231, 220, 201, 0.34);
  --rule: rgba(231, 220, 201, 0.14);
  --accent: #e7dcc9;
}

/* Reset + base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-feature-settings: "ss01", "cv11";
  transition: background 220ms ease, color 220ms ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Type roles ───────────────────────────────────────────────────────── */
.eyebrow {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.serif-italic {
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-feature-settings: "tnum";
}

/* Layout shell ─────────────────────────────────────────────────────── */
.shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 0.5px solid var(--rule);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fg);
}
.brand-mark {
  display: none;
  flex: 0 0 auto;
}
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.brand-name .name {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand-name .role {
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

html[data-logo="badge"] .brand-mark.badge,
html[data-logo="stack"] .brand-mark.stack {
  display: flex;
}

.brand-mark.badge {
  width: 44px;
  height: 44px;
  border: 0.5px solid var(--fg);
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  letter-spacing: 0.04em;
}
.brand-mark.badge::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 0.5px solid var(--rule);
}
.brand-mark.badge span {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  z-index: 1;
}

.brand-mark.stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 0.78;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  padding-right: 14px;
  border-right: 0.5px solid var(--rule);
}
.brand-mark.stack b {
  font-weight: 700;
  display: block;
}

/* Nav ─────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 160ms ease;
  padding: 6px 0;
  position: relative;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--fg);
}

/* Hero quote (home) ──────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 9vw, 120px) 0 clamp(36px, 6vw, 72px);
  border-bottom: 0.5px solid var(--rule);
}
html[data-hero="hide"] .hero { display: none; }
.hero .eyebrow {
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--fg-muted);
  display: inline-block;
}
.hero-quote {
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 5.6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 22ch;
  color: var(--fg);
  text-wrap: balance;
}
.hero-quote .dim { color: var(--fg-muted); }
.hero-meta {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.hero-meta .pipe { color: var(--fg-dim); }

/* Reel grid ──────────────────────────────────────────────────────── */
.reel {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
}
.reel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.reel-head h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}
.reel-count {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.2vw, 44px) clamp(20px, 2.6vw, 36px);
}
html[data-grid="one"] .grid {
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
  gap: clamp(48px, 6vw, 96px);
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Tile ─────────────────────────────────────────────────────────── */
.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.tile-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elev);
  border: 0.5px solid var(--rule);
  isolation: isolate;
}
.tile-media iframe {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  border: 0;
  pointer-events: none;
  z-index: 1;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 600ms ease, opacity 600ms ease;
}
.tile-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), opacity 600ms ease;
}
.tile:hover .tile-poster { transform: scale(1.02); }
.tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 75%, transparent) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 300ms ease;
}
.tile:hover .tile-media::after { opacity: 0.4; }
.tile:hover .tile-media iframe { transform: scale(1.02); }

.tile-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg);
  mix-blend-mode: difference;
  opacity: 0.85;
}

.tile-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.tile:hover .tile-play { opacity: 1; }
.tile-play .dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0.5px solid var(--fg);
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
}

.tile-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px 0;
}
.tile-title {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg);
}
.tile-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* Lightbox ─────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, #000 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(20px, 4vw, 60px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.lightbox[data-open="1"] {
  display: flex;
  opacity: 1;
}
.lb-frame {
  width: min(1280px, 100%);
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lb-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -54px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: #f4f1ea;
}
.lb-meta .num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244, 241, 234, 0.55);
}
.lb-meta .title {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lb-meta .tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
}
.lb-close {
  position: absolute;
  top: -44px;
  right: 0;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.lb-close:hover { color: #f4f1ea; }
.lb-close .x {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0.5px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: 0;
}

/* Connect page ─────────────────────────────────────────────────── */
.connect {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
}
.connect-quote {
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(48px, 7vw, 96px);
  max-width: 22ch;
  text-wrap: balance;
}
.connect-quote .dim { color: var(--fg-muted); }

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) {
  .connect-grid { grid-template-columns: 1fr; }
}
@media (min-width: 861px) {
  .portrait { max-width: 75%; }
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev);
  border: 0.5px solid var(--rule);
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.portrait-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #f4f1ea;
  mix-blend-mode: difference;
}
.portrait-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.bio {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
}
.bio-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bio-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--fg-muted);
}
.bio-body {
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--fg);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}
.bio-body strong {
  font-weight: 500;
  color: var(--fg);
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  margin-top: 12px;
}
.contact a, .contact .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: var(--bg);
  transition: background 160ms ease, color 160ms ease;
}
.contact a:hover { background: var(--bg-elev); }
.contact .label {
  font-family: "Archivo", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.contact .value {
  font-family: "Archivo", sans-serif;
  font-size: clamp(15px, 1.2vw, 19px);
  letter-spacing: 0.02em;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.contact .arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 220ms ease;
  opacity: 0.6;
}
.contact a:hover .arrow { transform: translateX(4px); opacity: 1; }

/* Footer ────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--rule);
  margin-top: clamp(48px, 6vw, 96px);
}
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
}
.site-footer .col {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  flex-wrap: wrap;
}
.site-footer a, .site-footer span {
  font-family: "Archivo", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.site-footer a:hover { color: var(--fg); }
.site-footer .ig {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  margin: -4px;
  border-radius: 4px;
  color: var(--fg-muted);
  transition: color 160ms ease;
}
.site-footer .ig:hover { color: var(--fg); }
.site-footer .ig svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Small screens ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header .shell { min-height: 60px; }
  .nav { gap: 18px; }
  .nav a { font-size: 10px; letter-spacing: 0.18em; }
  .brand-name .name { font-size: 13px; }
  .brand-name .role { font-size: 9.5px; }
  .reel-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tile-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lb-meta { flex-direction: column; align-items: flex-start; gap: 4px; bottom: -68px; }
}
