/* Shared final control styling */
header .contact-link,
header .tool-link,
header .about-link,
.nav .contact {
  align-items: center;
  border: 0;
  display: inline-flex;
  font: 600 0.84rem Manrope, Arial, sans-serif;
  letter-spacing: -0.035em;
  min-height: 42px;
  padding: 0.75rem 1rem;
  text-transform: none;
}

header .tool-link {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

header .about-link {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.services {
  display: flex;
  flex-direction: column;
  left: 0;
  margin: 0;
  padding: 0.88rem 4vw;
  position: absolute;
  top: 52%;
  transform: translateY(-38%);
  width: min(344px, 28vw);
  z-index: 3;
  background: linear-gradient(90deg, rgba(8, 4, 15, 0.98) 0%, rgba(21, 8, 38, 0.94) 64%, rgba(21, 8, 38, 0) 100%);
  backdrop-filter: none;
  border-top: 0;
}

.services-label,
.services article {
  justify-content: flex-start;
  min-height: 42px;
  padding: 0.8rem 0;
  text-align: left;
  width: 100%;
}

.services-label,
.services h2 {
  font-size: clamp(0.672rem, 0.96vw, 0.88rem);
}

.services-label {
  border-bottom: 1px solid var(--line);
}

.services article {
  border-left: 0;
  border-top: 1px solid var(--line);
}

.studio-note {
  left: 5vw;
  max-width: 340px;
  position: absolute;
  top: 100px;
  z-index: 3;
}

.studio-note span {
  color: #d2afff;
  font: 500 0.62rem "DM Mono", monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.studio-note p {
  color: #e4dfe8;
  font-size: 0.76rem;
  line-height: 1.55;
  margin: 0.65rem 0 0;
}

.intro {
  padding: 4.5rem 5vw 2.4rem;
}

.intro h1 {
  font-size: clamp(4.5rem, 10vw, 9rem);
}

.intro h1.radiance-wordmark {
  font-family: Montserrat, Manrope, Arial, sans-serif;
  font-size: clamp(2.2rem, 6.8vw, 6.5rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.radiance-compact {
  align-items: start;
  display: grid;
  gap: 4vw;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.8fr);
  padding: 0 5vw 4rem;
}

.radiance-copy {
  color: #c9c4ce;
  font-size: 0.86rem;
  line-height: 1.7;
}

.radiance-copy p {
  margin: 0 0 1.1rem;
}

.radiance-copy strong {
  color: var(--white);
}

.radiance-copy .radiance-contact-link {
  background: transparent;
  border-bottom: 1px solid var(--purple);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: #d2afff;
  display: inline-block;
  font: 500 0.65rem "DM Mono", monospace;
  letter-spacing: 0.06em;
  margin-top: 0.6rem;
  padding: 0 0 0.25rem;
  text-align: left;
  text-transform: uppercase;
}

.tool-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.tool-gallery figure {
  background: #111116;
  border: 1px solid #303039;
  margin: 0;
  min-height: 250px;
  position: relative;
}

.tool-gallery img {
  aspect-ratio: 16 / 9;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tool-gallery figcaption {
  background: rgba(7, 7, 10, 0.8);
  bottom: 0;
  color: #d2afff;
  font: 400 0.58rem "DM Mono", monospace;
  left: 0;
  letter-spacing: 0.06em;
  padding: 0.65rem 0.8rem;
  position: absolute;
  text-transform: uppercase;
}

.tool-gallery .asset-missing::before {
  color: #7f7887;
  content: "Add the supplied screenshot to assets";
  font: 400 0.62rem "DM Mono", monospace;
  left: 50%;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.nav .contact {
  background: var(--purple);
  color: #190b2c;
}

.hero > footer {
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero > footer > span:first-child {
  position: static;
  transform: none;
  white-space: nowrap;
}

@media (min-width: 1600px) {
  .services {
    width: min(400px, 24vw);
  }

  .services-label,
  .services article {
    min-height: 48px;
  }

  .content {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .radiance-compact {
    grid-template-columns: minmax(300px, 0.6fr) minmax(0, 2fr);
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  header {
    padding-left: 3.5vw;
    padding-right: 3.5vw;
  }

  header .contact-link,
  header .tool-link,
  header .about-link,
  .nav .contact {
    font-size: 0.76rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .services {
    padding-left: 2.8vw;
    width: min(304px, 29vw);
  }

  .content {
    padding-right: 5vw;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .hero {
    grid-template-rows: 70px 1fr auto 42px;
  }

  header {
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .brand {
    font-size: 1.45rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  header .contact-link,
  header .tool-link,
  header .about-link,
  .nav .contact {
    font-size: 0.68rem;
    min-height: 38px;
    padding: 0.6rem 0.68rem;
  }

  .services {
    padding-left: 3.2vw;
    top: 50%;
    width: min(272px, 34vw);
  }

  .services-label,
  .services article {
    min-height: 38px;
  }

  .content {
    gap: 1rem;
    padding-bottom: 4vh;
    padding-right: 4vw;
  }

  .watch,
  .motion-toggle,
  .sound-toggle {
    font-size: 0.56rem;
    gap: 0.65rem;
  }

  .radiance-compact {
    gap: 2.5vw;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .tool-gallery {
    gap: 0.7rem;
  }

  .tool-gallery figure {
    min-height: 190px;
  }
}

@media (max-width: 700px) {
  header .contact-link,
  header .tool-link,
  header .about-link,
  .nav .contact {
    font-size: 0.68rem;
    min-height: 40px;
    padding: 0.66rem 0.64rem;
  }

  .studio-note {
    left: 7vw;
    max-width: 260px;
    top: 82px;
  }

  .services {
    background: linear-gradient(90deg, rgba(8, 4, 15, 0.98), rgba(21, 8, 38, 0.72));
    left: auto;
    margin: 0 7vw;
    padding: 0;
    position: relative;
    top: auto;
    transform: none;
    width: auto;
  }

  .services-label,
  .services article {
    justify-content: flex-start;
    min-height: 34px;
    padding: 0.64rem 0.52rem !important;
    text-align: left;
  }

  .services-label,
  .services h2 {
    font-size: 0.76rem;
  }

  .intro {
    padding: 4rem 7vw 2rem;
  }

  .radiance-compact {
    display: block;
    padding: 0 4vw 3rem;
  }

  .radiance-copy {
    margin-bottom: 2rem;
  }

  .tool-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero {
    grid-template-rows: 72px 1fr auto auto;
  }

  header {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  header .brand {
    font-size: 1.25rem;
  }

  .header-actions {
    gap: 0.2rem;
  }

  header .contact-link,
  header .tool-link,
  header .about-link {
    font-size: 0.56rem;
    min-height: 36px;
    padding: 0.5rem 0.42rem;
  }

  .content {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    justify-content: flex-end;
    min-height: 330px;
    padding: 6vh 5vw 2.2rem;
  }

  .watch,
  .motion-toggle,
  .sound-toggle {
    font-size: 0.52rem;
    gap: 0.45rem;
  }

  .services {
    margin-left: 5vw;
    margin-right: 5vw;
  }

  footer {
    min-height: 42px;
    padding-bottom: 0.7rem;
    padding-top: 0.7rem;
  }

  .hero > footer > span:first-child {
    font-size: 0.48rem;
    max-width: 88vw;
    white-space: nowrap;
    width: auto;
  }

  .intro h1 {
    font-size: clamp(3.8rem, 21vw, 5.2rem);
  }

  .intro h1.radiance-wordmark {
    font-size: clamp(1.55rem, 8.5vw, 2.5rem);
    letter-spacing: 0.12em;
  }

  .tool-gallery figure {
    min-height: 180px;
  }
}

/* Restored horizontal services panel for tablet and desktop. */
@media (min-width: 701px) {
  .services {
    backdrop-filter: blur(6px);
    background: linear-gradient(90deg, rgba(13, 6, 22, 0.92), rgba(15, 5, 29, 0.72));
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 0.55fr repeat(3, 1fr);
    left: auto;
    margin: 0 5vw;
    padding: 0;
    position: relative;
    top: auto;
    transform: none;
    width: auto;
  }

  .services-label,
  .services article {
    align-items: center;
    justify-content: center;
    min-height: 61px;
    padding: 0.8rem 1.28vw;
    text-align: center;
  }

  .services-label {
    border-bottom: 0;
  }

  .services article {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .services-label,
  .services h2 {
    font-size: clamp(0.672rem, 0.96vw, 0.88rem);
  }
}

.motion-toggle,
.sound-toggle {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 36px;
}

.motion-toggle i,
.sound-toggle i {
  display: block;
  margin: 0;
  position: relative;
}

.motion-toggle i {
  background: linear-gradient(90deg, #fff 0 34%, transparent 34% 66%, #fff 66% 100%);
  height: 17px;
  width: 12px;
}

.motion-toggle[aria-pressed="true"] i {
  background: #fff;
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
  height: 18px;
  width: 16px;
}

.sound-toggle i {
  background: transparent;
  height: 22px;
  transform: translateX(-1px);
  width: 25px;
}

.sound-toggle[aria-pressed="false"]::after {
  background: #fff;
  content: "";
  border-radius: 999px;
  height: 3px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 28px;
}

.sound-icon .speaker-box,
.sound-icon .speaker-cone,
.sound-icon .sound-wave {
  display: block;
  position: absolute;
}

.sound-icon .speaker-box {
  background: #fff;
  border-radius: 2px 0 0 2px;
  height: 8px;
  left: 1px;
  top: 7px;
  width: 7px;
}

.sound-icon .speaker-cone {
  background: #fff;
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 66%);
  height: 18px;
  left: 7px;
  top: 2px;
  width: 10px;
}

.sound-icon .sound-wave {
  border: 2px solid transparent;
  border-right-color: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.sound-icon .wave-one {
  height: 8px;
  left: 14px;
  width: 5px;
}

.sound-icon .wave-two {
  height: 14px;
  left: 15px;
  width: 8px;
}

.sound-icon .wave-three {
  height: 20px;
  left: 16px;
  width: 11px;
}

html,
body {
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c495ff;
  outline-offset: 3px;
}
/* Compact Vimeo mark used by the external reel link. */
.watch .vimeo-mark {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
  transform: translateY(-0.06rem) rotate(-8deg);
}
