/* Nimblr. Space Grotesk, Nimblr blue, white. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --blue: #2b3bff;
  --blue-deep: #1f2ee0;
  --ink: #111111;
  --grey: #f3f3f0;
  --line: rgba(17, 17, 17, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: clamp(20px, 4.5vw, 160px);
  --max: 2880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons and small type ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 30px; border-radius: 999px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease); will-change: transform; white-space: nowrap; }
.btn--small { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: rgba(255, 255, 255, 0.9); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.link-quiet { font-size: 17px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; opacity: 0.85; transition: opacity 0.2s; }
.link-quiet:hover { opacity: 1; }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.65; }
.tag { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: rgba(17, 17, 17, 0.6); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: calc(18px + env(safe-area-inset-top)) 0 18px; color: #fff; transition: background-color 0.35s var(--ease), color 0.35s var(--ease), padding 0.35s var(--ease); }
.nav__inner { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav__logo img { height: 34px; width: auto; }
.nav .logo-ink { display: none; }
.nav__links { display: flex; gap: 34px; font-size: 16px; font-weight: 500; }
.nav__links a { opacity: 0.8; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.nav__clock { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0.8; font-variant-numeric: tabular-nums; }
.nav__clock i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.2); }
.nav__cta { background: #fff; color: var(--blue); }
.nav.is-light { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.nav.is-light .logo-onblue { display: none; }
.nav.is-light .logo-ink { display: block; }
.nav.is-light .nav__cta { background: var(--blue); color: #fff; }
@media (max-width: 1020px) { .nav__links { display: none; } .nav__inner { grid-template-columns: 1fr auto; } }
@media (max-width: 560px) { .nav__clock { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: #fff; padding-top: calc(clamp(130px, 16vh, 210px) + env(safe-area-inset-top)); overflow: hidden; }
.hero__top { display: grid; gap: clamp(28px, 3vw, 44px); }
.hero__title { font-size: clamp(52px, 8.6vw, 280px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 700; }
.hero__title .line { display: block; }
.hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 56px; padding-top: clamp(4px, 1vw, 16px); }
.hero__lede { font-size: clamp(18px, 1.35vw, 24px); line-height: 1.5; opacity: 0.88; max-width: 34em; }
.hero__actions { display: flex; align-items: center; gap: 28px; }

/* A slow reel of the example sites under the headline. */
.reel { margin-top: clamp(56px, 7vw, 120px); padding-bottom: clamp(40px, 4vw, 72px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel__track { display: flex; gap: clamp(16px, 1.6vw, 28px); width: max-content; animation: reel 70s linear infinite; }
.reel:hover .reel__track { animation-play-state: paused; }
.reel__item { width: clamp(300px, 30vw, 900px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(5, 10, 80, 0.6); flex-shrink: 0; }
@keyframes reel { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 11vw, 200px); }
.section--grey { background: var(--grey); }
.head { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 6fr) minmax(0, 4fr); gap: 16px 32px; align-items: end; margin-bottom: clamp(48px, 6vw, 104px); }
.head__num { font-size: 15px; font-weight: 500; color: rgba(17, 17, 17, 0.45); align-self: start; padding-top: 0.9em; }
.head__title { font-size: clamp(44px, 6.2vw, 128px); line-height: 0.92; letter-spacing: -0.055em; font-weight: 700; }
.head__note { font-size: clamp(16px, 1.1vw, 19px); line-height: 1.55; color: rgba(17, 17, 17, 0.6); max-width: 30em; }
@media (max-width: 860px) { .head { grid-template-columns: minmax(0, 1fr); } .head__num { padding-top: 0; } }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4vw, 72px) clamp(20px, 2.4vw, 44px); }
.project { display: grid; gap: 18px; align-content: start; }
.project:nth-child(even) { margin-top: clamp(0px, 9vw, 180px); }
.project__screen { aspect-ratio: 4 / 3; border-radius: 18px; border: 1px solid var(--line); }
.project__screen .site-frame { transition: transform 5.5s cubic-bezier(0.45, 0, 0.25, 1); }
.project__meta { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.project__meta h3 { font-size: clamp(22px, 1.8vw, 32px); letter-spacing: -0.03em; margin-right: auto; }
.project__meta p { font-size: 15px; color: rgba(17, 17, 17, 0.55); }
@media (hover: hover) and (pointer: fine) { .project__screen { cursor: none; } }
@media (max-width: 860px) { .work { grid-template-columns: minmax(0, 1fr); } .project:nth-child(even) { margin-top: 0; } }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(96px, 11vw, 200px); border-top: 1px solid var(--line); }
.statement__text { font-size: clamp(30px, 4.2vw, 84px); line-height: 1.08; letter-spacing: -0.045em; font-weight: 500; max-width: 22ch; }
.statement__text em { font-style: normal; color: var(--blue); }
.platforms { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(36px, 4vw, 64px); }
.platforms span { font-size: clamp(15px, 1.1vw, 18px); padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 56px); border-top: 1px solid var(--line); padding-top: 40px; }
.step { display: grid; gap: 22px; align-content: start; }
.step__num { font-size: clamp(56px, 6vw, 120px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85; color: var(--blue); }
.step h3 { font-size: clamp(20px, 1.6vw, 28px); letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { font-size: clamp(16px, 1.1vw, 19px); line-height: 1.55; color: rgba(17, 17, 17, 0.62); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing ---------- */
.price { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 4vw, 80px); background: var(--grey); border-radius: 32px; padding: clamp(28px, 4vw, 80px); }
.price__main { display: grid; gap: 24px; align-content: start; justify-items: start; }
.toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.toggle button { height: 44px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 600; color: rgba(17, 17, 17, 0.55); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.toggle button[aria-selected="true"] { background: var(--blue); color: #fff; }
.price__amount { font-size: clamp(76px, 10vw, 210px); font-weight: 700; letter-spacing: -0.065em; line-height: 0.85; color: var(--blue); }
.price__amount span { display: inline-block; transition: opacity 0.25s, transform 0.25s var(--ease); }
.price__amount span.is-swap { opacity: 0; transform: translateY(12px); }
.price__note { font-size: clamp(18px, 1.4vw, 24px); line-height: 1.45; max-width: 26em; }
.price__fine { font-size: 15px; color: rgba(17, 17, 17, 0.55); max-width: 32em; line-height: 1.55; }
.price__list { list-style: none; display: grid; align-content: start; }
.price__list li { padding: 20px 0 20px 38px; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.4; position: relative; }
.price__list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 960px) { .price { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 1600px; margin-left: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(22px, 2vw, 34px) 0; font-size: clamp(19px, 1.7vw, 30px); font-weight: 500; letter-spacing: -0.025em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 32px; font-weight: 300; color: var(--blue); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 30px; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.6; color: rgba(17, 17, 17, 0.62); max-width: 46em; }

/* ---------- Call to action ---------- */
.cta { background: var(--blue); color: #fff; padding-block: clamp(110px, 13vw, 240px); }
.cta .wrap { display: grid; gap: 28px; justify-items: start; }
.cta__title { font-size: clamp(52px, 9vw, 196px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 700; }
.cta__lede { font-size: clamp(18px, 1.4vw, 24px); opacity: 0.88; max-width: 32em; line-height: 1.5; }
.cta__number { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.cta__number[hidden] { display: none; }
.cta__digits { font-size: clamp(38px, 5.4vw, 112px); font-weight: 700; letter-spacing: -0.045em; border-bottom: 3px solid rgba(255, 255, 255, 0.35); }

/* ---------- Footer: one quiet line ---------- */
.footer { padding-block: 28px calc(28px + env(safe-area-inset-bottom)); font-size: 15px; color: rgba(17, 17, 17, 0.6); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.footer__inner img { height: 26px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-left: auto; }
.footer a:hover { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Cursor (desktop): a dot, and "View" over the work ---------- */
.cursor { position: fixed; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); pointer-events: none; z-index: 200; opacity: 0; display: grid; place-items: center; transform: translate(-50%, -50%); transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.25s, background-color 0.3s; }
.cursor span { font-size: 14px; font-weight: 600; color: #fff; opacity: 0; transition: opacity 0.2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; background: rgba(43, 59, 255, 0.18); }
.cursor.is-view { width: 92px; height: 92px; background: var(--blue); }
.cursor.is-view span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: calc(150px + env(safe-area-inset-top)) var(--pad) 110px; }
.legal h1 { font-size: clamp(48px, 7vw, 96px); letter-spacing: -0.055em; line-height: 0.92; margin: 18px 0 40px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: rgba(17, 17, 17, 0.75); }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--blue); border-bottom: 1px solid rgba(43, 59, 255, 0.3); }
.nav--solid { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav--solid .logo-onblue { display: none; }
.nav--solid .logo-ink { display: block; }
.nav--solid .nav__cta { background: var(--blue); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
