/* Vercel-inspired first-screen direction. Product layout remains below it. */
:root {
  --bg: #000;
  --surface: #080808;
  --text: #ededed;
  --secondary: #999;
  --muted: #777;
  --line: #ffffff1a;
  --accent: #b9d9ff;
}
::selection {
  background: #c1dcff;
  color: #000;
}
.site-header {
  background: #000e;
  border-bottom-color: #222;
}
.header-inner {
  height: 76px;
}
.wordmark {
  color: #fafafa;
  font-weight: 620;
}
.wordmark > span {
  color: #777;
}
nav {
  color: #929292;
}
.header-contact {
  border: 1px solid #363636;
  border-radius: 6px;
  padding: 8px 14px;
  color: #e8e8e8;
  font-size: 13px;
  gap: 20px;
  transition:
    background 0.2s,
    color 0.2s;
}
.header-contact:hover {
  background: #ededed;
  color: #000;
}
.header-contact span {
  color: inherit;
}
.hero.hero-spectrum {
  --light-x: 50%;
  --light-y: 68%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100svh - 76px);
  min-height: 740px;
  max-height: 1050px;
  padding: 0;
  border-inline: 1px solid #ffffff12;
  overflow: hidden;
  background: #000;
}
.hero-grid,
.hero-grid-lit {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center bottom;
  mask-image: linear-gradient(
    180deg,
    transparent 2%,
    #000 42%,
    #000 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 2%,
    #000 42%,
    #000 85%,
    transparent
  );
}
.hero-grid-lit {
  z-index: 0;
  background-image:
    linear-gradient(#74b7ff35 1px, transparent 1px),
    linear-gradient(90deg, #74b7ff35 1px, transparent 1px);
  mask-image: radial-gradient(
    240px circle at var(--light-x) var(--light-y),
    #000,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    240px circle at var(--light-x) var(--light-y),
    #000,
    transparent 100%
  );
  opacity: 0.5;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  text-align: center;
  padding: clamp(62px, 9vh, 110px) 24px 0;
  pointer-events: none;
}
.hero-spectrum .hero-kicker {
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.11em;
  color: #848484;
  gap: 11px;
}
.identity-line {
  height: 1px;
  width: 21px;
  background: #8b8b8b;
}
.hero-spectrum h1 {
  font-size: clamp(64px, 7.6vw, 100px);
  font-weight: 550;
  line-height: 1.13;
  letter-spacing: -0.065em;
  margin: 27px 0 0;
  color: #fff;
}
.hero-spectrum h1 > span {
  background: linear-gradient(180deg, #fafafa 15%, #b3b3b3 105%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: #828282;
  margin: 24px auto 0;
  max-width: 540px;
  animation-delay: 0.15s;
}
.hero-spectrum .hero-actions {
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  pointer-events: auto;
}
.hero-spectrum .hero-contact {
  margin-top: 0;
}
.hero-primary {
  border-color: #b9d9ff70;
  background: #dfeeff;
  color: #080b10;
}
.hero-primary:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}
.hero-path-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 11px 4px;
  color: #a1a6ae;
  font-size: 13px;
}
.hero-path-link:hover { color: #fff; }
.hero-path-link span { color: #71819c; }
.hero-mobile-break {
  display: none;
}
.hero-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  padding: 11px 19px;
  border: 1px solid #ffffff2d;
  border-radius: 6px;
  background: #080808;
  color: #d7d7d7;
  font-size: 14px;
  pointer-events: auto;
  animation-delay: 0.22s;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}
.hero-contact > span {
  font-size: 18px;
  color: #aaa;
  transition: transform 0.25s;
}
.hero-contact:hover {
  border-color: #e0e0e0;
  background: #101010;
  box-shadow: 0 0 22px #bfdfff12;
}
.hero-contact:hover > span {
  transform: translate(2px, -2px);
  color: #fff;
}
.light-stage {
  position: absolute;
  inset: auto -1px 50px;
  height: 36%;
  min-height: 265px;
  pointer-events: none;
  z-index: 1;
}
.light-optics {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.light-bloom {
  position: absolute;
  left: 20%;
  right: 5%;
  top: 6%;
  bottom: -8%;
  background:
    radial-gradient(ellipse at 45% 52%, #718db614, transparent 55%),
    radial-gradient(ellipse at 72% 64%, #5944940c, transparent 60%);
  filter: blur(20px);
}
.ray-glow {
  opacity: 0.5;
}
.spectrum-field {
  --spectrum-start: 87.6deg;
  --spectrum-spread: 4.8deg;
  position: absolute;
  left: 50%;
  top: calc(52% - 22px);
  width: 52%;
  height: 44px;
  transform-origin: 0 50%;
  filter: saturate(0.7);
  pointer-events: none;
}
.spectrum-layer,
.spectrum-ribbon {
  position: absolute;
  inset: 0;
}
.spectrum-ribbon {
  /* Angular interpolation keeps each wavelength radial, with no gaps. */
  background:
    linear-gradient(90deg, #f5faff, #eff7ffcc 6%, #edf5ff59 14%, #edf5ff00 24%),
    conic-gradient(
      from var(--spectrum-start) at 0% 50%,
      #ff5b58 0deg,
      #ff993f calc(var(--spectrum-spread) / 6),
      #ffe363 calc(var(--spectrum-spread) / 3),
      #7ee98c calc(var(--spectrum-spread) / 2),
      #65ddff calc(var(--spectrum-spread) * 2 / 3),
      #668cff calc(var(--spectrum-spread) * 5 / 6),
      #bd83ff var(--spectrum-spread),
      #bd83ff 180deg,
      #ff5b58 180deg
    );
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  mask-image: linear-gradient(
    90deg,
    #000,
    #000 14%,
    #000b 32%,
    #0006 50%,
    #0002 68%,
    transparent 88%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    #000,
    #000 14%,
    #000b 32%,
    #0006 50%,
    #0002 68%,
    transparent 88%
  );
}
.spectrum-core {
  opacity: 0.7;
  filter: blur(0.55px);
}
.spectrum-halo {
  opacity: 0.24;
  filter: blur(4px);
}
.spectrum-haze {
  opacity: 0.12;
  filter: blur(14px);
}
.spectrum-wave {
  mix-blend-mode: screen;
  filter: blur(0.65px) brightness(1.45);
}
.spectrum-wave-band {
  --pulse-radius: 0px;
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Mask the whole colored fan, so the pulse reaches red through violet. */
  mask-image: radial-gradient(
    circle at 0% 50%,
    transparent max(0px, calc(var(--pulse-radius) - 18px)),
    #000 max(0px, calc(var(--pulse-radius) - 5px)),
    #000a calc(var(--pulse-radius) + 3px),
    transparent calc(var(--pulse-radius) + 16px)
  );
  -webkit-mask-image: radial-gradient(
    circle at 0% 50%,
    transparent max(0px, calc(var(--pulse-radius) - 18px)),
    #000 max(0px, calc(var(--pulse-radius) - 5px)),
    #000a calc(var(--pulse-radius) + 3px),
    transparent calc(var(--pulse-radius) + 16px)
  );
}
.light-pulses {
  opacity: 0;
  pointer-events: none;
}
.motion-enabled .light-pulses {
  opacity: 1;
}
.light-aura {
  opacity: 0.85;
}
.hero-baseline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: 29px;
  border-top: 1px solid #ffffff14;
  color: #666;
  font-size: 12px;
}
.hero-baseline > .mono {
  letter-spacing: 0.045em;
}
.hero-baseline > a {
  display: flex;
  align-items: center;
  gap: 23px;
  color: #999;
  font-size: 13px;
}
.hero-baseline > a:hover {
  color: #fff;
}
.hero-baseline > a > span {
  font-size: 17px;
}
.hero-spectrum::before,
.hero-spectrum::after {
  content: "+";
  position: absolute;
  top: 0;
  color: #555;
  font: 17px/1 var(--mono);
  z-index: 3;
}
.hero-spectrum::before {
  left: -5px;
}
.hero-spectrum::after {
  right: -5px;
}
.lighting-idle .light-pulses,
.motion-off .light-pulses {
  opacity: 0;
}
.motion-off .hero-grid-lit {
  opacity: 0.3;
}
.work-section {
  padding-top: 115px;
}
@media (min-width: 1500px) {
  .hero.hero-spectrum {
    min-height: 820px;
  }
  .hero-spectrum h1 {
    font-size: 110px;
  }
  .hero-copy {
    padding-top: 100px;
  }
}
@media (max-width: 1100px) {
  .hero.hero-spectrum {
    min-height: 720px;
  }
  .hero-spectrum h1 {
    font-size: 82px;
  }
  .hero-copy {
    padding-top: 76px;
  }
  .hero-spectrum .hero-kicker {
    font-size: 12px;
  }
  .hero-description {
    font-size: 16px;
  }
}
@media (max-width: 800px) {
  .hero.hero-spectrum {
    min-height: 690px;
  }
  .hero-spectrum h1 {
    font-size: 76px;
  }
  .hero-copy {
    padding-top: 76px;
  }
  .hero-baseline {
    padding-inline: 20px;
  }
  .hero-baseline > .mono {
    font-size: 12px;
    letter-spacing: 0;
  }
  .light-stage {
    height: 32%;
    min-height: 235px;
  }
  .hero-contact {
    margin-top: 25px;
  }
}
@media (max-width: 600px) {
  .header-inner nav > a:nth-child(1),
  .header-inner nav > a:nth-child(2),
  .header-inner nav > a:nth-child(3) {
    display: none;
  }
  .header-inner {
    height: 69px;
  }
  .header-contact {
    font-size: 13px;
    padding: 7px 10px;
    gap: 11px;
  }
  nav {
    gap: 20px;
  }
  .hero.hero-spectrum {
    width: calc(100% - 32px);
    height: calc(100svh - 69px);
    min-height: 650px;
    max-height: 850px;
  }
  .hero-copy {
    padding: 66px 12px 0;
  }
  .hero-spectrum .hero-kicker {
    font-size: 12px;
    letter-spacing: 0.035em;
    gap: 9px;
  }
  .identity-line {
    width: 13px;
  }
  .hero-spectrum h1 {
    width: 100%;
    max-width: 350px;
    margin-inline: auto;
    font-size: clamp(40px, 11.3vw, 48px);
    line-height: 1.22;
    letter-spacing: -0.065em;
    margin-top: 25px;
    overflow-wrap: anywhere;
  }
  .hero-description {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 24px;
  }
  .hero-mobile-break {
    display: block;
  }
  .hero-contact {
    font-size: 14px;
    padding: 10px 17px;
    margin-top: 24px;
    gap: 24px;
  }
  .hero-spectrum .hero-actions {
    flex-direction: column;
    gap: 3px;
  }
  .hero-spectrum .hero-contact {
    margin-top: 0;
  }
  .hero-grid,
  .hero-grid-lit {
    background-size: 54px 54px;
  }
  .hero-grid-lit {
    mask-image: radial-gradient(
      180px circle at var(--light-x) var(--light-y),
      #000,
      transparent
    );
    -webkit-mask-image: radial-gradient(
      180px circle at var(--light-x) var(--light-y),
      #000,
      transparent
    );
  }
  .light-stage {
    min-height: 190px;
    height: 30%;
    left: -31%;
    right: -31%;
    bottom: 54px;
  }
  .hero-baseline {
    height: 55px;
    padding-inline: 15px;
    gap: 17px;
  }
  .hero-baseline > .mono {
    display: none;
  }
  .hero-baseline > a {
    gap: 16px;
    font-size: 12px;
  }
  .work-section {
    padding-top: 78px;
  }
  .hero-contact:hover {
    box-shadow: none;
  }
}
@media (max-width: 370px) {
  nav {
    gap: 15px;
  }
  .hero-spectrum .hero-kicker {
    font-size: 12px;
    letter-spacing: 0;
    gap: 5px;
  }
  .hero-copy {
    padding-top: 58px;
  }
  .hero-spectrum h1 {
    font-size: 53px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero.hero-spectrum {
    min-height: 630px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-enabled) .ray-travel {
    display: none;
  }
}
