﻿/* ========================================================================== 
   HOME 2026 â€” escopo isolado para preservar as pÃ¡ginas internas
   ========================================================================== */

.home-page {
  --home-purple: #5b1b7b;
  --home-purple-deep: #250b34;
  --home-purple-dark: #16071f;
  --home-purple-soft: #f5eff8;
  --home-yellow: #fff000;
  --home-ink: #1d1820;
  --home-muted: #6d6571;
  --home-paper: #fcfbfd;
  --home-white: #ffffff;
  --home-line: rgba(37, 11, 52, 0.14);
  --home-radius: 22px;
  --home-shell: 1240px;
  color: var(--home-ink);
  background: var(--home-paper);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page a {
  color: inherit;
}

.home-page img {
  display: block;
  max-width: 100%;
}

.home-page button,
.home-page a {
  -webkit-tap-highlight-color: transparent;
}

.home-page :focus-visible {
  outline: 3px solid var(--home-yellow);
  outline-offset: 4px;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
  margin-top: 0;
}

.home-page h1,
.home-page h2,
.home-page h3 {
  color: inherit;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -0.045em;
}

.home-page h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.home-page [hidden] {
  display: none !important;
}

.anchor-alias {
  position: relative;
  top: -96px;
  display: block;
  width: 0;
  height: 0;
  visibility: hidden;
}

.home-shell {
  width: min(calc(100% - 48px), var(--home-shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  color: var(--home-white) !important;
  background: var(--home-purple);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header ---------------------------------------------------------------- */

.home-page .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--home-shell)) / 2));
  color: var(--home-ink);
  background: rgba(252, 251, 253, 0.91);
  border-bottom: 1px solid var(--home-line);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.home-page .brand {
  display: inline-flex;
  align-items: center;
  width: clamp(146px, 15vw, 190px);
}

.home-page .brand-logo {
  width: 100%;
  height: auto;
}

.home-page .site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 24px);
}

.home-page .site-nav a {
  position: relative;
  color: var(--home-ink);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.home-page .site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--home-purple);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.home-page .site-nav a:hover::after,
.home-page .site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-page .language-switcher {
  border-color: rgba(75, 23, 104, 0.22);
  background: rgba(255, 255, 255, 0.5);
  color: rgba(36, 22, 43, 0.42);
}

.home-page .language-switcher a {
  color: rgba(36, 22, 43, 0.62);
}

.home-page .language-switcher a::after {
  display: none;
}

.home-page .language-switcher a:hover,
.home-page .language-switcher a:focus-visible,
.home-page .language-switcher span[aria-current="page"] {
  color: var(--home-purple-deep);
}

.home-page .site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: var(--home-white) !important;
  background: var(--home-purple);
  border: 1px solid var(--home-purple);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.home-page .site-nav .nav-cta:hover {
  color: var(--home-purple-deep);
  background: var(--home-yellow);
  border-color: var(--home-yellow);
  transform: translateY(-2px);
}

.home-page .menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--home-line);
  border-radius: 50%;
}

.home-page .menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--home-purple-deep);
  transition: transform 180ms ease, opacity 180ms ease;
}

.home-page .menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.home-page .menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.home-page .menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero ------------------------------------------------------------------ */

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  color: var(--home-white);
  background: var(--home-purple-deep);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  content: "";
  pointer-events: none;
}

.home-hero::before {
  top: -18%;
  left: -8%;
  width: 44vw;
  height: 44vw;
  background: rgba(139, 63, 177, 0.48);
}

.home-hero::after {
  right: 3%;
  bottom: -20%;
  width: 30vw;
  height: 30vw;
  background: rgba(255, 240, 0, 0.09);
}

.home-hero-media,
.home-hero-media img,
.home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-media {
  z-index: -3;
  margin: 0;
}

.home-hero-media img {
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.home-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(29, 7, 41, 0.98) 0%, rgba(40, 10, 56, 0.92) 31%, rgba(42, 10, 58, 0.58) 49%, rgba(23, 6, 31, 0.08) 72%),
    linear-gradient(0deg, rgba(22, 7, 31, 0.62), transparent 40%);
}

.home-hero-grid {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding-block: clamp(72px, 9vw, 132px);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(51%, 690px);
}

.home-eyebrow,
.home-section-label {
  margin-bottom: 26px;
  color: var(--home-purple);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.home-hero .home-eyebrow {
  color: var(--home-yellow);
}

.home-hero h1 {
  max-width: none;
  margin-bottom: 30px;
  color: var(--home-white);
  font-size: clamp(4.5rem, 7.5vw, 8.8rem);
  font-weight: 850;
  line-height: 0.84;
  letter-spacing: -0.075em;
  text-shadow: 0 12px 42px rgba(15, 4, 21, 0.4);
}

.home-hero h1 span {
  display: block;
  white-space: nowrap;
}

.home-hero-lead {
  max-width: 610px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  line-height: 1.5;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 25px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.home-button:hover {
  transform: translateY(-3px);
}

.home-button-primary {
  color: var(--home-purple-deep);
  background: var(--home-yellow);
}

.home-button-primary:hover {
  color: var(--home-white) !important;
  background: var(--home-purple);
}

.home-button-ghost {
  color: var(--home-white);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px);
}

.home-button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Metrics --------------------------------------------------------------- */

.home-metrics {
  position: relative;
  padding-block: 34px;
  color: var(--home-white) !important;
  background: var(--home-purple);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  min-width: 0;
  padding: 10px clamp(20px, 3vw, 42px);
  border-left: 1px solid rgba(255, 255, 255, 0.23);
}

.metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  margin-bottom: 7px;
  color: var(--home-white);
  font-size: clamp(1.5rem, 2.45vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.metric span {
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Services -------------------------------------------------------------- */

.home-services,
.home-proof {
  padding-block: clamp(94px, 11vw, 160px);
  background: var(--home-white);
}

.home-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.58fr);
  align-items: end;
  gap: clamp(44px, 8vw, 120px);
  margin-bottom: clamp(48px, 7vw, 82px);
}

.home-heading-row h2 {
  max-width: 870px;
  margin-bottom: 0;
  color: var(--home-purple-deep);
}

.home-heading-row > p {
  max-width: 420px;
  margin-bottom: 5px;
  color: var(--home-muted);
  font-size: 1.04rem;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--home-line);
}

.services-list li {
  border-bottom: 1px solid var(--home-line);
}

.services-list li:nth-child(odd) {
  border-right: 1px solid var(--home-line);
}

.services-list a {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 26px;
  align-items: center;
  column-gap: 20px;
  min-height: 140px;
  padding: 24px clamp(20px, 3vw, 38px);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}

.services-list a:hover,
.services-list a:focus-visible {
  color: var(--home-white) !important;
  background: var(--home-purple);
  padding-inline: clamp(25px, 3.4vw, 44px);
}

.service-number {
  align-self: start;
  padding-top: 6px;
  color: var(--home-purple);
  font-size: 0.72rem;
  font-weight: 850;
}

.services-list a:hover .service-number,
.services-list a:focus-visible .service-number {
  color: var(--home-yellow);
}

.services-list h3 {
  align-self: end;
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.services-list p {
  grid-column: 2;
  align-self: start;
  margin: 0;
  color: var(--home-muted);
  font-size: 0.9rem;
}

.services-list a:hover p,
.services-list a:focus-visible p {
  color: rgba(255, 255, 255, 0.72);
}

.service-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  font-size: 1.25rem;
}

/* Portfolio ------------------------------------------------------------- */

.home-work {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 10vw, 148px);
  color: var(--home-white);
  background:
    radial-gradient(circle at 90% 8%, rgba(132, 58, 170, 0.36), transparent 27%),
    radial-gradient(circle at 8% 68%, rgba(255, 240, 0, 0.055), transparent 24%),
    var(--home-purple-deep);
}

.portfolio-carousel {
  position: relative;
}

.work-heading,
.audiovisual-heading {
  position: relative;
  padding-right: 150px;
}

.work-heading .home-section-label,
.audiovisual-heading .home-section-label {
  color: var(--home-yellow);
}

.work-heading h2 {
  max-width: 1080px;
  margin-bottom: 62px;
  color: var(--home-white);
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.work-heading h2 em {
  color: var(--home-yellow);
  font-style: normal;
}

.carousel-controls {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: flex;
  gap: 10px;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: var(--home-white);
  font: inherit;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.carousel-button:hover {
  color: var(--home-purple-deep);
  background: var(--home-yellow);
  border-color: var(--home-yellow);
  transform: translateY(-2px);
}

.carousel-controls[hidden] {
  display: none;
}

.carousel-button:disabled {
  opacity: 0.38;
  cursor: default;
  transform: none;
}

.portfolio-track {
  display: flex;
  gap: 22px;
  width: min(calc(100% - 40px), 1240px);
  margin-inline: auto;
  overflow-x: auto;
  padding: 0 0 26px;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
  scrollbar-width: thin;
  touch-action: pan-y;
}

.portfolio-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.portfolio-item {
  position: relative;
  flex: 0 0 calc((100% - 44px) / 3);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0;
  background: #100616;
  border: 0;
  border-radius: var(--home-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.31);
  scroll-snap-align: start;
  cursor: pointer;
}

button.portfolio-item {
  color: var(--home-white);
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.3, 1), filter 300ms ease;
}

.portfolio-item:hover img {
  transform: scale(1.018);
}

.audiovisual-showcase {
  margin-top: clamp(110px, 13vw, 190px);
  padding-top: clamp(80px, 9vw, 122px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  scroll-margin-top: 76px;
}

.audiovisual-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.62fr);
  align-items: end;
  gap: clamp(42px, 7vw, 90px);
  margin-bottom: 54px;
}

.audiovisual-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--home-white);
}

.audiovisual-heading > p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 1rem;
}

.audiovisual-heading .carousel-controls {
  bottom: 2px;
}

.portfolio-track-videos .portfolio-item {
  flex-basis: calc((100% - 44px) / 3);
  aspect-ratio: 16 / 9;
  background: #08030b;
}

.portfolio-item-video img {
  object-fit: cover;
}

.portfolio-item-video::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48));
  content: "";
}

.portfolio-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding-left: 4px;
  color: var(--home-purple-deep);
  background: rgba(255, 240, 0, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background 180ms ease;
}

.portfolio-item-video:hover .portfolio-play {
  background: var(--home-white);
  transform: translate(-50%, -50%) scale(1.08);
}

.portfolio-video-title {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 1;
  font-weight: 800;
  text-align: left;
}

.portfolio-format-reel {
  flex-basis: clamp(245px, 24vw, 350px) !important;
  aspect-ratio: 9 / 16 !important;
}

.noscript-portfolio {
  display: flex;
  gap: 22px;
  overflow-x: auto;
}

.noscript-portfolio img {
  width: min(72vw, 420px);
  height: auto;
  border-radius: var(--home-radius);
}

/* Testimonials ---------------------------------------------------------- */

.proof-heading {
  max-width: 880px;
  margin: 0 auto clamp(54px, 7vw, 82px);
  text-align: center;
}

.proof-heading h2 {
  margin-bottom: 0;
  color: var(--home-purple-deep);
}

.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonials-row figure {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  margin: 0;
  padding: clamp(28px, 3vw, 42px);
  color: var(--home-white);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, 0.13), transparent 30%),
    var(--home-purple);
  border-radius: var(--home-radius);
  box-shadow: 0 24px 55px rgba(62, 17, 82, 0.13);
}

.testimonials-row blockquote {
  margin: 0 0 42px;
  color: var(--home-white);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.55;
}

.testimonials-row figcaption {
  color: var(--home-yellow);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Blog + contact -------------------------------------------------------- */

.home-blog-callout {
  padding-block: clamp(58px, 7vw, 86px);
  background: var(--home-purple-soft);
  border-top: 1px solid var(--home-line);
}

.blog-callout-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
}

.blog-callout-grid h2 {
  margin-bottom: 0;
  color: var(--home-purple-deep);
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

.blog-callout-grid a {
  flex: 0 0 auto;
  padding-bottom: 7px;
  color: var(--home-purple);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.home-contact {
  padding-block: clamp(90px, 10vw, 144px);
  color: var(--home-white);
  background:
    radial-gradient(circle at 15% 0, rgba(116, 42, 151, 0.45), transparent 30%),
    var(--home-purple-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: clamp(60px, 9vw, 140px);
}

.home-contact .home-section-label {
  color: var(--home-yellow);
}

.home-contact h2 {
  max-width: 850px;
  margin-bottom: 26px;
  color: var(--home-white);
}

.home-contact p {
  max-width: 630px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
}

.home-button-yellow {
  color: var(--home-purple-deep);
  background: var(--home-yellow);
}

.home-button-on-dark {
  color: var(--home-white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.home-button-on-dark:hover {
  border-color: var(--home-white);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 0 8px clamp(26px, 4vw, 60px);
  font-style: normal;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.contact-details a {
  font-weight: 700;
  text-decoration: none;
}

.contact-details span {
  color: rgba(255, 255, 255, 0.67);
}

/* Footer ---------------------------------------------------------------- */

.home-page .site-footer {
  display: block;
  padding: clamp(70px, 8vw, 110px) 0 26px;
  color: var(--home-white);
  text-align: left;
  background: var(--home-purple-dark);
  border: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.55fr 0.55fr;
  gap: clamp(50px, 8vw, 120px);
  padding-bottom: 72px;
}

.home-page .footer-logo {
  width: 190px;
  height: auto;
  margin: 0 0 24px;
}

.footer-grid > div:first-child p {
  max-width: 420px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
}

.footer-grid nav,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-grid nav a,
.footer-social a {
  color: var(--home-white);
  font-weight: 700;
  text-decoration: none;
}

.footer-grid nav a:hover,
.footer-social a:hover {
  color: var(--home-yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.home-page .whatsapp-float {
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  padding: 0;
  color: var(--home-white);
  background: #25d366;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(17, 96, 50, 0.28);
}

.home-page .whatsapp-float:hover,
.home-page .whatsapp-float:focus-visible {
  color: var(--home-white);
  background: #1fb85a;
}

/* Video modal ----------------------------------------------------------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(22px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(10, 4, 14, 0.92);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.video-modal[hidden] {
  display: none;
}

.video-modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.video-modal:not([hidden]) .video-dialog {
  transform: scale(1);
}

.video-dialog {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 85vh;
  transform: scale(0.96);
  transition: transform 250ms ease;
}

@media (max-width: 768px) {
  .video-dialog {
    width: 95vw;
  }
}

.video-dialog[data-format="reel"] {
  width: min(48vh, 430px);
}

.video-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.video-dialog[data-format="reel"] .video-frame {
  aspect-ratio: 9 / 16;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--home-purple-deep);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  background: var(--home-yellow);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.home-page.is-modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1040px) {
  .home-page .site-header {
    min-height: 70px;
  }

  .home-page .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
    flex: 0 0 46px;
    visibility: visible;
    opacity: 1;
  }

  .home-page .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    color: var(--home-white);
    background: rgba(30, 8, 42, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(20, 5, 28, 0.28);
    backdrop-filter: blur(18px);
  }

  .home-page .site-nav.is-open {
    display: flex;
  }

  .home-page .site-nav a {
    padding: 12px;
    color: var(--home-white);
  }

  .home-page .language-switcher {
    align-self: stretch;
    margin: 6px 10px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
  }

  .home-page .language-switcher a,
  .home-page .language-switcher span {
    color: var(--home-white);
  }

  .home-page .language-switcher span[aria-current="page"] {
    color: var(--home-yellow);
  }

  .home-page .site-nav .nav-cta {
    margin-top: 8px;
    color: var(--home-white);
  }

  .home-hero,
  .home-hero-grid {
    min-height: calc(100svh - 70px);
  }

  .home-hero-copy {
    width: min(58%, 610px);
  }

  .home-hero h1 {
    font-size: clamp(4rem, 9vw, 6.8rem);
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }

  .metric:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .services-list li:nth-child(odd) {
    border-right: 0;
  }

  .testimonials-row {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-row figure:last-child {
    grid-column: 1 / -1;
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.6fr 0.6fr;
  }
}

@media (max-width: 760px) {
  .home-shell {
    width: min(calc(100% - 36px), var(--home-shell));
  }

  .home-page h2 {
    font-size: clamp(2.25rem, 11vw, 3.8rem);
  }

  .home-page .site-header {
    min-height: 68px;
    padding-inline: 18px;
  }

  .home-page .brand {
    width: 145px;
  }

  .home-page .site-nav {
    right: 12px;
    left: 12px;
  }

  .home-hero,
  .home-hero-grid {
    min-height: calc(100svh - 68px);
  }

  .home-hero {
    min-height: 720px;
  }

  .home-hero-grid {
    align-items: start;
    min-height: 720px;
    padding-block: clamp(52px, 10vh, 88px) 310px;
  }

  .home-hero-media img {
    object-position: center center;
  }

  .home-hero-shade {
    background:
      linear-gradient(180deg, rgba(29, 7, 41, 0.99) 0%, rgba(37, 9, 51, 0.92) 27%, rgba(32, 8, 44, 0.48) 49%, rgba(16, 5, 22, 0.34) 72%, rgba(13, 4, 18, 0.76) 100%);
  }

  .home-hero::before {
    width: 90vw;
    height: 90vw;
  }

  .home-hero-copy {
    width: 100%;
    max-width: 520px;
  }

  .home-eyebrow,
  .home-section-label {
    margin-bottom: 20px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .home-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 14.25vw, 4.9rem);
    line-height: 0.86;
  }

  .home-hero-lead {
    max-width: 440px;
    margin-bottom: 26px;
    font-size: 1rem;
  }

  .home-button {
    min-height: 50px;
    padding-inline: 20px;
    font-size: 0.82rem;
  }

  .home-metrics {
    padding-block: 30px;
  }

  .metrics-grid {
    gap: 0;
  }

  .metric {
    min-height: 100px;
    padding: 16px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .metric:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .metric:nth-child(even) {
    padding-right: 0;
  }

  .metric:nth-child(n+3) {
    border-bottom: 0;
  }

  .metric strong {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .metric span {
    font-size: 0.73rem;
  }

  .home-services,
  .home-proof {
    padding-block: 82px;
  }

  .home-heading-row {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 44px;
  }

  .home-heading-row > p {
    max-width: 520px;
  }

  .services-list a {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    column-gap: 12px;
    min-height: 126px;
    padding: 22px 6px;
  }

  .services-list a:hover,
  .services-list a:focus-visible {
    padding-inline: 14px;
  }

  .services-list h3 {
    font-size: 1.3rem;
  }

  .services-list p {
    font-size: 0.82rem;
  }

  .home-work {
    padding-block: 82px;
  }

  .work-heading,
  .audiovisual-heading {
    padding-right: 0;
  }

  .work-heading h2 {
    margin-bottom: 30px;
    font-size: clamp(2.2rem, 10.6vw, 3.45rem);
  }

  .carousel-controls {
    position: static;
    margin-bottom: 28px;
  }

  .carousel-button {
    width: 46px;
    height: 46px;
  }

  .portfolio-track {
    gap: 14px;
    width: 100%;
    padding: 0 4vw 22px;
    scroll-padding-inline: 4vw;
    scroll-snap-type: x mandatory;
  }

  .portfolio-track-images .portfolio-item {
    flex-basis: 82vw;
    scroll-snap-align: center;
  }

  .audiovisual-showcase {
    margin-top: 96px;
    padding-top: 78px;
  }

  .audiovisual-heading {
    display: block;
    margin-bottom: 24px;
  }

  .audiovisual-heading h2 {
    margin-bottom: 22px;
  }

  .audiovisual-heading > p {
    margin-bottom: 26px;
  }

  .portfolio-track-videos .portfolio-item {
    flex-basis: 87vw;
    scroll-snap-align: center;
  }

  .portfolio-format-reel {
    flex-basis: 72vw !important;
  }

  .portfolio-play {
    width: 58px;
    height: 58px;
  }

  .proof-heading {
    margin-bottom: 42px;
  }

  .testimonials-row {
    grid-template-columns: 1fr;
  }

  .testimonials-row figure,
  .testimonials-row figure:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 30px;
  }

  .testimonials-row blockquote {
    margin-bottom: 34px;
  }

  .blog-callout-grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .contact-details {
    padding: 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px 30px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-page .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }

  .video-dialog,
  .video-dialog[data-format="reel"] {
    width: min(92vw, 1120px);
    max-height: calc(100svh - max(32px, env(safe-area-inset-top)) - max(32px, env(safe-area-inset-bottom)));
  }

  .video-dialog[data-format="reel"] {
    width: min(82vw, 430px);
  }

  .video-close {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 430px) {
  .home-hero h1 {
    font-size: clamp(2.9rem, 14.25vw, 4rem);
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-button {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(n) {
    min-height: 0;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .metric:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
/* Location Maps ----------------------------------------------------------- */

.home-location {
  padding: 80px 0;
  background: var(--home-paper);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.location-header .home-section-label {
  color: var(--home-purple);
}

.location-header h2 {
  max-width: 500px;
  margin-bottom: 20px;
  color: var(--home-purple-deep);
}

.location-header p {
  color: var(--home-muted);
  margin-bottom: 26px;
}

.location-map-wrapper {
  width: 100%;
  height: clamp(400px, 45vh, 500px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.location-map-wrapper iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .location-map-wrapper {
    height: clamp(320px, 40vh, 400px);
  }
}
/* Styles for Internal Pages to match Home 2026 */

.home-section {
  padding-block: clamp(94px, 11vw, 160px);
  background: var(--home-paper);
}

.internal-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.58fr);
  align-items: end;
  gap: clamp(44px, 8vw, 120px);
  margin-bottom: clamp(48px, 7vw, 82px);
}

.internal-heading-row h2 {
  max-width: 870px;
  margin-bottom: 0;
  color: var(--home-purple-deep);
}

.internal-heading-row p {
  max-width: 420px;
  margin-bottom: 5px;
  color: var(--home-muted);
  font-size: 1.04rem;
}

@media (max-width: 768px) {
  .internal-heading-row {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 44px;
  }

  .internal-heading-row p {
    max-width: 520px;
  }
}
/* Apply home-shell behavior directly to home-section if missing */
.home-section {
  width: 100%;
  max-width: min(92vw, 1340px);
  margin: 0 auto;
  padding-block: clamp(94px, 11vw, 160px);
  background: transparent;
}
/* ==========================================================================
   INNER PAGES HERO AND SCALES
   ========================================================================== */

.inner-page .home-hero {
  min-height: min(calc(100svh - 76px), 740px);
}

.inner-page .home-hero-grid {
  min-height: auto;
  padding-top: clamp(150px, 18vh, 200px);
    padding-bottom: clamp(80px, 12vh, 140px);
}

.inner-page .home-hero h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 880px;
  white-space: normal;
}

@media (max-width: 1366px) {
  .inner-page .home-hero {
    min-height: min(calc(100svh - 76px), 680px);
  }
}

@media (max-width: 1024px) {
  .inner-page .home-hero {
    min-height: min(calc(100svh - 76px), 620px);
    height: auto;
  }
  .inner-page .home-hero-grid {
    padding-top: 130px;
    padding-bottom: 100px;
  }
}

@media (max-width: 768px) {
  .inner-page .home-hero {
    min-height: 480px;
    height: auto;
  }
  .inner-page .home-hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    line-height: 1.05;
  }
}

@media (max-width: 430px) {
  .inner-page .home-hero h1 {
    font-size: clamp(2.25rem, 11vw, 2.75rem);
  }
}
/* Fix contrast for seo-list on light background */
.home-page .seo-list li {
  background: var(--home-paper);
  color: var(--home-ink);
  border: 1px solid var(--home-line);
  border-left: 6px solid var(--green);
  box-shadow: none;
}
.home-page .seo-list li:nth-child(2) { border-left-color: var(--red); }
.home-page .seo-list li:nth-child(3) { border-left-color: var(--home-purple); }
.home-page .seo-list li:nth-child(4) { border-left-color: var(--home-yellow); }
/* Ensure all paragraphs inside home-section are dark */
.home-section p {
  color: var(--home-muted);
}
.internal-heading-row p {
  color: var(--home-muted);
}
/* Fix category grid contrast on light backgrounds */
.home-page .category-grid a {
  background: var(--home-purple-dark);
  color: var(--home-white);
  border-color: rgba(255, 255, 255, 0.1);
}
.home-page .category-grid a:hover {
  background: var(--home-purple-deep);
  border-color: var(--home-yellow);
}
/* Ensure blog cards are fully solid dark on light backgrounds */
.home-page .post-card,
.home-page .featured-post {
  background: var(--home-purple-dark);
}
.home-page .post-card p {
  color: var(--green);
}
.home-page .post-card span {
  color: rgba(255, 255, 255, 0.72);
}
.home-page .text-link {
  color: var(--home-yellow);
}
/* Integrate breadcrumb into the inner hero */
.inner-page .breadcrumb {
  position: absolute;
  top: 76px; /* directly below header */
  left: 0;
  right: 0;
  z-index: 10;
  padding: 16px max(24px, calc((100vw - var(--home-shell)) / 2));
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}
.inner-page .breadcrumb a {
  color: var(--home-white);
  text-decoration: none;
}
.inner-page .breadcrumb a:hover {
  text-decoration: underline;
}

/* On mobile, adjust position */
@media (max-width: 1024px) {
  .inner-page .breadcrumb {
    padding-inline: 20px;
    top: 68px; /* mobile header height */
  }
}
.inner-page main {
  position: relative;
}
/* ==========================================================================
   BLOG HERO
   ========================================================================== */

.blog-hero {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--home-paper);
}
.blog-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.blog-hero-content .home-eyebrow {
  color: var(--home-purple);
}
.blog-hero-content h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.95;
  color: var(--home-purple-deep);
  margin-bottom: 24px;
}
.blog-hero-content .home-hero-lead {
  color: var(--home-muted);
  max-width: 580px;
}
.blog-hero-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.blog-hero-image-wrapper img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero-content {
    order: 1;
  }
  .blog-hero-image-wrapper {
    order: 2;
    margin-top: 24px;
  }
  .blog-hero-image-wrapper img {
    aspect-ratio: 16/9;
  }
}
/* ==========================================================================
   GLOBAL CONTRAST SYSTEM (surface-light / surface-dark)
   ========================================================================== */

.surface-light {
  background: var(--home-paper);
  color: var(--home-ink);
}
.surface-light h1, .surface-light h2, .surface-light h3 {
  color: var(--home-purple-deep);
}
/* Be careful not to override cards inside surface-light that are dark */
.surface-light > .home-shell > p,
.surface-light > .home-shell > .internal-heading-row > p,
.surface-light > p {
  color: var(--home-muted);
}
.surface-light .home-eyebrow, .surface-light .home-section-label {
  color: var(--home-purple);
}

.surface-dark, .home-hero {
  background: var(--home-purple-deep);
  color: var(--home-white);
}
.surface-dark h1, .surface-dark h2, .surface-dark h3 {
  color: var(--home-white);
}
.surface-dark p {
  color: rgba(255, 255, 255, 0.76);
}
.surface-dark .home-eyebrow, .surface-dark .home-section-label {
  color: var(--home-yellow);
}
/* ==========================================================================
   ARTICLE EDITORIAL TYPOGRAPHY
   ========================================================================== */
.article-page {
  background: var(--home-paper);
}
.article-hero {
  padding: 130px clamp(20px, 6vw, 76px) 48px;
  background: var(--home-purple-deep);
  color: var(--home-white);
  text-align: center;
}
.article-hero h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  line-height: 1;
  max-width: 900px;
  margin: 0 auto 24px;
}
.article-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto;
}

.article-wrap {
  display: flex;
  gap: 60px;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 6vw, 76px);
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.article-content {
  flex: 1;
  min-width: 0;
  max-width: 780px; /* 720-820px reading column */
  color: var(--home-ink);
}

.article-content h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  line-height: 1.1;
  margin: 60px 0 24px;
  color: var(--home-purple-deep);
}
.article-content h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  line-height: 1.2;
  margin: 40px 0 16px;
  color: var(--home-purple);
}
.article-content p, .article-content li {
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.75;
  color: #2b2b2b; /* dark and comfortable */
  margin-bottom: 24px;
}
.article-content a:not(.home-button) {
  color: var(--home-purple);
  text-decoration: underline;
}

.article-aside {
  flex: 0 0 320px;
  position: sticky;
  top: 100px;
  background: var(--home-purple-dark);
  color: var(--home-white);
  padding: 32px;
  border-radius: 16px;
}
.article-aside h3 {
  color: var(--home-yellow);
  margin-bottom: 16px;
}
.article-aside p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .article-wrap {
    flex-direction: column;
  }
  .article-aside {
    flex: none;
    width: 100%;
    position: relative;
    top: 0;
    margin-top: 40px;
  }
}
@media (max-width: 768px) {
  .article-hero h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .article-content h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .article-content h3 { font-size: clamp(1.25rem, 6vw, 1.5rem); }
}
/* Ensure clicks on portfolio children don't get swallowed by overlays */
.portfolio-item-video *,
.portfolio-item-image * {
  pointer-events: none;
}
.home-page .post-card h3,
.home-page .featured-post h3,
.home-page .post-card h3 a,
.home-page .featured-post h3 a {
  color: var(--home-white);
}
.home-page .featured-post span {
  color: var(--home-yellow);
}
.home-page .featured-post p {
  color: rgba(255,255,255,0.76);
}
.hero-image {
  z-index: -3;
}
