:root {
  --bg: #fbf8f3;
  --surface: #f3eee6;
  --accent: #d9480f;
  --accent-hover: #b93d0c;
  --accent-soft: rgba(217, 72, 15, 0.1);
  --accent-line: rgba(217, 72, 15, 0.3);
  --secondary: #0f766e;
  --text: #1c1917;
  --text-muted: #5f5852;
  --success: #0f766e;
  --border: #e6dfd4;
  --dark: #1c1917;
  --dark-surface: #292524;
  --dark-border: #44403c;

  --max-width: 1200px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-tag: 6px;
  --gutter: 24px;
  --section-y: 112px;
  --header-h: 72px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 56px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

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

h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-y) 0;
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 16px;
}

.lead {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(217, 72, 15, 0.7);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

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

.btn--light {
  background: #fff;
  color: var(--dark);
}

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

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn--lg {
  padding: 16px 32px;
}

.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s;
}

.link-ghost:hover {
  border-bottom-color: currentColor;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 12px 16px 0;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
  max-width: 1080px;
  padding: 0 12px 0 20px;
  background: rgba(251, 248, 243, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.header.is-scrolled .header__inner {
  background: rgba(251, 248, 243, 0.92);
  box-shadow: 0 12px 32px -18px rgba(28, 25, 23, 0.35);
}

.header .btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.2s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: -72px;
  padding: 176px 0 112px;
  background: var(--bg);
}

.hero::before,
.hero::after,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(620px circle at var(--mx, 76%) var(--my, 38%), rgba(217, 72, 15, 0.16), transparent 70%);
  mask-image: linear-gradient(#000 55%, transparent);
}

.hero::after {
  inset: -20%;
  background:
    radial-gradient(34% 38% at 6% 42%, rgba(15, 118, 110, 0.12), transparent 70%),
    radial-gradient(30% 34% at 88% 8%, rgba(217, 72, 15, 0.1), transparent 70%);
  mask-image: linear-gradient(#000 45%, transparent 75%);
}

.hero--page::after {
  display: none;
}

.hero .mockups {
  transform: translate(calc(var(--px, 0) * -28px), calc(var(--py, 0) * -18px));
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.hero__copy h1 {
  max-width: 680px;
  margin-bottom: 24px;
}

.hero__copy .lead {
  max-width: 560px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero--page {
  padding: 160px 0 88px;
  background: var(--bg);
  text-align: center;
}

.hero--page .lead {
  max-width: 640px;
  margin: 24px auto 0;
}

/* ---------- Device mockups ---------- */

.mockups {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
}

.device {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  padding: 9px;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: 32px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 60px -24px rgba(28, 25, 23, 0.55);
}

.device--tall {
  width: 224px;
  transform: translateY(-28px);
}

.device__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 62px;
  height: 16px;
  transform: translateX(-50%);
  background: var(--dark);
  border-radius: 999px;
}

.device__screen {
  position: relative;
  aspect-ratio: 9 / 19.2;
  border-radius: 24px;
  overflow: hidden;
  background: #17130f;
}

.device__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- App screens (CSS-drawn) ---------- */

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 11px 10px;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0;
}

.app--dark {
  background: linear-gradient(170deg, #26201c, #17130f);
  color: #f5f1ea;
}

.app--light {
  background: #fbf8f3;
  color: var(--text);
}

.app h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app small {
  display: block;
  font-size: 7.5px;
  color: #a39c94;
}

.app--dark small {
  color: #a8a29e;
}

.app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 12px;
  font-size: 8px;
  font-weight: 700;
}

.app__status-icons {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.app__signal,
.app__battery {
  display: inline-block;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.app__signal {
  width: 8px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.app__battery {
  width: 13px;
  border-radius: 2px;
  opacity: 0.9;
}

.app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.app__eyebrow {
  margin: 0 0 1px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.app__fab {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.app__back {
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
}

.app__summary {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.app__summary > div {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}

.app__summary > div + div {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.app__summary span {
  display: block;
  font-size: 7px;
  opacity: 0.7;
}

.app__summary strong {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app__list,
.app__lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.app__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.app__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
}

.app__row-main {
  flex: 1;
  min-width: 0;
}

.app__row-main strong,
.app__row-end strong {
  display: block;
  font-size: 8.5px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app__row-end {
  flex: 0 1 auto;
  min-width: 0;
  text-align: right;
}

.app__chip {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 6.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app__chip--paid {
  background: #dcf3ec;
  color: #0b5d56;
}

.app__chip--sent {
  background: #fdebdd;
  color: #a8360b;
}

.app__chip--overdue {
  background: #fde2e2;
  color: #b42318;
}

.app__tabs {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 8px 2px 0;
  border-top: 1px solid var(--border);
  font-size: 7px;
  font-weight: 600;
  color: #a39c94;
}

.app__tabs .is-active {
  color: var(--accent);
}

.app__client {
  padding: 8px 9px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app__client strong {
  display: block;
  font-size: 9px;
}

.app__lines li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app__lines strong {
  display: block;
  font-size: 8.5px;
}

.app__totals {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
}

.app__totals div {
  display: flex;
  justify-content: space-between;
}

.app__totals dt {
  color: #a8a29e;
}

.app__totals dd {
  margin: 0;
}

.app__grand {
  margin-top: 3px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
}

.app__grand dt {
  color: #fff;
}

.app__grand dd {
  color: #ff9c6b;
}

.app__button {
  display: block;
  margin-top: auto;
  padding: 8px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
}

.app--mini .app__list li {
  padding: 5px 0;
}

.app--mini .app__eyebrow {
  text-transform: none;
  letter-spacing: 0;
  font-size: 7.5px;
}

.app--mini .app__summary strong {
  font-size: 10px;
}

/* ---------- Trust strip ---------- */

.trust {
  padding: 32px 0;
  border-block: 1px solid var(--border);
  text-align: center;
}

.trust__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: var(--gutter);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card {
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.card--link:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -24px rgba(217, 72, 15, 0.4);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 10px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .link-ghost {
  margin-top: 20px;
  align-self: flex-start;
  font-size: 0.9rem;
}

.center-cta {
  margin-top: 48px;
  text-align: center;
}

/* ---------- Split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.split--reverse .split__visual {
  order: -1;
}

.split__copy h2 {
  margin-bottom: 20px;
}

.split__copy > p {
  color: var(--text-muted);
}

/* ---------- Check list ---------- */

.checklist {
  display: grid;
  gap: 4px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist__mark {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--success);
  font-weight: 700;
}

/* ---------- Featured project ---------- */

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  padding: 5px 12px;
  border-radius: var(--radius-tag);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.featured__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gutter);
  counter-reset: step;
}

.steps--3 {
  grid-template-columns: repeat(3, 1fr);
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px;
  left: 0;
  padding-right: 14px;
  background: var(--bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: translateY(-50%);
}

.section--surface .step::before {
  background: var(--surface);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Quote ---------- */

.quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.quote::before {
  content: "“";
  display: block;
  margin-bottom: 8px;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent);
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 88px 0;
  text-align: center;
  background: linear-gradient(135deg, #a8360b, #d9480f 60%, #f0662a);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.2), transparent 70%);
}

.cta-band > .container {
  position: relative;
}

.cta-band h2 {
  margin-bottom: 16px;
  color: #fff;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band .link-ghost {
  color: #fff;
}

/* ---------- Anchor tabs / filters ---------- */

.pillbar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  padding: 16px 0;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.pillbar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  padding: 9px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.pill:hover {
  color: var(--text);
  border-color: var(--accent);
}

.pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Services ---------- */

.service {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}

.deliverables {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.deliverables li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.bestfor {
  padding: 18px 20px;
  margin-bottom: 32px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-tag);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.bestfor strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.usertypes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.process-card {
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.process-card .steps {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.process-card .step::before {
  background: var(--surface);
}

/* ---------- Portfolio ---------- */

.project-card__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  margin: -32px -32px 24px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(240, 102, 42, 0.5), transparent 70%),
    var(--dark);
}

.project-card__thumb {
  align-items: end;
  overflow: hidden;
}

.project-card__thumb .device {
  width: 150px;
  padding: 7px;
  border-radius: 24px;
  box-shadow: none;
  transform: translateY(28px);
}

.project-card__thumb .device__screen {
  border-radius: 18px;
}

.project-card__thumb .device__notch {
  top: 12px;
  width: 46px;
  height: 12px;
}

.project-card__thumb .app {
  font-size: 8px;
}

.project-card__meta {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

[hidden] {
  display: none !important;
}

.results {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.results li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.subhead {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.casestudy__body > * + .subhead {
  margin-top: 28px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
  gap: 64px;
}

.form {
  display: grid;
  gap: 24px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.field {
  display: grid;
  gap: 8px;
}

.field--half {
  grid-template-columns: 1fr;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field label,
.fieldset legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.field label .opt,
.fieldset legend .opt {
  margin-left: 6px;
  font-weight: 400;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.18s;
}

.field textarea {
  resize: vertical;
  min-height: 118px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a39c94;
}

.fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.fieldset legend {
  padding: 0;
  margin-bottom: 14px;
}

.choices {
  display: grid;
  gap: 10px;
}

.choices--cols {
  grid-template-columns: 1fr 1fr;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

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

.form__note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.form__status {
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #15803d;
  font-size: 14.5px;
}

.form__status--error {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

.form__status[hidden] {
  display: none;
}

.info-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.info-card + .info-card {
  margin-top: 24px;
}

.info-card h3 {
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.info-list {
  display: grid;
  gap: 16px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.info-list strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.footer {
  padding: 72px 0 32px;
  background: var(--dark);
  color: #d6d3cf;
  border-top: 1px solid var(--dark-border);
}

.footer .logo {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px var(--gutter);
}

.footer__tagline {
  margin-top: 16px;
  color: #a8a29e;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer h3 {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.footer ul {
  display: grid;
  gap: 12px;
}

.footer a:not(.logo) {
  color: #a8a29e;
  font-size: 0.95rem;
  transition: color 0.18s;
}

.footer a:not(.logo):hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  color: #a8a29e;
  font-size: 0.9rem;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

/* ---------- App pages ---------- */

.app-hero__tags {
  margin: 20px 0 0;
}

.app-hero__name {
  margin: -12px 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.app-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-links a:hover {
  color: var(--accent);
}

.prose h4 {
  margin: 24px 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.app-hero__badges {
  margin-top: 24px;
}

.app-hero .hero__actions {
  margin-top: 28px;
}

.card h3 a {
  color: inherit;
}

.card h3 a:hover {
  color: var(--accent);
}

.hero--page .section-label a:hover {
  text-decoration: underline;
}

/* ---------- Rich text ---------- */

.prose {
  max-width: 760px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--text-muted);
}

.prose h2,
.prose h3 {
  margin: 40px 0 14px;
}

.prose h3 {
  font-size: 1.3rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.prose li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.prose strong {
  color: var(--text);
}

/* ---------- Stats strip ---------- */

.stats {
  padding: 0 0 8px;
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 50px -30px rgba(28, 25, 23, 0.35);
  transform: translateY(-48px);
  margin-bottom: -48px;
}

.stats__list li {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  border-left: 2px solid var(--accent-line);
}

.stats__list strong {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stats__list span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Store badges ---------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: var(--dark);
  color: #fff;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-btn);
  line-height: 1.1;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s, background 0.18s;
}

.store-badge small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2px;
}


.store-badge:hover {
  background: #2c2724;
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--soon {
  background: #e4f3f0;
  border: 1px solid #8fd0c5;
  color: #0b5d56;
}

.project-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: auto;
  padding-top: 20px;
}

.project-card__foot .link-ghost {
  margin-top: 0;
}

.featured__badges {
  margin-top: 24px;
}

.featured h2 {
  margin-top: 4px;
}

.trust__list li {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  :root {
    --section-y: 72px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: rgba(251, 248, 243, 0.98);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 48px -24px rgba(28, 25, 23, 0.35);
  }

  .nav.is-open > * {
    animation: rise 0.5s var(--ease) backwards;
  }

  .nav.is-open > :nth-child(2) { animation-delay: 0.04s; }
  .nav.is-open > :nth-child(3) { animation-delay: 0.08s; }
  .nav.is-open > :nth-child(4) { animation-delay: 0.12s; }
  .nav.is-open > :nth-child(5) { animation-delay: 0.16s; }

  .header__inner {
    padding: 0 8px 0 16px;
  }

  .header .nav .btn {
    padding: 13px 24px;
    font-size: 16px;
  }

  .nav:not(.is-open) {
    display: none;
  }

  .nav__link {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav .btn {
    margin-top: 20px;
    justify-content: center;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__grid,
  .split,
  .featured,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .split--reverse .split__visual {
    order: 0;
  }

  .grid--4,
  .stats__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__list {
    transform: none;
    margin: 32px 0 0;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px var(--gutter);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --section-y: 56px;
  }

  body {
    font-size: 16px;
  }

  .hero {
    padding: 128px 0 72px;
  }

  .grid--4,
  .grid--3,
  .grid--2,
  .stats__list,
  .steps,
  .steps--3,
  .process-card .steps,
  .field-row,
  .choices--cols,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .featured,
  .process-card {
    padding: 28px;
  }

  .form {
    padding: 24px;
  }

  .device--tall {
    transform: none;
  }

  .mockups {
    gap: 16px;
  }

  .device {
    width: 158px;
  }

  .device--tall {
    width: 176px;
  }

  .footer__bottom {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Tagline ---------- */

.tagline {
  padding: var(--section-y) 0;
}

.tagline__text {
  max-width: 900px;
  font-size: clamp(1.875rem, 4.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tagline__text.is-split span {
  color: color-mix(in srgb, var(--text) 28%, transparent);
  transition: color 0.6s var(--ease);
}

.tagline__text.is-split span.is-on {
  color: var(--text);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from {
      opacity: 0;
      filter: blur(6px);
      transform: translateY(32px);
    }
  }

  @keyframes float {
    to {
      translate: 0 -10px;
    }
  }

  @keyframes drift {
    to {
      transform: translate(6%, -5%) rotate(8deg) scale(1.12);
    }
  }

  @keyframes caret {
    50%,
    100% {
      opacity: 0;
    }
  }

  .hero::after {
    animation: drift 16s ease-in-out infinite alternate;
  }

  .hero__copy > h1.is-typing {
    animation: none;
  }

  .is-typing .char {
    position: relative;
    opacity: 0;
  }

  .is-typing .char.is-on {
    opacity: 1;
  }

  .is-typing .char.is-caret::after {
    content: "";
    position: absolute;
    top: 0.12em;
    bottom: 0.12em;
    right: -0.1em;
    width: 0.06em;
    background: var(--accent);
    animation: caret 0.8s steps(1) 4 forwards;
  }

  .hero__copy > *,
  .hero__visual {
    animation: rise 0.9s var(--ease) backwards;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 0.1s;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 0.2s;
  }

  .hero__visual {
    animation-delay: 0.3s;
  }

  .hero .device {
    animation: float 5s ease-in-out infinite alternate;
  }

  .hero .device--tall {
    animation-delay: -2.5s;
  }

  .reveal:not(.is-visible) {
    opacity: 0;
  }

  .reveal.is-visible {
    animation: rise 0.9s var(--ease) var(--reveal-delay, 0s) backwards;
  }
}
