/* ---------- tokens ---------- */
:root {
  --bg-page: #F4F8FF;
  --bg-tint: #E6EFFF;
  --ink: #0B1B33;
  --ink-2: #42527A;
  --blue: #2E6BFF;
  --blue-h: #1E4FD6;
  --amber: #FFB35C;
  --amber-deep: #B77828;
  --card-bg: #fff;
  --band-bg: #0B1B33;
  --glass-bg: rgba(255, 255, 255, .55);
  --glass-bg-2: rgba(255, 255, 255, .4);
  --glass-border: rgba(255, 255, 255, .7);
  --shadow-c: rgba(11, 27, 51, .08);
  --shadow-c2: rgba(11, 27, 51, .12);
  --hairline: rgba(11, 27, 51, .06);
  --btn-ghost-border: rgba(11, 27, 51, .18);
  --btn-ghost-border-h: rgba(11, 27, 51, .4);
  --blue-glow: rgba(46, 107, 255, .3);
  --hero-scrim: linear-gradient(90deg, rgba(244, 248, 255, .94) 0%, rgba(244, 248, 255, .82) 42%, rgba(244, 248, 255, .15) 75%, rgba(244, 248, 255, 0) 100%);
  --shot-stage: #E6EFFF;
  --shot-veil: linear-gradient(180deg, rgba(46, 107, 255, .10) 0%, rgba(11, 27, 51, .04) 45%, rgba(11, 27, 51, .14) 100%);
}

html[data-theme="dark"] {
  --bg-page: #0A1426;
  --bg-tint: #101F3A;
  --ink: #EAF1FF;
  --ink-2: #9FB0D4;
  --blue: #5C8BFF;
  --blue-h: #7AA5FF;
  --amber: #FFC784;
  --amber-deep: #FFC784;
  --card-bg: #12203E;
  --band-bg: #060D1B;
  --glass-bg: rgba(13, 25, 48, .55);
  --glass-bg-2: rgba(13, 25, 48, .4);
  --glass-border: rgba(255, 255, 255, .14);
  --shadow-c: rgba(0, 0, 0, .35);
  --shadow-c2: rgba(0, 0, 0, .5);
  --hairline: rgba(255, 255, 255, .08);
  --btn-ghost-border: rgba(255, 255, 255, .25);
  --btn-ghost-border-h: rgba(255, 255, 255, .5);
  --blue-glow: rgba(46, 107, 255, .35);
  --hero-scrim: linear-gradient(90deg, rgba(10, 20, 38, .94) 0%, rgba(10, 20, 38, .82) 42%, rgba(10, 20, 38, .15) 75%, rgba(10, 20, 38, 0) 100%);
  --shot-stage: #16294B;
  --shot-veil: linear-gradient(180deg, rgba(46, 107, 255, .14) 0%, rgba(6, 13, 27, .20) 45%, rgba(6, 13, 27, .44) 100%);
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Decorative bleed (the services glow, the map labels) sits outside its box on purpose.
 `clip` contains it without turning body into a scroll container, so the sticky nav survives. */
html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-h);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}

.h2 {
  margin: 0 0 40px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--ink);
}

em.accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 30px var(--blue-glow);
  transition: background .2s ease-out, transform .2s ease-out;
}

.btn-primary:hover {
  background: var(--blue-h);
  color: #fff;
  transform: translateY(-3px);
}

.btn-ghost {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 32px;
  border-radius: 999px;
  border: 1.5px solid var(--btn-ghost-border);
  background: var(--glass-bg-2);
  transition: border-color .2s ease-out, transform .2s ease-out;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--btn-ghost-border-h);
  transform: translateY(-3px);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  max-width: 1080px;
  margin: 16px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 8px 30px var(--shadow-c);
}

.nav-logo {
  display: flex;
  align-items: center;
  padding-inline-start: 12px;
}

.nav-logo img {
  height: 30px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-2);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--btn-ghost-border);
  background: var(--glass-bg-2);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color .2s ease-out;
}

.theme-btn:hover {
  border-color: var(--btn-ghost-border-h);
}

.nav-cta {
  background: var(--blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .2s ease-out, transform .2s ease-out;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--blue-h);
  color: #fff;
  transform: translateY(-2px);
}

/* Light theme shows the black mark, dark theme the white one. Both selectors are
 theme-scoped so they out-specify the `.nav-logo img` / `.footer img` display rules. */
html[data-theme="light"] .logo-dark {
  display: none;
}

html[data-theme="dark"] .logo-light {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  margin-top: -78px;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-page) 70%);
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease-out;
  /* The generator's sparkle mark sits at ~89-94% across / ~82% down inside the frame.
   Scaling from the top-left pushes the right and bottom edges past the hero's clip,
   dropping the mark out of frame while keeping the subject and the left-hand copy area. */
  transform: scale(1.18);
  transform-origin: left top;
}

.hero video.is-ready {
  opacity: 1;
}

/* Melt the clip's bottom edge into the page so there is no seam where the hero ends. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--bg-page));
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
  pointer-events: none;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.blob-a {
  left: -8%;
  top: 6%;
  width: 640px;
  height: 520px;
  background: radial-gradient(circle, rgba(46, 107, 255, .28), rgba(46, 107, 255, 0) 70%);
  animation: om-drift-a 26s ease-in-out infinite;
}

.blob-b {
  left: 62%;
  top: 34%;
  width: 560px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 179, 92, .32), rgba(255, 179, 92, 0) 70%);
  animation: om-drift-b 26s ease-in-out infinite;
}

.blob-c {
  left: 30%;
  top: 55%;
  width: 500px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%);
  animation: om-drift-a 26s ease-in-out infinite;
}

html[data-theme="dark"] .blob-c {
  background: radial-gradient(circle, rgba(92, 139, 255, .14), rgba(92, 139, 255, 0) 70%);
}

/* z-index keeps the copy above the bottom-fade pseudo-element. */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 160px 32px 96px;
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  margin: 0 0 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  color: var(--ink);
}

.hero-lede {
  max-width: 58ch;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-btns {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.hero-stats strong {
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}

/* ---------- services ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 32px 40px;
  position: relative;
}

.svc-glow {
  position: absolute;
  inset: -40px;
  border-radius: 40px;
  pointer-events: none;
  background: radial-gradient(circle at 20% 30%, rgba(46, 107, 255, .10), transparent 55%), radial-gradient(circle at 80% 70%, rgba(255, 179, 92, .12), transparent 55%);
}

.grid-svc {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.svc-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 30px var(--shadow-c);
  transition: transform .2s ease-out;
}

.svc-card:hover {
  transform: translateY(-4px);
}

.svc-card h3 {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}

.svc-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.pill-new {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--amber-deep);
  background: rgba(255, 179, 92, .22);
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: middle;
  margin-inline-start: 6px;
}

/* ---------- work ---------- */
.grid-work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.work-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-c);
  color: inherit;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}

.work-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 14px 40px var(--shadow-c2);
}

/* The screenshots come from very different sources — laptop mockups, phone-in-hand photos,
 full-bleed website captures. The stage below normalises them: one aspect ratio, a shared
 brand veil and a slight desaturation at rest, full colour and a gentle push-in on hover. */
.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--shot-stage);
  border-bottom: 1px solid var(--hairline);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(.88) contrast(1.02);
  transform: scale(1.01);
  transition: transform .45s cubic-bezier(.2, .7, .3, 1), filter .45s ease-out;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--shot-veil);
  transition: opacity .45s ease-out;
  pointer-events: none;
}

.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.work-card:hover .shot img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1);
}

.work-card:hover .shot::after {
  opacity: .35;
}

.work-body {
  padding: 22px 24px 26px;
}

.work-kind {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.work-body h3 {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.work-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--hairline);
  background: var(--bg-tint);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- process ---------- */
.grid-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step {
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-tint);
}

.step p:first-child {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
}

.step p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.step-last {
  background: var(--band-bg);
}

.step-last p:first-child {
  color: var(--amber);
}

.step-last p:last-child {
  color: #C6D3EC;
}

/* ---------- about ---------- */
.about {
  background: var(--band-bg);
  padding: 100px 32px;
}

.about-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  align-items: center;
}

.about h2 {
  color: #fff;
}

.about .eyebrow {
  color: var(--amber);
}

.about-lede {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  color: #C6D3EC;
  max-width: 52ch;
  text-wrap: pretty;
}

.quote {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, #FFB35C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: .02em;
}

.quote p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #C6D3EC;
}

.quote span {
  font-size: 13.5px;
  color: #7A8BB0;
}

.map {
  position: relative;
  height: 340px;
}

.ring {
  position: absolute;
  left: 44%;
  top: 38%;
  border-radius: 50%;
}

.ring-1 {
  width: 220px;
  height: 220px;
  margin: -110px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.ring-2 {
  width: 400px;
  height: 400px;
  margin: -200px;
  border: 1px solid rgba(255, 255, 255, .07);
}

.pin {
  position: absolute;
}

.pin i {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.pin span {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 12.5px;
  color: #C6D3EC;
  white-space: nowrap;
}

.pin-hq {
  left: 44%;
  top: 38%;
}

.pin-hq i {
  width: 12px;
  height: 12px;
  margin: -6px;
  background: var(--amber);
}

.pin-hq .pulse {
  animation: om-pulse 2.4s ease-out infinite;
}

.pin-hq span {
  top: 10px;
  left: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.pin-sm i {
  width: 9px;
  height: 9px;
  margin: -4.5px;
  background: var(--blue);
}

.map-far {
  position: absolute;
  left: 78%;
  top: 22%;
  font-size: 12.5px;
  color: #7A8BB0;
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  padding: 130px 32px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-tint) 100%);
}

.contact-glow {
  position: absolute;
  left: 50%;
  top: -120px;
  width: 520px;
  height: 320px;
  margin-inline-start: -260px;
  background: radial-gradient(ellipse at center, rgba(255, 179, 92, .25), transparent 65%);
  pointer-events: none;
}

.contact h2 {
  position: relative;
  margin: 0 0 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--ink);
}

.contact p {
  position: relative;
  margin: 0 auto;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: balance;
}

.contact-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.contact-row a:not(.btn-primary) {
  font-weight: 500;
  font-size: 15px;
}

/* ---------- footer ---------- */
.footer {
  background: var(--bg-page);
  border-top: 1px solid var(--hairline);
  padding: 56px 32px 40px;
}

.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
}

.footer img {
  height: 26px;
  display: block;
  margin-bottom: 10px;
}

.footer-tag {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-col a {
  color: var(--ink);
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-head {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.footer-col span {
  color: var(--ink-2);
}

.lang {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.lang .on {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--hairline);
  border-radius: 999px;
  padding: 5px 14px;
}

/* The inactive chip is a real link to the other language. */
.lang .off {
  font-size: 13px;
  color: var(--ink-2);
  border: 1px solid var(--btn-ghost-border);
  border-radius: 999px;
  padding: 5px 14px;
  transition: color .2s ease-out, border-color .2s ease-out;
}

.lang .off:hover {
  color: var(--ink);
  border-color: var(--btn-ghost-border-h);
}

/* Header language toggle — sits beside the theme button, same 38px pill. */
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--btn-ghost-border);
  background: var(--glass-bg-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: border-color .2s ease-out, color .2s ease-out;
}

.lang-btn:hover {
  color: var(--ink);
  border-color: var(--btn-ghost-border-h);
}

.copyright {
  max-width: 1080px;
  margin: 40px auto 0;
  font-size: 12.5px;
  color: #7A8BB0;
}

/* ---------- motion ---------- */
@keyframes om-drift-a {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(70px, -40px) scale(1.08);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes om-drift-b {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-60px, 30px) scale(1.05);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes om-pulse {
  0% {
    transform: scale(1);
    opacity: .5;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav {
    margin-inline: 16px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    padding: 140px 24px 80px;
  }

  .hero-scrim {
    background: linear-gradient(180deg, var(--bg-page) 0%, rgba(0, 0, 0, 0) 100%), var(--hero-scrim);
  }

  .section,
  .about,
  .contact {
    padding-inline: 24px;
  }

  .about-grid {
    gap: 40px;
  }

  .map {
    height: 280px;
  }
}

@media (max-width: 520px) {
  .nav-cta {
    padding: 10px 16px;
    font-size: 13.5px;
  }

  .hero-stats {
    gap: 20px 28px;
  }
}
