/* Lacus Entertainment Studios: site styles */

:root {
  /* Lacus brand palette, sampled from the registered Lacus logo */
  --deep: #000000;      /* logo field: page background */
  --shelf: #081314;     /* raised surfaces */
  --line: #1D3033;      /* rules and borders */
  --mist: #F4F7F7;      /* primary text (logo wordmark white) */
  --reed: #93A8AA;      /* secondary text */
  --teal: #66C3C1;      /* glass teal: the brand accent */
  --glass: #1F5C5C;     /* deep glass teal */
  --edge: #7AA6AE;      /* cube edge line */
  --display: "Lexend Exa", "Helvetica Neue", Arial, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1320px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--deep); color: var(--mist);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(0,0,0,.75), rgba(0,0,0,0));
}
.site-header.solid { background: rgba(0,0,0,.94); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 76px; gap: 40px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1; }
.logo img { width: 40px; height: auto; }
.logo span { display: flex; flex-direction: column; }
.logo b { font-family: var(--display); font-weight: 300; font-size: 21px; letter-spacing: .18em; }
.logo small { font-family: var(--display); font-weight: 300; font-size: 8.5px; color: var(--reed); margin-top: 6px; letter-spacing: .32em; }
.menu { display: flex; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0 0 0 auto; padding: 0; }
.menu a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--mist); opacity: .82; padding: 8px 0; position: relative; transition: opacity .2s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu a:hover { opacity: 1; }
.menu a:hover::after { transform: scaleX(1); }
.header-cta { font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 18px; border: 1px solid rgba(233,238,240,.4); transition: border-color .2s, background .2s; }
.header-cta:hover { border-color: var(--teal); background: rgba(102,195,193,.08); }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--mist); width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .3s, opacity .3s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero carousel ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1100px; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.slide.active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; z-index: 1; }
.slide canvas, .slide .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .media { transform: scale(1.06); transition: transform 9s linear; }
.slide.active .media { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,0) 70%),
    linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 60%); }
.slide .emblem { position: absolute; z-index: 1; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  top: 38%; width: clamp(200px, 25vw, 370px); transform: translateY(-50%); animation: float 12s ease-in-out infinite;
  filter: drop-shadow(0 0 70px rgba(102,195,193,.22)); }
@keyframes float { 50% { transform: translateY(-53%); } }
.slide .copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(120px, 17vh, 170px); }
.slide .kicker { font-size: 15px; font-weight: 500; color: var(--teal); margin: 0 0 14px; }
.slide h2 { font-family: var(--display); font-weight: 300; margin: 0; line-height: .95; letter-spacing: .06em; font-size: clamp(50px, 9.5vw, 144px); }
.slide h2.long { font-size: clamp(32px, 4.6vw, 70px); line-height: 1.08; letter-spacing: -.01em; max-width: 14em; text-wrap: balance; hyphens: none; }
.slide .text { max-width: 34em; color: var(--mist); opacity: .86; margin: 22px 0 0; font-size: clamp(16px, 1.3vw, 19px); }
.slide .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.slide .copy > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.active .copy > * { opacity: 1; transform: none; }
.slide.active .copy > :nth-child(2) { transition-delay: .12s; }
.slide.active .copy > :nth-child(3) { transition-delay: .24s; }
.slide.active .copy > :nth-child(4) { transition-delay: .36s; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn.primary { background: var(--mist); color: var(--deep); }
.btn.primary:hover { background: var(--teal); }
.btn.ghost { border-color: rgba(233,238,240,.45); color: var(--mist); background: rgba(0,0,0,.2); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }

.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; }
.hero-controls .wrap { display: flex; align-items: flex-end; gap: 12px; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; flex: 1; max-width: 760px; }
.tab { background: none; border: 0; padding: 0 0 2px; color: var(--reed); text-align: left; cursor: pointer; font: 500 14px/1.3 var(--sans); }
.tab .bar { display: block; height: 2px; background: rgba(233,238,240,.2); margin-bottom: 12px; position: relative; overflow: hidden; }
.tab .bar i { position: absolute; inset: 0; background: var(--mist); transform: scaleX(0); transform-origin: left; }
.tab.done .bar i { transform: scaleX(1); }
.tab.active { color: var(--mist); }
.tab.active .bar i { animation: fill var(--dur, 8s) linear forwards; }
.hero.paused .tab.active .bar i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.pause { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(233,238,240,.4); background: rgba(0,0,0,.3); color: var(--mist); cursor: pointer; display: grid; place-items: center; }
.pause:hover { border-color: var(--teal); }
.pause svg { width: 14px; height: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.head h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.1; margin: 0; }
.head p { color: var(--reed); margin: 0; max-width: 28em; }
.row-nav { display: flex; gap: 8px; }
.row-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--mist); cursor: pointer; display: grid; place-items: center; transition: border-color .2s; }
.row-nav button:hover:not(:disabled) { border-color: var(--teal); }
.row-nav button:disabled { opacity: .3; cursor: default; }
.row-nav svg { width: 16px; height: 16px; }

/* Poster row */
.posters { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 300px); gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
  margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
.posters::-webkit-scrollbar { display: none; }
.poster { scroll-snap-align: start; text-decoration: none; display: block; }
.poster .art { aspect-ratio: 2 / 3; position: relative; overflow: hidden; background: var(--shelf); }
.poster .art > * { transition: transform .8s var(--ease); }
.poster:hover .art > *, .poster:focus-visible .art > * { transform: scale(1.04); }
.poster h3 { font-family: var(--display); font-weight: 300; font-size: 18px; margin: 16px 0 4px; }
.poster p { margin: 0; color: var(--reed); font-size: 15px; }
.poster .status { color: var(--teal); }
.gen { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.gen.tacto { background:
    repeating-linear-gradient(to bottom, rgba(200,245,245,.05) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse 70% 45% at 50% 38%, rgba(102,195,193,.42), transparent 70%),
    linear-gradient(#000, #0b2224 60%, #000); }
.gen.tacto .t { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: .16em; text-align: center; line-height: 1; text-shadow: 0 0 28px rgba(102,195,193,.6); }
.gen.tacto .s { text-align: center; font-size: 12px; letter-spacing: .12em; color: var(--reed); margin-top: 14px; }
.gen.tbd { border: 1px solid var(--line); background: repeating-linear-gradient(135deg, rgba(233,238,240,.025) 0 12px, transparent 12px 24px), var(--shelf); justify-content: center; align-items: center; text-align: center; }
.gen.tbd .t { font-family: var(--display); font-weight: 300; font-size: 15px; color: var(--reed); padding: 0 16px; }
.gen.tbd .mk { width: 40px; height: 1px; background: var(--teal); margin: 16px auto 0; }

/* Divisions */
.divisions { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.division { position: relative; overflow: hidden; min-height: 300px; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 40px); isolation: isolate; }
.division:first-child { grid-row: span 2; min-height: 620px; }
.division .bg { position: absolute; inset: 0; z-index: -1; transition: transform 1.2s var(--ease); }
.division:hover .bg { transform: scale(1.05); }
.division::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0) 65%); }
.division h3 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.08; margin: 0 0 12px; }
.division p { margin: 0; max-width: 30em; color: var(--mist); opacity: .82; }
.division .badge { position: absolute; top: clamp(20px, 2.4vw, 32px); left: clamp(24px, 3vw, 40px); font-size: 13px; font-weight: 500;
  color: var(--teal); border: 1px solid rgba(102,195,193,.45); padding: 6px 12px; background: rgba(0,0,0,.35); }
.division .go { margin-top: 20px; font-weight: 600; font-size: 15px; color: var(--teal); }
.bg.film { background:
    radial-gradient(ellipse 60% 40% at 72% 30%, rgba(102,195,193,.38), transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 90%, rgba(31,92,92,.55), transparent 70%),
    linear-gradient(160deg, #0b1d1f, #000 70%); }
.bg.film::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(233,238,240,.035) 46px 47px); }
.bg.tv { background:
    radial-gradient(ellipse 55% 70% at 85% 50%, rgba(122,166,174,.38), transparent 70%),
    linear-gradient(120deg, #030909, #0d2224); }
.bg.anim { background:
    radial-gradient(circle at 25% 35%, rgba(102,195,193,.45), transparent 32%),
    radial-gradient(circle at 70% 60%, rgba(200,245,245,.2), transparent 36%),
    radial-gradient(circle at 55% 20%, rgba(31,92,92,.7), transparent 30%),
    linear-gradient(#071112, #000); }

/* Studio */
.studio-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.studio-grid h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; margin: 0 0 28px; }
.studio-grid p { color: var(--reed); max-width: 34em; margin: 0 0 1.1em; }
.studio-grid p.lead { color: var(--mist); font-size: clamp(18px, 1.5vw, 21px); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 11em 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--reed); font-size: 15px; }
.facts dd { margin: 0; }

/* Process */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.steps li { counter-increment: s; border-top: 1px solid var(--teal); padding-top: 22px; }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 300; color: var(--teal); font-size: 15px; margin-bottom: 12px; }
.steps h3 { font-family: var(--display); font-weight: 300; font-size: 21px; margin: 0 0 8px; }
.steps p { color: var(--reed); margin: 0; font-size: 16px; }

/* Partners */
.partners { background: var(--shelf); }
.section.partners { border-top: 0; }
.partner-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: clamp(32px, 6vw, 96px); }
.partner-grid h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.06; margin: 0 0 24px; }
.partner-grid > div > p { color: var(--reed); margin: 0 0 30px; max-width: 26em; }
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-left: 1px solid var(--line); }
.audiences div { padding: 4px clamp(18px, 2.4vw, 32px); border-right: 1px solid var(--line); }
.audiences h3 { font-family: var(--display); font-weight: 300; font-size: 20px; margin: 0 0 12px; }
.audiences p { color: var(--reed); margin: 0; font-size: 16px; }

/* Footer */
footer { padding: clamp(64px, 8vw, 96px) 0 40px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot.has-social { grid-template-columns: 1.4fr repeat(4, 1fr); }
.foot [hidden] { display: none; }
.foot .logo img { width: 56px; }
.foot .logo b { font-size: 26px; }
.foot .logo small { font-size: 10px; }
.foot > div > p { color: var(--reed); font-size: 15px; margin: 20px 0 0; max-width: 22em; }
.foot h4 { font: 600 14px/1 var(--sans); color: var(--reed); margin: 6px 0 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 10px; }
.foot ul a { text-decoration: none; opacity: .88; }
.foot ul a:hover { opacity: 1; color: var(--teal); }
.legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--reed); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .menu, .header-cta { display: none; }
  .burger { display: block; }
  .nav-open .menu { display: flex; flex-direction: column; position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--deep); padding: 24px var(--gutter); gap: 4px; }
  .nav-open .menu a { font-family: var(--display); font-weight: 300; font-size: 24px; display: block; padding: 12px 0; opacity: 1; }
  .nav-open .site-header { background: var(--deep); }
  .divisions { grid-template-columns: 1fr; grid-template-rows: none; }
  .division:first-child { grid-row: auto; min-height: 420px; }
  .studio-grid, .partner-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .foot, .foot.has-social { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .slide .emblem { width: 58vw; top: 30%; right: 50%; transform: translate(50%, -50%); animation: none; opacity: .55; }
  .hero { min-height: 600px; }
  .tab .lbl { display: none; }
  .head { flex-direction: column; align-items: flex-start; }
  .row-nav { display: none; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .steps, .audiences { grid-template-columns: 1fr; }
  .audiences { border-left: 0; }
  .audiences div { border-right: 0; border-top: 1px solid var(--line); padding: 22px 0; }
  .division { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding: 160px 0 clamp(72px, 10vw, 136px); min-height: 70vh; }
.page h1 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; margin: 0 0 24px; }
.page h2 { font-family: var(--display); font-weight: 300; font-size: 22px; margin: 48px 0 12px; }
.page p, .page li { color: var(--reed); max-width: 40em; }
.page .updated { font-size: 15px; }
.page .btn { margin-top: 24px; }
.site-header.solid-always { background: rgba(0,0,0,.94); border-bottom-color: var(--line); }
