/* Theme transitions: color tokens are registered so they can be animated. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #000000; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --dim { syntax: "<color>"; inherits: true; initial-value: rgba(255,255,255,.74); }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(255,255,255,.18); }
@property --veil { syntax: "<color>"; inherits: true; initial-value: rgba(255,255,255,.06); }
@property --invert-dim { syntax: "<color>"; inherits: true; initial-value: rgba(0,0,0,.64); }
@property --invert-line { syntax: "<color>"; inherits: true; initial-value: rgba(0,0,0,.18); }
@property --invert-veil { syntax: "<color>"; inherits: true; initial-value: rgba(0,0,0,.05); }
@property --card-dim { syntax: "<color>"; inherits: true; initial-value: rgba(255,255,255,.66); }
@property --card-line { syntax: "<color>"; inherits: true; initial-value: rgba(255,255,255,.2); }
@property --nav-from { syntax: "<color>"; inherits: true; initial-value: rgba(0,0,0,.82); }
@property --hero-fg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --hero-dim { syntax: "<color>"; inherits: true; initial-value: rgba(255,255,255,.8); }

:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.18);
  --veil: rgba(255, 255, 255, 0.06);
  --invert-dim: rgba(0, 0, 0, 0.64);
  --invert-line: rgba(0, 0, 0, 0.18);
  --invert-veil: rgba(0, 0, 0, 0.05);
  --card-dim: rgba(255, 255, 255, 0.66);
  --card-line: rgba(255, 255, 255, 0.2);
  --nav-from: rgba(0, 0, 0, 0.82);
  --hero-fg: #fff;
  --hero-dim: rgba(255, 255, 255, 0.8);
  --hero-scrim: linear-gradient(#0007, #0004 40%, #000b),
    radial-gradient(ellipse at center, #0000 30%, #000a 100%);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #fff;
  --fg: #121212;
  --dim: rgba(0, 0, 0, 0.66);
  --line: rgba(0, 0, 0, 0.16);
  --veil: rgba(0, 0, 0, 0.05);
  --invert-dim: rgba(255, 255, 255, 0.72);
  --invert-line: rgba(255, 255, 255, 0.22);
  --invert-veil: rgba(255, 255, 255, 0.07);
  --card-dim: rgba(0, 0, 0, 0.62);
  --card-line: rgba(0, 0, 0, 0.18);
  --nav-from: rgba(255, 255, 255, 0.9);
  --hero-fg: #121212;
  --hero-dim: rgba(0, 0, 0, 0.66);
  --hero-scrim: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58) 45%, rgba(255, 255, 255, 0.92)),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.88) 100%);
  color-scheme: light;
}
/* Only after first load: so the saved theme doesn't animate on open. */
html.theme-ready {
  transition:
    --bg 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --fg 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --dim 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --line 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --veil 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --invert-dim 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --invert-line 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --invert-veil 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --card-dim 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --card-line 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --nav-from 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --hero-fg 480ms cubic-bezier(0.4, 0, 0.2, 1),
    --hero-dim 480ms cubic-bezier(0.4, 0, 0.2, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.7 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* ---------- layout ---------- */
.section {
  padding: clamp(4.5rem, 10vw, 9rem) var(--pad);
}
.inner {
  max-width: 1200px;
  margin: 0 auto;
}
.light {
  background: var(--fg);
  color: var(--bg);
  --dim: var(--invert-dim);
  --line: var(--invert-line);
  --veil: var(--invert-veil);
}
h2 {
  font: 400 clamp(2rem, 4.6vw, 3.6rem)/1.12 var(--serif);
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.lead {
  color: var(--dim);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 58ch;
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  text-wrap: pretty;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: linear-gradient(var(--nav-from), transparent);
}
.nav .brand {
  font: 400 0.95rem var(--serif);
  letter-spacing: 0.42em;
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.nav a {
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.nav a:hover {
  opacity: 1;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.theme-toggle:hover {
  border-color: currentColor;
  transform: rotate(-12deg);
}
.theme-toggle svg {
  display: block;
}
/* In night mode we show the sun (to switch to day) and vice versa. */
html[data-theme="dark"] .ic-moon {
  display: none;
}
html[data-theme="light"] .ic-sun {
  display: none;
}
@media (max-width: 640px) {
  .nav ul li:not(:last-child) {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--pad) 4rem;
  overflow: hidden;
  /* The hero adapts to the theme: by day, dark text over a light veil. */
  color: var(--hero-fg);
  --dim: var(--hero-dim);
}
.hero video,
.hero .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
html[data-theme="light"] .hero video,
html[data-theme="light"] .hero .poster {
  opacity: 0.62;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.mark {
  margin: 0;
  font: 400 clamp(2.1rem, 9.5vw, 8rem)/1 var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.46em;
  padding-left: 0.46em;
  animation: mark 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.mark span {
  display: block;
  margin-top: 1.5em;
  font-size: 0.17em;
  font-weight: 500;
  letter-spacing: 0.9em;
  padding-left: 0.9em;
  animation: films 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes mark {
  from {
    letter-spacing: 0.8em;
    padding-left: 0.8em;
    opacity: 0;
  }
  to {
    letter-spacing: 0.46em;
    padding-left: 0.46em;
    opacity: 1;
  }
}
@keyframes films {
  from {
    letter-spacing: 1.6em;
    padding-left: 1.6em;
  }
  to {
    letter-spacing: 0.9em;
    padding-left: 0.9em;
  }
}
.tagline {
  max-width: 40ch;
  margin: 3.2rem auto 2.2rem;
  color: var(--dim);
  animation: rise 1s 1.7s both;
}
.cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise 1s 2s both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.btn {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 0.85rem 1.9rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
  background: none;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.light .btn:hover {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--bg);
}
.btn.solid {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn.solid:hover {
  background: transparent;
  color: var(--fg);
}

/* ---------- work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
}
.tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.tile:first-child {
  grid-column: 1/-1;
}
.thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--veil);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover .thumb img {
  transform: scale(1.04);
}
.thumb.empty {
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 0.85rem;
  padding: 1rem;
  text-align: center;
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border: 1px solid #fffa;
  border-radius: 50%;
  background: #0005;
  transition:
    transform 0.3s,
    background 0.3s;
}
.play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0.6rem solid transparent;
  border-left: 0.95rem solid #fff;
  border-right: 0;
}
.tile:hover .play {
  transform: scale(1.1);
  background: #0008;
}
.tile h3 {
  font: 400 clamp(1.3rem, 2.4vw, 1.8rem)/1.25 var(--serif);
  margin: 1rem 0 0.2rem;
  letter-spacing: 0.01em;
}
.tile p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}
@media (max-width: 700px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- services ---------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.services li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1rem 3rem;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.services h3 {
  font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.15 var(--serif);
  margin: 0;
}
.services p {
  margin: 0;
  color: var(--dim);
  font-size: 1.02rem;
  max-width: 58ch;
  text-wrap: pretty;
}
@media (max-width: 700px) {
  .services li {
    grid-template-columns: 1fr;
  }
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about.solo {
  grid-template-columns: 1fr;
}
.about p.big {
  font: 400 clamp(1.2rem, 2.2vw, 1.65rem)/1.7 var(--serif);
  max-width: 46ch;
  margin: 0;
  color: var(--fg);
  text-wrap: pretty;
}
.about img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  font: 400 1.25rem var(--serif);
  color: var(--dim);
}
@media (max-width: 800px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* ---------- instagram ---------- */
.ig-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.ig-head h2 {
  margin: 0;
}
/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.plan {
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
}
.plan + .plan {
  border-left: 1px solid var(--line);
}
.plan.featured {
  background: var(--bg);
  color: var(--fg);
  --dim: var(--card-dim);
  --line: var(--card-line);
  border-color: var(--bg);
}
.plan h3 {
  font: 400 1.7rem/1.2 var(--serif);
  margin: 0;
}
.plan .price {
  font: 400 clamp(2.2rem, 4vw, 3.2rem)/1.1 var(--serif);
  margin: 1.6rem 0 0.3rem;
}
.plan .note {
  color: var(--dim);
  font-size: 0.92rem;
  margin: 0 0 1.8rem;
}
.plan ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  flex: 1;
}
.plan li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.plan .btn {
  text-align: center;
}
.plan.featured .btn {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.plan.featured .btn:hover {
  background: transparent;
  color: var(--fg);
}
.fine {
  margin: 1.5rem 0 0;
  color: var(--dim);
  font-size: 0.92rem;
}
@media (max-width: 860px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 7vw, 6rem);
}
.details {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.details li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.details .ico {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  color: var(--fg);
}
.details .ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.details .body {
  min-width: 0;
}
.details small {
  display: block;
  color: var(--dim);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.details a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}
.details a:hover {
  border-color: currentColor;
}
form {
  display: grid;
  gap: 1.6rem;
}
label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--dim);
}
input,
select,
textarea {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.6rem 0;
  color: var(--fg);
  font-size: 1.05rem;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 7rem;
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--fg);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}
.status {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.95rem;
}
@media (max-width: 800px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* ---------- footer ---------- */
footer {
  padding: 3rem var(--pad) 3.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
footer .brand {
  font: 400 1.1rem var(--serif);
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  text-transform: uppercase;
}
.social-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.social-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.social-bar a:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-2px);
}
.social-bar svg {
  width: 1.15rem;
  height: 1.15rem;
}
footer p {
  margin: 1.4rem 0 0;
  color: var(--dim);
  font-size: 0.85rem;
}

/* ---------- video player ---------- */
dialog {
  border: 0;
  padding: 0;
  background: #000;
  color: #fff;
  width: min(1100px, 94vw);
  max-height: 92vh;
  overflow: visible;
}
dialog::backdrop {
  background: #000e;
}
.frame {
  aspect-ratio: 16/9;
  width: 100%;
}
.frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.close {
  position: absolute;
  right: 0;
  top: -2.6rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- utilities (replace the HTML inline styles) ---------- */
.section.flush {
  padding-top: 0;
}
.lead.tight {
  margin-bottom: 0;
}
.tile:disabled {
  cursor: default;
}
.more {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  :root {
    --pad: 1.35rem;
  }
  .section {
    padding: 3.75rem var(--pad);
  }
  .nav {
    padding: 0.9rem var(--pad);
  }
  .nav-right {
    gap: 1rem;
  }
  .nav ul {
    gap: 1.1rem;
    font-size: 0.9rem;
  }
  .mark,
  .mark span {
    animation: none;
  }
  .mark {
    letter-spacing: 0.26em;
    padding-left: 0.26em;
  }
  .mark span {
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    margin-top: 1.1em;
  }
  .tagline {
    max-width: 34ch;
    margin: 2.4rem auto 1.8rem;
  }
  .cta {
    gap: 0.7rem;
  }
  .cta .btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .btn {
    padding: 0.8rem 1.4rem;
  }
  .ig-head {
    align-items: flex-start;
  }
  .clients {
    gap: 0.5rem 1.5rem;
    font-size: 1.1rem;
  }
  .details {
    gap: 0.9rem;
  }
}
