:root {
  --navy-950: #08121f;
  --navy-900: #0b1829;
  --navy-850: #0e1e33;
  --navy-800: #13243f;
  --navy-700: #1b2f52;
  --ink: #13213a;
  --ink-soft: #2b3a55;
  --muted: #5b677c;
  --line: #e4e7ee;
  --paper: #f7f7f4;
  --mist: #ecf1f7;
  --white: #ffffff;
  --gold: #f4c766;
  --gold-hi: #fbd98a;
  --gold-lo: #eeb54a;
  --gold-ink: #1a2233;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;

  --container: 75rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --header-h: 5.25rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 0.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

::selection {
  background: var(--gold);
  color: var(--gold-ink);
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nobr {
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.i {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Progress bar */

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  box-shadow: 0 0 12px rgb(244 199 102 / 60%);
}

/* Buttons */

.btn {
  --tx: 0px;
  --ty: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transform: translate3d(var(--tx), var(--ty), 0);
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  color: var(--gold-ink);
  box-shadow:
    0 10px 30px -12px rgb(244 199 102 / 75%),
    inset 0 1px 0 rgb(255 255 255 / 45%);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgb(255 255 255 / 65%) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}

.btn-gold:hover {
  box-shadow:
    0 18px 40px -12px rgb(244 199 102 / 90%),
    inset 0 1px 0 rgb(255 255 255 / 45%);
}

.btn-gold:hover::after {
  transform: translateX(120%);
}

.btn-gold:active {
  transform: translate3d(var(--tx), var(--ty), 0) scale(0.97);
}

.btn-arrow {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 2.25;
  transition: transform 0.45s var(--ease-spring);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-outline {
  padding: 0.6rem 1.35rem;
  min-height: 2.6rem;
  border: 1px solid rgb(244 199 102 / 75%);
  background: transparent;
  color: var(--gold);
  font-weight: 600;
}

.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.btn-outline:hover {
  color: var(--gold-ink);
}

.btn-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-dark::before {
  background: var(--ink);
}

.btn-outline-dark:hover {
  color: var(--white);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition:
    transform 0.5s var(--ease-out),
    background-color 0.4s ease,
    box-shadow 0.4s ease,
    height 0.4s var(--ease-out);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(9 20 36 / 78%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.site-header.is-scrolled {
  --header-h: 4.25rem;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.brand-mark path {
  transition: transform 0.5s var(--ease-spring);
}

.brand-slash {
  transform-origin: 24px 24px;
}

.brand:hover .brand-left {
  transform: translateX(-3px);
}

.brand:hover .brand-right {
  transform: translateX(3px);
}

.brand:hover .brand-slash {
  transform: rotate(14deg);
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-name em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: 1.12em;
}

.brand-sub {
  margin-top: 0.35rem;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 70%);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgb(255 255 255 / 78%);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  height: 2px;
  width: var(--w, 0);
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgb(244 199 102 / 70%);
  transform: translateX(var(--x, 0));
  opacity: var(--o, 0);
  transition:
    transform 0.5s var(--ease-out),
    width 0.5s var(--ease-out),
    opacity 0.3s ease;
}

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(38rem, 100svh, 54rem);
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: -6% 0 -6%;
  z-index: -1;
  transform: translate3d(0, calc(var(--sy, 0) * 0.3px), 0);
  will-change: transform;
}

.hero-fallback,
.hero-photo,
.hero-overlay,
.hero-glow,
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ridge {
  transform: translate3d(0, calc(var(--sy, 0) * var(--d) * -1px), 0);
}

.sun {
  transform-origin: 1180px 412px;
  animation: sun-breathe 7s ease-in-out infinite;
}

.hero-photo {
  object-fit: cover;
  object-position: 68% 50%;
}

.js .hero-photo {
  opacity: 0;
  transform: scale(1.12);
  transition:
    opacity 1.4s ease,
    transform 3.2s var(--ease-out);
}

.js .hero-photo.is-loaded {
  opacity: 1;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgb(8 18 33 / 94%) 0%,
      rgb(8 18 33 / 82%) 32%,
      rgb(8 18 33 / 35%) 58%,
      rgb(8 18 33 / 0%) 78%
    ),
    linear-gradient(
      180deg,
      rgb(8 18 33 / 60%) 0%,
      rgb(8 18 33 / 0%) 24%,
      rgb(8 18 33 / 0%) 72%,
      rgb(8 18 33 / 55%) 100%
    );
}

.hero-glow {
  background: radial-gradient(
    circle at 82% 40%,
    rgb(255 200 120 / 35%) 0%,
    rgb(255 170 90 / 12%) 18%,
    transparent 40%
  );
  mix-blend-mode: screen;
  animation: glow-breathe 8s ease-in-out infinite;
}

.hero-particles {
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-copy {
  max-width: 37rem;
  transform: translate3d(0, calc(var(--sy, 0) * 0.12px), 0);
  opacity: var(--hero-fade, 1);
}

.eyebrow {
  display: flex;
  align-items: center;
  min-height: 1.2em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-light {
  color: rgb(255 255 255 / 78%);
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  margin-left: 0.35em;
  background: var(--gold);
  animation: caret-blink 1.05s steps(1) infinite;
}

.hero-title {
  margin: 1.1rem 0 1.4rem;
  font-size: clamp(2.05rem, 2.2vw + 1.2rem, 3.15rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hl,
.hl .word-inner {
  color: var(--gold);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hl .word-inner {
    background: linear-gradient(
      100deg,
      var(--gold) 0%,
      var(--gold) 38%,
      #fff3d1 50%,
      var(--gold) 62%,
      var(--gold) 100%
    );
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 7s ease-in-out 2.2s infinite;
  }
}

.hero-lede {
  max-width: 33rem;
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.08rem);
  line-height: 1.7;
  color: rgb(255 255 255 / 82%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-top: 2.4rem;
}

.hero-note {
  padding-left: 1.5rem;
  border-left: 1px solid rgb(255 255 255 / 22%);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 72%);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  width: 1.5rem;
  height: 2.4rem;
  margin-left: -0.75rem;
  border: 1.5px solid rgb(255 255 255 / 40%);
  border-radius: 999px;
  transition: border-color 0.3s;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 3px;
  height: 0.5rem;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: scroll-dot 2.2s var(--ease-out) infinite;
}

.scroll-cue:hover {
  border-color: var(--gold);
}

/* Hero entrance */

.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
}

.is-ready .hero [data-hero] {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 1s ease,
    transform 1.1s var(--ease-out),
    filter 1s ease;
  transition-delay: calc(var(--d, 0) * 140ms + 750ms);
}

.is-ready .hero .eyebrow[data-hero] {
  transition-delay: 0ms;
}

.js .hero-title {
  opacity: 0;
}

.js .hero-title.is-split {
  opacity: 1;
}

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

.word-inner {
  display: inline-block;
  transform: translateY(105%);
}

.is-ready .word-inner {
  transform: none;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--w, 0) * 38ms + 200ms);
}

.js .scroll-cue {
  opacity: 0;
  transition: opacity 1s ease 1.8s;
}

.is-ready .scroll-cue {
  opacity: 1;
}

.js .site-header .header-inner {
  opacity: 0;
  transform: translateY(-12px);
}

.is-ready .site-header .header-inner {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s ease 0.1s,
    transform 0.9s var(--ease-out) 0.1s;
}

.js .brand-mark path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.is-ready .brand-mark path {
  stroke-dashoffset: 0;
  transition:
    stroke-dashoffset 1.1s var(--ease-out) 0.3s,
    transform 0.5s var(--ease-spring);
}

.is-ready .brand-mark .brand-slash {
  transition-delay: 0.55s, 0s;
}

/* Sections */

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-intro .eyebrow {
  margin-bottom: 1.15rem;
}

.section-intro > p:not(.eyebrow) {
  max-width: 28rem;
  margin-top: 1.5rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted);
}

.title-sans {
  font-size: clamp(1.85rem, 1.6vw + 1.2rem, 2.45rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.title-serif {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 1.6vw + 1.2rem, 2.45rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.title-small {
  max-width: 22rem;
  font-size: clamp(1.15rem, 0.5vw + 1rem, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Services */

.services {
  background: var(--paper);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.services .section-intro {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  perspective: 1200px;
}

.cards > li {
  display: flex;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --accent: #3b6fb6;
  --accent-soft: #e2ebf8;
  position: relative;
  flex: 1;
  padding: 1.6rem 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(19 33 58 / 4%);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry))
    translateY(var(--lift));
  transform-style: preserve-3d;
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    22rem circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.card:hover {
  --lift: -6px;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 45%, rgb(19 33 58 / 30%));
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  transform: scaleX(1);
}

.card-blue {
  --accent: #3b6fb6;
  --accent-soft: #e2ebf8;
}

.card-purple {
  --accent: #7b4fd0;
  --accent-soft: #eee6fc;
}

.card-green {
  --accent: #2c9a61;
  --accent-soft: #ddf3e6;
}

.card-orange {
  --accent: #e0793a;
  --accent-soft: #fdeadb;
}

.card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.6s var(--ease-spring);
}

.card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(1);
}

.card:hover .card-icon {
  transform: translateZ(30px) scale(1.08);
}

.card:hover .card-icon::after {
  animation: ping 1.2s var(--ease-out);
}

.card-icon .i {
  width: 1.35rem;
  height: 1.35rem;
  overflow: visible;
}

.card-icon path {
  transition: transform 0.6s var(--ease-spring);
}

.card:hover .layer-top {
  transform: translateY(-2.5px);
}

.card:hover .layer-low {
  transform: translateY(2px);
}

.card:hover .icon-brain .i {
  animation: brain-pulse 1.4s ease-in-out infinite;
}

.shield-check {
  stroke-dasharray: 12;
  stroke-dashoffset: 0;
}

.card:hover .shield-check {
  animation: draw-check 0.8s var(--ease-out);
}

.card:hover .icon-cloud .i {
  animation: cloud-drift 2.4s ease-in-out infinite;
}

.card h3 {
  max-width: 14rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transform: translateZ(18px);
}

.card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  transform: translateZ(10px);
}

/* Why */

.why {
  background: var(--mist);
  overflow: hidden;
}

.why::before {
  content: "";
  position: absolute;
  right: -10rem;
  top: -12rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 75%), transparent 65%);
  animation: float-blob 18s ease-in-out infinite;
  pointer-events: none;
}

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.reasons {
  display: grid;
  gap: 1.75rem;
}

.reasons li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1.15rem;
  align-items: start;
}

.check {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #d8e0ec;
  color: var(--ink);
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    transform 0.5s var(--ease-spring);
}

.check svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

.reasons li:hover .check {
  background: var(--ink);
  color: var(--gold);
  transform: scale(1.08) rotate(-6deg);
}

.reasons h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.reasons p {
  font-size: 0.88rem;
  color: var(--muted);
}

.js .reasons [data-reveal] .check {
  transform: scale(0.4);
  opacity: 0;
}

.js .reasons [data-reveal] .check path {
  stroke-dashoffset: 24;
}

.js .reasons .is-visible .check {
  transform: scale(1);
  opacity: 1;
  transition:
    transform 0.7s var(--ease-spring) calc(var(--i, 0) * 140ms + 150ms),
    opacity 0.4s ease calc(var(--i, 0) * 140ms + 150ms),
    background-color 0.4s ease,
    color 0.4s ease;
}

.js .reasons .is-visible .check path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease-out) calc(var(--i, 0) * 140ms + 450ms);
}

.js .reasons .is-visible:hover .check {
  transform: scale(1.08) rotate(-6deg);
  transition-delay: 0s;
}

/* Tech */

.tech {
  padding: clamp(3rem, 5vw, 4rem) 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.tech .section-intro .eyebrow {
  margin-bottom: 0.8rem;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tech-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.5rem;
  cursor: default;
}

.tech-list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--line);
}

.tech-list img,
.tech-list .i {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  transition:
    transform 0.55s var(--ease-spring),
    filter 0.4s ease;
}

.tech-list .i {
  padding: 0.3rem;
  color: #9aa3b2;
  stroke-width: 1.25;
}

.tech-list span {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.tech-list span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.tech-list li:hover img {
  transform: translateY(-6px) scale(1.1);
  filter: drop-shadow(0 10px 10px rgb(19 33 58 / 18%));
}

.tech-list li:hover .i {
  transform: rotate(90deg) scale(1.08);
  color: var(--ink);
}

.tech-list li:hover span::after {
  transform: scaleX(1);
}

/* CTA */

.cta {
  position: relative;
  isolation: isolate;
  padding: clamp(4rem, 7vw, 5.5rem) 0;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
}

.cta-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(11 24 41 / 92%) 0%,
    rgb(11 24 41 / 65%) 45%,
    rgb(11 24 41 / 40%) 100%
  );
}

.cta-fallback,
.cta-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-photo {
  opacity: 0.55;
  animation: slow-pan 40s ease-in-out infinite alternate;
}

.cta-trail {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  opacity: 0.55;
  transition: stroke-dashoffset 3s var(--ease-out) 0.4s;
}

.cta.is-visible .cta-trail {
  stroke-dashoffset: 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.8vw + 1.1rem, 2.5rem);
  font-weight: 500;
  line-height: 1.28;
  color: #f4f1ea;
}

.poesia {
  position: relative;
  display: inline-block;
  padding: 0 0.08em;
  font-style: italic;
  color: var(--gold);
}

.poesia-swash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32em;
  width: 100%;
  height: 0.45em;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.poesia-swash path {
  stroke-dasharray: 130;
  stroke-dashoffset: 0;
}

.js .poesia {
  clip-path: inset(-20% 100% -40% 0);
}

.js .is-visible .poesia {
  clip-path: inset(-20% -10% -40% 0);
  transition: clip-path 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.6s;
}

.js .poesia-swash path {
  stroke-dashoffset: 130;
}

.js .is-visible .poesia-swash path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s var(--ease-out) 1.6s;
}

.cta-side {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
  max-width: 22rem;
  justify-self: center;
}

.cta-side p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 78%);
}

/* Footer */

.site-footer {
  padding: 2.75rem 0 1.5rem;
  background: var(--navy-950);
  border-top: 1px solid rgb(255 255 255 / 6%);
  color: var(--white);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-tag {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.footer-tag p {
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 78%);
}

.footer-line {
  display: block;
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
}

.js .footer-line {
  transform: scaleX(0);
}

.js .is-visible .footer-line {
  transform: scaleX(1);
  transition: transform 1.2s var(--ease-out) 0.5s;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 6%);
  font-size: 0.75rem;
  color: rgb(255 255 255 / 45%);
}

/* Scroll reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.9s ease,
    transform 1s var(--ease-out),
    filter 0.9s ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}

.js .tech-list [data-reveal] {
  transform: translateY(16px) scale(0.9);
}

.js .tech-list [data-reveal].is-visible {
  transform: none;
  transition-timing-function: ease, var(--ease-spring), ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* Contact dialog */

.contact {
  width: min(36rem, 100% - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1.4rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 120px -20px rgb(5 12 25 / 60%);
  overflow: auto;
  overscroll-behavior: contain;
}

.contact[open] {
  animation: dialog-in 0.55s var(--ease-out);
}

.contact::backdrop {
  background: rgb(6 14 27 / 62%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.4s ease;
}

.contact.is-closing {
  animation: dialog-out 0.3s ease forwards;
}

.contact.is-closing::backdrop {
  animation: fade-out 0.3s ease forwards;
}

.contact::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), var(--gold-lo));
  background-size: 200% 100%;
  animation: shimmer-bar 4s linear infinite;
}

.contact-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.45s var(--ease-spring),
    background-color 0.3s;
}

.contact-close:hover {
  background: #dfe6f0;
  transform: rotate(90deg);
}

.contact-body {
  padding: clamp(1.75rem, 5vw, 2.5rem);
}

.contact-view > * {
  animation: rise-in 0.6s var(--ease-out) both;
}

.contact-view > :nth-child(2) {
  animation-delay: 0.06s;
}

.contact-view > :nth-child(3) {
  animation-delay: 0.12s;
}

.contact-view > :nth-child(4) {
  animation-delay: 0.18s;
}

.contact .eyebrow {
  margin-bottom: 0.75rem;
}

.contact-lede {
  margin: 0.85rem 0 1.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field small {
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fbfbfc;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    background-color 0.25s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: #cfd5df;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-lo);
  background: var(--white);
  box-shadow: 0 0 0 4px rgb(244 199 102 / 25%);
}

.hp {
  position: absolute;
  left: -9999px;
}

.btn-submit {
  justify-self: start;
  margin-top: 0.5rem;
}

.spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(26 34 51 / 25%);
  border-top-color: var(--gold-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.contact-form.is-sending .spinner {
  display: block;
}

.contact-form.is-sending .btn-arrow {
  display: none;
}

.contact-form.is-sending .btn-submit {
  cursor: progress;
  opacity: 0.85;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #b4472a;
}

.contact-success {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.contact-success[hidden] {
  display: none;
}

.contact-success p {
  max-width: 22rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.success-mark {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.5rem;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-mark circle {
  stroke: var(--gold);
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: draw 0.8s var(--ease-out) 0.15s forwards;
}

.success-mark path {
  stroke: var(--ink);
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw 0.5s var(--ease-out) 0.75s forwards;
}

body:has(.contact[open]) {
  overflow: hidden;
}

/* 404 */

.missing {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 2rem var(--gutter);
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
}

.missing-inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  max-width: 32rem;
}

.missing .missing-code {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  color: var(--gold);
  animation: float-y 5s ease-in-out infinite;
}

.missing h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.missing p {
  color: rgb(255 255 255 / 75%);
}

.missing .brand {
  margin-bottom: 1.5rem;
}

/* Keyframes */

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

@keyframes shimmer {
  0%,
  55% {
    background-position: 100% 0;
  }
  85%,
  100% {
    background-position: 0% 0;
  }
}

@keyframes shimmer-bar {
  to {
    background-position: -200% 0;
  }
}

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

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  70% {
    transform: translateY(0.85rem);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ping {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes brain-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes draw-check {
  0% {
    stroke-dashoffset: 12;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes cloud-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px) translateY(-1px);
  }
}

@keyframes float-blob {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-4rem, 3rem);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slow-pan {
  from {
    transform: scale(1.08) translateX(-1.5%);
  }
  to {
    transform: scale(1.08) translateX(1.5%);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}

@keyframes dialog-out {
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

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

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Responsive */

@media (max-width: 1080px) {
  .nav,
  .nav-links {
    gap: 1.6rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech .section-intro .title-small {
    max-width: 30rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 4.5rem;
  }

  .site-header.is-scrolled {
    --header-h: 4rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    background: rgb(255 255 255 / 4%);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 1.5px;
    border-radius: 2px;
    background: var(--white);
    transition:
      transform 0.45s var(--ease-out),
      opacity 0.3s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: calc(var(--header-h) + 1.25rem) var(--gutter) 2rem;
    background: rgb(9 20 36 / 97%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / 50%);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition:
      clip-path 0.55s var(--ease-out),
      visibility 0s linear 0.55s;
  }

  .nav.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition:
      clip-path 0.55s var(--ease-out),
      visibility 0s;
  }

  .header-inner > .brand {
    position: relative;
    z-index: 2;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.3s ease,
      transform 0.4s var(--ease-out);
  }

  .nav.is-open .nav-links li {
    opacity: 1;
    transform: none;
  }

  .nav.is-open .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav.is-open .nav-links li:nth-child(2) {
    transition-delay: 0.15s;
  }
  .nav.is-open .nav-links li:nth-child(3) {
    transition-delay: 0.2s;
  }
  .nav.is-open .nav-links li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-links a {
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .nav-links a.is-active {
    color: var(--gold);
  }

  .nav-indicator {
    display: none;
  }

  .nav .btn-outline {
    align-self: flex-start;
  }

  .hero {
    min-height: clamp(36rem, 100svh, 48rem);
    align-items: flex-end;
    padding-bottom: 5.5rem;
  }

  .hero-photo {
    object-position: 84% 50%;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgb(8 18 33 / 70%) 0%,
        rgb(8 18 33 / 25%) 30%,
        rgb(8 18 33 / 75%) 62%,
        rgb(8 18 33 / 95%) 100%
      ),
      linear-gradient(90deg, rgb(8 18 33 / 55%), rgb(8 18 33 / 0%));
  }

  .services-grid,
  .why-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .services .section-intro {
    position: static;
  }

  .cta-side {
    justify-self: start;
  }

  .tech-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.25rem;
  }

  .tech-list li:nth-child(4)::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .brand-name {
    font-size: 1.2rem;
  }

  .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .cards,
  .field-row {
    grid-template-columns: 1fr;
  }

  .card h3 {
    max-width: none;
  }

  .hero-note {
    padding-left: 0;
    border-left: 0;
  }

  .hero-note br {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-submit {
    justify-self: stretch;
  }
}

@media (hover: none) {
  .card {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .hero-media,
  .hero-copy,
  .ridge {
    transform: none !important;
  }

  .caret {
    animation: none !important;
  }
}
