/* Dominic Schmidt — personal site */

:root {
  --bg: #0b0b0c;
  --bg-elevated: #121214;
  --bg-alt: #101012;
  --text: #f4f0e6;
  --text-soft: #c8c2b6;
  --muted: #8f8a80;
  --gold: #d4a574;
  --gold-bright: #e8c49a;
  --gold-dim: rgba(212, 165, 116, 0.18);
  --line: rgba(244, 240, 230, 0.1);
  --line-strong: rgba(212, 165, 116, 0.35);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.055;
  background-image: url("assets/grain.png");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }
cite { font-style: italic; }

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(212, 165, 116, 0.45);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover { color: var(--gold-bright); text-decoration-color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: #1a130c;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo:hover { color: var(--text); text-decoration: none; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.6vw, 1.65rem);
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 1px;
  background: var(--text);
  margin: 6px auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 165, 116, 0.08), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(80, 50, 30, 0.25), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.6rem, 9vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.hero-copy h1 .given,
.hero-copy h1 .family {
  display: block;
}

.hero-copy h1 .family {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}

.tagline {
  margin: 1.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  color: var(--text-soft);
  font-weight: 300;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-frame {
  margin: 0;
  position: relative;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0.85rem -0.85rem -0.85rem 0.85rem;
  border: 1px solid var(--line-strong);
  z-index: -1;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  object-position: 50% 18%;
  filter: contrast(1.04) saturate(0.92);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: #1a130c;
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: #1a130c;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 6.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-intro.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 28rem);
  gap: 1.5rem 3rem;
  align-items: end;
}

.section-intro h2,
.about-copy h2,
.contact-grid h2,
.reel-copy h3,
.channel-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-intro p,
.about-copy p,
.contact-grid > div p,
.channel-card p,
.reel-copy p {
  color: var(--text-soft);
}

.section-intro p:last-child,
.about-copy p:last-of-type {
  margin-bottom: 0;
}

.placeholder-note {
  color: var(--muted) !important;
  font-size: 0.98rem;
}

.placeholder-code {
  margin: 0.35rem 0 0;
  color: var(--gold);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
}

.about-photo figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-copy h2 { margin-bottom: 1.1rem; }

.facts {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.facts li { display: flex; flex-direction: column; gap: 0.25rem; }

.fact-label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* YouTube */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.channel-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.85rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.channel-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.channel-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.channel-card .btn { margin-top: 0.85rem; }

.reel-placeholder {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--bg);
}

.reel-screen {
  min-height: 16rem;
  background:
    linear-gradient(180deg, rgba(212, 165, 116, 0.08), transparent 50%),
    repeating-linear-gradient(90deg, #141416 0 18px, #0e0e10 18px 20px);
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.play-mark {
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: relative;
}

.play-mark::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--gold);
}

.reel-copy {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reel-copy h3 { font-size: 2rem; margin-bottom: 0.6rem; }

/* Credits */
.credits {
  display: grid;
  gap: 3rem;
}

.credits-group h3 {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.credit-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.credit-list .year {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.credit-list .title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
}

.credit-list .role {
  color: var(--text-soft);
  text-align: right;
}

.credit-list .role em {
  color: var(--muted);
  font-style: italic;
  font-size: 0.92em;
}

.credits-foot { margin: 2rem 0 0; }

.text-link {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15rem;
}

.text-link:hover { border-bottom-color: var(--gold-bright); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  min-height: 14rem;
  background:
    linear-gradient(180deg, rgba(244, 240, 230, 0.03), transparent),
    var(--bg-elevated);
  border: 1px dashed rgba(212, 165, 116, 0.28);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}

.gallery-item.tall { min-height: 18rem; grid-row: span 1; }
.gallery-item.wide { grid-column: span 2; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
}

.contact-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.social-label { margin-top: 1.85rem; }

.contact-panel .btn { margin-top: 1rem; }

.socials {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
}

.socials a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.socials a:hover { color: var(--gold); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.6rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 860px) {
  :root { --wrap: min(1120px, calc(100% - 1.5rem)); }

  .logo-name { display: none; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.15rem;
    background: rgba(11, 11, 12, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .hero { padding: 1.5rem 0 3rem; min-height: auto; }

  .hero-grid,
  .about-grid,
  .section-intro.split,
  .channel-grid,
  .reel-placeholder,
  .contact-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 2.25rem; }

  .hero-copy { order: 1; }
  .hero-frame { order: 0; max-width: 26rem; }

  .hero-frame::before { inset: 0.6rem -0.6rem -0.6rem 0.6rem; }

  .facts { grid-template-columns: 1fr; gap: 1rem; }

  .credit-list li {
    grid-template-columns: 3.6rem 1fr;
    gap: 0.4rem 0.85rem;
  }

  .credit-list .role {
    grid-column: 2;
    text-align: left;
    font-size: 0.95rem;
  }

  .gallery-item.wide { grid-column: auto; }

  .reel-screen { min-height: 12.5rem; border-right: 0; border-bottom: 1px solid var(--line); }

  .section { padding: 4.25rem 0; }
}

@media (max-width: 480px) {
  .hero-copy h1 { font-size: 3.15rem; }
  .hero-actions .btn { width: 100%; }
  .contact-panel { padding: 1.5rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Video grid */
.video-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 2.25rem 0 1.15rem;
}
.video-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.chip.is-on,
.chip:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.video-card:hover { border-color: var(--line-strong); text-decoration: none; color: inherit; }
.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}
.video-card .cap {
  padding: 0.7rem 0.8rem 0.85rem;
}
.video-card .cap strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.video-card .handle {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 5, 6, 0.88);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { width: min(960px, 100%); }
.lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox-title {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 1.25rem;
}
.lightbox-close {
  display: block;
  margin: 0 0 0.7rem auto;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Press */
.press-grid,
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.press-card,
.coverage-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.press-outlet {
  margin: 0;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.press-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.press-card h3,
.coverage-card h3 {
  margin: 0.35rem 0 0.15rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.25;
}
.press-card h3 a,
.coverage-card h3 a { color: var(--text); text-decoration: none; }
.press-card h3 a:hover,
.coverage-card h3 a:hover { color: var(--gold-bright); }
.press-card p:last-child,
.coverage-card p:last-child {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.coverage-thumb {
  display: block;
  margin: -1.5rem -1.35rem 0.85rem;
}
.coverage-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
}

/* Gallery */
.gallery-portraits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.gallery-portraits figure { margin: 0; }
.gallery-portraits img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}
.gallery-portraits figcaption,
.gallery-grid figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.gallery-sub {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}
.gallery-grid figcaption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-note {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.socials a { display: inline-block; }

@media (max-width: 860px) {
  .hero-frame {
    max-width: 22rem;
    margin-inline: auto;
  }
  .hero-frame img {
    aspect-ratio: 1 / 1;
    max-height: 42vh;
  }
  .video-grid,
  .press-grid,
  .coverage-grid,
  .gallery-portraits {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .site-nav a { letter-spacing: 0.08em; }
}

@media (max-width: 480px) {
  .video-grid,
  .press-grid,
  .coverage-grid,
  .gallery-portraits {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn { width: 100%; }
}
