:root {
  --ink: #1c2330;
  --ink-soft: #4a5466;
  --slate: #44597a;
  --sand: #b9a67c;
  --sand-soft: #efe9dc;
  --bg: #faf9f6;
  --bg-alt: #f1efe9;
  --line: #e2ded4;
  --radius: 6px;
  --wrap: 1240px;
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--slate); }
h1, h2, h3 { line-height: 1.25; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: var(--radius); font-weight: 500; font-size: 16px; }
.site-nav a:hover { background: var(--bg-alt); }
.site-nav a[aria-current="page"] { color: var(--slate); box-shadow: inset 0 -2px 0 var(--sand); border-radius: 0; }
.site-nav .nav-cta { background: var(--slate); color: #fff; margin-inline-start: 8px; }
.site-nav .nav-cta:hover { background: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); font: 500 16px var(--font); padding: 8px 14px; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--slate); color: #fff; text-decoration: none; padding: 12px 26px; border-radius: var(--radius); font-weight: 500; border: 1px solid transparent; font-family: var(--font); font-size: 16px; cursor: pointer; }
.btn:hover { background: var(--ink); }
.btn-light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); }
.btn-light:hover { background: rgba(255, 255, 255, .26); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-ghost:hover { background: var(--slate); color: #fff; }

/* Opening film */
.film { position: relative; background: #0e1117; }
.film-video { display: block; width: 100%; max-height: 82vh; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 auto; }
.film-sound { position: absolute; bottom: 18px; left: 18px; background: rgba(15, 20, 28, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 20px; padding: 6px 16px; font: 500 14px var(--font); cursor: pointer; }
.film-sound:hover { background: rgba(15, 20, 28, .85); }
.eyebrow { color: var(--sand); font-weight: 500; letter-spacing: .04em; margin-bottom: .4em; }
.intro h1 { color: var(--ink); font-size: clamp(28px, 3.6vw, 44px); margin-bottom: .7em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* Sections */
.section { padding: 80px 0; }
.section.tight { padding: 32px 0 64px; }
.section.alt { background: var(--bg-alt); }
.intro { padding-top: 72px; padding-bottom: 40px; }
.intro .narrow { margin: 0 auto; text-align: center; font-size: 19px; color: var(--ink-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.link-more { text-decoration: none; font-weight: 500; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.lead { color: var(--ink-soft); margin-bottom: 32px; }
.page-head { padding: 56px 0 8px; }
.page-head .lead { margin-top: 12px; }
.meta { color: var(--ink-soft); }
.crumbs { display: flex; gap: 8px; color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--slate); }
.back { display: flex; justify-content: center; }

/* Justified gallery */
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ""; flex-grow: 999; }
.g-item { position: relative; flex-grow: calc(var(--r) * 100); width: calc(var(--r) * 230px); aspect-ratio: var(--r); overflow: hidden; border-radius: 3px; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.g-item:hover img { transform: scale(1.04); }
.g-item.hidden { display: none; }
.g-more { display: block; margin: 28px auto 0; }

/* Slideshow (fade, like the old site's MasterSlider galleries) */
.slideshow { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #14181f; border-radius: 4px; }
.ss-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.ss-slide.is-active { opacity: 1; }
.ss-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(15, 20, 28, .35); color: #fff; font: 400 34px/1 var(--font); cursor: pointer; opacity: 0; transition: opacity .3s, background .2s; }
.ss-prev { right: 0; border-radius: 4px 0 0 4px; }
.ss-next { left: 0; border-radius: 0 4px 4px 0; }
.slideshow:hover .ss-nav, .slideshow:focus-within .ss-nav { opacity: 1; }
.ss-nav:hover { background: rgba(15, 20, 28, .6); }
.ss-pause { position: absolute; bottom: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(15, 20, 28, .45); color: #fff; font-size: 11px; letter-spacing: -2px; cursor: pointer; }
.ss-count { position: absolute; bottom: 14px; right: 14px; color: #fff; font-size: 14px; background: rgba(15, 20, 28, .45); padding: 2px 10px; border-radius: 12px; }
.sub { font-size: 22px; margin-bottom: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 14px 34px rgba(28, 35, 48, .12); transform: translateY(-3px); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.card-title { font-weight: 700; font-size: 20px; }
.card-meta { color: var(--ink-soft); font-size: 15px; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #111; }
.video-play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); border-radius: 50%; border: 0; background: rgba(15, 20, 28, .6); cursor: pointer; transition: background .2s, transform .2s; }
.video-play::before { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent #fff; }
.video-play:hover { background: var(--slate); transform: translate(-50%, -50%) scale(1.06); }
.video-frame.is-playing .video-play { display: none; }
.video figcaption { margin-top: 10px; font-weight: 500; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text { font-size: 18px; }
.about-fig { margin: 0; }
.about-fig img { width: 100%; height: auto; border-radius: var(--radius); }
.about-fig figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 15px; border-inline-start: 3px solid var(--sand); padding-inline-start: 12px; }
.feature-photo { margin: 0; }
.feature-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.feature-photo figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 15px; border-inline-start: 3px solid var(--sand); padding-inline-start: 12px; }
.about-lead { font-size: clamp(20px, 2.4vw, 26px); color: var(--slate); font-weight: 500; line-height: 1.5; }
.credo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.credo-item { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sand); border-radius: var(--radius); padding: 22px 22px 8px; }
.credo-item h3 { font-size: 19px; margin-bottom: .4em; }
.credo-item p { color: var(--ink-soft); font-size: 16px; }

/* Client logos */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.client { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 12px; min-height: 130px; }
.client img { max-height: 56px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.client span { font-size: 13px; color: var(--ink-soft); text-align: center; }
.client-dark { background: var(--ink); border-color: var(--ink); }
.client-dark span { color: #c9cfd9; }

/* Landing page */
.lp-hero { background: #0e1117; }
.lp-intro { text-align: center; padding-top: 48px; }
.lp-intro h1 { font-size: clamp(30px, 4.2vw, 48px); }
.lp-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.btn-wa { background: #1fa855; display: inline-flex; align-items: center; gap: 8px; }
.btn-wa:hover { background: #178a45; }
.btn-wa svg { width: 20px; height: 20px; fill: #fff; }
.btn-small { padding: 8px 16px; font-size: 15px; }
.steps { list-style: none; counter-reset: step; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.steps li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps strong { display: block; }
.steps span { color: var(--ink-soft); }
.lp-sticky { display: none; }
.lp .site-footer { padding-top: 0; padding-bottom: 70px; }

.prose ul { padding-inline-start: 22px; margin: 0 0 1em; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }

/* Footer */
.site-footer { background: var(--ink); color: #d9dde5; padding-top: 56px; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 52px; width: auto; background: #fff; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 16px; }
.contact-list { display: flex; flex-direction: column; gap: 6px; }
.contact-list h2 { font-size: 20px; color: #fff; }
.contact-list a { text-decoration: none; width: fit-content; }
.contact-list a:hover { text-decoration: underline; }
.contact-list a[href^="tel"], .contact-list a[href^="mailto"] { direction: ltr; unicode-bidi: isolate; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 24px; font-size: 14px; color: #9aa3b2; }

/* Floating action buttons */
.fab { position: fixed; bottom: 20px; inset-inline-start: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 40; }
.fab-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.fab-btn svg { width: 26px; height: 26px; fill: #fff; }
.fab-wa { background: #25d366; }
.fab-tel { background: var(--slate); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 10, 14, .96); display: none; color: #fff; }
.lb.open { display: block; }
.lb-stage { position: absolute; inset: 56px 64px 56px; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lb-bar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 15px; }
.lb button { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; }
.lb-close { font-size: 30px; line-height: 1; padding: 6px 12px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px !important; width: 56px; height: 80px; opacity: .8; }
.lb-nav:hover { opacity: 1; }
.lb-prev { right: 4px; }
.lb-next { left: 4px; }
body.lb-lock { overflow: hidden; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  .logo img { height: 38px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .site-nav a[aria-current="page"] { box-shadow: none; background: var(--bg-alt); border-radius: var(--radius); }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .film-video { max-height: none; }
  .film-sound { bottom: 10px; left: 10px; padding: 4px 12px; font-size: 13px; }
  .section { padding: 56px 0; }
  .g-item { width: calc(var(--r) * 100px); }
  .gallery { gap: 4px; }
  .slideshow { aspect-ratio: 4 / 3; margin: 0 -16px; border-radius: 0; }
  .ss-nav { opacity: 1; width: 40px; height: 56px; font-size: 28px; }
  .ss-count { bottom: auto; top: 12px; }
  .clients { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .client { min-height: 110px; padding: 14px 8px 10px; }
  .client img { max-height: 44px; max-width: 120px; }
  .lp-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; align-items: center; justify-content: center; gap: 10px; background: #1fa855; color: #fff; text-decoration: none; font-weight: 700; padding: 14px; border-radius: 30px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .lp-sticky svg { width: 22px; height: 22px; fill: #fff; }
  .lp .header-inner { height: 60px; }
  .cards, .videos { grid-template-columns: 1fr; }
  .lb-stage { inset: 56px 0 56px; }
  .lb-nav { display: none; }
  .footer-bottom { flex-direction: column; padding: 18px 16px; }
  .fab { bottom: 14px; inset-inline-start: 14px; }
  .fab-btn { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-item img, .card { transition: none; }
}
