/* ============================================================
   Self-hosted font: Random Grotesque Standard (user-provided TTFs)
   Weights: 400 / 500 / 600 / 700 + italic 400 / 700
   ============================================================ */

@font-face {
  font-family: "Random Grotesque Standard";
  src: url("../fonts/random-grotesque.standard-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Random Grotesque Standard";
  src: url("../fonts/random-grotesque.standard-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Random Grotesque Standard";
  src: url("../fonts/random-grotesque.standard-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   SEO Bali® Studio — Bootstrap 5.x black & white theme
   Design tokens
   ============================================================ */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --gray: #6b6b6b;
  --gray-light: #d9d9d9;
  --surface: #f4f4f2;
  --line: #e5e5e5;
  --line-dark: rgba(255, 255, 255, 0.14);
  --font-display: "Random Grotesque Standard", "Inter", sans-serif;
  --font-heading: "Random Grotesque Standard", "Space Grotesk", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lw-tile-bg: #131417;
  --lw-tile-bg-hover: #18191d;
  --lw-tile-radius: 0.8rem;
  --lw-tile-height: 6rem;
  --lw-gap: .5rem;
  --lw-logo-color: rgba(255, 255, 255, .62);
  --lw-logo-color-hover: rgba(255, 255, 255, .95);
  --lw-logo-h: 1.875rem;         /* logo height (logos scale UP to this) */
  --lw-logo-max-w: 64%;          /* logo max width, relative to the tile */
  --lw-mask-h: 2.375rem;         /* height of the clipping window (keep > logo height) */
  --lw-duration: 800ms;          /* slide duration */
  --lw-ease: cubic-bezier(.65, 0, .35, 1);
  --lw-section-py: clamp(3rem, 8vw, 7.5rem);   /* top/bottom padding of the section */
  --lw-section-px: 0;                          /* extra side padding (container already adds some) */

  /* Tablet/desktop (≥768px, 5 columns) sizes */
  --lw-tile-height-md: 7.5rem;
  --lw-logo-h-md: 2.45rem;
  --lw-mask-h-md: 3rem;
}

* {
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================
   Utility helpers
   ============================================================ */

/* .headline-2-line {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  max-height: 2.8em;
  white-space: normal !important;
  overflow-wrap: anywhere;
} */
.eyebrow {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}

.section-heading {
  max-width: 850px;
  margin-inline: auto;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: center;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 600;

  .section-title.headline-2-line {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    word-break: break-word;
  }
}
.section-sub {
  color: var(--gray);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 560px;
}

.hairline {
  border-top: 1px solid var(--line);
}
.hairline-dark {
  border-top: 1px solid var(--line-dark);
}

.text-gray {
  color: var(--gray) !important;
}

/* pill buttons */
.btn-pill {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.35s var(--ease);
}

.btn-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}

.btn-pill:hover {
  color: var(--paper) !important;
}

.btn-pill:hover::after {
  transform: translateY(0);
}

.btn-pill-light {
  border-color: var(--paper);
  color: var(--paper);
}
.btn-pill-light::after {
  background: var(--paper);
}
.btn-pill-light:hover {
  color: var(--ink) !important;
}

/*input type submit*/
/* input.btn-pill {
  padding: 0.72rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(var(--ink) 0 0) no-repeat;
  background-size: 100% 0%;
  background-position: bottom;
  color: var(--ink);
  cursor: pointer;
  transition: background-size 0.4s var(--ease),
              color 0.35s var(--ease);
}

input.btn-pill:hover {
  background-size: 100% 100%;
  color: var(--paper);
} */

/* magnetic-ish arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.arrow-link .arr {
  transition: transform 0.3s var(--ease);
}
.arrow-link:hover .arr {
  transform: translateX(5px);
}

/* ============================================================
   Navbar
   ============================================================ */
.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1.1rem 0;
  transition:
    background 0.4s var(--ease),
    padding 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--paper);
}
.nav-shell .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: inherit;
}
.nav-shell .nav-link {
  color: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  padding: 0.4rem 0.9rem !important;
  position: relative;
}
.nav-shell .nav-link:hover,
.nav-shell .nav-link.active {
  opacity: 1;
  color: var(--gray);
}
.nav-shell .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-shell .nav-link:hover::after,
.nav-shell .nav-link.active::after {
  transform: scaleX(1);
}

.nav-shell .nav-count {
  font-size: 0.62rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 0.42rem;
  margin-left: 0.3rem;
  opacity: 0.75;
  vertical-align: middle;
}

.nav-shell.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  color: var(--ink);
  padding: 0.65rem 0;
  border-bottom-color: var(--line);
}
/* pages without video hero start solid */
.nav-shell.nav-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.nav-shell.nav-solid.scrolled {
  padding: 0.65rem 0;
}

/* home: full-bleed navbar so brand hugs the left edge and "Let's talk" hugs the right edge */
.home .nav-shell .container {
  max-width: none;
  width: 100%;
  padding-left: 2.2rem;
  padding-right: 2.2rem;
}
@media (max-width: 1023.98px) {
  .home .nav-shell .container {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }
}

.nav-shell .btn-pill {
  color: inherit;
  border-color: currentColor;
}
.nav-shell .btn-pill::after {
  background: currentColor;
}
.nav-shell .btn-pill:hover {
  color: var(--paper);
}
.nav-shell.nav-solid .btn-pill:hover,
.nav-shell.scrolled .btn-pill:hover {
  color: var(--ink);
}
.nav-shell.nav-solid .btn-pill::after,
.nav-shell.scrolled .btn-pill::after {
  background: var(--ink);
}

.navbar-toggler {
  border: none;
  box-shadow: none !important;
  color: inherit;
}
.navbar-toggler .burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.navbar-toggler .burger span {
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s;
}
/* three-bar burger morph: scoped to :not(.burger--2) so the opacity rule
   can never hide one bar of the two-line burger — both strokes must show */
.navbar-toggler[aria-expanded="true"]
  .burger:not(.burger--2)
  span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"]
  .burger:not(.burger--2)
  span:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"]
  .burger:not(.burger--2)
  span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* two-line burger (fabrica reference style) */
.navbar-toggler .burger--2 {
  gap: 7px;
}
.navbar-toggler[aria-expanded="true"] .burger--2 span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .burger--2 span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ============================================================
   Responsive navbar — single markup, custom 1024px breakpoint
   inline desktop nav >= 1024px, collapse/mobile nav below it
   ============================================================ */
@media (min-width: 1024px) {
  .nav-shell .navbar {
    flex-wrap: nowrap;
  }
  .nav-shell .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
  }
  .nav-shell .navbar-nav {
    flex-direction: row !important;
    align-items: center;
    margin-bottom: 0 !important;
  }
  .nav-shell .navbar-toggler {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  .nav-shell {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    color: var(--ink);
    border-bottom-color: var(--line);
  }
  .nav-shell .navbar-nav {
    margin-bottom: 1rem !important;
  }
  .nav-shell .navbar-nav .nav-link {
    padding: 0.55rem 0 !important;
  }
  .nav-shell .navbar-collapse .btn-pill {
    align-self: flex-start;
  }
  .nav-shell .btn-pill:hover {
    color: var(--ink);
  }
  .nav-shell .btn-pill::after {
    background: var(--ink);
  }
  /* pages that ship the dark overlay menu hide the inline collapse;
     case-study.html (no overlay, original markup) keeps its Bootstrap nav.
     Two separate rules: a body class for universal support plus a :has()
     fallback — a combined selector list would break non-:has browsers */
  body.has-nav-overlay .nav-shell .navbar-collapse {
    display: none !important;
  }
  body:has(> .nav-overlay) .nav-shell .navbar-collapse {
    display: none !important;
  }
  .hero-services {
    display: none !important;
  }
}

/* ============================================================
   Desktop dropdown (hover / keyboard focus), >= 1024px only
   ============================================================ */
.nav-dropdown {
  display: none; /* hidden by default, and always hidden on mobile */
}

@media (min-width: 1024px) {
  .nav-shell .nav-item.has-dropdown {
    position: relative;
  }

  /* small chevron after parent label (::after is already used by the underline) */
  .nav-shell .has-dropdown > .nav-link::before {
    content: "";
    display: inline-block;
    order: 2;
    float: right;
    width: 5px;
    height: 5px;
    margin: 0.55em 0 0 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    transition: transform 0.3s var(--ease);
  }
  .nav-shell .has-dropdown:hover > .nav-link::before,
  .nav-shell .has-dropdown:focus-within > .nav-link::before {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  /* the panel */
  .nav-shell .nav-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 220px;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0s linear 0.25s;
    z-index: 10;
  }

  /* invisible bridge so the hover doesn't drop in the gap between link and panel */
  .nav-shell .nav-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }

  .nav-shell .has-dropdown:hover > .nav-dropdown,
  .nav-shell .has-dropdown:focus-within > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }

  .nav-shell .nav-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s var(--ease);
  }
  .nav-shell .nav-dropdown-link:hover,
  .nav-shell .nav-dropdown-link:focus-visible,
  .nav-shell .nav-dropdown-link.active {
    background: rgba(0, 0, 0, 0.05);
  }
}

/* ============================================================
   Overlay nav — mobile (< 768px) & tablet (768–1023px)
   Phone: dark full-screen bento menu that slides down from the
   top and fades in — staggered lowercase links, CTA pill,
   status accent + contact cards at the bottom.
   Tablet/iPad (tbd® style): the same dark menu becomes a
   medium box anchored to the top-right that pushes down from
   the top and fades in, with the page dimmed behind it.
   ============================================================ */
body.nav-open {
  overflow: hidden;
}
body.nav-open .nav-shell,
body.nav-open .nav-shell.nav-solid,
body.nav-open .nav-shell.scrolled {
  background: transparent;
  backdrop-filter: none;
  color: var(--paper);
  border-bottom-color: transparent;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040; /* below .nav-shell so brand + burger stay visible */
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition:
    opacity 0.4s var(--ease),
    transform 0.55s var(--ease),
    visibility 0s linear 0.55s;
  will-change: transform, opacity;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.4s var(--ease),
    transform 0.55s var(--ease);
}
.nav-overlay-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.6rem;
  padding-top: 7rem;
  padding-bottom: 2.2rem;
}
.home .nav-overlay .container {
  max-width: none;
  width: 100%;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.ov-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ov-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--ease);
}
.nav-overlay.open .ov-links li {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.1s + var(--i, 0) * 0.06s);
}
.ov-links a {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 7.2vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--paper);
  transition: color 0.25s;
}
.ov-links a:hover {
  color: rgba(255, 255, 255, 0.62);
}
.ov-links a.active {
  color: rgba(255, 255, 255, 0.45);
}
.ov-links .nav-count {
  font-size: 0.7rem;
  align-self: center;
  opacity: 0.8;
}

.ov-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.4s var(--ease) 0.44s,
    transform 0.5s var(--ease) 0.44s;
}
.nav-overlay.open .ov-bottom {
  opacity: 1;
  transform: translateY(0);
}

.ov-cta-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.ov-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.66);
}
.ov-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #58e08a;
  animation: ov-pulse 2.2s infinite;
}
@keyframes ov-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(88, 224, 138, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(88, 224, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(88, 224, 138, 0);
  }
}

.ov-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.ov-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s;
}
.ov-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--paper);
}
.ov-card-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
}
.ov-card-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}

@media (min-width: 560px) and (max-width: 767.98px) {
  .ov-cards {
    grid-template-columns: 1fr 1fr;
  }
}
/* Tablet / iPad (768–1023px): medium dark box anchored to the
   top-right — pushes down from the top with fade-in, page
   dimmed behind it (tbd® studio menu style). */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .nav-overlay {
    inset: 4.2rem 0.9rem auto auto;
    width: min(27rem, calc(100vw - 1.8rem));
    max-height: calc(100vh - 5.1rem);
    max-height: calc(100dvh - 5.1rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    box-shadow: 0 0 0 100vmax rgba(10, 10, 10, 0.45);
    transform: translateY(calc(-100% - 4.4rem));
    overflow-y: auto;
  }
  .nav-overlay.open {
    transform: translateY(0);
  }
  .nav-overlay-inner {
    min-height: 0;
    gap: 1.7rem;
    padding-top: 2.2rem;
    padding-bottom: 0.5rem;
  }
  .home .nav-overlay .container {
    padding-left: 1.8rem;
    padding-right: 1.8rem;
  }
  .ov-links a {
    font-size: clamp(1.5rem, 4.4vw, 2rem);
    padding: 0.68rem 0;
  }
  .ov-bottom {
    gap: 1.1rem;
  }
  .ov-cards {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1024px) {
  .nav-overlay {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-overlay,
  .nav-overlay.open {
    transition: opacity 0.01s linear;
    transform: none;
  }
  .ov-links li,
  .ov-bottom {
    transition: none;
    transform: none;
  }
  .ov-dot {
    animation: none;
  }
}

/* ============================================================
   Hero (video background)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
}
.hero video.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.25) 40%,
    rgba(10, 10, 10, 0.82) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 4.5rem;
  padding-top: 9rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  line-height: 1.06;
  font-weight: 600;
  max-width: 1050px;
  margin: 1.6rem 0 0;
}
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* keep descenders (g, p, y) from being clipped by the mask */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 0.8s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 40ms + 150ms);
}
@keyframes wordUp {
  to {
    transform: translateY(0);
  }
}

.hero-title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

/* rotating service word */
.hero-rotate {
  display: inline-block;
  position: relative;
  min-width: 14ch;
  color: var(--paper);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}
.hero-rotate .rot-item {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(60%);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.hero-rotate .rot-item.on {
  opacity: 1;
  transform: translateY(0);
}

.hero-meta {
  position: absolute;
  right: 1.5rem;
  bottom: 4.5rem;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 991.98px) {
  .hero-meta {
    display: none;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--paper);
  transform: translateX(-50%);
  animation: cue 1.6s infinite var(--ease);
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 1.05rem 0;
}
.marquee-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--line-dark);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track .mq-item {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.mq-item .sep {
  opacity: 0.4;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   Outcomes — one-line marquee of audit cards
   ============================================================ */

.outcomes {
  padding: 2rem 0;
}

.outcomes .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.outcomes .pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: 0;
  border: 0;
  text-align: center;
}

.outcomes .quote-author {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gray);
}

/* Marquee band */
.outcomes .marquee {
  --mq-card-width: 15rem;
  --mq-card-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  padding: 1.15rem 0;
}

.outcomes .marquee-dark {
  background: var(--ink);
}

.outcomes .marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--mq-duration, 26s) linear infinite;
}

.outcomes .marquee-reverse .marquee-track {
  animation-direction: reverse;
}

.outcomes.marquee:hover .marquee-track,
.outcomes .marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.outcomes .marquee-track .mq-group {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
}

/* ==========================================================================
   Logo Wall – animated client logo grid (Bootstrap 5 companion styles)
   ========================================================================== */

.logo-wall {
  background: #0b0c0e;
  padding: var(--lw-section-py) var(--lw-section-px);
  color: var(--paper);
}

/* Grid: 2 columns on phones, 5 columns from tablet up (10 tiles = 2 even rows) */
.logo-wall__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lw-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .logo-wall__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  /* Wider 5-column tiles → larger logos (values come from :root *-md vars) */
  .logo-wall {
    --lw-tile-height: var(--lw-tile-height-md);
    --lw-logo-h: var(--lw-logo-h-md);
    --lw-mask-h: var(--lw-mask-h-md);
  }
}

/* Tile */
.logo-wall__tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--lw-tile-height);
  background: var(--lw-tile-bg);
  border-radius: var(--lw-tile-radius);
  overflow: hidden;
  transition: background-color .3s ease;
}
.logo-wall__tile:hover { background: var(--lw-tile-bg-hover); }

/* Clipping window — logos slide through this, matching the video */
.logo-wall__mask {
  position: relative;
  width: 100%;
  height: var(--lw-mask-h);
  overflow: hidden;
}

/* A single logo inside a mask */
.logo-wall__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lw-logo-color);
  transform: translate3d(0, 0, 0);
  transition:
    transform var(--lw-duration) var(--lw-ease),
    opacity var(--lw-duration) var(--lw-ease),
    color .3s ease;
  will-change: transform;
}
.logo-wall__tile:hover .logo-wall__item { color: var(--lw-logo-color-hover); }

/* Logo wrapper fills the whole slot so % widths are relative to the tile */
.logo-wall__item .logo-wall__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.logo-wall__item img,
.logo-wall__item svg {
  display: block;
  height: var(--lw-logo-h);     /* fixed height → small files are scaled up */
  width: auto;
  max-width: var(--lw-logo-max-w);
  object-fit: contain;          /* very wide logos shrink without distorting */
  opacity: .62;
  transition: opacity .3s ease;
}
.logo-wall__tile:hover .logo-wall__item img,
.logo-wall__tile:hover .logo-wall__item svg { opacity: 1; }
/* Force every logo to solid white, whatever its original colours.
   brightness(0) turns all visible pixels black, invert(1) flips them to white.
   Transparent areas stay transparent, so use PNG/SVG with no background.
   To keep a logo's original colours, add .logo-wall__logo--original to its <span>. */
.logo-wall__item img,
.logo-wall__item svg {
  filter: brightness(0) invert(1);
}
.logo-wall__item .logo-wall__logo--original img,
.logo-wall__item .logo-wall__logo--original svg {
  filter: none;
}

/* Animation states */
.logo-wall__item.is-next       { transform: translate3d(0, 100%, 0); opacity: 0; transition: none; }
.logo-wall__item.is-leaving    { transform: translate3d(0, -100%, 0); opacity: 0; }

/* ---- Static tiles (counter + CTA) ---- */
.logo-wall__tile--stat {
  flex-direction: column;
  line-height: 1;
}
.logo-wall__stat-number {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-style: italic;
  font-size: 2rem;
  color: #fff;
}
.logo-wall__stat-label {
  margin-top: .35rem;
  font-size: .625rem;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .02em;
}

.logo-wall__tile--cta { padding: 0; }
.logo-wall__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: 100%;
  font-size: .75rem;
  color: #fff;
  text-decoration: none;
}
.logo-wall__cta-icon {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  color: #000;
  transition: transform .35s var(--lw-ease);
}
.logo-wall__cta:hover { color: #fff; }
.logo-wall__cta:hover .logo-wall__cta-icon { transform: rotate(-45deg); }
.logo-wall__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  border-radius: var(--lw-tile-radius);
}

/* Pool of logos is never shown directly */
.logo-wall__pool { display: none !important; }

/* Accessibility: no motion */
@media (prefers-reduced-motion: reduce) {
  .logo-wall__item { transition: none !important; }
}

/* The card: white surface, hairline border, rounded corners,
   centered value over a small gray label. */
.outcomes .marquee-track .mq-item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: var(--mq-card-width);
  margin-right: 25px;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--mq-card-radius);
  text-align: center;
  box-shadow: none;
}

.outcomes .mq-item .mq-value {
  font-family: var(--font-body);
  font-size: clamp(0.5rem, 1.5vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.outcomes .mq-item .mq-label {
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .outcomes .marquee {
    --mq-card-width: 12.5rem;
    --mq-gap: 1.6rem;
  }

  .outcomes .marquee-track .mq-item {
    padding: 1.15rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .outcomes .marquee {
    overflow-x: auto;
  }

  .outcomes .marquee-track {
    animation: none;
  }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
/* Content is visible by default. JS only pre-hides elements that start
   below the fold, so static/automated captures always render everything. */
[data-reveal] {
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
[data-reveal].pre-hide:not(.revealed) {
  opacity: 0;
  transform: translateY(34px);
}

/* Services page only: editorial intro and ruled, two-column service grid. */
.services-page .services-intro {
  padding-bottom: 64px;
}
.services-page .services-hero-photo {
  display: block;
  width: 100%;
  height: clamp(260px, 38vw, 520px);
  object-fit: cover;
}
.services-catalogue {
  background: #ffffff;
  padding: 96px 0;
}
.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 64px;
}
.services-aside {
  align-self: start;
  position: sticky;
  top: 110px;
}
.services-aside h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  margin: 18px 0 24px;
}
.services-aside p {
  color: #626262;
  line-height: 1.7;
  max-width: 320px;
}
.services-index {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.services-index a {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid #d8d8d5;
  font-size: 14px;
  min-height: 44px;
}
.services-index span {
  color: #737373;
}
.services-index a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.services-list {
  min-width: 0;
  border-left: 1px solid #d8d8d5;
}
.service-offering {
  padding: 0 0 48px 32px;
  border-bottom: 1px solid #d8d8d5;
  scroll-margin-top: 110px;
}
.service-offering + .service-offering {
  padding-top: 48px;
}
.service-offering-header {
  display: flex;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 28px;
}
.service-offering-number {
  font-size: 14px;
  color: #747474;
}
.service-offering h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
  margin: 0;
}
.service-offering-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.service-offering-images img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
}
.service-offering-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.service-offering-details p {
  color: #626262;
  line-height: 1.75;
  font-size: 15px;
  margin: 0 0 20px;
}
.service-offering-price {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.service-offering-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-offering-tags li {
  border: 1px solid #d0d0cd;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #525252;
}
.services-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}
.services-contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.services-cta {
  padding: 24px 0 80px;
}
.services-cta p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: #bfbfbf;
}
@media (max-width: 991.98px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-aside {
    position: static;
  }
  .services-aside p {
    max-width: 600px;
  }
  .services-index {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .services-list {
    border-left: 0;
  }
  .service-offering {
    padding-left: 0;
  }
  .services-catalogue {
    padding: 56px 0;
  }
}
@media (max-width: 575.98px) {
  .services-page .services-intro {
    padding-bottom: 40px;
  }
  .services-index {
    grid-template-columns: 1fr;
  }
  .service-offering-header {
    gap: 12px;
  }
  .service-offering-images {
    gap: 10px;
  }
  .service-offering-details {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .service-offering h3 {
    font-size: 28px;
  }
  .services-catalogue {
    padding: 40px 12px;
  }
  .services-cta {
    padding: 0 12px 48px;
  }
}

/* ============================================================
   Case Study
   ============================================================ */
.cases {
  background: var(--paper);
  color: var(--ink);
  padding-block: 14vh;
}
.cases .tag {
  color: #777;
}
/* .cases h2 {
    font-size: clamp(48px, 10vw, 160px);
    margin: 3vh 0 8vh;
} */
.case .im {
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
}
.case .im img {
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.case:hover img {
  transform: scale(1.07);
}
.case h3 {
  font-size: clamp(20px, 2.2vw, 32px);
  margin: 16px 0 6px;
}
.badge {
  font-weight: 400;
  font-size: 12px;
  border: 1px solid #bbb;
  color: var(--ink);
}
@media (min-width: 768px) {
  .cases .col-md-6:nth-child(even) {
    margin-top: 10vh;
  }
}

/* ============================================================
   Project cards
   ============================================================ */
.project-card {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  transition:
    border-color 0.35s,
    box-shadow 0.35s;
}
.project-card:hover {
  border-color: var(--ink);
  box-shadow: 0 24px 50px -28px rgba(10, 10, 10, 0.35);
}
.project-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1.001);
  transition:
    transform 0.8s var(--ease),
    filter 0.6s;
}
.project-card:hover .project-thumb img {
  transform: scale(1.06);
}
.project-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.3rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.project-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.project-year {
  color: var(--gray);
  font-size: 0.85rem;
}
.project-go {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s var(--ease);
}
.project-card:hover .project-go {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-45deg);
}

/* filter chips */
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.3s var(--ease);
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.project-card.hide {
  display: none;
}

/* ============================================================
   Stats / counters
   ============================================================ */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-label {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ============================================================
   Services accordion list
   ============================================================ */
.svc-item {
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  cursor: pointer;
  transition: padding 0.4s var(--ease);
}
.svc-item:first-child {
  border-top: 1px solid var(--line);
}
.svc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.svc-index {
  font-size: 0.8rem;
  color: var(--gray);
  min-width: 3ch;
}
.svc-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 600;
  transition:
    transform 0.4s var(--ease),
    color 0.4s;
}
.svc-item:hover .svc-title {
  transform: translateX(12px);
}
.svc-plus {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition:
    transform 0.45s var(--ease),
    background 0.35s,
    color 0.35s;
}
.svc-item.open .svc-plus {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.svc-panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.55s var(--ease),
    opacity 0.5s;
  opacity: 0;
}
.svc-item.open .svc-panel {
  max-height: 260px;
  opacity: 1;
}
.svc-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.svc-cat {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.32rem 0.85rem;
  color: var(--gray);
}

/* ============================================================
   Dark panels / CTA
   ============================================================ */
.panel-dark {
  background: var(--ink);
  color: var(--paper);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}

.panel-dark.height {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.panel-dark.height > div {
  flex-grow: 1;
}

.panel-dark::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  left: 15%;
  top: -30%;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.16),
    transparent 70%
  );
  pointer-events: none;
}

.panel-dark .glow-bottom::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 60%;
  left: 10%;
  bottom: -35%;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

/* Expanding homepage CTA: only the background grows; content stays centered. */
.panel-dark--expand {
  isolation: isolate;
  overflow: visible;
  background: transparent;
}
.panel-dark--expand::after {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--expand-right, 0px)) 0
    calc(-1 * var(--expand-left, 0px));
  border-radius: var(--lw-tile-radius);
  background: var(--ink);
  z-index: -1;
  pointer-events: none;
}

/* ===== Tech stack section ===== */
.tech-stack {
	padding: 6rem 0;
	background: transparent;
}
.tech-stack .eyebrow {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gray);
}
.tech-stack h2 {
	font-weight: 700;
	line-height: 1.2;
}

/* Logo stage */
.logo-stage {
	position: relative;
	height: 220px;
	border-radius: 1.25rem;
	background: transparent;
	overflow: hidden;
}
.logo-stage::before,
.logo-stage::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 50px;
	z-index: 2;
	pointer-events: none;
}
/* .logo-stage::before { top: 0;    background: linear-gradient(#fff, rgba(255,255,255,0)); }
.logo-stage::after  { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); } */

.logo-item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 3rem;
	opacity: 0;
	transform: translateY(60px);
	transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}
.logo-item img {
	max-width: 100%;
	max-height: 100px;
	object-fit: contain;
}
.logo-item.is-active {
	opacity: 1;
	transform: translateY(0);
}
.logo-item.is-leaving {
	opacity: 0;
	transform: translateY(-60px);
}

/* Progress dots */
.logo-dots {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.logo-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50px;
	background: #cfd6e0;
	transition: height .3s ease, background .3s ease;
}
.logo-dots button.is-active {
	height: 24px;
	background: var(--gray);
}
.tech-tag {
	display: inline-block;
	padding: .35rem .85rem;
	font-size: .875rem;
	font-weight: 500;
	color: #495057;
	background: #fff;
	border: 1px solid #ced4da;   /* grey stroke */
	border-radius: .5rem;
}

@media (prefers-reduced-motion: reduce) {
	.logo-item { transition: opacity .3s ease; transform: none !important; }
}

/* ============================================================
   Team cards
   ============================================================ */
.team-card {
  position: relative;
}
.team-photo {
  aspect-ratio: 3 / 3.6;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition:
    transform 0.8s var(--ease),
    filter 0.6s;
}
.team-card:hover .team-photo img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.team-overlay {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.45s var(--ease),
    opacity 0.45s;
}
.team-card:hover .team-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testi-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 1.8rem;
  height: 100%;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -26px rgba(10, 10, 10, 0.3);
}
.testi-stars {
  letter-spacing: 3px;
  font-size: 0.85rem;
}

/* ============================================================
   Pricing
   ============================================================ */
.price-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.2rem;
  background: var(--paper);
  height: 100%;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s,
    border-color 0.4s;
}
.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.35);
  border-color: var(--ink);
}
.price-card.price-featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.price-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.price-check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* ============================================================
   FAQ (bootstrap accordion overrides)
   ============================================================ */
.accordion-faq {
  --bs-accordion-border-color: var(--line);
  --bs-accordion-bg: transparent;
}
.accordion-faq .accordion-item {
  border: none;
  border-bottom: 1px solid var(--line);
}
.accordion-faq .accordion-item:first-of-type {
  border-top: 1px solid var(--line);
}
.accordion-faq .accordion-button {
  background: transparent;
  box-shadow: none !important;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  padding: 1.5rem 0.25rem;
}
.accordion-faq .accordion-button:not(.collapsed) {
  color: var(--ink);
  background: transparent;
}
.accordion-faq .accordion-body {
  padding: 0 0.25rem 1.6rem;
  color: var(--gray);
  max-width: 720px;
}
.accordion-faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230a0a0a' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2z'/%3E%3C/svg%3E");
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 0.35s var(--ease);
}

/* ============================================================
   Blog cards
   ============================================================ */
.blog-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition:
    box-shadow 0.4s,
    transform 0.4s var(--ease);
}
.blog-card:hover {
  box-shadow: 0 26px 52px -30px rgba(10, 10, 10, 0.35);
  transform: translateY(-5px);
}
.blog-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.8s var(--ease);
}
.blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}
.blog-meta {
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  transition: color 0.3s;
}
.blog-card:hover .blog-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================================
   Forms
   ============================================================ */
.form-control-bw {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.9rem 0.2rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-control-bw:focus {
  box-shadow: none;
  border-color: var(--ink);
  background: transparent;
}
.form-control-bw::placeholder {
  color: var(--gray);
}
.panel-dark .form-control-bw {
  border-bottom-color: var(--line-dark);
  color: var(--paper);
}
.panel-dark .form-control-bw:focus {
  border-color: var(--paper);
}
.panel-dark .form-control-bw::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.wpcf7-form-control-wrap textarea{
  height: 100px !important;
}
.wpcf7-form-control-wrap .form-check{
  padding: 0px !important;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  /* background: var(--ink); */
  color: var(--ink);
  padding-top: 6rem;
}
.footer a {
  color: var(--ink);
  transition: color 0.3s;
}
.footer a:hover {
  color: var(--gray);
}
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 600;
  letter-spacing: 0.55em;
  line-height: 0.95;
  color: var(--ink);
  -webkit-text-stroke: 1px var(--paper);
  opacity: 0.2;
}
.footer .form-control-bw {
  border-bottom-color: var(--line-dark);
}
.footer-brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* ============================================================
   Sub-page hero (no video)
   ============================================================ */
.page-hero {
  padding: 11rem 0 4.5rem;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 90%;
  left: 20%;
  bottom: -55%;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.14),
    transparent 70%
  );
}
.page-hero h1 {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 1;
}

/* misc */
.img-bw {
  filter: grayscale(100%);
}
.rounded-media {
  border-radius: 22px;
  overflow: hidden;
}
/* .ticker-badge {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
} */

/* ============================================================
   Detail pages (case study / service) — parallax system
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  mix-blend-mode: difference;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1080;
}

/* Parallax media: inner image is oversized and shifted by JS (--py) */
.px-media {
  position: relative;
  background: var(--surface);
}
.px-media > img,
.px-media > video {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.05);
}
.px-frame {
  border-radius: 22px;
  overflow: hidden;
}
/* Disable the fixed aspect ratio */
.px-frame.px-wide {
  aspect-ratio: auto;
}
.px-frame.px-tall {
  aspect-ratio: 4 / 5;
}
.px-frame.px-square {
  aspect-ratio: 1.3 / 1;
}

/* Case study hero */
.case-hero {
  position: relative;
  min-height: 75svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.case-hero .px-media {
  position: absolute;
  inset: 0;
  background: var(--ink);
}
.case-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.12) 45%,
    rgba(10, 10, 10, 0.86) 100%
  );
}
.case-hero-inner {
  position: relative;
  z-index: 2;
  padding: 9rem 0 4.5rem;
  width: 100%;
}
.case-hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* Meta rows */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem 4rem;
}
.meta-item .eyebrow {
  display: block;
  margin-bottom: 0.45rem;
}
.meta-item strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Editorial type */
.detail-lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 940px;
}
.detail-lead .dim {
  color: var(--gray);
}

.pull-quote {
  border-left: 2px solid var(--ink);
  padding-left: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  font-weight: 500;
  max-width: 760px;
}

.sticky-col {
  position: sticky;
  top: 120px;
}

.result-tile {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.7rem;
  background: var(--paper);
  height: 100%;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.result-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -28px rgba(10, 10, 10, 0.3);
}

/* Next project band */
.next-project {
  display: block;
  position: relative;
  padding: 7rem 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.next-project .np-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.next-project .np-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: transform 0.5s var(--ease);
}
.next-project .np-arrow {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 1;
  transition: transform 0.5s var(--ease);
}
.next-project:hover .np-title {
  transform: translateY(-10px);
}
.next-project:hover .np-arrow {
  transform: translateX(18px);
}

/* Service detail hero */
.svc-hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.svc-hero .px-media {
  position: absolute;
  inset: 0;
  background: var(--ink);
}
.svc-hero-inner {
  position: relative;
  z-index: 2;
  padding: 8rem 0 4.2rem;
  width: 100%;
}
.svc-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.include-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.include-item:first-child {
  border-top: 1px solid var(--line);
}
.include-item .bi {
  margin-top: 0.3rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  letter-spacing: -0.04em;
}
.panel-dark .step-num {
  -webkit-text-stroke-color: var(--paper);
}

/* ============================================================
   Home hero — rounded video box (fabrica live style)
   ============================================================ */
.hero-boxed {
  min-height: 100svh;
  display: block;
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  overflow: hidden;
}
.hero-boxed .container {
  max-width: none;
  width: 100%;
  padding: 0;
}
.hero-boxed .hero-frame {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 100svh;
  color: var(--paper);
  background: var(--ink);
}
.hero-boxed .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.35) 0%,
    rgba(10, 10, 10, 0.12) 45%,
    rgba(10, 10, 10, 0.78) 100%
  );
}

/* four "+" grid markers across the middle */
.hero-pluses {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-evenly;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  font-weight: 300;
  z-index: 2;
  pointer-events: none;
}

/* wordmark — left-aligned on the left rail, slightly above the optical
   center, "Studio" indented under the second word (reference layout);
   wm-sub is a block so the second line skips the h1 strut → the white
   space at the line break stays close and proportional */
.hero-wordmark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  /* justify-content: flex-start; */
  padding-left: 2.2rem;
  padding-bottom: 12vh;
  color: transparent;
  -webkit-text-stroke: 1px var(--paper);
  opacity: 0.7;
}
.hero-wordmark h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 0.95;
  font-size: clamp(3.4rem, 11.5vw, 10.5rem);
}
.hero-wordmark sup {
  font-size: 0.26em;
  top: -1.6em;
}
.hero-wordmark h1 .wm-sub {
  display: block;
  font-size: clamp(1.15rem, 2.8vw, 2.3rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  opacity: 0.9;
  margin: 0.4rem 0 0 clamp(2rem, 27vw, 24rem);
  text-align: right;
}
.hero-wordmark .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero-wordmark .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 200ms);
}

/* right-side services list */
.hero-services {
  position: absolute;
  right: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: right;
}
.hero-services a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.3rem 0;
  display: inline-block;
  transition:
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.hero-services a:hover {
  color: #fff;
  transform: translateX(-6px);
}

/* bottom-left note */
.hero-note {
  position: absolute;
  left: 2.2rem;
  bottom: 2.1rem;
  z-index: 3;
  max-width: 380px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* bottom-right team card */
.hero-card {
  position: absolute;
  right: 2.2rem;
  bottom: 2.1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1.05rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}
.hero-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
}
.hero-card-text {
  line-height: 1.25;
}
.hero-card-text strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-card-btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  padding: 0.55rem 1rem !important;
  font-size: 0.85rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.hero-card-btn::after {
  background: var(--paper);
}
.hero-card-btn:hover {
  color: var(--ink) !important;
  border-color: var(--ink);
}
.hero-card-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  position: relative;
  z-index: 1;
}
.hero-card-btn:hover .hero-card-dot {
  background: var(--ink);
  color: var(--paper);
}

/* bottom copyright */
/* .hero-copy {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 2.35rem; z-index: 2;
  font-size: .78rem; letter-spacing: .02em;
  color: rgba(255,255,255,.55);
} */
.hero-boxed .scroll-cue {
  display: none;
}

@media (max-width: 1023.98px) {
  .hero-boxed {
    padding-top: 0;
  }
  .hero-boxed .hero-frame {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4.5rem 1.35rem 1.35rem;
  }
  .hero-wordmark {
    position: static;
    inset: auto;
    padding: 2.2rem 0 1.4rem;
    justify-content: center;
    text-align: center;
  }
  .hero-wordmark h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }
  .hero-wordmark h1 .wm-sub {
    margin-left: 0;
  }
  .hero-pluses {
    display: none;
  }
  .hero-note {
    position: static;
    max-width: none;
    margin-top: auto;
  }
  .hero-card {
    position: static;
    margin-top: 1.1rem;
    align-self: flex-start;
  }
  .hero-copy {
    position: static;
    transform: none;
    margin-top: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .px-media > img,
  .px-media > video {
    transform: none !important;
  }
}

/* ============================================================
   Motion layer — appended additions (original rules above untouched)
   ScrollOut in/out states, scroll drift, running text
   ============================================================ */
/* ScrollOut drives data-scroll="in"/"out" on [data-reveal]. Content is
   visible by default; reduced-motion keeps everything visible. */
[data-reveal][data-scroll="out"] {
  opacity: 0;
  transform: translateY(34px);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal][data-scroll="out"] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Scroll-driven leftward drift for cards inside [data-drift] sections */
[data-drift] .project-card {
  transform: translateX(var(--dx, 0px));
  will-change: transform;
}
[data-drift] .testi-card {
  transform: translateX(var(--dx, 0px));
  will-change: transform;
}
[data-drift] .testi-card:hover {
  transform: translateX(var(--dx, 0px)) translateY(-6px);
}
[data-drift] .team-card {
  transform: translateX(var(--dx, 0px));
  will-change: transform;
}

/* Bold scroll-running text band */
.run-band {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(2.2rem, 6vw, 4.5rem) 0;
}
.run-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.run-text {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.run-text sup {
  font-size: 0.3em;
}
.run-text .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
}

/* Fullscreen original-data heroes (studio / projects / blog / contact / service) */
.page-hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
}
.svc-hero {
  min-height: 100svh;
}

/* ScrollOut "out" keeps the horizontal drift transform on drifting cards
   (opacity still fades them); blog cards join the drift system */
[data-drift] .project-card[data-scroll="out"],
[data-drift] .testi-card[data-scroll="out"],
[data-drift] .team-card[data-scroll="out"],
[data-drift] .blog-card[data-scroll="out"] {
  transform: translateX(var(--dx, 0px));
}
[data-drift] .blog-card {
  transform: translateX(var(--dx, 0px));
  will-change: transform;
}
[data-drift] .blog-card:hover {
  transform: translateX(var(--dx, 0px)) translateY(-5px);
}

/* Lenis (Locomotive Scroll core) required styles — inlined from
   node_modules/locomotive-scroll/dist/locomotive-scroll.css so pages
   work on a plain static server without a JS CSS import. */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
.lenis.lenis-autoToggle {
  transition-behavior: allow-discrete;
  transition-duration: 1ms;
  transition-property: overflow;
}

/* ---------- SEO Bali additions: accessibility, focus, spam-trap ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
.site-main {
  display: block;
}
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Mobile/tablet overlay layout: compact, top-aligned and scrollable. */
@media (max-width: 1023.98px) {
  .nav-overlay {
    top: var(--wp-admin--admin-bar--height, 0px);
    bottom: 0;
    height: auto;
    overscroll-behavior: contain;
  }
  .nav-overlay-inner {
    min-height: 0;
    justify-content: flex-start;
    gap: 24px;
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    padding-left: 24px;
    padding-right: 24px;
  }
  .ov-nav,
  .ov-bottom {
    flex-shrink: 0;
  }
  .ov-links a {
    align-items: center;
    min-height: 48px;
    padding: 10px 0;
    font-size: clamp(26px, 3.4vw, 28px);
    line-height: 1.2;
  }
  .ov-links a.active {
    color: #b8b8b8;
  }
  .ov-bottom {
    gap: 16px;
  }
  .ov-card {
    padding: 14px 16px;
  }
  .ov-card-value {
    overflow-wrap: anywhere;
  }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* Keep the tablet dropdown near the top, directly below the header. */
  .nav-overlay {
    inset: calc(76px + var(--wp-admin--admin-bar--height, 0px)) 16px auto auto;
    width: min(432px, calc(100vw - 32px));
    max-height: calc(100dvh - 92px - var(--wp-admin--admin-bar--height, 0px));
  }
  .nav-overlay-inner {
    padding: 20px 24px 24px;
    gap: 20px;
  }
  .home .nav-overlay .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  body.nav-open .nav-shell,
  body.nav-open .nav-shell.nav-solid,
  body.nav-open .nav-shell.scrolled {
    background: var(--paper);
    color: var(--ink);
    border-bottom-color: var(--line);
  }
}

/* Ordinary static artwork replaces the former WebGL mounts. */
.page-hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.4);
  pointer-events: none;
}

/* Studio and Contact: reference-inspired white header, then full-width photo. */
.page-hero--editorial {
  display: block;
  min-height: 0;
  padding: 0;
  background: var(--paper);
  color: #252525;
}
.page-hero--editorial::before {
  content: none;
}
.page-hero--editorial .page-hero-copy {
  padding-top: clamp(140px, 14vw, 200px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
.page-hero--editorial h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.page-hero--editorial p {
  max-width: 690px;
  margin: clamp(36px, 5vw, 72px) 0 0;
  color: #666;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
}
.page-hero-image {
  display: block;
  width: 100%;
  height: clamp(300px, 43vw, 640px);
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767.98px) {
  .page-hero--editorial .page-hero-copy {
    padding: 128px 24px 48px;
  }
  .page-hero--editorial h1 {
    font-size: clamp(44px, 10vw, 64px);
  }
  .page-hero--editorial p {
    margin-top: 32px;
  }
  .page-hero-image {
    height: 320px;
  }
}

/* Small-screen hero card: keep portrait, details and CTA inside one card. */
@media (max-width: 1023.98px) {
  .hero .hero-card {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    min-width: 0;
    margin: 18px 0 0;
    padding: 12px;
    border-radius: 24px;
    background: var(--paper);
    color: var(--ink);
    -webkit-text-stroke: 0;
    opacity: 1;
    box-sizing: border-box;
  }
  .hero .hero-card > img {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  .hero .hero-card-text {
    display: block;
    min-width: 0;
    color: var(--ink);
    -webkit-text-stroke: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .hero .hero-card-text .small {
    font-size: 12px;
  }
  .hero .hero-card-text strong {
    display: block;
    font-size: 15px;
  }
  .hero .hero-card-btn {
    position: relative;
    inset: auto;
    min-height: 44px;
    margin: 0;
    justify-content: center;
    color: var(--paper);
    -webkit-text-stroke: 0;
  }
  /* Keep light button text readable despite the owner's global hover override. */
  .hero .hero-card-btn:hover {
    background: var(--ink);
  }
  .hero .hero-card-btn::after {
    background: var(--ink);
  }
  .hero .scroll-cue {
    display: none;
  }
}
@media (max-width: 559.98px) {
  .hero .hero-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .hero .hero-card-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Centered mobile hero, including the 768px tablet breakpoint. */
@media (max-width: 768px) {
  .hero .hero-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100svh;
    width: 100%;
    padding: 88px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .hero .hero-wordmark {
    position: relative;
    inset: auto;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    text-align: center;
    z-index: 2;
  }
  .hero .hero-wordmark h1 {
    width: 100%;
  }
  .hero .hero-wordmark h1 .wm-sub {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }
  .hero .hero-note {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 480px;
  }
  .hero .hero-card {
    position: relative;
    inset: auto;
    flex-shrink: 0;
    align-self: center;
    margin: 18px auto 0;
  }
}

/* Full-bleed hero on phones and tablets; content retains its own padding. */
@media (max-width: 1023.98px) {
  .hero {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .hero > .container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .hero .hero-frame {
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-sizing: border-box;
  }
}

/* Supplied brand assets: white homepage, black scrolled/static navigation. */
.nav-shell .navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}
.brand-logo,
.overlay-brand img {
  width: clamp(132px, 14vw, 170px);
  height: auto;
  display: block;
}
.nav-shell .brand-logo--white {
  display: none;
}
.nav-shell .brand-logo--black {
  display: block;
}
.home .nav-shell:not(.scrolled):not(.nav-solid) .brand-logo--white {
  display: block;
}
.home .nav-shell:not(.scrolled):not(.nav-solid) .brand-logo--black {
  display: none;
}
.overlay-brand {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 4px;
}
@media (max-width: 1023.98px) {
  .home .nav-shell:not(.scrolled):not(.nav-solid) {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
    color: var(--paper);
  }
  body.nav-open .nav-shell.nav-solid {
    background: var(--paper);
    color: var(--ink);
    border-bottom-color: var(--line);
  }
  .home.nav-open .nav-shell {
    background: transparent;
    color: var(--paper);
    backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .home.nav-open .nav-shell .brand-logo--white {
    display: block;
  }
  .home.nav-open .nav-shell .brand-logo--black {
    display: none;
  }
}
