/* ==========================================================================
   Home page hero (loaded only by index.html, after theme-dark.css).
   Eyebrow, headline, glowing button, glass stat card, isometric tile,
   tool strip, and gradient wave. Scoped to body.home.
   ========================================================================== */

/* ---------- Hero ---------- */

.home .hero-x {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-md);
}

.home .eyebrow,
.home .section-label,
.home .glass-card__label,
.home .tool-strip__label {
  margin: 0 0 var(--space-md);
  color: var(--dk-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home .hero-x .hero-x__headline {
  margin: 0 0 var(--space-md);
  font-size: clamp(2.35rem, 7vw + 0.5rem, 4.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.home .hero-x__lede {
  margin: 0;
  max-width: 34rem;
  color: var(--dk-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.home .hero-x__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
}

.home .button-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--dk-blue) 0%, var(--dk-purple) 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 1.5rem rgba(92, 84, 255, 0.55), 0 0.5rem 2rem rgba(124, 58, 237, 0.35);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home .button-glow:hover {
  color: #fff;
  box-shadow: 0 0 2.25rem rgba(92, 84, 255, 0.8), 0 0.5rem 2.5rem rgba(124, 58, 237, 0.5);
  transform: translateY(-0.0625rem);
}

.home .hero-x__question {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  color: var(--dk-text);
  font-weight: 500;
  text-decoration: none;
}

.home .hero-x__question:hover {
  color: var(--dk-link-hover);
}

.home .hero-x__question-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 0.0625rem solid var(--dk-line);
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home .hero-x__question:hover .hero-x__question-icon {
  border-color: var(--dk-link);
  background: rgba(169, 198, 255, 0.14);
}

/* Visual column: glass stat card + glowing isometric tile */

.home .hero-x__visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
}

.home .glass-card {
  position: relative;
  z-index: 2;
  padding: var(--space-lg);
  border-radius: 1.25rem;
  border: 0.0625rem solid var(--dk-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35), inset 0 0.0625rem 0 rgba(255, 255, 255, 0.12);
}

.home .stat-list {
  display: grid;
  gap: var(--space-md);
  margin: 0;
}

.home .stat {
  display: flex;
  flex-direction: column-reverse;
}

.home .stat dt {
  color: var(--dk-muted);
  font-size: 0.9rem;
}

.home .stat dd {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home .glass-card__note {
  margin: var(--space-md) 0 0;
  color: var(--dk-muted);
  font-size: 0.8rem;
}

.home .iso-tile {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  margin-right: 0.75rem;
  perspective: 40rem;
}

.home .iso-tile::before {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 90, 255, 0.55), transparent 65%);
  filter: blur(0.5rem);
}

.home .iso-tile__face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 1.4rem;
  background: linear-gradient(145deg, #4a6bff 0%, #6d4dff 50%, #9b4dff 100%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 2.5rem rgba(110, 90, 255, 0.75),
    0.6rem 0.8rem 0 #2a2a8a,
    0.6rem 0.8rem 1.5rem rgba(0, 0, 0, 0.45),
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.45);
  transform: rotateX(28deg) rotateZ(-24deg);
  color: #fff;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: home-tile-float 6s ease-in-out infinite;
}

.home .iso-tile__face span {
  transform: rotateZ(24deg);
  text-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.35);
}

@keyframes home-tile-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.5rem; }
}

/* Tool strip ("logo row" as text wordmarks, not company logos) */

.home .tool-strip {
  padding-top: var(--space-lg);
  border-top: 0.0625rem solid var(--dk-line);
}

.home .tool-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home .tool-strip__list li {
  margin: 0;
  color: #d7dcef;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.85;
}

.home .tool-strip__list li.tool-strip__more {
  opacity: 1;
}

.home .tool-strip__more a {
  color: var(--dk-muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.home .tool-strip__more a:hover {
  color: var(--dk-text);
  text-decoration: underline;
}

/* Glowing gradient wave (decorative) */

.home .hero-wave {
  margin: var(--space-md) calc(-1 * var(--space-md)) var(--space-xl);
  height: 6rem;
  pointer-events: none;
}

.home .hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home .hero-wave__line,
.home .hero-wave__glow {
  fill: none;
  stroke: url(#wave-gradient);
  stroke-linecap: round;
}

.home .hero-wave__line {
  stroke-width: 2.5;
}

.home .hero-wave__glow {
  stroke-width: 10;
  opacity: 0.45;
  filter: blur(0.5rem);
}

@media (min-width: 40rem) {
  .home .hero-x__visual {
    grid-template-columns: minmax(0, 18rem) auto;
    justify-content: start;
    gap: var(--space-xl);
  }

  .home .iso-tile {
    width: 9rem;
    height: 9rem;
  }
}

@media (min-width: 64rem) {
  .home .hero-x {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    column-gap: var(--space-2xl);
    padding-top: var(--space-2xl);
  }

  .home .tool-strip {
    grid-column: 1 / -1;
    margin-top: var(--space-lg);
  }

  .home .hero-x__visual {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 24rem;
  }

  .home .glass-card {
    justify-self: start;
    width: 17rem;
  }

  .home .iso-tile {
    position: absolute;
    right: 0;
    bottom: 0.5rem;
    width: 10rem;
    height: 10rem;
  }

  .home .iso-tile__face {
    font-size: 2.75rem;
  }

  .home .hero-wave {
    height: 9rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
}


/* Highlighted word in the eyebrow (optional) */
.home .eyebrow .nickname {
  display: inline-block;
  margin: 0 0.15em;
  font-size: 1.85em;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: -0.12em;
  color: #ffffff;
  background: linear-gradient(100deg, #ffffff 0%, #c9d8ff 45%, #d8c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 0.55rem rgba(124, 92, 255, 0.75));
}

@media (forced-colors: active) {
  .home .eyebrow .nickname {
    -webkit-text-fill-color: currentColor;
    background: none;
    filter: none;
  }
}

/* Home motion preferences */
@media (prefers-reduced-motion: reduce) {
  .home .iso-tile__face {
    animation: none;
  }

  .home .button-glow,
  .home .button-glow:hover,
  .home .header-cta,
  .home .hero-x__question-icon {
    transition: none;
    transform: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home .glass-card {
    background: #141a3d;
  }
}

@media (forced-colors: active) {
  .home .button-glow {
    border: 0.125rem solid ButtonText;
  }
}

/* Particle background: soft scrim behind the hero copy (shared particle
   styles live in styles.css and theme-dark.css). */
.home.has-particles .hero-x__copy {
  position: relative;
}

.home.has-particles .hero-x__copy::before {
  content: "";
  position: absolute;
  inset: -2rem -2.5rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 35% 50%, rgba(7, 11, 31, 0.62) 0%, rgba(7, 11, 31, 0.35) 55%, transparent 78%);
}

.home.has-particles .hero-x {
  isolation: isolate;
}

.home .glass-card {
  -webkit-backdrop-filter: blur(1rem) saturate(1.2);
  backdrop-filter: blur(1rem) saturate(1.2);
}

.home .hero-x__question-icon {
  -webkit-backdrop-filter: blur(0.375rem);
  backdrop-filter: blur(0.375rem);
}

/* ==========================================================================
   Brand palette (home page only, colors only)
   Crimson var(--accent) (accents, buttons with light text) · Gunmetal #2B2B2F
   (cards) · Silver #C0C0C4 (text, metallic) · Onyx #0B0B0D (background).
   Only colors are overridden here; fonts, sizes, spacing and layout come
   from the rules above. Crimson is never used for text (too dark on onyx).
   ========================================================================== */

.home.theme-dark {
  --nv-crimson: var(--accent);
  --nv-gunmetal: var(--card);
  --nv-silver: #c0c0c4;
  --nv-onyx: var(--bg);

  --dk-bg: var(--nv-onyx);
  --dk-bg-2: #121215;
  --dk-text: #f2f2f4;           /* 17.6:1 on onyx */
  --dk-muted: var(--nv-silver); /* 10.8:1 on onyx, 6.8:1 on the cards */
  --dk-link: #e2e2e6;
  --dk-link-hover: #ffffff;
  --dk-line: rgba(192, 192, 196, 0.22);
  --dk-glass: rgba(43, 43, 47, 0.55);
  --dk-blue: var(--accent-bright);           /* button gradient start (crimson) */
  --dk-purple: var(--accent-deep);         /* button gradient end (deep crimson) */
  --focus-ring: 0.1875rem solid #e2e2e6;

  background-image:
    radial-gradient(ellipse 60rem 38rem at 85% -5%, rgb(var(--accent-rgb) / 0.42), transparent 60%),
    radial-gradient(ellipse 48rem 32rem at 0% 20%, rgb(var(--accent-rgb) / 0.3), transparent 62%),
    radial-gradient(ellipse 40rem 30rem at 60% 55%, rgb(var(--accent-rgb) / 0.16), transparent 65%),
    linear-gradient(180deg, var(--dk-bg) 0%, var(--dk-bg-2) 55%, var(--dk-bg) 100%);
}

.home.theme-dark .site-header {
  background: rgba(11, 11, 13, 0.72);
}

.home.theme-dark .site-nav a[aria-current="page"] {
  box-shadow: inset 0.25rem 0 0 var(--nv-crimson);
}

.home.theme-dark .section-label {
  color: var(--nv-silver);
}

.home.theme-dark .callout {
  border-left-color: var(--nv-crimson);
  color: #e6e6ea;
}

@media (min-width: 48rem) {
  .home.theme-dark .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -0.125rem 0 var(--nv-crimson);
  }

  .home.theme-dark .header-cta {
    border-color: rgba(192, 192, 196, 0.6);
  }
}

/* Buttons: crimson gradient (via --dk-blue/--dk-purple) with light text */
.home.theme-dark .button-glow {
  color: #f2f2f4;                /* 6.9:1 on the lightest crimson */
  box-shadow: 0 0 1.5rem rgb(var(--accent-rgb) / 0.6), 0 0.5rem 2rem rgb(var(--accent-deep-rgb) / 0.45);
}

.home.theme-dark .button-glow:hover {
  color: #ffffff;
  box-shadow: 0 0 2.25rem rgb(var(--accent-rgb) / 0.8), 0 0.5rem 2.5rem rgb(var(--accent-deep-rgb) / 0.6);
}

.home.theme-dark .button {
  color: #f2f2f4;
  box-shadow: 0 0 1.25rem rgb(var(--accent-rgb) / 0.45);
}

.home.theme-dark .button:hover {
  color: #ffffff;
  box-shadow: 0 0 2rem rgb(var(--accent-rgb) / 0.65);
}

.home.theme-dark .button--secondary {
  border-color: rgba(192, 192, 196, 0.6);
  box-shadow: none;
}

.home.theme-dark .button--secondary:hover {
  background: rgba(43, 43, 47, 0.7);
  box-shadow: none;
}

.home.theme-dark .hero-x__question-icon {
  background: rgba(43, 43, 47, 0.55);
}

.home.theme-dark .hero-x__question:hover .hero-x__question-icon {
  border-color: var(--nv-silver);
  background: rgb(var(--accent-rgb) / 0.4);
}

/* Gunmetal glass cards with silver edges */
.home.theme-dark .glass-card {
  border-color: rgba(192, 192, 196, 0.26);
  background: linear-gradient(160deg, rgba(52, 52, 57, 0.72), rgba(30, 30, 34, 0.62));
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45), inset 0 0.0625rem 0 rgb(var(--accent-rgb) / 0.85);
}

.home.theme-dark .service-list li,
.home.theme-dark .project-card,
.home.theme-dark .callout {
  background: rgba(43, 43, 47, 0.6);
  border-color: rgba(192, 192, 196, 0.24);
}

.home.theme-dark .callout {
  border-left-color: var(--nv-crimson);
}

.home.theme-dark .service-list li:hover,
.home.theme-dark .project-card:hover {
  border-color: rgba(192, 192, 196, 0.55);
  background: rgba(52, 52, 57, 0.7);
}

.home.theme-dark .project-card__media {
  background:
    radial-gradient(circle at 30% 30%, rgb(var(--accent-rgb) / 0.55), transparent 60%),
    linear-gradient(135deg, #2b2b2f, #151518);
  color: #e6e6ea;
}

/* SM tile: crimson face, silver edge, gunmetal depth */
.home.theme-dark .iso-tile::before {
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.6), transparent 65%);
}

.home.theme-dark .iso-tile__face {
  background: linear-gradient(145deg, var(--accent-bright) 0%, var(--nv-crimson) 50%, #4f0f19 100%);
  border-color: rgba(214, 214, 218, 0.6);
  box-shadow:
    0 0 2.5rem rgb(var(--accent-rgb) / 0.7),
    0.6rem 0.8rem 0 #3a3a3f,
    0.6rem 0.8rem 1.5rem rgba(0, 0, 0, 0.45),
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.45);
  color: #f2f2f4;
}

/* Highlighted word: silver metallic with a subtle crimson glow */
.home.theme-dark .eyebrow .nickname {
  color: #ffffff;
  background: linear-gradient(100deg, #ffffff 0%, #d9d9dd 45%, #c8c8cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 0.55rem rgba(170, 30, 50, 0.75));
}

.home.theme-dark .tool-strip__list li {
  color: #d6d6da;
}

/* Wave: silver line with a crimson core (overrides the inline SVG stops) */
.home.theme-dark #wave-gradient stop:nth-child(1) { stop-color: #6e6e74; }
.home.theme-dark #wave-gradient stop:nth-child(2) { stop-color: #c0c0c4; }
.home.theme-dark #wave-gradient stop:nth-child(3) { stop-color: var(--accent-bright); }
.home.theme-dark #wave-gradient stop:nth-child(4) { stop-color: #6e6e74; }

.home.theme-dark .site-footer {
  background: rgba(11, 11, 13, 0.6);
}

/* Particle readability on onyx */
.home.theme-dark.has-particles .hero-x__copy::before {
  background: radial-gradient(ellipse at 35% 50%, rgba(11, 11, 13, 0.62) 0%, rgba(11, 11, 13, 0.35) 55%, transparent 78%);
}

.home.theme-dark.has-particles .section > h2,
.home.theme-dark.has-particles .section > p {
  text-shadow: 0 0 0.75rem rgba(11, 11, 13, 0.9);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home.theme-dark .glass-card {
    background: var(--nv-gunmetal);
  }
}

/* ==========================================================================
   Hero social links (Instagram, X, LinkedIn, GitHub) in Brand colors
   ========================================================================== */

.home .hero-x__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.home .hero-x__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 0.5rem;
  border: 0.0625rem solid rgba(192, 192, 196, 0.3);
  border-radius: 999px;
  background: rgba(43, 43, 47, 0.55);
  color: var(--dk-text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-backdrop-filter: blur(0.375rem);
  backdrop-filter: blur(0.375rem);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.home .hero-x__social-link:hover {
  border-color: var(--nv-silver, #c0c0c4);
  background: rgba(52, 52, 57, 0.75);
  color: #ffffff;
  box-shadow: 0 0 1rem rgb(var(--accent-rgb) / 0.45);
}

.home .hero-x__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.55);
  color: #f2f2f4;
}

/* ==========================================================================
   "Ways to work together" rotating message card
   Without JavaScript (html.no-js) every message shows as a stacked list.
   ========================================================================== */

.home .rotator__slides {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home .rotator__slide + .rotator__slide {
  margin-top: 0.75em;
}

.home .rotator__slide p {
  margin: 0;
}

.home .rotator__title {
  margin-bottom: 0.35em;
}

/* JS on (html.js is set by the inline script in <head>, before first paint):
   stack every slide in one grid cell so the card keeps the tallest message's
   height and only one message is ever visible. Until rotator.js marks a slide
   active, the first one shows, so there is no flash of the full list. */
.js .home .rotator__slides {
  display: grid;
}

.js .home .rotator__slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  /* outgoing message fades out over 0.2 s, then is hidden */
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.js .home .rotator__slide.is-active,
.js .home .rotator:not(.is-ready) .rotator__slide:first-child {
  opacity: 1;
  visibility: visible;
  /* incoming message waits for the fade-out, then fades in over 0.2 s
     (0.4 s total, never two messages visible at once) */
  transition: opacity 0.2s ease 0.2s, visibility 0s linear 0.2s;
}

.no-js .home .rotator__controls {
  display: none;
}

.no-js .home .rotator__slides {
  display: block;
}

.js .home .rotator.is-reduced .rotator__slide,
.js .home .rotator.is-reduced .rotator__slide.is-active {
  transition: none;
}

.home .rotator__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin-top: 0.5rem;
}

.home .rotator__dots {
  display: flex;
  justify-content: center;
  flex-basis: 100%;
  order: -1;
}

.home .rotator__btn,
.home .rotator__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dk-text);
  font: inherit;
  cursor: pointer;
}

.home .rotator__btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 0.0625rem solid rgba(192, 192, 196, 0.3);
  background: rgba(43, 43, 47, 0.55);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.home .rotator__btn:hover {
  border-color: var(--nv-silver, #c0c0c4);
  background: rgb(var(--accent-rgb) / 0.4);
}

.home .rotator__dot {
  flex: 0 1 1.3rem;
  min-width: 0;
  height: 1.5rem;
}

.home .rotator__dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(192, 192, 196, 0.45);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.home .rotator__dot:hover::before {
  background: #e2e2e6;
}

.home .rotator__dot[aria-current="true"]::before {
  width: 1.25rem;
  background: var(--accent-bright);
  box-shadow: 0 0 0.5rem rgb(var(--accent-rgb) / 0.8);
}

.home .rotator__icon-play,
.home .rotator.is-paused .rotator__icon-pause {
  display: none;
}

.home .rotator.is-paused .rotator__icon-play {
  display: block;
}

/* The rotator lives in the hero "At a glance" box. The box keeps its
   original outer size (200/215 x 283px on phones, 272 x 263px from 64rem),
   so only the inner padding and type size are tuned to fit the longest
   message plus the dots and buttons. */
.js .home .glass-card.rotator {
  display: flex;
  flex-direction: column;
  height: 17.7129rem;
  padding: 1rem;
}

.js .home .glass-card .rotator__slides {
  flex: 1 1 auto;
  min-height: 0;
  align-content: center;
}

.home .glass-card .rotator__slide {
  font-size: 0.75rem;
  line-height: 1.42;
  color: #e6e6ea;
}

.home .glass-card .rotator__title {
  margin-bottom: 0.3em;
  color: var(--dk-text);
  font-size: 0.84rem;
  line-height: 1.25;
}

@media (min-width: 64rem) {
  .js .home .glass-card.rotator {
    height: 16.434rem;
    padding: 1.25rem;
  }

  .home .glass-card .rotator__slide {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .hero-x__social-link,
  .home .rotator__btn,
  .home .rotator__dot::before,
  .js .home .rotator__slide,
  .js .home .rotator__slide.is-active {
    transition: none;
  }
}

@media (forced-colors: active) {
  .home .rotator__btn,
  .home .hero-x__social-link {
    border: 0.0625rem solid ButtonText;
  }

  .home .rotator__dot::before {
    background: ButtonText;
  }

  .home .rotator__dot[aria-current="true"]::before {
    background: Highlight;
  }
}

/* ==========================================================================
   Brand wordmark at the top of the hero (Cinzel for the wordmark only),
   crimson network line with five glowing dots, and the tagline.
   ========================================================================== */

.home .hero-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  margin: 0 0 var(--space-lg);
}

.home .hero-x .hero-brand__wordmark {
  margin: 0;
  max-width: none;
  padding-left: 0.2em; /* balances the trailing letter spacing */
  font-family: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
  font-size: clamp(1.85rem, 8.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #d9d9dd;
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e8 38%, #9c9ca2 58%, #d6d6da 80%, #f2f2f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.15rem 0.6rem rgba(0, 0, 0, 0.6));
}

@media (min-width: 64rem) {
  .home .hero-x .hero-brand__wordmark {
    font-size: clamp(1.85rem, 5.9vw, 4rem); /* fits the two-column hero */
  }
}

.home .hero-brand__line {
  display: block;
  width: 100%;
  height: 1.1rem;
  margin-top: 0.4rem;
  overflow: visible;
  filter: drop-shadow(0 0 0.3rem rgba(224, 40, 63, 0.85));
}

.home .hero-brand__tagline {
  margin: 0.55rem 0 0;
  padding-left: 0.42em;
  color: var(--nv-silver, #c0c0c4);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-align: center;
  text-transform: uppercase;
}

.home .iso-tile__logo {
  width: 64%;
  height: 64%;
  transform: rotateZ(24deg);
  filter: drop-shadow(0 0.125rem 0.5rem rgba(0, 0, 0, 0.45));
}

@media (forced-colors: active) {
  .home .hero-x .hero-brand__wordmark {
    -webkit-text-fill-color: CanvasText;
    background: none;
  }
}

/* ---------- Mobile/tablet hero order (single column, below 64rem) ----------
   The rotator box and N tile sit right after the intro and before the
   buttons and social links. The copy wrapper drops out of the grid so its
   two halves can be ordered around the visual; desktop is unchanged. */
@media (max-width: 63.99rem) {
  .home .hero-x__copy { display: contents; }
  .home .hero-x__intro { order: 1; }
  .home .hero-x__visual { order: 2; }
  .home .hero-x__cta { order: 3; }
  .home .tool-strip { order: 4; }
  .home .hero-x__cta > .hero-x__actions { margin-top: 0; }

  .home.has-particles .hero-x__copy::before { content: none; }
  .home.has-particles .hero-x__intro,
  .home.has-particles .hero-x__cta { position: relative; }
  .home.has-particles .hero-x__intro::before,
  .home.has-particles .hero-x__cta::before {
    content: "";
    position: absolute;
    inset: -2rem -2.5rem;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 35% 50%, rgba(11, 11, 13, 0.62) 0%, rgba(11, 11, 13, 0.35) 55%, transparent 78%);
  }
}
