:root {
  --bg: #0a0d12;
  --bg-soft: #10141b;
  --text: #f4f6f8;
  --muted: #aeb6c2;
  --accent: #2f7bff;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --page-pad: 8vw;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Onest", sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(47, 123, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #0a0d12 0%, #0b0f15 60%, #0c1016 100%);
  color: var(--text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 100px var(--page-pad) 140px;
}

.no-top-padding main {
  padding-top: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4.1rem);
  font-weight: 600;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

.about-subhead {
  margin-top: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #2f7bff, #4aa3ff);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(47, 123, 255, 0.35);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: #ffffff;
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.site-header {
  position: relative;
  width: 100%;
  padding: 16px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  background: rgba(10, 13, 18, 0.98);
}

.logo {
  height: 36px;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a.active {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 32px;
  height: 28px;
  gap: 6px;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: #ffffff;
  display: block;
  transition: transform 0.2s ease;
}

.mobile-nav {
  position: fixed;
  top: 80px;
  right: var(--page-pad);
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--border);
  padding: 16px 24px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 15;
  border-radius: 12px;
}

.mobile-nav.open {
  display: flex;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  min-height: 42vh;
  padding: 24px var(--page-pad);
  background: linear-gradient(160deg, rgba(10, 13, 18, 0.85), rgba(10, 13, 18, 0.2)),
    url("imgs/hero-background-img.png") center / cover no-repeat;
  border-radius: 0;
  border: none;
  width: calc(100% + (var(--page-pad) * 2));
  margin-left: calc(var(--page-pad) * -1);
}

.hero__inner {
  max-width: 1120px;
  margin: 0;
  text-align: left;
  min-height: calc(70vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-transform: uppercase;
}

.hero__title-line {
  display: block;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
}

.hero__line-two {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.hero__rotator {
  display: inline-block;
  white-space: nowrap;
  min-width: 22ch;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  max-width: 100%;
}

#hero-rotating-text {
  display: inline-block;
  will-change: opacity, transform;
  color: var(--accent);
  font-weight: 700;
}

.hero__subtitle {
  margin: 0;
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero__cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero__link {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 180ms ease, opacity 180ms ease;
  opacity: 0.92;
}

.hero__link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.intro {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.intro h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.swap-out {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.swap-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 240ms ease, transform 240ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .swap-out,
  .swap-in {
    transition: none !important;
    transform: none !important;
  }
}


.use-cases-hero {
  max-width: 920px;
  display: grid;
  gap: 16px;
}

.use-cases-hero p {
  max-width: 720px;
}

@media (min-width: 901px) {
  .hero-title-nowrap {
    white-space: nowrap;
  }
}

.framework {
  display: grid;
  gap: 32px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.framework-item {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 12px;
}

.framework-intro h3 {
  margin-bottom: 8px;
  color: #ffffff;
}

.work-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 40px;
}

.work-card {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.2), rgba(7, 7, 7, 0.85));
  z-index: 0;
}

.work-card.is-dark::after {
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.35), rgba(7, 7, 7, 0.95));
}

.work-card.is-dark-strong::after {
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.5), rgba(7, 7, 7, 0.98));
}

.work-meta,
.work-cta {
  position: relative;
  z-index: 1;
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
}

.work-meta span:last-child {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.work-cta {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  align-self: flex-start;
}


.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proof-number {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
}

.proof-label {
  font-size: 0.95rem;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
  width: calc(100% + (var(--page-pad) * 2));
  margin-left: calc(var(--page-pad) * -1);
  padding: 60px var(--page-pad);
  background: linear-gradient(140deg, rgba(10, 13, 18, 0.92), rgba(10, 13, 18, 0.78)),
    url("imgs/note-thanun-GI10ZiPO_3w-unsplash.jpg") center / cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-text p {
  margin-top: 16px;
}

.quote {
  margin-top: 24px;
  font-style: italic;
  color: #ffffff;
}


.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 24px;
}

.pillar {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 12px;
}

.pillar h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.section-head {
  max-width: 640px;
}

.services .section-head {
  margin-bottom: 40px;
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.service-column h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #ffffff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.why-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 12px;
}

.contact-hero {
  display: grid;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.015);
}

.contact-email {
  color: #ffffff;
  font-weight: 500;
}

.case-hero {
  display: grid;
  gap: 12px;
}

.case-subtitle {
  color: var(--muted);
  font-weight: 500;
  font-size: 1.05rem;
}

.case-body {
  width: 100%;
}

.case-panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
}

.case-image {
  min-height: 300px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

.case-content {
  display: grid;
  gap: 16px;
}

.case-content h2 {
  margin: 0;
  color: #ffffff;
  font-weight: 500;
}

.case-content h3 {
  margin-top: 8px;
  color: #ffffff;
}

.case-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.case-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.case-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
}



.site-footer {
  padding: 40px var(--page-pad) 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  background: #0a0d12;
}

.footer-left p {
  margin-top: 12px;
  color: var(--muted);
}

.footer-right {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social img {
  width: 24px;
  height: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root {
    --page-pad: 7vw;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  main {
    padding: 120px var(--page-pad) 120px;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    min-height: calc(58vh - 88px);
  }

  .hero__line-two {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero__rotator {
    min-width: 0;
    white-space: normal;
    line-height: 0.95;
  }

  .mobile-nav {
    left: var(--page-pad);
    right: var(--page-pad);
    top: 76px;
  }

  .cta {
    padding: 40px;
  }

  .pillars {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .case-panel {
    grid-template-columns: 1fr;
  }

  .case-image {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-pad: 6vw;
  }

  .site-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  main {
    gap: 80px;
    padding: 110px var(--page-pad) 100px;
  }

  .logo {
    height: 30px;
  }

  .mobile-nav {
    top: 74px;
    padding: 18px 20px;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero__inner {
    min-height: calc(52vh - 74px);
  }

  .hero__title {
    line-height: 1.04;
  }

  .hero__title-line {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .hero__rotator {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .proof-strip {
    padding: 24px;
  }

  .work-card {
    min-height: 240px;
  }

  .case-panel {
    padding: 24px;
  }
}
