:root {
  --bg: #050B14;
  --text: #EAF0FF;
  --muted: #A8B3CF;

  --navy: #001645;
  --blue: #0172B2;

  --line: rgba(255, 255, 255, .10);
  --line2: rgba(255, 255, 255, .16);

  --card: rgba(255, 255, 255, .06);
  --card2: rgba(255, 255, 255, .09);

  --radius: 22px;
  --shadow: 0 26px 70px rgba(0, 0, 0, .55);
  --shadow2: 0 16px 40px rgba(0, 0, 0, .35);
}

:root[data-theme="light"] {
  --bg: #F6F8FF;
  --text: #0B1020;
  --muted: #4B5568;

  --line: rgba(11, 16, 32, .10);
  --line2: rgba(11, 16, 32, .14);

  --card: rgba(255, 255, 255, .90);
  --card2: rgba(255, 255, 255, .98);

  --shadow: 0 20px 55px rgba(11, 16, 32, .12);
  --shadow2: 0 14px 35px rgba(11, 16, 32, .10);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px
}

.muted {
  color: var(--muted);
  margin: 0
}

.label {
  font-weight: 800;
  color: var(--text)
}

.grid {
  display: grid;
  gap: 14px
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr)
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr)
}

:where(a, button, .project, .socialTile).focus-visible {
  outline: 3px solid rgba(1, 114, 178, .45);
  outline-offset: 3px;
  border-radius: 14px;
}

/* BACKGROUND (FILM / STUDIO) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(1, 114, 178, .20), transparent 60%),
    radial-gradient(1000px 700px at 90% 20%, rgba(0, 22, 69, .35), transparent 62%),
    radial-gradient(900px 700px at 50% 90%, rgba(1, 114, 178, .10), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 34px 34px;
  mask-image: radial-gradient(900px 520px at 50% 0%, #000 55%, transparent 90%);
}

/* HEADER / NAV */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5, 11, 20, .55);
  border-bottom: 1px solid var(--line);
}

:root[data-theme="light"] .header {
  background: rgba(246, 248, 255, .78)
}

.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
}

.brand__name {
  font-size: 14px;
  letter-spacing: .02em;
}

.slate__rec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--muted);
  font-size: 12px;
}

.recDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 80, 80, .95);
  box-shadow: 0 0 0 6px rgba(255, 80, 80, .10);
  animation: recPulse 1.6s ease-in-out infinite;
}

@keyframes recPulse {
  0% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.15);
    opacity: .75
  }

  100% {
    transform: scale(1);
    opacity: 1
  }
}

@media (prefers-reduced-motion: reduce) {
  .recDot {
    animation: none
  }
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 750;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 14px;
  position: relative;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(1, 114, 178, .10);
  transform: translateY(-1px);
}

.nav a.active {
  color: var(--text);
  background: rgba(1, 114, 178, .14);
  box-shadow: inset 0 0 0 1px rgba(1, 114, 178, .20);
}

.nav a.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 3px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--navy));
}

.header__actions {
  display: flex;
  gap: 10px
}

.icon-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(1, 114, 178, .35);
  background: rgba(1, 114, 178, .08);
}

.icon-btn--menu {
  display: none
}

/* SECTIONS*/
.hero,
.section {
  scroll-margin-top: 90px;
}

.hero {
  padding: 96px 0 72px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.section {
  padding: 96px 0;
  min-height: 92vh;
  display: flex;
  align-items: center;
  border-top: none;
  position: relative;
}

:root[data-theme="light"] .section::before {
  background:
    repeating-linear-gradient(90deg,
      rgba(11, 16, 32, .12) 0 10px,
      rgba(11, 16, 32, 0) 10px 18px);
}

.section__inner {
  width: 100%
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.section__head--row {
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em
}

h3 {
  margin: 0;
  font-size: 16px
}

/* HERO */
.hero__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr 0.95fr;
  gap: 18px;
  align-items: center;
}

.hero__photo {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__photo img {
  width: 100%;
  max-width: 270px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
}

.photoFrame {
  position: absolute;
  inset: -10px;

  pointer-events: none;
}

:root[data-theme="light"] .photoFrame {
  border-color: rgba(0, 22, 69, .22)
}

.timecode {
  margin: 0;
  font-weight: 850;
  letter-spacing: .10em;
  font-size: 12px;
  color: rgba(168, 179, 207, .88);
}

:root[data-theme="light"] .timecode {
  color: rgba(75, 85, 104, .85)
}

.hero__title {
  font-size: 54px;
  line-height: 1.02;
  margin: 12px 0 10px;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.playhead {
  display: flex;
  gap: 18px;
  align-items: center;
}

.playhead span {
  position: relative;
}

.playhead span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--navy));
}

.hero__desc {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

.hero__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Buttons (hover states) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .02);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(1, 114, 178, .08);
  border-color: rgba(1, 114, 178, .25);
}

/* SLATE (QUICK OVERVIEW) */
.slate {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow2);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.slate:hover {
  transform: translateY(-3px);
  border-color: rgba(1, 114, 178, .28);
}

.slate__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .10);
}

:root[data-theme="light"] .slate__top {
  background: rgba(11, 16, 32, .04)
}

.slate__bars {
  width: 92px;
  height: 18px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, .18) 0 8px,
      rgba(255, 255, 255, 0) 8px 16px);
  border: 1px solid var(--line);
  transition: transform .18s ease;
}

.slate:hover .slate__bars {
  transform: translateX(4px) rotate(-2deg);
}

.slate__body {
  padding: 14px 14px
}

.slate__row {
  display: flex;
  gap: 5px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  margin-bottom: 10px;
  transition: border-color .18s ease, background .18s ease;
}

.slate__row:hover {
  border-color: rgba(1, 114, 178, .26);
  background: rgba(1, 114, 178, .06);
}

.slate__row .k {
  color: var(--muted);
  font-weight: 850;
  font-size: 12px
}

.slate__row .v {
  font-weight: 850;
  font-size: 12px
}

.slate__line {
  height: 1px;
  background: var(--line);
  margin: 14px 0
}

.slate__note {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
}

.v.sep {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.v.sep span {
  position: relative;
  white-space: nowrap;
}

.v.sep span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg,
      rgba(1, 114, 178, .9),
      rgba(0, 22, 69, .9));
}

/* CARDS (ABOUT / CONTACT) */
.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow2);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(1, 114, 178, .28);
  background: var(--card2);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted)
}

.list li {
  margin: 8px 0
}

/* PROJECTS */
.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.input {
  width: 240px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .10);
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}

.input:focus {
  border-color: rgba(1, 114, 178, .40);
  background: rgba(1, 114, 178, .06);
}

:root[data-theme="light"] .input {
  background: #fff;
  color: var(--text);
}

.project {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.project::before {
  content: "";
  position: absolute;
  left: -35%;
  top: 0;
  height: 3px;
  width: 70%;
  background: linear-gradient(90deg, transparent, rgba(1, 114, 178, .75), transparent);
  opacity: 0;
  transform: translateX(-30%);
  transition: opacity .18s ease, transform .30s ease;
}

.project:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.badge,
.tag {
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(1, 114, 178, .28);
  background: rgba(1, 114, 178, .12);
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
}

/* MEDIA */
.frame {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
  box-shadow: var(--shadow2);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.frame:hover {
  transform: translateY(-3px);
  border-color: rgba(1, 114, 178, .28);
  background: rgba(255, 255, 255, .05);
}

.frame__shot {
  height: 180px;
  background: linear-gradient(135deg, rgba(1, 114, 178, .18), rgba(0, 22, 69, .22));
  position: relative;
}

.frame__shot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .18) 0 10px,
      rgba(255, 255, 255, 0) 10px 18px);
  opacity: .30;
}

.frame__cap {
  padding: 14px 16px
}

.frame__title {
  margin: 0;
  font-weight: 900
}

.frame__shot {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #dbe7f2;
}

.frame__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTACT */
.contact__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap
}

.contact__meta {
  margin-top: 14px;
  display: grid;
  gap: 8px
}

.socialGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px
}

.socialTile {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, .03);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.socialTile:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 114, 178, .28);
  background: rgba(1, 114, 178, .08);
}

/* CONTACT SOCIAL ICONS */

.contactSocials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.contactIcon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 900;

}

.contactIcon svg {
  width: 22px;
  height: 22px;
  fill: var(--muted);
  transition: fill .18s ease;
}

.contactIcon:hover {
  transform: translateY(-2px);
  background: rgba(1, 114, 178, .08);
  border-color: rgba(1, 114, 178, .25);
}

.contactIcon:hover svg {
  fill: var(--text);
}

#contact .grid--2 {
  grid-template-columns: 1.35fr .85fr;
  align-items: stretch;
}

.contactSide {
  backdrop-filter: blur(10px);
}

.contactChips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
}

#opencontact {
  color: var(--muted);
}

/* FOOTER */
.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line)
}

.footer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80
}

.modal.is-open {
  display: block
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58)
}

.modal__panel {
  position: relative;
  width: min(860px, calc(100% - 22px));
  margin: 90px auto 40px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  width: min(1100px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;

}

:root[data-theme="light"] .modal__panel {
  background: #fff
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.modal__close:hover {
  transform: translateY(-1px);
  background: rgba(1, 114, 178, .08);
  border-color: rgba(1, 114, 178, .25);
}


.modal__content{
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding-right: 6px;
  padding: 18px
}

/* nicer scroll (optional) */
.modal__content::-webkit-scrollbar{
  width: 10px;
}
.modal__content::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.modal__content::-webkit-scrollbar-track{
  background: transparent;
}

.modal__title {
  margin: 10px 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em
}

.modal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px
}

.card--flat {
  box-shadow: none;
  background: rgba(0, 0, 0, .06)
}

:root[data-theme="light"] .card--flat {
  background: #F7F8FC
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap
}

.modal__shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px
}

.modalVideo {
  width: 825px;
  max-height: 290px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #000;
}

.shot {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dbe7f2;
  max-height: 290px;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.shot__cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}


/* RESPONSIVE */
@media (max-width: 960px) {
  .hero {
    padding: 72px 0 48px;
    min-height: auto
  }

  .section {
    padding: 64px 0;
    min-height: auto;
    align-items: stretch
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  .hero__actions {
    justify-content: center
  }

  .hero__photo img {
    max-width: 210px
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr
  }

  .section__head--row {
    flex-direction: column;
    align-items: stretch
  }

  .input {
    width: 100%
  }

  .modal__grid {
    grid-template-columns: 1fr
  }

  .modal__shots {
    grid-template-columns: 1fr
  }

  .icon-btn--menu {
    display: inline-flex
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 14px 18px;
    background: rgba(5, 11, 20, .92);
    border-bottom: 1px solid var(--line);
  }

  :root[data-theme="light"] .nav {
    background: rgba(246, 248, 255, .96)
  }

  .nav.is-open {
    display: flex
  }
}

@media (max-width: 900px) {
  #contact .grid--2 {
    grid-template-columns: 1fr;
  }
}