:root {
  color-scheme: dark;
  --ink: #070708;
  --ivory: #f3efe6;
  --lime: #d6ff4a;
  --muted: #c4beb4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5.5rem;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: Outfit, system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--lime);
  color: #141311;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #070708;
}

::-webkit-scrollbar-thumb {
  background: #2c2c2a;
  border-radius: 99px;
}

.font-display {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
}

.js body {
  overflow: hidden;
}

.js.is-ready body {
  overflow: auto;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--ivory);
}

html:not(.js) #loader {
  animation: loader-out 0.9s cubic-bezier(0.77, 0, 0.18, 1) 2.6s forwards;
}

@keyframes loader-out {
  to {
    transform: translateY(-105%);
    visibility: hidden;
  }
}

.loader-ring {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  transform-origin: center;
  transform: rotate(-90deg);
  animation: draw 1.15s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

#header.is-scrolled,
#header.menu-open {
  background: rgba(7, 7, 8, 0.94);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(243, 239, 230, 0.08);
}

.brand-mark {
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgba(214, 255, 74, 0.16));
  transition: transform 0.35s ease, filter 0.3s ease;
}

.brand-orbit {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-z {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover .brand-mark {
  filter: drop-shadow(0 7px 16px rgba(214, 255, 74, 0.3));
  transform: scale(1.04);
}

a:hover .brand-orbit {
  transform: rotate(-24deg);
}

a:hover .brand-z {
  transform: translateX(1px);
}

.brand-word {
  color: var(--ivory);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.brand-word strong {
  font-weight: 600;
}

.brand-word span {
  color: var(--muted);
  font-weight: 400;
}

#header nav a {
  position: relative;
}

#header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

#header nav a:hover::after,
#header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

#menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #070708;
  opacity: 0;
  visibility: hidden;
  padding: 7rem 1.5rem 2rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#menu.is-open {
  opacity: 1;
  visibility: visible;
}

#menu a {
  display: block;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#menu.is-open a {
  transform: none;
  opacity: 1;
}

#menu.is-open a:nth-child(2) { transition-delay: 0.05s; }
#menu.is-open a:nth-child(3) { transition-delay: 0.1s; }
#menu.is-open a:nth-child(4) { transition-delay: 0.15s; }
#menu.is-open a:nth-child(5) { transition-delay: 0.2s; }

#progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.grid-fade {
  background-image:
    linear-gradient(to right, rgba(243, 239, 230, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 239, 230, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 18%, transparent 74%);
}

.hero-glow {
  background:
    radial-gradient(ellipse 50% 42% at 86% 18%, rgba(214, 255, 74, 0.16), transparent 62%),
    radial-gradient(ellipse 38% 32% at 0% 86%, rgba(243, 239, 230, 0.05), transparent 70%);
}

.orbit {
  animation: orbit 56s linear infinite;
}

.orbit-inner {
  animation: orbit 36s linear infinite reverse;
}

@keyframes orbit {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee.fast {
  animation-duration: 28s;
}

.marquee.reverse {
  animation-direction: reverse;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
}

.marquee-wrap:hover .marquee {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.clarity-section {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 10vw, 9rem) 1.5rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(214, 255, 74, 0.48), transparent 23rem),
    var(--ivory);
  color: #141311;
}

.clarity-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1420px);
  margin: 0 auto;
}

.clarity-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
}

.clarity-kicker {
  align-self: start;
  padding-top: 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.clarity-heading h2 {
  max-width: 12em;
  font-size: clamp(2.7rem, 5.7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.clarity-heading h2 em {
  color: #789900;
}

.clarity-heading > p:last-child {
  grid-column: 2;
  max-width: 42rem;
  color: #65615a;
  font-size: 1rem;
  line-height: 1.65;
}

.clarity-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 3.5rem;
}

.clarity-card {
  position: relative;
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid rgba(20, 19, 17, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.38);
  color: #141311;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, translate 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.clarity-card:first-child {
  background: var(--lime);
  border-color: var(--lime);
}

.clarity-card:hover,
.clarity-card:focus-visible {
  border-color: #141311;
  background: #141311;
  color: var(--ivory);
  translate: 0 -0.5rem;
}

.clarity-number {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.65rem;
  opacity: 0.65;
}

.clarity-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 2.5rem;
}

.clarity-card-copy small {
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  opacity: 0.58;
}

.clarity-card-copy strong {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.clarity-card-copy > span {
  max-width: 24rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.64;
}

.clarity-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.1rem;
  transition: transform 0.35s ease;
}

.clarity-card:hover .clarity-arrow {
  transform: translate(0.2rem, -0.2rem);
}

.clarity-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.8rem;
  padding: 1rem 1rem 1rem 1.35rem;
  border-radius: 999px;
  background: #141311;
  color: var(--ivory);
}

.clarity-cta p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
}

.clarity-cta p span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(214, 255, 74, 0.1);
}

.clarity-cta button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #141311;
  font: 600 0.8rem/1 Outfit, system-ui, sans-serif;
  cursor: pointer;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.quote-stack {
  display: grid;
}

.quote-stack > article {
  grid-area: 1 / 1;
}

.quote-stack > article[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.quote-tab {
  width: 2rem;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(243, 239, 230, 0.28);
  transition: width 0.35s ease, background-color 0.35s ease;
}

.quote-tab.is-active {
  width: 3.25rem;
  background: var(--lime);
}

.type-btn {
  border: 1px solid rgba(243, 239, 230, 0.22);
  color: var(--ivory);
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.type-btn.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: #141311;
}

.cta-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 10px 32px -14px rgba(214, 255, 74, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.48) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.cta-primary:hover {
  box-shadow: 0 14px 38px -12px rgba(214, 255, 74, 0.85);
}

.cta-primary:hover::before {
  transform: translateX(130%);
}

.field {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
}

.field::placeholder {
  color: rgba(243, 239, 230, 0.35);
}

.field:focus,
.field:focus-visible {
  outline: none;
  border-bottom-color: var(--lime);
}

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.45s ease;
}

.link-underline:hover {
  background-size: 100% 1px;
}

#floating-contact {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(214, 255, 74, 0.45);
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.88);
  color: var(--ivory);
  font: 500 0.82rem/1 Outfit, system-ui, sans-serif;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transform: translateY(5rem);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.3s ease, color 0.3s ease;
}

#floating-contact.is-visible {
  transform: none;
  opacity: 1;
}

#floating-contact:hover {
  background: var(--lime);
  color: #141311;
}

.floating-contact-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(214, 255, 74, 0.55);
  animation: contact-pulse 2s infinite;
}

#floating-contact:hover .floating-contact-dot {
  background: #141311;
}

@keyframes contact-pulse {
  70% { box-shadow: 0 0 0 8px rgba(214, 255, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 255, 74, 0); }
}

#contact-dialog {
  width: min(94vw, 940px);
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 1px solid rgba(214, 255, 74, 0.2);
  border-radius: 1.35rem;
  background: #101011;
  color: var(--ivory);
  color-scheme: dark;
  overflow: hidden;
  box-shadow:
    0 42px 140px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(214, 255, 74, 0.04);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

#contact-dialog[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  #contact-dialog[open] {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

#contact-dialog::backdrop {
  background: rgba(3, 3, 4, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

#contact-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  #contact-dialog[open]::backdrop {
    opacity: 0;
  }
}

.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: min(620px, calc(100svh - 2rem));
}

.dialog-accent {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 44%;
  height: 58%;
  background:
    radial-gradient(circle at 0 100%, rgba(214, 255, 74, 0.18), transparent 58%),
    linear-gradient(135deg, transparent 35%, rgba(214, 255, 74, 0.035) 35.5%, transparent 36%);
  pointer-events: none;
}

.dialog-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 5;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(243, 239, 230, 0.16);
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.06);
  color: var(--ivory);
  font: 300 1.5rem/1 Outfit, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.dialog-close:hover {
  border-color: var(--lime);
  background: rgba(214, 255, 74, 0.1);
  transform: rotate(5deg);
}

.dialog-intro,
.dialog-form {
  position: relative;
  z-index: 2;
}

.dialog-intro {
  display: flex;
  flex-direction: column;
  padding: 2.35rem;
  border-right: 1px solid rgba(243, 239, 230, 0.08);
  border-radius: 1.2rem 0 0 1.2rem;
  background:
    linear-gradient(rgba(243, 239, 230, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 0 100%, rgba(214, 255, 74, 0.14), transparent 35%),
    #0b0b0c;
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: var(--ivory);
}

.dialog-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.dialog-brand .brand-word {
  color: var(--ivory);
}

.dialog-brand .brand-word span {
  color: var(--muted);
}

.dialog-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dialog-eyebrow span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(214, 255, 74, 0.08);
}

.dialog-intro h2 {
  max-width: 7.5em;
  margin-top: 0.9rem;
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.dialog-intro h2 em {
  display: block;
  color: var(--lime);
}

.dialog-copy {
  max-width: 28rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.dialog-promise {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.4rem;
  border-top: 1px solid rgba(243, 239, 230, 0.1);
}

.dialog-promise span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.1);
  color: var(--muted);
  font-size: 0.72rem;
}

.dialog-promise strong {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 1px solid rgba(214, 255, 74, 0.28);
  border-radius: 50%;
  color: var(--lime);
  font-size: 0.58rem;
  font-weight: 600;
}

.dialog-email {
  margin-top: 1.1rem;
  color: #89857d;
  font-size: 0.7rem;
}

.dialog-email a {
  color: var(--ivory);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dialog-form {
  align-self: center;
  padding: 4.4rem 2.6rem 2.4rem;
  background:
    radial-gradient(circle at 100% 100%, rgba(214, 255, 74, 0.05), transparent 30%),
    #101011;
}

.dialog-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(243, 239, 230, 0.1);
}

.dialog-form-heading p {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.4rem;
}

.dialog-form-heading span {
  color: #7f7b74;
  font-size: 0.68rem;
}

.dialog-label {
  color: #9f9a91;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dialog-field {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 0.65rem;
  background: rgba(243, 239, 230, 0.045);
  color: var(--ivory);
  font: 400 0.9rem/1.4 Outfit, system-ui, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dialog-field::placeholder {
  color: #66635e;
}

.dialog-field:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(214, 255, 74, 0.08);
}

#contact-dialog .type-btn {
  border-color: rgba(243, 239, 230, 0.14);
  color: #aaa59c;
  font-size: 0.72rem;
  padding: 0.45rem 0.7rem;
}

#contact-dialog .type-btn.is-active {
  border-color: var(--lime);
  background: var(--lime);
  color: #141311;
}

#contact-dialog .cta-primary {
  background: var(--lime) !important;
  color: #141311 !important;
  box-shadow: 0 14px 34px -14px rgba(214, 255, 74, 0.62);
}

.dialog-privacy {
  margin-top: 0.1rem;
  color: #77736c;
  font-size: 0.68rem;
  text-align: center;
}

.dialog-service-select {
  display: none;
}

#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
}

#cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--lime);
}

#cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(243, 239, 230, 0.45);
}

.device-browser,
.device-phone {
  box-shadow: 0 30px 80px -28px rgba(0, 0, 0, 0.85);
}

.scroll-line {
  transform-origin: left center;
  animation: stretch 1.8s ease-in-out infinite;
}

@keyframes stretch {
  0%, 100% { transform: scaleX(0.35); }
  50% { transform: scaleX(1); }
}

@media (max-width: 380px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    justify-content: center;
  }

}

.mask-title {
  line-height: 0.92;
}

.mask-line {
  display: block;
  overflow: hidden;
  padding: 0.28em 0.08em 0.34em;
  margin-bottom: -0.22em;
}

.mask-line:last-child {
  margin-bottom: 0;
}

.cycle-mask {
  display: block;
  height: 1.4em;
  overflow: hidden;
  line-height: 1.3;
}

.hero-crafting {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
}

#cycle-word {
  line-height: 1.3;
  white-space: nowrap;
}

#ai-stack {
  display: grid;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  #ai-stack {
    width: 52%;
  }

  #ai-stack .ai-beat {
    grid-area: 1 / 1;
  }

  .js #ai-stack .ai-beat:not(:first-child) {
    opacity: 0;
  }
}

.ai-system-visual {
  position: absolute;
  top: 50%;
  right: 2.5%;
  z-index: 1;
  width: min(47vw, 650px);
  transform: translateY(-48%);
}

.ai-system-visual svg {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: system-float 6s ease-in-out infinite;
}

.ai-visual-glow {
  position: absolute;
  inset: 16% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 38%, rgba(138, 125, 255, 0.16), transparent 36%),
    radial-gradient(circle at 35% 72%, rgba(214, 255, 74, 0.1), transparent 42%);
  filter: blur(24px);
}

.system-frame,
.system-browser rect,
.system-browser path,
.system-browser circle,
.system-phone rect,
.system-phone circle,
.system-phone path,
.system-ai-core circle,
.system-ai-core path {
  fill: rgba(7, 7, 8, 0.74);
  stroke: url("#system-stroke");
  stroke-width: 1.15;
}

.system-frame {
  stroke-width: 1.3;
  stroke-dasharray: 10 8;
}

.system-grid {
  fill: none;
  stroke: rgba(243, 239, 230, 0.07);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.system-browser rect:not(:first-child),
.system-phone rect:not(:first-child) {
  fill: rgba(243, 239, 230, 0.025);
  stroke: rgba(243, 239, 230, 0.18);
}

.system-browser circle {
  fill: rgba(243, 239, 230, 0.18);
  stroke: none;
}

.system-browser .system-accent-fill,
.system-phone .system-accent-fill {
  fill: rgba(214, 255, 74, 0.13);
  stroke: #d6ff4a;
}

.system-connector {
  fill: none;
  stroke: url("#system-stroke");
  stroke-width: 1.5;
  stroke-dasharray: 7 7;
  animation: connector-flow 12s linear infinite;
}

.system-node {
  fill: #d6ff4a;
  stroke: rgba(214, 255, 74, 0.28);
  stroke-width: 8;
  animation: node-pulse 2.4s ease-in-out infinite;
}

.system-node.node-b { animation-delay: 0.4s; }
.system-node.node-c { animation-delay: 0.8s; }

.system-ai-core circle:first-child {
  fill: rgba(138, 125, 255, 0.08);
  stroke: #8a7dff;
  stroke-dasharray: 5 5;
  transform-origin: 310px 354px;
  animation: core-spin 16s linear infinite;
}

.system-ai-core circle:nth-child(2) {
  fill: #d6ff4a;
  stroke: none;
}

.ai-system-visual text {
  fill: rgba(243, 239, 230, 0.48);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.ai-system-visual .system-ai-core text {
  fill: var(--ink);
  letter-spacing: 0;
}

.ai-visual-caption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: -0.35rem;
  padding-right: 1.8rem;
  color: rgba(243, 239, 230, 0.44);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.ai-visual-caption span {
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, #8a7dff, #d6ff4a);
}

@keyframes system-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes connector-flow {
  to { stroke-dashoffset: -140; }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes core-spin {
  to { transform: rotate(360deg); }
}

#ai-bar {
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: #d6ff4a;
}

.belief-word {
  opacity: 0.28;
}

.independent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 999px;
  background: rgba(243, 239, 230, 0.035);
}

.independent-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #141311;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.independent-badge p {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.independent-badge strong {
  font-size: 0.74rem;
  font-weight: 500;
}

.independent-badge small {
  color: var(--muted);
  font-size: 0.62rem;
}

#process-line {
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: #d6ff4a;
}

.footer-word {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: rgba(243, 239, 230, 0.07);
  padding-inline: 1.5vw;
  font-size: 11.6vw;
  line-height: 0.78;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .device-browser { transform: rotate(-6deg); }
  .device-phone { transform: rotate(7deg); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee,
  .orbit,
  .orbit-inner,
  .scroll-line,
  .loader-ring,
  .floating-contact-dot,
  .ai-system-visual svg,
  .system-connector,
  .system-node,
  .system-ai-core circle:first-child {
    animation: none;
  }

  .orbit,
  .orbit-inner {
    transform: translateY(-50%);
  }

  .js [data-reveal],
  .belief-word,
  #ai-stack .ai-beat {
    opacity: 1;
    transform: none;
  }

  #loader {
    display: none;
  }

  #menu a {
    transform: none;
    opacity: 1;
    transition: none;
  }

  #contact-dialog {
    transition: none;
  }
}

@media (max-width: 1023px) {
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  #header nav[aria-label="Primary"],
  #header .header-cta {
    display: none;
  }

  #header .nav-toggle {
    display: flex;
  }
}

@media (min-width: 821px) and (max-height: 720px) {
  .dialog-shell {
    min-height: 0;
  }

  .dialog-intro {
    padding: 1.6rem 1.8rem;
  }

  .dialog-eyebrow {
    margin-top: 1.75rem;
  }

  .dialog-intro h2 {
    max-width: 10em;
    margin-top: 0.65rem;
    font-size: clamp(2.25rem, 4vw, 3.2rem);
  }

  .dialog-copy {
    margin-top: 0.7rem;
    font-size: 0.76rem;
  }

  .dialog-promise {
    margin-top: 0.85rem;
  }

  .dialog-promise span {
    padding: 0.42rem 0;
  }

  .dialog-email {
    margin-top: 0.7rem;
  }

  .dialog-form {
    padding: 3.5rem 2rem 1.5rem;
  }

  .dialog-form-heading {
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
  }

  .dialog-form fieldset,
  .dialog-form > label {
    margin-top: 0.8rem;
  }

  .dialog-field {
    padding: 0.62rem 0.75rem;
  }

  .dialog-form textarea.dialog-field {
    min-height: 4.4rem;
  }

  .dialog-form button[type="submit"] {
    margin-top: 0.9rem;
    padding-block: 0.75rem;
  }
}

@media (max-height: 620px) {
  .dialog-copy,
  .dialog-promise,
  .dialog-email {
    display: none;
  }

  .dialog-eyebrow {
    margin-top: 1rem;
  }

  .dialog-intro h2 {
    max-width: 8em;
    font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  }

  .dialog-service-chips {
    display: none;
  }

  .dialog-service-select {
    display: block;
    margin-top: 0.4rem;
  }

  .dialog-form {
    padding-block: 3rem 1rem;
  }
}

@media (max-width: 820px) {
  .clarity-heading {
    grid-template-columns: 1fr;
  }

  .clarity-heading > p:last-child {
    grid-column: auto;
  }

  .clarity-paths {
    grid-template-columns: 1fr;
  }

  .clarity-card {
    min-height: 14rem;
  }

  .clarity-cta {
    align-items: stretch;
    flex-direction: column;
    border-radius: 1.2rem;
  }

  .clarity-cta button {
    justify-content: center;
  }

  #contact-dialog {
    width: min(94vw, 680px);
    max-height: calc(100svh - 1rem);
  }

  .dialog-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dialog-intro {
    padding: 1.7rem;
    border-right: 0;
    border-bottom: 1px solid rgba(243, 239, 230, 0.08);
    border-radius: 1.2rem 1.2rem 0 0;
  }

  .dialog-eyebrow {
    margin-top: 1.6rem;
  }

  .dialog-intro h2 {
    max-width: 12em;
    font-size: clamp(2.3rem, 8vw, 3.2rem);
  }

  .dialog-intro h2 em {
    display: inline;
  }

  .dialog-copy,
  .dialog-promise {
    display: none;
  }

  .dialog-form {
    padding: 2rem 1.7rem 1.6rem;
  }

  .dialog-close {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
}

@media (max-width: 820px) and (max-height: 620px) {
  .dialog-intro {
    display: none;
  }

  .dialog-form {
    padding: 3.2rem 1.25rem 0.8rem;
  }
}

@media (max-width: 639px) {
  #floating-contact {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  #contact-dialog {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 100svh;
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 1.2rem 1.2rem 0 0;
  }

  .dialog-intro {
    padding: 1.35rem;
  }

  .dialog-intro h2 {
    padding-right: 2rem;
    font-size: 2.05rem;
  }

  .dialog-eyebrow {
    margin-top: 1.6rem;
  }

  .dialog-email {
    margin-top: 0.9rem;
  }

  .dialog-form {
    padding: 1.15rem 1.25rem 0.9rem;
  }

  .dialog-form-heading {
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
  }

  .dialog-form-heading span {
    display: none;
  }

  #contact-dialog .type-btn {
    font-size: 0.68rem;
    padding: 0.4rem 0.62rem;
  }

  .dialog-form .grid {
    gap: 0.7rem;
  }

  .dialog-form fieldset,
  .dialog-form > label {
    margin-top: 0.8rem;
  }

  .dialog-field {
    padding: 0.65rem 0.75rem;
  }

  .dialog-form textarea.dialog-field {
    min-height: 4.25rem;
  }

  .dialog-service-chips {
    display: none;
  }

  .dialog-service-select {
    display: block;
    margin-top: 0.4rem;
  }

  .dialog-form button[type="submit"] {
    margin-top: 0.9rem;
    padding-block: 0.75rem;
  }

  .dialog-privacy {
    margin-top: -0.15rem;
  }
}
