/* Sentido Luz — public site.
   Same palette as the app and studio dashboard. Everything is sized in rem against a
   fluid root, so the page scales from a laptop to a 4K monitor without a rewrite. */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #161618;
  --surface-2: #1e1e21;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f1ec;
  --muted: #9d988f;
  --accent: #e5b96b;
  --accent-ink: #191307;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 82rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  /* ~15px on a small laptop, ~18px at 1920, ~22px at 4K. */
  font-size: clamp(15px, 10.5px + 0.32vw, 22px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.04; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 7.5vw, 6.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
h3 { font-size: 1.5rem; }
h1 em, h2 em, .studio em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* Needed: .form-done sets display:grid, which would otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }
/* Anchor links must not park a heading under the fixed nav. */
section[id], [id="top"] { scroll-margin-top: 5rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.wrap.narrow { width: min(46rem, 100% - 3rem); }
.wrap.center, .center { text-align: center; }
.section { padding: clamp(4.5rem, 9vw, 9rem) 0; position: relative; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 1.1rem;
}
.body { font-size: 1.06rem; color: #cfcac1; max-width: 38rem; margin-bottom: 1.1rem; }
.muted { color: var(--muted); }
.tiny { font-size: 0.8rem; line-height: 1.6; }
.row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.95rem 1.7rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost:hover { background: rgba(255,255,255,0.05); }
.btn.small { padding: 0.68rem 1.25rem; font-size: 0.74rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

/* ── Nav ── */
.wordmark { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.34em; display: inline-flex; gap: 0.55rem; white-space: nowrap; }
.wordmark span { font-weight: 300; }
.wordmark em { font-style: normal; font-weight: 500; color: var(--accent); }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.3rem clamp(1.5rem, 4vw, 3rem);
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--border);
  padding-block: 0.9rem;
}
.nav-links { display: flex; gap: 1.9rem; margin-left: auto; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #c6c1b8;
  position: relative; padding-block: 0.25rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 8rem clamp(1.5rem, 4vw, 3rem) 5rem; overflow: hidden; isolation: isolate;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -3; opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-video.ready { opacity: 0.55; }
/* Graded backdrop: stands in for footage, and sits under it once footage exists. */
.hero-grade {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(58% 50% at 68% 26%, rgba(229, 185, 107, 0.20), transparent 62%),
    radial-gradient(42% 42% at 18% 76%, rgba(120, 96, 58, 0.22), transparent 66%),
    linear-gradient(168deg, #131214 0%, #0a0a0b 52%, #08080a 100%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.4; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.35'/></svg>");
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 28%; z-index: -1;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-inner { width: min(var(--wrap), 100%); margin-inline: auto; }
.hero h1 { margin-bottom: 1.6rem; }
.hero .lede { font-size: clamp(1rem, 1.35vw, 1.2rem); color: #d6d1c8; max-width: 34rem; margin-bottom: 2.4rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-foot {
  position: absolute; left: clamp(1.5rem, 4vw, 3rem); bottom: 2rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.scroll-hint { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.hero-foot .rule { width: 4.5rem; height: 1px; background: linear-gradient(to right, var(--accent), transparent); }

/* ── Marquee ── */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-2); padding: 1.05rem 0; }
.marquee-track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  animation: slide 46s linear infinite;
}
.marquee-track span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.1em; color: #b9b3a8; white-space: nowrap; }
.marquee-track i { color: var(--accent); font-style: normal; font-size: 0.7rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Statement ── */
.statement h2 { margin-bottom: 1.8rem; }

/* ── Section heads ── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem;
}
.section-head h2 { margin: 0; }

/* ── Filters ── */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: 0.78rem; letter-spacing: 0.08em;
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }

/* ── Work grid ── */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.4rem; }
.work-card {
  grid-column: span 1; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
/* The lead film gets double width and a cinemascope crop, so the row heights stay close. */
.work-card.feature { grid-column: span 2; }
.work-card.feature .media-slot { aspect-ratio: 2.4 / 1; }
.work-card.hide { display: none; }
.media-slot {
  position: relative; aspect-ratio: 16 / 9; border-radius: 0.7rem; overflow: hidden;
  background:
    radial-gradient(75% 75% at 50% 40%, rgba(229,185,107,0.07), transparent 70%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: border-color .3s var(--ease), transform .5s var(--ease);
}
.media-slot::after {
  content: attr(data-label); position: absolute; bottom: 0.7rem; right: 0.85rem;
  font-size: 0.66rem; letter-spacing: 0.16em; color: rgba(255,255,255,0.22);
}
.work-card:hover .media-slot { border-color: rgba(229,185,107,0.45); transform: translateY(-4px); }
.play {
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28); display: grid; place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.play::before {
  content: ""; width: 0; height: 0; margin-left: 0.22rem;
  border-left: 0.75rem solid rgba(255,255,255,0.75);
  border-top: 0.48rem solid transparent; border-bottom: 0.48rem solid transparent;
}
.work-card:hover .play { background: rgba(229,185,107,0.16); border-color: var(--accent); }
.work-meta { padding: 1rem 0.2rem 0; }
.work-meta .tag { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; }
.work-meta h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.work-meta .muted { font-size: 0.9rem; margin: 0; }

/* ── Services ── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.3rem; }
.service {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.9rem;
  padding: 2rem 1.8rem; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.service:hover { border-color: rgba(229,185,107,0.35); transform: translateY(-4px); }
.num { font-family: var(--serif); font-size: 2.2rem; color: rgba(229,185,107,0.5); margin: 0 0 0.6rem; line-height: 1; }
.service h3 { margin-bottom: 0.8rem; }
.service .muted { font-size: 0.95rem; }
.ticks { margin-top: 1.2rem; border-top: 1px solid var(--border); padding-top: 1.1rem; display: grid; gap: 0.55rem; }
.ticks li { font-size: 0.9rem; color: #c3beb5; padding-left: 1.2rem; position: relative; }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 0.62rem; top: 0.35rem; }

/* ── Process ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.6rem; counter-reset: s; }
.steps li { border-top: 1px solid var(--border-strong); padding-top: 1.4rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.steps .muted { font-size: 0.92rem; margin: 0; }

/* ── Split sections ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.wide-left { grid-template-columns: 0.85fr 1fr; align-items: start; }

/* Phone mock */
.phone {
  justify-self: center; width: min(17rem, 80%); aspect-ratio: 9 / 19;
  border-radius: 2.4rem; padding: 0.55rem;
  background: linear-gradient(160deg, #2a2a2e, #141416);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2rem 5rem rgba(0,0,0,0.6);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 2rem; background: var(--bg);
  padding: 1.6rem 0.9rem; display: flex; flex-direction: column; gap: 1rem; overflow: hidden;
}
.phone-wordmark { font-family: var(--serif); font-size: 0.6rem; letter-spacing: 0.3em; display: flex; gap: 0.35rem; justify-content: center; opacity: 0.9; }
.phone-wordmark em { font-style: normal; color: var(--accent); }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; }
.phone-grid i {
  aspect-ratio: 1; border-radius: 0.2rem;
  background: linear-gradient(140deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
}
.phone-grid i:nth-child(2n) { background: linear-gradient(140deg, rgba(229,185,107,0.12), var(--surface)); }

/* Portrait placeholder */
.portrait-slot {
  aspect-ratio: 4 / 5; border-radius: 0.9rem; border: 1px solid var(--border);
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(229,185,107,0.09), transparent 70%),
    linear-gradient(150deg, var(--surface-2), var(--surface));
  display: grid; place-items: center; position: relative;
}
.portrait-slot::after {
  content: attr(data-label); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.2);
}
.sig { font-family: var(--serif); font-size: 1.3rem; margin-top: 1.8rem; }
.sig span { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }

/* ── Contact + form ── */
.contact-list { display: grid; gap: 1.1rem; margin: 2rem 0 0; }
.contact-list dt { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.contact-list dd { margin: 0; font-size: 1.02rem; }
.contact-list a { border-bottom: 1px solid rgba(229,185,107,0.4); }
.contact-list a:hover { color: var(--accent); }

.inquire-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.3rem); position: relative;
}
.inquire-form label { display: block; margin-bottom: 1.1rem; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.inquire-form .opt { text-transform: none; letter-spacing: 0; font-size: 0.72rem; opacity: 0.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inquire-form input, .inquire-form select, .inquire-form textarea {
  display: block; width: 100%; margin-top: 0.45rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 300; letter-spacing: 0;
  text-transform: none; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 0.55rem;
  padding: 0.8rem 0.95rem; outline: none; transition: border-color .2s var(--ease);
}
.inquire-form textarea { resize: vertical; line-height: 1.6; }
.inquire-form input:focus, .inquire-form select:focus, .inquire-form textarea:focus { border-color: var(--accent); }
.inquire-form input:user-invalid, .inquire-form textarea:user-invalid, .inquire-form select:user-invalid { border-color: #e6594c; }
.inquire-form .btn { margin-top: 0.5rem; }
.inquire-form .tiny { margin: 0.8rem 0 0; text-align: center; }
.form-error { background: rgba(230,89,76,0.12); color: #ff9a90; border-radius: 0.55rem; padding: 0.75rem 0.9rem; font-size: 0.88rem; margin-bottom: 1rem; }
.form-done {
  position: absolute; inset: 0; border-radius: 1rem; background: var(--surface);
  display: grid; place-content: center; text-align: center; padding: 2rem; gap: 0.5rem;
}
.form-done h3 { color: var(--accent); font-size: 2rem; }

/* ── Clients strip ── */
.clients-strip {
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(229,185,107,0.09), transparent 70%),
    var(--bg);
}
.clients-strip .body { margin-inline: auto; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
.footer nav { display: grid; gap: 0.6rem; align-content: start; }
.foot-head { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.4rem; }
.footer nav a { font-size: 0.92rem; color: var(--muted); transition: color .2s var(--ease); }
.footer nav a:hover { color: var(--text); }
.footer .wordmark { margin-bottom: 0.9rem; }
.footer-base {
  border-top: 1px solid var(--border); padding-block: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-base p { margin: 0; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(1.6rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* ── Responsive ── */
@media (max-width: 60rem) {
  .split, .split.wide-left { grid-template-columns: 1fr; }
  .portrait { max-width: 22rem; }
  .work-card.feature { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 44rem) {
  .nav-links {
    position: fixed; inset: 0 0 auto 0; padding: 5rem 2rem 2rem;
    flex-direction: column; gap: 1.5rem; margin: 0;
    background: rgba(10,10,11,0.97); backdrop-filter: blur(14px);
    transform: translateY(-105%); transition: transform .4s var(--ease);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: grid; gap: 0.34rem; margin-left: auto; background: none; border: 0;
    padding: 0.5rem; cursor: pointer; z-index: 60;
  }
  .nav-toggle span { display: block; width: 1.5rem; height: 1px; background: var(--text); transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .nav.open .nav-toggle span:first-child { transform: translateY(0.17rem) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-0.17rem) rotate(-45deg); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
