:root {
  --ink: #0a0a0a;
  --ink-soft: #161616;
  --ink-mid: #2a2a2a;
  --paper: #f4f4f4;
  --surface: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --muted: #666666;
  --muted-soft: #999999;
  --accent: #111111;
  --accent-deep: #000000;
  --accent-glow: rgba(0, 0, 0, 0.18);
  --accent-on-dark: #ffffff;
  --danger: #b91c1c;
  --ok: #171717;
  --font: "Poppins", system-ui, sans-serif;
  --display: "Poppins", system-ui, sans-serif;
  --mono: "Poppins", system-ui, sans-serif;
  --radius: 0.35rem;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 247, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition:
    background .4s ease,
    border-color .4s ease,
    box-shadow .4s ease,
    backdrop-filter .4s ease,
    -webkit-backdrop-filter .4s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.site-header .logo,
.site-header .nav-desktop>a:not(.btn),
.site-header .logo-mark,
.site-header .menu-btn,
.site-header .logo-img {
  transition: color .35s ease, background .35s ease, border-color .35s ease, filter .35s ease;
}

/* Hero pages: dark/transparent header until scroll (desktop + phone) */
body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) {
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  box-shadow: none;
  border-color: transparent;
}

body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) .logo {
  color: #fff;
}

body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) .logo .x {
  color: var(--accent-on-dark);
}

body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) .logo-mark {
  background: #fff;
  color: var(--ink);
}

body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) .logo-mark::after {
  background: var(--ink);
}

body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) .nav-desktop>a:not(.btn) {
  color: rgba(255, 255, 255, 0.72);
}

body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) .nav-desktop>a:not(.btn):hover {
  color: #fff;
}

body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) .nav-desktop .btn-black {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: #fff;
}

body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) .logo-img {
  filter: brightness(0) invert(1);
}

body:has(:is(.hero, .page-hero)) .site-header:not(.scrolled) .menu-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body:has(:is(.hero, .page-hero)) .site-header.scrolled .nav-desktop .btn-black {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink);
}

body:has(.hero) .hero {
  margin-top: -4.5rem;
  min-height: calc(100vh + 4.5rem);
  min-height: calc(100dvh + 4.5rem);
}

body:has(.page-hero) .page-hero {
  margin-top: -4.5rem;
  padding-top: calc(3.5rem + 4.5rem);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

.logo-img {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 10.5rem;
  object-fit: contain;
}

.logo-has-img {
  gap: .65rem;
}

.logo-text {
  line-height: 1.1;
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--accent);
}

.logo .x {
  color: var(--accent);
}

.nav-desktop {
  display: none;
  gap: 1.35rem;
  align-items: center;
}

.nav-desktop a {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: color .2s;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
}

.menu-btn .menu-icon-close {
  display: none;
}

/* Keep hamburger only — close lives inside the drawer */
.site-header.is-menu-open .menu-btn {
  opacity: 0;
  pointer-events: none;
}

/* Legacy mobile nav hidden — replaced by .tx-drawer */
.nav-mobile,
.nav-mobile-backdrop {
  display: none !important;
}

body.nav-lock {
  overflow: hidden;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .tx-drawer-root {
    display: none !important;
  }

  body.nav-lock {
    overflow: auto;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-lg {
  padding: 5.5rem 0;
}

.section-ink {
  background: var(--ink);
  color: #e8eef5;
}

.section-ink .section-title {
  color: #fff;
}

.section-ink .section-lead {
  color: rgba(232, 238, 245, 0.72);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
}

.section-ink .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.section-ink .eyebrow::before {
  background: rgba(255, 255, 255, 0.72);
}

.section-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-top: .85rem;
  text-wrap: balance;
}

.section-lead {
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.05rem;
  max-width: 36rem;
  line-height: 1.7;
}

.grid-2 {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 85%, rgba(255, 255, 255, 0.04), transparent 50%),
    linear-gradient(165deg, #050505 0%, var(--ink) 45%, #1a1a1a 100%);
  color: #fff;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .04;
  pointer-events: none;
  /* Static grain — avoids expensive SVG feTurbulence paint */
  background-image: radial-gradient(rgba(255, 255, 255, .35) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-noise {
    display: none;
  }
}

.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000 35%, transparent 100%);
}

/* Same .container as header logo — left edges match */
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(4.5rem + 2.5rem);
  padding-bottom: 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-has-media .hero-inner {
  gap: 2rem 3rem;
}

@media (min-width: 960px) {
  .hero {
    align-items: flex-start;
  }

  .hero-inner {
    padding-top: calc(4.5rem + 4.5rem) !important;
    padding-bottom: 5.5rem !important;
  }

  .hero-has-media .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero-copy {
  max-width: 38rem;
  text-align: left;
}

@media (min-width: 960px) {
  .hero-copy {
    max-width: 100%;
  }
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  justify-self: end;
  z-index: 1;
}

.hero-visual-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 28px 60px rgba(0, 0, 0, 0.45);
  transform: translateZ(0);
  animation: hero-visual-float 7.5s ease-in-out infinite;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s ease;
}

.hero-visual:hover .hero-visual-frame {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 36px 70px rgba(0, 0, 0, 0.5);
}

.hero-visual-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.28) 100%);
}

.hero-visual-glow {
  position: absolute;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.18), transparent 58%);
  filter: blur(18px);
  opacity: .85;
}

.hero-visual-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg,
      transparent 35%,
      rgba(255, 255, 255, 0.16) 48%,
      transparent 62%);
  transform: translateX(-120%);
  animation: hero-visual-shine 8s ease-in-out infinite;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: min(68vh, 34rem);
  object-fit: cover;
  object-position: center top;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.hero-visual:hover .hero-img {
  transform: scale(1.035);
}

.hero-visual:hover .hero-visual-shine {
  animation-duration: 4.5s;
}

@keyframes hero-visual-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes hero-visual-shine {

  0%,
  55% {
    transform: translateX(-120%);
  }

  75%,
  100% {
    transform: translateX(120%);
  }
}

@media (min-width: 960px) {
  .hero-visual {
    max-width: none;
    width: min(100%, 36rem);
  }
}

@media (max-width: 959px) {
  .hero-visual {
    order: -1;
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-visual-frame {
    border-radius: 1rem;
    animation: none;
  }

  .hero-img {
    aspect-ratio: 16 / 11;
    max-height: min(42vh, 22rem);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-visual-frame,
  .hero-visual-shine,
  .hero-img {
    animation: none !important;
    transition: none !important;
  }

  .hero-visual:hover .hero-visual-frame,
  .hero-visual:hover .hero-img {
    transform: none;
  }
}

.hero-brand {
  font-family: var(--font);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .92;
  margin: 0 0 1.35rem;
}

.hero-brand .x {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  font-style: normal;
  position: relative;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 34rem;
  margin: 0;
  text-align: justify !important;
  text-justify: inter-word;
  text-align-last: left;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-copy p,
.hero-lead {
  margin-top: 1.1rem;
  color: rgba(232, 238, 245, 0.68);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  max-width: 34rem;
  line-height: 1.7;
  text-align: justify !important;
  text-justify: inter-word;
  text-align-last: left;
  hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.hero-actions .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}

.hero-reveal>* {
  animation: rise .85s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-reveal>*:nth-child(1) {
  animation-delay: .05s;
}

.hero-reveal>*:nth-child(2) {
  animation-delay: .15s;
}

.hero-reveal>*:nth-child(3) {
  animation-delay: .25s;
}

.hero-reveal>*:nth-child(4) {
  animation-delay: .35s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal>* {
    animation: none;
  }
}

@media (min-width: 768px) and (max-width: 959px) {
  .hero-inner {
    padding-top: calc(4.5rem + 3.5rem);
    padding-bottom: 5rem;
  }
}

/* Stats strip */
.stats-strip {
  position: relative;
  z-index: 0;
  background: var(--ink);
  color: #fff;
  padding: 2.25rem 0;
  border-bottom: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  padding: 0 0 0 1.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  min-width: 0;
}

@media (min-width: 768px) {
  .stat-item {
    padding: 0 1.35rem;
  }

  .stat-item:first-child {
    padding-left: 0;
    border-left: none;
  }
}

.stat-item strong {
  display: block;
  font-family: var(--font);
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  margin: 0;
}

.stat-item span {
  display: block;
  margin-top: .55rem;
  font-size: .72rem;
  color: rgba(232, 238, 245, 0.55);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* ---------- Services ---------- */
.section-services {
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(0, 0, 0, 0.04), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 100%, rgba(0, 0, 0, 0.03), transparent 50%),
    var(--paper);
  padding-top: 5rem;
  padding-bottom: 5.5rem;
}

.services-head {
  display: grid;
  gap: .75rem;
  padding-bottom: 2.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-strong);
}

.section-services .section-title {
  white-space: nowrap;
  font-size: clamp(1.35rem, 2.8vw, 2.55rem);
  max-width: none;
  margin-top: .35rem;
}

.services-lead {
  margin-top: .15rem;
  max-width: 42rem;
  text-align: left;
}

@media (max-width: 720px) {
  .section-services .section-title {
    white-space: normal;
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 0;
  }
}

.service-row {
  --svc-i: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1.25rem 1.4rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: .65rem;
  background: rgba(255, 255, 255, 0.55);
  isolation: isolate;
  transition:
    background .35s ease,
    border-color .35s ease,
    transform .4s cubic-bezier(.22, 1, .36, 1),
    box-shadow .4s ease;
}

@media (min-width: 900px) {
  .service-row {
    padding: 2.15rem 1.75rem 1.85rem;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
  }

  .service-row:nth-child(odd) {
    border-right: 1px solid var(--line-strong);
  }

  .service-row:nth-last-child(1):nth-child(odd) {
    border-right: 0;
    grid-column: 1 / -1;
  }
}

.service-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
  z-index: 2;
}

.service-row:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}

@media (min-width: 900px) {
  .service-row:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), transparent 55%);
  }

  .service-row:nth-child(odd):hover {
    border-right-color: var(--line-strong);
  }
}

.service-row:hover::before {
  transform: scaleY(1);
}

.service-num {
  position: absolute;
  right: .55rem;
  top: .35rem;
  z-index: 0;
  font-family: var(--font);
  font-size: clamp(3.5rem, 8vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.14);
  user-select: none;
  pointer-events: none;
  transition: -webkit-text-stroke-color .35s ease, opacity .35s ease, transform .45s ease;
  opacity: .9;
}

.service-row:hover .service-num {
  -webkit-text-stroke-color: rgba(0, 0, 0, 0.32);
  transform: translate(-4px, -4px);
  opacity: 1;
}

.service-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: .85rem;
}

.service-top {
  display: block;
}

.service-row h3 {
  font-family: var(--font);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin: 0;
  max-width: none;
  transition: color .3s ease;
}

.service-row:hover h3 {
  color: var(--ink);
}

.service-row p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
  max-width: 36rem;
  margin: 0;
}

.service-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
  margin-left: auto;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
  opacity: .8;
  transition: opacity .25s, transform .25s;
}

.service-link span {
  display: inline-block;
  transition: transform .25s ease;
}

.service-row:hover .service-link {
  opacity: 1;
}

.service-row:hover .service-link span {
  transform: translateX(5px);
}

.service-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
  min-width: 0;
  flex: 1;
}

.service-points li {
  position: relative;
  padding-left: 1rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-mid);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .35rem;
  height: .35rem;
  border-radius: 1px;
  background: var(--accent);
  opacity: .75;
}

.chip {
  font-family: var(--font);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  border-bottom-color: var(--line-strong);
  padding: .2rem 0;
  border-radius: 0;
  background: transparent;
}

.chip-accent {
  color: var(--accent-deep);
  border-bottom-color: rgba(0, 0, 0, 0.35);
  font-weight: 600;
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.75rem 0 2rem;
}

.filter-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 4px;
  padding: .5rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: all .2s ease;
}

.filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.filter-btn:hover,
.filter-btn.active:hover {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}

.project-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

.project-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.28);
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0d0d;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.project-media-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.project-tile:hover .project-media:not(.has-gallery) img {
  transform: scale(1.03);
}

/* Multi-image: loop scroll on hover, reset to first image on hover-out */
.project-media.has-gallery {
  --slide-count: 2;
  --gallery-duration: calc(var(--slide-count) * 2.2s);
}

.project-media.has-gallery .project-media-track {
  height: auto;
  transform: translateY(0);
}

.project-media.has-gallery img {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: var(--ink-soft);
  transition: none;
}

.project-tile:hover .project-media.has-gallery .project-media-track {
  animation: project-gallery-loop var(--gallery-duration) linear infinite;
}

@keyframes project-gallery-loop {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-tile:hover .project-media.has-gallery .project-media-track {
    animation: none !important;
  }
}

.project-tile .project-body,
.project-tile>div:not(.project-media) {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tile .pill {
  display: inline-block;
  align-self: flex-start;
  font-size: .65rem;
  font-weight: 700;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-deep);
  background: rgba(0, 0, 0, 0.05);
  padding: .25rem .65rem;
  border-radius: .35rem;
  margin-bottom: .65rem;
}

.project-tile h3 {
  font-family: var(--font);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  line-height: 1.35;
  color: var(--ink);
}

.project-tile p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.project-result {
  margin-top: auto;
  padding-top: .85rem;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.project-card-actions {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
  text-decoration: none;
}

.btn-read-more:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-read-more svg {
  transition: transform 0.25s ease;
}

.btn-read-more:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Project Quick View Modal
   ========================================================================== */
.project-qv-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.project-qv-root.is-open {
  opacity: 1;
  visibility: visible;
}

.project-qv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
}

.project-qv-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line-strong, #e2e8f0);
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-qv-root.is-open .project-qv-card {
  transform: scale(1) translateY(0);
}

.project-qv-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line, #e2e8f0);
  color: var(--ink, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-qv-close:hover {
  background: var(--ink, #0f172a);
  color: #ffffff;
  transform: rotate(90deg);
}

.project-qv-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .project-qv-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.project-qv-media {
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-top-left-radius: 1.25rem;
  border-bottom-left-radius: 1.25rem;
}

@media (max-width: 767px) {
  .project-qv-media {
    border-bottom-left-radius: 0;
    border-top-right-radius: 1.25rem;
  }
}

.project-qv-media img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.project-qv-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  max-height: 480px;
  overflow-y: auto;
}

.project-qv-gallery img {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #161616;
}

.project-qv-info {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-qv-info .pill {
  align-self: flex-start;
}

.project-qv-title {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.project-qv-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.project-qv-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft, #334155);
  margin: 0;
  white-space: pre-line;
  text-align: justify;
}

.project-qv-result {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border-left: 3px solid var(--accent-deep, #10b981);
  margin: 0;
}

/* Legacy card (projects page / fallback) */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: .25s;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.card p {
  color: var(--muted);
  font-size: .9rem;
  text-align: justify;
}

.pill {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-deep);
  margin-bottom: .5rem;
}

.project-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ink-soft);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ---------- About ---------- */
.feature-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent);
}

.feature h3 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .55rem;
}

.feature p {
  color: rgba(232, 238, 245, 0.68);
  font-size: .9rem;
  line-height: 1.65;
}

/* ---------- Testimonials ---------- */
.reviews-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.reviews-head-copy {
  min-width: 0;
  width: 100%;
}

.reviews-give-btn {
  flex-shrink: 0;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.reviews-give-btn:hover,
.reviews-give-btn:active,
.reviews-give-btn:focus-visible {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.reviews-give-note {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}

.reviews-empty {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .95rem;
}

.review-flash {
  margin-top: 1.25rem;
}

.quote-slider {
  margin-top: 2.5rem;
  --quote-gap: 1rem;
  --quote-visible: 1;
}

@media (min-width: 700px) {
  .quote-slider {
    --quote-visible: 2;
    --quote-gap: 1rem;
  }
}

@media (min-width: 900px) {
  .quote-slider {
    --quote-visible: 3;
    --quote-gap: 1.15rem;
  }
}

.quote-slider-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  container-type: inline-size;
  container-name: quote-slider;
}

.quote-slider-track {
  display: flex;
  align-items: stretch;
  gap: var(--quote-gap);
  will-change: transform;
  transition: transform .75s cubic-bezier(.22, 1, .36, 1);
}

.quote-slider.is-instant .quote-slider-track {
  transition: none;
}

.quote-slider .quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-sizing: border-box;
  flex: 0 0 calc((100cqw - (var(--quote-visible) - 1) * var(--quote-gap)) / var(--quote-visible));
  width: calc((100cqw - (var(--quote-visible) - 1) * var(--quote-gap)) / var(--quote-visible));
  max-width: calc((100cqw - (var(--quote-visible) - 1) * var(--quote-gap)) / var(--quote-visible));
  min-width: 0;
  min-height: 100%;
  padding: 1.35rem 1.25rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: .75rem;
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color .35s ease,
    transform .4s cubic-bezier(.22, 1, .36, 1),
    box-shadow .4s ease,
    opacity .55s ease;
}

/* Fallback when container queries unsupported */
@supports not (container-type: inline-size) {
  .quote-slider .quote {
    flex: 0 0 calc((100% - (var(--quote-visible) - 1) * var(--quote-gap)) / var(--quote-visible));
    width: calc((100% - (var(--quote-visible) - 1) * var(--quote-gap)) / var(--quote-visible));
    max-width: calc((100% - (var(--quote-visible) - 1) * var(--quote-gap)) / var(--quote-visible));
  }
}

.quote-slider .quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
  z-index: 1;
}

.quote-slider .quote:hover {
  border-color: rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.quote-slider .quote:hover::before {
  transform: scaleY(1);
}

.quote-slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.35rem;
}

.quote-slider-dots[hidden] {
  display: none !important;
}

.quote-dot {
  width: .55rem;
  height: .55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.quote-dot:hover {
  background: rgba(0, 0, 0, 0.4);
}

.quote-dot.is-active {
  background: var(--ink);
  transform: scale(1.15);
}

.quote-stars {
  display: flex;
  align-items: center;
  gap: .22rem;
}

.quote-star {
  position: relative;
  display: inline-flex;
  line-height: 0;
}

.quote-star svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.quote-star path {
  fill: #efe6c8;
  stroke: #d4b84a;
  stroke-width: 1.15;
  stroke-linejoin: round;
}

.quote-star.is-filled path {
  fill: #f5c518;
  stroke: #c9970c;
  filter: drop-shadow(0 1px 1.5px rgba(170, 110, 0, .3));
}

.quote-star.is-half>svg:first-child path {
  fill: #efe6c8;
  stroke: #d4b84a;
  filter: none;
}

.quote-star-half {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
  pointer-events: none;
}

.quote-star-half path {
  fill: #f5c518 !important;
  stroke: #c9970c !important;
  filter: drop-shadow(0 1px 1.5px rgba(170, 110, 0, .3));
}

.quote blockquote {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -.015em;
  line-height: 1.65;
  color: var(--ink-soft);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  word-break: break-all;
}

.quote-person {
  display: flex;
  gap: .85rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}

.quote-person img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  box-shadow: none;
}

.quote-person-initials {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0;
  background: var(--ink);
  color: #fff !important;
  font-size: .72rem !important;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1 !important;
  text-align: center;
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.quote-person>div {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.quote-person strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.quote-person>div span {
  display: block;
  margin-top: .15rem;
  font-size: .74rem;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .quote-slider-track {
    transition: none;
  }

  .quote-slider .quote,
  .quote-slider .quote::before {
    transition: none;
  }

  .quote-slider .quote:hover {
    transform: none;
  }
}

/* ---------- Our Team marquee (RTL) ---------- */
.team-section {
  overflow-x: clip;
  overflow-y: visible;
  padding-bottom: 3.5rem;
}

.team-section-head {
  margin-bottom: 2rem;
}

.team-marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  /* Soft left fade (like the right) so clipped faces don't look broken */
  mask-image: linear-gradient(90deg,
      transparent 0,
      #000 1.75rem,
      #000 calc(100% - 3.25rem),
      transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
      transparent 0,
      #000 1.75rem,
      #000 calc(100% - 3.25rem),
      transparent 100%);
}

.team-marquee-track {
  display: flex;
  width: max-content;
  max-width: none;
  gap: 2.5rem;
  padding: .25rem 0;
  margin: 0;
  animation: team-marquee-rtl 50s linear infinite;
  will-change: transform;
}

.team-marquee:hover .team-marquee-track {
  animation-play-state: paused;
}

@keyframes team-marquee-rtl {

  /* Hold on the first card so the left edge looks clean on load */
  0%,
  8% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.team-card {
  flex: 0 0 auto;
  width: 10.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}

.team-card img,
.team-card-initials {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
}

.team-card-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: var(--font-display, var(--font));
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink, #0a0a0a);
  background: linear-gradient(145deg, #f3f3f3, #e4e4e4);
  text-align: center;
}

.team-card strong {
  display: block;
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.team-card>span:not(.team-card-initials) {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .team-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: .25rem 0;
    justify-content: flex-start;
    gap: 1.75rem 2rem;
  }

  .team-marquee-track .team-card[aria-hidden="true"] {
    display: none;
  }

  .team-marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .team-marquee {
    mask-image: linear-gradient(90deg,
        transparent 0,
        #000 1.25rem,
        #000 calc(100% - 2.25rem),
        transparent 100%);
    -webkit-mask-image: linear-gradient(90deg,
        transparent 0,
        #000 1.25rem,
        #000 calc(100% - 2.25rem),
        transparent 100%);
  }

  .team-marquee-track {
    gap: 1.75rem;
    padding: .25rem 0;
    animation-duration: 36s;
  }

  .team-card {
    width: 8.5rem;
  }

  .team-card img,
  .team-card-initials {
    width: 6rem;
    height: 6rem;
    font-size: 1.25rem;
  }
}

/* ---------- Booking / Contact ---------- */
.booking-wrap {
  display: grid;
  gap: 3rem;
}

@media (min-width: 960px) {
  .booking-wrap {
    grid-template-columns: .9fr 1.1fr;
    align-items: start;
  }
}

#contact .section-title {
  white-space: nowrap;
  text-wrap: nowrap;
  font-size: clamp(1.35rem, 2.6vw, 2.45rem);
}

@media (max-width: 420px) {
  #contact .section-title {
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }
}

.contact-list {
  margin-top: 1.75rem;
  display: grid;
  gap: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin: 0;
  line-height: 1.4;
}

.contact-value,
.contact-row a,
.contact-row strong {
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
  min-width: 0;
  word-break: break-word;
}

.contact-row a:hover {
  color: var(--accent-deep);
}

@media (max-width: 520px) {
  .contact-row {
    grid-template-columns: 1fr;
    row-gap: .35rem;
    padding: .95rem 0;
  }
}

.invoice-track {
  margin-top: 2rem;
  padding-top: 0;
  border-top: 0;
}

.invoice-track-panel {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: .9rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 247, 247, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(0, 0, 0, 0.06);
}

.invoice-track-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0a0a0a 0%, #3a3a3a 55%, transparent 100%);
}

.invoice-track-head {
  margin-bottom: 1.1rem;
}

.invoice-track-head .eyebrow {
  display: inline-block;
  margin-bottom: .4rem;
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.invoice-track-head h3 {
  margin: 0 0 .35rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
}

.invoice-track-head p {
  margin: 0;
  max-width: 28rem;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}

.invoice-track-form {
  margin: 0;
}

.invoice-track-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 3.15rem;
  border: 1px solid var(--line-strong);
  border-radius: .65rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.invoice-track-row:focus-within {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.invoice-track-prefix {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.4rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted-soft);
  background: rgba(0, 0, 0, 0.025);
  border-right: 1px solid var(--line);
}

.invoice-track-row input {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: .85rem .85rem !important;
  font-size: .88rem !important;
  font-weight: 550;
  letter-spacing: .03em;
  color: var(--ink);
}

.invoice-track-row input::placeholder {
  color: #b0b0b0;
  font-weight: 450;
  letter-spacing: .02em;
}

.invoice-track-row input:focus {
  outline: none;
}

.invoice-track-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-shrink: 0;
  min-width: 6.4rem;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 1.05rem !important;
  background: var(--ink) !important;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .02em;
  transform: none !important;
  transition: background .2s ease;
}

.invoice-track-btn:hover {
  background: #1a1a1a !important;
  transform: none !important;
}

.invoice-track-btn:active {
  background: #000 !important;
  transform: none !important;
}

.invoice-track-btn svg {
  flex-shrink: 0;
  opacity: .9;
}

.invoice-track-result {
  margin-top: 1rem;
  padding: 1.05rem 1.05rem 1.1rem;
  border-radius: .7rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .9rem;
  animation: invoice-track-in .35s ease both;
}

@keyframes invoice-track-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.invoice-track-result.is-error {
  background: #fff8f8;
  border-color: #fecdd3;
  color: var(--danger);
  font-weight: 600;
}

.invoice-track-result.is-ok {
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.invoice-track-status {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .98rem;
  margin-bottom: .9rem;
  letter-spacing: -.015em;
  color: var(--ink);
}

.invoice-track-status-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.1);
  flex-shrink: 0;
}

.invoice-track-meta {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.invoice-track-meta>div {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: .55rem;
  align-items: baseline;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

.invoice-track-meta>div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.invoice-track-meta dt {
  margin: 0;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.invoice-track-meta dd {
  margin: 0;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  word-break: break-word;
}

@media (max-width: 520px) {
  .invoice-track-panel {
    padding: 1.15rem 1rem 1.1rem;
    border-radius: .75rem;
  }

  .invoice-track-row {
    flex-wrap: wrap;
    min-height: 0;
  }

  .invoice-track-prefix {
    width: 2.25rem;
  }

  .invoice-track-row input {
    width: calc(100% - 2.25rem);
    flex: 1 1 auto;
  }

  .invoice-track-btn {
    width: 100%;
    min-height: 2.85rem;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .invoice-track-meta>div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invoice-track-result {
    animation: none;
  }
}

.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;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + .15rem);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .form-card {
    padding: 2.25rem;
  }
}

.form-card h3 {
  font-family: var(--font);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .35rem;
}

.form-card>.form-intro {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.phone-field {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: .55rem;
}

.phone-field .phone-code {
  padding-left: .7rem;
  padding-right: .5rem;
}

.form-card .field-hint {
  display: block;
  margin-top: .4rem;
  font-size: .68rem;
  color: var(--muted-soft);
  letter-spacing: .02em;
  text-transform: none;
  font-family: var(--font);
}

label {
  display: block;
  font-size: .65rem;
  font-weight: 600;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-soft);
  margin-bottom: .45rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: var(--radius);
  padding: .95rem 1rem;
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.pkg-grid {
  display: grid;
  gap: .65rem;
}

@media (min-width: 640px) {
  .pkg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pkg {
  text-align: left;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: .2s;
}

.pkg:hover {
  border-color: var(--accent);
}

.pkg.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.pkg strong {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
}

.pkg small {
  display: block;
  margin-top: .3rem;
  opacity: .7;
  font-size: .72rem;
  line-height: 1.4;
}

.pkg .pkg-price {
  margin-top: .65rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .85rem;
  color: var(--accent-deep);
}

.pkg.active .pkg-price {
  color: #fff;
}

.amount-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin: 1.25rem 0;
}

.amount-bar .amount-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.amount-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  max-width: 12rem;
}

.amount-currency {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.amount-input {
  width: 100%;
  min-width: 6.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 600;
  padding: .55rem .7rem !important;
  box-shadow: none !important;
  appearance: textfield;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input:focus {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

.amount-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.booking-form-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1.15rem;
}

.booking-continue-btn {
  min-width: 10.5rem;
  min-height: 3.05rem;
  padding: 0 1.25rem !important;
  font-size: .88rem !important;
  font-weight: 650 !important;
  letter-spacing: .01em;
  gap: .45rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.booking-continue-btn svg {
  flex-shrink: 0;
  transition: transform .2s ease;
}

.booking-continue-btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 520px) {
  .booking-form-foot {
    margin-top: 1rem;
  }

  .booking-continue-btn {
    width: 100%;
    min-width: 0;
  }
}

.alert {
  padding: .9rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: var(--danger);
}

.alert-ok {
  background: #f3f3f3;
  border: 1px solid #d4d4d4;
  color: var(--ok);
}

/* Invoice — premium TeamX (ink / paper) */
.invoice {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + .2rem);
  padding: 0;
  background: #fff;
  box-shadow: 0 22px 48px rgba(10, 10, 10, 0.07);
}

.invoice-watermark {
  position: absolute;
  right: -0.4rem;
  bottom: -1.2rem;
  font-family: var(--font);
  font-size: 11rem;
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1;
  color: rgba(10, 10, 10, 0.035);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.invoice-banner,
.invoice-meta,
.invoice-grid,
.invoice-table,
.invoice-total,
.invoice-footer {
  position: relative;
  z-index: 1;
}

.invoice-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    #0a0a0a;
  color: #fff;
}

.invoice-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.invoice-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: .55rem;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.invoice-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .55rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
  color: #0a0a0a;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.04em;
}

.invoice-agency {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: #fff;
}

.invoice-agency .x {
  color: #fff;
  opacity: .92;
}

.invoice-banner .invoice-meta-line {
  margin: .28rem 0 0;
  font-size: .72rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

.invoice-id-block {
  text-align: right;
  display: grid;
  justify-items: end;
  gap: .2rem;
}

.invoice-kicker {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.invoice-number {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  word-break: break-all;
}

.invoice-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

@media (min-width: 520px) {
  .invoice-meta {
    grid-template-columns: auto auto 1fr;
    align-items: end;
    gap: 1.25rem;
  }
}

.invoice-meta-item {
  display: grid;
  gap: .3rem;
}

.invoice-meta-amount {
  justify-items: start;
}

@media (min-width: 520px) {
  .invoice-meta-amount {
    justify-items: end;
    text-align: right;
  }
}

.invoice-due {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}

.invoice-due small {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  margin-left: .15rem;
}

.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  max-width: 100%;
  padding: .32rem .65rem .32rem .5rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  line-height: 1.2;
}

.invoice-status-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #888;
  flex-shrink: 0;
}

.invoice-status.is-paid {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
}

.invoice-status.is-paid .invoice-status-dot {
  background: #fff;
}

.invoice-status.is-pending .invoice-status-dot {
  background: #0a0a0a;
}

.invoice-status.is-failed {
  border-color: #c4c4c4;
  color: #555;
}

.invoice-grid {
  display: grid;
  gap: 0;
  padding: 0 1.35rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 560px) {
  .invoice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.invoice-panel {
  padding: 1.1rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

@media (min-width: 560px) {
  .invoice-panel:first-child {
    padding-right: 1.15rem;
    border-right: 1px solid var(--line);
  }

  .invoice-panel:last-child {
    padding-left: 1.15rem;
  }
}

.invoice-label {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.invoice-panel strong {
  display: block;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .28rem;
}

.invoice-panel p {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}

.invoice-ref {
  margin-top: .4rem !important;
  font-size: .72rem !important;
}

.invoice-table {
  width: calc(100% - 2.7rem);
  margin: 0 1.35rem;
  border-collapse: collapse;
  font-size: .9rem;
}

.invoice-table th,
.invoice-table td {
  padding: .95rem .15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.invoice-table th {
  font-size: .58rem;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}

.invoice-table td strong {
  display: block;
  font-size: .92rem;
  color: var(--ink);
}

.invoice-brief {
  display: block;
  margin-top: .28rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
}

.invoice-col-qty {
  text-align: center !important;
  width: 3.2rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.invoice-col-amount {
  text-align: right !important;
  white-space: nowrap;
  font-weight: 700;
  width: 6.5rem;
}

.invoice-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.15rem 1.35rem 0;
  padding: 1rem 1.1rem;
  border-radius: .85rem;
  background: #0a0a0a;
  color: #fff;
}

.invoice-total-copy .invoice-label {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: .25rem;
}

.invoice-total-copy p {
  margin: 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.invoice-total-figure {
  text-align: right;
  flex-shrink: 0;
}

.invoice-total-figure span {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}

.invoice-total-figure small {
  display: block;
  margin-top: .3rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.invoice-footer {
  margin: 0;
  padding: 1rem 1.35rem 1.25rem;
}

.invoice-footer p {
  margin: 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
}

.invoice-support {
  margin-top: .2rem !important;
  font-size: .72rem !important;
}

@media (max-width: 519px) {
  .invoice-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-id-block {
    text-align: left;
    justify-items: start;
  }

  .invoice-total {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-total-figure {
    text-align: left;
  }
}

/* Page hero (projects) */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 90% 0%, rgba(255, 255, 255, 0.08), transparent 50%),
    var(--ink);
  color: #fff;
  padding: 3.5rem 0 3rem;
}

.page-hero a {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.page-hero a:hover {
  color: #fff;
}

.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-top: 1rem;
}

.page-hero p {
  margin-top: .75rem;
  color: rgba(232, 238, 245, 0.65);
  max-width: 32rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.filter-bar input,
.filter-bar select {
  max-width: 16rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.filter-bar input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.filter-bar select option {
  color: var(--ink);
  background: #fff;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Footer */
.site-footer {
  background: #050505;
  color: rgba(255, 255, 255, 0.55);
  padding: 3.5rem 0 1.75rem;
}

.site-footer strong {
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-brand {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-brand .x {
  color: var(--accent-on-dark);
}

.footer-desc {
  text-align: justify;
  max-width: 28rem;
  line-height: 1.65;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: .75rem;
  font-size: .8rem;
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}

.scroll-top-btn:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:hover svg {
  transform: translateY(-2px);
}

/* Floating WhatsApp button */
.whatsapp-btn {
  position: fixed;
  bottom: 5.4rem;
  right: 2rem;
  z-index: 999;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.25s ease;
}

.whatsapp-btn svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn:hover svg {
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .scroll-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .whatsapp-btn {
    bottom: 4.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .whatsapp-btn svg {
    width: 1.3rem;
    height: 1.3rem;
  }
}

.hidden {
  display: none !important;
}

.mt-1 {
  margin-top: .5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.text-center {
  text-align: center;
}

.mono {
  font-family: var(--mono);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-black,
.btn-accent,
.btn-outline,
.btn-outline-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transition: all .25s ease;
}

.btn-black:hover,
.btn-accent:hover,
.btn-outline:hover,
.btn-outline-dark:hover {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  min-height: 2.25rem;
  padding: .45rem .75rem;
  font-size: .8rem;
  border-radius: .45rem;
}

/* Payment QR quick view */
.pay-qv[hidden] {
  display: none !important;
}

.pay-qv {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pay-qv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(2px);
}

.pay-qv-card {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 1.1rem;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  animation: payQvIn .28s ease both;
}

@keyframes payQvIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.pay-qv-close {
  position: absolute;
  top: .7rem;
  right: .75rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.pay-qv-close:hover {
  color: var(--ink);
  background: #ebebeb;
}

.pay-qv-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.pay-qv-card h3 {
  margin: .3rem 0 .35rem;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.pay-qv-lead {
  margin: 0 0 1rem;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.45;
}

.pay-qv-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
  padding: .95rem 1rem;
  border-radius: .9rem;
  background: #0a0a0a;
  color: #fff;
}

.pay-qv-hero-compact {
  padding: .8rem .95rem;
  margin-bottom: 1rem;
}

.pay-qv-hero-method,
.pay-qv-hero-amount {
  min-width: 0;
}

.pay-qv-hero-amount {
  text-align: right;
}

.pay-qv-hero span {
  display: block;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: .3rem;
  font-weight: 600;
}

.pay-qv-hero strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-qv-hero-amount strong {
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.pay-qv-bank {
  margin-bottom: .85rem;
  border: 1px solid #e8e8e8;
  border-radius: .9rem;
  background: #fafafa;
  overflow: hidden;
}

.pay-qv-bank-head {
  padding: .55rem .9rem;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid #ececec;
  background: #f4f4f4;
}

.pay-qv-dl {
  margin: 0;
  padding: .15rem 0;
}

.pay-qv-dl>div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .9rem;
  border-bottom: 1px solid #efefef;
}

.pay-qv-dl>div:last-child {
  border-bottom: 0;
}

.pay-qv-dl dt {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pay-qv-dl dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.pay-qv-bank[hidden] {
  display: none !important;
}

.pay-qv-qr-wrap {
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.9), transparent 55%),
    #f0f0f0;
  border: 1px solid #e5e5e5;
  border-radius: .9rem;
  margin-bottom: .85rem;
}

.pay-qv-qr {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  background: #fff;
  border-radius: .75rem;
  padding: .55rem;
  box-sizing: border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid #ececec;
}

.pay-qv-qr-wrap[hidden] {
  display: none !important;
}

.pay-qv-qr canvas,
.pay-qv-qr img {
  display: block;
  width: 148px !important;
  height: 148px !important;
  max-width: 100%;
}

.pay-qv-missing {
  margin: 0;
  font-size: .88rem;
  color: var(--danger);
  text-align: center;
  padding: .5rem;
}

.pay-qv-number {
  margin-bottom: .15rem;
}

.pay-qv-number span {
  display: block;
  font-family: var(--mono);
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .4rem;
  font-weight: 600;
}

.pay-qv-number-row {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.pay-qv-number-row code {
  flex: 1;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  background: #f6f6f6;
  border: 1px solid #e5e5e5;
  border-radius: .7rem;
  padding: .7rem .8rem;
  overflow-wrap: anywhere;
}

.pay-qv-actions {
  display: flex;
  gap: .65rem;
  margin-top: 1.1rem;
  align-items: stretch;
}

.pay-qv-actions .btn {
  flex: 1;
}

.pay-qv-steps {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 2rem .95rem 0;
}

.pay-qv-step {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid #d4d4d4;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
}

.pay-qv-step.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pay-qv-step.is-done {
  background: #111;
  border-color: #111;
  color: #fff;
  opacity: .55;
}

.pay-qv-step-line {
  flex: 1;
  height: 2px;
  border-radius: 99px;
  background: #ececec;
}

.pay-qv-cta {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .12rem;
  min-height: 3.15rem;
  line-height: 1.15;
  text-align: left;
  white-space: normal;
  padding: .7rem 1rem !important;
}

.pay-qv-cta-main {
  font-weight: 700;
  font-size: .95rem;
}

.pay-qv-cta-sub {
  font-size: .72rem;
  font-weight: 500;
  opacity: .72;
}

.pay-qv-txn-label {
  display: block;
  margin: .25rem 0 .45rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pay-qv-txn-row {
  margin-bottom: .55rem;
}

.pay-qv-txn-input {
  width: 100%;
  text-align: center;
  font-size: 1.65rem !important;
  font-weight: 700;
  letter-spacing: .35em;
  padding: .9rem .75rem !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 10px !important;
  background: #fafafa !important;
}

.pay-qv-txn-input:focus {
  border-color: #111 !important;
  background: #fff !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.pay-qv-txn-hint {
  margin: 0 0 .35rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}

.pay-qv-txn-error {
  margin: 0 0 .25rem;
  font-size: .85rem;
  color: var(--danger);
  font-weight: 600;
}

.pay-qv-txn-error[hidden] {
  display: none !important;
}

#payQvStepTxn[hidden],
#payQvStepPay[hidden] {
  display: none !important;
}

/* Public Give Review quick view */
.review-qv[hidden] {
  display: none !important;
}

.review-qv {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.review-qv-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.review-qv-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: hidden;
  padding: 0;
  border-radius: .85rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.review-qv-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.review-qv-error {
  flex-shrink: 0;
  margin: 0;
  padding: .75rem 1.15rem;
  border-bottom: 1px solid rgba(185, 28, 28, 0.2);
  background: #fef2f2;
  color: #991b1b;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
}

.review-qv-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: .45rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.review-qv-close:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.review-qv-eyebrow {
  margin: 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.review-qv-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.review-qv-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1.25rem 1.25rem;
  display: grid;
  gap: .85rem;
}

.review-qv-body h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.review-qv-lead {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.review-qv-foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: flex-end;
  padding: .9rem 1.15rem;
  padding-bottom: max(.9rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.review-qv-form label,
.review-qv-label {
  display: block;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}

.review-qv-form input,
.review-qv-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: .5rem;
  background: #fff;
  color: var(--ink);
  padding: .7rem .8rem;
}

.review-qv-form input:focus,
.review-qv-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.review-qv-grid {
  display: grid;
  gap: .85rem;
}

@media (min-width: 560px) {
  .review-qv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.review-qv-rating {
  padding: .85rem .9rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--paper);
  text-align: center;
}

.public-star-rating {
  display: flex;
  justify-content: center;
  gap: .15rem;
  margin: .15rem 0 .25rem;
}

.public-star-rating .star {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.18);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease;
}

.public-star-rating .star .star-glyph {
  display: block;
  background: linear-gradient(90deg, currentColor 0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-star-rating .star.is-full {
  color: #f5c518;
}

.public-star-rating .star.is-half .star-glyph {
  background: linear-gradient(90deg, #f5c518 0 50%, rgba(0, 0, 0, 0.18) 50% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-star-rating .star.is-pop {
  animation: star-pop .42s cubic-bezier(.22, 1.4, .36, 1);
}

@keyframes star-pop {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.32) rotate(-6deg);
  }

  65% {
    transform: scale(0.94) rotate(3deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.review-qv-rating .star-value {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
}

.review-qv-form .field-meta {
  margin-top: .3rem;
  text-align: right;
  font-size: .72rem;
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.review-qv-open {
  overflow: hidden;
}

/* Fallback when popup is blocked: keep only invoice ancestors + invoice (1 page) */
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  html,
  body {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.print-invoice-only *:not(:has(#teamx-invoice)):not(#teamx-invoice) {
    display: none !important;
  }

  body.print-invoice-only main,
  body.print-invoice-only #contact,
  body.print-invoice-only .booking-wrap,
  body.print-invoice-only .form-card,
  body.print-invoice-only #teamx-invoice {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.print-invoice-only #teamx-invoice {
    padding: 0 !important;
    border: 1.5px solid #0a0a0a !important;
    background: #fff !important;
    color: #0a0a0a !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.print-invoice-only #teamx-invoice .invoice-banner {
    background: #fff !important;
    color: #0a0a0a !important;
    border-bottom: 3px solid #0a0a0a !important;
  }

  body.print-invoice-only #teamx-invoice .invoice-agency,
  body.print-invoice-only #teamx-invoice .invoice-agency .x,
  body.print-invoice-only #teamx-invoice .invoice-number,
  body.print-invoice-only #teamx-invoice .invoice-kicker,
  body.print-invoice-only #teamx-invoice .invoice-meta-line {
    color: #0a0a0a !important;
  }

  body.print-invoice-only #teamx-invoice .invoice-kicker,
  body.print-invoice-only #teamx-invoice .invoice-meta-line {
    color: #444 !important;
  }

  body.print-invoice-only #teamx-invoice .invoice-total {
    background: #fff !important;
    color: #0a0a0a !important;
    border: 2px solid #0a0a0a !important;
  }

  body.print-invoice-only #teamx-invoice .invoice-total-figure span,
  body.print-invoice-only #teamx-invoice .invoice-total-copy .invoice-label,
  body.print-invoice-only #teamx-invoice .invoice-total-copy p,
  body.print-invoice-only #teamx-invoice .invoice-total-figure small {
    color: #0a0a0a !important;
  }

  body.print-invoice-only #teamx-invoice .invoice-total-copy .invoice-label,
  body.print-invoice-only #teamx-invoice .invoice-total-figure small {
    color: #444 !important;
  }

  body.print-invoice-only #teamx-invoice .invoice-banner,
  body.print-invoice-only #teamx-invoice .invoice-brand,
  body.print-invoice-only #teamx-invoice .invoice-id-block,
  body.print-invoice-only #teamx-invoice .invoice-total {
    display: flex !important;
  }

  body.print-invoice-only #teamx-invoice .invoice-meta,
  body.print-invoice-only #teamx-invoice .invoice-grid {
    display: flex !important;
  }

  body.print-invoice-only #teamx-invoice .invoice-table {
    display: table !important;
    width: calc(100% - 32px) !important;
  }

  body.print-invoice-only #teamx-invoice thead {
    display: table-header-group !important;
  }

  body.print-invoice-only #teamx-invoice tbody {
    display: table-row-group !important;
  }

  body.print-invoice-only #teamx-invoice tr {
    display: table-row !important;
  }

  body.print-invoice-only #teamx-invoice th,
  body.print-invoice-only #teamx-invoice td {
    display: table-cell !important;
  }

  body.print-invoice-only #teamx-invoice p,
  body.print-invoice-only #teamx-invoice div,
  body.print-invoice-only #teamx-invoice strong,
  body.print-invoice-only #teamx-invoice small,
  body.print-invoice-only #teamx-invoice span,
  body.print-invoice-only #teamx-invoice br {
    display: revert !important;
  }
}

/* =========================================================
   TeamX phone left drawer (must stay at end of stylesheet)
   ========================================================= */
.tx-drawer-root[hidden] {
  display: none !important;
}

@media (max-width: 959px) {
  .tx-drawer-root {
    position: fixed;
    inset: 0;
    z-index: 100000;
  }

  .tx-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    transition: opacity .28s ease;
    cursor: pointer;
  }

  body.is-menu-open .tx-drawer-backdrop {
    opacity: 1;
  }

  .tx-drawer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(19.5rem, 86vw);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
      #0a0a0a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(-105%);
    -webkit-transform: translateX(-105%);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1);
    -webkit-transition: -webkit-transform .34s cubic-bezier(.22, 1, .36, 1);
    overflow: hidden;
  }

  .tx-drawer.is-open {
    transform: translateX(0) !important;
    -webkit-transform: translateX(0) !important;
  }

  .tx-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.4rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .tx-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    text-decoration: none;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.02em;
    color: #fff;
    line-height: 1;
  }

  .tx-drawer-logo {
    display: block;
    width: 2.15rem;
    height: 2.15rem;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: .35rem;
    background: #fff;
  }

  .tx-drawer-mark {
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
    border-radius: .35rem;
    background: #fff;
    color: #0a0a0a;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 700;
  }

  .tx-drawer-brand-text {
    min-width: 0;
    white-space: nowrap;
  }

  .tx-drawer-brand .x {
    color: #fff;
  }

  .tx-drawer-close {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition:
      background .2s ease,
      border-color .2s ease,
      color .2s ease,
      transform .2s ease;
  }

  .tx-drawer-close svg {
    display: block;
  }

  .tx-drawer-close:hover,
  .tx-drawer-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
    outline: none;
  }

  .tx-drawer-close:active {
    transform: scale(0.94);
  }

  .tx-drawer-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
    padding: 1rem 1.1rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tx-drawer-panel a {
    position: relative;
    display: block;
    padding: 1rem 0.3rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1.28rem;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color .2s ease, padding-left .2s ease;
  }

  .tx-drawer-panel a:last-child {
    border-bottom: 0;
  }

  .tx-drawer-panel a:active,
  .tx-drawer-panel a:hover {
    color: #fff;
    padding-left: .45rem;
  }

  .tx-drawer-panel a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transform: translateY(-50%);
    transition: width .2s ease;
  }

  .tx-drawer-panel a:hover::before,
  .tx-drawer-panel a:active::before {
    width: .2rem;
  }

  /* Stagger links when drawer opens */
  .tx-drawer-panel a {
    opacity: 0;
    transform: translateX(-12px);
    transition:
      color .2s ease,
      padding-left .2s ease,
      opacity .35s ease,
      transform .35s cubic-bezier(.22, 1, .36, 1);
  }

  .tx-drawer.is-open .tx-drawer-panel a {
    opacity: 1;
    transform: translateX(0);
  }

  .tx-drawer.is-open .tx-drawer-panel a:nth-child(1) {
    transition-delay: .06s;
  }

  .tx-drawer.is-open .tx-drawer-panel a:nth-child(2) {
    transition-delay: .1s;
  }

  .tx-drawer.is-open .tx-drawer-panel a:nth-child(3) {
    transition-delay: .14s;
  }

  .tx-drawer.is-open .tx-drawer-panel a:nth-child(4) {
    transition-delay: .18s;
  }

  .tx-drawer.is-open .tx-drawer-panel a:nth-child(5) {
    transition-delay: .22s;
  }

  .tx-drawer-foot {
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  }

  .tx-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.1rem;
    padding: .85rem 1.2rem;
    border-radius: var(--radius);
    background: #fff;
    color: #0a0a0a;
    font-family: var(--font);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .02em;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
  }

  .tx-drawer-cta:active {
    transform: scale(.98);
    background: #eaeaea;
  }

  .tx-drawer.is-open .tx-drawer-cta {
    animation: txDrawerCtaIn .45s cubic-bezier(.22, 1, .36, 1) .28s both;
  }

  @keyframes txDrawerCtaIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-header .menu-btn {
    position: relative;
    z-index: 100001;
    transition: opacity .2s ease;
  }
}

@media (min-width: 960px) {
  .tx-drawer-root {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .tx-drawer,
  .tx-drawer-backdrop,
  .tx-drawer-panel a,
  .tx-drawer-cta {
    transition: none !important;
    animation: none !important;
  }

  .tx-drawer-panel a {
    opacity: 1;
    transform: none;
  }
}