:root {
  --bg: #0b0d12;
  --bg-soft: #11141c;
  --panel: #171c27;
  --text: #f7f5ff;
  --muted: #c7c0d8;
  --line: rgba(255,255,255,0.12);
  --accent: #d67bff;
  --accent-2: #8af7f0;
  --max: 1200px;
  --radius: 22px;
  --shadow: 0 20px 55px rgba(0,0,0,0.36);
  --accent-glow: rgba(214,123,255,0.34);
  --aqua-glow: rgba(138,247,240,0.22);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(214,123,255,0.17), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(138,247,240,0.12), transparent 22%),
    radial-gradient(circle at 60% 85%, rgba(130,89,180,0.12), transparent 28%),
    linear-gradient(180deg, #080a10 0%, #111522 100%);
  color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(12, 14, 18, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(255,255,255,0.03);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

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

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #121212;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  box-shadow: 0 10px 26px var(--accent-glow);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}

main section {
  padding: 5.5rem 0;
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
}

.hero-panel,
.panel,
.project-card,
.gallery-card,
.resume-panel,
.contact-panel,
.embed-shell,
.project-feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem 0;
}

.hero-copy p.lead {
  max-width: 58ch;
  font-size: 1.14rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.hero-panel {
  min-height: 460px;
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(214,123,255,0.22), transparent 45%),
    radial-gradient(circle at 70% 22%, rgba(255,255,255,0.16), transparent 18%),
    radial-gradient(circle at 25% 80%, rgba(138,247,240,0.16), transparent 18%),
    linear-gradient(160deg, #1a1d24 0%, #101318 100%);
}

.hero-panel-copy {
  position: absolute;
  inset: auto 1.35rem 1.35rem 1.35rem;
  padding: 1.25rem;
  background: rgba(9, 11, 14, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
}

.center-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.project-grid,
.gallery-grid,
.headshot-grid,
.info-grid {
  display: grid;
  gap: 1.25rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  padding: 1.5rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.gallery-card:hover,
.project-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(138,247,240,0.55);
}

.meta {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  background:
    linear-gradient(135deg, rgba(214,123,255,0.18), rgba(138,247,240,0.07)),
    linear-gradient(180deg, #1a1d24 0%, #12161c 100%);
}

.gallery-card .label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: rgba(8, 10, 12, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 600;
}

.cta-band {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-hero {
  padding: 5rem 0 2rem;
}

.page-hero p {
  max-width: 60ch;
  font-size: 1.08rem;
}

.project-stack {
  display: grid;
  gap: 2rem;
}

.project-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  overflow: hidden;
}

.project-feature.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.project-copy {
  padding: 2rem;
}

.project-visual {
  min-height: 360px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(214,123,255,0.17), rgba(138,247,240,0.06)),
    linear-gradient(180deg, #181c22 0%, #101419 100%);
}

.mini-gallery {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.mini-gallery > div {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 130px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 18%),
    linear-gradient(160deg, rgba(214,123,255,0.18), rgba(138,247,240,0.06));
  display: flex;
  align-items: end;
  padding: 0.85rem;
  color: #fff;
  font-weight: 700;
}

.note {
  color: var(--accent-2);
  font-weight: 600;
}

.contact-layout,
.acting-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1.5rem;
}

.contact-panel,
.resume-panel,
.embed-shell,
.panel {
  padding: 1.6rem;
}

.embed-shell iframe {
  width: 100%;
  min-height: 600px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.headshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.headshot {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, rgba(214,123,255,0.2), rgba(138,247,240,0.08)),
    linear-gradient(180deg, #1a1d24 0%, #101318 100%);
  display: flex;
  align-items: end;
  padding: 1rem;
  font-weight: 700;
}

.resume-list {
  display: grid;
  gap: 1rem;
}

.resume-item {
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.resume-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat,
.info-item {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
}

.footer p {
  margin: 0;
  font-size: 0.94rem;
}

.small {
  font-size: 0.92rem;
}

.error-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  text-align: center;
}

.error-panel {
  max-width: 720px;
  padding: 2.2rem;
}

.utility-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.utility-list li {
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-layout,
  .acting-layout,
  .project-feature,
  .project-feature.reverse {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .gallery-grid,
  .headshot-grid,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .footer-inner,
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .project-grid,
  .gallery-grid,
  .headshot-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .wrap {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  main section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .project-copy,
  .contact-panel,
  .resume-panel,
  .embed-shell,
  .panel {
    padding: 1.2rem;
  }
}

/* Acting landing page */
.actor-hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

.actor-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.actor-hero-copy .lead,
.section-intro {
  max-width: 64ch;
  font-size: 1.1rem;
}

.actor-title {
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-top: -0.75rem;
}

.actor-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    radial-gradient(circle at 15% 15%, rgba(214,123,255,0.18), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(138,247,240,0.16), transparent 26%);
  box-shadow: var(--shadow);
}

.featured-headshot {
  min-height: 520px;
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, rgba(214,123,255,0.18), rgba(138,247,240,0.08)),
    linear-gradient(180deg, #1a1d24 0%, #101318 100%);
}

.actor-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.actor-facts div {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.actor-facts strong,
.actor-facts span {
  display: block;
}

.actor-facts strong {
  color: var(--accent-2);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.actor-facts span {
  color: var(--text);
  font-weight: 700;
}

.resume-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  align-items: start;
}

.resume-document {
  padding: 2rem;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
  margin-bottom: 1.3rem;
}

.resume-contact {
  text-align: right;
}

.resume-contact p,
.resume-header p {
  margin-bottom: 0.25rem;
}

.resume-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.resume-stats span {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.035);
  font-weight: 700;
  font-size: 0.9rem;
}

.resume-section {
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.09);
}

.resume-section h3 {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.resume-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  color: var(--muted);
}

.resume-row span:first-child {
  color: var(--text);
  font-weight: 800;
}

.resume-section a,
.contact-panel a,
.resume-contact a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(138,247,240,0.35);
  text-underline-offset: 0.18em;
}

.sticky-card {
  position: sticky;
  top: 100px;
}

@media (max-width: 960px) {
  .actor-hero-grid,
  .resume-layout {
    grid-template-columns: 1fr;
  }

  .featured-headshot {
    min-height: 360px;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .actor-facts,
  .resume-row {
    grid-template-columns: 1fr;
  }

  .resume-header {
    flex-direction: column;
  }

  .resume-contact {
    text-align: left;
  }
}

/* Writing/media showcase updates */
.hero-image-panel {
  padding: 0;
  min-height: 520px;
}

.hero-image-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.1) contrast(1.04);
}

.hero-image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(8,10,16,0.82) 100%),
    radial-gradient(circle at 20% 15%, rgba(214,123,255,0.24), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(138,247,240,0.16), transparent 24%);
  pointer-events: none;
}

.hero-image-panel .hero-panel-copy {
  z-index: 1;
}

.visual-project-card {
  padding: 0;
  overflow: hidden;
}

.visual-project-card .meta,
.visual-project-card h3,
.visual-project-card p {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.visual-project-card p {
  margin-bottom: 1.5rem;
}

.project-thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.4rem;
  background: #080a10;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, opacity 240ms ease;
}

.visual-project-card:hover .project-thumb img {
  transform: scale(1.04);
  opacity: 0.9;
}

.writing-hero,
.contact-hero {
  background:
    radial-gradient(circle at 12% 15%, rgba(214,123,255,0.14), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(138,247,240,0.10), transparent 24%);
}

.media-project {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.026)),
    radial-gradient(circle at top left, rgba(214,123,255,0.12), transparent 30%);
  box-shadow: var(--shadow);
}

.media-copy {
  padding: 1rem;
  position: sticky;
  top: 100px;
}

.media-showcase {
  display: grid;
  gap: 1rem;
}

.project-video {
  box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

.comic-gallery {
  display: grid;
  gap: 1rem;
}

.comic-gallery.two-up,
.comic-gallery.demon-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comic-gallery.single-feature {
  grid-template-columns: minmax(0, 1fr);
}

.comic-page {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 16px 34px rgba(0,0,0,0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.comic-page:hover {
  transform: translateY(-3px);
  border-color: rgba(138,247,240,0.58);
  box-shadow: 0 18px 42px var(--aqua-glow);
}

.comic-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-gallery.two-up .comic-page,
.comic-gallery.demon-gallery .comic-page {
  aspect-ratio: 4 / 5.7;
}

.comic-gallery.single-feature .comic-page {
  max-height: 820px;
}

.comic-gallery.single-feature img {
  object-fit: contain;
  background: #090b10;
}

.contact-form-only {
  max-width: 900px;
}

.contact-form-only .embed-shell iframe {
  min-height: 720px;
}

.social-connect {
  text-align: center;
  margin: 0 0 2rem;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(216,76,255,.25);
  transition: all .25s ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(216,76,255,.2);
}

.instagram-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

  .media-copy {
    position: static;
  }

  .hero-image-panel,
  .hero-image-panel img {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .comic-gallery.two-up,
  .comic-gallery.demon-gallery {
    grid-template-columns: 1fr;
  }

  .visual-project-card .meta,
  .visual-project-card h3,
  .visual-project-card p {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
  }
}
