:root {
  color-scheme: dark;
  --bg: #07090b;
  --bg-soft: #0c1013;
  --bg-warm: #100d08;
  --surface: #12171b;
  --surface-warm: #17130c;
  --surface-strong: #192126;
  --text: #f5f7f7;
  --muted: #abb5bc;
  --muted-strong: #c9d0d4;
  --ink: #0a0d0f;
  --paper: #f1f4f5;
  --paper-muted: #5c6870;
  --cyan: #52d5e4;
  --cyan-strong: #1bbbd0;
  --amber: #efbd45;
  --amber-light: #ffd66f;
  --amber-line: rgba(239, 189, 69, 0.32);
  --green: #4fdf92;
  --danger: #ff8b7c;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --focus: #94eaf3;
  --shell: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --header-height: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.quiz-open {
  overflow: hidden;
}

.home-document {
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

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

h1,
h2,
h3 {
  margin-bottom: 0;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--text);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: #080a0c;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: auto;
  margin-right: 10px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.brand-copy {
  display: grid;
  max-width: min(74vw, 390px);
  min-width: 0;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--amber-light);
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.22;
  text-wrap: pretty;
}

.brand-copy span {
  display: none;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  position: fixed;
  z-index: 40;
  top: calc(var(--header-height) + 8px);
  right: 16px;
  left: 16px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background: #090b0d;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(239, 189, 69, 0.08);
  color: var(--text);
}

.nav-cta {
  display: flex;
  width: auto;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(239, 189, 69, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.nav-cta span {
  font-size: 16px;
}

.nav-cta:hover {
  border-color: var(--amber);
  color: var(--amber-light);
}

.menu-toggle {
  display: inline-grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  border-color: var(--amber-line);
  color: var(--amber-light);
}

.home-hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(390px, 112vw, 440px);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 9, 11, 0.04) 0%, rgba(7, 9, 11, 0.12) 42%, rgba(7, 9, 11, 0.82) 72%, #07090b 100%),
    linear-gradient(90deg, rgba(7, 9, 11, 0.32), rgba(7, 9, 11, 0.02));
}

.hero-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  animation: portrait-in 700ms var(--ease-out) both;
}

.portrait-signature {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 0;
  align-items: flex-start;
  padding-block: 258px 20px;
}

.hero-copy {
  width: 100%;
}

.home-hero h1 {
  max-width: 700px;
  margin-bottom: 14px;
  font-size: clamp(1.95rem, 8.5vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 0.99;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 20px;
  color: #d2d8dc;
  font-size: 15px;
  line-height: 1.45;
}

.hero-actions {
  display: grid;
  gap: 8px;
}

.hero-primary-action {
  display: grid;
  gap: 6px;
}

.hero-cta-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(255, 214, 111, 0.36);
  background: linear-gradient(180deg, var(--amber-light) 0%, var(--amber) 100%);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(10, 13, 15, 0.2), 0 16px 34px rgba(239, 189, 69, 0.12);
}

.button-primary:hover {
  background: linear-gradient(180deg, #ffe08a 0%, #f0bf49 100%);
}

.button-dark {
  background: var(--ink);
  color: var(--text);
}

.button-dark:hover {
  background: #20272b;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  background: #ffffff;
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--amber-line);
  background: rgba(239, 189, 69, 0.08);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  text-underline-offset: 4px;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-top: 2px;
  color: var(--muted-strong);
  font-size: 12px;
}

.hero-proof span {
  min-width: 0;
}

.hero-proof strong {
  color: var(--cyan);
  font-weight: 780;
}

.home-page .hero-proof span:nth-child(2) {
  margin-left: auto;
  justify-self: end;
  text-align: right;
}

.hero-proof small {
  display: none;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.process-strip {
  min-height: 72px;
  overflow: hidden;
  background: var(--cyan);
  color: var(--ink);
}

.strip-list {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.strip-list::-webkit-scrollbar {
  display: none;
}

.strip-list span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.strip-list span:not(:last-child)::after {
  width: 5px;
  height: 5px;
  margin-inline: 20px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.section {
  padding-block: 78px;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-intro h2,
.profile-section h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 8vw, 3.3rem);
  line-height: 1.02;
}

.section-intro p,
.profile-section .section-intro > p,
.competence-layout > div > p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.automation-map {
  background: var(--bg-soft);
}

.process-table {
  border-top: 1px solid var(--line-strong);
}

.process-row {
  display: grid;
  gap: 10px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.process-row h3 {
  font-size: 22px;
}

.process-row p {
  margin-bottom: 0;
  color: var(--muted-strong);
}

.process-row > span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
}

.panel-label,
.section-marker {
  margin-bottom: 12px;
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  display: grid;
  gap: 6px;
}

/* Portfolio */

.profile-hero {
  padding-block: 30px 38px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 10%, rgba(239, 189, 69, 0.12), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.profile-hero-grid {
  display: grid;
  grid-template-areas:
    "copy"
    "portrait"
    "actions";
  gap: 18px;
}

.profile-copy {
  grid-area: copy;
}

.role-line {
  margin-bottom: 16px;
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 760;
}

.profile-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 9vw, 4.35rem);
  font-weight: 860;
  letter-spacing: -0.03em;
}

.profile-lead {
  max-width: 680px;
  margin-bottom: 20px;
  color: var(--muted-strong);
  font-size: 16px;
}

.profile-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-proof strong {
  color: var(--cyan);
}

.profile-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-actions .button {
  min-height: 52px;
  padding-inline: 16px;
  white-space: nowrap;
}

.profile-actions .button-primary {
  flex: 1 1 178px;
}

.profile-actions .button-outline {
  flex: 1 1 148px;
}

.profile-portrait {
  position: relative;
  grid-area: portrait;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-portrait img,
.profile-portrait video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.profile-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(7, 9, 11, 0.9));
}

.profile-portrait figcaption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
}

.profile-portrait figcaption span {
  display: block;
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.profile-section {
  padding-block: 44px;
  scroll-margin-top: 82px;
}

.profile-tasks {
  background: var(--bg-soft);
}

.task-lines {
  border-top: 1px solid var(--line-strong);
}

.task-lines article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 12px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.task-lines article > span {
  grid-row: 1 / 3;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.task-lines h3 {
  font-size: 21px;
}

.task-lines p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.competence-section {
  background: var(--bg);
  color: var(--text);
}

.competence-layout {
  display: grid;
  gap: 28px;
}

.competence-layout > div > p {
  color: var(--muted);
}

.competence-groups {
  display: grid;
  gap: 20px;
}

.competence-groups > div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.competence-groups h3 {
  margin-bottom: 10px;
  color: var(--amber-light);
  font-size: 14px;
  letter-spacing: 0;
}

.competence-groups p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.competence-groups ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.competence-groups li {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 13, 15, 0.5);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.cases-section {
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 189, 69, 0.12), transparent 34%),
    var(--bg-warm);
}

.cases-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.profile-section .cases-heading h2 {
  font-size: clamp(1.75rem, 6vw, 2.65rem);
}

.case-carousel {
  display: grid;
  gap: 12px;
}

.case-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.case-carousel-controls > span {
  margin-right: 4px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 720;
}

.case-carousel-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  place-items: center;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition:
    border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
}

.case-carousel-button-next {
  border-color: var(--amber-light);
  background: var(--amber-light);
  color: var(--ink);
}

.case-carousel-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.case-carousel-button:not(:disabled):hover {
  border-color: var(--amber-light);
}

.case-teaser-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.case-teaser-grid::-webkit-scrollbar {
  display: none;
}

.case-teaser {
  height: auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  align-self: stretch;
  scroll-snap-align: start;
  transition:
    border-color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.case-teaser:is(:hover, :focus-within) {
  border-color: rgba(239, 189, 69, 0.66);
  transform: translateY(-2px);
}

.case-teaser > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.case-teaser img {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: #0b0e10;
}

.case-teaser-portrait img {
  object-fit: contain;
  object-position: center;
  background: #edf1f2;
}

.case-teaser-neuro-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 8px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(109, 91, 255, 0.18), transparent 58%),
    #f6f7ff;
}

.case-teaser-neuro-preview svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 7px rgba(16, 26, 76, 0.16));
}

.case-teaser-portrait .case-teaser-link > span:not(.case-teaser-open) {
  margin-top: 8px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.case-teaser-link > span,
.case-teaser-link > h3,
.case-teaser-link > p {
  margin-inline: 14px;
}

.case-teaser-link > span {
  display: block;
  margin-top: 14px;
  margin-bottom: 8px;
  color: var(--amber-light);
  font-size: 11px;
  font-weight: 820;
}

.case-teaser h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.case-teaser-link:hover h3 {
  color: var(--amber-light);
}

.case-teaser-link:focus-visible {
  outline-offset: -4px;
}

.case-teaser-link:is(:hover, :focus-visible) .case-teaser-open {
  color: var(--amber-light);
}

.case-teaser p {
  flex: 0 0 auto;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.case-teaser-link > .case-teaser-open {
  display: flex;
  min-height: 44px;
  margin-top: auto;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
}

.case-teaser-open b {
  color: var(--amber-light);
  font-size: 16px;
}

.case-teaser-visual {
  display: grid;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  align-content: end;
  gap: 4px;
  padding: 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(82, 213, 228, 0.24), transparent 34%),
    #11171b;
}

.case-teaser-visual-transformation {
  position: relative;
  overflow: hidden;
  align-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 45%, rgba(239, 189, 69, 0.24), transparent 18%),
    radial-gradient(circle at 50% 55%, rgba(222, 226, 232, 0.12), transparent 40%),
    linear-gradient(145deg, #090806, #17130b 55%, #070707);
  text-align: center;
}

.case-teaser-visual-transformation::before,
.case-teaser-visual-transformation::after {
  position: absolute;
  inset: 16% 26%;
  border: 1px solid rgba(239, 189, 69, 0.34);
  border-radius: 50%;
  content: "";
  transform: rotate(28deg);
}

.case-teaser-visual-transformation::after {
  inset: 23% 32%;
  border-color: rgba(227, 232, 238, 0.24);
  transform: rotate(-32deg);
}

.case-teaser-visual-transformation span,
.case-teaser-visual-transformation strong,
.case-teaser-visual-transformation small {
  position: relative;
  z-index: 1;
}

.case-teaser-visual-transformation span {
  color: var(--amber-light);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.case-teaser-visual-transformation strong {
  max-width: none;
  color: #f4f4f2;
  font-size: clamp(19px, 6vw, 28px);
  letter-spacing: 0.04em;
}

.case-teaser-visual-transformation small {
  color: rgba(244, 244, 242, 0.58);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.case-teaser-visual-video {
  background:
    radial-gradient(circle at 18% 20%, rgba(239, 189, 69, 0.24), transparent 36%),
    #15130f;
}

.case-teaser-visual-vector {
  background:
    radial-gradient(circle at 78% 20%, rgba(239, 189, 69, 0.26), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(82, 213, 228, 0.2), transparent 36%),
    #101214;
}

.case-teaser-visual span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 820;
}

.case-teaser-visual strong {
  max-width: 12ch;
  font-size: 24px;
  line-height: 1;
}

.cases-in-development {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cases-in-development strong {
  color: var(--amber-light);
}

.case-list {
  border-top: 1px solid var(--line-strong);
}

.case-entry {
  display: grid;
  gap: 22px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.case-preview {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}

.case-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms var(--ease-out);
}

.case-preview:hover img {
  transform: scale(1.018);
}

.case-copy {
  align-self: center;
}

.case-copy > span {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.case-copy h3 {
  margin-bottom: 16px;
  font-size: 34px;
}

.case-copy p {
  max-width: 600px;
  margin-bottom: 22px;
  color: var(--muted);
}

.case-copy a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 760;
  text-underline-offset: 5px;
}

.case-copy a:hover {
  color: var(--amber-light);
}

.development-section {
  background: var(--surface-warm);
  color: var(--text);
}

.development-section .section-marker {
  color: var(--amber-light);
}

.development-layout {
  display: grid;
  gap: 24px;
}

.development-list {
  border-top: 1px solid var(--amber-line);
}

.development-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding-block: 18px;
  border-bottom: 1px solid rgba(239, 189, 69, 0.22);
}

.development-list article > span {
  font-size: 12px;
  font-weight: 800;
}

.development-list h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.development-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.cooperation-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(82, 213, 228, 0.1), transparent 30%),
    var(--bg);
  color: var(--text);
}

.cooperation-layout {
  display: grid;
  max-width: 820px;
  gap: 24px;
}

.cooperation-layout > div > p {
  max-width: 680px;
  margin-bottom: 26px;
  color: var(--muted-strong);
}

.cooperation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cooperation-actions .button {
  min-width: 190px;
}

/* Quiz */

.case-gallery-dialog {
  width: min(980px, calc(100% - 16px));
  max-width: none;
  height: calc(100dvh - 16px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #090b0f;
  color: var(--text);
}

.case-gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.case-gallery-dialog[open] {
  animation: dialog-in 180ms var(--ease-out);
}

.case-gallery-panel {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.case-gallery-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.case-gallery-header > div {
  min-width: 0;
}

.case-gallery-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--amber-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-gallery-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 6vw, 2rem);
}

.case-gallery-track {
  display: grid;
  min-height: 0;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 340px);
  align-items: start;
  gap: 12px;
  padding: 14px 16px 22px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 189, 69, 0.6) rgba(255, 255, 255, 0.08);
}

.case-gallery-track:focus-visible {
  outline: 2px solid var(--amber-light);
  outline-offset: -4px;
}

.case-gallery-card {
  display: grid;
  min-width: 0;
  height: 100%;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(114, 105, 255, 0.18);
  border-radius: 16px;
  background: #f6f7ff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  scroll-snap-align: center;
}

.case-gallery-shot {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(650px, calc(100dvh - 190px));
  margin: 0 auto;
  background: #f6f7ff;
}

.case-gallery-card figcaption {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-top: 1px solid rgba(28, 36, 82, 0.1);
  background: #ffffff;
  color: #121935;
  font-size: 13px;
  font-weight: 760;
}

.case-gallery-card figcaption span {
  color: #6357ec;
  font-size: 11px;
  font-weight: 850;
}

.cases-dialog {
  width: min(900px, calc(100% - 28px));
  max-width: none;
  height: min(860px, calc(100dvh - 28px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background: #090b0d;
  color: var(--text);
}

.cases-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(5px);
}

.cases-dialog[open] {
  animation: dialog-in 180ms var(--ease-out);
}

.cases-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.cases-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: start;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(239, 189, 69, 0.08), rgba(255, 255, 255, 0.02));
}

.cases-modal-header span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 820;
}

.cases-modal-header h2 {
  font-size: clamp(1.9rem, 8vw, 3rem);
}

.cases-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.case-catalog {
  display: grid;
  gap: 12px;
}

.catalog-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.catalog-card-muted {
  background: rgba(239, 189, 69, 0.05);
}

.case-status {
  color: var(--amber-light);
  font-size: 11px;
  font-weight: 820;
}

.catalog-card h3 {
  font-size: 23px;
}

.catalog-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-card a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  text-underline-offset: 4px;
}

.catalog-card a:hover {
  color: var(--amber-light);
}

.catalog-note {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 760;
}

.contact-dialog {
  width: min(440px, calc(100% - 28px));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(82, 213, 228, 0.35);
  border-radius: var(--radius);
  background: #0a0e11;
  color: var(--text);
}

.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
}

.contact-dialog[open] {
  animation: dialog-in 180ms var(--ease-out);
}

.contact-modal {
  display: grid;
  gap: 0;
}

.contact-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: start;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
}

.contact-modal-header span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 800;
}

.contact-modal-header h2 {
  font-size: 30px;
}

.contact-modal-body {
  display: grid;
  gap: 14px;
  padding: 18px 16px 16px;
}

.contact-modal-body .local-status {
  background: #202116;
  color: #e8debd;
}

.contact-modal-footer {
  padding: 0 16px 16px;
}

.contact-modal-footer .button {
  width: 100%;
}

.quiz-dialog {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #0a0e11;
  color: var(--text);
}

.quiz-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
}

.quiz-dialog[open] {
  animation: dialog-in 180ms var(--ease-out);
}

.quiz-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
}

.quiz-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 22px;
}

.icon-button:hover {
  border-color: var(--amber);
}

.quiz-back.is-hidden {
  visibility: hidden;
}

.quiz-meta {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.quiz-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-meta strong {
  color: var(--amber-light);
  font-size: 12px;
}

.progress-track {
  height: 4px;
  margin-inline: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #223039;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
  transition: width 220ms var(--ease-out);
}

.quiz-body {
  overflow-y: auto;
  padding: 28px 14px 18px;
  scrollbar-color: #44525b transparent;
  scrollbar-width: thin;
}

.quiz-copy {
  max-width: 650px;
}

.question-number,
.result-label {
  margin-bottom: 11px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.quiz-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 8vw, 2.5rem);
  line-height: 1.04;
}

.quiz-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.answer-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.answer-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.answer-option:hover {
  border-color: rgba(82, 213, 228, 0.6);
  background: var(--surface-strong);
}

.answer-option:has(input:checked) {
  border-color: var(--amber);
  background: #252317;
}

.answer-option:has(input:focus-visible),
.method-option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.answer-control {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
  border: 2px solid #7a8c97;
  border-radius: 50%;
}

.answer-option:has(input:checked) .answer-control {
  border-color: var(--amber);
}

.answer-option:has(input:checked) .answer-control::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.answer-label {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.quiz-error {
  min-height: 22px;
  margin: 13px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.quiz-footer {
  padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #0a0e11;
}

.quiz-next {
  width: 100%;
}

.result-panel {
  display: grid;
  gap: 22px;
}

.result-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: result-step;
}

.result-steps li {
  position: relative;
  padding: 14px 0 14px 38px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  counter-increment: result-step;
}

.result-steps li::before {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  content: "0" counter(result-step);
}

.result-context {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--line);
}

.result-context p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  background: var(--surface);
}

.result-context strong {
  color: var(--muted);
  font-size: 11px;
}

.result-context span {
  font-size: 14px;
  font-weight: 700;
}

.contact-panel {
  display: grid;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.contact-heading h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.contact-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.method-option {
  position: relative;
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 730;
}

.method-option:has(input:checked) {
  border-color: var(--amber);
  background: #252317;
}

.method-option input {
  position: absolute;
  opacity: 0;
}

.field-grid {
  display: grid;
  gap: 12px;
}

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

.field label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.field input::placeholder {
  color: #909ba3;
  opacity: 1;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.local-status,
.demo-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #202116;
  color: #e8debd;
  font-size: 12px;
}

.success-state {
  display: grid;
  min-height: 420px;
  align-content: center;
  justify-items: start;
}

.success-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(79, 223, 146, 0.55);
  border-radius: 50%;
  color: var(--green);
  font-size: 24px;
}

.success-state h2 {
  margin-bottom: 13px;
  font-size: 32px;
}

.success-state > p:not(.result-label) {
  max-width: 560px;
  color: var(--muted);
}

.success-state .demo-notice {
  margin-top: 10px;
}

@keyframes portrait-in {
  from {
    transform: scale(1.025);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes dialog-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 370px) {
  .home-hero h1 {
    font-size: 1.92rem;
  }

  .hero-lead {
    font-size: 14px;
  }

  .profile-hero {
    padding-block: 20px 24px;
  }

  .profile-hero-grid {
    gap: 12px;
  }

  .profile-copy h1 {
    margin-bottom: 12px;
    font-size: 2rem;
    line-height: 0.98;
  }

  .profile-lead {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .profile-proof {
    gap: 6px 14px;
    font-size: 12px;
  }

  .profile-portrait {
    height: auto;
  }
}

@media (max-width: 430px) {
  .profile-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .profile-actions .button {
    min-width: 0;
    flex: 1 1 0;
    gap: 6px;
    padding-inline: 8px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .profile-hero {
    padding-block: 14px 18px;
  }

  .profile-hero-grid {
    gap: 8px;
  }

  .profile-copy h1 {
    margin-bottom: 8px;
    font-size: 1.75rem;
    line-height: 1;
  }

  .profile-lead {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.35;
  }

  .profile-proof {
    gap: 4px 12px;
    font-size: 12px;
  }

  .profile-portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    justify-self: center;
  }

  .profile-portrait video {
    object-fit: cover;
    object-position: center;
  }

  .profile-portrait figcaption {
    right: 10px;
    bottom: 9px;
    left: 10px;
    font-size: 11.5px;
    line-height: 1.25;
  }

  .profile-tasks {
    padding-block: 20px 22px;
  }

  .profile-tasks .section-intro {
    margin-bottom: 12px;
  }

  .profile-tasks .section-intro h2 {
    margin-bottom: 7px;
    font-size: 1.45rem;
  }

  .profile-tasks .section-intro p {
    font-size: 14px;
    line-height: 1.35;
  }

  .task-lines article {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px 8px;
    padding-block: 10px;
  }

  .task-lines h3 {
    font-size: 16px;
  }

  .task-lines p {
    font-size: 14px;
    line-height: 1.35;
  }

  .cases-section {
    padding-block: 32px;
  }

  .cases-heading {
    margin-bottom: 20px;
  }

  .profile-section .cases-heading h2 {
    font-size: 1.55rem;
  }

  .cases-heading p {
    font-size: 14px;
    line-height: 1.4;
  }

  .competence-section {
    padding-block: 24px;
  }

  .competence-layout {
    gap: 14px;
  }

  .competence-layout h2 {
    margin-bottom: 8px;
    font-size: 1.45rem;
  }

  .competence-layout > div > p {
    font-size: 14px;
    line-height: 1.35;
  }

  .competence-groups {
    gap: 8px;
  }

  .competence-groups > div {
    padding: 10px;
    border-radius: 10px;
  }

  .competence-groups h3 {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .competence-groups p {
    font-size: 14px;
    line-height: 1.35;
  }
}

@media (min-width: 560px) {
  .shell {
    width: min(calc(100% - 48px), var(--shell));
  }

  .nav-cta {
    width: auto;
    padding: 0 14px;
    font-size: 13px;
  }

  .nav-cta span {
    font-size: 16px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
  }

  .hero-actions .text-link {
    order: 2;
  }

  .hero-actions .hero-proof {
    order: 3;
    flex-basis: 100%;
    margin-top: 0;
  }

  .hero-actions .button {
    min-width: 220px;
  }

  .hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .hero-proof small {
    display: block;
    width: 100%;
  }

  .process-row {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px 24px;
  }

  .process-row > span {
    grid-column: 2;
  }

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

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

  .case-teaser-grid {
    grid-auto-columns: 64%;
  }
}

@media (min-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .brand-mark {
    width: 44px;
    height: auto;
    margin-right: 11px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy span {
    display: block;
  }

  .site-nav {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .menu-toggle {
    display: none;
  }

  .nav-link {
    padding: 0;
    border-radius: 0;
  }

  .nav-link:hover {
    background: transparent;
  }

  .nav-back {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    justify-content: center;
    background: transparent;
  }

  .home-hero {
    min-height: max(680px, calc(100svh - 142px));
  }

  .hero-visual {
    height: auto;
    right: 0;
    bottom: 0;
    left: 46%;
  }

  .hero-visual::after {
    background:
      linear-gradient(90deg, #07090b 0%, rgba(7, 9, 11, 0.92) 12%, rgba(7, 9, 11, 0.24) 55%, rgba(7, 9, 11, 0.08) 100%),
      linear-gradient(180deg, rgba(7, 9, 11, 0.05) 0%, rgba(7, 9, 11, 0.08) 70%, rgba(7, 9, 11, 0.68) 100%);
  }

  .hero-media {
    object-position: 50% 20%;
  }

  .portrait-signature {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e0e6e8;
    font-size: 12px;
    font-weight: 700;
  }

  .portrait-signature img {
    width: 32px;
    height: 28px;
    object-fit: cover;
  }

  .hero-grid {
    align-items: center;
    padding-block: 52px;
  }

  .hero-copy {
    width: 60%;
  }

  .home-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(3rem, 5.3vw, 4.35rem);
    line-height: 0.98;
  }

  .hero-lead {
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-proof {
    margin-top: 26px;
    font-size: 13px;
  }

  .section,
  .profile-section {
    padding-block: 64px;
  }

  .section-intro-split {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
    gap: 70px;
    align-items: end;
  }

  .section-intro-split h2 {
    margin-bottom: 0;
  }

  .case-teaser-grid {
    grid-auto-columns: 47%;
  }

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

  .process-row {
    grid-template-columns: 170px minmax(0, 1fr) 210px;
    align-items: center;
    gap: 28px;
    padding-block: 26px;
  }

  .process-row > span {
    grid-column: auto;
    text-align: right;
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
  }

  .profile-hero {
    padding-block: 52px 62px;
  }

  .profile-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.68fr);
    grid-template-areas:
      "copy portrait"
      "actions portrait";
    gap: 24px clamp(42px, 6vw, 76px);
    align-items: center;
  }

  .profile-copy h1 {
    font-size: clamp(2.5rem, 5vw, 3.7rem);
  }

  .profile-actions {
    align-self: start;
  }

  .profile-portrait {
    height: auto;
    min-height: 0;
  }

  .task-lines article {
    grid-template-columns: 60px minmax(220px, 0.7fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding-block: 22px;
  }

  .task-lines article > span {
    grid-row: auto;
  }

  .competence-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
    gap: 64px;
  }

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

  .case-entry {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: clamp(36px, 6vw, 72px);
    padding-block: 44px;
  }

  .case-entry-reverse {
    grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  }

  .case-entry-reverse .case-preview {
    grid-column: 2;
  }

  .case-entry-reverse .case-copy {
    grid-row: 1;
    grid-column: 1;
  }

  .development-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    gap: 64px;
    align-items: start;
  }

  .quiz-dialog {
    width: min(780px, calc(100% - 48px));
    height: min(880px, calc(100dvh - 48px));
    margin: auto;
    border: 1px solid rgba(82, 213, 228, 0.35);
    border-radius: var(--radius);
  }

  .quiz-dialog::backdrop {
    backdrop-filter: blur(5px);
  }

  .quiz-header {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 14px;
    padding: 18px 22px 14px;
  }

  .icon-button {
    width: 48px;
    height: 48px;
  }

  .progress-track {
    margin-inline: 22px;
  }

  .quiz-body {
    padding: 42px 22px 26px;
  }

  .quiz-copy h2 {
    font-size: 38px;
  }

  .answer-list {
    margin-top: 30px;
  }

  .quiz-footer {
    padding: 14px 22px 20px;
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .profile-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 20px 28px;
  }

  .profile-actions {
    flex-wrap: nowrap;
  }

  .profile-actions .button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 12px;
    font-size: 14px;
  }
}

@media (min-width: 1100px) {
  .hero-copy {
    width: 57%;
  }

  .home-hero h1 {
    font-size: 4.35rem;
  }

  .section-intro h2,
  .profile-section h2 {
    font-size: 3.7rem;
  }

  .profile-copy h1 {
    font-size: 4.15rem;
  }

  .case-teaser-grid {
    grid-auto-columns: calc((100% - 36px) / 4);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
