/* Layer — clean white page, bright accent hero with dot grid and straight edges,
   K2D type, black/white pill buttons, soft grey numbered cards. */
:root {
  --accent: #3ee0cf;
  --ink: #0b0b0b;
  --muted: #5b6066;
  --soft: #f3f4f5;
  --line: #e6e8ea;
  --white: #ffffff;
  --radius: 22px;          /* one corner radius for buttons, nav, cards, layers and logo */
  --font: "Nunito", system-ui, -apple-system, sans-serif;
  --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius); font-weight: 700; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / .14); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Nav (floating pill) ---------- */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px)); display: flex; align-items: center; gap: 28px;
  padding: 10px 10px 10px 22px; border-radius: var(--radius);
  /* Liquid glass: see-through tint, strong blur + saturation, light rim and
     an inner highlight on top, soft depth shadow below */
  background: linear-gradient(180deg, rgb(255 255 255 / .38), rgb(255 255 255 / .16));
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgb(255 255 255 / .55);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), inset 0 -1px 0 rgb(255 255 255 / .15), 0 8px 32px rgb(0 0 0 / .08);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: linear-gradient(180deg, rgb(255 255 255 / .55), rgb(255 255 255 / .3)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -1px 0 rgb(255 255 255 / .2), 0 10px 36px rgb(0 0 0 / .12); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 27px; letter-spacing: -.03em; line-height: 1; }
.mark { width: 34px; height: 34px; color: var(--ink); }
.brand.light, .brand.light .mark { color: var(--white); }
.nav-links { display: flex; gap: 26px; margin-right: auto; font-weight: 600; font-size: 15px; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; margin: 6px auto; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.nav.open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero, .closer {
  position: relative; background-color: var(--accent);
  background-image: radial-gradient(#ffffff38 1.6px, transparent 2px);
  background-size: 24px 24px;
}
.hero { padding: 150px 24px 120px; text-align: center; }
.hero-inner { max-width: 960px; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 30px; }
.badge { padding: 8px 18px; border-radius: var(--radius); background: rgb(255 255 255 / .35); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); font-weight: 600; font-size: 14px; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; margin-bottom: 40px; text-wrap: balance; }

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 110px max(24px, var(--sl)) 0 max(24px, var(--sr)); }
.section.narrow { max-width: 860px; }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 500; letter-spacing: -.015em; margin-bottom: 22px; text-wrap: balance; }
.center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; margin-bottom: 54px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }

/* Intro with the layer stack (the logo idea, explained) */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.stack { display: grid; gap: 14px; }
.layer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; border-radius: var(--radius); background: var(--soft);
  margin-left: calc(var(--i) * 28px); margin-right: calc((2 - var(--i)) * 28px);
  transition: transform .3s;
}
.layer:first-child { background: var(--accent); }
.layer:last-child { background: var(--ink); color: var(--white); }
.layer:last-child span { color: rgb(255 255 255 / .65); }
.layer strong { font-size: 20px; }
.layer span { font-size: 14px; color: var(--muted); text-align: right; }
.layer:hover { transform: translateX(6px); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; border-radius: var(--radius); background: var(--soft); transition: transform .25s, box-shadow .25s, background .25s; }
.card:hover { transform: translateY(-4px); background: var(--white); box-shadow: 0 0 0 1.5px var(--ink), 0 14px 30px rgb(0 0 0 / .07); }
.card-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.card h3 { font-size: 21px; line-height: 1.2; font-weight: 700; }
.num { font-weight: 800; color: var(--accent); filter: brightness(.8); font-size: 15px; }
.card p { color: var(--muted); font-size: 16px; }

/* Process band */
.band { max-width: none; background: var(--soft); padding-bottom: 110px; margin-top: 110px; border-radius: 48px; width: min(1360px, calc(100% - 32px)); }
.steps { list-style: none; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px; }
.step-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.people { display: grid; gap: 14px; }
.person { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); }
.person strong { display: block; font-size: 18px; }
.person span { color: var(--muted); font-size: 14.5px; }
.avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--accent) !important; font-weight: 800; font-size: 17px !important; }

/* Projects empty state */
.empty { max-width: 760px; margin: 0 auto; text-align: center; padding: 46px 32px; border-radius: var(--radius); border: 2px dashed var(--line); }
.empty p { color: var(--muted); font-size: 18px; margin-bottom: 26px; }
.link { display: inline-block; margin-top: 14px; font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 12px; padding-bottom: 130px; }
.qa { border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background .2s; }
.qa[open] { background: var(--soft); box-shadow: none; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.plus { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--white); translate: -50% -50%; transition: rotate .25s; }
.plus::after { rotate: 90deg; }
.qa[open] .plus { background: var(--accent); }
.qa[open] .plus::before, .qa[open] .plus::after { background: var(--ink); }
.qa[open] .plus::after { rotate: 0deg; }
.qa p { padding: 0 24px 22px; color: var(--muted); }

/* Closer + footer */
.closer { padding: 120px 24px 120px; text-align: center; }
.closer-inner { max-width: 820px; margin: 0 auto; }
.closer h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.closer p { font-size: 19px; margin-bottom: 34px; }
.footer { background: var(--ink); color: rgb(255 255 255 / .7); padding: 44px max(24px, var(--sl)) calc(44px + env(safe-area-inset-bottom, 0px)) max(24px, var(--sr)); font-size: 14.5px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.footer a:not(.brand):hover { color: var(--white); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .intro, .about { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 12px; flex-wrap: wrap; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav.open .nav-links { order: 3; display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 10px 8px 4px; font-size: 18px; }
  .nav.open .nav-cta { order: 4; display: inline-flex; width: 100%; margin: 4px 0 6px; }
  .hero { padding: 120px 20px 90px; }
  .badge { font-size: 13px; }
  .section { padding-top: 80px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .band { margin-top: 80px; padding-bottom: 80px; border-radius: 32px; width: calc(100% - 20px); }
  .layer { margin-left: calc(var(--i) * 14px); margin-right: calc((2 - var(--i)) * 14px); flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 20px; }
  .layer span { text-align: left; }
  .closer { padding: 90px 20px 90px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.nav.open { background: linear-gradient(180deg, rgb(255 255 255 / .82), rgb(255 255 255 / .7)); }

/* Layer stack: each step is tied to the scroll position (site.js sets --p
   from 0 to 1 as that layer moves up through the viewport). */
.stack .layer {
  --p: 0;
  opacity: var(--p);
  transform: translate(calc((1 - var(--p)) * -60px), calc((1 - var(--p)) * 30px)) scale(calc(.94 + var(--p) * .06));
  will-change: transform, opacity;
}
.stack .layer:hover { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .stack .layer { --p: 1 !important; transform: none; } }
