/* =========================================================
   Neru Technology
   White, editorial, type-led. One accent, used sparingly.
   ========================================================= */
:root {
  --bg: #ffffff;
  --surface: #f5f5f3;
  --fg: #111118;
  --fg-soft: #3a3a44;
  --muted: #6b6b75;
  --line: #e6e6e3;
  --accent: #2340ff;

  /* glass */
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .72);
  --glass-dark: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .6);
  --glass-line-dark: rgba(255, 255, 255, .14);
  --blur: saturate(160%) blur(18px);

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --radius: 6px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 280ms;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --s4: 40px; --s5: 64px; --s6: 96px; --s7: 140px;
}

*, *::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(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--fg); color: #fff; }

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

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--fg); color: #fff; font-weight: 500;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }

/* ---------- ambient colour behind the page ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient__blob {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(100px); will-change: transform;
}
.ambient__blob--blue { width: 720px; height: 720px; left: -14%; top: 18%; background: rgba(35, 64, 255, .12); }
.ambient__blob--ink { width: 640px; height: 640px; right: -16%; top: 48%; background: rgba(17, 17, 24, .07); }
.ambient__blob--sky { width: 520px; height: 520px; left: 42%; top: 82%; background: rgba(35, 64, 255, .08); }
main, .footer { position: relative; z-index: 1; }
.hero--video { z-index: 2; }
@media (max-width: 760px) {
  .ambient__blob { filter: blur(70px); }
  .ambient__blob--blue { width: 420px; height: 420px; }
  .ambient__blob--ink { width: 380px; height: 380px; }
  .ambient__blob--sky { width: 320px; height: 320px; }
}
.progress span { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- type ---------- */
.kicker {
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 20px; height: 1px; background: var(--fg); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.section-lead { color: var(--fg-soft); font-size: 18px; max-width: 42ch; line-height: 1.6; }
.section-head { margin-bottom: var(--s5); }
.section-head--split { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: flex-end; justify-content: space-between; }

/* SplitText line masks: leave room for descenders inside the clipped wrapper */
[data-lines] > div { padding-bottom: .14em; margin-bottom: -.14em; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 500; font-size: 16px;
  transition: background var(--dur), color var(--dur), transform var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--dark { background: var(--fg); color: #fff; }
.btn--dark:hover { background: var(--accent); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 16px;
  padding: 12px 0;
  position: relative;
}
.link-arrow::after {
  content: ""; width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease); }
.link-arrow:hover span { background-size: 100% 1px; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- language switch ---------- */
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.lang button {
  min-height: 34px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: background var(--dur), color var(--dur);
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: var(--fg); color: #fff; }
.lang--mobile { margin-top: 16px; align-self: flex-start; }
.lang--mobile button { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform 400ms var(--ease), box-shadow var(--dur), background var(--dur);
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(17, 17, 24, .06); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { height: 22px; width: auto; display: block; color: var(--fg); }

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--fg-soft);
  transition: color var(--dur), background var(--dur);
}
.nav__links a:hover { color: var(--fg); background: var(--surface); }
.nav__links a.is-active { color: var(--fg); }

.nav__toggle {
  display: none; position: relative;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  margin-left: auto;
}
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform var(--dur) var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: var(--glass-strong); border-bottom: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .nav__links, .nav__inner > .btn, .nav__inner > .lang { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- hero: full-bleed video ---------- */
.hero--video {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: 140px 0 40px;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; background: #1a1a20; }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 80% at 72% 28%, rgba(35, 64, 255, .55), rgba(35, 64, 255, 0) 70%),
    linear-gradient(180deg, rgba(35, 64, 255, .18), rgba(35, 64, 255, .3));
  mix-blend-mode: multiply;
  opacity: .34;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 10, 14, .5) 0%, rgba(10, 10, 14, 0) 24%),
    linear-gradient(to top, rgba(10, 10, 14, .72) 0%, rgba(10, 10, 14, .25) 45%, rgba(10, 10, 14, 0) 70%),
    linear-gradient(to right, rgba(10, 10, 14, .35) 0%, rgba(10, 10, 14, 0) 60%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--s5); padding-bottom: 40px; }
.hero__copy { display: grid; gap: 28px; justify-items: start; max-width: 760px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}
.hero__lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 46ch; }
.hero__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn--light { background: #fff; color: var(--fg); }
.btn--light:hover { background: var(--accent); color: #fff; }
.hero--video .link-arrow {
  padding: 0 20px; min-height: 52px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: background var(--dur), border-color var(--dur);
}
.hero--video .link-arrow:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }
.hero--video .link-arrow span { background: none; }

/* nav sits transparent over the video until the page scrolls */
.nav.nav--over { background: rgba(10, 10, 14, .18); color: #fff; box-shadow: 0 1px 0 var(--glass-line-dark); }
.nav.nav--over .logo__mark { color: #fff; }
.nav.nav--over .nav__links a { color: rgba(255, 255, 255, .8); }
.nav.nav--over .nav__links a:hover, .nav.nav--over .nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .1); }
.nav.nav--over .lang { border-color: var(--glass-line-dark); background: var(--glass-dark); }
.nav.nav--over .lang button { color: rgba(255, 255, 255, .7); }
.nav.nav--over .lang button[aria-pressed="true"] { background: #fff; color: var(--fg); }
.nav.nav--over .btn--dark { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.nav.nav--over .btn--dark:hover { background: #fff; color: var(--fg); }
.nav.nav--over .nav__toggle { border-color: rgba(255, 255, 255, .35); }
.nav.nav--over .nav__toggle span { background: #fff; }

@media (max-width: 860px) {
  .hero--video { padding-top: 120px; }
}

/* ---------- services rows ---------- */
.services { padding-block: var(--s7) var(--s6); }
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: rgba(245, 245, 243, .7); border-radius: 20px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 420ms var(--ease);
  z-index: -1;
}
.row:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
.row__main h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 12px;
  transition: transform 420ms var(--ease);
}
.row:hover .row__main h3 { transform: translateX(8px); }
.row__main p { color: var(--fg-soft); max-width: 54ch; }
.row__tags { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; font-size: 14px; color: var(--muted); }
.row__tags li::before { content: "·"; margin-right: 8px; }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 16px; }
  .row__tags { padding-top: 0; }
}

/* ---------- tools ---------- */
.tools { background: var(--fg); color: #fff; padding-block: var(--s7) var(--s6); overflow: hidden; }
.tools .kicker { color: rgba(255,255,255,.6); }
.tools .kicker::before { background: #fff; }
.tools__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.035em;
  max-width: 16ch; margin-bottom: var(--s4);
}
.tools__text { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.72); max-width: 58ch; line-height: 1.6; }

.marquee { margin-top: var(--s6); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); display: flex; width: max-content; }
.tool {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 22px 10px 14px; border-radius: 999px;
  background: var(--glass-dark); border: 1px solid var(--glass-line-dark);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  color: rgba(255, 255, 255, .85);
}
.tool img { width: 26px; height: 26px; opacity: .9; }
.tools { position: relative; }
.tools::before, .tools::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: .5;
}
.tools::before { width: 520px; height: 520px; right: -120px; top: -80px; background: rgba(255, 255, 255, .12); }
.tools::after { width: 420px; height: 420px; left: 20%; bottom: -200px; background: rgba(35, 64, 255, .25); }
.tools__inner, .marquee { position: relative; }
.marquee__track {
  display: flex; gap: 14px; padding-right: 14px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- process (horizontal on desktop) ---------- */
.process { background: rgba(245, 245, 243, .55); position: relative; overflow: hidden; }
.process::before, .process::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
.process::before { width: 560px; height: 560px; left: -140px; top: 10%; background: rgba(35, 64, 255, .06); }
.process::after { width: 640px; height: 640px; right: -200px; bottom: -200px; background: rgba(17, 17, 24, .08); }
.process__pin { position: relative; }
.process__pin { padding-block: var(--s6); }
.steps-wrap { overflow: hidden; }
.steps { display: flex; gap: 24px; }
.step {
  flex: 0 0 clamp(300px, 34vw, 460px);
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: 20px;
  box-shadow: 0 20px 50px -30px rgba(17, 17, 24, .18);
  padding: 32px 32px 40px;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.step__num { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: auto; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; margin: 56px 0 12px; }
.step p { color: var(--fg-soft); }
@media (max-width: 900px) {
  .steps { flex-direction: column; }
  .step { flex-basis: auto; min-height: 0; }
  .step h3 { margin-top: 32px; }
}

/* ---------- about (Frank) ---------- */
.about { padding-block: var(--s7) var(--s6); }
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s5); align-items: center; }
.about__copy { display: grid; gap: 24px; justify-items: start; }
.about__body { display: grid; gap: 20px; font-size: 18px; color: var(--fg-soft); line-height: 1.6; max-width: 48ch; }
.about__stage { width: 100%; max-width: 520px; justify-self: end; }
.about__card {
  display: grid; justify-items: center; gap: 18px;
  padding: 56px 40px;
  border-radius: 24px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 30px 60px -40px rgba(17, 17, 24, .25);
  text-align: center;
}
.about__wordmark { height: 44px; width: auto; color: var(--fg); }
.about__plus { font-family: var(--font-display); font-size: 28px; color: var(--muted); line-height: 1; }
.about__frank { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; }
.about__since { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } .about__stage { justify-self: center; max-width: 420px; } }

/* ---------- contact ---------- */
.contact { padding-block: var(--s7); border-top: 1px solid var(--line); }
.contact__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 7vw, 104px); line-height: .98; letter-spacing: -0.04em;
  max-width: 12ch; margin-bottom: var(--s4);
}
.contact__text { font-size: 19px; color: var(--fg-soft); max-width: 44ch; margin-bottom: var(--s5); }
.contact__email {
  display: inline-block;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 3.4vw, 48px); letter-spacing: -0.03em;
  padding-bottom: 6px;
  background: linear-gradient(var(--fg), var(--fg)) 0 100% / 100% 2px no-repeat;
  transition: color var(--dur);
}
.contact__email:hover { color: var(--accent); background-image: linear-gradient(var(--accent), var(--accent)); }

/* ---------- footer ---------- */
.footer { background: rgba(245, 245, 243, .7); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); padding-block: var(--s5) 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.footer__col { display: grid; gap: 6px; align-content: start; justify-items: start; color: var(--fg-soft); line-height: 1.6; }
.footer__label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.footer__col a:hover { color: var(--accent); }
.footer__small { color: var(--muted); font-size: 14px; max-width: 32ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

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