:root {
  --bg: #050607;
  --bg-2: #0b0d10;
  --panel: #11151a;
  --ink: #f4f1ea;
  --muted: #9a958c;
  --line: rgba(244, 241, 234, 0.12);
  --accent: #e8a87c;
  --accent-2: #3db8a8;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", sans-serif;
  font-size: 1.02rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(5, 6, 7, 0.72);
  border-bottom: 1px solid transparent;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.45rem;
  object-fit: cover;
  background: #fff;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.06);
  color: var(--ink) !important;
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-cta:hover {
  background: rgba(244, 241, 234, 0.12);
  border-color: rgba(244, 241, 234, 0.28);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 3.5rem;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero-dark.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: drift 20s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 70% 40%, rgba(232, 168, 124, 0.22), transparent 55%),
    radial-gradient(55% 45% at 20% 70%, rgba(61, 184, 168, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.35) 0%, rgba(5, 6, 7, 0.72) 55%, #050607 100%);
}

.hero-copy {
  max-width: 48rem;
  padding-top: 7rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 11vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: lowercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 22ch;
  color: #ddd8cf;
}

.hero-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: rgba(244, 241, 234, 0.92);
  color: #0b0d10;
}

.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.04);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(244, 241, 234, 0.3);
  background: rgba(244, 241, 234, 0.08);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #07090b;
}

@media (min-width: 800px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact {
  padding: 1.25rem 1.1rem;
  border-right: 1px solid var(--line);
}

.facts .fact:nth-child(2n) {
  border-right: 1px solid var(--line);
}

@media (min-width: 800px) {
  .facts .fact:nth-child(4n) {
    border-right: 0;
  }
}

@media (max-width: 799px) {
  .facts .fact:nth-child(2n) {
    border-right: 0;
  }

  .facts .fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

.fact dt {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.fact dd {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 560;
}

.panel {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.panel-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
}

.panel-ai .panel-visual {
  background-image: url("../img/ai.jpg");
  filter: brightness(0.45) saturate(0.85);
}

.panel-product .panel-visual {
  background-image: url("../img/probe.jpg");
  filter: brightness(0.55) saturate(0.9);
}

.panel-mobile .panel-visual {
  background-image: url("../img/mobile.jpg");
  filter: brightness(0.4) saturate(0.8);
}

.panel-web .panel-visual {
  background-image: url("../img/web.jpg");
  filter: brightness(0.38) saturate(0.75);
}

.panel-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.55) 48%, rgba(5, 6, 7, 0.3) 100%),
    linear-gradient(180deg, transparent 0%, rgba(5, 6, 7, 0.85) 100%);
}

.panel-product .panel-veil {
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(232, 168, 124, 0.18), transparent 55%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.9) 0%, rgba(5, 6, 7, 0.45) 55%, rgba(5, 6, 7, 0.25) 100%),
    linear-gradient(180deg, transparent 20%, rgba(5, 6, 7, 0.88) 100%);
}

.panel-copy {
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: lowercase;
}

.panel p {
  margin: 0 0 1.25rem;
  color: #b7b2a8;
  max-width: 44ch;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.list li {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(244, 241, 234, 0.03);
  color: #cfcabe;
  font-size: 0.95rem;
}

.stack {
  padding: 3.25rem 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.stack-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 860px) {
  .stack-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 1rem;
  }
}

.stack-intro h2 {
  margin: 0 0 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.stack-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

.tile {
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(244, 241, 234, 0.05), rgba(244, 241, 234, 0.015));
  min-height: 100%;
}

.tile h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact {
  padding: 3.5rem 0;
  background:
    radial-gradient(50% 60% at 80% 30%, rgba(232, 168, 124, 0.14), transparent 60%),
    #050607;
  border-bottom: 1px solid var(--line);
}

.contact-box {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(244, 241, 234, 0.03);
}

@media (min-width: 800px) {
  .contact-box {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: 1.75rem 1.8rem;
  }
}

.contact h2 {
  margin: 0 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.contact p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.site-footer {
  padding: 2.5rem 0 1.75rem;
  background: #050607;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.footer-brand img {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.4rem;
  object-fit: cover;
  background: #fff;
}

.footer-brand strong {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  font-weight: 600;
}

.footer-note,
.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-label {
  margin: 0 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

.legal {
  padding: 3.5rem 0 4rem;
}

.legal h1 {
  margin: 0 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.legal .updated,
.legal p,
.legal li {
  color: var(--muted);
}

.legal h2 {
  margin: 1.75rem 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal ul {
  padding-left: 1.1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in,
.hero .reveal {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  animation: rise 0.85s var(--ease) forwards;
}

.hero .d1 { animation-delay: 0.1s; opacity: 0; }
.hero .d2 { animation-delay: 0.2s; opacity: 0; }
.hero .d3 { animation-delay: 0.3s; opacity: 0; }

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

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1%, -1%, 0); }
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .panel {
    min-height: 78svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .hero .reveal {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
