/* Homepage modules. Shared tokens / chrome live in layout.css. */
/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: var(--nav-h) var(--pad) 40px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.hero-stage {
  flex: 1;
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.orb {
  position: absolute;
  width: min(760px, 86vw);
  height: min(760px, 86vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,255,0,.28) 0%, rgba(212,255,0,.1) 34%, transparent 70%);
  filter: blur(42px);
  animation: light-breathe 6.5s ease-in-out infinite;
}

@keyframes light-breathe {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.12); opacity: 1; }
}

.crystal-wrap {
  position: relative;
  width: min(720px, 88vw);
  height: min(720px, 88vw);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  pointer-events: none;
}

.crystal {
  position: relative;
  width: 420px;
  height: 420px;
  transform-style: preserve-3d;
  animation: crystal-float 9s ease-in-out infinite;
}

.device-rig {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: device-spin 40s linear infinite;
}

.core-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(212,255,0,.9) 16%, rgba(212,255,0,.38) 38%, rgba(212,255,0,.1) 58%, transparent 74%);
  animation: glow-breathe 5s ease-in-out infinite;
}

.core-cube {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  transform-style: preserve-3d;
}

.core-cube i {
  position: absolute;
  inset: 0;
}

.core-cube .cf-f { transform: translateZ(17px); background: #e2ff4d; }
.core-cube .cf-b { transform: rotateY(180deg) translateZ(17px); background: #b6d400; }
.core-cube .cf-l { transform: rotateY(-90deg) translateZ(17px); background: #d4ff00; }
.core-cube .cf-r { transform: rotateY(90deg) translateZ(17px); background: #c4eb00; }
.core-cube .cf-u { transform: rotateX(90deg) translateZ(17px); background: #f2ff99; }
.core-cube .cf-d { transform: rotateX(-90deg) translateZ(17px); background: #8aa600; }

.orbit-track {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotateX(68deg) rotateZ(18deg);
  transform-style: preserve-3d;
}

.orbit-track.alt { transform: rotateX(-62deg) rotateZ(-28deg); }

.orbit {
  position: absolute;
  left: -78px;
  top: -78px;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border: 1px solid rgba(212,255,0,.28);
  border-top-color: #d4ff00;
  border-right-color: rgba(212,255,0,.5);
  animation: orbit-flow 5.5s linear infinite;
}

.orbit-track.alt .orbit {
  width: 116px;
  height: 116px;
  left: -58px;
  top: -58px;
  border-top-color: rgba(212,255,0,.75);
  animation-duration: 8s;
  animation-direction: reverse;
}

.frame,
.slab {
  position: absolute;
  left: 50%;
  top: 50%;
}

.frame {
  width: 348px;
  height: 348px;
  margin: -174px 0 0 -174px;
  border: 16px solid rgba(72,72,72,.82);
  background: rgba(28,28,28,.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    inset 0 0 28px rgba(212,255,0,.06);
}

.frame-xy {
  transform: translateZ(0);
  border-top-color: rgba(168,168,168,.95);
  border-left-color: rgba(110,110,110,.9);
  border-right-color: rgba(56,56,56,.88);
  border-bottom-color: rgba(36,36,36,.9);
}

.frame-xz {
  transform: rotateX(90deg);
  border-color: rgba(64,64,64,.86);
  border-top-color: rgba(140,140,140,.92);
}

.frame-yz {
  transform: rotateY(90deg);
  border-color: rgba(58,58,58,.86);
  border-left-color: rgba(128,128,128,.9);
}

.slab {
  width: 176px;
  height: 176px;
  margin: -88px 0 0 -88px;
  background: linear-gradient(155deg, rgba(120,120,120,.42) 0%, rgba(28,28,28,.48) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

.slab-a { transform: rotateY(24deg) translateZ(64px); }
.slab-b { transform: rotateY(-66deg) translateZ(64px); }

@keyframes crystal-float {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(-12px); }
}

@keyframes device-spin {
  to { transform: rotateY(360deg); }
}

@keyframes orbit-flow {
  to { transform: rotate(360deg); }
}

@keyframes glow-breathe {
  0%, 100% { transform: scale(1); opacity: .88; }
  50% { transform: scale(1.18); opacity: 1; }
}

.crystal-shadow {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 34%;
  height: 5%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 72%);
  filter: blur(12px);
  animation: shadow-breathe 9s ease-in-out infinite;
}

@keyframes shadow-breathe {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: .55; }
  50% { transform: translateX(-50%) scaleX(.84); opacity: .3; }
}

@media (max-width: 720px) {
  @keyframes crystal-float {
    0%, 100% { transform: translateY(6px) scale(.68); }
    50% { transform: translateY(-10px) scale(.68); }
  }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding-bottom: 12px;
}

.hero-title {
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero-title .a { color: var(--lime); }

.hero-heading {
  margin-top: 18px;
  max-width: 520px;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 460px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #f2f2f2;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  padding-bottom: 8px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #fff;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: .25s;
}

.btn:hover { border-color: var(--lime); color: var(--lime); }

.btn-solid {
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
  font-weight: 600;
}

.btn-solid:hover { background: #e8ff4d; color: #000; }

.view-work {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.view-work i {
  width: 28px;
  height: 28px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
}

.trust span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.trust span::before {
  content: "◆";
  color: var(--lime);
  margin-right: 8px;
  font-size: 8px;
}

/* ========== SECTION SHARED ========== */
section { position: relative; }

.sec {
  padding: 120px var(--pad);
}

.sec-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}

/* ========== PRINCIPLES ========== */
.principles {
  padding: 130px var(--pad) 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.55fr);
  gap: 80px;
  align-items: start;
}

.principle-text {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(26px, 3.1vw, 44px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  max-width: 920px;
}

.principle-text em {
  font-style: normal;
  color: var(--lime);
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 6px;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-value.live {
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.marquee-wrap {
  margin-top: 110px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: 28px 0 8px;
}

.marquee {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.marquee span {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #d8d8d8;
  white-space: nowrap;
  padding-right: 28px;
}

.marquee i {
  font-style: normal;
  color: var(--lime);
  font-size: 0.28em;
  vertical-align: middle;
  margin: 0 10px 10px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== WORKS ========== */
.works-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.works-title {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.works-title em {
  font-style: normal;
  color: var(--lime);
}

.carousel-nav {
  display: flex;
  gap: 10px;
}

.c-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gray);
  transition: .25s;
}

.c-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.works-track-wrap { overflow: hidden; }

.works-track {
  display: flex;
  gap: 0;
  transition: transform .5s cubic-bezier(.22,.7,.25,1);
}

.work-card {
  flex: 0 0 33.333%;
  padding: 0 28px 0 0;
  border-right: 1px solid var(--line);
}

.work-card:last-child { border-right: 0; }

.work-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0d0d0d;
  margin-bottom: 18px;
}

.work-visual .art {
  width: 100%;
  height: 100%;
  transition: transform .7s;
}

.work-card:hover .work-visual .art { transform: scale(1.04); }

.work-visual svg.motif {
  position: absolute;
  inset: 18% 14% 22%;
  width: auto;
  height: auto;
  opacity: .9;
}

.work-idx {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.08em;
}

.work-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.work-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.work-row h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.go {
  width: 34px;
  height: 34px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: .25s;
}

.work-card:hover .go {
  background: var(--lime);
  color: #000;
}

.work-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 92%;
}

.art {
  background:
    radial-gradient(circle at 30% 30%, rgba(212,255,0,.18), transparent 42%),
    linear-gradient(160deg, #111 0%, #050505 100%);
}

.art-1 { background:
  radial-gradient(circle at 70% 20%, rgba(212,255,0,.16), transparent 40%),
  repeating-linear-gradient(90deg, transparent 0 31px, #1a1a1a 32px),
  repeating-linear-gradient(0deg, transparent 0 31px, #161616 32px),
  #0a0a0a;
}

.art-2 { background:
  radial-gradient(ellipse at 50% 80%, rgba(212,255,0,.2), transparent 50%),
  linear-gradient(135deg, #0b0b0b, #151515 50%, #070707);
}

.art-3 { background:
  conic-gradient(from 210deg, #0a0a0a, #1a1a1a, #0a0a0a),
  radial-gradient(circle at 50% 50%, rgba(212,255,0,.12), transparent 55%);
}

.art-4 { background:
  radial-gradient(circle at 40% 40%, rgba(255,255,255,.08), transparent 30%),
  radial-gradient(circle at 60% 60%, rgba(212,255,0,.15), transparent 40%),
  #080808;
}

/* ========== CRAFT / TOOLS ========== */
.craft {
  padding: 140px var(--pad);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.craft-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 36px;
}

.craft h2 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.craft-lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 28px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 420px;
}

.tags a,
.tags span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #2a2a2a;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfcfcf;
  transition: .25s;
}

.tags a:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.craft-list { display: flex; flex-direction: column; }

.craft-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 0;
  border: 0;
  width: 100%;
  text-align: left;
}

.craft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.craft-item .name {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #d2d2d2;
  transition: .28s;
}

.craft-item .num {
  font-size: 13px;
  color: #b8b8b8;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  transition: .28s;
}

.craft-desc {
  display: none;
}

.craft-item.is-on .name {
  color: var(--lime);
  text-shadow: 5px 5px 0 rgba(212,255,0,.12);
}

.craft-item.is-on .num { color: var(--lime); }

@media (hover: hover) and (pointer: fine) {
  .craft-item:hover .name {
    color: var(--lime);
    text-shadow: 5px 5px 0 rgba(212,255,0,.12);
  }
  .craft-item:hover .num { color: var(--lime); }
}

/* ========== TECH QUOTE ========== */
.quote-sec {
  padding: 100px var(--pad) 80px;
  border-top: 1px solid var(--line);
}

.quote-layout {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: start;
}

.qmark {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 96px;
  line-height: 0.7;
  color: var(--lime);
  font-weight: 800;
}

.quote-text {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
  max-width: 920px;
}

.quote-by {
  margin-top: 28px;
}

.quote-by strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.quote-by span {
  font-size: 12px;
  color: var(--gray);
}

.q-pager {
  display: flex;
  gap: 8px;
  align-self: end;
}

.q-pager button {
  width: 42px;
  height: 42px;
  border: 1px solid #2a2a2a;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.q-pager button.on {
  border-color: var(--lime);
  color: var(--lime);
}

/* ========== FAQ ========== */
.faq {
  padding: 40px var(--pad) 120px;
}

.faq h2 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 10px 0 48px;
}

.faq h2 em { font-style: normal; color: var(--lime); }

.faq-item {
  border-top: 1px solid #1f1f1f;
}

.faq-item:last-child { border-bottom: 1px solid #1f1f1f; }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  text-align: left;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.faq-q:hover { color: var(--lime); }

.plus {
  width: 28px;
  height: 28px;
  position: relative;
  flex-shrink: 0;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.plus::before { top: 13px; left: 5px; right: 5px; height: 1px; }
.plus::after { left: 13px; top: 5px; bottom: 5px; width: 1px; transition: transform .25s; }

.faq-item.open .plus::after { transform: scaleY(0); }

.faq-a {
  display: none;
  padding: 0 80px 26px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 820px;
}

.faq-item.open .faq-a { display: block; }

/* ========== CTA ========== */
.cta {
  padding: 80px var(--pad) 110px;
  border-top: 1px solid var(--line);
}

.cta-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}

.cta-title {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(56px, 11vw, 148px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-title .w { color: #fff; }
.cta-title .g { color: var(--lime); }
.cta-title .arrow {
  font-weight: 400;
  color: #fff;
  font-size: 0.72em;
}

.cta-row {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.cta-row p {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.btn-lime {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: .25s;
}

.btn-lime:hover {
  background: var(--lime);
  color: #000;
}


.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

main { animation: rise .85s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .principles-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats { flex-direction: row; flex-wrap: wrap; gap: 28px 48px; }
  .craft { grid-template-columns: 1fr; gap: 48px; }
  .work-card { flex-basis: 50%; }
  .quote-layout { grid-template-columns: 1fr; }
  .q-pager { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-meta { align-items: flex-start; }
  .hero-actions { justify-content: flex-start; }
  .work-card { flex-basis: 100%; border-right: 0; padding-right: 0; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .principle-text { font-size: 24px; }
  .craft { padding: 80px var(--pad); gap: 32px; }
  .craft h2 { text-transform: none; }
  .tags { display: none; }
  .craft-item {
    padding: 16px 0;
    border-bottom: 1px solid #1a1a1a;
  }
  .craft-item .name {
    font-size: clamp(26px, 8vw, 34px);
    color: #d6d6d6;
    text-transform: none;
  }
  .craft-item .num { color: #c0c0c0; }
  .craft-item.is-on .name {
    color: var(--lime);
    text-shadow: none;
  }
  .craft-item.is-on .num { color: var(--lime); }
  .craft-item.is-on .craft-desc {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
  }
  .craft-item.is-on .craft-desc em {
    display: block;
    margin-top: 8px;
    font-style: normal;
    color: var(--lime);
    font-size: 12px;
    letter-spacing: 0.08em;
  }
}

.on-lime .principle-text em,
.on-lime .qmark { color: #111; }

.on-lime .q-pager button {
  border-color: rgba(0, 0, 0, 0.28);
  color: #222;
}

.on-lime .q-pager button.on {
  border-color: #111;
  color: #111;
}

.on-lime .marquee span { color: #111; }

.on-lime .marquee i { color: #111; }

.on-lime .cta-title .w,
.on-lime .cta-title .g,
.on-lime .cta-title .arrow { color: #111; }

.on-lime .btn-lime {
  border-color: #111;
  color: #111;
}

.on-lime .btn-lime:hover {
  background: #111;
  color: var(--lime);
}
