.page-home {
  --s: min(1px, calc(100vw / 1440));
  --bg: #edebe5;
  --k: #0e0e10;
  --r: #b51f24;
  --grey: #6b6b70;
  --rule: rgba(14, 14, 16, 0.2);
  background: var(--bg);
  color: #000;
}
.page-home .site-header {
  --nav-bg: color-mix(in srgb, var(--bg) 97%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

html.is-booted .boot { display: none; }
.boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 42px;
  background: var(--bg);
  transition: opacity 0.4s ease;
}
.boot.is-done { opacity: 0; pointer-events: none; }
.boot-logo { width: 320px; height: auto; }
.boot-row { display: flex; align-items: center; gap: 12px; }
.boot-legal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0 24px 32px;
  text-align: center;
  color: var(--grey);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.boot-track {
  display: block;
  width: 220px;
  height: 2px;
  background: #0e0e10;
}
.boot-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--r);
}
.boot-num {
  min-width: 1.6em;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.h { width: min(1440px, 100%); margin-inline: auto; }
.h-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Hero */
.h-hero { position: relative; padding: calc(60 * var(--s)) calc(64 * var(--s)) 0; }
.h-kicker {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.h-flower {
  position: relative;
  width: calc(420 * var(--s));
  margin: calc(-26 * var(--s)) auto 0;
}
.h-flower .flower {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  visibility: hidden;
  mix-blend-mode: multiply;
  cursor: grab;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.h-flower.is-flat .flower { visibility: visible; }
.flower-3d { position: relative; z-index: 1; display: block; cursor: grab; touch-action: pan-y; }
.flower-3d.is-grabbing { cursor: grabbing; }
.h-flower.is-3d { user-select: none; -webkit-user-select: none; }
.h-shadow {
  position: absolute;
  left: calc(10 * var(--s));
  top: calc(470 * var(--s));
  width: calc(400 * var(--s));
  height: calc(60 * var(--s));
  border-radius: 50%;
  background: rgba(14, 14, 16, 0.18);
  filter: blur(calc(24 * var(--s)));
  transform-origin: center center;
  pointer-events: none;
}
.h-bloom {
  position: absolute;
  top: calc(420 * var(--s));
  left: calc(670 * var(--s));
  white-space: nowrap;
  color: var(--grey);
  font-size: 12px;
  transition: color 0.45s ease, opacity 0.45s ease;
}
.h-flower.is-3d:not(.is-used) .h-bloom { animation: h-bloom-hint 2.8s ease-in-out infinite; }
.h-flower.is-3d:hover .h-bloom { color: var(--k); }
.h-flower.is-blooming .h-bloom,
.h-flower.is-blooming:hover .h-bloom { color: var(--r); opacity: 1; animation: none; }
@keyframes h-bloom-hint {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 1; }
}
.h-mega {
  position: relative;
  z-index: 2;
  margin: calc(-10 * var(--s)) 0 0 calc(-28 * var(--s));
  font-size: calc(330 * var(--s));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.h-rule { margin: calc(30 * var(--s)) 0 0; border: 0; border-top: 1px solid var(--rule); }
.h-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: calc(20 * var(--s));
}
.h-intro p { margin-top: calc(10 * var(--s)); max-width: 540px; font-size: 20px; line-height: 1.45; }
.h-cta {
  flex: none;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--r);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.2s ease;
}
.h-cta:hover,
.h-book:hover,
.h-book:focus-visible { transform: scale(1.05); }

/* Manifesto */
.h-manifesto {
  display: grid;
  grid-template-columns: calc(236 * var(--s)) 1fr;
  padding: calc(130 * var(--s)) calc(64 * var(--s)) 0;
}
.h-manifesto .h-label { padding-top: 10px; }
.h-manifesto-text {
  max-width: 1010px;
  font-size: max(28px, calc(52 * var(--s)));
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Sections */
.h-section { padding: calc(190 * var(--s)) calc(64 * var(--s)) 0; }
.h-title {
  margin: calc(14 * var(--s)) 0 0;
  font-size: max(44px, calc(96 * var(--s)));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

/* Capabilities */
.h-caps {
  display: grid;
  grid-template-columns: 640fr 656fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
  margin-top: calc(34 * var(--s));
}
.cap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 32px;
  color: #000;
  background: #fff;
  min-height: calc(292 * var(--s));
  transition: transform 0.3s ease;
}
.cap:hover, .cap-sm:hover { transform: translateY(-4px); }
.cap-num { font-size: 14px; }
.cap-foot { position: absolute; left: 32px; bottom: 22px; display: flex; flex-direction: column; z-index: 1; }
.cap-foot b { font-size: calc(44 * var(--s)); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.cap-foot small { margin-top: 16px; font-size: 13px; color: var(--grey); }

.cap-apps {
  grid-row: 1 / span 2;
  min-height: calc(600 * var(--s));
  padding: 40px;
  color: #fff;
  background: linear-gradient(137deg, #0f1116, #2a2370);
}
.cap-apps .cap-foot { left: 40px; bottom: 35px; }
.cap-apps .cap-foot b { font-size: calc(64 * var(--s)); line-height: 0.95; letter-spacing: -0.04em; }
.cap-apps .cap-foot small,
.cap-apps .cap-icons { margin-top: 26px; color: rgba(199, 210, 254, 0.8); }
.cap-phone {
  position: absolute;
  left: calc(370 / 640 * 100%);
  top: calc(60 / 600 * 100%);
  width: calc(230 / 640 * 100%);
  aspect-ratio: 230 / 470;
  padding: 12px;
  border-radius: 42px;
  background: #0d0f11;
  box-shadow: 0 20px 48px rgba(79, 70, 229, 0.4);
}
.cap-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.cap-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--grey);
}
.cap-icons svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cap-browser {
  position: absolute;
  left: calc(340 / 656 * 100%);
  top: calc(40 / 292 * 100%);
  width: calc(290 / 656 * 100%);
  height: calc(220 / 292 * 100%);
  border-radius: 14px;
  background: var(--k);
}
.cap-browser i { position: absolute; left: 14px; top: 10px; font-style: normal; font-size: 12px; color: #808085; }
.cap-browser em {
  position: absolute;
  left: 12px; right: 12px; top: 36px;
  height: calc(120 / 220 * 100%);
  border-radius: 8px;
  background: linear-gradient(90deg, #b51f24, #40404d);
}

.cap-erp { background: var(--r); color: #fff; }
.cap-erp .cap-foot small { color: rgba(255, 255, 255, 0.75); }
.cap-bars {
  position: absolute;
  right: calc(40 / 656 * 100%);
  bottom: calc(32 / 292 * 100%);
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: calc(220 / 292 * 100%);
}
.cap-bars i { width: calc(36 * var(--s)); min-width: 18px; border-radius: 6px; }
.cap-bars i:nth-child(1) { height: 36%; background: rgba(14,14,16,.35); }
.cap-bars i:nth-child(2) { height: 55%; background: rgba(14,14,16,.5); }
.cap-bars i:nth-child(3) { height: 68%; background: rgba(14,14,16,.7); }
.cap-bars i:nth-child(4) { height: 86%; background: var(--k); }
.cap-bars i:nth-child(5) { height: 100%; background: #fff; }

.cap-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.cap-sm {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(200 * var(--s));
  padding: 32px 32px 34px;
  border-radius: 24px;
  background: #fff;
  color: #000;
  transition: transform 0.3s ease;
}
.cap-sm span { font-size: 14px; }
.cap-sm b { font-size: max(22px, calc(30 * var(--s))); font-weight: 500; }
.cap-sm-dark { background: var(--k); color: #fff; }
.cap-sm-dark span { color: #e54d4d; }

/* Work */
.h-work { padding-top: calc(144 * var(--s)); }
.h-work-head { display: flex; justify-content: space-between; align-items: center; }
.h-work-head a { margin-right: 23px; font-size: 15px; font-weight: 500; }
.h-rows { margin-top: calc(54 * var(--s)); border-top: 1px solid var(--rule); }
.h-row {
  position: relative;
  display: grid;
  grid-template-columns: calc(76 * var(--s)) 1fr calc(348 * var(--s)) 68px;
  align-items: center;
  min-height: calc(190 * var(--s));
  border-bottom: 1px solid var(--rule);
}
.h-row-num { align-self: start; padding-top: calc(44 * var(--s)); font-size: 14px; font-weight: 500; color: #999; }
.h-row-main b {
  display: block;
  font-size: max(40px, calc(96 * var(--s)));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: rgba(14, 14, 16, 0.35);
  transition: color 0.3s ease;
}
.h-row-main small { display: block; margin-left: 4px; font-size: 16px; color: rgba(107, 107, 112, 0.6); }
.h-row-meta { display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 500; color: rgba(14, 14, 16, 0.5); }
.h-row-meta small { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: rgba(107, 107, 112, 0.6); }
.h-arrow {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  font-size: 24px;
  color: rgba(14, 14, 16, 0.4);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.h-row.is-active .h-row-num,
.h-row.is-active .h-row-main b { color: var(--r); }
.h-row.is-active .h-row-main small { color: var(--grey); }
.h-row.is-active .h-row-meta { color: #000; }
.h-row.is-active .live { color: #219954; }
.h-row.is-active .h-arrow { background: var(--r); border-color: var(--r); color: #fff; }
.h-rows:hover .h-row.is-active:not(:hover) .h-row-num,
.h-rows:hover .h-row.is-active:not(:hover) .h-row-main b { color: rgba(14, 14, 16, 0.35); }
.h-rows:hover .h-row.is-active:not(:hover) .h-arrow { background: none; border-color: var(--rule); color: rgba(14,14,16,.4); }
.h-row:hover .h-row-num, .h-row:hover .h-row-main b { color: var(--r); }
.h-row:hover .h-row-meta { color: #000; }
.h-row:hover .h-arrow { background: var(--r); border-color: var(--r); color: #fff; }

.h-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: calc(150 * var(--s));
  padding-top: calc(40 * var(--s));
  border-top: 1px solid var(--rule);
}
.h-stats b { display: block; font-size: max(48px, calc(88 * var(--s))); font-weight: 500; line-height: 1.2; letter-spacing: -0.05em; }
.h-stats b.red { color: var(--r); }
.h-stats span { display: block; font-size: 15px; color: var(--grey); }

/* Footer */
.h-footer {
  margin-top: calc(110 * var(--s));
  padding: calc(100 * var(--s)) calc(64 * var(--s)) 0;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  background: var(--k);
  color: #fff;
  container-type: inline-size;
  container-name: footer;
}
.h-footer > *:not(.h-giant) { max-width: 1312px; margin-inline: auto; }
.h-footer .h-label { color: #e54d4d; }
.h-foot-top { display: flex; justify-content: space-between; align-items: flex-start; }
.h-foot-top h2 {
  margin: calc(24 * var(--s)) 0 0;
  font-size: max(52px, calc(120 * var(--s)));
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--bg);
}
.h-mail {
  display: inline-block;
  margin-top: calc(64 * var(--s));
  font-size: max(20px, calc(32 * var(--s)));
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  color: #e54d4d;
}
.h-book {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(220 * var(--s));
  height: calc(220 * var(--s));
  min-width: 150px;
  min-height: 150px;
  margin-top: calc(60 * var(--s));
  border-radius: 50%;
  background: var(--r);
  font-size: max(18px, calc(24 * var(--s)));
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s ease;
}
.h-foot-grid {
  display: grid;
  grid-template-columns: calc(336 * var(--s)) calc(630 * var(--s)) 1fr;
  margin-top: calc(80 * var(--s));
  padding-top: calc(40 * var(--s));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.h-foot-col { display: flex; flex-direction: column; font-size: 15px; line-height: 1.9; color: #bfbfc4; }
.h-foot-col a:hover { color: #fff; }
.h-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.h-social svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.9;
}
.h-foot-brand p { font-size: 13px; color: #808085; }
.h-foot-logo { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.h-foot-logo img { width: 56px; height: 56px; }
.h-foot-logo b { display: block; font-family: var(--serif); font-size: 38px; line-height: 1; }
.h-foot-logo small { display: block; margin: 4px 0 0 3px; font-size: 12px; letter-spacing: 0.7em; }
.h-giant {
  display: flex;
  justify-content: center;
  width: calc(100% + 2 * calc(64 * var(--s)));
  max-width: none;
  margin-top: calc(50 * var(--s));
  margin-bottom: calc(-40 * var(--s));
  margin-inline: calc(-64 * var(--s));
  /* Slightly oversized so side-bearings clip evenly on both edges */
  font-size: calc((100cqw + 2 * calc(64 * var(--s))) / 8.2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: #29292e;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .h-bloom { animation: none !important; transition: none; }
}

@media (max-width: 900px) {
  .page-home { --s: calc(100vw / 760); }
  .h-hero, .h-manifesto, .h-section, .h-footer { padding-inline: 20px; }
  .h-kicker { font-size: 11px; }
  .h-bloom { display: none; }
  .h-mega { margin-left: -6px; font-size: 23vw; }
  .h-intro { flex-direction: column; gap: 24px; }
  .h-intro p br { display: none; }
  .h-manifesto { grid-template-columns: 1fr; gap: 20px; padding-top: 80px; }
  .h-section { padding-top: 96px; }
  .h-caps { grid-template-columns: 1fr; }
  .cap-apps { grid-row: auto; min-height: 520px; }
  .cap { min-height: 260px; }
  .cap-foot b { font-size: 36px; }
  .cap-apps .cap-foot b { font-size: 48px; }
  .cap-apps .cap-phone { left: auto; right: 24px; width: 42%; }
  .cap-web .cap-browser, .cap-erp .cap-bars { opacity: 0.35; }
  .cap-row { grid-template-columns: 1fr; gap: 16px; }
  .cap-sm { min-height: 150px; }
  .h-row { grid-template-columns: 36px 1fr 52px; padding-block: 24px; gap: 8px; }
  .h-row-meta { display: none; }
  .h-arrow { width: 52px; height: 52px; font-size: 20px; }
  .h-stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; margin-top: 72px; }
  .h-footer { padding-top: 64px; margin-top: 80px; }
  .h-foot-top { flex-direction: column; gap: 32px; }
  .h-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .h-foot-brand { grid-column: 1 / -1; }
  .h-giant {
    width: calc(100% + 40px);
    margin-inline: -20px;
    font-size: calc((100cqw + 40px) / 8.35);
    margin-bottom: -2vw;
  }
}
