@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {

  --bg: #F4F7F6;
  --surface: #FFFFFF;
  --ink: #10232A;
  --muted: #4A5A5F;
  --line: #D5DDDC;
  --primary: #0F7C8A;
  --primary-hover: #0B6570;
  --accent: #FF8A3D;
  --accent-hover: #F27424;
  --on-accent: #10232A;
  --detail: #F2C14E;
  --focus: #0F7C8A;
  --success: #1F7A4D;
  --error: #B3261E;

  --dark: #10232A;
  --dark-2: #16303A;
  --on-dark: #F4F7F6;
  --on-dark-muted: #A9BBC0;
  --primary-on-dark: #3FB8C6;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --radius: 6px;
  --radius-lg: 12px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-enter: 900ms;
  --dur-ui: 160ms;
  --stagger: 70ms;

  --container: 1440px;

  --gutter: clamp(16px, 5vw, 80px);
  --section-space: 64px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10232A;
    --surface: #16303A;
    --ink: #F4F7F6;
    --muted: #A9BBC0;
    --line: #2A4650;
    --primary: #3FB8C6;
    --primary-hover: #6CCAD5;
    --accent-hover: #FF9F5E;
    --focus: #3FB8C6;
    --success: #5CC48E;
    --error: #FF8A80;

    --dark: #0B1A1F;
  }
}

@media (min-width: 960px) {
  :root { --section-space: 96px; --header-h: 72px; }
}

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

html {

  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

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

a {
  color: inherit;
}

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

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

[tabindex="-1"]:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite {
  position: absolute;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

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

.btn--dark {
  background: var(--ink);
  color: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover {
    background: var(--primary);
  }
}

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

.btn--outline-light:hover {
  background: rgba(244, 247, 246, 0.1);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--on-dark);
  transition: background-color var(--dur-ui) var(--ease-out);
}

.site-header.is-solid,
.site-header.is-open {
  background: var(--dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.3em;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand__symbol {
  width: 1.15em;
  height: 1.15em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--on-dark);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  inset: var(--header-h) 0 auto;
  padding: 8px var(--gutter) 24px;
  background: var(--dark);
  border-top: 1px solid rgba(244, 247, 246, 0.12);
}

.site-header.is-open .site-nav {
  display: block;
}

.site-nav__list a {
  display: block;
  padding: 14px 0;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.site-nav .btn {
  display: none;
}

@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
  .site-header.is-open .site-nav {
    animation: nav-open 260ms var(--ease-out) both;
  }

  .site-header.is-open .site-nav__list li {
    animation: nav-item 360ms var(--ease-out) both;
  }

  .site-header.is-open .site-nav__list li:nth-child(1) { animation-delay: 70ms; }
  .site-header.is-open .site-nav__list li:nth-child(2) { animation-delay: 115ms; }
  .site-header.is-open .site-nav__list li:nth-child(3) { animation-delay: 160ms; }
  .site-header.is-open .site-nav__list li:nth-child(4) { animation-delay: 205ms; }
  .site-header.is-open .site-nav__list li:nth-child(5) { animation-delay: 250ms; }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-toggle .icon.is-swap {
    animation: icon-swap 220ms var(--ease-out);
  }
}

@keyframes nav-open {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes nav-item {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes icon-swap {
  from { opacity: 0; transform: rotate(-50deg) scale(0.85); }
  to   { opacity: 1; transform: none; }
}

.site-nav__indicator {
  display: none;
}

@media (min-width: 960px) {
  .site-nav__indicator {
    display: block;
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 1px;
    height: 2px;
    border-radius: 1px;
    background: var(--accent);
    transform-origin: left;
    opacity: 0;
    transition: transform 420ms var(--ease-out), opacity var(--dur-ui) var(--ease-out);
    pointer-events: none;
  }

  .site-nav__indicator.is-instant {
    transition: opacity var(--dur-ui) var(--ease-out);
  }
}

.site-nav__list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-header.is-open .site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    inset: auto;
    padding: 0;
    background: none;
    border: 0;
  }

  .site-nav__list {
    display: flex;
    gap: 18px;
  }

  .site-nav__list a {
    padding: 12px 6px;
    font-size: 0.9375rem;
  }

  .site-nav .btn {
    display: inline-flex;
    margin: 0;
    width: auto;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.9375rem;
  }
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  isolation: isolate;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__media img {
  object-fit: cover;
  object-position: center 55%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(80px, 14vh, 160px);
  z-index: 0;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(8, 20, 24, 0.62), transparent 75%),
    linear-gradient(rgba(8, 20, 24, 0.68), rgba(8, 20, 24, 0.48) 55%, rgba(8, 20, 24, 0.28));
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding-bottom: 34vh;
}

.hero__title {
  display: flex;
  align-items: center;
  gap: 0.22em;
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 7rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero__symbol {
  width: 1em;
  height: 1em;
}

.hero__slogan {
  max-width: 34ch;
  margin: 0.9em 0 1.8em;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 500;
  color: #E3ECEE;
  text-wrap: balance;
}

@media (max-width: 700px) {
  .hero__media img {
    object-position: center bottom;
  }
}

@media (max-height: 560px) {
  .hero__content {
    padding-top: var(--header-h);
    padding-bottom: 96px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 12vh, 4.5rem);
  }

  .hero__slogan {
    margin: 0.6em 0 1.1em;
  }
}

@keyframes hero-focus {
  from { transform: scale(1.08); filter: blur(12px); opacity: 0; }
  to   { transform: none;        filter: none;       opacity: 1; }
}

@keyframes rise-in {
  from { transform: translateY(20px); filter: blur(8px); opacity: 0; }
  to   { transform: none;             filter: none;      opacity: 1; }
}

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

@keyframes dot-drop {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation: hero-focus 1400ms var(--ease-out) both;
  }

  .hero__symbol .mark__bar,
  .hero__symbol .mark__arc {
    stroke-dasharray: 1;
    animation: draw 750ms var(--ease-out) 300ms both;
  }

  .hero__symbol .mark__arc { animation-delay: 550ms; animation-duration: 800ms; }

  .hero__symbol .mark__dot {
    animation: dot-drop 600ms var(--ease-out) 1100ms both;
  }

  .hero__title span {
    display: inline-block;
    animation: rise-in var(--dur-enter) var(--ease-out) 1250ms both;
  }

  .hero__slogan,
  .hero__content .btn {
    animation: rise-in var(--dur-enter) var(--ease-out) both;
  }

  .hero__slogan { animation-delay: 1400ms; }
  .hero__content .btn { animation-delay: 1520ms; }

  .hero__media,
  .hero__content {
    will-change: transform;
  }
}

@media (min-width: 701px) {
  .hero__content {
    padding-bottom: 24vh;
  }
}

.section {
  padding-block: var(--section-space);
}

.h2 {
  max-width: 22ch;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  max-width: 55ch;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

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

.about__statement {
  margin: 16px 0 0;
  font-size: clamp(2.75rem, 8.4vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.js .about__statement .w {
  color: color-mix(in srgb, var(--ink) 55%, var(--bg));
  transition: color 300ms var(--ease-out);
}

.about__statement .w.is-on { color: var(--ink); }
.about__statement .w--key.is-on { color: var(--primary); }

.about__body {
  display: grid;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.about__lead {
  max-width: 22ch;
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.about__more {
  margin-top: 28px;
}

.about__intro {
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.about__principles {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__principles li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about__principles li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}

.about__principles li::after,
.about__principles::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
}

.about__principles::after {
  top: auto;
  bottom: 0;
}

@media (min-width: 960px) {
  .about__body {
    grid-template-columns: 6fr 5fr;
    column-gap: clamp(56px, 7vw, 112px);
    margin-top: 72px;
  }
}

@media (prefers-reduced-motion: no-preference) {

  .js .rw {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-block: 0.12em;
    margin-block: -0.12em;
  }

  .js .rw > span {
    display: inline-block;
    transform: translateY(115%);
  }

  .js .about__lead.is-in .rw > span {
    transform: none;
    transition: transform 900ms var(--ease-out);
    transition-delay: calc(var(--w, 0) * 55ms);
  }

  .js .about__principles li::before {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 600ms var(--ease-out) calc(var(--i, 0) * 90ms + 450ms);
  }

  .js .about__principles li::after,
  .js .about__principles::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1000ms var(--ease-out) calc(var(--i, 0) * 90ms + 150ms);
  }

  .js .about__principles::after {
    transition-delay: 510ms;
  }

  .js .about__principles.is-visible li::before,
  .js .about__principles.is-visible li::after,
  .js .about__principles.is-visible::after {
    transform: none;
  }
}

.services {
  overflow-x: clip;
}

.services__key {
  color: var(--primary);
}

.services__rail {
  --wave-step: 0px;
  --card-w: min(76vw, 300px);
  list-style: none;
  margin: 0;

  padding: 0 calc((100% - var(--card-w)) / 2);
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 64px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.services__rail::-webkit-scrollbar { display: none; }
.services__rail > li {
  flex: 0 0 var(--card-w);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin-top: calc(var(--wave, 0) * var(--wave-step));
}
.services__rail > li:nth-child(1) { --wave: 0; }
.services__rail > li:nth-child(2) { --wave: 1; }
.services__rail > li:nth-child(3) { --wave: 0; }
.services__rail > li:nth-child(4) { --wave: 1; }
.services__rail > li:nth-child(5) { --wave: 0; }

.services__lines { display: flex; justify-content: center; gap: 8px; margin: -24px var(--gutter) 0; }
.services__lines span { height: 3px; width: 32px; border-radius: 2px; background: var(--line); transition: background-color var(--dur-ui) var(--ease-out); }
.services__lines span.is-on { background: var(--primary); }

@media (min-width: 640px) {
  .services__rail {
    --card-w: 260px;
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }

  .services__rail > li {
    scroll-snap-align: start;
  }

  .services__lines {
    justify-content: flex-start;
  }
}

@media (min-width: 1060px) {
  .services__rail {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    overflow: visible;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-bottom: 72px;
  }
  .services__rail > li { flex: none; }
  .services__lines { display: none; }
}

@media (min-width: 1200px) {
  .services__rail {
    --wave-step: 56px;
    gap: 20px;
  }
}

.svc-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--t-bg);
}

.svc-tile--web    { --t-bg: #10232A; }
.svc-tile--auto   { --t-bg: #0B6570; }
.svc-tile--srv    { --t-bg: #16303A; }
.svc-tile--help   { --t-bg: #0F7C8A; }
.svc-tile--video  { --t-bg: #10232A; }

.svc-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-scene * { transform-box: fill-box; }

.svc-tile__name {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  margin: 0;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.svc-card__text { margin: 16px 0 0; max-width: 32ch; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

.sc-line  { fill: none; stroke: #F4F7F6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-soft  { fill: rgba(244,247,246,.10); }
.sc-ink   { fill: #F4F7F6; }
.sc-teal  { fill: #3FB8C6; }
.sc-dot   { fill: #FF8A3D; }
.sc-dim { opacity: .45; }

@media (prefers-reduced-motion: no-preference) {
  .js .services__rail > li { opacity: 0; transform: translateY(48px); filter: blur(6px); }
  .js .services__rail > li.is-visible {
    opacity: 1; transform: none; filter: none;
    transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out), filter var(--dur-enter) var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--stagger));
  }
  .js .svc-scene .sc-a {
    animation: var(--an) var(--t, 700ms) var(--ease-out) var(--d, 0ms) both paused;
  }
  .js .services__rail > li.is-visible .svc-scene .sc-a { animation-play-state: running; }
  .js .svc-scene .sc-stroke { stroke-dasharray: 1; }
  .js .svc-scene .sc-grow-x { transform-origin: left center; }
}
@keyframes sc-grow   { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes sc-rise   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sc-fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes sc-pop    { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes sc-draw   { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sc-run    { from { opacity: 0; transform: translateX(-48px); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes sc-head   { from { transform: translateX(0); } to { transform: translateX(96px); } }

.services__cta {
  margin-top: 40px;
  text-align: center;
}

.featured__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 860px) {
  .featured__grid {
    grid-template-columns: minmax(0, 600px) auto;
    justify-content: center;
    gap: clamp(48px, 6vw, 96px);
  }
}

.featured__text {
  max-width: 640px;
}

.featured__title {
  margin: 0 0 24px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.featured__client {
  margin: 0 0 28px;
  color: var(--muted);
}

.featured__client strong {
  color: var(--ink);
}

.testimonial {
  position: relative;
  margin: 0;
  padding-left: 24px;
}

.testimonial::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 6px;
  border-radius: 3px;
  background: var(--accent);
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  max-width: 30ch;
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.testimonial figcaption {
  margin-top: 20px;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .js .testimonial::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 900ms var(--ease-out) 350ms;
  }

  .js .featured__did li::before {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 600ms var(--ease-out);
  }

  .js .featured__did li:nth-child(1)::before { transition-delay: 800ms; }
  .js .featured__did li:nth-child(2)::before { transition-delay: 890ms; }
  .js .featured__did li:nth-child(3)::before { transition-delay: 980ms; }

  .js .featured__text.is-visible .testimonial::before,
  .js .featured__text.is-visible .featured__did li::before {
    transform: none;
  }
}

.featured__did {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.featured__did li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured__did li::before {
  content: "";
  width: 14px;
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 20px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover {
    text-decoration-thickness: 3px;
  }
}

.featured__media {
  display: flex;
  justify-content: center;
}

.client-phone {
  --phone-shadow: 0 24px 48px -20px rgba(16, 35, 42, 0.35);
  display: block;
  width: 280px;
  height: 560px;
  padding: 10px;
  border-radius: 38px;
  background: #0B1A1F;
  box-shadow: var(--phone-shadow);
  transition: box-shadow var(--dur-ui) var(--ease-out);
}

@media (prefers-color-scheme: dark) {
  .client-phone {
    --phone-shadow: 0 0 0 1px rgba(244, 247, 246, 0.14);
  }
}

@media (hover: hover) and (pointer: fine) {
  .client-phone:hover {
    box-shadow: 0 0 0 2px var(--primary), var(--phone-shadow);
  }
}

.client-phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 29px;
  background: #0A1630;
}

.client-phone__page {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.client-phone__page picture {
  display: block;
}

.client-phone__page img {
  display: block;
  width: 100%;
  height: auto;
}

.client-phone__browser {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 14px;
  background: #F4F7F6;
}

.client-phone__url {
  width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #D5DDDC;
  color: #10232A;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.faq {
  --faq-tint: color-mix(in srgb, var(--primary) 9%, var(--bg));
  --faq-radius: 28px;
}

.faq__inner {
  max-width: 720px;
}

.faq .section-head {
  text-align: center;
  margin-bottom: 32px;
}

.faq .h2,
.faq .lead {
  margin-inline: auto;
}

.faq__list {
  display: grid;
  gap: 8px;
}

.faq__item {
  border-radius: var(--faq-radius);
  background: var(--faq-tint);
  transition: background-color var(--dur-ui) var(--ease-out);
}

.faq__item[open] {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 10px 10px 22px;
  border-radius: var(--faq-radius);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary {
  position: relative;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: background-color var(--dur-ui) var(--ease-out);
}

.faq__item summary::before {
  content: "";
  position: absolute;
  right: 23.5px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
}

.faq__item[open] summary::before {
  transform: translateY(-30%) rotate(-135deg);
}

.faq__item[open] summary::after {
  background: var(--faq-tint);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .faq__item:not([open]):hover {
    background: color-mix(in srgb, var(--primary) 14%, var(--bg));
  }
}

.faq__item summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.faq__answer {
  max-width: 62ch;
  padding: 0 24px 22px 22px;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  @supports selector(::details-content) {
    .faq {
      interpolate-size: allow-keywords;
    }

    .faq__item::details-content {
      block-size: 0;
      overflow: hidden;
      transition:
        block-size 280ms var(--ease-out),
        content-visibility 280ms var(--ease-out) allow-discrete;
    }

    .faq__item[open]::details-content {
      block-size: auto;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__answer {
    animation: faq-in 320ms var(--ease-out);
  }
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.faq__steps {
  list-style: decimal;
  padding-left: 1.3em;
  margin-top: 8px;
}

.faq__steps li {
  margin: 6px 0;
}

.faq__steps strong {
  color: var(--ink);
}

.contact {
  background: color-mix(in srgb, var(--primary) 7%, var(--bg));
}

.contact__key {
  color: var(--primary);
}

.contact__grid {
  display: grid;
  gap: 32px;
  grid-template-areas:
    "head"
    "form"
    "direct";
}

.contact__head   { grid-area: head; }
.contact__grid .form { grid-area: form; }
.contact__direct { grid-area: direct; }

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: 5fr 6fr;
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 0;
    align-items: start;
    grid-template-areas:
      "head   form"
      "direct form";
  }
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

@media (min-width: 960px) {
  .contact__direct {
    margin-top: 32px;
  }
}

@media (min-width: 640px) {
  .contact-links {
    grid-template-columns: 1fr 1fr;
  }

  .contact-links li:first-child {
    grid-column: 1 / -1;
  }
}

.contact__reply {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 960px) and (max-width: 1199px) {
  .contact-links {
    grid-template-columns: 1fr;
  }
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--dur-ui) var(--ease-out);
}

.contact-link:hover {
  border-color: var(--primary);
}

.contact-link .icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.contact-link__kind {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.contact-link__value {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-link--small {
  padding: 12px 16px;
  gap: 12px;
}

.contact-link--small .icon {
  width: 22px;
  height: 22px;
}

.contact-link--small .contact-link__value {
  font-size: 0.9375rem;
}

.contact-link--main {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.contact-link--main:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.contact-link--main .icon,
.contact-link--main .contact-link__kind {
  color: var(--on-accent);
}

.form {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

@media (min-width: 640px) {
  .form { padding: 32px; }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 1rem;
  transition: border-color var(--dur-ui) var(--ease-out);
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, var(--surface));
  opacity: 1;
}

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

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.field--options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--options legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.field__hint {
  margin-left: 6px;
  font-weight: 500;
  color: var(--muted);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option {
  position: relative;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.option span {
  display: block;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .option:hover span {
    border-color: var(--primary);
  }
}

.option input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}

.option input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .option:active span {
    transform: scale(0.97);
  }
}

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

.form .btn {
  justify-self: start;
}

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

@media (prefers-reduced-motion: no-preference) {
  .field__error:not(:empty) {
    animation: err-in 200ms var(--ease-out);
  }
}

@keyframes err-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.form.is-sent > :not(.form__success) {
  display: none;
}

@media (min-width: 960px) {
  .form.is-sent {
    align-self: stretch;
    align-content: center;
  }
}

.form__success {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-block: 32px;
  text-align: center;
  outline: none;
}

.form__success[hidden] {
  display: none;
}

.form__mark {
  width: 72px;
  height: 72px;
}

.form__mark .mark__bar { stroke: var(--ink); }
.form__mark .mark__arc { stroke: var(--primary); }
.form__mark .mark__dot { fill: var(--accent); }

.form__success-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.form__reset {
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .form.is-sent .form__mark .mark__bar,
  .form.is-sent .form__mark .mark__arc {
    stroke-dasharray: 1;
    animation: draw 650ms var(--ease-out) 150ms both;
  }

  .form.is-sent .form__mark .mark__arc {
    animation-delay: 400ms;
    animation-duration: 700ms;
  }

  .form.is-sent .form__mark .mark__dot {
    animation: dot-drop 500ms var(--ease-out) 900ms both;
  }

  .form.is-sent .form__success-title {
    animation: rise-in 600ms var(--ease-out) 700ms both;
  }

  .form.is-sent .form__reset {
    animation: rise-in 600ms var(--ease-out) 900ms both;
  }
}

.form__note {
  font-size: 0.875rem;
  color: var(--muted);
}

.form__note a {
  color: var(--primary);
}

.form__status {
  font-weight: 500;
}

.form__status:empty {
  display: none;
}

.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--error); }

.site-footer {
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
  background: var(--dark);
  color: var(--on-dark);
}

.site-footer__inner {
  display: grid;
  gap: 32px;
}

.site-footer__slogan {
  margin-top: 8px;
  color: var(--on-dark-muted);
}

.site-footer__contact {
  display: flex;
  gap: 4px;
  margin: 12px 0 0 -10px;
}

.site-footer__contact a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--primary-on-dark);
  transition: color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}

.site-footer__contact .icon {
  width: 24px;
  height: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__contact a:hover {
    color: var(--on-dark);
    background: rgba(244, 247, 246, 0.1);
  }
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer__links a {
  font-weight: 500;
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

@media (prefers-reduced-motion: no-preference) {
  .js .footer__mark .mark__bar,
  .js .footer__mark .mark__arc {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .js .footer__mark .mark__dot {
    opacity: 0;
  }

  .js .site-footer.is-drawn .footer__mark .mark__bar {
    animation: draw 700ms var(--ease-out) 150ms both;
  }

  .js .site-footer.is-drawn .footer__mark .mark__arc {
    animation: draw 750ms var(--ease-out) 400ms both;
  }

  .js .site-footer.is-drawn .footer__mark .mark__dot {
    animation: dot-drop 500ms var(--ease-out) 900ms both;
  }
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 247, 246, 0.12);
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer__legal-links a:hover {
  color: var(--on-dark);
}

.site-footer__links [aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

@media (min-width: 960px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .site-footer__bottom {
    grid-column: 1 / -1;
  }
}

.legal-header__back {
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}

.legal-header__back:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.legal {
  max-width: calc(760px + var(--gutter) * 2);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: var(--section-space);
}

.legal__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal__meta {
  margin: 10px 0 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.legal__toc {
  margin: 40px 0 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.legal__toc-title {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.legal__toc ol {
  list-style: decimal;
  padding-left: 1.4em;
  columns: 2 220px;
  column-gap: 32px;
}

.legal__toc li {
  margin: 4px 0;
  break-inside: avoid;
}

.legal__toc a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.legal__section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.legal__section h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.legal__section h3 {
  margin: 20px 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.legal__section p + p,
.legal__section ul + p {
  margin-top: 12px;
}

.legal__section ul {
  list-style: disc;
  padding-left: 1.3em;
  margin-top: 8px;
}

.legal__section li {
  margin: 6px 0;
}

.legal__section a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: #FFFFFF;
  color-scheme: light;
}

/* Fondo blanco siempre, tambien con el celular en modo oscuro (el pie sigue oscuro) */
.notfound-head,
.notfound {
  --ink: #10232A;
  --muted: #4A5A5F;
  color: #10232A;
}

.notfound-head {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 5vw, 40px) var(--gutter) 0;
}

.notfound-head .brand {
  color: #10232A;
}

.notfound {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(16px, 4vw, 40px);
  padding-bottom: 64px;
  text-align: center;
}

.notfound__code {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(8px, 2vw, 16px);
  font-size: clamp(7.5rem, 30vw, 16rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* Un color del logo por cada numero: arco, barra y punto */
.notfound__digit--a { color: #3FB8C6; }
.notfound__digit--b { color: #10232A; }
.notfound__digit--c { color: #FF8A3D; }

/* Pie claro solo en la 404: la linea separadora de abajo se conserva, en oscuro suave */
.page-404 .site-footer {
  background: #FFFFFF;
  color: #10232A;
}

.page-404 .site-footer__slogan,
.page-404 .site-footer__bottom {
  color: #4A5A5F;
}

.page-404 .site-footer__bottom {
  border-top-color: rgba(16, 35, 42, 0.14);
}

.page-404 .site-footer__legal-links a:hover {
  color: #10232A;
}

.notfound__title {
  max-width: 14ch;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.notfound__text {
  max-width: 36ch;
  margin-top: 20px;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  color: var(--muted);
  text-wrap: balance;
}

.notfound__btn {
  margin-top: 32px;
  transition: background-color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}

.notfound__btn:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: no-preference) {

  .js [data-reveal] > * {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition:
      opacity var(--dur-enter) var(--ease-out),
      transform var(--dur-enter) var(--ease-out),
      filter var(--dur-enter) var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--stagger));
  }

  .js [data-reveal].is-visible > * {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .js [data-reveal-clip] {
    clip-path: inset(18% 0 0 0 round var(--radius-lg));
    transition: clip-path 1100ms var(--ease-out);
  }

  .js [data-reveal-clip] img {
    transform: scale(1.08);
    transition: transform 1400ms var(--ease-out);
  }

  .js .is-visible [data-reveal-clip],
  .js [data-reveal-clip].is-visible {
    clip-path: inset(0 0 0 0 round var(--radius-lg));
  }

  .js .is-visible [data-reveal-clip] img,
  .js [data-reveal-clip].is-visible img {
    transform: none;
  }

  .btn {
    transition: transform var(--dur-ui) var(--ease-out),
      background-color var(--dur-ui) ease, color var(--dur-ui) ease,
      border-color var(--dur-ui) ease;
  }

  .btn:active {
    transform: scale(0.97);
  }
}

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