/*
 * enoughX card language
 *
 * The card system deliberately keeps the page surface and navigation out of
 * scope. It provides three independent pieces that can be mixed per card:
 *   1. layout (ex-bento and the family grids),
 *   2. surface (ex-surface--*),
 *   3. shell and motion (ex-card--signature/secondary + ex-motion--*).
 *
 * The old kit's variant number is not part of the production API. Variant 16
 * is intentionally not represented here. All image/glyph URLs are relative to
 * assets/css/, so the stylesheet works from the local XAMPP subdirectory and
 * the production domain root.
 */

:where(.ex-shell,
  .ex-card,
  .ex-bento,
  .ex-service-grid,
  .ex-problem-grid,
  .ex-pricing-grid,
  .ex-project-grid,
  .ex-article-grid,
  .ex-process-grid,
  .ex-testimonial-grid) {
  --ex-ink: var(--text-primary, #f5f5f5);
  --ex-muted: var(--text-secondary, #a3a3a3);
  --ex-bg: var(--surface-primary, #0e0e0e);
  --ex-surface: var(--surface-secondary, #151515);
  --ex-surface-deep: #100c0c;
  --ex-red: var(--surface-brand-secondary, var(--color-primary, #e74c3c));
  --ex-red-deep: var(--surface-brand, #94271b);
  --ex-red-soft: #f58c80;
  --ex-cream: #f1eee8;
  --ex-green: #59ff2f;
  --ex-heading: var(--font-logo, "domine-regular"), Georgia, serif;
  --ex-body: "metropolis-regular", var(--font-default, Arial), sans-serif;
  --ex-semibold: "metropolis-semibold", var(--font-default, Arial), sans-serif;
}

/* -------------------------------------------------------------------------- */
/* Base card                                                                  */
/* -------------------------------------------------------------------------- */

.ex-card {
  --ex-card-radius: 22px;
  --ex-card-pad: clamp(1.25rem, 2.2vw, 2rem);
  --ex-card-border: rgba(245, 140, 128, .22);
  --ex-card-bg: linear-gradient(145deg, rgba(31, 18, 17, .98), rgba(14, 12, 12, .99));
  --ex-card-elevation: 0 22px 58px rgba(0, 0, 0, .28);
  --ex-card-speed: .3s;

  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 16rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--ex-ink);
  border: 1px solid var(--ex-card-border);
  border-radius: var(--ex-card-radius);
  background: var(--ex-card-bg);
  box-shadow: var(--ex-card-elevation);
  transition:
    transform var(--ex-card-speed) cubic-bezier(.2, .72, .2, 1),
    border-color var(--ex-card-speed) ease,
    box-shadow var(--ex-card-speed) cubic-bezier(.2, .72, .2, 1),
    background-color var(--ex-card-speed) ease;
}

.ex-card:is(a, button) {
  text-decoration: none;
}

.ex-card:is(a, button):hover {
  color: var(--ex-ink);
}

.ex-card > :not(.ex-card__visual) {
  position: relative;
  z-index: 2;
}

.ex-card__visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(to bottom, rgba(7, 7, 7, 0) 18%, rgba(7, 7, 7, .1) 46%, rgba(7, 7, 7, .92) 100%),
    var(--ex-card-bg);
}

.ex-card__visual::before,
.ex-card__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.ex-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
  padding: var(--ex-card-pad);
}

.ex-card__content > :first-child {
  margin-top: 0;
}

.ex-card__eyebrow,
.ex-card__tag,
.ex-card__meta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(241, 238, 232, .72);
  font: .68rem/1.35 var(--ex-semibold);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ex-card__title,
.ex-card__content h2,
.ex-card__content h3,
.ex-card__content h4 {
  max-width: 30ch;
  margin: .7rem 0 0;
  color: var(--ex-ink);
  font: normal clamp(1.45rem, 2.35vw, 2.55rem)/1.08 var(--ex-heading);
  letter-spacing: -.025em;
}

.ex-card__text,
.ex-card__content p {
  /* max-width: 58ch; */
  margin: .8rem 0 !important;
  color: rgba(245, 245, 245, .72);
  font: .9rem/1.65 var(--ex-body);
}

.ex-card__link,
.ex-card__content a:not(.ex-btn) {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.25rem;
  color: var(--ex-red-soft);
  font: .7rem/1.4 var(--ex-semibold);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: gap var(--ex-card-speed) ease, color var(--ex-card-speed) ease;
}

.ex-card__link::after,
.ex-card__content a:not(.ex-btn)::after {
  content: "↗";
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--ex-card-speed) ease;
}

.ex-card__link:hover,
.ex-card__content a:not(.ex-btn):hover {
  gap: .8rem;
  color: var(--ex-ink);
}

.ex-card__link:hover::after,
.ex-card__content a:not(.ex-btn):hover::after {
  transform: translate(2px, -2px);
}

.ex-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 1.35rem;
}

.ex-card__visual + .ex-card__content,
.ex-card > .ex-card__content:first-child {
  min-height: 100%;
}

/* -------------------------------------------------------------------------- */
/* Shells and signature motion                                                */
/* -------------------------------------------------------------------------- */

/* 14 and 17 intentionally share this exact resting state. */
.ex-card--signature {
  --ex-card-border: rgba(231, 76, 60, .72);
  --ex-card-bg: linear-gradient(160deg, #1c1010 0%, #0c0a0a 72%);
  --ex-card-elevation: 0 24px 58px rgba(0, 0, 0, .34), 9px 9px 0 rgba(168, 46, 29, .55);
  border-color: var(--ex-card-border);
  background: var(--ex-card-bg);
  box-shadow: var(--ex-card-elevation);
  will-change: transform;
}

.ex-card--signature:is(:hover, :focus-within) {
  border-color: var(--ex-red);
}

.ex-card--signature.ex-motion--press:is(:hover, :focus-within) {
  transform: translate(6px, 6px);
  box-shadow: 0 17px 46px rgba(0, 0, 0, .38), 3px 3px 0 rgba(168, 46, 29, .55);
}

.ex-card--signature.ex-motion--pivot:is(:hover, :focus-within) {
  transform: rotate(-1.15deg) translate(5px, 5px);
  box-shadow: 0 17px 46px rgba(0, 0, 0, .38), 3px 3px 0 rgba(168, 46, 29, .55);
}

/* A missing motion modifier remains a stable signature card. */
.ex-card--secondary {
  --ex-card-border: rgba(241, 238, 232, .68);
  --ex-card-bg: linear-gradient(145deg, #1b1918, #111010 76%);
  --ex-card-elevation: 0 21px 55px rgba(0, 0, 0, .27), 7px 7px 0 rgba(241, 238, 232, .42);
  border-color: var(--ex-card-border);
  background: var(--ex-card-bg);
  box-shadow: var(--ex-card-elevation);
  will-change: transform;
}

.ex-card--secondary:is(:hover, :focus-within) {
  border-color: var(--ex-cream);
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .34), 11px 11px 0 rgba(241, 238, 232, .42);
}

.ex-card--secondary .ex-card__eyebrow,
.ex-card--secondary .ex-card__tag,
.ex-card--secondary .ex-card__meta {
  color: rgba(241, 238, 232, .82);
}

/* -------------------------------------------------------------------------- */
/* Glyph and print surfaces                                                   */
/* -------------------------------------------------------------------------- */

.ex-surface--imprint .ex-card__visual {
  background:
    linear-gradient(to bottom, rgba(7, 7, 7, 0) 18%, rgba(7, 7, 7, .16) 50%, rgba(7, 7, 7, .94) 100%),
    linear-gradient(135deg, #1c1211, #100c0c 70%);
}

.ex-surface--imprint .ex-card__visual::before {
  inset: -35% -25%;
  background-image:
    linear-gradient(90deg, var(--ex-red) 0%, var(--ex-red) 17%, transparent 53%),
    url("../img/enoughx_x-glyph-pattern.webp");
  background-position: 0 0, 0 0;
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 20px 20px;
  opacity: .84;
  transform: rotate(-10deg);
  -webkit-mask-image: linear-gradient(90deg, #000 4%, #000 62%, transparent 92%);
  mask-image: linear-gradient(90deg, #000 4%, #000 62%, transparent 92%);
}

.ex-surface--imprint .ex-card__visual::after {
  background:
    linear-gradient(90deg, transparent 0%, transparent 40%, rgba(7, 7, 7, .22) 65%, rgba(7, 7, 7, .94) 100%),
    linear-gradient(to bottom, transparent 32%, rgba(7, 7, 7, .92) 100%);
}

.ex-surface--watermark .ex-card__visual,
.ex-surface--watermark-decomposition .ex-card__visual {
  background:
    linear-gradient(to bottom, rgba(7, 7, 7, 0) 12%, rgba(7, 7, 7, .1) 48%, rgba(7, 7, 7, .94) 100%),
    radial-gradient(circle at 22% 12%, rgba(231, 76, 60, .3), transparent 39%),
    linear-gradient(135deg, #211111, #0d0d0d 68%);
}

.ex-surface--watermark .ex-card__visual::before,
.ex-surface--watermark-decomposition .ex-card__visual::before {
  top: 50%;
  right: -.08em;
  bottom: auto;
  left: auto;
  width: clamp(15rem, 43vw, 37rem);
  aspect-ratio: 80 / 78;
  background:
    linear-gradient(200deg, var(--ex-red) 0%, var(--ex-red) 35%, transparent 68%),
    url("../img/enoughx_x-glyph-pattern.webp"),
    url("../img/enoughx_x-glyph-pattern.webp");
  background-position: 0 0, 0 0, 11px 11px;
  background-repeat: no-repeat, repeat, repeat;
  background-size: 100% 100%, 22px 22px, 22px 22px;
  opacity: .9;
  transform: translateY(-48%);
  -webkit-mask-image: url("../img/enoughx_x-glyph-big.webp");
  mask-image: url("../img/enoughx_x-glyph-big.webp");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: drop-shadow(0 0 58px rgba(231, 76, 60, .16));
  transition: transform .55s cubic-bezier(.2, .72, .2, 1), filter .55s ease;
}

.ex-surface--watermark .ex-card__visual::after,
.ex-surface--watermark-decomposition .ex-card__visual::after {
  background: linear-gradient(to bottom, transparent 20%, rgba(7, 7, 7, .1) 44%, rgba(7, 7, 7, .93) 100%);
}

.ex-surface--watermark:is(:hover, :focus-within) .ex-card__visual::before,
.ex-surface--watermark-decomposition:is(:hover, :focus-within) .ex-card__visual::before {
  transform: translateY(-48%) scale(1.035);
  filter: drop-shadow(0 0 78px rgba(231, 76, 60, .28));
}

/* Service grid cards are half the width of the old wide bento cell, so the shared
   43vw-based glyph sizing above reads oversized here — scale it down to the card. */
.ex-service-grid .ex-surface--watermark .ex-card__visual::before {
  width: clamp(9rem, 22vw, 17rem);
}

/* Hero — bigger, denser watermark glyph (scoped: the shared rules above still serve the
   services/final-CTA watermark cards untouched). Blends a halftone dot pass into the x-glyph
   pattern fill so the glyph reads as ink -> halftone -> scattered x's, closer to the brand mock. */
.ex-hero-card.ex-surface--watermark .ex-card__visual {
  background:
    linear-gradient(to bottom, rgba(7, 7, 7, .02) 8%, rgba(7, 7, 7, .08) 46%, rgba(7, 7, 7, .82) 100%),
    radial-gradient(circle at 76% 55%, rgba(231, 76, 60, .4), transparent 54%),
    linear-gradient(135deg, #211111, #0d0d0d 68%);
}

.ex-hero-card.ex-surface--watermark .ex-card__visual::before {
  width: clamp(18rem, 42vw, 44rem);
  background:
    linear-gradient(200deg, var(--ex-red) 0%, var(--ex-red) 32%, transparent 64%),
    radial-gradient(circle, rgba(255, 165, 150, .85) 0 1.3px, transparent 1.5px),
    url("../img/enoughx_x-glyph-pattern.webp"),
    url("../img/enoughx_x-glyph-pattern.webp");
  background-position: 0 0, 0 0, 0 0, 11px 11px;
  background-repeat: no-repeat, repeat, repeat, repeat;
  background-size: 100% 100%, 9px 9px, 22px 22px, 22px 22px;
  opacity: .95;
  filter: drop-shadow(0 0 95px rgba(231, 76, 60, .32));
}

.ex-hero-card.ex-surface--watermark:is(:hover, :focus-within) .ex-card__visual::before {
  filter: drop-shadow(0 0 115px rgba(231, 76, 60, .42));
}

.ex-surface--halftone .ex-card__visual {
  background:
    linear-gradient(to bottom, rgba(7, 7, 7, 0) 20%, rgba(7, 7, 7, .13) 48%, rgba(7, 7, 7, .94) 100%),
    linear-gradient(135deg, #1c1211, #100c0c 70%);
}

.ex-surface--halftone .ex-card__visual::before {
  inset: -35% -25%;
  background:
    radial-gradient(circle, var(--ex-red-soft) 0 1.45px, transparent 1.6px),
    linear-gradient(90deg, var(--ex-red) 0%, var(--ex-red) 20%, transparent 52%);
  background-size: 10px 10px, 100% 100%;
  opacity: .82;
  transform: rotate(-10deg);
  -webkit-mask-image: linear-gradient(90deg, #000 5%, #000 58%, transparent 86%);
  mask-image: linear-gradient(90deg, #000 5%, #000 58%, transparent 86%);
}

.ex-surface--halftone .ex-card__visual::after {
  background: linear-gradient(to bottom, transparent 25%, rgba(7, 7, 7, .12) 48%, rgba(7, 7, 7, .95) 100%);
}

.ex-surface--echo .ex-card__visual {
  background:
    linear-gradient(to bottom, transparent 20%, rgba(7, 7, 7, .12) 50%, rgba(7, 7, 7, .94) 100%),
    radial-gradient(circle at 30% 72%, rgba(231, 76, 60, .16), transparent 55%),
    #120d0d;
}

.ex-surface--echo .ex-card__visual::before,
.ex-surface--echo .ex-card__visual::after {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 46%;
  width: min(62%, 22rem);
  aspect-ratio: 80 / 78;
  background: var(--ex-red);
  -webkit-mask-image: url("../img/enoughx_x-glyph-big.webp");
  mask-image: url("../img/enoughx_x-glyph-big.webp");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transform: translate(-50%, -50%);
  animation: ex-echo-idle 10s ease-in-out infinite;
}

.ex-surface--echo .ex-card__visual::before {
  filter: drop-shadow(17px -13px 0 rgba(245, 140, 128, .62)) drop-shadow(32px -25px 0 rgba(127, 216, 255, .38));
}

.ex-surface--echo .ex-card__visual::after {
  background: var(--ex-red-soft);
  opacity: .3;
  filter: blur(9px);
  transform: translate(calc(-50% + 36px), calc(-50% - 30px));
  animation-delay: -.35s;
}

.ex-surface--echo:is(:hover, :focus-within) .ex-card__visual::before {
  animation-duration: 3.2s;
  filter: drop-shadow(20px -16px 0 rgba(245, 140, 128, .7)) drop-shadow(38px -30px 0 rgba(127, 216, 255, .46));
}

.ex-surface--echo:is(:hover, :focus-within) .ex-card__visual::after {
  animation-duration: 3.2s;
  opacity: .4;
}

/* CSS-only liquid treatment: a masked glyph with a soft, breathing edge. */
.ex-surface--liquid .ex-card__visual {
  background:
    linear-gradient(to bottom, transparent 15%, rgba(7, 7, 7, .14) 48%, rgba(7, 7, 7, .93) 100%),
    radial-gradient(circle at 72% 28%, rgba(231, 76, 60, .24), transparent 55%),
    #150f0e;
}

.ex-surface--liquid .ex-card__visual::before {
  top: 50%;
  right: 3%;
  bottom: auto;
  left: auto;
  width: min(65%, 27rem);
  aspect-ratio: 80 / 78;
  background: radial-gradient(circle at 34% 28%, #f58c80 0%, var(--ex-red) 47%, var(--ex-red-deep) 100%);
  opacity: .92;
  transform: translateY(-48%) scale(.94) skewX(-2deg);
  -webkit-mask-image: url("../img/enoughx_x-glyph-big.webp");
  mask-image: url("../img/enoughx_x-glyph-big.webp");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: blur(.2px) drop-shadow(0 0 74px rgba(231, 76, 60, .56));
  animation: ex-liquid-idle 12s ease-in-out infinite;
}

.ex-surface--liquid .ex-card__visual::after {
  background:
    radial-gradient(ellipse at 70% 32%, rgba(245, 140, 128, .13), transparent 28%),
    linear-gradient(to bottom, transparent 26%, rgba(7, 7, 7, .1) 50%, rgba(7, 7, 7, .94) 100%);
}

.ex-surface--liquid:is(:hover, :focus-within) .ex-card__visual::before {
  animation-duration: 4.2s;
  opacity: 1;
  transform: translateY(-48%) scale(1.035) skewX(-4deg) rotate(-1deg);
  filter: blur(.55px) drop-shadow(0 0 84px rgba(231, 76, 60, .62));
}

.ex-surface--glitch .ex-card__visual {
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .15) 0 1px, transparent 1px 4px),
    linear-gradient(to bottom, transparent 16%, rgba(7, 7, 7, .1) 48%, rgba(7, 7, 7, .94) 100%),
    radial-gradient(circle at 15% 20%, rgba(231, 76, 60, .14), transparent 45%),
    #0d0a0a;
}

.ex-surface--glitch .ex-card__visual::before,
.ex-surface--glitch .ex-card__visual::after {
  top: 50%;
  right: 3%;
  bottom: auto;
  left: auto;
  width: clamp(15rem, 42vw, 30rem);
  aspect-ratio: 80 / 78;
  -webkit-mask-image: url("../img/enoughx_x-glyph-big.webp");
  mask-image: url("../img/enoughx_x-glyph-big.webp");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transform: translateY(-48%);
  animation: ex-glitch-idle 8s steps(1, end) infinite;
}

.ex-surface--glitch .ex-card__visual::before {
  background: var(--ex-red);
}

.ex-surface--glitch .ex-card__visual::after {
  background: #4fd7e0;
  opacity: .52;
  mix-blend-mode: screen;
  animation-delay: -.08s;
}

.ex-surface--glitch:is(:hover, :focus-within) .ex-card__visual::before,
.ex-surface--glitch:is(:hover, :focus-within) .ex-card__visual::after {
  animation-name: ex-glitch-active;
  animation-duration: 2.6s;
}

.ex-surface--field .ex-card__visual,
.ex-surface--field-glyph .ex-card__visual {
  background:
    linear-gradient(to bottom, transparent 16%, rgba(7, 7, 7, .14) 48%, rgba(7, 7, 7, .93) 100%),
    radial-gradient(circle at 30% 20%, rgba(148, 39, 27, .3), transparent 45%),
    linear-gradient(160deg, #1c1010, #0c0a0a 70%);
}

.ex-surface--field .ex-card__visual::before,
.ex-surface--field-glyph .ex-card__visual::before {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(66%, 28rem);
  aspect-ratio: 80 / 78;
  background-image: url("../img/enoughx_x-glyph-pattern.webp");
  background-repeat: repeat;
  background-size: 26px 26px;
  opacity: 1;
  transform: translate(-50%, -50%);
  -webkit-mask-image: url("../img/enoughx_x-glyph-big.webp");
  mask-image: url("../img/enoughx_x-glyph-big.webp");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: drop-shadow(0 0 46px rgba(231, 76, 60, .38));
  transition: transform .55s cubic-bezier(.2, .72, .2, 1), filter .55s ease;
}

.ex-surface--field:is(:hover, :focus-within) .ex-card__visual::before,
.ex-surface--field-glyph:is(:hover, :focus-within) .ex-card__visual::before {
  transform: translate(-50%, -50%) scale(1.035);
  filter: drop-shadow(0 0 62px rgba(231, 76, 60, .5));
}

.ex-surface--field .ex-card__visual::after,
.ex-surface--field-glyph .ex-card__visual::after {
  background:
    linear-gradient(to bottom, transparent 18%, rgba(7, 7, 7, .1) 45%, rgba(7, 7, 7, .93) 100%),
    url("../img/enoughx_x-glyph-pattern.webp");
  background-position: 0 0, 11px 11px;
  background-size: 100% 100%, 21px 21px;
  opacity: .12;
  -webkit-mask-image: linear-gradient(120deg, transparent 10%, #000 50%, transparent 92%);
  mask-image: linear-gradient(120deg, transparent 10%, #000 50%, transparent 92%);
}

/* -------------------------------------------------------------------------- */
/* Photo cards — imagery is the visual, never a glyph                         */
/* -------------------------------------------------------------------------- */

.ex-photo-card,
.ex-card--photo {
  --ex-card-pad: clamp(1rem, 1.8vw, 1.5rem);
}

.ex-photo-card .ex-card__visual,
.ex-card--photo .ex-card__visual {
  background: transparent;
}

.ex-photo-card .ex-card__visual::before,
.ex-photo-card .ex-card__visual::after,
.ex-card--photo .ex-card__visual::before,
.ex-card--photo .ex-card__visual::after {
  display: none;
}

.ex-card__media {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #191313;
}

.ex-card__media img,
.ex-card__media picture,
.ex-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .72, .2, 1), filter .4s ease;
}

.ex-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 48%, rgba(8, 7, 7, .32) 100%);
}

.ex-photo-card:is(:hover, :focus-within) .ex-card__media img,
.ex-card--photo:is(:hover, :focus-within) .ex-card__media img,
.ex-photo-card:is(:hover, :focus-within) .ex-card__media picture,
.ex-card--photo:is(:hover, :focus-within) .ex-card__media picture {
  transform: scale(1.035);
}

.ex-photo-card .ex-card__content,
.ex-card--photo .ex-card__content {
  justify-content: flex-start;
}

.ex-photo-card .ex-card__title,
.ex-card--photo .ex-card__title {
  font-size: clamp(1.35rem, 2vw, 2.05rem);
}

/* -------------------------------------------------------------------------- */
/* Bento layouts and content families                                         */
/* -------------------------------------------------------------------------- */

.ex-bento,
.ex-service-grid,
.ex-project-grid,
.ex-pricing-grid,
.ex-problem-grid,
.ex-article-grid,
.ex-process-grid,
.ex-testimonial-grid {
  display: grid;
  align-items: stretch;
  gap: clamp(1rem, 1.65vw, 1.45rem);
}

.ex-bento,
.ex-service-grid,
.ex-project-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.ex-pricing-grid,
.ex-problem-grid,
.ex-article-grid,
.ex-testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.ex-bento > .ex-card,
.ex-service-grid > .ex-card,
.ex-project-grid > .ex-card {
  grid-column: span 4;
}

.ex-bento > .ex-card--wide,
.ex-bento > .ex-span-6,
.ex-service-grid > .ex-span-6,
.ex-project-grid > .ex-span-6 {
  grid-column: span 6;
}

.ex-bento > .ex-card--large,
.ex-bento > .ex-span-8,
.ex-service-grid > .ex-span-8,
.ex-project-grid > .ex-span-8 {
  grid-column: span 8;
}

.ex-bento > .ex-card--full,
.ex-bento > .ex-span-12,
.ex-service-grid > .ex-span-12,
.ex-project-grid > .ex-span-12 {
  grid-column: 1 / -1;
}

.ex-problem-grid > *,
.ex-pricing-grid > *,
.ex-article-grid > *,
.ex-testimonial-grid > * {
  min-width: 0;
}

.ex-problem-card,
.ex-process-card,
.ex-testimonial-card,
.ex-pricing-card,
.ex-article-card {
  min-height: 100%;
}

.ex-problem-card .ex-card__content,
.ex-process-card .ex-card__content,
.ex-testimonial-card .ex-card__content,
.ex-pricing-card .ex-card__content,
.ex-article-card .ex-card__content {
  justify-content: flex-start;
}

.ex-problem-card ul,
.ex-pricing-card ul,
.ex-process-card ul {
  width: 100%;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(245, 245, 245, .76);
  font: .86rem/1.6 var(--ex-body);
}

.ex-problem-card li,
.ex-pricing-card li,
.ex-process-card li {
  position: relative;
  padding: .55rem 0 .55rem 1.25rem;
  border-top: 1px solid rgba(245, 245, 245, .1);
}

.ex-problem-card li::before,
.ex-pricing-card li::before,
.ex-process-card li::before {
  position: absolute;
  top: .86rem;
  left: 0;
  width: .42rem;
  height: .42rem;
  content: "";
  border-radius: 50%;
  background: var(--ex-red);
  box-shadow: 0 0 0 .2rem rgba(231, 76, 60, .12);
}

.ex-pricing-card {
  min-height: 30rem;
}

.ex-pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-top: 1.25rem;
  color: var(--ex-ink);
  font: normal clamp(2rem, 4vw, 3.4rem)/1 var(--ex-heading);
  letter-spacing: -.04em;
}

.ex-pricing-card__price small {
  color: var(--ex-muted);
  font: .75rem/1.4 var(--ex-body);
  letter-spacing: 0;
}

.ex-pricing-card__list {
  margin-bottom: auto !important;
}

.ex-article-card .ex-card__media {
  aspect-ratio: 16 / 9;
}

.ex-article-card .ex-card__meta {
  margin-top: 1rem;
}

.ex-process-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: .9rem;
}

.ex-process-card .ex-process-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 .5rem;
  margin: 0;
  border-radius: 7px;
  background: var(--ex-red);
  color: #fff;
  font: .85rem/1 var(--ex-semibold);
  letter-spacing: .02em;
}

.ex-process-card__icon {
  color: rgba(241, 238, 232, .7);
  font-size: 1.4rem;
  line-height: 1;
}

.ex-transparency-card__icon {
  display: block;
  margin: 0 0 1.1rem;
  font-size: 1.7rem;
}

.ex-testimonial-card blockquote {
  margin: 1rem 0 0;
  color: var(--ex-ink);
  font: normal clamp(1.05rem, 1.7vw, 1.45rem)/1.38 var(--ex-heading);
}

.ex-testimonial-card figcaption {
  display: flex;
  gap: .8rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.35rem;
  color: var(--ex-muted);
  font: .78rem/1.45 var(--ex-body);
}

.ex-testimonial-card figcaption img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: 50%;
}

/* -------------------------------------------------------------------------- */
/* Hero and availability                                                     */
/* -------------------------------------------------------------------------- */

.ex-hero-card {
  min-height: clamp(34rem, 72vh, 52rem);
  --ex-card-radius: 30px;
}

.ex-hero-card.ex-card--signature {
  --ex-card-elevation:
    0 24px 58px rgba(0, 0, 0, .34),
    9px 9px 0 rgba(168, 46, 29, .55),
    0 0 140px 8px rgba(231, 76, 60, .22);
}

.ex-hero-card.ex-card--signature.ex-motion--press:is(:hover, :focus-within) {
  box-shadow:
    0 17px 46px rgba(0, 0, 0, .38),
    3px 3px 0 rgba(168, 46, 29, .55),
    0 0 160px 10px rgba(231, 76, 60, .3);
}

.ex-hero-motes {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.ex-hero-mote {
  position: absolute;
  color: var(--ex-red, #e74c3c);
  font-family: var(--font-logo, "Yeseva One"), Georgia, serif;
  line-height: 1;
  user-select: none;
}

.ex-hero-mote--1 {
  top: -1.6rem;
  right: 19%;
  font-size: 1.85rem;
  opacity: .5;
  transform: rotate(-8deg);
}

.ex-hero-mote--2 {
  top: -.5rem;
  right: 4%;
  font-size: 1.1rem;
  opacity: .32;
  transform: rotate(12deg);
}

@media (max-width: 760px) {
  .ex-hero-motes {
    display: none;
  }
}

.ex-hero-card .ex-actions .ex-btn {
  min-height: 3.5rem;
  padding: 1rem 1.85rem;
  border-radius: 12px;
  font-size: .8rem;
}

.ex-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(14rem, .95fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: stretch;
  min-height: inherit;
}

.ex-hero-grid > .ex-card__content {
  justify-content: center;
  padding: clamp(1.5rem, 4.8vw, 5rem);
}

.ex-hero-grid > .ex-card__visual,
.ex-hero-grid > .ex-hero-visual {
  position: relative;
  inset: auto;
  min-height: 100%;
}

.ex-hero-card .ex-card__title,
.ex-hero-card h1 {
  max-width: 10ch;
  font-size: clamp(2.65rem, 7.5vw, 7rem);
  line-height: .96;
}

.ex-hero-card .ex-card__text,
.ex-hero-card p {
  /* max-width: 45ch; */
  margin-top: 1.35rem;
  font-size: clamp(.95rem, 1.25vw, 1.15rem);
}

.ex-hero-card .ex-card__visual {
  background:
    linear-gradient(to bottom, rgba(7, 7, 7, .03) 10%, rgba(7, 7, 7, .12) 58%, rgba(7, 7, 7, .8) 100%),
    radial-gradient(circle at 50% 30%, rgba(231, 76, 60, .19), transparent 60%),
    linear-gradient(150deg, #211111, #0d0d0d 75%);
}

.enoughx-home #hero .ex-availability {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  margin: 0 0 2.25rem;
  padding: 0;
  border: none;
  color: var(--ex-ink);
  /* font: .74rem/1.2 var(--ex-semibold); */
  font: .74rem;
  letter-spacing: .02em;
}

.ex-availability-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--ex-green);
  box-shadow: 0 0 0 3px rgba(89, 255, 47, .16), 0 0 14px rgba(89, 255, 47, .6);
  animation: ex-availability-pulse 3.8s ease-in-out infinite;
}

.ex-btn {
  --ex-btn-shadow: var(--ex-red-deep);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .78rem 1.25rem;
  border: 1px solid var(--ex-red);
  border-radius: 10px;
  background: transparent;
  color: var(--ex-ink);
  font: .72rem/1.2 var(--ex-semibold);
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--ex-btn-shadow);
  cursor: pointer;
  transition:
    transform .2s cubic-bezier(.2, .72, .2, 1),
    box-shadow .2s cubic-bezier(.2, .72, .2, 1),
    background-color .2s ease,
    color 0s;
}

.ex-btn:hover {
  color: var(--ex-ink);
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ex-btn-shadow);
}

.ex-btn--primary {
  --ex-btn-shadow: rgba(168, 46, 29, .55);
  background: var(--ex-red);
  color: #fff;
  box-shadow: 5px 5px 0 var(--ex-btn-shadow);
}

.ex-btn--secondary {
  --ex-btn-shadow: rgba(241, 238, 232, .42);
  border-color: var(--ex-cream);
  color: var(--ex-cream);
}

.ex-btn--secondary:hover {
  background: var(--ex-cream);
  color: var(--ex-bg);
}

/* -------------------------------------------------------------------------- */
/* Keyboard focus                                                            */
/* -------------------------------------------------------------------------- */

.ex-card:focus-visible,
.ex-card a:focus-visible,
.ex-card button:focus-visible,
.ex-card [tabindex]:focus-visible,
.ex-btn:focus-visible {
  outline: 2px solid var(--ex-red);
  outline-offset: 5px;
}

.ex-card--secondary:focus-visible,
.ex-btn--secondary:focus-visible {
  outline-color: var(--ex-cream);
}

/* -------------------------------------------------------------------------- */
/* Motion                                                                     */
/* -------------------------------------------------------------------------- */

@keyframes ex-availability-pulse {
  0%, 66%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(89, 255, 47, .16), 0 0 14px rgba(89, 255, 47, .6);
  }

  72% {
    opacity: .76;
    transform: scale(.92);
    box-shadow: 0 0 0 .45rem rgba(89, 255, 47, 0), 0 0 8px rgba(89, 255, 47, .3);
  }

  76% {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 0 0 .15rem rgba(89, 255, 47, .26), 0 0 18px rgba(89, 255, 47, .7);
  }
}

@keyframes ex-echo-idle {
  0%, 100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(calc(-50% + 3px), calc(-50% - 2px));
  }
}

@keyframes ex-liquid-idle {
  0%, 100% {
    transform: translateY(-48%) scale(.94) skewX(-2deg) rotate(0deg);
  }

  50% {
    transform: translateY(-48%) scale(.965, .945) skewX(-3deg) rotate(.55deg);
  }
}

@keyframes ex-glitch-idle {
  0%, 87%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(-48%) translateX(0);
  }

  88% {
    clip-path: inset(20% 0 55% 0);
    transform: translateY(-48%) translateX(2px);
  }

  89% {
    clip-path: inset(63% 0 8% 0);
    transform: translateY(-48%) translateX(-2px);
  }
}

@keyframes ex-glitch-active {
  0%, 64%, 100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(-48%) translateX(0);
  }

  65% {
    clip-path: inset(8% 0 58% 0);
    transform: translateY(-48%) translateX(6px);
  }

  66% {
    clip-path: inset(62% 0 4% 0);
    transform: translateY(-48%) translateX(-5px);
  }

  67% {
    clip-path: inset(24% 0 38% 0);
    transform: translateY(-48%) translateX(4px);
  }
}

/* -------------------------------------------------------------------------- */
/* Responsive layout and reduced motion                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .ex-hero-grid {
    gap: 1.75rem;
  }
}

@media (max-width: 820px) {
  .ex-pricing-grid,
  .ex-problem-grid,
  .ex-article-grid,
  .ex-testimonial-grid,
  .ex-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-process-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .ex-hero-card {
    min-height: 38rem;
  }

  .ex-hero-grid {
    grid-template-columns: 1fr;
  }

  .ex-hero-grid > .ex-card__visual,
  .ex-hero-grid > .ex-hero-visual {
    min-height: 17rem;
  }

  .ex-hero-grid > .ex-card__content {
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 620px) {
  .ex-bento,
  .ex-service-grid,
  .ex-project-grid,
  .ex-pricing-grid,
  .ex-problem-grid,
  .ex-article-grid,
  .ex-process-grid,
  .ex-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .ex-bento > *,
  .ex-service-grid > *,
  .ex-project-grid > *,
  .ex-pricing-grid > *,
  .ex-problem-grid > *,
  .ex-article-grid > *,
  .ex-process-grid > *,
  .ex-testimonial-grid > * {
    grid-column: 1 / -1;
  }

  .ex-card {
    min-height: 14rem;
  }

  .ex-card__content {
    padding: 1.35rem;
  }

  .ex-card__title,
  .ex-card__content h2,
  .ex-card__content h3,
  .ex-card__content h4 {
    max-width: 22ch;
  }

  .ex-hero-card {
    min-height: 37rem;
  }

  .ex-hero-card .ex-card__title,
  .ex-hero-card h1 {
    font-size: clamp(2.5rem, 14vw, 4.4rem);
  }

  .ex-hero-grid > .ex-card__visual,
  .ex-hero-grid > .ex-hero-visual {
    min-height: 13rem;
  }

  .ex-surface--watermark .ex-card__visual::before,
  .ex-surface--watermark-decomposition .ex-card__visual::before {
    width: 20rem;
  }

  .ex-surface--echo .ex-card__visual::before,
  .ex-surface--echo .ex-card__visual::after {
    width: 15rem;
  }

  .ex-btn {
    min-height: 2.65rem;
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-card,
  .ex-card--signature.ex-motion--press:is(:hover, :focus-within),
  .ex-card--signature.ex-motion--pivot:is(:hover, :focus-within),
  .ex-card--secondary:is(:hover, :focus-within),
  .ex-btn,
  .ex-card__media img,
  .ex-card__media picture,
  .ex-card__media video {
    transition-duration: .01ms;
  }

  .ex-card--signature.ex-motion--press:is(:hover, :focus-within),
  .ex-card--signature.ex-motion--pivot:is(:hover, :focus-within),
  .ex-card--secondary:is(:hover, :focus-within) {
    transform: none;
  }

  .ex-availability-dot,
  .ex-surface--echo .ex-card__visual::before,
  .ex-surface--echo .ex-card__visual::after,
  .ex-surface--liquid .ex-card__visual::before,
  .ex-surface--glitch .ex-card__visual::before,
  .ex-surface--glitch .ex-card__visual::after {
    animation: none !important;
  }

  .ex-surface--watermark:is(:hover, :focus-within) .ex-card__visual::before,
  .ex-surface--watermark-decomposition:is(:hover, :focus-within) .ex-card__visual::before,
  .ex-surface--liquid:is(:hover, :focus-within) .ex-card__visual::before {
    transform: translateY(-48%);
  }

  .ex-surface--echo .ex-card__visual::before {
    transform: translate(-50%, -50%);
  }

  .ex-surface--echo .ex-card__visual::after {
    transform: translate(calc(-50% + 24px), calc(-50% - 20px));
  }

  .ex-card__media img,
  .ex-card__media picture,
  .ex-card__media video {
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* enoughX homepage composition adapters                                      */
/* -------------------------------------------------------------------------- */

.enoughx-home {
  position: relative;
  color: var(--text-secondary, #a3a3a3);
}

.enoughx-home .ex-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), 1440px);
  margin-inline: auto;
}

/* Keep the existing animated page background behind the redesigned content. */
.enoughx-home {
  position: relative;
  isolation: isolate;
}

.enoughx-home > .home-particles,
.enoughx-home > .gradient-overlay,
.enoughx-home > .home-particles canvas {
  z-index: 0 !important;
  pointer-events: none;
}

.enoughx-home > .ex-section,
.enoughx-home + .ex-footer {
  position: relative;
  z-index: 2;
}

.enoughx-home .ex-section {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 0;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  text-align: left;
}

.enoughx-home #hero.ex-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: clamp(5rem, 8vw, 8rem) 0;
}

@media (min-width: 992px) {
  .enoughx-home .ex-shell {
    width: min(calc(100% - 9.5rem), 1440px);
    margin-left: max(7.5rem, calc((100% - 1440px) / 2 + 2rem));
    margin-right: auto;
  }

  .enoughx-home #hero.ex-section {
    padding-inline: 0;
  }
}

.ex-section-head {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.ex-section-head h2,
.ex-final-card h2,
.ex-case-card h2 {
  margin: .55rem 0 0;
  color: var(--text-primary, #f5f5f5);
  font-family: var(--font-logo, "Yeseva One"), Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.ex-section-head > p:last-child,
.ex-final-card .ex-card__content > p,
.ex-case-card .ex-card__content > p {
  margin: 1rem 0 0;
  color: var(--text-secondary, #a3a3a3);
  font: 1rem/1.75 "metropolis-regular", Arial, sans-serif;
}

.ex-final-card .ex-card__content > p,
.ex-case-card .ex-card__content > p {
  /* max-width: 68ch; */
}

.ex-eyebrow {
  margin: 0;
  color: var(--ex-red, #e74c3c);
  font: .72rem/1.35 "metropolis-semibold", Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.8rem;
}

.ex-hero-card {
  min-height: clamp(34rem, 72vh, 48rem);
}

.ex-hero-card .ex-hero-grid {
  position: relative;
  z-index: 2;
  display: block;
  min-height: inherit;
}

.ex-hero-card .ex-hero-copy {
  justify-content: center;
  width: min(64%, 720px);
  min-height: inherit;
  padding: clamp(1.5rem, 4.8vw, 5rem);
}

.enoughx-home #hero .ex-eyebrow {
  color: var(--ex-red, #e74c3c);
  font-size: .74rem;
  letter-spacing: .09em;
  white-space: nowrap;
}

.enoughx-home #hero .ex-eyebrow span {
  color: var(--ex-muted, #a3a3a3);
}

.enoughx-home #hero h1 {
  max-width: 600px;
  margin: .85rem 0 0;
  color: var(--text-primary, #f5f5f5);
  font-family: var(--font-logo, "Yeseva One"), Georgia, serif;
  font-size: clamp(2.15rem, 3.35vw, 3.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-align: left;
}

.enoughx-home #hero .ex-lead {
  max-width: 52ch;
  margin: 1.5rem 0 0;
  color: var(--text-secondary, #a3a3a3);
  font: clamp(1rem, 1.5vw, 1.2rem)/1.7 "metropolis-regular", Arial, sans-serif;
  text-align: left;
}

.enoughx-home #hero .ex-proof {
  margin: 1.6rem 0 0 !important;
  color: var(--ex-red, #e74c3c);
  font: .74rem/1.2 var(--ex-semibold);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.enoughx-home #hero .ex-proof span {
  margin-inline: .35rem;
  color: var(--ex-muted, #a3a3a3);
}

.ex-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.ex-trust-card {
  min-height: 10rem;
  justify-content: flex-end;
  padding: 1.5rem;
}

.ex-trust-card strong {
  display: block;
  color: var(--text-primary, #f5f5f5);
  font: 1.55rem/1.1 var(--font-logo, "Yeseva One"), Georgia, serif;
}

.ex-trust-card span {
  display: block;
  margin-top: .55rem;
  color: var(--text-secondary, #a3a3a3);
  font: .82rem/1.5 "metropolis-regular", Arial, sans-serif;
}

.ex-location {
  margin: 1.7rem 0 0;
  color: rgba(245, 245, 245, .72);
  font: .86rem/1.65 "metropolis-regular", Arial, sans-serif;
}

.ex-problem-grid .ex-card,
.ex-pricing-grid .ex-card {
  min-height: 30rem;
}

.ex-card-number {
  margin: 0 0 .9rem;
  color: #e74c3c;
  font: 1rem/1 "metropolis-semibold", Arial, sans-serif;
  letter-spacing: .12em;
}

.enoughx-home .ex-card h3 {
  margin: 0;
  color: var(--text-primary, #f5f5f5);
  font-family: var(--font-logo, "Yeseva One"), Georgia, serif;
  font-size: clamp(1.6rem, 2.7vw, 2.55rem);
  font-weight: 400;
  line-height: 1.08;
}

.enoughx-home .ex-card p:not(.ex-price, .ex-price-short),
.enoughx-home .ex-card li,
.enoughx-home .ex-card blockquote {
  font-family: "metropolis-regular", Arial, sans-serif;
}

.enoughx-home .ex-card__content > p:not(.ex-card-number, .ex-eyebrow, .ex-price, .ex-price-short, .ex-tag, .ex-rating, .ex-location) {
  margin: 1rem 0 0;
  color: var(--text-secondary, #a3a3a3);
  line-height: 1.7;
}

.ex-list {
  width: 100%;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.ex-list li {
  position: relative;
  padding: .75rem 0 .75rem 1.15rem;
  border-top: 1px solid rgba(245, 245, 245, .1);
  color: rgba(245, 245, 245, .78);
  font-size: .88rem;
  line-height: 1.55;
}

.ex-list li::before {
  position: absolute;
  top: 1.05rem;
  left: 0;
  width: .42rem;
  height: .16rem;
  content: "";
  background: #e74c3c;
}

.ex-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ex-service-grid > .ex-card {
  grid-column: span 1;
  min-height: 22rem;
}

.ex-service-note {
  position: relative;
  isolation: isolate;
  min-height: 0;
  margin-top: 1.4rem;
  padding: 1.3rem 1.5rem;
  overflow: hidden;
  color: var(--text-primary, #f5f5f5);
  font: .95rem/1.6 "metropolis-regular", Arial, sans-serif;
}

.ex-service-note::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(241, 238, 232, .55) 0 1.3px, transparent 1.5px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(90deg, transparent 52%, #000 76%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 52%, #000 76%, #000 100%);
  opacity: .55;
}

.ex-card__content .ex-price-short {
  margin: 1.3rem 0 0;
  color: #f58c80;
  font: 1.15rem/1.3 "metropolis-semibold", Arial, sans-serif;
}

.ex-price-short small {
  color: var(--text-secondary, #a3a3a3);
  font-size: .72rem;
}

.ex-text-link {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  width: fit-content;
  margin-top: 1.35rem;
  padding-bottom: .42rem;
  border-bottom: 1px solid rgba(231, 76, 60, .55);
  color: #f58c80;
  font: .78rem/1.35 "metropolis-semibold", Arial, sans-serif;
  letter-spacing: .04em;
}

.ex-text-link:hover,
.ex-text-link:focus-visible {
  color: var(--text-primary, #f5f5f5);
}

.ex-card__content a.ex-text-link::after {
  content: none;
}

.ex-pricing-card .ex-card__content {
  justify-content: flex-start;
}

/* Pricing cards: text fills the whole card (no separate art/copy split like problem
   cards), so the glyph effects are mirrored to sit on the right, away from the copy. */
.ex-pricing-card.ex-surface--imprint .ex-card__visual::before {
  background-image:
    linear-gradient(90deg, transparent 58%, var(--ex-red) 90%, var(--ex-red) 100%),
    url("../img/enoughx_x-glyph-pattern.webp");
  -webkit-mask-image: linear-gradient(90deg, transparent 48%, #000 72%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 48%, #000 72%, #000 100%);
}

.ex-pricing-card.ex-surface--imprint .ex-card__visual::after {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .94) 0%, rgba(7, 7, 7, .5) 42%, transparent 65%, transparent 100%),
    linear-gradient(to bottom, transparent 32%, rgba(7, 7, 7, .92) 100%);
}

.ex-pricing-card.ex-surface--halftone .ex-card__visual::before {
  background:
    radial-gradient(circle, var(--ex-red-soft) 0 1.45px, transparent 1.6px),
    linear-gradient(90deg, transparent 60%, var(--ex-red) 92%, var(--ex-red) 100%);
  background-size: 10px 10px, 100% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 50%, #000 74%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 50%, #000 74%, #000 100%);
}

.ex-pricing-card.ex-surface--field .ex-card__visual::before {
  left: auto;
  right: -6%;
  transform: translateY(-50%);
}

.ex-card__content .ex-price {
  margin: 1.1rem 0 0;
  color: var(--text-primary, #f5f5f5);
  font: clamp(2.1rem, 4vw, 3.35rem)/1 var(--font-logo, "Yeseva One"), Georgia, serif;
}

.ex-price small,
.ex-price span {
  color: var(--text-secondary, #a3a3a3);
  font: .72rem/1.4 "metropolis-regular", Arial, sans-serif;
}

.ex-pricing-card .ex-btn {
  width: 100%;
  margin-top: auto;
}

.ex-photo-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 140, 128, .2);
  background: #0b0909;
}

.ex-photo-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, rgba(8, 7, 7, .28) 100%);
}

.ex-photo-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .72, .2, 1);
}

.ex-photo-card:is(:hover, :focus-within) .ex-photo-card__media img {
  transform: scale(1.035);
}

.ex-photo-card .ex-card__content {
  justify-content: flex-start;
}

.ex-project-card,
.ex-article-card {
  min-height: 0;
}

.ex-tag {
  margin: 0 0 .7rem;
  color: #f58c80;
  font: .68rem/1.3 "metropolis-semibold", Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ex-section-action {
  display: flex;
  justify-content: center;
  margin-top: 2.4rem;
}

.ex-case-card,
.ex-final-card {
  min-height: clamp(30rem, 58vw, 42rem);
}

.ex-case-card .ex-card__content,
.ex-final-card .ex-card__content {
  justify-content: center;
  /* width: min(68%, 760px); */
  padding: clamp(1.5rem, 5vw, 5rem);
}

.ex-case-card--dot-glyph .ex-card__visual {
  background:
    radial-gradient(circle, rgba(245, 140, 128, .6) 0 1.25px, transparent 1.36px),
    linear-gradient(100deg, rgba(90, 25, 20, .12) 0%, rgba(148, 39, 27, .4) 55%, rgba(231, 76, 60, .2) 100%),
    var(--ex-card-bg);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 11.13px 11.13px, 100% 100%, 100% 100%;
}

.ex-case-card--dot-glyph .ex-card__visual::before {
  content: "X";
  top: 50%;
  right: 4%;
  left: auto;
  bottom: auto;
  color: rgba(245, 140, 128, .14);
  font: normal clamp(16rem, 32vw, 30rem)/.68 var(--font-logo, "Yeseva One"), Georgia, serif;
  letter-spacing: -.14em;
  transform: translateY(-48%);
  text-shadow: 0 0 90px rgba(231, 76, 60, .12);
}

.ex-case-card--dot-glyph .ex-card__visual::after {
  background: linear-gradient(90deg, rgba(13, 10, 10, .97) 0%, rgba(13, 10, 10, .72) 38%, transparent 76%);
}

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

.ex-process-card {
  /* min-height: 17rem; */
  padding: 1.6rem;
}

.ex-process-card p:last-child {
  margin-top: 1rem;
  color: var(--text-secondary, #a3a3a3);
  line-height: 1.65;
}

.ex-transparency-card {
  min-height: 20rem;
  margin-top: 1.4rem;
}

.ex-testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ex-testimonial-card {
  margin: 0;
  padding: 1.7rem;
}

.ex-person {
  display: flex;
  gap: .9rem;
  align-items: center;
}

.ex-person img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 8px;
}

.ex-person-meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin: 0;
  padding: 0;
}

.ex-person strong {
  color: var(--text-primary, #f5f5f5);
}

.ex-person span {
  color: var(--text-secondary, #a3a3a3);
  font-size: .78rem;
}

.ex-rating {
  margin: 1.1rem 0 0;
  color: #e74c3c;
  letter-spacing: .18em;
}

.ex-testimonial-card blockquote {
  margin: 1.15rem 0 0;
  color: rgba(245, 245, 245, .82);
  font-size: 1rem;
  line-height: 1.75;
}

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

.ex-article-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem) !important;
}

.ex-footer {
  position: relative;
  z-index: 2;
  padding: 2rem 0 3rem;
  background: transparent;
}

.ex-footer-card {
  min-height: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.ex-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}

.ex-footer-logo {
  width: min(100%, 210px);
  height: auto;
}

.ex-footer h2 {
  margin: 0 0 1rem;
  color: var(--text-primary, #f5f5f5);
  font-size: 1.1rem;
}

.ex-footer p,
.ex-footer li,
.ex-footer a {
  color: var(--text-secondary, #a3a3a3);
  font: .84rem/1.7 "metropolis-regular", Arial, sans-serif;
}

.ex-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ex-footer a:hover {
  color: var(--text-primary, #f5f5f5);
}

#footer.ex-footer {
  padding: 2rem 0 3rem;
  color: var(--text-secondary, #a3a3a3);
  font-size: inherit;
  text-align: left;
}

#footer.ex-footer p {
  margin: 0;
  padding: 0;
  color: var(--text-secondary, #a3a3a3);
  font-size: .84rem;
  font-family: "metropolis-regular", Arial, sans-serif;
  font-style: normal;
  line-height: 1.7;
}

#footer.ex-footer .social-links {
  display: flex;
  gap: .5rem;
  margin: 0;
}

#footer.ex-footer .social-links a {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  color: var(--text-primary, #f5f5f5);
  background: transparent;
  border: 1px solid rgba(241, 238, 232, .35);
  border-radius: 8px;
}

#footer.ex-footer .social-links a:hover,
#footer.ex-footer .social-links a:focus-visible {
  color: #fff;
  background: var(--surface-brand, #94271b);
  border-color: var(--surface-brand-secondary, #e74c3c);
}

.ex-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 245, 245, .12);
}

#footer.ex-footer .ex-footer-grid > div:last-child .social-links {
  margin-top: 0.5rem;
}

#footer.ex-footer .ex-footer-bottom {
  justify-content: center;
}

#footer.ex-footer .ex-footer-copyright {
  text-align: center;
}

#footer.ex-footer .ex-footer-brand {
  color: var(--text-primary, #f5f5f5);
  font-family: "Yeseva One", var(--font-logo, Georgia), serif;
  font-weight: 400;
  white-space: nowrap;
}

#footer.ex-footer .ex-footer-brand__word {
  color: var(--text-primary, #f5f5f5);
}

#footer.ex-footer .ex-footer-brand__x {
  color: var(--surface-brand-secondary, #e74c3c);
}

@media (max-width: 1080px) {
  .ex-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ex-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .enoughx-home .ex-shell {
    width: min(calc(100% - 1.5rem), 1180px);
  }

  .enoughx-home .ex-section {
    padding: 4rem 0;
  }

  .ex-hero-card .ex-hero-copy,
  .ex-case-card .ex-card__content,
  .ex-final-card .ex-card__content {
    width: 100%;
  }

  .enoughx-home #hero .ex-eyebrow {
    white-space: normal;
  }

  .ex-hero-card .ex-card__visual::before,
  .ex-case-card .ex-card__visual::before,
  .ex-final-card .ex-card__visual::before {
    opacity: .24;
  }

  .ex-case-card--dot-glyph .ex-card__visual {
    opacity: .7;
  }

  .ex-case-card--dot-glyph .ex-card__visual::before {
    opacity: 1;
  }

  .ex-trust-grid,
  .ex-problem-grid,
  .ex-pricing-grid,
  .ex-process-grid,
  .ex-testimonial-grid,
  .ex-article-grid,
  .ex-footer-grid {
    grid-template-columns: 1fr;
  }

  .ex-service-grid > *,
  .ex-project-grid > * {
    grid-column: 1 / -1 !important;
  }

  .ex-actions,
  .ex-footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .ex-actions .ex-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .enoughx-home [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Index-only pill navigation                                                 */
/* -------------------------------------------------------------------------- */

.enoughx-index #header {
  position: fixed;
  top: clamp(14px, 2vw, 24px);
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 9997;
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: center !important;
  width: auto;
  min-height: 0;
  min-width: 0;
  padding: 0 12px;
  overflow: visible;
  background: transparent;
  border: 0;
  pointer-events: none;
  transition: none;
}

.enoughx-index #navbar {
  display: block;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  padding: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(241, 238, 232, 0.22);
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.84);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  scrollbar-width: none;
}

.enoughx-index #navbar::-webkit-scrollbar {
  display: none;
}

.enoughx-index #navbar > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: max-content;
  min-width: 100%;
}

.enoughx-index #navbar > ul > li {
  flex: 0 0 auto;
}

.enoughx-index #navbar .nav-link,
.enoughx-index #navbar .nav-link:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto !important;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0.7rem 0.82rem;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(241, 238, 232, 0.72);
  font: 0.68rem/1 var(--font-semibold, "metropolis-semibold"), Arial, sans-serif;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.enoughx-index #navbar .nav-link i {
  flex: 0 0 auto;
  font-size: 1rem;
  color: currentColor;
}

.enoughx-index #navbar .nav-link span {
  display: inline;
  padding: 0;
  color: inherit;
}

.enoughx-index #navbar .nav-link:hover,
.enoughx-index #navbar .nav-link:focus-visible {
  width: auto !important;
  color: #fff;
  border-color: transparent;
  background: rgba(231, 76, 60, 0.1);
  box-shadow: none;
}

.enoughx-index #navbar .nav-link.active,
.enoughx-index #navbar .nav-link.active:focus {
  color: #fff;
  border-color: var(--surface-brand-secondary, #e74c3c);
  background: var(--surface-brand, #94271b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(148, 39, 27, 0.2);
}

.enoughx-index #navbar .nav-link.active:hover,
.enoughx-index #navbar .nav-link.active:focus-visible {
  border-color: var(--surface-brand-secondary, #e74c3c);
  background: var(--surface-brand, #94271b);
}

.enoughx-index #navbar .custom-link {
  margin-left: 0.2rem;
  padding-left: 0.82rem !important;
  border-left: 1px solid transparent;
}

.enoughx-index .mobile-nav-toggle {
  display: none !important;
}

@media (max-width: 760px) {
  .enoughx-index #header {
    top: 10px;
    right: 12px;
    left: 12px;
    padding: 0;
  }

  .enoughx-index #navbar {
    width: 100%;
    max-width: 100%;
    padding: 5px;
    touch-action: pan-x;
  }

  .enoughx-index #navbar > ul {
    justify-content: flex-start;
    min-width: max-content;
  }

  .enoughx-index #navbar .nav-link,
  .enoughx-index #navbar .nav-link:focus {
    padding: 0.65rem 0.75rem;
    font-size: 0.64rem;
  }
}

@media (max-width: 380px) {
  .enoughx-index #navbar .nav-link,
  .enoughx-index #navbar .nav-link:focus {
    gap: 0.35rem;
    padding-inline: 0.62rem;
  }

  .enoughx-index #navbar .nav-link i {
    font-size: 0.9rem;
  }
}

@media (min-width: 992px) {
  .enoughx-index .ex-shell {
    margin-inline: auto;
  }
}

@media (max-width: 991px) {
  .enoughx-index .mobile-nav-toggle {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 10000;
    display: grid !important;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(241, 238, 232, 0.28);
    border-radius: 999px;
    color: var(--text-primary, #f5f5f5);
    background: rgba(14, 14, 14, 0.88);
    box-shadow:
      0 10px 26px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    transition:
      color 0.25s ease,
      background-color 0.25s ease,
      border-color 0.25s ease,
      transform 0.25s ease;
  }

  .enoughx-index.mobile-nav-active .mobile-nav-toggle:hover,
  .enoughx-index.mobile-nav-active .mobile-nav-toggle:focus-visible {
    color: #fff;
    background: var(--surface-brand, #94271b);
    border-color: var(--surface-brand-secondary, #e74c3c);
  }

  .enoughx-index .mobile-nav-toggle:active {
    transform: scale(0.95);
  }

  .enoughx-index #header {
    top: 66px;
    right: 12px;
    bottom: auto;
    left: 12px;
    align-items: stretch;
    justify-content: flex-start !important;
    width: auto;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .enoughx-index.mobile-nav-active #header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .enoughx-index #navbar {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 88px);
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 24px;
  }

  .enoughx-index #navbar > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    width: 100%;
    min-width: 0;
  }

  .enoughx-index #navbar > ul > li {
    width: 100%;
  }

  .enoughx-index #navbar .nav-link,
  .enoughx-index #navbar .nav-link:focus {
    justify-content: flex-start;
    width: 100% !important;
    padding: 0.78rem 0.9rem;
    border-radius: 16px;
    font-size: 0.68rem;
  }

  .enoughx-index #navbar .nav-link:hover,
  .enoughx-index #navbar .nav-link:focus-visible {
    width: 100% !important;
  }

  .enoughx-index #navbar .custom-link {
    margin-left: 0;
    padding-left: 0.9rem !important;
    border-left: 1px solid transparent;
  }
}

/* Integrated enoughX brand lockup: the glyph and white wordmark live inside the pill. */
.enoughx-index #navbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enoughx-index .enoughx-navbar-brand,
.enoughx-index .enoughx-navbar-brand:focus {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.18rem;
  width: auto;
  height: auto;
  min-height: 40px;
  margin: 0;
  padding: 0.3rem 0.75rem 0.3rem 0.42rem;
  overflow: visible;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: inherit;
  pointer-events: auto;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.enoughx-index .enoughx-navbar-brand__glyph-lockup {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 30px;
  margin: 0;
  padding: 0;
  color: rgba(241, 238, 232, 0.78);
  font: 1.05rem/1 var(--font-regular, "metropolis-regular"), Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.enoughx-index .enoughx-navbar-brand__bracket {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin: 0 -0.08rem;
  padding: 0;
  color: currentColor;
  font: 700 0.98rem/1 var(--font-regular, "metropolis-regular"), Arial, sans-serif;
  line-height: 1;
  transform: translateY(1px);
}

.enoughx-index .enoughx-navbar-brand__bracket--open,
.enoughx-index .enoughx-navbar-brand__bracket--close {
  width: 9px;
}

.enoughx-index .enoughx-navbar-brand__glyph {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: transparent;
}

.enoughx-index .enoughx-navbar-brand__glyph::after {
  display: block;
  width: 26px;
  height: 26px;
  content: "";
  background: linear-gradient(135deg, #f58c80 0%, var(--surface-brand-secondary, #e74c3c) 58%, var(--surface-brand, #94271b) 100%);
  -webkit-mask: url("../img/enoughx_x-glyph.webp") center / contain no-repeat;
  mask: url("../img/enoughx_x-glyph.webp") center / contain no-repeat;
}

.enoughx-index .enoughx-navbar-brand__name {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin: 0 0 0 0.3rem;
  padding: 0;
  color: #fff;
  font: 700 0.98rem/1 var(--font-semibold, "metropolis-semibold"), Arial, sans-serif;
  letter-spacing: 0.015em;
}

.enoughx-index .enoughx-navbar-brand:hover,
.enoughx-index .enoughx-navbar-brand:focus-visible {
  display: inline-flex;
  width: auto !important;
  height: auto;
  min-height: 40px;
  margin: 0;
  overflow: visible;
  border-color: transparent;
  background: transparent;
  transform: none;
}

.enoughx-index .enoughx-navbar-brand:focus-visible {
  outline: 2px solid var(--surface-brand-secondary, #e74c3c);
  outline-offset: 3px;
}

/* The legacy nav hover rule changes every descendant span to display:block.
   Keep the complete lockup's inline layout stable so hovering the brand cannot move it. */
.enoughx-index .enoughx-navbar-brand:hover .enoughx-navbar-brand__glyph-lockup,
.enoughx-index .enoughx-navbar-brand:focus-visible .enoughx-navbar-brand__glyph-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.enoughx-index .enoughx-navbar-brand:hover .enoughx-navbar-brand__bracket,
.enoughx-index .enoughx-navbar-brand:focus-visible .enoughx-navbar-brand__bracket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
}

.enoughx-index .enoughx-navbar-brand:hover .enoughx-navbar-brand__name,
.enoughx-index .enoughx-navbar-brand:focus-visible .enoughx-navbar-brand__name {
  display: inline-flex;
  align-items: center;
  height: 30px;
}

.enoughx-index .enoughx-navbar-brand:hover .enoughx-navbar-brand__glyph,
.enoughx-index .enoughx-navbar-brand:focus-visible .enoughx-navbar-brand__glyph {
  display: grid;
  place-items: center;
}

.enoughx-index #navbar > ul {
  flex: 0 0 auto;
  min-width: 0;
}

@media (min-width: 992px) {
  .enoughx-index #header {
    gap: 0;
  }
}

@media (max-width: 991px) {
  .enoughx-index .mobile-nav-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 3;
    display: grid !important;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-primary, #f5f5f5);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    cursor: pointer;
    font-size: 1.12rem;
    line-height: 1;
    transition:
      color 0.25s ease,
      background-color 0.25s ease,
      border-color 0.25s ease,
      transform 0.25s ease;
  }

  .enoughx-index .mobile-nav-toggle:hover,
  .enoughx-index .mobile-nav-toggle:focus-visible {
    color: #fff;
    border-color: transparent;
    background: transparent;
  }

  .enoughx-index.mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    border-color: var(--surface-brand-secondary, #e74c3c);
    background: var(--surface-brand, #94271b);
  }

  .enoughx-index #header {
    top: 10px;
    right: 12px;
    bottom: auto;
    left: 12px;
    align-items: flex-start;
    justify-content: flex-start !important;
    width: auto;
    height: auto;
    min-height: 46px;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none;
    transition: none;
  }

  .enoughx-index #navbar {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    height: 46px;
    max-height: calc(100vh - 20px);
    padding: 5px;
    overflow-x: hidden;
    overflow-y: hidden;
    border-radius: 999px;
    touch-action: pan-y;
  }

  .enoughx-index.mobile-nav-active #navbar {
    height: auto;
    min-height: 46px;
    overflow-y: auto;
    border-radius: 24px;
  }

  .enoughx-index .enoughx-navbar-brand {
    align-self: flex-start;
    min-height: 34px;
    padding: 0.18rem 0.72rem 0.18rem 0.38rem;
  }

  .enoughx-index .enoughx-navbar-brand__glyph-lockup {
    height: 28px;
    gap: 0;
    font-size: 0.92rem;
  }

  .enoughx-index .enoughx-navbar-brand__bracket {
    height: 28px;
    font-size: 0.92rem;
  }

  .enoughx-index .enoughx-navbar-brand__bracket--open,
  .enoughx-index .enoughx-navbar-brand__bracket--close {
    width: 9px;
  }

  .enoughx-index .enoughx-navbar-brand__glyph {
    width: 28px;
    height: 28px;
  }

  .enoughx-index .enoughx-navbar-brand__glyph::after {
    width: 24px;
    height: 24px;
  }

  .enoughx-index .enoughx-navbar-brand__name {
    height: 28px;
    font-size: 0.8rem;
  }

  .enoughx-index #navbar > ul {
    position: static;
    display: flex;
    flex: 0 0 auto;
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    width: 100%;
    min-width: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition:
      max-height 0.24s ease,
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .enoughx-index.mobile-nav-active #navbar > ul {
    width: 100%;
    max-height: calc(100vh - 86px);
    margin-top: 5px;
    padding: 5px 0 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Index-only no-logo navigation: keep the active home item as the mobile anchor. */
.enoughx-index #navbar {
  gap: 0;
}

@media (max-width: 991px) {
  .enoughx-index #navbar {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    height: 46px;
    max-height: calc(100vh - 20px);
    padding: 5px;
    overflow-x: hidden;
    overflow-y: hidden;
    border-radius: 999px;
  }

  .enoughx-index.mobile-nav-active #navbar {
    height: auto;
    min-height: 46px;
    overflow-y: auto;
    border-radius: 24px;
  }

  .enoughx-index #navbar > ul {
    position: static;
    display: flex;
    flex: 0 0 auto;
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    width: 100%;
    min-width: 0;
    max-height: 36px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: max-height 0.24s ease;
  }

  .enoughx-index #navbar > ul > li {
    display: none;
    width: 100%;
  }

  .enoughx-index #navbar > ul > li:first-child {
    display: block;
  }

  .enoughx-index #navbar .nav-link,
  .enoughx-index #navbar .nav-link:focus {
    justify-content: flex-start;
    width: 100% !important;
    min-height: 34px;
    padding: 0.55rem 0.75rem;
    border-radius: 16px;
    font-size: 0.68rem;
  }

  .enoughx-index #navbar > ul > li:first-child .nav-link {
    padding-right: 3rem;
  }

  .enoughx-index #navbar .nav-link:hover,
  .enoughx-index #navbar .nav-link:focus-visible {
    width: 100% !important;
  }

  .enoughx-index.mobile-nav-active #navbar > ul {
    max-height: calc(100vh - 86px);
    margin-top: 0;
    padding-top: 0;
    overflow-y: auto;
  }

  .enoughx-index.mobile-nav-active #navbar > ul > li {
    display: block;
  }
}

/* Index-only compact mobile navigation: the closed state is represented by the circular toggle. */
@media (max-width: 991px) {
  .enoughx-index .mobile-nav-toggle {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 10000;
    display: grid !important;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(241, 238, 232, 0.28);
    border-radius: 999px;
    color: var(--text-primary, #f5f5f5);
    background: rgba(14, 14, 14, 0.88);
    box-shadow:
      0 10px 26px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
  }

  .enoughx-index .mobile-nav-toggle:hover,
  .enoughx-index .mobile-nav-toggle:focus-visible {
    color: #fff;
    border-color: rgba(241, 238, 232, 0.28);
    background: rgba(14, 14, 14, 0.88);
  }

  .enoughx-index.mobile-nav-active .mobile-nav-toggle,
  .enoughx-index.mobile-nav-active .mobile-nav-toggle:hover,
  .enoughx-index.mobile-nav-active .mobile-nav-toggle:focus-visible {
    color: #fff;
    border-color: var(--surface-brand-secondary, #e74c3c);
    background: var(--surface-brand, #94271b);
  }

  .enoughx-index #header {
    top: 66px;
    right: 12px;
    bottom: auto;
    left: 12px;
    align-items: stretch;
    justify-content: flex-start !important;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .enoughx-index.mobile-nav-active #header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .enoughx-index #navbar {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 88px);
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 24px;
  }

  .enoughx-index #navbar > ul {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    width: 100%;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .enoughx-index #navbar > ul > li {
    display: block;
    width: 100%;
  }

  .enoughx-index #navbar .nav-link,
  .enoughx-index #navbar .nav-link:focus {
    justify-content: flex-start;
    width: 100% !important;
    padding: 0.78rem 0.9rem;
    border-radius: 16px;
    font-size: 0.68rem;
  }

  .enoughx-index #navbar .nav-link:hover,
  .enoughx-index #navbar .nav-link:focus-visible {
    width: 100% !important;
  }

  .enoughx-index #navbar .custom-link {
    margin-left: 0;
    padding-left: 0.9rem !important;
    border-left: 1px solid transparent;
  }
}
