:root {
  --ink: #07111f;
  --ink-soft: #132033;
  --blue: #165dff;
  --blue-bright: #4d85ff;
  --ice: #e7efff;
  --paper: #f4f5f2;
  --white: #ffffff;
  --muted: #687386;
  --line: rgba(7, 17, 31, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --success: #33d49d;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --shadow: 0 30px 80px rgba(8, 21, 45, 0.12);
  --container: min(1180px, calc(100vw - 48px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  color: var(--white);
  background: var(--blue);
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 7.6vw, 7.6rem);
  font-weight: 570;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  font-weight: 560;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  font-weight: 600;
}

p {
  color: var(--muted);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(88px, 11vw, 156px) 0;
  overflow: hidden;
}

.section--compact {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section--dark {
  color: var(--white);
  background: var(--ink);
}

.section--white {
  background: var(--white);
}

.section--blue {
  color: var(--white);
  background: var(--blue);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .55fr);
  gap: 72px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.section-head p {
  max-width: 470px;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.section--dark p,
.section--blue p,
.site-footer p,
.page-hero p {
  color: rgba(255, 255, 255, .67);
}

.eyebrow {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 23px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  content: "";
  background: currentColor;
}

.section--dark .eyebrow,
.section--blue .eyebrow,
.page-hero .eyebrow {
  color: #82a8ff;
}

.display-line {
  display: block;
}

.text-blue {
  color: var(--blue-bright);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .52);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

.button {
  position: relative;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: .88rem;
  font-weight: 700;
  transition: transform .35s var(--ease), background-color .35s, border-color .35s;
}

.button::after {
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .35s var(--ease);
}

.button:hover {
  background: #0d4ee5;
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(4px) rotate(45deg);
}

.button--light {
  color: var(--ink);
  background: var(--white);
}

.button--light:hover {
  background: var(--ice);
}

.button--ghost {
  border-color: var(--line-light);
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .09);
}

.button--dark {
  color: var(--white);
  background: var(--ink);
}

.button--dark:hover {
  background: #16243a;
}

.text-link {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 750;
}

.text-link::after {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
  transition: width .3s var(--ease);
}

.text-link:hover::after {
  width: 42px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 86px;
  color: var(--white);
  transition: height .35s var(--ease), color .35s, background-color .35s, box-shadow .35s;
}

.site-header.scrolled,
.site-header.header--light {
  color: var(--ink);
  background: rgba(247, 248, 246, .9);
  box-shadow: 0 1px 0 rgba(7, 17, 31, .08);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  height: 72px;
}

.nav-wrap {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 244px;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-header.scrolled .brand-mark img,
.site-header.header--light .brand-mark img {
  filter: brightness(0);
}

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

.brand-copy strong {
  font-size: .92rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.brand-copy span {
  margin-top: 6px;
  color: currentColor;
  font-size: .49rem;
  font-weight: 650;
  letter-spacing: .27em;
  opacity: .62;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: .78rem;
  font-weight: 650;
}

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

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

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  border-radius: 99px;
  color: var(--ink);
  background: var(--white);
}

.site-header.scrolled .nav-cta,
.site-header.header--light .nav-cta {
  color: var(--white);
  background: var(--blue);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  transition: transform .3s, opacity .3s;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hero */
.home-hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: 150px 0 70px;
  overflow: hidden;
  align-items: center;
  color: var(--white);
  background: #050c16;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 11, 21, .96) 0%, rgba(4, 11, 21, .78) 42%, rgba(4, 11, 21, .15) 76%),
    linear-gradient(0deg, rgba(4, 11, 21, .88) 0%, transparent 42%),
    url("assets/hero-technology.webp") center / cover no-repeat;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(870px, 81vw);
}

.home-hero h1 {
  max-width: 970px;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(1.03rem, 1.6vw, 1.25rem);
}

.hero-meta {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 55px;
  display: flex;
  gap: 18px;
  align-items: center;
  color: rgba(255, 255, 255, .56);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(51, 212, 157, .12);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 44px;
  left: max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, .45);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.scroll-cue::before {
  width: 1px;
  height: 38px;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55));
  animation: scrollPulse 1.8s infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.55); transform-origin: top; opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.page-hero {
  position: relative;
  padding: clamp(160px, 19vw, 260px) 0 clamp(86px, 10vw, 130px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.page-hero::before {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  content: "";
  opacity: .85;
  background: radial-gradient(circle, rgba(22, 93, 255, .32), transparent 64%);
}

.page-hero::after {
  position: absolute;
  right: 4%;
  bottom: -32%;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 1040px;
  margin-bottom: 30px;
}

.page-hero p {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.page-kicker {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 52px;
  color: rgba(255,255,255,.56);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-kicker::before {
  width: 48px;
  height: 1px;
  content: "";
  background: var(--blue-bright);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 440px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}

.service-card:nth-child(2) {
  color: var(--white);
  background: var(--blue);
}

.service-card:nth-child(n) {
  min-height: 350px;
}

.service-card:hover {
  border-color: rgba(22, 93, 255, .35);
  box-shadow: var(--shadow);
  transform: translateY(-7px);
}

.service-card p {
  max-width: 500px;
  margin-bottom: 34px;
}

.service-card:nth-child(2) p,
.service-card:nth-child(2) .card-number {
  color: rgba(255,255,255,.67);
}

.service-card:nth-child(2) .text-link {
  color: var(--white);
}

.card-number {
  display: block;
  margin-bottom: auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem;
  letter-spacing: .12em;
}

.card-icon {
  position: absolute;
  top: 34px;
  right: 34px;
  display: grid;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
}

.card-icon svg {
  width: 25px;
}

.service-card:nth-child(2) .card-icon {
  border-color: rgba(255,255,255,.22);
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.showcase-copy p {
  max-width: 510px;
  font-size: 1.08rem;
}

.browser-scene {
  position: relative;
  min-height: 600px;
}

.browser-window {
  position: absolute;
  top: 0;
  right: -4%;
  width: 92%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: #f7f4ee;
  box-shadow: 0 45px 100px rgba(0,0,0,.35);
  transform: perspective(1000px) rotateY(-7deg) rotateX(3deg);
}

.browser-bar {
  display: flex;
  height: 42px;
  padding: 0 17px;
  align-items: center;
  border-bottom: 1px solid rgba(7,17,31,.1);
  background: #fff;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4d8df;
}

.mock-page {
  display: grid;
  min-height: 485px;
  padding: 38px;
  color: var(--ink);
  background: linear-gradient(120deg, #f7f4ee 58%, #dce6fa 58%);
  grid-template-rows: auto 1fr auto;
}

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-brand {
  font-size: .78rem;
  font-weight: 800;
}

.mock-menu {
  width: 86px;
  height: 5px;
  border-radius: 9px;
  background: var(--ink);
  box-shadow: -16px 11px 0 -1px var(--ink);
}

.mock-main {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}

.mock-main strong {
  display: block;
  max-width: 300px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: .94;
}

.mock-main span {
  display: block;
  width: 82px;
  height: 82px;
  margin: auto;
  border: 14px solid var(--blue);
  border-radius: 50%;
  box-shadow: 42px 36px 0 6px #ff7a55, -26px 48px 0 -12px var(--ink);
}

.mock-footer {
  display: flex;
  justify-content: space-between;
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.floating-tag {
  position: absolute;
  z-index: 3;
  bottom: 44px;
  left: 0;
  width: 190px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  color: var(--white);
  background: rgba(16, 30, 52, .85);
  box-shadow: 0 25px 55px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}

.floating-tag small {
  display: block;
  margin-bottom: 12px;
  color: rgba(255,255,255,.55);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.floating-tag strong {
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -.04em;
}

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--line);
}

.feature-item {
  min-height: 300px;
  padding: 38px;
  background: var(--paper);
}

.feature-item span {
  display: inline-flex;
  margin-bottom: 80px;
  color: var(--blue);
  font-family: ui-monospace, monospace;
  font-size: .73rem;
}

.feature-item p {
  margin-bottom: 0;
}

.check-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 29px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.check-list li::before {
  position: absolute;
  top: 21px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(22,93,255,.1);
}

.section--dark .check-list li {
  border-color: var(--line-light);
  color: rgba(255,255,255,.78);
}

/* Process */
.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-item {
  display: grid;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 90px 1fr 1fr;
  gap: 35px;
  align-items: baseline;
  transition: padding .35s var(--ease);
}

.process-item:hover {
  padding-right: 18px;
  padding-left: 18px;
}

.process-item > span {
  color: var(--blue);
  font-family: ui-monospace, monospace;
  font-size: .72rem;
}

.process-item h3 {
  margin-bottom: 0;
}

.process-item p {
  margin-bottom: 0;
}

.section--dark .process-list,
.section--dark .process-item {
  border-color: var(--line-light);
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 9vw, 130px);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split-copy > p {
  max-width: 560px;
  font-size: 1.08rem;
}

.metric-grid {
  display: grid;
  margin-top: 55px;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric {
  padding: 30px;
  background: var(--paper);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 540;
  letter-spacing: -.06em;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: .76rem;
}

.quote-card {
  position: relative;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--blue);
}

.quote-card blockquote {
  margin: 0 0 40px;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  letter-spacing: -.045em;
  line-height: 1.12;
}

.quote-card cite {
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tech-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0b1525;
}

.tech-panel::before,
.tech-panel::after {
  position: absolute;
  border: 1px solid rgba(108, 151, 255, .35);
  border-radius: 50%;
  content: "";
}

.tech-panel::before {
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  box-shadow: 0 0 90px rgba(22,93,255,.2), inset 0 0 90px rgba(22,93,255,.08);
  transform: translate(-50%, -50%);
}

.tech-panel::after {
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
}

.tech-orbit {
  position: absolute;
  inset: 0;
}

.tech-orbit i {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #79a3ff;
  box-shadow: 0 0 25px var(--blue);
}

.tech-orbit i:nth-child(1) { top: 22%; left: 28%; }
.tech-orbit i:nth-child(2) { top: 56%; left: 18%; }
.tech-orbit i:nth-child(3) { top: 70%; left: 62%; }
.tech-orbit i:nth-child(4) { top: 25%; left: 72%; }
.tech-orbit i:nth-child(5) { top: 48%; left: 49%; width: 28px; height: 28px; background: var(--white); }

.tech-label {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  justify-content: space-between;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.04);
  font-family: ui-monospace, monospace;
  font-size: .7rem;
  letter-spacing: .05em;
}

/* About */
.portrait-frame {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #101d31, #07101e);
}

.portrait-frame::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(7,17,31,.45), transparent 38%);
  pointer-events: none;
}

.portrait-frame::after {
  position: absolute;
  z-index: 2;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  content: "";
  pointer-events: none;
}

.portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.social-link {
  display: inline-flex;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  align-items: center;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  transition: color .3s, background .3s, border-color .3s;
}

.social-link svg {
  width: 15px;
}

.social-link:hover {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(52px, 9vw, 125px);
}

.contact-details {
  display: grid;
  margin-top: 48px;
  gap: 22px;
}

.contact-detail {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-detail span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail strong {
  font-size: 1.05rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: clamp(30px, 5vw, 55px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #cad0d8;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  transition: border-color .3s;
}

.field input,
.field select {
  height: 48px;
}

.field textarea {
  min-height: 125px;
  padding-top: 12px;
  resize: vertical;
}

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

.form-consent {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: .72rem;
}

.form-consent input {
  margin-top: 5px;
  accent-color: var(--blue);
}

.form-message {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  color: #09583d;
  background: #dff8ef;
  font-size: .82rem;
}

.form-message.show {
  display: block;
}

/* CTA */
.cta-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--blue);
}

.cta-block::before {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 75px rgba(255,255,255,.045), 0 0 0 150px rgba(255,255,255,.025);
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 480px;
  padding: clamp(48px, 8vw, 96px);
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.cta-inner h2 {
  max-width: 790px;
  margin-bottom: 0;
}

.cta-inner .eyebrow {
  position: absolute;
  top: clamp(48px, 8vw, 96px);
  left: clamp(48px, 8vw, 96px);
  color: rgba(255,255,255,.72);
}

.cta-arrow {
  display: grid;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  place-items: center;
  transition: color .35s, background .35s, transform .35s var(--ease);
}

.cta-arrow:hover {
  color: var(--blue);
  background: var(--white);
  transform: scale(1.06);
}

.cta-arrow svg {
  width: 30px;
}

/* Footer */
.site-footer {
  padding: 80px 0 32px;
  color: var(--white);
  background: #050c16;
}

.footer-top {
  display: grid;
  padding-bottom: 64px;
  grid-template-columns: 1.5fr .7fr .7fr;
  gap: 70px;
}

.footer-brand p {
  max-width: 410px;
  margin: 25px 0 0;
}

.footer-title {
  display: block;
  margin-bottom: 20px;
  color: rgba(255,255,255,.65);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  width: fit-content;
  color: rgba(255,255,255,.75);
  font-size: .84rem;
  transition: color .25s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  justify-content: space-between;
  color: rgba(255,255,255,.62);
  font-size: .69rem;
}

.legal-copy {
  max-width: 800px;
}

.legal-copy h2 {
  margin-top: 70px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.legal-copy h3 {
  margin-top: 38px;
  font-size: 1.25rem;
}

.placeholder-notice {
  margin-bottom: 40px;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  background: var(--ice);
  color: #31425e;
  font-size: .84rem;
}

/* SEO content and service pages */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .52);
  font-size: .72rem;
  letter-spacing: .04em;
}

.breadcrumb a {
  transition: color .25s;
}

.breadcrumb a:hover {
  color: var(--white);
}

.answer-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: start;
}

.answer-grid h2 {
  font-size: clamp(2.35rem, 4.5vw, 4.5rem);
}

.services-grid--directory .service-card h2 {
  max-width: 15ch;
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.answer-copy {
  max-width: 670px;
}

.answer-copy p {
  font-size: 1.08rem;
}

.answer-copy .answer-lead {
  color: var(--ink-soft);
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.45;
}

.action-spaced {
  margin-top: 34px;
}

.browser-window--soft {
  box-shadow: 0 40px 90px rgba(10, 30, 65, .18);
}

.floating-tag .tag-detail {
  margin-top: 8px;
}

.tech-label .tech-label-accent {
  color: #55ddb0;
}

.form-consent a {
  text-decoration: underline;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.faq-item summary {
  position: relative;
  padding: 25px 58px 25px 25px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 23px;
  right: 25px;
  content: "+";
  color: var(--blue);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 25px 27px;
}

.faq-item p a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-section {
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(64px, 8vw, 100px);
  background: var(--ice);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-links a {
  display: flex;
  min-height: 170px;
  padding: 28px;
  border: 1px solid rgba(22, 93, 255, .13);
  border-radius: var(--radius-sm);
  background: var(--white);
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.related-links a:hover {
  border-color: rgba(22, 93, 255, .4);
  box-shadow: 0 18px 38px rgba(8, 21, 45, .08);
  transform: translateY(-4px);
}

.related-links strong {
  font-size: 1.2rem;
}

.related-links span {
  color: var(--muted);
  font-size: .88rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 980px) {
  :root { --container: min(100% - 36px, 760px); }

  body.nav-open::before {
    position: fixed;
    z-index: 99;
    inset: 0;
    content: "";
    background: var(--ink);
  }

  .site-header.scrolled,
  .site-header.header--light {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 4px;
    margin: 0;
    transform: translateY(-50%);
  }

  .nav-wrap .brand {
    position: relative;
    z-index: 2;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 120px 28px 46px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: var(--white);
    background: var(--ink);
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: clamp(1.5rem, 6vw, 2.4rem);
    font-weight: 560;
    letter-spacing: -.04em;
  }

  .nav-links .nav-cta {
    min-height: 50px;
    margin-top: 12px;
    padding: 0 21px !important;
    color: var(--ink) !important;
    background: var(--white) !important;
    font-size: 1rem;
    letter-spacing: 0;
  }

  .site-header.menu-active,
  .site-header.header--light.menu-active {
    color: var(--white);
    background: var(--ink);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.menu-active .brand-mark img {
    filter: brightness(0) invert(1);
  }

  .section-head,
  .showcase-grid,
  .split,
  .answer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head { gap: 10px; }
  .section-head p { max-width: 610px; }

  .service-card:nth-child(n) {
    grid-column: span 6;
    min-height: 390px;
  }

  .showcase-grid { gap: 70px; }
  .browser-scene { min-height: 530px; }
  .feature-grid { grid-template-columns: 1fr; }
  .related-links { grid-template-columns: 1fr; }
  .feature-item { min-height: auto; }
  .feature-item span { margin-bottom: 45px; }

  .process-item {
    grid-template-columns: 60px 1fr;
  }

  .process-item p {
    grid-column: 2;
  }

  .portrait-frame { min-height: 560px; }
  .footer-top { grid-template-columns: 1.3fr .7fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --container: calc(100vw - 28px); }

  h1 { font-size: clamp(3rem, 15vw, 5.4rem); }
  h2 { font-size: clamp(2.3rem, 11vw, 3.8rem); }

  .site-header { height: 72px; }
  .brand { min-width: auto; }
  .brand-copy strong { font-size: .78rem; }
  .brand-copy span { font-size: .42rem; }

  .home-hero {
    min-height: 780px;
    padding-top: 120px;
    align-items: flex-start;
  }

  .home-hero::before {
    background:
      linear-gradient(90deg, rgba(4, 11, 21, .96), rgba(4, 11, 21, .72)),
      linear-gradient(0deg, rgba(4, 11, 21, .94), transparent 65%),
      url("assets/hero-technology.webp") 63% center / auto 100% no-repeat;
  }

  .hero-content { width: 100%; }
  .hero-meta { display: none; }
  .scroll-cue { bottom: 25px; }

  .button-row { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }

  .services-grid { display: block; }
  .service-card:nth-child(n) { min-height: 390px; margin-bottom: 14px; }
  .faq-grid { grid-template-columns: 1fr; }

  .browser-scene { min-height: 420px; }
  .browser-window { right: -8%; width: 106%; }
  .mock-page { min-height: 370px; padding: 24px; }
  .mock-main strong { font-size: 2.3rem; }
  .floating-tag { bottom: 4px; width: 160px; }

  .process-item {
    padding: 25px 0;
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }

  .process-item:hover { padding-right: 0; padding-left: 0; }

  .metric-grid { grid-template-columns: 1fr; }
  .tech-panel { min-height: 410px; }
  .portrait-frame { min-height: 480px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 25px 20px; }

  .cta-inner {
    min-height: 500px;
    padding: 46px 26px 30px;
    grid-template-columns: 1fr;
  }

  .cta-inner .eyebrow { top: 46px; left: 26px; }
  .cta-arrow { width: 72px; height: 72px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 45px 30px; }
  .footer-bottom { gap: 10px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
