:root {
  --bg: #f4f1ea;
  --surface: #fffcf7;
  --surface-2: #ece7dc;
  --soft: #fffcf7;
  --line: rgba(28, 22, 16, 0.1);
  --line-strong: rgba(28, 22, 16, 0.18);
  --text: #1c1610;
  --muted: rgba(28, 22, 16, 0.62);
  --dim: rgba(28, 22, 16, 0.4);
  --accent-rgb: 253, 92, 1;
  --accent: rgb(var(--accent-rgb));
  --accent-bright: #ff7a33;
  --accent-soft: rgba(var(--accent-rgb), 0.1);
  --accent-line: rgba(var(--accent-rgb), 0.45);
  --on-accent: #fff8f3;
  --shadow: 0 20px 40px -28px rgba(28, 22, 16, 0.22);
  --shadow-hover: 0 22px 48px -20px rgba(var(--accent-rgb), 0.28);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --header: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

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

a {
  color: inherit;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: var(--header);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(244, 241, 234, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 44px;
  object-fit: contain;
}

.nav {
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before {
  top: -5px;
}

.burger::after {
  top: 5px;
}

.nav-open .burger {
  background: transparent;
}

.nav-open .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 22px -10px rgba(var(--accent-rgb), 0.7);
}

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

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: shine 0.9s var(--ease);
}

.btn-shine::after {
  animation: shine 1s var(--ease) 1.6s, shine-loop 5s var(--ease) 3s infinite;
}

@keyframes shine {
  to {
    transform: translateX(120%);
  }
}

@keyframes shine-loop {
  0%,
  72% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

[data-magnetic] {
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.35s var(--ease);
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

/* Hero */

.intro {
  position: relative;
  overflow: hidden;
  padding: 104px 0 0;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: -64px 0 0;
  background-image:
    linear-gradient(to right, rgba(var(--accent-rgb), 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--accent-rgb), 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  animation: grid-pan 18s linear infinite;
}

@keyframes grid-pan {
  to {
    transform: translateY(64px);
  }
}

.hero-beam {
  position: absolute;
  top: -260px;
  width: 520px;
  height: 1100px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.26), transparent 62%);
  filter: blur(24px);
  opacity: 0;
}

.hero-beam-left {
  left: 50%;
  margin-left: -720px;
  transform: rotate(-32deg);
  animation: beam-in 2s var(--ease) 0.2s forwards, beam-sway-left 9s ease-in-out 2.2s infinite;
}

.hero-beam-right {
  right: 50%;
  margin-right: -720px;
  transform: rotate(32deg);
  animation: beam-in 2s var(--ease) 0.4s forwards, beam-sway-right 9s ease-in-out 2.4s infinite;
}

@keyframes beam-in {
  from {
    opacity: 0;
    translate: 0 -80px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes beam-sway-left {
  0%,
  100% {
    opacity: 1;
    transform: rotate(-32deg);
  }
  50% {
    opacity: 0.7;
    transform: rotate(-26deg);
  }
}

@keyframes beam-sway-right {
  0%,
  100% {
    opacity: 1;
    transform: rotate(32deg);
  }
  50% {
    opacity: 0.7;
    transform: rotate(26deg);
  }
}

.hero-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.18), transparent);
}

.intro-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  line-height: 1;
  color: var(--muted);
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  max-width: 14em;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
}

h1 span:not(.word),
h2 span {
  color: var(--accent);
}

h1 span:not(.word) {
  text-shadow: 0 0 48px rgba(var(--accent-rgb), 0.45);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}

.lead {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.rail {
  position: relative;
  margin-top: 88px;
  padding: 28px 0 40px;
  text-align: center;
}

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.sites {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 48px;
  margin: 22px 0 0;
  padding: 0;
}

.sites li {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s;
}

.sites li:hover {
  color: var(--text);
}

.sites img {
  width: auto;
  height: 36px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.sites li:hover img {
  filter: none;
  opacity: 1;
}

/* Sections */

.block {
  padding: 96px 0;
}

.block + .block {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 44px;
}

.dek {
  max-width: 34rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

/* Telas */

.telas-head {
  margin-inline: auto;
  text-align: center;
}

.device-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 40px 48px;
  text-align: center;
}

.device-row li {
  flex: 0 0 auto;
  min-width: 0;
}

.device-row h3 {
  margin: 22px 0 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.frame {
  position: relative;
  margin-inline: auto;
}

.glass {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb), 0.18), transparent 62%),
    #070b10;
}

.frame-phone,
.frame-tablet,
.frame-pc .monitor {
  border: 1px solid var(--line-strong);
  background: #111;
  box-shadow:
    0 28px 56px -32px rgba(var(--accent-rgb), 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.frame-phone {
  width: 108px;
  aspect-ratio: 9 / 19.5;
  height: auto;
  padding: 6px;
  border-radius: 26px;
  border-width: 3px;
  border-color: #1c1c1c;
}

.frame-phone .glass {
  border-radius: 20px;
}

.frame-phone .notch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 1;
  width: 38px;
  height: 10px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.frame-phone .home {
  position: absolute;
  bottom: 11px;
  left: 50%;
  z-index: 1;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.frame-tablet {
  width: 168px;
  aspect-ratio: 3 / 4;
  height: auto;
  padding: 10px;
  border-radius: 20px;
}

.frame-tablet .glass {
  border-radius: 12px;
}

.frame-pc {
  width: 248px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frame-pc .monitor {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  padding: 8px 8px 18px;
  border-radius: 12px;
}

.frame-pc .monitor .glass {
  border-radius: 6px;
}

.frame-pc .cam {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3a3a;
  box-shadow: inset 0 0 0 1.5px #222;
  transform: translateX(-50%);
}

.frame-pc .neck {
  width: 42px;
  height: 26px;
  margin-top: -1px;
  background: linear-gradient(#3a3a3a, #1d1d1d);
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}

.frame-pc .base {
  width: 108px;
  height: 8px;
  margin-top: -2px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(#2a2a2a, #151515);
  box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.55);
}

/* O que está incluso */

.features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.features li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.features li:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--accent-soft);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.features li:hover .feature-icon {
  border-color: var(--accent);
  transform: translateY(-3px) rotate(-4deg);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.features p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Como funciona */

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52vh;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.4s, border-color 0.4s;
}

.flow-step.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.flow-copy {
  display: flex;
  flex-direction: column;
}

.flow-num {
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.flow-step h3 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.flow-step p {
  max-width: 30em;
  color: var(--muted);
}

/* Projects */

.projects {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 18px;
  height: 100%;
  min-height: 116px;
  padding: 18px 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.project:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-hover);
}

.project:active {
  transform: scale(0.985);
}

.project-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.project:hover .project-logo {
  transform: scale(1.08) rotate(-3deg);
}

.project-plus {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 4px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.5s var(--ease), color 0.3s, border-color 0.3s;
}

.project-next:hover .project-plus {
  transform: rotate(90deg);
  color: var(--accent);
  border-color: var(--accent);
}

.project-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.project-tag {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.projects h3 {
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.projects p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.project-chevron {
  justify-self: end;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--dim);
  border-right: 1.5px solid var(--dim);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease), border-color 0.2s;
}

.project:hover .project-chevron {
  border-color: var(--text);
  transform: translateX(3px) rotate(45deg);
}

.project-last .project {
  border-color: var(--accent-line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--accent-rgb), 0.14), transparent 60%),
    var(--surface);
}

.project-last .project-plus {
  border-color: var(--accent-line);
  color: var(--accent);
}

.project-last h3 {
  font-size: 1.22rem;
}

.js [data-scroll-in] > li {
  --p: 1;
  --from-x: 0px;
  opacity: var(--p);
  transform:
    translate3d(calc((1 - var(--p)) * var(--from-x)), calc((1 - var(--p)) * 56px), 0)
    scale(calc(0.9 + 0.1 * var(--p)));
}

.js [data-scroll-in] > li:nth-child(odd) {
  --from-x: -48px;
}

.js [data-scroll-in] > li:nth-child(even) {
  --from-x: 48px;
}

.js [data-scroll-in] > .project-last {
  --from-x: 0px;
  transform: translate3d(0, calc((1 - var(--p)) * 40px), 0) scale(calc(0.6 + 0.4 * var(--p)));
}

.js [data-scroll-in] > .project-last .project {
  box-shadow:
    var(--shadow),
    0 0 calc(var(--p) * 70px) rgba(var(--accent-rgb), calc(var(--p) * 0.28));
}

/* Spotlight que segue o mouse */

.glow {
  position: relative;
  isolation: isolate;
}

.glow::before,
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.glow::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(var(--accent-rgb), 0.12), transparent 45%);
}

.glow::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(var(--accent-rgb), 0.9), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.glow:hover::before,
[data-spotlight]:hover .glow::after {
  opacity: 1;
}

/* Contact */

.contact {
  display: grid;
  justify-items: center;
  text-align: center;
}

.contact .dek {
  margin: 14px auto 32px;
}

.direct-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.direct-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 28px -10px rgba(var(--accent-rgb), 0.75);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.direct-list a:hover {
  background: var(--accent-bright);
}

.direct-list a.is-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.direct-list a.is-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.direct-list a:active {
  transform: scale(0.98);
}

.direct-list strong {
  font-weight: 500;
}

.direct-list a span:empty {
  display: none;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
  overflow: hidden;
}

.footer-mark {
  display: block;
  width: min(1100px, 100%);
  height: auto;
  margin: 0 auto -6%;
  user-select: none;
  pointer-events: none;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, #000 12%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 12%, transparent 92%);
}

/* Reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.js .reveal .stagger > * {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    filter 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms + 150ms);
}

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

.intro-copy > *,
.rail {
  animation: rise 0.8s var(--ease) both;
}

.intro-copy > h1 {
  animation: none;
}

.intro-copy > .lead {
  animation-delay: 0.55s;
}

.intro-copy > .intro-links {
  animation-delay: 0.7s;
}

.rail {
  animation-delay: 0.9s;
}

.word {
  display: inline-block;
  animation: blur-in 0.9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 0.1s);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes blur-in {
  from {
    opacity: 0;
    transform: translateY(0.35em);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .device-row {
    gap: 36px 28px;
  }

  .flow-step {
    min-height: 44vh;
  }

  .flow-step h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: grid;
  }

  .header-inner {
    gap: 12px;
  }

  .nav {
    flex: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    font-size: 1.05rem;
    color: var(--text);
  }

  .intro {
    padding-top: 72px;
  }

  .rail {
    margin-top: 64px;
  }

  .block {
    padding: 72px 0;
  }

  .hero-beam {
    width: 360px;
  }

  .hero-beam-left {
    margin-left: -460px;
  }

  .hero-beam-right {
    margin-right: -460px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1120px, calc(100% - 32px));
  }

  .logo-mark {
    width: 36px;
    height: 40px;
  }

  .features,
  .projects {
    grid-template-columns: 1fr;
  }

  .device-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .flow-step {
    min-height: 38vh;
  }

  .flow-step:last-child {
    min-height: 28vh;
  }

  .js [data-scroll-in] > li:nth-child(n) {
    --from-x: 0px;
  }

  .sites {
    gap: 16px 14px;
  }

  .sites li {
    font-size: 0;
  }

  .sites li.is-text {
    font-size: 0.82rem;
  }

  .sites img {
    height: 32px;
    max-width: 64px;
  }

  .project {
    grid-template-columns: 56px minmax(0, 1fr) 16px;
    gap: 14px;
    padding: 16px 18px 16px 14px;
  }

  .project-logo {
    width: 56px;
    height: 56px;
  }
}

@media (hover: none) {
  .glow::before,
  .glow::after {
    display: none;
  }
}

@media (hover: none), (max-width: 700px) {
  .header {
    background: rgba(244, 241, 234, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-beam {
    filter: none;
  }

  .hero-beam-left {
    animation: beam-in 2s var(--ease) 0.2s forwards;
  }

  .hero-beam-right {
    animation: beam-in 2s var(--ease) 0.4s forwards;
  }

  .intro-copy > *,
  .rail,
  .word {
    animation-name: rise-light;
  }

  .js .reveal,
  .js .reveal .stagger > * {
    filter: none;
  }
}

@keyframes rise-light {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-beam {
    opacity: 1;
  }

  .js .reveal,
  .js .reveal .stagger > * {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
