:root {
  color-scheme: light;
  --bg: #f4f0e8;
  --surface: #fffaf0;
  --surface-soft: #ebe5d8;
  --ink: #171717;
  --muted: #666052;
  --line: rgba(23, 23, 23, .16);
  --line-strong: rgba(23, 23, 23, .34);
  --primary: #171717;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --shadow: 12px 12px 0 rgba(23, 23, 23, .10);
  --shadow-soft: 6px 6px 0 rgba(23, 23, 23, .08);
  --radius: 18px;
  --container: 1160px;
  --app: #2563eb;
  --app-soft: #dbeafe;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, .10), transparent 26rem),
    radial-gradient(circle at 86% 8%, rgba(190, 24, 93, .10), transparent 24rem),
    linear-gradient(135deg, rgba(23, 23, 23, .035) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--bg);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, .86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 850;
}

.brand-mark,
.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.nav-links a,
.lang a,
.language-switch button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.lang a:hover,
.lang a:focus-visible,
.lang a.active,
.language-switch button:hover,
.language-switch button:focus-visible,
.language-switch button.active {
  background: rgba(255, 250, 240, .72);
  color: var(--ink);
  outline: none;
}

.nav-cta {
  border: 1px solid var(--line-strong);
  background: var(--ink) !important;
  color: #fff !important;
  box-shadow: var(--shadow-soft);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, .44);
}

.language-switch button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
}

.hero,
.section,
.final-section {
  padding: 74px 0;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr);
  align-items: center;
  gap: 56px;
}

.hero-intro {
  display: grid;
  grid-template-columns: auto minmax(240px, 520px) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 36px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, .62);
}

.hero-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.hero-intro .actions {
  margin-top: 0;
  justify-content: flex-end;
}

.app-orbit {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: stretch;
}

.orbit-card {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--app) 13%, transparent), transparent 9rem),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.orbit-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(23, 23, 23, .12);
  border-radius: 21px;
  pointer-events: none;
}

.orbit-cyclia {
  grid-column: 1 / span 5;
}

.orbit-levela {
  grid-column: 6 / span 4;
  margin-top: 34px;
}

.orbit-kosiq {
  grid-column: 10 / span 3;
  margin-top: -18px;
}

.orbit-card.is-paused {
  background: rgba(229, 222, 208, .68);
}

.orbit-index {
  color: color-mix(in srgb, var(--app) 68%, var(--ink));
  font-size: 13px;
  font-weight: 850;
}

.orbit-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}

.orbit-main h3 {
  margin-bottom: 2px;
  font-size: 28px;
}

.orbit-main p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--app) 35%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-soft) 75%, #fff);
  color: color-mix(in srgb, var(--app) 72%, #111);
  font-size: 13px;
  font-weight: 850;
}

h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(44px, 6.6vw, 80px);
  line-height: .96;
  letter-spacing: -.02em;
}

body > main > .hero:first-child h1 {
  text-wrap: balance;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.lead,
.section-head p,
.card p,
.muted {
  color: var(--muted);
}

.lead {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(23, 23, 23, .12);
  outline: none;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  border-color: rgba(23, 23, 23, .14);
  background: #e5ded0;
  color: #9a9282;
  box-shadow: none;
}

.button.disabled:hover,
.button[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.section-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--app);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--app) 16%, transparent);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.card {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, .82);
  box-shadow: var(--shadow);
}

.card.compact {
  padding: 20px;
}

.card.disabled {
  background: rgba(229, 222, 208, .72);
  box-shadow: none;
  opacity: .82;
}

.app-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.portfolio-list {
  display: grid;
  gap: 28px;
}

.portfolio-card {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portfolio-card.disabled {
  opacity: .78;
}

.portfolio-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.portfolio-copy h3 {
  margin: 14px 0 14px;
  font-size: clamp(42px, 5vw, 70px);
}

.portfolio-copy p {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
}

.portfolio-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--app) 22%, transparent), transparent 12rem),
    linear-gradient(135deg, color-mix(in srgb, var(--app-soft) 60%, #fff), #fffaf0);
}

.portfolio-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(23, 23, 23, .18);
  border-radius: 22px;
}

.portfolio-visual .app-icon {
  width: 148px;
  height: 148px;
  border-radius: 34px;
}

.app-map {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 18px;
}

.app-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--app-soft) 42%, #fffaf0), var(--surface));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-tile::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -86px;
  top: -86px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--app) 14%, transparent);
}

.app-tile > * {
  position: relative;
}

.tile-large {
  grid-column: 1 / span 7;
  grid-row: span 2;
  min-height: 430px;
}

.tile-tall {
  grid-column: 8 / span 5;
  grid-row: span 3;
  min-height: 590px;
}

.tile-paused {
  grid-column: 1 / span 7;
}

.tile-icon {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  align-self: flex-end;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 250, 240, .62);
  box-shadow: var(--shadow-soft);
}

.tile-icon img {
  width: 94px;
  height: 94px;
  border-radius: 24px;
}

.approach-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.approach-strip article {
  padding: 4px 0;
}

.approach-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.approach-strip p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.tile-tall .tile-icon {
  width: 180px;
  height: 180px;
  align-self: center;
  margin: auto 0;
}

.tile-tall .tile-icon img {
  width: 124px;
  height: 124px;
  border-radius: 28px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.app-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 23, 23, .10);
  border-radius: 22px;
  overflow: hidden;
  background: #e5ded0;
  box-shadow: 0 14px 30px rgba(23, 23, 23, .14);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--app) 26%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-soft) 70%, #fff);
  color: color-mix(in srgb, var(--app) 72%, #111);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.badge.neutral {
  border-color: rgba(23, 23, 23, .14);
  background: #e5ded0;
  color: #726a5c;
}

.feature-list,
.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.feature-list li,
.check-list li {
  display: flex;
  gap: 10px;
  color: #3d382f;
  font-size: 14px;
  font-weight: 650;
}

.feature-list li::before,
.check-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--app);
}

.microcopy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.showcase {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, .92), rgba(255, 250, 240, .68)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.showcase::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .12);
}

.showcase-grid {
  position: relative;
  display: grid;
  gap: 12px;
}

.mini-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 240, .86);
}

.mini-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.mini-row h3 {
  margin: 0 0 2px;
  font-size: 19px;
}

.phone-frame {
  max-width: 320px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background: #171717;
  box-shadow: var(--shadow);
}

.phone-screen {
  min-height: 520px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--app-soft) 42%, #fff) 0%, #fffaf0 44%);
  overflow: hidden;
}

.mock-section {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 240, .92);
}

.mock-section strong {
  display: block;
  margin-bottom: 4px;
}

.mock-section span,
.mock-section small {
  color: var(--muted);
  font-weight: 650;
}

.bar {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(23, 23, 23, .10);
  overflow: hidden;
}

.bar i {
  display: block;
  width: var(--w, 68%);
  height: 100%;
  border-radius: inherit;
  background: var(--app);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.shot img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.shot figcaption {
  margin-top: 12px;
  font-weight: 850;
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, .42);
}

.faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.faq details p {
  margin: 10px 0 0;
}

.doc {
  max-width: 820px;
}

.doc h1 {
  font-size: clamp(40px, 6vw, 70px);
}

.doc h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.doc h3 {
  margin-top: 26px;
}

.doc ul {
  color: var(--muted);
}

.final-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--ink);
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.final-panel p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 250, 240, .72);
}

.final-panel .button {
  border-color: rgba(255, 250, 240, .24);
  background: #fffaf0;
  color: var(--ink);
}

.final-panel .button.secondary {
  background: transparent;
  color: #fffaf0;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 750;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .final-panel,
  .portfolio-card {
    grid-template-columns: 1fr;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .hero-intro .actions {
    justify-content: flex-start;
  }

  .app-orbit,
  .app-map {
    grid-template-columns: 1fr;
  }

  .orbit-cyclia,
  .orbit-levela,
  .orbit-kosiq,
  .tile-large,
  .tile-tall,
  .tile-paused {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    min-height: 0;
  }

  .portfolio-visual {
    min-height: 260px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .grid-3,
  .grid-2,
  .gallery,
  .approach-strip {
    grid-template-columns: 1fr;
  }

  .app-card,
  .portfolio-card {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 70px;
  }

  [id] {
    scroll-margin-top: 70px;
  }

  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .nav {
    min-height: 0;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    flex: 0 1 132px;
    min-width: 0;
    gap: 9px;
    font-size: 15px;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-icon,
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .language-switch {
    align-self: flex-start;
    flex: 0 0 auto;
    padding: 2px;
  }

  .language-switch button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero,
  .section,
  .final-section {
    padding: 58px 0;
  }

  h1 {
    font-size: clamp(42px, 11vw, 58px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 50px);
  }

  .actions .button,
  .final-panel .button {
    width: 100%;
  }

  .mini-row {
    grid-template-columns: auto 1fr;
  }

  .mini-row .badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .portfolio-card,
  .portfolio-copy,
  .card,
  .app-tile {
    padding: 24px;
  }

  .studio-hero h1 {
    margin-bottom: 28px;
  }

  .orbit-card {
    min-height: 0;
  }

  .portfolio-visual {
    min-height: 230px;
  }

  .portfolio-visual .app-icon {
    width: 116px;
    height: 116px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
