/* MARCEL studio */
:root {
  color-scheme: dark;
  --background: #101014;
  --surface: #16151b;
  --text: #f4f1f5;
  --muted: #aaa5b2;
  --accent: #c2a3e5;
  --border: rgba(224, 213, 240, 0.15);
  --font-text: "Montserrat", Arial, sans-serif;
  --font-brand: "Anton", Impact, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.75 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-decoration: none; }
a:focus-visible, iframe:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
p, h1, h2, h3 { margin: 0; }
.wrap { width: min(1320px, 88%); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--background);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 16, 20, 0.94);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(18px)) {
  .site-header {
    background: rgba(16, 16, 20, 0.8);
    backdrop-filter: blur(18px);
  }
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: min(1320px, 88%);
  min-height: 88px;
  margin-inline: auto;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font: 400 1.75rem/1.2 var(--font-brand);
}
.brand span {
  color: var(--accent);
  font: 400 0.875rem var(--font-text);
  letter-spacing: 0.04em;
}
nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 0.875rem; }
nav a {
  position: relative;
  padding-block: 10px;
  color: var(--muted);
  transition: color 200ms ease;
}
nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
nav a:hover, nav a:focus-visible { color: var(--text); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
nav .nav-contact { color: var(--accent); }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(940px, calc(100svh - 88px)); overflow: hidden; }
.hero-content { position: relative; z-index: 2; padding-top: clamp(40px, 6vw, 88px); }
.hero-background, .hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-background { z-index: -2; background: #0a090d; }
.hero-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(120%, 213.34vh);
  height: max(120%, 67.5vw);
  border: 0;
  transform: translate(-50%, -50%);
}
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 16, 20, 0.92) 0%, rgba(16, 16, 20, 0.64) 46%, rgba(16, 16, 20, 0.32) 100%),
    linear-gradient(0deg, rgba(16, 16, 20, 0.94) 0%, rgba(16, 16, 20, 0.04) 38%, rgba(16, 16, 20, 0.52) 100%);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.location { color: var(--muted); font-size: 0.8125rem; }
.hero-title {
  width: fit-content;
  font: 400 clamp(3rem, 19vw, 17rem)/1.05 var(--font-brand);
  letter-spacing: -0.018em;
}
.hero-title > span {
  display: block;
  padding-left: 0.08em;
  margin-top: 4px;
  color: var(--accent);
  font-family: var(--font-text);
  font-size: max(1rem, 0.17em);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.22em;
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: clamp(30px, 6vw, 90px);
  margin-top: clamp(38px, 6vw, 80px);
}
.hero-bottom > *, .section-heading > *, .service > *,
.studio-body > *, .contact-body > * { min-width: 0; }
.hero-statement {
  font-size: clamp(1.8rem, 3.8vw, 3.3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.hero-statement em, .studio-statement em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 460px; justify-self: end; }
.hero-description > p { color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; margin-top: 28px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--background);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 200ms ease, transform 250ms var(--ease);
}
.button:hover { background: #d4bdee; transform: translateY(-2px); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding-block: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  transition: color 200ms ease, border-color 200ms ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 64px;
  padding-block: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}
.scroll-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; }
.scroll-link span { color: var(--accent); transition: transform 250ms ease; }
.scroll-link:hover span { transform: translateY(3px); }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 132px); }
.expertise { background: var(--surface); border-block: 1px solid var(--border); }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 62px; }
.section-heading > .eyebrow { padding-top: 10px; }
h2 {
  font-size: clamp(2rem, 4.3vw, 3.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}
h2 span { color: var(--muted); }
.section-intro { max-width: 440px; margin-top: 24px; color: var(--muted); }

/* Demo reel */
.reel .section-heading { margin-bottom: 36px; }
.reel-figure { margin: 0; }
.reel-player {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  background: #08070a;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.reel-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
}
.reel-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Expertise */
.service {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  align-items: start;
  gap: 24px;
  padding-block: 38px;
  border-top: 1px solid var(--border);
}
.service:last-child { border-bottom: 1px solid var(--border); }
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease);
}
.service-number { padding-top: 4px; color: var(--accent); font-size: 0.8125rem; }
.service h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  transition: color 250ms ease;
}
.service-category { display: block; margin-top: 10px; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.035em; }
.service > p { max-width: 450px; color: var(--muted); }
@media (hover: hover) {
  .service:hover::before { transform: scaleX(1); }
  .service:hover h3 { color: var(--accent); }
}

/* Studio */
.studio-body, .contact-body { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.studio-note { padding-top: 8px; color: var(--muted); font-size: 0.875rem; }
.studio-statement { max-width: 820px; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.55; letter-spacing: -0.025em; }
.studio-description { max-width: 540px; margin-top: 28px; color: var(--muted); }
.studio-signature { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 44px; font-family: var(--font-brand); font-size: 2rem; }
.studio-signature span { color: var(--accent); font-family: var(--font-text); font-size: 0.875rem; letter-spacing: 0.08em; }

/* Contact */
.contact { background: #1c1724; border-block: 1px solid var(--border); }
.contact h2 span { color: var(--accent); }
.contact-intro { max-width: 320px; color: var(--muted); }
.contact-details { display: grid; gap: 28px; margin: 0; font-style: normal; }
.contact-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 0.875rem; }
.contact-email, .contact-phone {
  display: inline-block;
  max-width: 100%;
  padding-block: 4px;
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.contact-email { font-size: clamp(1.25rem, 2.7vw, 2.5rem); letter-spacing: -0.035em; }
.contact-phone { min-height: 44px; font-size: 1.125rem; }
.contact-email:hover, .contact-phone:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Footer */
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 24px; color: var(--muted); font-size: 0.8125rem; }
.site-footer .text-link { border: 0; }

/* Motion */
.hero-enter { animation: enter 1s var(--ease) both; }
.hero-title.hero-enter { animation-delay: 100ms; }
.hero-bottom.hero-enter { animation-delay: 220ms; }
.hero-footer.hero-enter { animation-delay: 320ms; }
@keyframes enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 1; transform: none; transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal-pending { opacity: 0; transform: translateY(22px); }
.reveal-pending:focus-within { opacity: 1; transform: none; }

/* Tablet and mobile */
@media (max-width: 800px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-description { justify-self: start; max-width: 540px; }
  .section-heading, .studio-body, .contact-body { grid-template-columns: 1fr; gap: 24px; }
  .section-heading { margin-bottom: 40px; }
  .section-heading > .eyebrow { padding-top: 0; }
  .service { grid-template-columns: 36px 1fr; gap: 16px; padding-block: 30px; }
  .service > p { grid-column: 2; max-width: 100%; }
  .studio-note { padding: 0; }
  .contact-intro { max-width: 540px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 150px; }
  .header-inner { gap: 6px; }
  .header-inner nav { width: 100%; gap: 8px 16px; }
  .brand { font-size: 1.5rem; }
  .hero-top { margin-bottom: 30px; }
  .location { font-size: 0.75rem; }
  .hero-footer { margin-top: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .button:hover, .scroll-link:hover span { transform: none; }
}
@media print {
  .site-header { position: static; }
  .hero-enter, .reveal-pending { animation: none; opacity: 1; transform: none; }
}
