/* ============================================================
   Vedonix — home prototype
   Light paper ground, oversized black display type, and a fixed
   WebGL stage that shows through the transparent "scene"
   sections while opaque bands scroll over it.
   ============================================================ */

:root {
  --paper:   #f6f4f0;
  --paper-2: #ecE8e1;
  --card:    #ffffff;

  --ink:    #0c0c0d;
  --ink-70: #3e3f44;
  --ink-45: #71737a;
  --ink-25: #a6a8ad;

  --brand:      #0d99ff;
  --brand-deep: #0060b0;
  --pop:        #ff5b2e;

  --line: rgba(12, 12, 13, 0.12);
  --line-soft: rgba(12, 12, 13, 0.07);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1240px;
  --pad: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.042em;
}
.hl { color: var(--brand); }
.pop { color: var(--pop); }

.kicker {
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-45);
}

.lede { font-size: clamp(1.02rem, 1.3vw, 1.22rem); color: var(--ink-70); max-width: 54ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--display); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--brand); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(12, 12, 13, 0.04); }

/* ---------- loader ---------- */

.loader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-content: center; gap: 20px; justify-items: center;
  background: var(--paper);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader.gone { display: none; }
.loader__word {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.4rem, 9vw, 5.5rem); letter-spacing: -0.05em;
}
.loader__rule { display: block; width: min(240px, 50vw); height: 2px; background: var(--line); overflow: hidden; }
.loader__rule i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.25s linear; }

/* ---------- the fixed 3D stage ---------- */

.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* transparent windows onto the stage */
.scene { position: relative; z-index: 1; background: transparent; }

/* opaque bands that scroll over it */
.band, .cta, .foot { position: relative; z-index: 1; background: var(--paper); }
.band--sub { background: var(--paper-2); }
.band { padding-block: clamp(90px, 11vw, 160px); }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}
.nav.stuck {
  background: rgba(246, 244, 240, 0.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line-soft);
}
.nav.on-dark { color: #fff; }
.nav.on-dark.stuck { background: rgba(0, 66, 122, 0.4); border-bottom-color: rgba(255, 255, 255, 0.16); }
.nav.on-dark .btn--ink { background: #fff; color: var(--ink); }
.nav.on-dark .burger span { background: #fff; }

.nav__in { display: flex; align-items: center; gap: 28px; height: 82px; }

.mark { display: inline-flex; align-items: center; gap: 11px; }
.mark__name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.04em; }

.nav__links { display: flex; gap: 4px; margin-left: 20px; }
.nav__links a {
  padding: 9px 15px; border-radius: 999px;
  font-family: var(--display); font-size: 14.5px; font-weight: 500;
  transition: background 0.22s, opacity 0.22s;
}
.nav__links a:hover { background: rgba(12, 12, 13, 0.06); }
.nav.on-dark .nav__links a:hover { background: rgba(255, 255, 255, 0.14); }

.nav__cta { margin-left: auto; }

.burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  cursor: pointer; padding: 0; place-content: center; gap: 5px;
}
.burger span { display: block; width: 17px; height: 1.6px; background: var(--ink); transition: transform 0.3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 82px 0 0 0; z-index: 99;
  background: var(--paper); padding: 30px var(--pad);
  animation: fade 0.25s var(--ease);
}
.drawer__in { display: grid; gap: 2px; max-width: var(--shell); margin-inline: auto; }
.drawer__in a {
  font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.04em;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.drawer__in .btn { margin-top: 24px; border-bottom: 0; font-size: 17px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 1 · hero ---------- */

.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 150px 0 118px; }
.hero__in { display: grid; gap: 28px; }
.hero__in > * { max-width: 780px; }
.hero__title { font-size: clamp(2.5rem, 4.7vw, 5.4rem); }
.hero__base { display: grid; gap: 28px; max-width: 620px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__cue {
  position: absolute; right: var(--pad); bottom: 46px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-45);
}
.hero__cue span { display: block; width: 54px; height: 1px; background: var(--ink-25); position: relative; overflow: hidden; }
.hero__cue span::after {
  content: ""; position: absolute; inset: 0; background: var(--brand);
  animation: sweep 2.2s var(--ease) infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* --- the island's affordances --- */

.stage { touch-action: pan-y; }
body.picking .stage { cursor: pointer; }
body.grabbing, body.grabbing .stage { cursor: grabbing; }

.tag {
  position: fixed; left: 0; top: 0; z-index: 4;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s var(--ease);
  box-shadow: 0 14px 30px -14px rgba(12, 12, 13, 0.55);
}
.tag::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  width: 10px; height: 10px; background: var(--ink);
  transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.tag.on { opacity: 1; }

.hero__hint {
  position: absolute; left: var(--pad); bottom: 46px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; color: var(--ink-70);
  animation: nudge 3.4s var(--ease) infinite;
  transition: opacity 0.5s var(--ease);
}
.hero__hint.used { animation: none; opacity: 0; }
@keyframes nudge {
  0%, 70%, 100% { transform: translateX(0); }
  78% { transform: translateX(5px); }
  86% { transform: translateX(-3px); }
}

/* a row flashes when you arrive from its landmark */
.item.flash > a { background: var(--card); box-shadow: inset 0 0 0 2px var(--brand); }
.item.flash .item__t { color: var(--brand); }

/* ---------- 2 · trust ---------- */

.band--sub.band { padding-block: clamp(56px, 7vw, 84px); }
.marquee {
  margin-top: 26px; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee__row { display: flex; gap: 62px; width: max-content; animation: slide 36s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__row span {
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.035em; color: var(--ink-25); white-space: nowrap;
  transition: color 0.25s;
}
.marquee__row span:hover { color: var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 3 · stats ---------- */

.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat__n {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 7rem); line-height: 0.86; letter-spacing: -0.05em;
  color: var(--brand);
}
.stat__k { margin-top: 14px; font-size: 15px; color: var(--ink-45); }

/* ---------- 4 · scene chapters ---------- */

.chapter { min-height: 100svh; display: flex; align-items: center; padding: 120px 0; }
.chapter__in { display: grid; gap: 28px; }
.chapter__in > * { max-width: 820px; }
.chapter__title { font-size: clamp(2.3rem, 5vw, 5.2rem); }

/* ---------- 5 · process ---------- */

.head { max-width: 780px; margin-bottom: 64px; display: grid; gap: 20px; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; max-width: none; }
.head__title { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 28px 34px 0; border-right: 1px solid var(--line-soft); }
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 28px; }
.step__n {
  display: block; font-family: var(--display); font-weight: 900; font-size: 15px;
  letter-spacing: 0.05em; color: var(--brand); margin-bottom: 20px;
}
.step h3 { font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--ink-70); }

/* ---------- 6 · solutions list ---------- */

.list { border-top: 1px solid var(--line); }
.item { border-bottom: 1px solid var(--line); }
.item a {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(0, 1.05fr) 44px;
  align-items: center; gap: 18px;
  padding: 26px 18px 26px 8px;
  border-radius: 18px;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.item a:hover { background: var(--card); padding-left: 22px; padding-right: 14px; }
.item__n { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink-25); letter-spacing: 0.04em; }
.item__t {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.35rem, 3.1vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.02;
  transition: color 0.25s;
}
.item a:hover .item__t { color: var(--brand); }
.item__d { font-size: 15px; color: var(--ink-45); }
.item__go {
  justify-self: end; width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-content: center; font-size: 17px;
  border: 1px solid var(--line); color: var(--ink-45);
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.item a:hover .item__go { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateX(4px); }

/* ---------- 7 · blue takeover ---------- */

.takeover { min-height: 108svh; display: flex; align-items: center; padding: 130px 0; color: #fff; }
.takeover__in { display: grid; gap: 28px; }
.takeover__in > * { max-width: 820px; }
.takeover__title { font-size: clamp(2.3rem, 5vw, 5.2rem); }
.takeover .kicker { color: rgba(255, 255, 255, 0.66); }
.takeover .lede { color: rgba(255, 255, 255, 0.86); }
.takeover .hl { color: #ffd9cd; }

.takeover__facts { display: flex; flex-wrap: wrap; gap: 14px 56px; margin: 14px 0 0; }
.takeover__facts dt {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem); letter-spacing: -0.04em;
}
.takeover__facts dd { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); }

/* ---------- 8 · work cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border-radius: 26px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(12, 12, 13, 0.4); }
.card__top {
  aspect-ratio: 16 / 10; display: grid; align-content: center; justify-items: start;
  gap: 4px; padding: 30px; color: #fff;
}
.card__top span { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -0.05em; line-height: 1; }
.card__top small { font-size: 13px; opacity: 0.82; }
.card__top--blue { background: var(--brand); }
.card__top--pop  { background: var(--pop); }
.card__top--ink  { background: var(--ink); }
.card__body { padding: 26px 28px 30px; display: grid; gap: 10px; }
.card__meta { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45); }
.card__body h3 { font-family: var(--display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.035em; line-height: 1.12; }
.card__body p { font-size: 15px; color: var(--ink-70); }

/* ---------- 9 · company ---------- */

.company__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.ticks { margin: 30px 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; color: var(--ink-70); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.quote { margin: 0; padding: 28px 30px; background: var(--card); border-radius: 22px; }
.quote p { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.4; }
.quote footer { margin-top: 16px; font-size: 14px; color: var(--ink-45); }
.quote b { font-weight: 600; color: var(--ink); }

/* ---------- 10 · cta ---------- */

.cta { background: var(--pop); color: #fff; padding-block: clamp(90px, 11vw, 150px); }
.cta__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: end; }
.cta__title { font-size: clamp(2.4rem, 5.6vw, 5rem); }
.cta .lede { color: rgba(255, 255, 255, 0.9); }
.cta .btn--ink { background: #fff; color: var(--ink); }
.cta .btn--ink:hover { background: var(--ink); color: #fff; }

.form {
  display: flex; gap: 10px; margin-top: 26px;
  background: rgba(255, 255, 255, 0.16); padding: 8px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.form input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 22px; font-size: 16px; outline: none; color: #fff; }
.form input::placeholder { color: rgba(255, 255, 255, 0.72); }
.form__note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: #fff; padding-top: 76px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 46px; padding-bottom: 62px; }
.foot__brand .mark { display: inline-flex; }
.foot__brand p { margin: 20px 0; font-size: 15px; color: rgba(255, 255, 255, 0.6); max-width: 34ch; }
.foot__mail { font-size: 15px; color: var(--brand); }
.foot h4 { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 18px; }
.foot__grid > div > a { display: block; padding: 7px 0; font-size: 15px; color: rgba(255, 255, 255, 0.72); transition: color 0.2s, transform 0.2s var(--ease); }
.foot__grid > div > a:hover { color: #fff; transform: translateX(3px); }
.foot__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px; color: rgba(255, 255, 255, 0.5);
}
.foot__social { display: flex; gap: 8px; }
.foot__social a {
  width: 38px; height: 38px; display: grid; place-content: center; border-radius: 999px;
  color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.16);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.foot__social a:hover { color: var(--ink); background: #fff; border-color: #fff; }

/* ---------- scroll reveal ---------- */

.up { opacity: 0; transform: translateY(26px); }
.up.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .company__grid, .cta__in { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card:last-child { grid-column: span 2; }
  .card:last-child .card__top { aspect-ratio: 24 / 7; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --pad: 22px; }
  /* the island sits above the copy — lay paper under the text */
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, transparent 26%, var(--paper) 48%, var(--paper) 100%);
  }
  .hero { align-items: flex-end; padding-top: 120px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: grid; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-inline: 0 !important; }
  .step:nth-child(odd) { padding-right: 24px; }
  .step:nth-child(even) { padding-left: 24px !important; border-left: 1px solid var(--line-soft); }
  .item a { grid-template-columns: 46px minmax(0, 1fr) 40px; row-gap: 6px; }
  .item__d { grid-column: 2 / 3; }
  .item__go { grid-row: 1 / 3; grid-column: 3; }
  .stats__grid { grid-template-columns: 1fr; gap: 34px; }
  .head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero { padding-top: 124px; padding-bottom: 104px; }
  .hero__cue { display: none; }
  .hero__hint { font-size: 12px; padding: 9px 14px 9px 11px; bottom: 34px; }
  .cards { grid-template-columns: 1fr; }
  .card:last-child { grid-column: auto; }
  .card:last-child .card__top { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { padding-left: 0 !important; border-left: 0; }
  .step:nth-child(odd) { padding-right: 0; }
  .form { flex-direction: column; border-radius: 22px; padding: 12px; }
  .form input { padding: 12px 14px; }
  .foot__grid { grid-template-columns: 1fr; gap: 34px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
  .row .btn { flex: 1; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .up { opacity: 1; transform: none; }
}
