@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("manrope-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url("instrument-serif-latin-400-italic.woff2") format("woff2");
}

:root {
  --midnight: #09030e;
  --plum: #7f078f;
  --violet: #d934f7;
  --white: #ffffff;
  --muted: #b7aebe;
  --line: rgba(255, 255, 255, 0.13);
  --line-purple: rgba(217, 52, 247, 0.34);
  --glass: rgba(19, 9, 27, 0.74);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

img,
svg {
  display: block;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: var(--midnight);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(127, 7, 143, 0.18), transparent 25rem),
    var(--midnight);
  color: var(--white);
  font-family: "Manrope Variable", Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

main::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 90%);
  content: "";
  pointer-events: none;
}

.section-shell {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.floating-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 3, 14, 0.75);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.floating-nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.floating-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #c6bdca;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.floating-nav a:hover,
.floating-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.floating-nav .nav-cta {
  padding-inline: 20px;
  color: var(--white);
  background: linear-gradient(115deg, var(--plum), var(--violet));
  box-shadow: 0 10px 30px rgba(217, 52, 247, 0.22);
}

.floating-nav .nav-cta:hover,
.floating-nav .nav-cta:focus-visible {
  color: var(--white);
  background: linear-gradient(115deg, #92109f, #e247ff);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: flex;
  min-height: 860px;
  padding-top: 146px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.ambient-glow {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  background: rgba(127, 7, 143, 0.34);
  filter: blur(110px);
  pointer-events: none;
}

.ambient-glow--hero {
  top: 250px;
  left: 50%;
  width: 520px;
  height: 390px;
  transform: translateX(-50%);
  animation: breathe 8s ease-in-out infinite alternate;
}

.edit-timeline {
  position: absolute;
  display: grid;
  gap: 7px;
  pointer-events: none;
}

.edit-timeline--left {
  top: 23%;
  left: -80px;
  width: 170px;
  transform: rotate(90deg);
  opacity: 0.45;
}

.edit-timeline span {
  height: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.edit-timeline span:first-child {
  width: 62%;
  background: var(--violet);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(4rem, 7.5vw, 7.35rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero h1 em,
.section-title em,
.cta-panel h2 em {
  color: var(--violet);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.hero h1 em {
  padding-right: 0.03em;
  font-size: 1.04em;
  letter-spacing: -0.03em;
}

.hero-actions {
  display: flex;
  margin-top: 50px;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.primary-button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(115deg, var(--plum), var(--violet));
  box-shadow: 0 15px 42px rgba(217, 52, 247, 0.2);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.primary-button::before {
  position: absolute;
  top: -50%;
  left: -40%;
  width: 30%;
  height: 200%;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, 0.2);
  content: "";
  transition: left 500ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 58px rgba(217, 52, 247, 0.34);
}

.primary-button:hover::before,
.primary-button:focus-visible::before {
  left: 120%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--white);
}

.stats-panel {
  position: relative;
  display: grid;
  width: min(850px, 100%);
  margin-top: 72px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 130%, rgba(217, 52, 247, 0.16), transparent 52%),
    rgba(20, 11, 27, 0.62);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.stats-panel > div {
  display: flex;
  min-height: 126px;
  padding: 26px 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stats-panel > div + div {
  border-left: 1px solid var(--line);
}

.stats-panel strong {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.stats-panel span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.content-section {
  position: relative;
  padding-top: 118px;
}

.section-marker {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.section-marker span {
  width: 25px;
  height: 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
}

.section-marker span:first-child {
  width: 50px;
  background: linear-gradient(90deg, var(--plum), var(--violet));
}

.section-title {
  max-width: 900px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: clamp(3.1rem, 6vw, 5.7rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-title em {
  letter-spacing: -0.02em;
}

.section-title--wide {
  max-width: 1080px;
}

.about-card {
  display: grid;
  min-height: 460px;
  overflow: hidden;
  grid-template-columns: 44% 56%;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--glass);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
}

.about-photo {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.about-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(9, 3, 14, 0.48), transparent);
  content: "";
  pointer-events: none;
}

.about-photo img {
  object-fit: cover;
  object-position: center 38%;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.about-card:hover .about-photo img {
  transform: scale(1.025);
}

.status-dot {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 3px solid var(--midnight);
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 18px var(--violet);
}

.about-copy {
  display: flex;
  padding: clamp(36px, 5vw, 64px);
  flex-direction: column;
  justify-content: center;
}

.about-copy h3 {
  max-width: 580px;
  margin: 0 0 21px;
  font-size: clamp(1.55rem, 2.65vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.27;
}

.about-copy p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.8;
}

.about-copy p + p {
  margin-top: 16px;
}

.software-tags {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.software-tags span {
  padding: 8px 13px;
  border: 1px solid var(--line-purple);
  border-radius: 999px;
  background: rgba(127, 7, 143, 0.13);
  color: #e8dbea;
  font-size: 0.67rem;
}

.process-strip {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 8, 22, 0.7);
}

.process-strip article {
  display: flex;
  min-height: 96px;
  padding: 20px 26px;
  align-items: center;
  gap: 16px;
}

.process-strip article + article {
  border-left: 1px solid var(--line);
}

.process-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-purple);
  border-radius: 10px;
  color: var(--violet);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.process-strip h4 {
  margin: 0 0 5px;
  font-size: 0.82rem;
  font-weight: 650;
}

.process-strip p {
  margin: 0;
  color: #8f8495;
  font-size: 0.66rem;
}

.portfolio-section {
  padding-top: 150px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 52%, rgba(127, 7, 143, 0.38), transparent 52%),
    #14091b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  isolation: isolate;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.video-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(217, 52, 247, 0.06);
  content: "";
  pointer-events: none;
}

.video-frame:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 52, 247, 0.55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3), 0 0 45px rgba(127, 7, 143, 0.12);
}

.video-frame--vertical {
  aspect-ratio: 9 / 16;
}

.video-frame--landscape {
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vertical-video-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.landscape-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.featured-video {
  width: min(900px, 100%);
  margin-inline: auto;
}

.testimonial-section {
  padding-bottom: 140px;
}

.testimonial-track {
  width: min(300px, 100%);
  margin-inline: auto;
}

.swipe-hint {
  display: none;
}

.site-footer {
  padding-bottom: 26px;
}

.cta-panel {
  position: relative;
  display: flex;
  min-height: 600px;
  padding: 60px 24px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-purple);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 86%, rgba(217, 52, 247, 0.3), transparent 37%),
    linear-gradient(145deg, rgba(127, 7, 143, 0.09), rgba(255, 255, 255, 0.015)),
    rgba(19, 9, 27, 0.75);
  text-align: center;
  isolation: isolate;
}

.cta-rings,
.cta-rings::before,
.cta-rings::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  border: 1px solid rgba(217, 52, 247, 0.18);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.cta-rings {
  width: 330px;
  height: 330px;
}

.cta-rings::before {
  width: 510px;
  height: 510px;
}

.cta-rings::after {
  width: 720px;
  height: 720px;
}

.cta-panel > p {
  margin: 0 0 25px;
  color: var(--violet);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cta-panel h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3.5rem, 7.4vw, 7rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.cta-panel h2 em {
  font-size: 1.05em;
  letter-spacing: -0.02em;
}

.primary-button--large {
  min-height: 60px;
  margin-top: 42px;
  padding-inline: 30px;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  padding-top: 28px;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--line);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  min-height: 39px;
  padding: 0 14px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #bcb1c0;
  font-size: 0.69rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-links a svg {
  color: var(--violet);
  font-size: 0.9rem;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--white);
  border-color: var(--line-purple);
  background: rgba(127, 7, 143, 0.12);
  transform: translateY(-2px);
}

.footer-bottom > p {
  margin: 18px 0 0;
  color: #746a78;
  font-size: 0.65rem;
}

.reveal {
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal--delay {
  animation-delay: 120ms;
}

@supports (animation-timeline: view()) {
  .content-section .reveal,
  .site-footer .reveal {
    animation-name: scroll-reveal;
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-reveal {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes breathe {
  from {
    opacity: 0.7;
    transform: translateX(-50%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 800px;
  }

  .about-card {
    grid-template-columns: 43% 57%;
  }

  .about-copy {
    padding: 34px;
  }

  .vertical-video-track {
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .section-shell {
    width: min(100% - 28px, var(--content));
  }

  .floating-nav {
    top: 10px;
    width: max-content;
    max-width: calc(100% - 20px);
  }

  .floating-nav a {
    min-height: 37px;
    padding-inline: 12px;
    font-size: 0.68rem;
  }

  .floating-nav .nav-cta {
    padding-inline: 15px;
  }

  .hero {
    min-height: 760px;
    padding-top: 120px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15.7vw, 5rem);
    line-height: 0.84;
  }

  .hero-actions {
    margin-top: 38px;
    gap: 18px;
  }

  .stats-panel {
    margin-top: 56px;
  }

  .stats-panel > div {
    min-height: 105px;
    padding-inline: 8px;
  }

  .stats-panel strong {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }

  .stats-panel span {
    max-width: 85px;
    font-size: 0.6rem;
    line-height: 1.4;
  }

  .content-section {
    padding-top: 90px;
  }

  .portfolio-section {
    padding-top: 110px;
  }

  .section-title {
    margin-bottom: 38px;
    font-size: clamp(2.8rem, 13.5vw, 4.5rem);
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .about-photo {
    min-height: min(94vw, 520px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-photo img {
    object-position: center 34%;
  }

  .about-copy {
    padding: 32px 24px 36px;
  }

  .about-copy h3 {
    font-size: 1.55rem;
  }

  .about-copy p {
    font-size: 0.82rem;
  }

  .process-strip {
    grid-template-columns: 1fr;
  }

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

  .vertical-video-track {
    width: calc(100% + 14px);
    padding-right: 34px;
    overflow-x: auto;
    grid-auto-columns: min(75vw, 290px);
    grid-auto-flow: column;
    grid-template-columns: none;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .vertical-video-track::-webkit-scrollbar {
    display: none;
  }

  .vertical-video-track .video-frame {
    scroll-snap-align: start;
  }

  .swipe-hint {
    display: block;
    margin: -22px 0 16px;
    color: #817486;
    text-align: center;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .landscape-video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .testimonial-section {
    padding-bottom: 100px;
  }

  .testimonial-track {
    width: min(76vw, 300px);
  }

  .cta-panel {
    min-height: 520px;
    border-radius: 25px;
  }

  .cta-panel h2 {
    font-size: clamp(3.1rem, 14.5vw, 5rem);
  }

  .cta-panel > p {
    font-size: 0.59rem;
  }

  .cta-rings {
    width: 260px;
    height: 260px;
  }

  .cta-rings::before {
    width: 420px;
    height: 420px;
  }

  .cta-rings::after {
    width: 590px;
    height: 590px;
  }

  .social-links a {
    padding-inline: 12px;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    flex-direction: column;
  }

  .stats-panel {
    border-radius: 18px;
  }

  .stats-panel > div {
    min-height: 92px;
  }

  .stats-panel strong {
    font-size: 1.55rem;
  }

  .stats-panel span {
    font-size: 0.52rem;
  }

  .about-card {
    border-radius: 22px;
  }

  .software-tags span {
    font-size: 0.62rem;
  }

  .social-links span {
    display: none;
  }

  .social-links a {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .social-links a svg {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
