/* DevsApps LTD, site vitrine
   Épuré, motion-first : GSAP + ScrollTrigger + Lenis. Tout le contenu reste
   visible sans JS ; les états initiaux animés sont posés en JS uniquement. */

:root {
  --bg: #f5f5f2;
  --paper: #ffffff;
  --ink: #0b0c10;
  --ink-2: #2b2d34;
  --muted: #72747d;
  --line: rgba(11, 12, 16, 0.12);
  --accent: #2f5fed;
  --accent-2: #1d43c4;
  --accent-soft: #6f93ff;
  --dark: #0b0c10;
  --container: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.is-loading body {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

picture {
  display: contents;
}

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

ul,
dl {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  color: var(--ink);
}

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.accent {
  color: var(--accent);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.label b {
  color: var(--accent);
  font-weight: 600;
}

.label-light {
  color: rgba(255, 255, 255, 0.6);
}

.label-light b {
  color: var(--accent-soft);
}

/* Split text helpers (created in JS) */

.wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.w {
  display: inline-block;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn .arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: transform 0.45s var(--ease);
}

.btn:hover .arrow {
  transform: rotate(45deg);
}

.btn-dark,
.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-dark .arrow {
  background: #fff;
  color: var(--ink);
}

.btn-dark:hover,
.btn-primary:hover {
  background: var(--accent);
}

.btn-line,
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-line:hover,
.btn-outline:hover {
  border-color: var(--ink);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white .arrow {
  background: var(--ink);
  color: #fff;
}

.btn-white:hover {
  background: var(--accent);
  color: #fff;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* Preloader: the brand's bolt charges up over a wall of project screens, then the first screen
   flies to its place in the hero */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.js .preloader {
  display: grid;
  /* the exit punches a growing hole from the bolt: --hole is its radius, --hx/--hy its centre */
  --hole: 0px;
  --hx: 50%;
  --hy: 50%;
  -webkit-mask-image: radial-gradient(circle at var(--hx) var(--hy), transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask-image: radial-gradient(circle at var(--hx) var(--hy), transparent var(--hole), #000 calc(var(--hole) + 1px));
}

/* shockwave rings bursting from the bolt when it's fully charged */
.pl-ring {
  position: fixed;
  left: var(--hx, 50%);
  top: var(--hy, 50%);
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 0 40px 6px rgba(47, 95, 237, 0.7), inset 0 0 30px rgba(111, 147, 255, 0.6);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.pl-ring-2 {
  border-color: #fff;
  box-shadow: 0 0 60px 10px rgba(255, 255, 255, 0.5);
}

/* its own layer, so the fade at the end is a cheap opacity change, not a full-screen repaint */
.pl-bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
  will-change: opacity;
}

.pl-wall {
  position: absolute;
  inset: -30% -20%;
  display: flex;
  justify-content: center;
  gap: 2.2vw;
  opacity: 0;
  transform: perspective(1600px) rotateX(28deg) rotateZ(-16deg);
  will-change: opacity, transform;
}

.pl-col {
  display: flex;
  flex-direction: column;
  gap: 2.2vw;
  width: 24vw;
  flex: none;
  will-change: transform;
}

.pl-col img {
  width: 100%;
  aspect-ratio: 2494 / 1453;
  object-fit: cover;
  border-radius: 10px;
}

.pl-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 50% 50%, rgba(11, 12, 16, 0.94) 0%, rgba(11, 12, 16, 0.62) 60%, rgba(11, 12, 16, 0.32) 100%),
    linear-gradient(180deg, rgba(11, 12, 16, 0.6), transparent 30%, transparent 70%, rgba(11, 12, 16, 0.8));
}

.pl-top {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.pl-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.pl-bolt {
  --p: 0;
  position: relative;
  width: clamp(64px, 7vw, 104px);
  aspect-ratio: 293 / 400;
}

.pl-bolt i {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  -webkit-mask: url("../assets/img/bolt.png") center / contain no-repeat;
  mask: url("../assets/img/bolt.png") center / contain no-repeat;
}

/* the charge rises from the bottom of the bolt */
.pl-bolt .pl-bolt-fill {
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 35%, var(--accent) 100%);
  clip-path: inset(calc(100% - var(--p) * 1%) 0 0 0);
  filter: drop-shadow(0 0 22px rgba(47, 95, 237, 0.9));
}

.pl-count {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: clamp(64px, 9vw, 132px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

.pl-count small {
  font-size: 0.34em;
  margin-left: 0.06em;
  color: var(--accent-soft);
  letter-spacing: 0;
}

.pl-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.pl-label b {
  display: inline-block;
  color: #fff;
  font-weight: 500;
}

.pl-label b::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 10px var(--accent);
}

.pl-bar {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--pad);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.pl-bar i {
  display: block;
  height: 100%;
  background: var(--accent-soft);
  box-shadow: 0 0 12px var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 700px) {
  .pl-wall {
    inset: -25% -90%;
    gap: 4vw;
  }

  .pl-col {
    width: 58vw;
    gap: 4vw;
  }

  .pl-top {
    font-size: 10px;
  }

  .pl-core {
    gap: 16px;
  }

  .pl-label b {
    min-width: 0;
  }
}

/* Custom cursor (fine pointers only, enabled from JS) */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0;
  will-change: transform;
}

.has-cursor .cursor-dot,
.has-cursor .cursor-ring {
  opacity: 1;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--accent);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(47, 95, 237, 0.55);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cursor-ring.is-hover {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  background: rgba(47, 95, 237, 0.14);
  border-color: var(--accent);
}

.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor input,
.has-cursor select,
.has-cursor textarea {
  cursor: none;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: transform 0.6s var(--ease), background 0.4s var(--ease), padding 0.4s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.is-scrolled {
  background: rgba(245, 245, 242, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  padding: 12px 0;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.brand img {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav-toggle span::before {
  position: absolute;
  top: -5px;
}

.nav-toggle span::after {
  position: absolute;
  top: 5px;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-open .nav-toggle span::after {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}

.mobile-nav.is-open {
  clip-path: inset(0 0 0 0);
}

.mobile-nav a {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

body.nav-open {
  overflow: hidden;
}

/* Hero */

.hero {
  position: relative;
  padding: calc(80px + 3vh) 0 8vh;
  overflow: hidden;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hero: statement + proof */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(88px + 3vh) 0 7vh;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

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

.hero-eyebrow {
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(38px, 5.2vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 28px 0 0;
  max-width: 30em;
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--ink-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 3vw, 54px);
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 3.4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.hero-stats dd {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
}

/* Hero visual: our two MariPlace ads, fanned out */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.hero-fan-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* infinite scrolling wall of our ad creatives */
.hero-reel {
  position: relative;
  width: 100%;
  height: clamp(380px, 56vh, 540px);
  display: flex;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.hero-reel-col {
  flex: none;
  width: clamp(146px, 15vw, 186px);
  animation: hero-reel-scroll 36s linear infinite;
  will-change: transform;
}

.hero-reel-col.down {
  animation-direction: reverse;
  animation-duration: 46s;
}

.hero-reel-col img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 40px -26px rgba(11, 12, 16, 0.45);
}

@keyframes hero-reel-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reel-col {
    animation: none;
  }
}

.hero-fan-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.hero-fan-link .arrow {
  transition: transform 0.3s var(--ease);
}

.hero-fan-link:hover .arrow {
  transform: translateY(3px);
}

/* btn variant for the light hero (outline) */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Audit gratuit: cybersecurity lead-capture band */
.audit {
  background: var(--dark);
  color: #fff;
  padding: clamp(70px, 11vh, 128px) 0;
}

.audit-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.audit-eyebrow {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.55);
}

.audit-eyebrow b {
  color: var(--accent-soft);
}

.audit h2 {
  color: #fff;
  font-size: clamp(32px, 4.2vw, 58px);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.audit-danger {
  color: #ff5d66;
}

.audit-copy p {
  margin: 0 0 26px;
  max-width: 34em;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.audit-copy p b {
  color: #fff;
  font-weight: 600;
}

.audit-points {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.audit-points li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.audit-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--success, #2fcf8e);
  font-weight: 700;
}

.audit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.audit-form label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.audit-form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s var(--ease);
}

.audit-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.audit-form input:focus {
  outline: none;
  border-color: var(--accent-soft);
}

.audit-form .btn {
  margin-top: 4px;
}

.audit-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn-accent .arrow {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .audit-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Réalisations: explained project cards */

.work {
  padding: clamp(80px, 12vh, 150px) 0;
}

.work-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.work-head h2 {
  margin: 20px 0 22px;
  font-size: clamp(34px, 4.6vw, 68px);
}

.work-head p {
  margin: 0;
  max-width: 40em;
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--ink-2);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 1.6vw, 26px);
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -36px rgba(11, 12, 16, 0.4);
  border-color: transparent;
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}

/* "clickable" cue on each card's image (injected from JS) */
.work-open {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-open svg {
  width: 13px;
  height: 13px;
}

.work-card:hover .work-open {
  background: var(--accent);
  transform: translateY(-1px);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}

.work-card:hover .work-media img {
  transform: scale(1.04);
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 26px;
}

.work-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.work-top h3 {
  font-size: 22px;
}

.work-sector {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-what {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.work-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.3s var(--ease);
}

.work-link:hover {
  color: var(--accent-2);
}

/* capability chips on each card (injected from JS data) */
.work-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 2px;
}

.work-chip {
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.work-chip-more {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.work-card[role="button"] {
  cursor: pointer;
}

.work-card[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.work-more {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.work-more .arrow {
  transition: transform 0.35s var(--ease);
}

.work-card:hover .work-more .arrow {
  transform: translateX(3px);
}

.work-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-foot .work-link,
.work-foot .work-more {
  margin-top: 0;
  padding-top: 0;
}

/* Réalisation detail: right-hand slide-over */
.wd {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.wd.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease);
}

.wd-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.5);
  backdrop-filter: blur(3px);
}

.wd-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(580px, 94vw);
  background: var(--paper);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  box-shadow: -40px 0 80px -40px rgba(11, 12, 16, 0.5);
}

.wd.is-open .wd-panel {
  transform: translateX(0);
}

.wd-inner {
  padding: clamp(28px, 4vw, 52px);
}

.wd-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: -6px -6px 0 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.wd-close:hover {
  background: var(--ink);
  color: #fff;
}

.wd-sector {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.wd-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 0.98;
}

.wd-lead {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
}

.wd-section-label {
  display: block;
  margin: 34px 0 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.wd-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.wd-caps li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
}

.wd-caps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.wd-complex {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-complex li {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.wd-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wd-gallery figure {
  margin: 0;
}

.wd-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 44px -30px rgba(11, 12, 16, 0.5);
}

.wd-gallery figcaption {
  margin-top: 9px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.wd-stack {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.wd-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.wd-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .wd-caps {
    grid-template-columns: 1fr;
  }
}

/* Nos pub: ads across every placement */

.ads {
  padding: clamp(80px, 12vh, 150px) 0;
  background: var(--dark);
  color: #fff;
}

.ads h2,
.ads h3 {
  color: #fff;
}

.ads-head {
  max-width: 820px;
  margin-bottom: clamp(44px, 7vh, 80px);
}

.ads-head h2 {
  margin: 20px 0 22px;
  font-size: clamp(34px, 4.8vw, 72px);
}

.ads-head p {
  margin: 0;
  max-width: 44em;
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(255, 255, 255, 0.7);
}

.ads-product + .ads-product {
  margin-top: clamp(48px, 7vh, 88px);
  padding-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ads-product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: 30px;
}

.ads-product-head h3 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.ads-product-head p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}

.ads-formats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(16px, 2vw, 30px);
}

.ad {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.ad-frame {
  --h: clamp(230px, 32vh, 320px);
  position: relative;
  height: var(--h);
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8);
}

.ad-9x16 .ad-frame { aspect-ratio: 9 / 16; }
.ad-1x1 .ad-frame { aspect-ratio: 1 / 1; }
.ad-16x9 .ad-frame { aspect-ratio: 16 / 9; }

.ad-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.ad-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}

.ad-play:hover {
  transform: scale(1.08);
  background: #fff;
}

.ad.is-playing .ad-play {
  opacity: 0;
  pointer-events: none;
}

.ad-cap {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
}

/* New sections: responsive */

@media (max-width: 1000px) {
  .hero {
    min-height: 0;
    padding: calc(96px + 3vh) 0 8vh;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: none;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .ads-formats {
    flex-direction: column;
    align-items: stretch;
  }

  .ad-frame {
    height: auto;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-reel-col {
    width: 132px;
  }
}

/* Scroll progress + section indicator */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.section-indicator {
  position: fixed;
  left: var(--pad);
  bottom: 26px;
  z-index: 90;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.section-indicator.is-visible {
  opacity: 1;
  transform: none;
}

.si-num {
  font-family: "Inter Tight", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.si-sep {
  opacity: 0.55;
}

.si-name {
  margin-left: 8px;
}

/* Expanding photo */

.rm {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.rm-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0d1320;
}

.rm-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rm-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 15% 100%, rgba(5, 8, 20, 0.7), rgba(5, 8, 20, 0) 70%),
    linear-gradient(180deg, rgba(5, 8, 20, 0) 45%, rgba(5, 8, 20, 0.55) 100%);
}

.rm-caption {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 7vh;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  color: #fff;
}

.rm-title {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(34px, 5.6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.rm-caption .label {
  color: rgba(255, 255, 255, 0.75);
}

/* Manifesto */

.manifesto {
  padding: 20vh 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.manifesto-grid .label,
.method-head .label {
  padding-top: 0.9em;
}

.manifesto-text {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(28px, 4vw, 62px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

/* Services: horizontal scroll */

.hs {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.hs-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4.5vh;
  padding: 8vh 0 5vh;
}

.hs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hs-head h2 {
  margin-top: 18px;
  font-size: clamp(40px, 5.6vw, 88px);
  color: #fff;
}

.hs-head p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15.5px;
}

.hs-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 var(--pad);
  will-change: transform;
}

.hs-card {
  width: clamp(290px, 25vw, 360px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #13151b;
  color: #fff;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}

.hs-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.hs-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1b1e26;
}

.hs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.88) contrast(1.05);
  transform: scale(1.04);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease);
}

.hs-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 21, 27, 0) 45%, rgba(19, 21, 27, 0.85) 100%);
  pointer-events: none;
}

.hs-card:hover .hs-media img {
  filter: grayscale(0) brightness(0.9) contrast(1);
  transform: scale(1.1);
}

.hs-card .num {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 1;
  font-family: "Inter Tight", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 12, 16, 0.45);
  backdrop-filter: blur(6px);
}

.hs-card .motion-icon {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(11, 12, 16, 0.55);
  backdrop-filter: blur(6px);
}

.hs-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 26px;
}

.hs-card h3 {
  min-height: 2.1em;
  margin-bottom: 12px;
  font-size: clamp(22px, 1.75vw, 27px);
  line-height: 1.05;
  color: #fff;
}

.hs-card p {
  min-height: 4.8em;
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.hs-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.hs-card li {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
}

.hs-card-cta {
  background: var(--accent);
  border-color: var(--accent);
}

.hs-card-cta:hover {
  border-color: #fff;
}

.hs-media-cta {
  display: grid;
  place-items: center;
  background: var(--accent-2);
}

.hs-media-cta::after {
  display: none;
}

.hs-card-cta p {
  color: rgba(255, 255, 255, 0.85);
}

.hs-card-cta li {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-arrow {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 30px;
  transition: transform 0.6s var(--ease);
}

.hs-card-cta:hover .cta-arrow {
  transform: rotate(45deg) scale(1.06);
}

.hs-progress {
  position: relative;
  height: 1px;
  margin: 0 var(--pad);
  background: rgba(255, 255, 255, 0.14);
}

.hs-progress span {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

/* Motion icons */

.motion-icon {
  width: 56px;
  height: 56px;
  color: #fff;
}

.dev-cursor {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.seo-sweep {
  transform-origin: 18px 18px;
  animation: spin 3s linear infinite;
}

.maint-refresh {
  transform-origin: 20px 20px;
  animation: spin 2.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ads-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: growbar 1.4s ease-in-out infinite;
}

.ads-bar:nth-child(2) { animation-delay: 0.15s; }
.ads-bar:nth-child(3) { animation-delay: 0.3s; }

@keyframes growbar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.sec-scan {
  animation: scan 2.2s ease-in-out infinite;
}

@keyframes scan {
  0% { transform: translateY(-12px); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

.strat-needle {
  transform-origin: 20px 20px;
  animation: oscillate 2.6s ease-in-out infinite;
}

@keyframes oscillate {
  0%, 100% { transform: rotate(-24deg); }
  50% { transform: rotate(24deg); }
}

/* Marquee */

.mq {
  padding: 14vh 0;
  overflow: hidden;
}

.mq-row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(56px, 10vw, 168px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.mq-row span {
  padding-right: 0.3em;
}

.mq-row .star {
  color: var(--accent);
  font-size: 0.5em;
  align-self: center;
}

.mq-row.outline span:not(.star) {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink);
}

/* Method: stacking cards */

.method {
  padding: 14vh 0 18vh;
}

.method-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 9vh;
}

.method-head h2 {
  font-size: clamp(40px, 5.6vw, 88px);
}

.stack-card {
  position: sticky;
  top: calc(100px + var(--i) * 26px);
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 40px;
  align-items: start;
  min-height: 300px;
  margin-bottom: 26px;
  padding: 44px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  transform-origin: center top;
  box-shadow: 0 -18px 50px -40px rgba(11, 12, 16, 0.35);
}

.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--dark);
  opacity: var(--dim, 0);
  pointer-events: none;
}

.stack-card .n {
  font-family: "Inter Tight", sans-serif;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: var(--accent);
}

.stack-card h3 {
  font-size: clamp(28px, 3vw, 46px);
}

.stack-card p {
  margin: 0;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 440px;
}

.stack-card.dark {
  background: var(--dark);
  border-color: transparent;
}

.stack-card.dark h3 {
  color: #fff;
}

.stack-card.dark p {
  color: rgba(255, 255, 255, 0.65);
}

.stack-card.dark .n {
  color: var(--accent-soft);
}

/* Continuum */

.continuum {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.cont-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0d1320;
}

.cont-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cont-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 9, 22, 0.94) 0%, rgba(6, 9, 22, 0.7) 50%, rgba(29, 67, 196, 0.55) 100%);
}

.cont-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: end;
  padding-top: 16vh;
  padding-bottom: 16vh;
}

.cont-inner h2 {
  margin-top: 20px;
  font-size: clamp(40px, 5.4vw, 88px);
  color: #fff;
}

.cont-side p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.cont-list {
  margin: 28px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cont-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
}

.cont-list li span:last-child {
  color: var(--accent-soft);
}

/* About */

.about {
  padding: 18vh 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
}

.about-copy h2 {
  margin: 20px 0 30px;
  font-size: clamp(36px, 4.4vw, 68px);
}

.about-copy p {
  max-width: 520px;
  margin: 0;
  font-size: 17px;
  color: var(--ink-2);
}

.spec {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.spec > div,
.contact-info > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt,
.contact-info dt {
  font-size: 13px;
  color: var(--muted);
}

.spec dd,
.contact-info dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.about-media {
  position: relative;
  height: clamp(440px, 76vh, 760px);
  border-radius: 28px;
  overflow: hidden;
  background: #cfd5e0;
}

.about-media img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
}

.about-media .tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 12, 16, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
}

/* Contact */

.contact {
  padding: 16vh 0 14vh;
}

.contact-title {
  margin-top: 22px;
  font-size: clamp(52px, 11vw, 180px);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.contact-mail {
  position: relative;
  display: inline-block;
  margin-top: 5vh;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.contact-mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.contact-mail:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 6vw;
  margin-top: 12vh;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  transition: border-color 0.4s var(--ease);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2372747d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-status {
  display: none;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(47, 95, 237, 0.08);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 500;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: rgba(214, 48, 49, 0.08);
  color: #b3261e;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid .dd-btn {
  border-color: #d63031;
}

.contact-form button[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Custom dropdown (built from the native select by JS; the select stays as the no-JS fallback) */
.dd {
  position: relative;
}

.dd select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.dd-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.4s var(--ease);
}

.dd-btn:focus-visible,
.dd.is-open .dd-btn {
  outline: none;
  border-color: var(--ink);
}

.dd-chev {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 12, 16, 0.05);
  transition: transform 0.45s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.dd.is-open .dd-chev {
  transform: rotate(180deg);
  background: var(--ink);
  color: #fff;
}

.dd-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 18px;
  background: var(--dark);
  box-shadow: 0 30px 60px -20px rgba(11, 12, 16, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}

.dd.is-open .dd-list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

.dd-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.dd-opt::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}

.dd-opt.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dd-opt[aria-selected="true"] {
  color: #fff;
}

.dd-opt[aria-selected="true"]::after {
  opacity: 1;
  transform: none;
}

/* Footer */

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 12vh 0 0;
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-cta h3 {
  max-width: 520px;
  font-size: clamp(30px, 3.4vw, 50px);
  color: #fff;
}

.footer-cta a {
  color: var(--accent-soft);
}

.footer-links {
  display: flex;
  gap: 72px;
}

.footer-links h4 {
  margin: 0 0 16px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-links span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: #fff;
}

.wordmark {
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin: 12vh 0 0;
  font-family: "Inter Tight", sans-serif;
  font-size: 19vw;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.78;
  color: #fff;
  white-space: nowrap;
  user-select: none;
}

.wordmark .ch {
  display: inline-block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: #fff;
}

/* Legal page */

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 160px var(--pad) 100px;
}

.legal-page h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 12px;
}

.legal-page .updated {
  display: block;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--ink-2);
  font-size: 15px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 20px;
}

.legal-page a {
  color: var(--accent);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 1000px) {
  .nav-links,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .manifesto-grid,
  .method-head,
  .about-grid,
  .contact-grid,
  .cont-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hs-inner {
    min-height: 0;
    padding: 14vh 0;
  }

  .hs-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hs-track {
    flex-direction: column;
    width: auto;
  }

  .hs-card {
    width: 100%;
  }

  .hs-card h3,
  .hs-card p {
    min-height: 0;
  }

  .hs-progress {
    display: none;
  }

  .stack-card {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 32px;
    top: calc(80px + var(--i) * 16px);
  }

  .stack-card .n {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .rm-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.hero-canvas {
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 72% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 80% at 72% 40%, #000 25%, transparent 78%);
}

@media (max-width: 1499px) {
  .section-indicator {
    display: none;
  }
}



/* Visible to search engines and screen readers only */
.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;
}

/* Turnstile only takes space when Cloudflare asks the visitor to tick it */
.turnstile:not(:empty) {
  margin-bottom: 20px;
}

/* Hero video: the DevsApps Ops demo alone, 16:9, between the light statement hero and the
   near-black audit band - on a soft slate, clearly lighter than the audit and far from the
   light hero, with a hairline to mark the edge with the audit */

.hero-video {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vh, 110px) 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(180deg, #2a2f3a 0%, #222631 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-video-frame {
  position: relative;
  /* 16:9, never taller than the screen under the fixed header */
  width: min(100%, calc((100vh - 180px) * 16 / 9));
  width: min(100%, calc((100svh - 180px) * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 40px 80px -36px rgba(6, 9, 22, 0.7);
}

.hero-video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--dark);
}

/* Nos pub: a single wide 16:9 film gets a taller frame */
.ad-wide .ad-frame {
  --h: clamp(260px, 46vh, 460px);
}

@media (max-width: 760px) {
  .hero-video {
    padding: 48px 0;
  }

  .hero-video-frame {
    width: 100%;
    border-radius: 10px;
  }

  .ad-wide .ad-frame {
    max-width: 100%;
  }
}
