:root {
  --bg: #000000;
  --bg-alt: #0b0f14;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #00f8ff;
  --green: #1aa886;
  --blue: #0f7dba;
  --card: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}
img {
  max-width: 100%;
  display: block;
}

/* layout */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.bg {
  background: var(--bg);
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
/* nav reveal */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.nav--hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.nav--show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* NAV — alignment + spacing */
.nav__inner {
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px; /* more left/right air */
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in oklab, var(--bg) 70%, #0b0f14 30%);
  box-shadow: 0 0 40px rgba(0, 248, 255, 0.25);
  overflow: hidden; /* trims inner glow edges */
}
.brand__img {
  height: clamp(32px, 2.5vw + 16px, 44px); /* was 28px */
  width: auto;
}

.nav__links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}
.nav__links a {
  color: inherit;
  text-decoration: none;
}
.nav__links a:hover {
  color: #fff;
}

/* hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.light-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.light-core::before {
  content: "";
  width: min(80vmin, 720px);
  height: min(80vmin, 720px);
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(0, 248, 255, 0.25),
    rgba(26, 168, 134, 0.12) 45%,
    transparent 70%
  );
  filter: blur(30px);
}
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}
.hero__mark {
  height: clamp(160px, 16vw, 240px); /* was 112px */
  width: auto; /* keep aspect */
  filter: drop-shadow(0 0 20px rgba(0, 248, 255, 0.35));
}

/* typing reveal — clean, no pill */
.type-wrap {
  margin-top: 0.6rem;
  letter-spacing: 0.22em; /* keep some command-line feel */
}

.type {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid rgba(0, 248, 255, 0.85); /* caret only */
  padding: 0; /* no capsule */
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: clamp(16px, 1.4vw + 10px, 26px); /* bigger text */
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);

  animation: typing 1.8s steps(20, end) forwards,
    blink 1.1s steps(1, start) infinite;
}
.type::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.25rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 248, 255, 0.45),
    transparent
  );
}

/* ensure full string fits */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 24ch;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* make sure the width covers the whole string */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 26ch;
  }
} /* was 24ch */

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 22ch;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero__title {
  font-family: "Exo 2", Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem);
  margin: 0.25rem 0 0.5rem;
}
.hero__tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.25rem);
  margin: 0 0 1.5rem;
}

.hero__ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* buttons: outline → fill on hover */
.btn {
  --b: 2px;
  appearance: none;
  border: var(--b) solid color-mix(in oklab, var(--cyan) 60%, white 0%);
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in oklab, var(--cyan) 80%, white 0%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn:hover {
  color: #000;
}
.btn:hover::before {
  opacity: 1;
}
.btn--ghost {
  border-color: color-mix(in oklab, var(--cyan) 45%, white 0%);
}
.btn--ghost:hover::before {
  opacity: 0.2;
}

/* hero scroll cue */
.hero__scroll {
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 32px;
  margin: 0.35rem auto 0;
  background: rgba(255, 255, 255, 0.4);
  animation: bounce 1.2s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.section__header {
  text-align: center;
  margin-bottom: 28px;
}
.section__header h2 {
  font-family: "Exo 2", Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 1.5vw + 0.8rem, 2rem);
}
.kicker {
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

/* grid helpers */
.grid {
  display: grid;
  gap: 24px;
}
.grid--4 {
  grid-template-columns: repeat(1, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* cards */
.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  border-color: color-mix(in oklab, var(--cyan) 50%, white 0%);
  background: rgba(255, 255, 255, 0.08);
}
.card__icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 12px;
}
.card__well {
  margin-top: 12px;
  height: 80px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}
.muted {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* thumbs */
.thumb {
  display: block;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transform: translateZ(0); /* create new layer for smoother hover */
}
.thumb__img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.thumb__img span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}
.thumb__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 248, 255, 0) 0 2px,
    rgba(0, 248, 255, 0.06) 2px 3px
  );
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-10%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.thumb:hover .thumb__img::after {
  opacity: 0.8;
  transform: translateX(0);
}
.thumb__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
}
.thumb__meta em {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  font-style: normal;
}

/* featured */
.feature {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
}
.feature__img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.feature__row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
}
.feature .btn {
  white-space: nowrap;
}

/* about */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.about__img {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.about__text p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 10px;
}
.badges {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.badges li {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
}

/* contact */
.form {
  display: grid;
  gap: 12px;
}
.form input,
.form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  outline: none;
}
.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.form input:focus,
.form textarea:focus {
  border-color: color-mix(in oklab, var(--cyan) 50%, white 0%);
}
.form__actions {
  padding-top: 6px;
}

/* footer */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-bottom: 60px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}
.social .badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  margin-left: 8px;
}

/* easter egg: pixel heart */
.heart {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 248, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 248, 255, 0.2);
  color: #9ff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.heart:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(0, 248, 255, 0.45);
}
.heart .px {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cyan);
}
.px-a {
  left: 4px;
  top: 4px;
}
.px-b {
  left: 10px;
  top: 4px;
}
.px-c {
  left: 16px;
  top: 4px;
}
.px-d {
  left: 4px;
  top: 10px;
}
.px-e {
  left: 10px;
  top: 10px;
}
.px-f {
  left: 16px;
  top: 10px;
}
.px-g {
  left: 10px;
  top: 16px;
}
.heart:hover .px {
  animation: pulseHeart 0.8s ease-in-out;
}
@keyframes pulseHeart {
  0%,
  100% {
    transform: scale(1) drop-shadow(0 0 0 rgba(0, 248, 255, 0));
  }
  50% {
    transform: scale(1.12) drop-shadow(0 0 6px rgba(0, 248, 255, 0.6));
  }
}

/* helpers */
.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* -----------------------------
   Case Study page styles
------------------------------*/
.cs-hero {
  position: relative;
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--line);
}
.cs-hero .light-core::before {
  width: min(70vmin, 640px);
  height: min(70vmin, 640px);
  background: radial-gradient(
    circle at center,
    rgba(0, 248, 255, 0.22),
    rgba(26, 168, 134, 0.1) 45%,
    transparent 70%
  );
  filter: blur(26px);
}
.cs-hero__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cs-kicker {
  letter-spacing: 0.25em;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.55);
}
.cs-title {
  font-family: "Exo 2", Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw + 0.5rem, 3.2rem);
  margin: 0.25rem 0 0.4rem;
}
.cs-sub {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 12px;
}
.cs-meta {
  list-style: none;
  padding: 0;
  margin: 6px auto 10px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
}
.cs-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.tag {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.cs-cover {
  margin-top: 22px;
}
.cs-cover__img {
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.6);
}
@media (min-width: 900px) {
  .cs-cover__img {
    height: 440px;
  }
}

/* summary grid */
.cs-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .cs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cs-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
}
.cs-card h2 {
  font-family: "Exo 2", Inter, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.cs-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* gallery */
.gallery {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
.gallery__item {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
}
.gallery__img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.gallery__item figcaption {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* specs */
.specs {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .specs {
    grid-template-columns: repeat(3, 1fr);
  }
}
.specs__col {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
}
.specs__col h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-family: "Exo 2", Inter, sans-serif;
}
.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.75);
}

/* outcome */
.outcome {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .outcome {
    grid-template-columns: 2fr 1fr;
  }
}
.outcome__copy p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 10px;
}
.stats {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stats li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  text-align: center;
}
.stats strong {
  display: block;
  font-size: 1.35rem;
}
.stats span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.outcome__aside {
  display: grid;
  gap: 12px;
  align-content: start;
}
.note {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
}
.cs-pager {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 6px 0;
  text-decoration: none;
  color: inherit;
}
.nav__links a:hover {
  color: #fff;
}
/* Parallax targets */
#heroMark,
#lightCore {
  will-change: transform, filter;
}

/* Subtle ease when pointer stops */
#heroMark {
  transition: transform 0.25s ease-out;
}
#lightCore {
  transition: transform 0.35s ease-out, filter 0.35s ease-out;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #heroMark,
  #lightCore {
    transition: none !important;
    transform: none !important;
  }
}
