/* ============ Tokens ============ */
:root {
  --iris-300: #c9b2fe;
  --iris-500: #9d4dff;
  --iris-700: #7d03d9;
  --ink: #0b0716;
  --ink-2: #1a1428;
  --muted: #8b8496;
  --muted-dark: #b9b3c6;
  --bg: #f7f6fa;
  --line: #e7e4ee;
  --white: #fff;

  --gutter: clamp(12px, 5vw, 72px);
  --pad: clamp(20px, 3.9vw, 56px);
  --radius-xl: clamp(28px, 2.8vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Manrope", system-ui, sans-serif;
  --font-logo: "Work Sans", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--iris-500); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Type ============ */
.display { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.display--64 { font-size: clamp(40px, 4.45vw, 64px); line-height: 1; }
.display--56 { font-size: clamp(38px, 3.9vw, 56px); }
.display--36 { font-size: clamp(28px, 2.5vw, 36px); }
.display--32 { font-size: clamp(26px, 2.25vw, 32px); }
.display--24 { font-size: 24px; }
.display--22 { font-size: 22px; }
.display--20 { font-size: 20px; }
.body-24 { font-size: clamp(19px, 1.67vw, 24px); }
.body-19 { font-size: clamp(17px, 1.32vw, 19px); }
.body-18 { font-size: clamp(16px, 1.25vw, 18px); }
.body-16 { font-size: 16px; }
.body-15 { font-size: 15px; }
.ink { color: var(--ink); }
.muted { color: var(--muted); }
.muted-dark { color: var(--muted-dark); }
.muted-dark strong { color: #fff; font-weight: 600; }
.why strong { font-weight: 500; }

.logo { font-family: var(--font-logo); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1; color: var(--ink); white-space: nowrap; }
.logo .ai { color: var(--iris-500); }
.logo--20 { font-size: 20px; }

/* split helpers */
.line, .w { display: inline-block; vertical-align: top; }
[data-split-lines] .line { display: block; }
.w { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* ============ Layout ============ */
main { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.section-card, .about, .why, .footer {
  width: min(1296px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  position: relative;
}
.section-card { border-radius: var(--radius-xl); overflow: hidden; }

/* ============ Chips ============ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap;
}
.chip--glass { background: rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.chip--white { background: #fff; color: var(--ink); }
.chip--outline-iris { border: 1px solid var(--iris-300); color: var(--iris-300); }
.chip--outline-muted { border: 1px solid rgba(185,179,198,.5); color: #fff; }
.chip--iris { background: var(--iris-500); color: #fff; }
.chip--iris700 { background: var(--iris-700); color: #fff; }
.chip--frost { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.ms-mark {
  display: block; width: 79px; height: 38px; background: #fff;
  -webkit-mask: url(/assets/ms-partner-mask.png) no-repeat 0 0 / 79px 38px;
          mask: url(/assets/ms-partner-mask.png) no-repeat 0 0 / 79px 38px;
}

/* ============ Buttons ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 600; line-height: 1.5; white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s;
}
.btn__label { position: relative; }
.btn__arrow { font-weight: 500; display: inline-block; transition: transform .25s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--sm { padding: 13px 22px; font-size: 15px; }
.btn--lg { padding: 18px 30px; font-size: 17px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #241c35; }
.btn--iris { background: var(--iris-500); color: #fff; }
.btn--iris:hover { background: #8a3bf0; }
.btn--ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--iris-300); outline-offset: 3px; }

.link-underline { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.link-underline:hover { background-size: 100% 1px; }

/* ============ Intro, progress, cursor ============ */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--iris-500);
  display: grid; place-items: center; align-content: center; gap: 22px;
}
.intro__logo { font-family: var(--font-logo); font-weight: 600; font-size: clamp(40px, 7vw, 96px); letter-spacing: -.03em; color: #fff; overflow: hidden; }
.intro__logo .ai { color: var(--ink); }
.intro__logo span { display: inline-block; }
.intro__bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.no-js .intro, .reduced .intro { display: none; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--iris-700), var(--iris-500), var(--iris-300)); transform-origin: 0 50%; transform: scaleX(0); }


/* ============ Nav ============ */
.nav {
  position: absolute; z-index: 50; top: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 40px;
  padding: 8px 8px 8px 28px; border-radius: 999px; background: #fff;
}
.nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__link { transition: color .2s; }
.nav__link:hover { color: var(--iris-500); }

/* ============ 01 Hero ============ */
.hero {
  background: var(--iris-500); color: #fff;
  min-height: 755px; height: min(755px, calc(100svh - 32px));
  min-height: 640px;
  padding: 193px var(--pad) 88px;
  display: flex; align-items: center;
}
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 600px; }
.hero__title { color: #fff; }
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.88); max-width: 560px; }
/* Anchored to the bottom edge of the hero card; grows upward to the design's top offset. */
.hero__media { position: absolute; left: calc(734 / 1296 * 100%); top: 200px; bottom: 0; width: 499px; z-index: 1; }
.hero__arch { width: 100%; height: 100%; border-radius: 343.5px 343.5px 0 0; overflow: hidden; clip-path: inset(0 0 0 0 round 343.5px 343.5px 0 0); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; will-change: transform; }

/* ============ 02 Client ============ */
.client {
  background: var(--ink); color: #fff;
  min-height: 687px; padding: 88px var(--pad);
  display: grid; grid-template-columns: minmax(0, 634px) minmax(0, 416px); justify-content: space-between; align-items: center; gap: 48px;
}
.client__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.client__copy p { max-width: 600px; }
.dots { position: absolute; pointer-events: none; z-index: 0; }
.dots--a { left: calc(960 / 1296 * 100%); top: -40px; width: 420px; height: 240px; }
.dots--b { left: calc(668 / 1296 * 100%); top: 501px; width: 420px; height: 240px; }
.gift-wrap { position: relative; z-index: 2; perspective: 1200px; }
.gift {
  position: relative; background: #fff; color: var(--ink); border-radius: 28px; padding: 36px;
  display: flex; flex-direction: column; gap: 20px; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 40px 80px -30px rgba(157,77,255,.55);
}
.gift__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gift__top .chip { white-space: nowrap; }
.gift__logo { width: 140px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.gift__bar { height: 8px; border-radius: 4px; background: rgba(157,77,255,.15); overflow: hidden; }
.gift__bar i { display: block; height: 100%; background: var(--iris-500); border-radius: 4px; transform-origin: 0 50%; }
.gift__ast { color: var(--iris-500); font-size: .6em; vertical-align: super; line-height: 0; margin-left: 2px; }
.gift__note { margin-top: -4px; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink); }

/* ============ 03 About ============ */
.about { padding: 120px var(--pad); display: flex; flex-direction: column; gap: 56px; }
.manifesto { font-weight: 700; font-size: clamp(36px, 4.45vw, 64px); line-height: 1; letter-spacing: -0.03em; color: var(--muted); }
.manifesto .m-strong { color: var(--ink); }
.manifesto .mw { display: inline; }
.about__row { display: grid; grid-template-columns: 416px 1fr; gap: 134px; align-items: start; }
.about__text { display: flex; flex-direction: column; gap: 16px; }

/* ============ 04 Services ============ */
.services { background: #fff; padding: 88px var(--pad) 56px; display: flex; flex-direction: column; gap: 48px; }
.services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.services__title { max-width: 700px; }
.services__intro { max-width: 440px; }
.services__intro strong { font-weight: 600; }
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; perspective: 1400px; }
.svc {
  background: var(--bg); border-radius: 28px; padding: 10px 10px 28px;
  display: flex; flex-direction: column; gap: 24px;
}
.svc__visual {
  position: relative; height: 240px; border-radius: 20px; overflow: hidden;
  padding: 20px 24px 16px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  color: #fff; isolation: isolate;
}
.svc__visual--ink { background: var(--ink); }
.svc__visual--iris700 { background: var(--iris-700); }
.svc__visual--iris500 { background: var(--iris-500); }
.svc__visual .chip { position: relative; z-index: 2; }
.svc__num { position: relative; z-index: 2; font-size: clamp(88px, 8.3vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; display: inline-block; }
.svc__art { position: absolute; z-index: 1; }
.svc__art--png { opacity: .3; object-fit: cover; }
.svc__body { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
/* 5th front: full-width card, visual spans two columns */
.svc--wide { grid-column: 1 / -1; display: grid; grid-template-columns: calc(50% - 22px) minmax(0, 1fr); align-items: center; gap: 24px 48px; padding: 10px; }
.svc--wide .svc__body { padding: 0 24px 0 0; gap: 14px; max-width: 520px; }
.svc--wide .svc__body strong { font-weight: 600; }
.dots--fill { inset: 0; width: 100%; height: 100%; opacity: .9; }

/* ============ 05 Why ============ */
.why { padding: 120px var(--pad); display: grid; grid-template-columns: minmax(0, 524px) minmax(0, 526px); justify-content: space-between; align-items: start; gap: 48px; overflow: hidden; }
.why__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.dots--big { left: calc(644 / 1296 * 100%); top: 727px; width: 973px; height: 556px; }
.pillars { width: 100%; padding-top: 8px; }
.pillar { position: relative; display: flex; gap: 24px; padding: 24px 0; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: 0 50%; transform: scaleX(var(--line-s, 1)); }
.pillar__num { flex: 0 0 86px; color: var(--iris-500); font-weight: 700; font-size: 15px; line-height: 1.1; letter-spacing: -0.03em; }
.pillar > div { display: flex; flex-direction: column; gap: 6px; }

.sla { position: relative; z-index: 2; background: var(--ink); color: #fff; border-radius: 32px; padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.sla h3 { padding: 0 4px; margin-bottom: 8px; }
.ticket {
  position: relative; background: var(--ink-2); border-radius: 18px; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; overflow: hidden;
}
.ticket__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ticket__desc { color: var(--muted-dark); font-size: 14px; }
.ticket__time { font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; }
.ticket__time b { font-weight: 700; display: inline-block; min-width: .6em; text-align: right; }
.ticket__pulse { position: absolute; left: 20px; top: 20px; width: 66px; height: 35px; border-radius: 999px; border: 1px solid var(--iris-500); animation: pulse 2.2s var(--ease-out) infinite; pointer-events: none; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.5, 1.9); opacity: 0; } }

/* ============ 06 Contact ============ */
.contact {
  background: var(--ink); color: #fff;
  padding: 88px var(--pad) 56px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
}
.contact__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: 16px; }
.contact__title { font-size: clamp(48px, 8.05vw, 116px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; margin: 0; }
.contact__title .ch { display: inline-block; will-change: transform; }
.contact__copy > p { max-width: 460px; }
.contact__row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact__phone { font-weight: 500; font-size: 16px; }
.contact__mail { font-weight: 500; font-size: 16px; color: var(--muted-dark); }

.form { position: relative; flex: 0 0 526px; max-width: 100%; background: #fff; color: var(--ink); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.form__title { padding-bottom: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { position: relative; display: block; }
.field input, .field select {
  width: 100%; border: 0; outline: 0; border-radius: 14px; background: var(--bg);
  padding: 16px 18px; font-size: 15px; line-height: 1.5; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .3s, background-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--iris-500), 0 0 0 4px rgba(157,77,255,.12); }
.field > span:not(.caret) {
  position: absolute; left: 18px; top: 16px; font-size: 15px; line-height: 1.5; color: var(--muted);
  pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease-out), color .3s, opacity .3s;
}
.field input:focus + span, .field input:not(:placeholder-shown) + span { transform: translateY(-11px) scale(.72); color: var(--iris-500); }
.field input:focus, .field input:not(:placeholder-shown) { padding-top: 22px; padding-bottom: 10px; }
.field--select select { color: var(--muted); cursor: pointer; }
.field--select select:valid { color: var(--ink); }
.caret { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.form .btn { margin-top: 0; }
.form__done {
  position: absolute; inset: 0; background: #fff; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  opacity: 0; visibility: hidden; transform: scale(.96); transition: opacity .5s, transform .6s var(--ease-out), visibility .5s;
}
.form.is-done .form__done { opacity: 1; visibility: visible; transform: none; }
.form__check { width: 64px; height: 64px; border-radius: 50%; background: var(--iris-500); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.form__error { font-size: 14px; color: #c2185b; }
.form__error a { text-decoration: underline; font-weight: 600; }

/* ============ Footer ============ */
.footer { padding: 24px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__ms { position: relative; width: 85px; height: 40.745px; overflow: hidden; }
.footer__ms img { position: absolute; width: 149.08%; height: 207.18%; left: -24.54%; top: -55.98%; mix-blend-mode: multiply; }
.footer__meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.footer__backing { display: flex; align-items: center; gap: 24px; }
.tlp {
  display: block; width: 107px; height: 51.848px; background: #000;
  -webkit-mask: url(/assets/tlp-mask.png) no-repeat 0 0 / 107px 51.848px;
          mask: url(/assets/tlp-mask.png) no-repeat 0 0 / 107px 51.848px;
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
  .hero__media { left: auto; right: var(--pad); width: 40%; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .about__row { grid-template-columns: 1fr 1.3fr; gap: 64px; }
  .contact { flex-direction: column; align-items: stretch; }
  .form { flex-basis: auto; }
}
@media (max-width: 900px) {
  .nav { gap: 16px; padding-left: 20px; }
  .nav__links { display: none; }
  .hero { height: auto; min-height: 0; flex-direction: column; align-items: stretch; padding-top: 140px; padding-bottom: 0; gap: 40px; }
  .hero__media { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: min(100%, 420px); align-self: center; margin-top: auto; aspect-ratio: 499 / 600; height: auto; }
  .client { grid-template-columns: minmax(0, 1fr); }
  .dots--a { left: auto; right: -80px; }
  .dots--b { left: -60px; top: auto; bottom: -60px; }
  .about { padding-block: 80px; gap: 40px; }
  .about__row { grid-template-columns: 1fr; gap: 24px; }
  .why { grid-template-columns: minmax(0, 1fr); padding-block: 80px; }
  .dots--big { left: -20%; top: auto; bottom: -200px; }
  .footer { justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  .contact__title { font-size: 15vw; }
  .services__grid { grid-template-columns: 1fr; }
  .svc--wide { grid-template-columns: 1fr; padding: 10px 10px 28px; }
  .svc--wide .svc__body { padding: 0 14px; }
  .form__row { grid-template-columns: 1fr; gap: 12px; }
  .form { padding: 20px; }
  .gift { padding: 26px; }
  .ticket { flex-direction: column; align-items: flex-start; }
  .ticket__time { font-size: 24px; }
  .hero__title .line { display: inline; }
  .btn { white-space: normal; text-align: center; }
  .footer__meta { white-space: normal; }
  .btn--lg { padding: 16px 24px; font-size: 16px; }
  .chip { white-space: normal; }
  .ms-mark { flex: none; }
}

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