:root {
  color-scheme: dark;
  font-family: Inter, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --bg: #050505;
  --surface: #0d0d11;
  --text: #f1eee8;
  --muted: rgba(241, 238, 232, 0.66);
  --muted-soft: rgba(241, 238, 232, 0.38);
  --line: rgba(241, 238, 232, 0.14);
  --line-strong: rgba(241, 238, 232, 0.24);
  --accent: #5b78ff;
  --green: #80f7b4;
  --amber: #f2c46d;
  --rose: #ff7b98;
  --font-serif: "Newsreader", serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pointer-x: 50vw;
  --pointer-y: 50vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body,
#root {
  min-height: 100vh;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
}

body,
button,
input,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

.site-frame {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(128, 247, 180, 0.05), transparent 22rem),
    linear-gradient(245deg, rgba(255, 123, 152, 0.045), transparent 24rem),
    var(--bg);
  color: var(--text);
  isolation: isolate;
}

.site-frame::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(241, 238, 232, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(241, 238, 232, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at var(--pointer-x) var(--pointer-y), #000 0, transparent 36rem);
  animation: gridDrift 18s linear infinite;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.12) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.14) 0 0.7px, transparent 0.8px);
  background-size: 7px 7px, 9px 9px, 11px 11px;
  mix-blend-mode: soft-light;
}

.masthead {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1520px);
  padding: 1rem 1.2rem;
  transform: translate(-50%);
}

.masthead__brand,
.masthead__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__brand span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--text);
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.masthead__link::after,
.product__link::before,
.contact__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.22);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.masthead__link:hover::after,
.masthead__link:focus-visible::after,
.product__link:hover::before,
.product__link:focus-visible::before,
.contact__link:hover::after,
.contact__link:focus-visible::after {
  transform: scaleX(1);
}

.site {
  width: min(100%, 1520px);
  margin: 0 auto;
  padding: 6.5rem 1.2rem 3rem;
}

.section {
  position: relative;
  padding: 8rem 0;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 92svh;
  padding-top: 4rem;
}

.hero__grid,
.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 1.4rem;
  row-gap: 1.25rem;
  width: 100%;
}

.section-mark {
  grid-column: 1 / span 3;
  align-self: start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.section-mark em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--muted);
}

.hero__title {
  grid-column: 2 / span 10;
  max-width: 11.8ch;
  margin: 0;
  font-size: 7.1rem;
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: 0;
}

.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  white-space: nowrap;
}

.split-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 1.05em, 0) rotate(3deg);
  filter: blur(8px);
  transition:
    opacity 0.78s var(--ease),
    transform 0.78s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--delay);
}

[data-reveal="words"].is-visible .split-word {
  opacity: 1;
  transform: translateZ(0) rotate(0);
  filter: blur(0);
}

[data-reveal="block"] {
  opacity: 0;
  transform: translate3d(0, 2.3rem, 0) skewY(1deg);
  filter: blur(12px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.92s var(--ease);
}

[data-reveal="block"].is-visible {
  opacity: 1;
  transform: translateZ(0) skewY(0);
  filter: blur(0);
}

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

.hero__brand-mark {
  position: absolute;
  right: -5.5rem;
  bottom: 6rem;
  width: 35rem;
  opacity: 0.09;
  filter: grayscale(1) contrast(1.3);
  transform: translate3d(calc((var(--pointer-x) - 50vw) * -0.015), calc((var(--pointer-y) - 50vh) * -0.01), 0);
}

.hero__rail {
  grid-column: 9 / span 3;
  align-self: end;
  display: grid;
  gap: 0.75rem;
  max-width: 13rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__rail span {
  position: relative;
  padding-left: 1.5rem;
}

.hero__rail span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  animation: railPulse 2.8s ease-in-out infinite;
}

.hero__rail span:nth-child(2)::before {
  animation-delay: 0.32s;
}

.hero__rail span:nth-child(3)::before {
  animation-delay: 0.64s;
}

.products__list {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3rem;
}

.product {
  position: relative;
  max-width: 32rem;
  min-height: 15rem;
  overflow: hidden;
  padding: 1.3rem 1.1rem 1.2rem 0;
  border-top: 1px solid var(--line);
  transition:
    border-color 0.28s var(--ease),
    transform 0.28s var(--ease);
}

.product:hover {
  border-color: var(--line-strong);
  transform: translate3d(0, -0.35rem, 0);
}

.product__glare {
  position: absolute;
  inset: -20%;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(128, 247, 180, 0.13), transparent 16rem);
  transition: opacity 0.28s var(--ease);
}

.product:hover .product__glare {
  opacity: 1;
}

.product--1 {
  grid-column: 1 / span 4;
}

.product--2 {
  grid-column: 6 / span 4;
  margin-top: 5.5rem;
}

.product__name {
  margin: 0;
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0;
}

.product__sentence {
  max-width: 25ch;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.product__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.3rem;
  margin-top: 1.35rem;
  padding-bottom: 0.25rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.product__link::after {
  content: "->";
  color: var(--green);
  transition: transform 0.26s var(--ease);
}

.product__link:hover::after,
.product__link:focus-visible::after {
  transform: translate3d(4px, -2px, 0);
}

.studio__body {
  grid-column: 4 / span 8;
  display: grid;
  gap: 1.8rem;
}

.copy-block {
  display: grid;
  gap: 1rem;
}

.copy-block p {
  margin: 0;
  max-width: 35rem;
  font-size: 1.38rem;
  line-height: 1.38;
}

.copy-block p:not(:first-child) {
  color: var(--muted);
}

.studio__copy p:first-child {
  color: var(--text);
  font-size: 2rem;
  line-height: 1.13;
}

.result-stack {
  display: grid;
  gap: 0.55rem;
  max-width: 34rem;
}

.result-stack span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--line);
  background: rgba(241, 238, 232, 0.035);
  font-size: 1.2rem;
  font-weight: 700;
  transition:
    border-color 0.28s var(--ease),
    transform 0.28s var(--ease),
    background-color 0.28s var(--ease);
}

.result-stack span::before {
  content: "";
  position: absolute;
  left: 1rem;
  width: 0.64rem;
  height: 0.64rem;
  background: var(--green);
  transform: rotate(45deg);
  animation: resultBlink 2.8s ease-in-out infinite;
}

.result-stack span:nth-child(2)::before {
  background: var(--amber);
  animation-delay: 0.32s;
}

.result-stack span:nth-child(3)::before {
  background: var(--rose);
  animation-delay: 0.64s;
}

.result-stack span:hover {
  border-color: var(--line-strong);
  background: rgba(241, 238, 232, 0.055);
  transform: translate3d(0.4rem, 0, 0);
}

.about__body {
  grid-column: 6 / span 5;
  max-width: 35rem;
}

.about__body p:last-child {
  color: var(--text);
  font-weight: 700;
}

.contact__body {
  grid-column: 3 / span 8;
  display: grid;
  gap: 2rem;
  max-width: 40rem;
}

.contact__line {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
}

.contact__link {
  position: relative;
  color: var(--green);
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form__field {
  display: grid;
  gap: 0.45rem;
}

.contact-form__field span {
  color: var(--muted-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(241, 238, 232, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition:
    border-color 0.24s var(--ease),
    background-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.contact-form input {
  min-height: 3rem;
  padding: 0 0.9rem;
}

.contact-form textarea {
  min-height: 9rem;
  padding: 0.85rem 0.9rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(128, 247, 180, 0.7);
  background: rgba(241, 238, 232, 0.055);
  box-shadow: 0 0 0 3px rgba(128, 247, 180, 0.08);
}

.contact-form__trap {
  position: absolute;
  left: -9999px;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
}

.contact-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(128, 247, 180, 0.54);
  border-radius: 0;
  background: var(--green);
  color: #041008;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    transform 0.24s var(--ease),
    background-color 0.24s var(--ease),
    opacity 0.24s var(--ease);
}

.contact-form__button:hover,
.contact-form__button:focus-visible {
  transform: translate3d(0, -2px, 0);
}

.contact-form__button:disabled {
  opacity: 0.55;
  transform: none;
}

.contact-form__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.contact-form.is-sent .contact-form__status {
  color: var(--green);
}

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact__meta a {
  position: relative;
  min-height: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color 0.24s var(--ease);
}

.contact__meta a:hover,
.contact__meta a:focus-visible {
  color: var(--text);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1520px);
  margin: 0 auto;
  padding: 1rem 1.2rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: -0.45rem;
  margin-top: -0.45rem;
  border-radius: 999px;
  background: rgba(241, 238, 232, 0.96);
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(128, 247, 180, 0.45), 0 0 28px rgba(128, 247, 180, 0.18);
  pointer-events: none;
  opacity: 0;
  transition:
    width 0.24s var(--ease),
    height 0.24s var(--ease),
    border-radius 0.24s var(--ease),
    background-color 0.24s var(--ease),
    color 0.24s var(--ease),
    opacity 0.18s ease,
    box-shadow 0.24s var(--ease);
}

.cursor span {
  opacity: 0;
  transform: translateY(0.22rem);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    opacity 0.18s ease,
    transform 0.24s var(--ease);
}

.cursor.is-visible {
  opacity: 1;
}

.cursor--link {
  width: 5.1rem;
  height: 2.65rem;
  border-radius: 999px;
  background: var(--green);
  color: #041008;
  box-shadow: 0 0 0 1px rgba(128, 247, 180, 0.7), 0 0 36px rgba(128, 247, 180, 0.28);
}

.cursor--link span {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes railPulse {
  0%,
  100% {
    opacity: 0.32;
    transform: rotate(45deg) scale(0.72);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

@keyframes resultBlink {
  0%,
  100% {
    opacity: 0.44;
  }
  50% {
    opacity: 1;
  }
}

@media (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .masthead__link:hover::after,
  .product__link:hover::before,
  .contact__link:hover::after {
    transform: scaleX(0.22);
  }

  .product:hover {
    border-color: var(--line);
    transform: none;
  }

  .product:hover .product__glare {
    opacity: 0;
  }

  .product__link:hover::after,
  .result-stack span:hover,
  .contact-form__button:hover {
    transform: none;
  }

  .result-stack span:hover {
    border-color: var(--line);
    background: rgba(241, 238, 232, 0.035);
  }

  .contact__meta a:hover {
    color: var(--muted);
  }

  .mobile-glow-target {
    transition:
      border-color 0.42s var(--ease),
      background-color 0.42s var(--ease),
      box-shadow 0.42s var(--ease),
      color 0.42s var(--ease);
  }

  .product.mobile-glow-target.is-mobile-lit,
  .contact-form.mobile-glow-target.is-mobile-lit {
    border-color: rgba(128, 247, 180, 0.55);
    background: rgba(128, 247, 180, 0.035);
    box-shadow: inset 0 1px 0 rgba(128, 247, 180, 0.18), 0 0 30px rgba(128, 247, 180, 0.08);
  }

  .studio__copy.mobile-glow-target.is-mobile-lit p:first-child,
  .about__body.mobile-glow-target.is-mobile-lit p:first-child {
    color: var(--green);
  }

  .result-stack span.mobile-glow-target.is-mobile-lit {
    border-color: rgba(241, 196, 109, 0.5);
    background: rgba(241, 196, 109, 0.045);
    box-shadow: inset 0 0 0 1px rgba(241, 196, 109, 0.08);
  }
}

@media (max-width: 1100px) {
  .hero__title {
    font-size: 5.2rem;
  }

  .hero__brand-mark {
    right: -9rem;
    width: 31rem;
  }

  .contact__line {
    font-size: 2.3rem;
  }
}

@media (max-width: 960px) {
  .site {
    padding-inline: 1rem;
    padding-top: 6rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero__grid,
  .section-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .section-mark,
  .hero__title,
  .hero__rail,
  .products__list,
  .studio__body,
  .about__body,
  .contact__body {
    grid-column: 1 / -1;
  }

  .hero__title {
    max-width: none;
    font-size: 4.35rem;
  }

  .hero__rail {
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products__list {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .product {
    max-width: none;
  }

  .product--1,
  .product--2 {
    grid-column: auto;
  }

  .product--2 {
    margin-top: 0;
  }

  .about__body,
  .contact__body {
    max-width: 34rem;
  }
}

@media (max-width: 640px) {
  .masthead,
  .site,
  .footer {
    padding-inline: 0.95rem;
  }

  .masthead {
    align-items: flex-start;
  }

  .masthead__nav {
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .masthead__brand,
  .masthead__link {
    font-size: 0.68rem;
  }

  .hero__title {
    font-size: 3.05rem;
  }

  .hero__rail {
    grid-template-columns: 1fr;
  }

  .hero__brand-mark {
    right: -8rem;
    bottom: 8rem;
    width: 22rem;
  }

  .product__name {
    font-size: 3rem;
  }

  .copy-block p,
  .result-stack span {
    font-size: 1.08rem;
  }

  .studio__copy p:first-child {
    font-size: 1.55rem;
  }

  .contact__line {
    font-size: 1.95rem;
  }

  .contact-form__row,
  .contact-form__actions {
    grid-template-columns: 1fr;
  }

  .contact-form__row {
    gap: 0.85rem;
  }

  .contact-form__actions {
    display: grid;
    align-items: start;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 2.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal="block"],
  .split-word {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
