:root {
  --bg: #0A0C10;
  --panel: #0D1016;
  --ink: #F4F2EC;
  --yellow: #E8FF3C;
  --blue: #1E5AE8;
  --red: #E8352C;
  --skew: -12deg;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { color: #fff; }

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

.cond,
.eyebrow, .brand__mark, .brand__name, .nav__links,
.hero__title, .hero__badge, .section__num, .section__title,
.service__num, .service__title, .work__item figcaption,
.viewer__badge, .viewer__hint, .step__n, .step__title,
.cta__title, .btn, .ticker__group, .footer {
  font-family: 'Barlow Condensed', sans-serif;
}

.accent { color: var(--yellow); }
.s-red { color: var(--red); }
.s-blue { color: var(--blue); }
.s-yellow { color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: .08em;
  padding: 14px 34px;
  transform: skewX(var(--skew));
  transition: filter .2s ease, transform .2s ease;
}
.btn > * { display: inline-block; }
.btn:hover { filter: brightness(1.08); }
.btn--yellow { background: var(--yellow); color: var(--bg); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { color: #fff; }
.btn--ghost { background: transparent; border: 2px solid rgba(244,242,236,.4); color: var(--ink); padding: 12px 34px; cursor: pointer; }
.btn--ghost:hover { color: var(--ink); border-color: var(--yellow); }
.btn--sm { font-size: 16px; font-weight: 700; padding: 6px 18px; letter-spacing: .1em; }
.btn--lg { font-size: 24px; font-weight: 900; padding: 18px 48px; }

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid rgba(244,242,236,.1);
  animation: riseIn .6s ease both;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px;
  background: var(--blue);
  transform: skewX(var(--skew));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-style: italic; font-size: 19px; color: #fff;
}
.brand__name {
  font-weight: 800; font-style: italic; font-size: 21px;
  letter-spacing: .06em; text-transform: uppercase;
}
.nav__links {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  font-weight: 700; font-size: 16px; letter-spacing: .18em; text-transform: uppercase;
}
.nav__links a:not(.btn) { color: var(--ink); }
.nav__links a:not(.btn):hover { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 48px) 70px;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at var(--mx, 75%) 30%, rgba(30,90,232,.28), transparent 60%),
    radial-gradient(ellipse 700px 400px at 15% 85%, rgba(232,53,44,.14), transparent 60%);
  transition: background-position .2s ease;
}
.stripe {
  position: absolute; left: 0; height: 10px;
  transform: skewX(-20deg);
  animation: slideStripe 5s linear infinite;
}
.stripe--blue   { top: 120px; width: 40%; height: 10px; background: var(--blue);   opacity: .5; }
.stripe--red    { top: 140px; width: 25%; height: 4px;  background: var(--red);    opacity: .5; animation-duration: 7s; animation-delay: 1s; }
.stripe--yellow { bottom: 90px; width: 30%; height: 6px; background: var(--yellow); opacity: .4; animation-duration: 6s; animation-delay: 2.5s; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--yellow); margin: 0 0 22px;
  animation: riseIn .6s .1s ease both;
}
.dot {
  width: 8px; height: 8px; background: var(--yellow); border-radius: 50%;
  animation: pulseDot 1.6s ease infinite;
}
.hero__title {
  margin: 0;
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(64px, 8.5vw, 124px);
  line-height: .9; letter-spacing: -.01em;
  animation: riseIn .7s .2s ease both;
}
.hero__title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
}
.hero__lead {
  max-width: 460px; font-size: 18px; line-height: 1.6;
  color: rgba(244,242,236,.75); margin: 28px 0 36px;
  text-wrap: pretty;
  animation: riseIn .7s .35s ease both;
}
.hero__cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: riseIn .7s .5s ease both;
}

.hero__media {
  position: relative; margin: 0;
  animation: riseIn .8s .4s ease both, floatMedia 7s ease-in-out 1.2s infinite;
}
.hero__frame {
  position: absolute; inset: 30px -10px -10px 30px;
  border: 2px solid var(--blue);
  transform: skewX(-6deg);
}
.hero__img {
  position: relative;
  width: 100%;
  max-height: clamp(300px, 45vw, 520px);
  object-fit: cover;
  display: block;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateX(var(--tx, 0px)) skewX(-6deg);
  transition: transform .3s ease-out;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
  will-change: transform;
}
.hero__badge {
  position: absolute; bottom: -14px; right: 24px;
  background: var(--yellow); color: var(--bg);
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 15px; letter-spacing: .1em;
  padding: 6px 16px;
  transform: skewX(var(--skew));
}

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid rgba(244,242,236,.12);
  border-bottom: 1px solid rgba(244,242,236,.12);
  overflow: hidden;
  background: var(--panel);
  padding: 14px 0;
}
.ticker__track {
  display: flex; width: max-content;
  animation: marquee 24s linear infinite;
}
.ticker__group {
  padding-right: 48px;
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 22px; letter-spacing: .14em; white-space: nowrap;
}
.ticker__group i { font-style: italic; }

/* ---------- Sections ---------- */
.section {
  padding: 100px clamp(20px, 5vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
}
#work, #preview { padding-top: 20px; padding-bottom: 100px; }
.section__head {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 56px; flex-wrap: wrap;
}
.section__head--tight { margin-bottom: 32px; }
.section__num {
  font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: .2em;
}
.section__title {
  margin: 0;
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 68px); line-height: 1;
}
.section__lead {
  margin: 0 0 28px; max-width: 520px;
  font-size: 16px; line-height: 1.6; color: rgba(244,242,236,.65);
  text-wrap: pretty;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2px;
  background: rgba(244,242,236,.12);
}
.service {
  background: var(--bg);
  padding: 36px 28px 44px;
  transition: background .3s ease;
}
.service:hover { background: #10151E; }
.service__num {
  font-weight: 900; font-style: italic; font-size: 64px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,242,236,.25);
  margin-bottom: 28px;
}
.service__bar {
  display: block; width: 36px; height: 5px;
  transform: skewX(-20deg); margin-bottom: 18px;
}
.service__title {
  margin: 0 0 12px;
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 28px; letter-spacing: .02em;
}
.service__body {
  margin: 0; font-size: 15px; line-height: 1.6;
  color: rgba(244,242,236,.65); text-wrap: pretty;
}

/* ---------- Work ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.work__item {
  margin: 0; position: relative; overflow: hidden;
}
.work__item img {
  width: 100%; height: clamp(300px, 45vw, 520px);
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.work__item:hover img { transform: scale(1.04); }
.work__item figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--bg);
  padding: 14px 24px;
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 18px; letter-spacing: .1em;
  border-top: 3px solid var(--red);
}
.work__note {
  margin: 24px 0 0; font-size: 15px; color: rgba(244,242,236,.5);
}

/* ---------- 3D viewer ---------- */
.viewer { position: relative; border: 2px solid var(--blue); }
.viewer__canvas {
  display: block; width: 100%;
  height: clamp(420px, 60vh, 640px);
  background: radial-gradient(ellipse 60% 55% at 50% 45%, #141a26, #0D1016 75%);
  cursor: grab; touch-action: none; overflow: hidden;
}
.viewer__badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--yellow); color: var(--bg);
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 14px; letter-spacing: .1em; padding: 6px 16px;
}
.viewer__hint {
  position: absolute; left: 0; bottom: 0;
  background: var(--bg);
  padding: 10px 20px;
  font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,242,236,.6);
  border-top: 2px solid var(--blue);
}

/* ---------- Process ---------- */
.process {
  background: var(--panel);
  border-top: 1px solid rgba(244,242,236,.1);
  border-bottom: 1px solid rgba(244,242,236,.1);
  padding: 100px clamp(20px, 5vw, 48px);
}
.process__inner { max-width: 1400px; margin: 0 auto; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 48px;
}
.step { display: flex; flex-direction: column; gap: 14px; }
.step__n {
  font-weight: 900; font-style: italic; font-size: 22px;
  color: var(--bg); background: var(--yellow);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transform: skewX(var(--skew));
}
.step__title {
  margin: 0;
  font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 26px;
}
.step__body {
  margin: 0; font-size: 15px; line-height: 1.6;
  color: rgba(244,242,236,.65); text-wrap: pretty;
}

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 48px);
  text-align: center;
}
.cta__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 800px 400px at 50% 100%, rgba(30,90,232,.3), transparent 65%);
}
.cta__inner { position: relative; }
.cta__title {
  margin: 0 0 20px;
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(48px, 6.5vw, 92px); line-height: .95;
}
.cta__lead {
  max-width: 520px; margin: 0 auto 40px;
  font-size: 18px; line-height: 1.6; color: rgba(244,242,236,.7);
  text-wrap: pretty;
}

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  padding: 24px clamp(20px, 5vw, 48px);
  border-top: 1px solid rgba(244,242,236,.1);
  font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244,242,236,.5);
}
.footer a { color: rgba(244,242,236,.5); }
.footer a:hover { color: var(--yellow); }
.footer__links { display: flex; gap: 24px; }

/* ---------- Magnetic CTAs ---------- */
.btn--red, .btn--yellow, .btn--lg {
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px)) skewX(var(--skew));
  transition: transform .25s cubic-bezier(.2,.8,.2,1), filter .2s ease;
  will-change: transform;
}

/* ---------- Configurator ---------- */
.config {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 400px);
  gap: 40px;
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 48px) 80px;
}
.config__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 30% 15%, rgba(30,90,232,.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 90%, rgba(232,53,44,.12), transparent 60%);
}
.config__head { margin-bottom: 26px; }
.config__title {
  margin: 14px 0 14px;
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(44px, 6vw, 84px); line-height: .92; letter-spacing: -.01em;
}
.config__title .outline { color: transparent; -webkit-text-stroke: 2px var(--yellow); }
.config__lead {
  max-width: 560px; margin: 0 0 4px;
  font-size: 16px; line-height: 1.6; color: rgba(244,242,236,.7); text-wrap: pretty;
}
.config__viewer { margin-top: 8px; }
.config__viewer .viewer__canvas { height: clamp(360px, 56vh, 640px); }

/* control panel */
.config__panel {
  position: sticky; top: 20px;
  display: flex; flex-direction: column; gap: 26px;
  background: var(--panel);
  border: 1px solid rgba(244,242,236,.12);
  padding: 26px 24px 30px;
}
.ctrl { display: flex; flex-direction: column; gap: 14px; }
.ctrl__title {
  margin: 0; display: flex; align-items: baseline; gap: 10px;
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: 22px; letter-spacing: .04em;
}
.ctrl__title span { font-size: 15px; letter-spacing: .2em; }
.ctrl__hint { margin: 2px 0 0; font-size: 13px; color: rgba(244,242,236,.5); }
.ctrl--send { gap: 12px; margin-top: 4px; padding-top: 22px; border-top: 1px solid rgba(244,242,236,.12); }

/* swatches */
.swatchrow { display: flex; align-items: center; gap: 14px; }
.swatchrow__label {
  flex: 0 0 66px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244,242,236,.6);
}
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 26px; height: 26px; padding: 0; border: 2px solid rgba(244,242,236,.2);
  transform: skewX(var(--skew)); cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.swatch:hover { transform: skewX(var(--skew)) scale(1.15); }
.swatch.is-active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--yellow);
}

/* finishes */
.finishes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.finish {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 16px; letter-spacing: .06em;
  padding: 11px 10px; cursor: pointer;
  color: var(--ink); background: var(--bg);
  border: 1px solid rgba(244,242,236,.2);
  transform: skewX(var(--skew));
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.finish > * { display: inline-block; }
.finish:hover { border-color: var(--yellow); }
.finish.is-active { background: var(--yellow); color: var(--bg); border-color: var(--yellow); }

/* number input */
.numinput {
  width: 100%; padding: 12px 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid rgba(244,242,236,.2);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-style: italic; font-size: 26px; letter-spacing: .1em;
  text-transform: uppercase; text-align: center;
  transform: skewX(var(--skew));
}
.numinput:focus { outline: none; border-color: var(--yellow); }

/* presets */
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; cursor: pointer; text-align: left;
  background: var(--bg); border: 1px solid rgba(244,242,236,.16);
  transition: border-color .15s ease, background .15s ease;
}
.preset:hover { border-color: var(--yellow); background: #10151E; }
.preset__chips { display: inline-flex; }
.preset__chips i {
  width: 10px; height: 16px; display: block; transform: skewX(var(--skew));
  margin-right: -2px; border: 1px solid rgba(0,0,0,.25);
}
.preset__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}

/* block buttons */
.btn--block { display: block; width: 100%; text-align: center; font-size: 18px; padding: 13px 20px; }
.btn--ghost.btn--block { border: 2px solid rgba(244,242,236,.4); }

@media (max-width: 900px) {
  .config { grid-template-columns: 1fr; }
  .config__panel { position: static; }
}

/* ---------- Reveal on scroll (diagonal stripe wipe) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  clip-path: polygon(0 0, 0 0, -25% 100%, -25% 100%);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  clip-path: polygon(0 0, 125% 0, 100% 100%, -25% 100%);
  transition:
    opacity .6s ease var(--reveal-delay, 0s),
    transform .7s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0s),
    clip-path .8s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0s);
}

/* ---------- Keyframes ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideStripe { from { transform: translateX(-100%) skewX(-20deg); } to { transform: translateX(300%) skewX(-20deg); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes floatMedia { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .hero__img { transform: skewX(-6deg); }
}
