/* —— Vizurai Studios —— Premium cinematic landing —— */

:root {
  --bg: #050708;
  --bg-elevated: #0c1012;
  --ink: #f2f5f4;
  --ink-muted: rgba(242, 245, 244, 0.62);
  --cyan: #7ee7ff;
  --cyan-dim: rgba(126, 231, 255, 0.18);
  --amber: #e8a45a;
  --teal-deep: #0e2428;
  --line: rgba(242, 245, 244, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
  --cursor-size: 10px;
  --ring-size: 36px;
}

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

html {
  scroll-behavior: auto;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

body.has-cursor {
  cursor: none;
}

body.has-cursor a,
body.has-cursor button,
body.has-cursor [data-cursor] {
  cursor: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Atmospheric layers —— */

.grain,
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
}

.grain {
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-shift 0.45s steps(2) infinite;
}

@keyframes grain-shift {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1%, 1%);
  }
  50% {
    transform: translate(1%, -1%);
  }
  75% {
    transform: translate(-1%, -1%);
  }
  100% {
    transform: translate(0, 0);
  }
}

.vignette {
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 8999;
  opacity: 0.7;
}

/* —— Custom cursor —— */

.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  pointer-events: none;
  mix-blend-mode: difference;
}

body.has-cursor .cursor {
  display: block;
}

.cursor__dot {
  position: absolute;
  width: var(--cursor-size);
  height: var(--cursor-size);
  margin: calc(var(--cursor-size) / -2) 0 0 calc(var(--cursor-size) / -2);
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease-out);
}

.cursor__ring {
  position: absolute;
  width: var(--ring-size);
  height: var(--ring-size);
  margin: calc(var(--ring-size) / -2) 0 0 calc(var(--ring-size) / -2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
    margin 0.35s var(--ease-out), background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.cursor.is-glow .cursor__ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(126, 231, 255, 0.12);
  border-color: var(--cyan);
}

.cursor.is-view .cursor__ring {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: rgba(255, 255, 255, 0.08);
}

.cursor.is-view .cursor__dot {
  transform: scale(0);
}

.cursor.is-view::after {
  content: "View";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* —— Preloader —— */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
}

.preloader.is-done {
  pointer-events: none;
}

.preloader__inner {
  width: min(280px, 70vw);
  text-align: center;
}

.preloader__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.35em;
  margin-bottom: 1.75rem;
}

.preloader__bar {
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.preloader__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cyan);
  transform-origin: left center;
}

.preloader__status {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

/* —— Header —— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(-12px);
}

.site-header.is-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.28em;
}

.logo--sm {
  font-size: 0.85rem;
  letter-spacing: 0.24em;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.nav a:hover {
  opacity: 1;
}

.header-cta {
  display: none;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-cta:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.nav-toggle {
  width: 2rem;
  height: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 8001;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.55rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.55rem) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 7990;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 5rem 2rem;
  background: rgba(5, 7, 8, 0.96);
  backdrop-filter: blur(16px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mobile-nav__cta {
  margin-top: 1rem;
  color: var(--cyan) !important;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.btn--primary {
  background: var(--cyan);
  color: #041014;
}

.btn--primary:hover {
  background: #b6f2ff;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(242, 245, 244, 0.35);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.btn--lg {
  min-height: 3.5rem;
  padding: 0 1.8rem;
  font-size: 0.9rem;
}

/* —— Shared section chrome —— */

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-copy {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section-intro {
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-intro--center {
  text-align: center;
  margin-inline: auto;
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 8, 0.35) 0%, transparent 28%, transparent 48%, rgba(5, 7, 8, 0.72) 78%, rgba(5, 7, 8, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 7, 8, 0.35) 0%, transparent 35%, transparent 65%, rgba(5, 7, 8, 0.25) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 5.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 10vw, 7.5rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.8vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 14ch;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line--accent {
  color: var(--cyan);
}

.hero__lede {
  max-width: 32rem;
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0;
}

.hero__scroll.is-ready {
  opacity: 1;
  transition: opacity 1s var(--ease-out) 0.6s;
}

.hero__scroll-line {
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  transform-origin: top;
  animation: scroll-pulse 2.2s var(--ease-out) infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* SplitType helpers */
.char {
  display: inline-block;
  will-change: transform, opacity;
}

[data-reveal],
[data-reveal-up] {
  opacity: 0;
}

body.is-reduced [data-reveal],
body.is-reduced [data-reveal-up],
body.is-reduced .site-header,
body.is-reduced .hero__scroll {
  opacity: 1;
  transform: none;
}

/* —— Work / horizontal —— */

.work {
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
  background: var(--bg);
}

.work__viewport {
  overflow: hidden;
  width: 100%;
}

.work__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1rem;
}

.work-panel {
  position: relative;
  flex: 0 0 min(78vw, 520px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
}

.work-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-out);
}

.work-panel:hover::before {
  transform: scale(1.06);
}

.work-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(5, 7, 8, 0.55) 70%,
    rgba(5, 7, 8, 0.92) 100%
  );
}

.work-panel__meta {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
}

.work-panel__index {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.work-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work-panel__tag {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.work-panel--transit::before {
  background-image:
    linear-gradient(135deg, rgba(14, 36, 40, 0.35), rgba(5, 7, 8, 0.55)),
    radial-gradient(circle at 30% 40%, #3a5560 0%, transparent 55%),
    linear-gradient(160deg, #1a2e36, #0a1216 60%, #1c1814);
}

.work-panel--canyon::before {
  background-image:
    linear-gradient(180deg, rgba(5, 7, 8, 0.15), rgba(5, 7, 8, 0.55)),
    radial-gradient(circle at 70% 45%, rgba(126, 231, 255, 0.35), transparent 40%),
    linear-gradient(145deg, #c47a45, #7a3d22 45%, #1a120e);
}

.work-panel--spirits::before {
  background-image:
    radial-gradient(circle at 35% 55%, rgba(126, 231, 255, 0.45), transparent 28%),
    radial-gradient(circle at 55% 50%, rgba(90, 200, 255, 0.3), transparent 22%),
    radial-gradient(circle at 70% 58%, rgba(126, 231, 255, 0.35), transparent 20%),
    linear-gradient(180deg, #06150f, #020806 70%, #041018);
}

.work-panel--ice::before {
  background-image:
    radial-gradient(ellipse at 50% 80%, rgba(180, 230, 255, 0.35), transparent 50%),
    linear-gradient(180deg, #7eb8d4 0%, #2a5f78 40%, #0a1a24 100%);
}

.work-panel--close::before {
  background-image:
    radial-gradient(circle at 50% 35%, rgba(232, 180, 150, 0.35), transparent 40%),
    linear-gradient(180deg, #2a3a40, #12181c 55%, #080b0d);
}

@media (min-width: 900px) {
  .work-panel {
    flex-basis: min(42vw, 560px);
    aspect-ratio: 3 / 4;
  }
}

/* —— Craft pinned —— */

.craft {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--teal-deep) 50%, var(--bg) 100%);
}

.craft__pin {
  min-height: 100svh;
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: clamp(4rem, 10vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

.craft__copy {
  max-width: 28rem;
  z-index: 2;
}

.craft__text {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
  min-height: 4.5em;
}

.craft__word {
  position: relative;
  min-height: 20vw;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.craft__word-item {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 18vw, 14rem);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(126, 231, 255, 0.45);
  opacity: 0;
  transform: translateY(18%);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.craft__word-item.is-active {
  opacity: 1;
  transform: translateY(0);
  color: rgba(126, 231, 255, 0.08);
  -webkit-text-stroke: 1px rgba(126, 231, 255, 0.65);
  text-shadow: 0 0 80px rgba(126, 231, 255, 0.15);
}

@media (min-width: 900px) {
  .craft__pin {
    grid-template-columns: 1fr 1.2fr;
  }

  .craft__word {
    justify-items: end;
  }
}

/* —— Process —— */

.process {
  padding: clamp(5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.process__list {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 1100px;
  margin-inline: auto;
}

.process__item {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
}

.process__num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}

.process__item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process__item p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  max-width: 28ch;
}

@media (min-width: 700px) {
  .process__list {
    grid-template-columns: repeat(5, 1fr);
  }

  .process__item {
    padding: 2rem 1.25rem;
  }
}

/* —— Contact —— */

.contact {
  padding: clamp(5rem, 14vw, 9rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(126, 231, 255, 0.08), transparent 55%),
    var(--bg);
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
  margin-inline: auto;
}

.contact__lede {
  margin: 1.25rem auto 2.25rem;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.socials a {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.25s ease;
}

.socials a:hover {
  color: var(--cyan);
}

/* —— Footer —— */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* —— Reduced motion —— */

@media (prefers-reduced-motion: reduce) {
  .grain {
    animation: none;
  }

  .hero__scroll-line {
    animation: none;
  }

  .hero__video {
    transform: none;
  }

  .work-panel:hover::before {
    transform: none;
  }

  .craft__word-item {
    transition: none;
  }
}
