/* VANTA — Creative Studio
   Standalone build of VANTA.dc.html.
   Tunable "props" from the original component are exposed as CSS variables below. */
:root {
  --vanta-accent: #ffffff;   /* accent color        (orig prop: accent)        */
  --vanta-glow: 0.55;        /* glow intensity 0..1 (orig prop: glowIntensity)  */
  --vanta-blur: 16px;        /* glass blur          (orig prop: glassBlur)      */

  --bg: #050507;
  --ink: #c9ccd2;
  --ink-bright: #f5f6f8;
  --ink-dim: #7d8492;

  --ease: cubic-bezier(.2, .6, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 255, 255, .9); color: var(--bg); }

a:focus-visible,
.nav__logo:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

.eyebrow {
  margin: 0;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.accent-text {
  color: var(--vanta-accent);
  text-shadow: 0 0 30px rgba(255, 255, 255, .4);
}
.accent-serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--vanta-accent);
  text-shadow: 0 0 24px rgba(255, 255, 255, .35);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(10, 12, 16, .55);
  backdrop-filter: blur(var(--vanta-blur));
  -webkit-backdrop-filter: blur(var(--vanta-blur));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  animation: vantaRise 1s .1s var(--ease) both;
}
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo img {
  height: 26px;
  width: auto;
  display: block;
}
.nav__link {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .3s;
}
.nav__link:hover { color: #ffffff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 5vw, 64px) 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 52% 42% at 50% 46%, rgba(255, 255, 255, .16) 0%, rgba(210, 214, 222, .07) 34%, rgba(5, 5, 7, 0) 68%);
  opacity: var(--vanta-glow);
  animation: vantaGlow 2.4s .2s ease-out both;
  pointer-events: none;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(5, 5, 7, 0) 30%, rgba(5, 5, 7, .9) 85%);
  pointer-events: none;
}
/* Background video */
.hero__media {
  position: absolute;
  inset: 0;
  background: #050507 url('assets/hero-poster.jpg') center / cover no-repeat;
  pointer-events: none;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  /* Dark & subtle: type stays dominant over the footage */
  background: rgba(5, 5, 7, .55);
}
/* On phones (or if the video hasn't started) the poster background carries the hero */
@media (max-width: 768px) {
  .hero__video { display: none; }
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 1100px;
}
.hero__eyebrow { animation: vantaRise 1.1s .35s var(--ease) both; }
.hero__title {
  margin: 0;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.7rem, 8vw, 7.2rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink-bright);
  animation: vantaRise 1.2s .5s var(--ease) both;
}
.hero__title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--vanta-accent);
  text-shadow: 0 0 30px rgba(255, 255, 255, .4);
}
.hero__sub {
  margin: 0;
  max-width: 480px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--ink-dim);
  animation: vantaRise 1.2s .7s var(--ease) both;
}
.hero__cta { animation: vantaRise 1.2s .85s var(--ease) both; margin-top: 12px; }

.btn {
  display: inline-block;
  padding: 15px 34px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-bright);
  text-decoration: none;
  background: rgba(10, 12, 16, .55);
  backdrop-filter: blur(var(--vanta-blur));
  -webkit-backdrop-filter: blur(var(--vanta-blur));
  border: 1px solid rgba(255, 255, 255, .16);
  border-top-color: rgba(255, 255, 255, .32);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .35s, color .35s, box-shadow .35s;
}
.btn:hover {
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: vantaGlow 1.5s 1.4s ease-out both;
}
.hero__scroll-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--ink-dim), rgba(125, 132, 146, 0));
  animation: vantaLine 2.4s 1.6s ease-in-out infinite;
}

/* ---------- Manifesto ---------- */
.manifesto {
  display: flex;
  justify-content: center;
  padding: clamp(120px, 22vh, 240px) clamp(24px, 6vw, 64px);
}
.manifesto__text {
  margin: 0;
  max-width: 880px;
  text-align: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.35;
  color: var(--ink-bright);
}

/* ---------- Selected Work ---------- */
.work {
  position: relative;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 64px) clamp(100px, 16vh, 180px);
  max-width: 1360px;
  margin: 0 auto;
}
.work__glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 1100px);
  height: 70%;
  background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(255, 255, 255, .06) 0%, rgba(5, 5, 7, 0) 70%);
  opacity: var(--vanta-glow);
  pointer-events: none;
}
.work__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.work__meta-mid { color: var(--ink-bright); }
.work__rule {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin: 20px 0 44px;
}
.work__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 38%), rgba(10, 12, 16, .55);
  backdrop-filter: blur(var(--vanta-blur));
  -webkit-backdrop-filter: blur(var(--vanta-blur));
  border: 1px solid rgba(255, 255, 255, .09);
  border-top-color: rgba(255, 255, 255, .2);
  border-radius: 4px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .6), 0 10px 40px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(255, 255, 255, .05) 0%, rgba(5, 5, 7, 0) 75%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0px, rgba(255, 255, 255, .04) 1px, transparent 1px, transparent 10px),
    #0a0c10;
}
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
  transition: transform .6s var(--ease);
}
.card:hover .card__img { transform: scale(1.04); }
/* For catalogue-style images (e.g. a packaging study sheet) show the whole frame
   on its own cream backdrop instead of cropping it. */
.card__img--contain { object-fit: contain; background: #efe8d7; filter: none; }
.card__num {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink-bright);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
  transition: color .35s, text-shadow .35s;
}
.card:hover .card__num {
  color: var(--vanta-accent);
  text-shadow: 0 0 18px rgba(255, 255, 255, .45);
}
.card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.card__tag {
  align-self: flex-start;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 2px;
}
.card__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink-bright);
}
.card__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}
/* Reserved / coming-soon slot */
.card--reserved { cursor: default; }
.card--reserved:hover {
  transform: none;
  border-color: rgba(255, 255, 255, .09);
  border-top-color: rgba(255, 255, 255, .2);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.card--reserved .card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08090c;
}
.card--reserved .card__thumb::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 3px;
}
.card--reserved .card__mark {
  position: relative;
  z-index: 1;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.card--reserved .card__tag { color: var(--vanta-accent); border-color: rgba(255, 255, 255, .3); }

/* ---------- About ---------- */
.about {
  display: flex;
  justify-content: center;
  padding: clamp(120px, 20vh, 220px) clamp(20px, 5vw, 64px) clamp(60px, 10vh, 110px);
}
.about__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 760px;
  text-align: center;
}
.about__p {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  color: var(--ink);
}

/* ---------- Process ---------- */
.process {
  position: relative;
  padding: clamp(80px, 14vh, 160px) clamp(20px, 5vw, 64px) clamp(100px, 16vh, 180px);
  max-width: 1080px;
  margin: 0 auto;
}
.process__label { margin: 0 0 clamp(40px, 6vh, 72px); }
.process__wrap { position: relative; }
.process__rail {
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, .1);
}
.process__fill {
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1px;
  transform-origin: top;
  transform: scaleY(0);
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15));
  box-shadow: 0 0 12px rgba(255, 255, 255, .25);
  will-change: transform;
}
.step {
  position: relative;
  padding: 0 0 clamp(44px, 6vh, 72px) clamp(44px, 6vw, 64px);
  cursor: default;
}
.step__dot {
  position: absolute;
  left: 0; top: 7px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, .35);
  transition: border-color .35s, box-shadow .35s;
}
.step:hover .step__dot {
  border-color: var(--vanta-accent);
  box-shadow: 0 0 16px rgba(255, 255, 255, .5);
}
.step__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.step__num {
  font-family: 'Space Mono', monospace;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: .06em;
  color: var(--ink-bright);
  transition: color .35s, text-shadow .35s;
}
.step:hover .step__num {
  color: var(--vanta-accent);
  text-shadow: 0 0 20px rgba(255, 255, 255, .45);
}
.step__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: -.01em;
  color: var(--ink-bright);
}
.step__body {
  margin: 10px 0 0;
  max-width: 620px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: clamp(60px, 10vh, 110px) clamp(20px, 5vw, 64px) 60px;
  text-align: center;
  overflow: hidden;
}
.contact__glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 90%;
  background: radial-gradient(ellipse 40% 45% at 50% 80%, rgba(255, 255, 255, .10) 0%, rgba(5, 5, 7, 0) 70%);
  opacity: var(--vanta-glow);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.contact__title {
  margin: 0;
  max-width: 1000px;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink-bright);
}
.contact__title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--vanta-accent);
  text-shadow: 0 0 34px rgba(255, 255, 255, .4);
}
.contact__cta {
  font-family: 'Space Mono', monospace;
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 6px;
  transition: color .35s, border-color .35s, text-shadow .35s;
}
.contact__cta:hover {
  color: #ffffff;
  border-color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, .4);
}
.contact__cta:focus-visible { outline: 2px solid #ffffff; outline-offset: 4px; }
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-dim);
}
.contact__links a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .3s;
}
.contact__links a:hover { color: #ffffff; }
.footer {
  position: relative;
  margin-top: clamp(80px, 14vh, 160px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Animations ---------- */
@keyframes vantaRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes vantaGlow {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes vantaLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: top; }
  56%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal].is-hidden { opacity: 1; transform: none; }
}
